@golstats/gsc-lineups-reports 1.0.5 → 1.0.7
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(te,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(te=typeof globalThis<"u"?globalThis:te||self,e(te.GSCLineupsReports={},te.Vue))})(this,function(te,e){"use strict";function $t(t,i){return function(){return t.apply(i,arguments)}}const{toString:es}=Object.prototype,{getPrototypeOf:xe}=Object,{iterator:we,toStringTag:Ft}=Symbol,Ce=(t=>i=>{const s=es.call(i);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),J=t=>(t=t.toLowerCase(),i=>Ce(i)===t),Se=t=>i=>typeof i===t,{isArray:le}=Array,pe=Se("undefined");function ts(t){return t!==null&&!pe(t)&&t.constructor!==null&&!pe(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Bt=J("ArrayBuffer");function is(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Bt(t.buffer),i}const ss=Se("string"),x=Se("function"),zt=Se("number"),ke=t=>t!==null&&typeof t=="object",as=t=>t===!0||t===!1,Ee=t=>{if(Ce(t)!=="object")return!1;const i=xe(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Ft in t)&&!(we in t)},ns=J("Date"),os=J("File"),rs=J("Blob"),ls=J("FileList"),cs=t=>ke(t)&&x(t.pipe),ds=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||x(t.append)&&((i=Ce(t))==="formdata"||i==="object"&&x(t.toString)&&t.toString()==="[object FormData]"))},ms=J("URLSearchParams"),[hs,ps,fs,gs]=["ReadableStream","Request","Response","Headers"].map(J),ys=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fe(t,i,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let a,n;if(typeof t!="object"&&(t=[t]),le(t))for(a=0,n=t.length;a<n;a++)i.call(null,t[a],a,t);else{const o=s?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let c;for(a=0;a<r;a++)c=o[a],i.call(null,t[c],c,t)}}function Rt(t,i){i=i.toLowerCase();const s=Object.keys(t);let a=s.length,n;for(;a-- >0;)if(n=s[a],i===n.toLowerCase())return n;return null}const ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dt=t=>!pe(t)&&t!==ie;function We(){const{caseless:t}=Dt(this)&&this||{},i={},s=(a,n)=>{const o=t&&Rt(i,n)||n;Ee(i[o])&&Ee(a)?i[o]=We(i[o],a):Ee(a)?i[o]=We({},a):le(a)?i[o]=a.slice():i[o]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&fe(arguments[a],s);return i}const us=(t,i,s,{allOwnKeys:a}={})=>(fe(i,(n,o)=>{s&&x(n)?t[o]=$t(n,s):t[o]=n},{allOwnKeys:a}),t),_s=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bs=(t,i,s,a)=>{t.prototype=Object.create(i.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),s&&Object.assign(t.prototype,s)},ws=(t,i,s,a)=>{let n,o,r;const c={};if(i=i||{},t==null)return i;do{for(n=Object.getOwnPropertyNames(t),o=n.length;o-- >0;)r=n[o],(!a||a(r,t,i))&&!c[r]&&(i[r]=t[r],c[r]=!0);t=s!==!1&&xe(t)}while(t&&(!s||s(t,i))&&t!==Object.prototype);return i},Cs=(t,i,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=i.length;const a=t.indexOf(i,s);return a!==-1&&a===s},Ss=t=>{if(!t)return null;if(le(t))return t;let i=t.length;if(!zt(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=t[i];return s},ks=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&xe(Uint8Array)),Es=(t,i)=>{const a=(t&&t[we]).call(t);let n;for(;(n=a.next())&&!n.done;){const o=n.value;i.call(t,o[0],o[1])}},Is=(t,i)=>{let s;const a=[];for(;(s=t.exec(i))!==null;)a.push(s);return a},Vs=J("HTMLFormElement"),Ns=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,a,n){return a.toUpperCase()+n}),Mt=(({hasOwnProperty:t})=>(i,s)=>t.call(i,s))(Object.prototype),Ts=J("RegExp"),At=(t,i)=>{const s=Object.getOwnPropertyDescriptors(t),a={};fe(s,(n,o)=>{let r;(r=i(n,o,t))!==!1&&(a[o]=r||n)}),Object.defineProperties(t,a)},Os=t=>{At(t,(i,s)=>{if(x(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const a=t[s];if(x(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},$s=(t,i)=>{const s={},a=n=>{n.forEach(o=>{s[o]=!0})};return le(t)?a(t):a(String(t).split(i)),s},Fs=()=>{},Bs=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function zs(t){return!!(t&&x(t.append)&&t[Ft]==="FormData"&&t[we])}const Rs=t=>{const i=new Array(10),s=(a,n)=>{if(ke(a)){if(i.indexOf(a)>=0)return;if(!("toJSON"in a)){i[n]=a;const o=le(a)?[]:{};return fe(a,(r,c)=>{const h=s(r,n+1);!pe(h)&&(o[c]=h)}),i[n]=void 0,o}}return a};return s(t,0)},Ds=J("AsyncFunction"),Ms=t=>t&&(ke(t)||x(t))&&x(t.then)&&x(t.catch),jt=((t,i)=>t?setImmediate:i?((s,a)=>(ie.addEventListener("message",({source:n,data:o})=>{n===ie&&o===s&&a.length&&a.shift()()},!1),n=>{a.push(n),ie.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",x(ie.postMessage)),As=typeof queueMicrotask<"u"?queueMicrotask.bind(ie):typeof process<"u"&&process.nextTick||jt,w={isArray:le,isArrayBuffer:Bt,isBuffer:ts,isFormData:ds,isArrayBufferView:is,isString:ss,isNumber:zt,isBoolean:as,isObject:ke,isPlainObject:Ee,isReadableStream:hs,isRequest:ps,isResponse:fs,isHeaders:gs,isUndefined:pe,isDate:ns,isFile:os,isBlob:rs,isRegExp:Ts,isFunction:x,isStream:cs,isURLSearchParams:ms,isTypedArray:ks,isFileList:ls,forEach:fe,merge:We,extend:us,trim:ys,stripBOM:_s,inherits:bs,toFlatObject:ws,kindOf:Ce,kindOfTest:J,endsWith:Cs,toArray:Ss,forEachEntry:Es,matchAll:Is,isHTMLForm:Vs,hasOwnProperty:Mt,hasOwnProp:Mt,reduceDescriptors:At,freezeMethods:Os,toObjectSet:$s,toCamelCase:Ns,noop:Fs,toFiniteNumber:Bs,findKey:Rt,global:ie,isContextDefined:Dt,isSpecCompliantForm:zs,toJSONObject:Rs,isAsyncFn:Ds,isThenable:Ms,setImmediate:jt,asap:As,isIterable:t=>t!=null&&x(t[we])};function O(t,i,s,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}w.inherits(O,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.status}}});const Lt=O.prototype,Ut={};["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(t=>{Ut[t]={value:t}}),Object.defineProperties(O,Ut),Object.defineProperty(Lt,"isAxiosError",{value:!0}),O.from=(t,i,s,a,n,o)=>{const r=Object.create(Lt);return w.toFlatObject(t,r,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),O.call(r,t.message,i,s,a,n),r.cause=t,r.name=t.name,o&&Object.assign(r,o),r};const js=null;function qe(t){return w.isPlainObject(t)||w.isArray(t)}function Pt(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Ht(t,i,s){return t?t.concat(i).map(function(n,o){return n=Pt(n),!s&&o?"["+n+"]":n}).join(s?".":""):i}function Ls(t){return w.isArray(t)&&!t.some(qe)}const Us=w.toFlatObject(w,{},null,function(i){return/^is[A-Z]/.test(i)});function Ie(t,i,s){if(!w.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,s=w.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!w.isUndefined(m[g])});const a=s.metaTokens,n=s.visitor||p,o=s.dots,r=s.indexes,h=(s.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(i);if(!w.isFunction(n))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(w.isDate(u))return u.toISOString();if(w.isBoolean(u))return u.toString();if(!h&&w.isBlob(u))throw new O("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(u)||w.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function p(u,g,m){let S=u;if(u&&!m&&typeof u=="object"){if(w.endsWith(g,"{}"))g=a?g:g.slice(0,-2),u=JSON.stringify(u);else if(w.isArray(u)&&Ls(u)||(w.isFileList(u)||w.endsWith(g,"[]"))&&(S=w.toArray(u)))return g=Pt(g),S.forEach(function(_,d){!(w.isUndefined(_)||_===null)&&i.append(r===!0?Ht([g],d,o):r===null?g:g+"[]",f(_))}),!1}return qe(u)?!0:(i.append(Ht(m,g,o),f(u)),!1)}const y=[],l=Object.assign(Us,{defaultVisitor:p,convertValue:f,isVisitable:qe});function C(u,g){if(!w.isUndefined(u)){if(y.indexOf(u)!==-1)throw Error("Circular reference detected in "+g.join("."));y.push(u),w.forEach(u,function(S,N){(!(w.isUndefined(S)||S===null)&&n.call(i,S,w.isString(N)?N.trim():N,g,l))===!0&&C(S,g?g.concat(N):[N])}),y.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return C(t),i}function xt(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Xe(t,i){this._pairs=[],t&&Ie(t,this,i)}const Wt=Xe.prototype;Wt.append=function(i,s){this._pairs.push([i,s])},Wt.toString=function(i){const s=i?function(a){return i.call(this,a,xt)}:xt;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};function Ps(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qt(t,i,s){if(!i)return t;const a=s&&s.encode||Ps;w.isFunction(s)&&(s={serialize:s});const n=s&&s.serialize;let o;if(n?o=n(i,s):o=w.isURLSearchParams(i)?i.toString():new Xe(i,s).toString(a),o){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Xt{constructor(){this.handlers=[]}use(i,s,a){return this.handlers.push({fulfilled:i,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){w.forEach(this.handlers,function(a){a!==null&&i(a)})}}const Jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Je=typeof window<"u"&&typeof document<"u",Ge=typeof navigator=="object"&&navigator||void 0,xs=Je&&(!Ge||["ReactNative","NativeScript","NS"].indexOf(Ge.product)<0),Ws=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qs=Je&&window.location.href||"http://localhost",U={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Je,hasStandardBrowserEnv:xs,hasStandardBrowserWebWorkerEnv:Ws,navigator:Ge,origin:qs},Symbol.toStringTag,{value:"Module"})),...Hs};function Xs(t,i){return Ie(t,new U.classes.URLSearchParams,Object.assign({visitor:function(s,a,n,o){return U.isNode&&w.isBuffer(s)?(this.append(a,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},i))}function Js(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Gs(t){const i={},s=Object.keys(t);let a;const n=s.length;let o;for(a=0;a<n;a++)o=s[a],i[o]=t[o];return i}function Gt(t){function i(s,a,n,o){let r=s[o++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=o>=s.length;return r=!r&&w.isArray(n)?n.length:r,h?(w.hasOwnProp(n,r)?n[r]=[n[r],a]:n[r]=a,!c):((!n[r]||!w.isObject(n[r]))&&(n[r]=[]),i(s,a,n[r],o)&&w.isArray(n[r])&&(n[r]=Gs(n[r])),!c)}if(w.isFormData(t)&&w.isFunction(t.entries)){const s={};return w.forEachEntry(t,(a,n)=>{i(Js(a),n,s,0)}),s}return null}function Ys(t,i,s){if(w.isString(t))try{return(i||JSON.parse)(t),w.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(t)}const ge={transitional:Jt,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const a=s.getContentType()||"",n=a.indexOf("application/json")>-1,o=w.isObject(i);if(o&&w.isHTMLForm(i)&&(i=new FormData(i)),w.isFormData(i))return n?JSON.stringify(Gt(i)):i;if(w.isArrayBuffer(i)||w.isBuffer(i)||w.isStream(i)||w.isFile(i)||w.isBlob(i)||w.isReadableStream(i))return i;if(w.isArrayBufferView(i))return i.buffer;if(w.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let c;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Xs(i,this.formSerializer).toString();if((c=w.isFileList(i))||a.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Ie(c?{"files[]":i}:i,h&&new h,this.formSerializer)}}return o||n?(s.setContentType("application/json",!1),Ys(i)):i}],transformResponse:[function(i){const s=this.transitional||ge.transitional,a=s&&s.forcedJSONParsing,n=this.responseType==="json";if(w.isResponse(i)||w.isReadableStream(i))return i;if(i&&w.isString(i)&&(a&&!this.responseType||n)){const r=!(s&&s.silentJSONParsing)&&n;try{return JSON.parse(i)}catch(c){if(r)throw c.name==="SyntaxError"?O.from(c,O.ERR_BAD_RESPONSE,this,null,this.response):c}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{ge.headers[t]={}});const Ks=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"]),Zs=t=>{const i={};let s,a,n;return t&&t.split(`
|
|
2
|
-
`).forEach(function(r){n=r.indexOf(":"),s=r.substring(0,n).trim().toLowerCase(),a=r.substring(n+1).trim(),!(!s||i[s]&&Ks[s])&&(s==="set-cookie"?i[s]?i[s].push(a):i[s]=[a]:i[s]=i[s]?i[s]+", "+a:a)}),i},Yt=Symbol("internals");function
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const a=new this(i);return s.forEach(n=>a.set(n)),a}static accessor(i){const a=(this[Yt]=this[Yt]={accessors:{}}).accessors,n=this.prototype;function o(r){const c=ye(r);a[c]||(ta(n,r),a[c]=!0)}return w.isArray(i)?i.forEach(o):o(i),this}};W.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(W.prototype,({value:t},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(a){this[s]=a}}}),w.freezeMethods(W);function Ke(t,i){const s=this||ge,a=i||s,n=W.from(a.headers);let o=a.data;return w.forEach(t,function(c){o=c.call(s,o,n.normalize(),i?i.status:void 0)}),n.normalize(),o}function Kt(t){return!!(t&&t.__CANCEL__)}function ce(t,i,s){O.call(this,t??"canceled",O.ERR_CANCELED,i,s),this.name="CanceledError"}w.inherits(ce,O,{__CANCEL__:!0});function Zt(t,i,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?t(s):i(new O("Request failed with status code "+s.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ia(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function sa(t,i){t=t||10;const s=new Array(t),a=new Array(t);let n=0,o=0,r;return i=i!==void 0?i:1e3,function(h){const f=Date.now(),p=a[o];r||(r=f),s[n]=h,a[n]=f;let y=o,l=0;for(;y!==n;)l+=s[y++],y=y%t;if(n=(n+1)%t,n===o&&(o=(o+1)%t),f-r<i)return;const C=p&&f-p;return C?Math.round(l*1e3/C):void 0}}function aa(t,i){let s=0,a=1e3/i,n,o;const r=(f,p=Date.now())=>{s=p,n=null,o&&(clearTimeout(o),o=null),t.apply(null,f)};return[(...f)=>{const p=Date.now(),y=p-s;y>=a?r(f,p):(n=f,o||(o=setTimeout(()=>{o=null,r(n)},a-y)))},()=>n&&r(n)]}const Ne=(t,i,s=3)=>{let a=0;const n=sa(50,250);return aa(o=>{const r=o.loaded,c=o.lengthComputable?o.total:void 0,h=r-a,f=n(h),p=r<=c;a=r;const y={loaded:r,total:c,progress:c?r/c:void 0,bytes:h,rate:f||void 0,estimated:f&&c&&p?(c-r)/f:void 0,event:o,lengthComputable:c!=null,[i?"download":"upload"]:!0};t(y)},s)},Qt=(t,i)=>{const s=t!=null;return[a=>i[0]({lengthComputable:s,total:t,loaded:a}),i[1]]},vt=t=>(...i)=>w.asap(()=>t(...i)),na=U.hasStandardBrowserEnv?((t,i)=>s=>(s=new URL(s,U.origin),t.protocol===s.protocol&&t.host===s.host&&(i||t.port===s.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,oa=U.hasStandardBrowserEnv?{write(t,i,s,a,n,o){const r=[t+"="+encodeURIComponent(i)];w.isNumber(s)&&r.push("expires="+new Date(s).toGMTString()),w.isString(a)&&r.push("path="+a),w.isString(n)&&r.push("domain="+n),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ra(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function la(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function ei(t,i,s){let a=!ra(i);return t&&(a||s==!1)?la(t,i):i}const ti=t=>t instanceof W?{...t}:t;function se(t,i){i=i||{};const s={};function a(f,p,y,l){return w.isPlainObject(f)&&w.isPlainObject(p)?w.merge.call({caseless:l},f,p):w.isPlainObject(p)?w.merge({},p):w.isArray(p)?p.slice():p}function n(f,p,y,l){if(w.isUndefined(p)){if(!w.isUndefined(f))return a(void 0,f,y,l)}else return a(f,p,y,l)}function o(f,p){if(!w.isUndefined(p))return a(void 0,p)}function r(f,p){if(w.isUndefined(p)){if(!w.isUndefined(f))return a(void 0,f)}else return a(void 0,p)}function c(f,p,y){if(y in i)return a(f,p);if(y in t)return a(void 0,f)}const h={url:o,method:o,data:o,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:(f,p,y)=>n(ti(f),ti(p),y,!0)};return w.forEach(Object.keys(Object.assign({},t,i)),function(p){const y=h[p]||n,l=y(t[p],i[p],p);w.isUndefined(l)&&y!==c||(s[p]=l)}),s}const ii=t=>{const i=se({},t);let{data:s,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:r,auth:c}=i;i.headers=r=W.from(r),i.url=qt(ei(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(w.isFormData(s)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((h=r.getContentType())!==!1){const[f,...p]=h?h.split(";").map(y=>y.trim()).filter(Boolean):[];r.setContentType([f||"multipart/form-data",...p].join("; "))}}if(U.hasStandardBrowserEnv&&(a&&w.isFunction(a)&&(a=a(i)),a||a!==!1&&na(i.url))){const f=n&&o&&oa.read(o);f&&r.set(n,f)}return i},ca=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(s,a){const n=ii(t);let o=n.data;const r=W.from(n.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:f}=n,p,y,l,C,u;function g(){C&&C(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(p),n.signal&&n.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function S(){if(!m)return;const _=W.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),b={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:_,config:t,request:m};Zt(function(B){s(B),g()},function(B){a(B),g()},b),m=null}"onloadend"in m?m.onloadend=S:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(S)},m.onabort=function(){m&&(a(new O("Request aborted",O.ECONNABORTED,t,m)),m=null)},m.onerror=function(){a(new O("Network Error",O.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let d=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||Jt;n.timeoutErrorMessage&&(d=n.timeoutErrorMessage),a(new O(d,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,m)),m=null},o===void 0&&r.setContentType(null),"setRequestHeader"in m&&w.forEach(r.toJSON(),function(d,b){m.setRequestHeader(b,d)}),w.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),c&&c!=="json"&&(m.responseType=n.responseType),f&&([l,u]=Ne(f,!0),m.addEventListener("progress",l)),h&&m.upload&&([y,C]=Ne(h),m.upload.addEventListener("progress",y),m.upload.addEventListener("loadend",C)),(n.cancelToken||n.signal)&&(p=_=>{m&&(a(!_||_.type?new ce(null,t,m):_),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(p),n.signal&&(n.signal.aborted?p():n.signal.addEventListener("abort",p)));const N=ia(n.url);if(N&&U.protocols.indexOf(N)===-1){a(new O("Unsupported protocol "+N+":",O.ERR_BAD_REQUEST,t));return}m.send(o||null)})},da=(t,i)=>{const{length:s}=t=t?t.filter(Boolean):[];if(i||s){let a=new AbortController,n;const o=function(f){if(!n){n=!0,c();const p=f instanceof Error?f:this.reason;a.abort(p instanceof O?p:new ce(p instanceof Error?p.message:p))}};let r=i&&setTimeout(()=>{r=null,o(new O(`timeout ${i} of ms exceeded`,O.ETIMEDOUT))},i);const c=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:h}=a;return h.unsubscribe=()=>w.asap(c),h}},ma=function*(t,i){let s=t.byteLength;if(s<i){yield t;return}let a=0,n;for(;a<s;)n=a+i,yield t.slice(a,n),a=n},ha=async function*(t,i){for await(const s of pa(t))yield*ma(s,i)},pa=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:s,value:a}=await i.read();if(s)break;yield a}}finally{await i.cancel()}},si=(t,i,s,a)=>{const n=ha(t,i);let o=0,r,c=h=>{r||(r=!0,a&&a(h))};return new ReadableStream({async pull(h){try{const{done:f,value:p}=await n.next();if(f){c(),h.close();return}let y=p.byteLength;if(s){let l=o+=y;s(l)}h.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(h){return c(h),n.return()}},{highWaterMark:2})},Te=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ai=Te&&typeof ReadableStream=="function",fa=Te&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ni=(t,...i)=>{try{return!!t(...i)}catch{return!1}},ga=ai&&ni(()=>{let t=!1;const i=new Request(U.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),oi=64*1024,Ze=ai&&ni(()=>w.isReadableStream(new Response("").body)),Oe={stream:Ze&&(t=>t.body)};Te&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Oe[i]&&(Oe[i]=w.isFunction(t[i])?s=>s[i]():(s,a)=>{throw new O(`Response type '${i}' is not supported`,O.ERR_NOT_SUPPORT,a)})})})(new Response);const ya=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(U.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await fa(t)).byteLength},ua=async(t,i)=>{const s=w.toFiniteNumber(t.getContentLength());return s??ya(i)},Qe={http:js,xhr:ca,fetch:Te&&(async t=>{let{url:i,method:s,data:a,signal:n,cancelToken:o,timeout:r,onDownloadProgress:c,onUploadProgress:h,responseType:f,headers:p,withCredentials:y="same-origin",fetchOptions:l}=ii(t);f=f?(f+"").toLowerCase():"text";let C=da([n,o&&o.toAbortSignal()],r),u;const g=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let m;try{if(h&&ga&&s!=="get"&&s!=="head"&&(m=await ua(p,a))!==0){let b=new Request(i,{method:"POST",body:a,duplex:"half"}),E;if(w.isFormData(a)&&(E=b.headers.get("content-type"))&&p.setContentType(E),b.body){const[B,V]=Qt(m,Ne(vt(h)));a=si(b.body,oi,B,V)}}w.isString(y)||(y=y?"include":"omit");const S="credentials"in Request.prototype;u=new Request(i,{...l,signal:C,method:s.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",credentials:S?y:void 0});let N=await fetch(u,l);const _=Ze&&(f==="stream"||f==="response");if(Ze&&(c||_&&g)){const b={};["status","statusText","headers"].forEach(R=>{b[R]=N[R]});const E=w.toFiniteNumber(N.headers.get("content-length")),[B,V]=c&&Qt(E,Ne(vt(c),!0))||[];N=new Response(si(N.body,oi,B,()=>{V&&V(),g&&g()}),b)}f=f||"text";let d=await Oe[w.findKey(Oe,f)||"text"](N,t);return!_&&g&&g(),await new Promise((b,E)=>{Zt(b,E,{data:d,headers:W.from(N.headers),status:N.status,statusText:N.statusText,config:t,request:u})})}catch(S){throw g&&g(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,t,u),{cause:S.cause||S}):O.from(S,S&&S.code,t,u)}})};w.forEach(Qe,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const ri=t=>`- ${t}`,_a=t=>w.isFunction(t)||t===null||t===!1,li={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:i}=t;let s,a;const n={};for(let o=0;o<i;o++){s=t[o];let r;if(a=s,!_a(s)&&(a=Qe[(r=String(s)).toLowerCase()],a===void 0))throw new O(`Unknown adapter '${r}'`);if(a)break;n[r||"#"+o]=a}if(!a){const o=Object.entries(n).map(([c,h])=>`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let r=i?o.length>1?`since :
|
|
1
|
+
(function(te,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(te=typeof globalThis<"u"?globalThis:te||self,e(te.GSCLineupsReports={},te.Vue))})(this,function(te,e){"use strict";function $t(t,i){return function(){return t.apply(i,arguments)}}const{toString:es}=Object.prototype,{getPrototypeOf:xe}=Object,{iterator:we,toStringTag:Ft}=Symbol,Ce=(t=>i=>{const s=es.call(i);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),G=t=>(t=t.toLowerCase(),i=>Ce(i)===t),Se=t=>i=>typeof i===t,{isArray:le}=Array,pe=Se("undefined");function ts(t){return t!==null&&!pe(t)&&t.constructor!==null&&!pe(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Bt=G("ArrayBuffer");function is(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Bt(t.buffer),i}const ss=Se("string"),x=Se("function"),zt=Se("number"),ke=t=>t!==null&&typeof t=="object",as=t=>t===!0||t===!1,Ee=t=>{if(Ce(t)!=="object")return!1;const i=xe(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Ft in t)&&!(we in t)},ns=G("Date"),os=G("File"),rs=G("Blob"),ls=G("FileList"),cs=t=>ke(t)&&x(t.pipe),ds=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||x(t.append)&&((i=Ce(t))==="formdata"||i==="object"&&x(t.toString)&&t.toString()==="[object FormData]"))},ms=G("URLSearchParams"),[hs,ps,fs,gs]=["ReadableStream","Request","Response","Headers"].map(G),us=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fe(t,i,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let a,n;if(typeof t!="object"&&(t=[t]),le(t))for(a=0,n=t.length;a<n;a++)i.call(null,t[a],a,t);else{const o=s?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let c;for(a=0;a<r;a++)c=o[a],i.call(null,t[c],c,t)}}function Rt(t,i){i=i.toLowerCase();const s=Object.keys(t);let a=s.length,n;for(;a-- >0;)if(n=s[a],i===n.toLowerCase())return n;return null}const ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dt=t=>!pe(t)&&t!==ie;function We(){const{caseless:t}=Dt(this)&&this||{},i={},s=(a,n)=>{const o=t&&Rt(i,n)||n;Ee(i[o])&&Ee(a)?i[o]=We(i[o],a):Ee(a)?i[o]=We({},a):le(a)?i[o]=a.slice():i[o]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&fe(arguments[a],s);return i}const ys=(t,i,s,{allOwnKeys:a}={})=>(fe(i,(n,o)=>{s&&x(n)?t[o]=$t(n,s):t[o]=n},{allOwnKeys:a}),t),_s=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bs=(t,i,s,a)=>{t.prototype=Object.create(i.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),s&&Object.assign(t.prototype,s)},ws=(t,i,s,a)=>{let n,o,r;const c={};if(i=i||{},t==null)return i;do{for(n=Object.getOwnPropertyNames(t),o=n.length;o-- >0;)r=n[o],(!a||a(r,t,i))&&!c[r]&&(i[r]=t[r],c[r]=!0);t=s!==!1&&xe(t)}while(t&&(!s||s(t,i))&&t!==Object.prototype);return i},Cs=(t,i,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=i.length;const a=t.indexOf(i,s);return a!==-1&&a===s},Ss=t=>{if(!t)return null;if(le(t))return t;let i=t.length;if(!zt(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=t[i];return s},ks=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&xe(Uint8Array)),Es=(t,i)=>{const a=(t&&t[we]).call(t);let n;for(;(n=a.next())&&!n.done;){const o=n.value;i.call(t,o[0],o[1])}},Is=(t,i)=>{let s;const a=[];for(;(s=t.exec(i))!==null;)a.push(s);return a},Vs=G("HTMLFormElement"),Ns=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,a,n){return a.toUpperCase()+n}),Mt=(({hasOwnProperty:t})=>(i,s)=>t.call(i,s))(Object.prototype),Ts=G("RegExp"),At=(t,i)=>{const s=Object.getOwnPropertyDescriptors(t),a={};fe(s,(n,o)=>{let r;(r=i(n,o,t))!==!1&&(a[o]=r||n)}),Object.defineProperties(t,a)},Os=t=>{At(t,(i,s)=>{if(x(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const a=t[s];if(x(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},$s=(t,i)=>{const s={},a=n=>{n.forEach(o=>{s[o]=!0})};return le(t)?a(t):a(String(t).split(i)),s},Fs=()=>{},Bs=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function zs(t){return!!(t&&x(t.append)&&t[Ft]==="FormData"&&t[we])}const Rs=t=>{const i=new Array(10),s=(a,n)=>{if(ke(a)){if(i.indexOf(a)>=0)return;if(!("toJSON"in a)){i[n]=a;const o=le(a)?[]:{};return fe(a,(r,c)=>{const h=s(r,n+1);!pe(h)&&(o[c]=h)}),i[n]=void 0,o}}return a};return s(t,0)},Ds=G("AsyncFunction"),Ms=t=>t&&(ke(t)||x(t))&&x(t.then)&&x(t.catch),jt=((t,i)=>t?setImmediate:i?((s,a)=>(ie.addEventListener("message",({source:n,data:o})=>{n===ie&&o===s&&a.length&&a.shift()()},!1),n=>{a.push(n),ie.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",x(ie.postMessage)),As=typeof queueMicrotask<"u"?queueMicrotask.bind(ie):typeof process<"u"&&process.nextTick||jt,w={isArray:le,isArrayBuffer:Bt,isBuffer:ts,isFormData:ds,isArrayBufferView:is,isString:ss,isNumber:zt,isBoolean:as,isObject:ke,isPlainObject:Ee,isReadableStream:hs,isRequest:ps,isResponse:fs,isHeaders:gs,isUndefined:pe,isDate:ns,isFile:os,isBlob:rs,isRegExp:Ts,isFunction:x,isStream:cs,isURLSearchParams:ms,isTypedArray:ks,isFileList:ls,forEach:fe,merge:We,extend:ys,trim:us,stripBOM:_s,inherits:bs,toFlatObject:ws,kindOf:Ce,kindOfTest:G,endsWith:Cs,toArray:Ss,forEachEntry:Es,matchAll:Is,isHTMLForm:Vs,hasOwnProperty:Mt,hasOwnProp:Mt,reduceDescriptors:At,freezeMethods:Os,toObjectSet:$s,toCamelCase:Ns,noop:Fs,toFiniteNumber:Bs,findKey:Rt,global:ie,isContextDefined:Dt,isSpecCompliantForm:zs,toJSONObject:Rs,isAsyncFn:Ds,isThenable:Ms,setImmediate:jt,asap:As,isIterable:t=>t!=null&&x(t[we])};function O(t,i,s,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}w.inherits(O,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.status}}});const Lt=O.prototype,Ut={};["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(t=>{Ut[t]={value:t}}),Object.defineProperties(O,Ut),Object.defineProperty(Lt,"isAxiosError",{value:!0}),O.from=(t,i,s,a,n,o)=>{const r=Object.create(Lt);return w.toFlatObject(t,r,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),O.call(r,t.message,i,s,a,n),r.cause=t,r.name=t.name,o&&Object.assign(r,o),r};const js=null;function qe(t){return w.isPlainObject(t)||w.isArray(t)}function Pt(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Ht(t,i,s){return t?t.concat(i).map(function(n,o){return n=Pt(n),!s&&o?"["+n+"]":n}).join(s?".":""):i}function Ls(t){return w.isArray(t)&&!t.some(qe)}const Us=w.toFlatObject(w,{},null,function(i){return/^is[A-Z]/.test(i)});function Ie(t,i,s){if(!w.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,s=w.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!w.isUndefined(m[g])});const a=s.metaTokens,n=s.visitor||p,o=s.dots,r=s.indexes,h=(s.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(i);if(!w.isFunction(n))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(w.isDate(y))return y.toISOString();if(w.isBoolean(y))return y.toString();if(!h&&w.isBlob(y))throw new O("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(y)||w.isTypedArray(y)?h&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function p(y,g,m){let S=y;if(y&&!m&&typeof y=="object"){if(w.endsWith(g,"{}"))g=a?g:g.slice(0,-2),y=JSON.stringify(y);else if(w.isArray(y)&&Ls(y)||(w.isFileList(y)||w.endsWith(g,"[]"))&&(S=w.toArray(y)))return g=Pt(g),S.forEach(function(_,d){!(w.isUndefined(_)||_===null)&&i.append(r===!0?Ht([g],d,o):r===null?g:g+"[]",f(_))}),!1}return qe(y)?!0:(i.append(Ht(m,g,o),f(y)),!1)}const u=[],l=Object.assign(Us,{defaultVisitor:p,convertValue:f,isVisitable:qe});function C(y,g){if(!w.isUndefined(y)){if(u.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(y),w.forEach(y,function(S,N){(!(w.isUndefined(S)||S===null)&&n.call(i,S,w.isString(N)?N.trim():N,g,l))===!0&&C(S,g?g.concat(N):[N])}),u.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return C(t),i}function xt(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Xe(t,i){this._pairs=[],t&&Ie(t,this,i)}const Wt=Xe.prototype;Wt.append=function(i,s){this._pairs.push([i,s])},Wt.toString=function(i){const s=i?function(a){return i.call(this,a,xt)}:xt;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};function Ps(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qt(t,i,s){if(!i)return t;const a=s&&s.encode||Ps;w.isFunction(s)&&(s={serialize:s});const n=s&&s.serialize;let o;if(n?o=n(i,s):o=w.isURLSearchParams(i)?i.toString():new Xe(i,s).toString(a),o){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Xt{constructor(){this.handlers=[]}use(i,s,a){return this.handlers.push({fulfilled:i,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){w.forEach(this.handlers,function(a){a!==null&&i(a)})}}const Gt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ge=typeof window<"u"&&typeof document<"u",Je=typeof navigator=="object"&&navigator||void 0,xs=Ge&&(!Je||["ReactNative","NativeScript","NS"].indexOf(Je.product)<0),Ws=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qs=Ge&&window.location.href||"http://localhost",U={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ge,hasStandardBrowserEnv:xs,hasStandardBrowserWebWorkerEnv:Ws,navigator:Je,origin:qs},Symbol.toStringTag,{value:"Module"})),...Hs};function Xs(t,i){return Ie(t,new U.classes.URLSearchParams,Object.assign({visitor:function(s,a,n,o){return U.isNode&&w.isBuffer(s)?(this.append(a,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},i))}function Gs(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Js(t){const i={},s=Object.keys(t);let a;const n=s.length;let o;for(a=0;a<n;a++)o=s[a],i[o]=t[o];return i}function Jt(t){function i(s,a,n,o){let r=s[o++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=o>=s.length;return r=!r&&w.isArray(n)?n.length:r,h?(w.hasOwnProp(n,r)?n[r]=[n[r],a]:n[r]=a,!c):((!n[r]||!w.isObject(n[r]))&&(n[r]=[]),i(s,a,n[r],o)&&w.isArray(n[r])&&(n[r]=Js(n[r])),!c)}if(w.isFormData(t)&&w.isFunction(t.entries)){const s={};return w.forEachEntry(t,(a,n)=>{i(Gs(a),n,s,0)}),s}return null}function Ys(t,i,s){if(w.isString(t))try{return(i||JSON.parse)(t),w.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(t)}const ge={transitional:Gt,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const a=s.getContentType()||"",n=a.indexOf("application/json")>-1,o=w.isObject(i);if(o&&w.isHTMLForm(i)&&(i=new FormData(i)),w.isFormData(i))return n?JSON.stringify(Jt(i)):i;if(w.isArrayBuffer(i)||w.isBuffer(i)||w.isStream(i)||w.isFile(i)||w.isBlob(i)||w.isReadableStream(i))return i;if(w.isArrayBufferView(i))return i.buffer;if(w.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let c;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Xs(i,this.formSerializer).toString();if((c=w.isFileList(i))||a.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Ie(c?{"files[]":i}:i,h&&new h,this.formSerializer)}}return o||n?(s.setContentType("application/json",!1),Ys(i)):i}],transformResponse:[function(i){const s=this.transitional||ge.transitional,a=s&&s.forcedJSONParsing,n=this.responseType==="json";if(w.isResponse(i)||w.isReadableStream(i))return i;if(i&&w.isString(i)&&(a&&!this.responseType||n)){const r=!(s&&s.silentJSONParsing)&&n;try{return JSON.parse(i)}catch(c){if(r)throw c.name==="SyntaxError"?O.from(c,O.ERR_BAD_RESPONSE,this,null,this.response):c}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{ge.headers[t]={}});const Ks=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"]),Zs=t=>{const i={};let s,a,n;return t&&t.split(`
|
|
2
|
+
`).forEach(function(r){n=r.indexOf(":"),s=r.substring(0,n).trim().toLowerCase(),a=r.substring(n+1).trim(),!(!s||i[s]&&Ks[s])&&(s==="set-cookie"?i[s]?i[s].push(a):i[s]=[a]:i[s]=i[s]?i[s]+", "+a:a)}),i},Yt=Symbol("internals");function ue(t){return t&&String(t).trim().toLowerCase()}function Ve(t){return t===!1||t==null?t:w.isArray(t)?t.map(Ve):String(t)}function Qs(t){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=s.exec(t);)i[a[1]]=a[2];return i}const vs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ye(t,i,s,a,n){if(w.isFunction(a))return a.call(this,i,s);if(n&&(i=s),!!w.isString(i)){if(w.isString(a))return i.indexOf(a)!==-1;if(w.isRegExp(a))return a.test(i)}}function ea(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,a)=>s.toUpperCase()+a)}function ta(t,i){const s=w.toCamelCase(" "+i);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+s,{value:function(n,o,r){return this[a].call(this,i,n,o,r)},configurable:!0})})}let W=class{constructor(i){i&&this.set(i)}set(i,s,a){const n=this;function o(c,h,f){const p=ue(h);if(!p)throw new Error("header name must be a non-empty string");const u=w.findKey(n,p);(!u||n[u]===void 0||f===!0||f===void 0&&n[u]!==!1)&&(n[u||h]=Ve(c))}const r=(c,h)=>w.forEach(c,(f,p)=>o(f,p,h));if(w.isPlainObject(i)||i instanceof this.constructor)r(i,s);else if(w.isString(i)&&(i=i.trim())&&!vs(i))r(Zs(i),s);else if(w.isObject(i)&&w.isIterable(i)){let c={},h,f;for(const p of i){if(!w.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[f=p[0]]=(h=c[f])?w.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}r(c,s)}else i!=null&&o(s,i,a);return this}get(i,s){if(i=ue(i),i){const a=w.findKey(this,i);if(a){const n=this[a];if(!s)return n;if(s===!0)return Qs(n);if(w.isFunction(s))return s.call(this,n,a);if(w.isRegExp(s))return s.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=ue(i),i){const a=w.findKey(this,i);return!!(a&&this[a]!==void 0&&(!s||Ye(this,this[a],a,s)))}return!1}delete(i,s){const a=this;let n=!1;function o(r){if(r=ue(r),r){const c=w.findKey(a,r);c&&(!s||Ye(a,a[c],c,s))&&(delete a[c],n=!0)}}return w.isArray(i)?i.forEach(o):o(i),n}clear(i){const s=Object.keys(this);let a=s.length,n=!1;for(;a--;){const o=s[a];(!i||Ye(this,this[o],o,i,!0))&&(delete this[o],n=!0)}return n}normalize(i){const s=this,a={};return w.forEach(this,(n,o)=>{const r=w.findKey(a,o);if(r){s[r]=Ve(n),delete s[o];return}const c=i?ea(o):String(o).trim();c!==o&&delete s[o],s[c]=Ve(n),a[c]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return w.forEach(this,(a,n)=>{a!=null&&a!==!1&&(s[n]=i&&w.isArray(a)?a.join(", "):a)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const a=new this(i);return s.forEach(n=>a.set(n)),a}static accessor(i){const a=(this[Yt]=this[Yt]={accessors:{}}).accessors,n=this.prototype;function o(r){const c=ue(r);a[c]||(ta(n,r),a[c]=!0)}return w.isArray(i)?i.forEach(o):o(i),this}};W.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(W.prototype,({value:t},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(a){this[s]=a}}}),w.freezeMethods(W);function Ke(t,i){const s=this||ge,a=i||s,n=W.from(a.headers);let o=a.data;return w.forEach(t,function(c){o=c.call(s,o,n.normalize(),i?i.status:void 0)}),n.normalize(),o}function Kt(t){return!!(t&&t.__CANCEL__)}function ce(t,i,s){O.call(this,t??"canceled",O.ERR_CANCELED,i,s),this.name="CanceledError"}w.inherits(ce,O,{__CANCEL__:!0});function Zt(t,i,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?t(s):i(new O("Request failed with status code "+s.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ia(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function sa(t,i){t=t||10;const s=new Array(t),a=new Array(t);let n=0,o=0,r;return i=i!==void 0?i:1e3,function(h){const f=Date.now(),p=a[o];r||(r=f),s[n]=h,a[n]=f;let u=o,l=0;for(;u!==n;)l+=s[u++],u=u%t;if(n=(n+1)%t,n===o&&(o=(o+1)%t),f-r<i)return;const C=p&&f-p;return C?Math.round(l*1e3/C):void 0}}function aa(t,i){let s=0,a=1e3/i,n,o;const r=(f,p=Date.now())=>{s=p,n=null,o&&(clearTimeout(o),o=null),t.apply(null,f)};return[(...f)=>{const p=Date.now(),u=p-s;u>=a?r(f,p):(n=f,o||(o=setTimeout(()=>{o=null,r(n)},a-u)))},()=>n&&r(n)]}const Ne=(t,i,s=3)=>{let a=0;const n=sa(50,250);return aa(o=>{const r=o.loaded,c=o.lengthComputable?o.total:void 0,h=r-a,f=n(h),p=r<=c;a=r;const u={loaded:r,total:c,progress:c?r/c:void 0,bytes:h,rate:f||void 0,estimated:f&&c&&p?(c-r)/f:void 0,event:o,lengthComputable:c!=null,[i?"download":"upload"]:!0};t(u)},s)},Qt=(t,i)=>{const s=t!=null;return[a=>i[0]({lengthComputable:s,total:t,loaded:a}),i[1]]},vt=t=>(...i)=>w.asap(()=>t(...i)),na=U.hasStandardBrowserEnv?((t,i)=>s=>(s=new URL(s,U.origin),t.protocol===s.protocol&&t.host===s.host&&(i||t.port===s.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,oa=U.hasStandardBrowserEnv?{write(t,i,s,a,n,o){const r=[t+"="+encodeURIComponent(i)];w.isNumber(s)&&r.push("expires="+new Date(s).toGMTString()),w.isString(a)&&r.push("path="+a),w.isString(n)&&r.push("domain="+n),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ra(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function la(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function ei(t,i,s){let a=!ra(i);return t&&(a||s==!1)?la(t,i):i}const ti=t=>t instanceof W?{...t}:t;function se(t,i){i=i||{};const s={};function a(f,p,u,l){return w.isPlainObject(f)&&w.isPlainObject(p)?w.merge.call({caseless:l},f,p):w.isPlainObject(p)?w.merge({},p):w.isArray(p)?p.slice():p}function n(f,p,u,l){if(w.isUndefined(p)){if(!w.isUndefined(f))return a(void 0,f,u,l)}else return a(f,p,u,l)}function o(f,p){if(!w.isUndefined(p))return a(void 0,p)}function r(f,p){if(w.isUndefined(p)){if(!w.isUndefined(f))return a(void 0,f)}else return a(void 0,p)}function c(f,p,u){if(u in i)return a(f,p);if(u in t)return a(void 0,f)}const h={url:o,method:o,data:o,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:(f,p,u)=>n(ti(f),ti(p),u,!0)};return w.forEach(Object.keys(Object.assign({},t,i)),function(p){const u=h[p]||n,l=u(t[p],i[p],p);w.isUndefined(l)&&u!==c||(s[p]=l)}),s}const ii=t=>{const i=se({},t);let{data:s,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:r,auth:c}=i;i.headers=r=W.from(r),i.url=qt(ei(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(w.isFormData(s)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((h=r.getContentType())!==!1){const[f,...p]=h?h.split(";").map(u=>u.trim()).filter(Boolean):[];r.setContentType([f||"multipart/form-data",...p].join("; "))}}if(U.hasStandardBrowserEnv&&(a&&w.isFunction(a)&&(a=a(i)),a||a!==!1&&na(i.url))){const f=n&&o&&oa.read(o);f&&r.set(n,f)}return i},ca=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(s,a){const n=ii(t);let o=n.data;const r=W.from(n.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:f}=n,p,u,l,C,y;function g(){C&&C(),y&&y(),n.cancelToken&&n.cancelToken.unsubscribe(p),n.signal&&n.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function S(){if(!m)return;const _=W.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),b={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:_,config:t,request:m};Zt(function(B){s(B),g()},function(B){a(B),g()},b),m=null}"onloadend"in m?m.onloadend=S:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(S)},m.onabort=function(){m&&(a(new O("Request aborted",O.ECONNABORTED,t,m)),m=null)},m.onerror=function(){a(new O("Network Error",O.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let d=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||Gt;n.timeoutErrorMessage&&(d=n.timeoutErrorMessage),a(new O(d,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,m)),m=null},o===void 0&&r.setContentType(null),"setRequestHeader"in m&&w.forEach(r.toJSON(),function(d,b){m.setRequestHeader(b,d)}),w.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),c&&c!=="json"&&(m.responseType=n.responseType),f&&([l,y]=Ne(f,!0),m.addEventListener("progress",l)),h&&m.upload&&([u,C]=Ne(h),m.upload.addEventListener("progress",u),m.upload.addEventListener("loadend",C)),(n.cancelToken||n.signal)&&(p=_=>{m&&(a(!_||_.type?new ce(null,t,m):_),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(p),n.signal&&(n.signal.aborted?p():n.signal.addEventListener("abort",p)));const N=ia(n.url);if(N&&U.protocols.indexOf(N)===-1){a(new O("Unsupported protocol "+N+":",O.ERR_BAD_REQUEST,t));return}m.send(o||null)})},da=(t,i)=>{const{length:s}=t=t?t.filter(Boolean):[];if(i||s){let a=new AbortController,n;const o=function(f){if(!n){n=!0,c();const p=f instanceof Error?f:this.reason;a.abort(p instanceof O?p:new ce(p instanceof Error?p.message:p))}};let r=i&&setTimeout(()=>{r=null,o(new O(`timeout ${i} of ms exceeded`,O.ETIMEDOUT))},i);const c=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:h}=a;return h.unsubscribe=()=>w.asap(c),h}},ma=function*(t,i){let s=t.byteLength;if(s<i){yield t;return}let a=0,n;for(;a<s;)n=a+i,yield t.slice(a,n),a=n},ha=async function*(t,i){for await(const s of pa(t))yield*ma(s,i)},pa=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:s,value:a}=await i.read();if(s)break;yield a}}finally{await i.cancel()}},si=(t,i,s,a)=>{const n=ha(t,i);let o=0,r,c=h=>{r||(r=!0,a&&a(h))};return new ReadableStream({async pull(h){try{const{done:f,value:p}=await n.next();if(f){c(),h.close();return}let u=p.byteLength;if(s){let l=o+=u;s(l)}h.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(h){return c(h),n.return()}},{highWaterMark:2})},Te=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ai=Te&&typeof ReadableStream=="function",fa=Te&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ni=(t,...i)=>{try{return!!t(...i)}catch{return!1}},ga=ai&&ni(()=>{let t=!1;const i=new Request(U.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),oi=64*1024,Ze=ai&&ni(()=>w.isReadableStream(new Response("").body)),Oe={stream:Ze&&(t=>t.body)};Te&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Oe[i]&&(Oe[i]=w.isFunction(t[i])?s=>s[i]():(s,a)=>{throw new O(`Response type '${i}' is not supported`,O.ERR_NOT_SUPPORT,a)})})})(new Response);const ua=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(U.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await fa(t)).byteLength},ya=async(t,i)=>{const s=w.toFiniteNumber(t.getContentLength());return s??ua(i)},Qe={http:js,xhr:ca,fetch:Te&&(async t=>{let{url:i,method:s,data:a,signal:n,cancelToken:o,timeout:r,onDownloadProgress:c,onUploadProgress:h,responseType:f,headers:p,withCredentials:u="same-origin",fetchOptions:l}=ii(t);f=f?(f+"").toLowerCase():"text";let C=da([n,o&&o.toAbortSignal()],r),y;const g=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let m;try{if(h&&ga&&s!=="get"&&s!=="head"&&(m=await ya(p,a))!==0){let b=new Request(i,{method:"POST",body:a,duplex:"half"}),E;if(w.isFormData(a)&&(E=b.headers.get("content-type"))&&p.setContentType(E),b.body){const[B,V]=Qt(m,Ne(vt(h)));a=si(b.body,oi,B,V)}}w.isString(u)||(u=u?"include":"omit");const S="credentials"in Request.prototype;y=new Request(i,{...l,signal:C,method:s.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",credentials:S?u:void 0});let N=await fetch(y,l);const _=Ze&&(f==="stream"||f==="response");if(Ze&&(c||_&&g)){const b={};["status","statusText","headers"].forEach(R=>{b[R]=N[R]});const E=w.toFiniteNumber(N.headers.get("content-length")),[B,V]=c&&Qt(E,Ne(vt(c),!0))||[];N=new Response(si(N.body,oi,B,()=>{V&&V(),g&&g()}),b)}f=f||"text";let d=await Oe[w.findKey(Oe,f)||"text"](N,t);return!_&&g&&g(),await new Promise((b,E)=>{Zt(b,E,{data:d,headers:W.from(N.headers),status:N.status,statusText:N.statusText,config:t,request:y})})}catch(S){throw g&&g(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,t,y),{cause:S.cause||S}):O.from(S,S&&S.code,t,y)}})};w.forEach(Qe,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const ri=t=>`- ${t}`,_a=t=>w.isFunction(t)||t===null||t===!1,li={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:i}=t;let s,a;const n={};for(let o=0;o<i;o++){s=t[o];let r;if(a=s,!_a(s)&&(a=Qe[(r=String(s)).toLowerCase()],a===void 0))throw new O(`Unknown adapter '${r}'`);if(a)break;n[r||"#"+o]=a}if(!a){const o=Object.entries(n).map(([c,h])=>`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let r=i?o.length>1?`since :
|
|
4
4
|
`+o.map(ri).join(`
|
|
5
5
|
`):" "+ri(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return a},adapters:Qe};function ve(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ce(null,t)}function ci(t){return ve(t),t.headers=W.from(t.headers),t.data=Ke.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),li.getAdapter(t.adapter||ge.adapter)(t).then(function(a){return ve(t),a.data=Ke.call(t,t.transformResponse,a),a.headers=W.from(a.headers),a},function(a){return Kt(a)||(ve(t),a&&a.response&&(a.response.data=Ke.call(t,t.transformResponse,a.response),a.response.headers=W.from(a.response.headers))),Promise.reject(a)})}const di="1.10.0",$e={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{$e[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const mi={};$e.transitional=function(i,s,a){function n(o,r){return"[Axios v"+di+"] Transitional option '"+o+"'"+r+(a?". "+a:"")}return(o,r,c)=>{if(i===!1)throw new O(n(r," has been removed"+(s?" in "+s:"")),O.ERR_DEPRECATED);return s&&!mi[r]&&(mi[r]=!0,console.warn(n(r," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(o,r,c):!0}},$e.spelling=function(i){return(s,a)=>(console.warn(`${a} is likely a misspelling of ${i}`),!0)};function ba(t,i,s){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let n=a.length;for(;n-- >0;){const o=a[n],r=i[o];if(r){const c=t[o],h=c===void 0||r(c,o,t);if(h!==!0)throw new O("option "+o+" must be "+h,O.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const Fe={assertOptions:ba,validators:$e},K=Fe.validators;let ae=class{constructor(i){this.defaults=i||{},this.interceptors={request:new Xt,response:new Xt}}async request(i,s){try{return await this._request(i,s)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?o&&!String(a.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
6
|
-
`+o):a.stack=o}catch{}}throw a}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=se(this.defaults,s);const{transitional:a,paramsSerializer:n,headers:o}=s;a!==void 0&&Fe.assertOptions(a,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1),n!=null&&(w.isFunction(n)?s.paramsSerializer={serialize:n}:Fe.assertOptions(n,{encode:K.function,serialize:K.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Fe.assertOptions(s,{baseUrl:K.spelling("baseURL"),withXsrfToken:K.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let r=o&&w.merge(o.common,o[s.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),s.headers=W.concat(r,o);const c=[];let h=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(s)===!1||(h=h&&g.synchronous,c.unshift(g.fulfilled,g.rejected))});const f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let p,y=0,l;if(!h){const u=[ci.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,f),l=u.length,p=Promise.resolve(s);y<l;)p=p.then(u[y++],u[y++]);return p}l=c.length;let C=s;for(y=0;y<l;){const u=c[y++],g=c[y++];try{C=u(C)}catch(m){g.call(this,m);break}}try{p=ci.call(this,C)}catch(u){return Promise.reject(u)}for(y=0,l=f.length;y<l;)p=p.then(f[y++],f[y++]);return p}getUri(i){i=se(this.defaults,i);const s=ei(i.baseURL,i.url,i.allowAbsoluteUrls);return qt(s,i.params,i.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(i){ae.prototype[i]=function(s,a){return this.request(se(a||{},{method:i,url:s,data:(a||{}).data}))}}),w.forEach(["post","put","patch"],function(i){function s(a){return function(o,r,c){return this.request(se(c||{},{method:i,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}ae.prototype[i]=s(),ae.prototype[i+"Form"]=s(!0)});let wa=class vi{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o;const r=new Promise(c=>{a.subscribe(c),o=c}).then(n);return r.cancel=function(){a.unsubscribe(o)},r},i(function(o,r,c){a.reason||(a.reason=new ce(o,r,c),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=a=>{i.abort(a)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new vi(function(n){i=n}),cancel:i}}};function Ca(t){return function(s){return t.apply(null,s)}}function Sa(t){return w.isObject(t)&&t.isAxiosError===!0}const et={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(et).forEach(([t,i])=>{et[i]=t});function hi(t){const i=new ae(t),s=$t(ae.prototype.request,i);return w.extend(s,ae.prototype,i,{allOwnKeys:!0}),w.extend(s,i,null,{allOwnKeys:!0}),s.create=function(n){return hi(se(t,n))},s}const F=hi(ge);F.Axios=ae,F.CanceledError=ce,F.CancelToken=wa,F.isCancel=Kt,F.VERSION=di,F.toFormData=Ie,F.AxiosError=O,F.Cancel=F.CanceledError,F.all=function(i){return Promise.all(i)},F.spread=Ca,F.isAxiosError=Sa,F.mergeConfig=se,F.AxiosHeaders=W,F.formToJSON=t=>Gt(w.isHTMLForm(t)?new FormData(t):t),F.getAdapter=li.getAdapter,F.HttpStatusCode=et,F.default=F;const{Axios:_c,AxiosError:bc,CanceledError:wc,isCancel:Cc,CancelToken:Sc,VERSION:kc,all:Ec,Cancel:Ic,isAxiosError:Vc,spread:Nc,toFormData:Tc,AxiosHeaders:Oc,HttpStatusCode:$c,formToJSON:Fc,getAdapter:Bc,mergeConfig:zc}=F,Z=Object.create(null);Z.open="0",Z.close="1",Z.ping="2",Z.pong="3",Z.message="4",Z.upgrade="5",Z.noop="6";const Be=Object.create(null);Object.keys(Z).forEach(t=>{Be[Z[t]]=t});const tt={type:"error",data:"parser error"},pi=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",fi=typeof ArrayBuffer=="function",gi=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,it=({type:t,data:i},s,a)=>pi&&i instanceof Blob?s?a(i):yi(i,a):fi&&(i instanceof ArrayBuffer||gi(i))?s?a(i):yi(new Blob([i]),a):a(Z[t]+(i||"")),yi=(t,i)=>{const s=new FileReader;return s.onload=function(){const a=s.result.split(",")[1];i("b"+(a||""))},s.readAsDataURL(t)};function ui(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let st;function ka(t,i){if(pi&&t.data instanceof Blob)return t.data.arrayBuffer().then(ui).then(i);if(fi&&(t.data instanceof ArrayBuffer||gi(t.data)))return i(ui(t.data));it(t,!1,s=>{st||(st=new TextEncoder),i(st.encode(s))})}const _i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<_i.length;t++)ue[_i.charCodeAt(t)]=t;const Ea=t=>{let i=t.length*.75,s=t.length,a,n=0,o,r,c,h;t[t.length-1]==="="&&(i--,t[t.length-2]==="="&&i--);const f=new ArrayBuffer(i),p=new Uint8Array(f);for(a=0;a<s;a+=4)o=ue[t.charCodeAt(a)],r=ue[t.charCodeAt(a+1)],c=ue[t.charCodeAt(a+2)],h=ue[t.charCodeAt(a+3)],p[n++]=o<<2|r>>4,p[n++]=(r&15)<<4|c>>2,p[n++]=(c&3)<<6|h&63;return f},Ia=typeof ArrayBuffer=="function",at=(t,i)=>{if(typeof t!="string")return{type:"message",data:bi(t,i)};const s=t.charAt(0);return s==="b"?{type:"message",data:Va(t.substring(1),i)}:Be[s]?t.length>1?{type:Be[s],data:t.substring(1)}:{type:Be[s]}:tt},Va=(t,i)=>{if(Ia){const s=Ea(t);return bi(s,i)}else return{base64:!0,data:t}},bi=(t,i)=>{switch(i){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},wi="",Na=(t,i)=>{const s=t.length,a=new Array(s);let n=0;t.forEach((o,r)=>{it(o,!1,c=>{a[r]=c,++n===s&&i(a.join(wi))})})},Ta=(t,i)=>{const s=t.split(wi),a=[];for(let n=0;n<s.length;n++){const o=at(s[n],i);if(a.push(o),o.type==="error")break}return a};function Oa(){return new TransformStream({transform(t,i){ka(t,s=>{const a=s.length;let n;if(a<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,a);else if(a<65536){n=new Uint8Array(3);const o=new DataView(n.buffer);o.setUint8(0,126),o.setUint16(1,a)}else{n=new Uint8Array(9);const o=new DataView(n.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(a))}t.data&&typeof t.data!="string"&&(n[0]|=128),i.enqueue(n),i.enqueue(s)})}})}let nt;function ze(t){return t.reduce((i,s)=>i+s.length,0)}function Re(t,i){if(t[0].length===i)return t.shift();const s=new Uint8Array(i);let a=0;for(let n=0;n<i;n++)s[n]=t[0][a++],a===t[0].length&&(t.shift(),a=0);return t.length&&a<t[0].length&&(t[0]=t[0].slice(a)),s}function $a(t,i){nt||(nt=new TextDecoder);const s=[];let a=0,n=-1,o=!1;return new TransformStream({transform(r,c){for(s.push(r);;){if(a===0){if(ze(s)<1)break;const h=Re(s,1);o=(h[0]&128)===128,n=h[0]&127,n<126?a=3:n===126?a=1:a=2}else if(a===1){if(ze(s)<2)break;const h=Re(s,2);n=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),a=3}else if(a===2){if(ze(s)<8)break;const h=Re(s,8),f=new DataView(h.buffer,h.byteOffset,h.length),p=f.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(tt);break}n=p*Math.pow(2,32)+f.getUint32(4),a=3}else{if(ze(s)<n)break;const h=Re(s,n);c.enqueue(at(o?h:nt.decode(h),i)),a=0}if(n===0||n>t){c.enqueue(tt);break}}}})}const Ci=4;function M(t){if(t)return Fa(t)}function Fa(t){for(var i in M.prototype)t[i]=M.prototype[i];return t}M.prototype.on=M.prototype.addEventListener=function(t,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(i),this},M.prototype.once=function(t,i){function s(){this.off(t,s),i.apply(this,arguments)}return s.fn=i,this.on(t,s),this},M.prototype.off=M.prototype.removeListener=M.prototype.removeAllListeners=M.prototype.removeEventListener=function(t,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+t];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var a,n=0;n<s.length;n++)if(a=s[n],a===i||a.fn===i){s.splice(n,1);break}return s.length===0&&delete this._callbacks["$"+t],this},M.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),s=this._callbacks["$"+t],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(s){s=s.slice(0);for(var a=0,n=s.length;a<n;++a)s[a].apply(this,i)}return this},M.prototype.emitReserved=M.prototype.emit,M.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},M.prototype.hasListeners=function(t){return!!this.listeners(t).length};const De=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,s)=>s(i,0),q=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ba="arraybuffer";function Rc(){}function Si(t,...i){return i.reduce((s,a)=>(t.hasOwnProperty(a)&&(s[a]=t[a]),s),{})}const za=q.setTimeout,Ra=q.clearTimeout;function Me(t,i){i.useNativeTimers?(t.setTimeoutFn=za.bind(q),t.clearTimeoutFn=Ra.bind(q)):(t.setTimeoutFn=q.setTimeout.bind(q),t.clearTimeoutFn=q.clearTimeout.bind(q))}const Da=1.33;function Ma(t){return typeof t=="string"?Aa(t):Math.ceil((t.byteLength||t.size)*Da)}function Aa(t){let i=0,s=0;for(let a=0,n=t.length;a<n;a++)i=t.charCodeAt(a),i<128?s+=1:i<2048?s+=2:i<55296||i>=57344?s+=3:(a++,s+=4);return s}function ki(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ja(t){let i="";for(let s in t)t.hasOwnProperty(s)&&(i.length&&(i+="&"),i+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return i}function La(t){let i={},s=t.split("&");for(let a=0,n=s.length;a<n;a++){let o=s[a].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return i}class Ua extends Error{constructor(i,s,a){super(i),this.description=s,this.context=a,this.type="TransportError"}}class ot extends M{constructor(i){super(),this.writable=!1,Me(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,s,a){return super.emitReserved("error",new Ua(i,s,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const s=at(i,this.socket.binaryType);this.onPacket(s)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,s={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const s=ja(i);return s.length?"?"+s:""}}class Pa extends ot{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const s=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||s()})),this.writable||(a++,this.once("drain",function(){--a||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const s=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};Ta(i,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Na(i,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=ki()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(i,s)}}let Ei=!1;try{Ei=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ha=Ei;function xa(){}class Wa extends Pa{constructor(i){if(super(i),typeof location<"u"){const s=location.protocol==="https:";let a=location.port;a||(a=s?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||a!==i.port}}doWrite(i,s){const a=this.request({method:"POST",data:i});a.on("success",s),a.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(s,a)=>{this.onError("xhr poll error",s,a)}),this.pollXhr=i}}let de=class He extends M{constructor(i,s,a){super(),this.createRequest=i,Me(this,a),this._opts=a,this._method=a.method||"GET",this._uri=s,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var i;const s=Si(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(s);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&a.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var n;a.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=He.requestsCount++,He.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=xa,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete He.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};if(de.requestsCount=0,de.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ii);else if(typeof addEventListener=="function"){const t="onpagehide"in q?"pagehide":"unload";addEventListener(t,Ii,!1)}}function Ii(){for(let t in de.requests)de.requests.hasOwnProperty(t)&&de.requests[t].abort()}const qa=function(){const t=Vi({xdomain:!1});return t&&t.responseType!==null}();class Xa extends Wa{constructor(i){super(i);const s=i&&i.forceBase64;this.supportsBinary=qa&&!s}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new de(Vi,this.uri(),i)}}function Vi(t){const i=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Ha))return new XMLHttpRequest}catch{}if(!i)try{return new q[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Ni=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ja extends ot{get name(){return"websocket"}doOpen(){const i=this.uri(),s=this.opts.protocols,a=Ni?{}:Si(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,s,a)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;it(a,this.supportsBinary,o=>{try{this.doWrite(a,o)}catch{}n&&De(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=ki()),this.supportsBinary||(s.b64=1),this.createUri(i,s)}}const rt=q.WebSocket||q.MozWebSocket;class Ga extends Ja{createSocket(i,s,a){return Ni?new rt(i,s,a):s?new rt(i,s):new rt(i)}doWrite(i,s){this.ws.send(s)}}class Ya extends ot{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const s=$a(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=i.readable.pipeThrough(s).getReader(),n=Oa();n.readable.pipeTo(i.writable),this._writer=n.writable.getWriter();const o=()=>{a.read().then(({done:c,value:h})=>{c||(this.onPacket(h),o())}).catch(c=>{})};o();const r={type:"open"};this.query.sid&&(r.data=`{"sid":"${this.query.sid}"}`),this._writer.write(r).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;this._writer.write(a).then(()=>{n&&De(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const Ka={websocket:Ga,webtransport:Ya,polling:Xa},Za=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qa=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lt(t){if(t.length>8e3)throw"URI too long";const i=t,s=t.indexOf("["),a=t.indexOf("]");s!=-1&&a!=-1&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));let n=Za.exec(t||""),o={},r=14;for(;r--;)o[Qa[r]]=n[r]||"";return s!=-1&&a!=-1&&(o.source=i,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=va(o,o.path),o.queryKey=en(o,o.query),o}function va(t,i){const s=/\/{2,9}/g,a=i.replace(s,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&a.splice(0,1),i.slice(-1)=="/"&&a.splice(a.length-1,1),a}function en(t,i){const s={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,n,o){n&&(s[n]=o)}),s}const ct=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ae=[];ct&&addEventListener("offline",()=>{Ae.forEach(t=>t())},!1);class ee extends M{constructor(i,s){if(super(),this.binaryType=Ba,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(s=i,i=null),i){const a=lt(i);s.hostname=a.host,s.secure=a.protocol==="https"||a.protocol==="wss",s.port=a.port,a.query&&(s.query=a.query)}else s.host&&(s.hostname=lt(s.host).host);Me(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(a=>{const n=a.prototype.name;this.transports.push(n),this._transportsByName[n]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=La(this.opts.query)),ct&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ae.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const s=Object.assign({},this.opts.query);s.EIO=Ci,s.transport=i,this.id&&(s.sid=this.id);const a=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&ee.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(i);s.open(),this.setTransport(s)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",ee.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=i.data,this._onError(s);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let a=0;a<this.writeBuffer.length;a++){const n=this.writeBuffer[a].data;if(n&&(s+=Ma(n)),a>0&&s>this._maxPayload)return this.writeBuffer.slice(0,a);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,De(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,s,a){return this._sendPacket("message",i,s,a),this}send(i,s,a){return this._sendPacket("message",i,s,a),this}_sendPacket(i,s,a,n){if(typeof s=="function"&&(n=s,s=void 0),typeof a=="function"&&(n=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const o={type:i,data:s,options:a};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),i()},a=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():i()}):this.upgrading?a():i()),this}_onError(i){if(ee.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ct&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=Ae.indexOf(this._offlineEventListener);a!==-1&&Ae.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,s),this.writeBuffer=[],this._prevBufferLen=0}}}ee.protocol=Ci;class tn extends ee{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let s=this.createTransport(i),a=!1;ee.priorWebsocketSuccess=!1;const n=()=>{a||(s.send([{type:"ping",data:"probe"}]),s.once("packet",y=>{if(!a)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;ee.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(p(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const l=new Error("probe error");l.transport=s.name,this.emitReserved("upgradeError",l)}}))};function o(){a||(a=!0,p(),s.close(),s=null)}const r=y=>{const l=new Error("probe error: "+y);l.transport=s.name,o(),this.emitReserved("upgradeError",l)};function c(){r("transport closed")}function h(){r("socket closed")}function f(y){s&&y.name!==s.name&&o()}const p=()=>{s.removeListener("open",n),s.removeListener("error",r),s.removeListener("close",c),this.off("close",h),this.off("upgrading",f)};s.once("open",n),s.once("error",r),s.once("close",c),this.once("close",h),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{a||s.open()},200):s.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const s=[];for(let a=0;a<i.length;a++)~this.transports.indexOf(i[a])&&s.push(i[a]);return s}}let sn=class extends tn{constructor(i,s={}){const a=typeof i=="object"?i:s;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(n=>Ka[n]).filter(n=>!!n)),super(i,a)}};function an(t,i="",s){let a=t;s=s||typeof location<"u"&&location,t==null&&(t=s.protocol+"//"+s.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=s.protocol+t:t=s.host+t),/^(https?|wss?):\/\//.test(t)||(typeof s<"u"?t=s.protocol+"//"+t:t="https://"+t),a=lt(t)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const o=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+o+":"+a.port+i,a.href=a.protocol+"://"+o+(s&&s.port===a.port?"":":"+a.port),a}const nn=typeof ArrayBuffer=="function",on=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ti=Object.prototype.toString,rn=typeof Blob=="function"||typeof Blob<"u"&&Ti.call(Blob)==="[object BlobConstructor]",ln=typeof File=="function"||typeof File<"u"&&Ti.call(File)==="[object FileConstructor]";function dt(t){return nn&&(t instanceof ArrayBuffer||on(t))||rn&&t instanceof Blob||ln&&t instanceof File}function je(t,i){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)if(je(t[s]))return!0;return!1}if(dt(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return je(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&je(t[s]))return!0;return!1}function cn(t){const i=[],s=t.data,a=t;return a.data=mt(s,i),a.attachments=i.length,{packet:a,buffers:i}}function mt(t,i){if(!t)return t;if(dt(t)){const s={_placeholder:!0,num:i.length};return i.push(t),s}else if(Array.isArray(t)){const s=new Array(t.length);for(let a=0;a<t.length;a++)s[a]=mt(t[a],i);return s}else if(typeof t=="object"&&!(t instanceof Date)){const s={};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(s[a]=mt(t[a],i));return s}return t}function dn(t,i){return t.data=ht(t.data,i),delete t.attachments,t}function ht(t,i){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<i.length)return i[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let s=0;s<t.length;s++)t[s]=ht(t[s],i);else if(typeof t=="object")for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(t[s]=ht(t[s],i));return t}const mn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],hn=5;var $;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})($||($={}));class pn{constructor(i){this.replacer=i}encode(i){return(i.type===$.EVENT||i.type===$.ACK)&&je(i)?this.encodeAsBinary({type:i.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let s=""+i.type;return(i.type===$.BINARY_EVENT||i.type===$.BINARY_ACK)&&(s+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(s+=i.nsp+","),i.id!=null&&(s+=i.id),i.data!=null&&(s+=JSON.stringify(i.data,this.replacer)),s}encodeAsBinary(i){const s=cn(i),a=this.encodeAsString(s.packet),n=s.buffers;return n.unshift(a),n}}function Oi(t){return Object.prototype.toString.call(t)==="[object Object]"}class pt extends M{constructor(i){super(),this.reviver=i}add(i){let s;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(i);const a=s.type===$.BINARY_EVENT;a||s.type===$.BINARY_ACK?(s.type=a?$.EVENT:$.ACK,this.reconstructor=new fn(s),s.attachments===0&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else if(dt(i)||i.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(i),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let s=0;const a={type:Number(i.charAt(0))};if($[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===$.BINARY_EVENT||a.type===$.BINARY_ACK){const o=s+1;for(;i.charAt(++s)!=="-"&&s!=i.length;);const r=i.substring(o,s);if(r!=Number(r)||i.charAt(s)!=="-")throw new Error("Illegal attachments");a.attachments=Number(r)}if(i.charAt(s+1)==="/"){const o=s+1;for(;++s&&!(i.charAt(s)===","||s===i.length););a.nsp=i.substring(o,s)}else a.nsp="/";const n=i.charAt(s+1);if(n!==""&&Number(n)==n){const o=s+1;for(;++s;){const r=i.charAt(s);if(r==null||Number(r)!=r){--s;break}if(s===i.length)break}a.id=Number(i.substring(o,s+1))}if(i.charAt(++s)){const o=this.tryParse(i.substr(s));if(pt.isPayloadValid(a.type,o))a.data=o;else throw new Error("invalid payload")}return a}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,s){switch(i){case $.CONNECT:return Oi(s);case $.DISCONNECT:return s===void 0;case $.CONNECT_ERROR:return typeof s=="string"||Oi(s);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&mn.indexOf(s[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class fn{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const s=dn(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gn=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pt,Encoder:pn,get PacketType(){return $},protocol:hn},Symbol.toStringTag,{value:"Module"}));function G(t,i,s){return t.on(i,s),function(){t.off(i,s)}}const yn=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $i extends M{constructor(i,s,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=s,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[G(i,"open",this.onopen.bind(this)),G(i,"packet",this.onpacket.bind(this)),G(i,"error",this.onerror.bind(this)),G(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...s){var a,n,o;if(yn.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(s.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const r={type:$.EVENT,data:s};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const p=this.ids++,y=s.pop();this._registerAckCallback(p,y),r.id=p}const c=(n=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||n===void 0?void 0:n.writable,h=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!c||(h?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(i,s){var a;const n=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(n===void 0){this.acks[i]=s;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===i&&this.sendBuffer.splice(c,1);s.call(this,new Error("operation has timed out"))},n),r=(...c)=>{this.io.clearTimeoutFn(o),s.apply(this,c)};r.withError=!0,this.acks[i]=r}emitWithAck(i,...s){return new Promise((a,n)=>{const o=(r,c)=>r?n(r):a(c);o.withError=!0,s.push(o),this.emit(i,...s)})}_addToQueue(i){let s;typeof i[i.length-1]=="function"&&(s=i.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((n,...o)=>a!==this._queue[0]?void 0:(n!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(n)):(this._queue.shift(),s&&s(null,...o)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!i||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,s),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(a=>String(a.id)===i)){const a=this.acks[i];delete this.acks[i],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case $.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(i);break;case $.ACK:case $.BINARY_ACK:this.onack(i);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();const a=new Error(i.data.message);a.data=i.data.data,this.emitReserved("connect_error",a);break}}onevent(i){const s=i.data||[];i.id!=null&&s.push(this.ack(i.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const a of s)a.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const s=this;let a=!1;return function(...n){a||(a=!0,s.packet({type:$.ACK,id:i,data:n}))}}onack(i){const s=this.acks[i.id];typeof s=="function"&&(delete this.acks[i.id],s.withError&&i.data.unshift(null),s.apply(this,i.data))}onconnect(i,s){this.id=i,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const s=this._anyListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const s=this._anyOutgoingListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const a of s)a.apply(this,i.data)}}}function me(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}me.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),s=Math.floor(i*this.jitter*t);t=(Math.floor(i*10)&1)==0?t-s:t+s}return Math.min(t,this.max)|0},me.prototype.reset=function(){this.attempts=0},me.prototype.setMin=function(t){this.ms=t},me.prototype.setMax=function(t){this.max=t},me.prototype.setJitter=function(t){this.jitter=t};class ft extends M{constructor(i,s){var a;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(s=i,i=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,Me(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((a=s.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new me({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=i;const n=s.parser||gn;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var s;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(s=this.backoff)===null||s===void 0||s.setMin(i),this)}randomizationFactor(i){var s;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(s=this.backoff)===null||s===void 0||s.setJitter(i),this)}reconnectionDelayMax(i){var s;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(s=this.backoff)===null||s===void 0||s.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new sn(this.uri,this.opts);const s=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const n=G(s,"open",function(){a.onopen(),i&&i()}),o=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),i?i(c):this.maybeReconnectOnOpen()},r=G(s,"error",o);if(this._timeout!==!1){const c=this._timeout,h=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),s.close()},c);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(n),this.subs.push(r),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(G(i,"ping",this.onping.bind(this)),G(i,"data",this.ondata.bind(this)),G(i,"error",this.onerror.bind(this)),G(i,"close",this.onclose.bind(this)),G(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(s){this.onclose("parse error",s)}}ondecoded(i){De(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,s){let a=this.nsps[i];return a?this._autoConnect&&!a.active&&a.connect():(a=new $i(this,i,s),this.nsps[i]=a),a}_destroy(i){const s=Object.keys(this.nsps);for(const a of s)if(this.nsps[a].active)return;this._close()}_packet(i){const s=this.encoder.encode(i);for(let a=0;a<s.length;a++)this.engine.write(s[a],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,s){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(n=>{n?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",n)):i.onreconnect()}))},s);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const _e={};function Le(t,i){typeof t=="object"&&(i=t,t=void 0),i=i||{};const s=an(t,i.path||"/socket.io"),a=s.source,n=s.id,o=s.path,r=_e[n]&&o in _e[n].nsps,c=i.forceNew||i["force new connection"]||i.multiplex===!1||r;let h;return c?h=new ft(a,i):(_e[n]||(_e[n]=new ft(a,i)),h=_e[n]),s.query&&!i.query&&(i.query=s.queryKey),h.socket(s.path,i)}Object.assign(Le,{Manager:ft,Socket:$i,io:Le,connect:Le});const un=Le("https://golstats-live-server-sockets.azurewebsites.net/",{autoConnect:!1,transports:["websocket"]});function _n(){return un}function gt(t,i){const s=i||_n();s.connected&&s.emit("subscribe",{channel:t})}const Q=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},bn={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(t){(t.section!=="Historicos"||t.type==="Postmatch")&&this.$emit("open-profile",t)}},mounted(){}},wn={key:0,class:"gsc-item-player"},Cn={class:"gsc-num-player"},Sn={class:"gsc-cont-info-by-player"},kn={class:"gsc-cont-info-by-player-row1"},En={class:"shield-player-cont"},In=["src"],Vn={class:"gsc-cont-info-by-player-row2"},Nn={class:"gsc-cont-info-by-player-row2-line-data"},Tn={class:"cont-display-gsc"},On=["src"],$n={class:"gsc-cont-cards"},Fn={key:0,class:"gsc-yellow_card_div"},Bn={key:1,class:"gsc-red_card_div"},zn={key:2,class:"gsc-yellowred_card_div"},Rn={key:5,class:"gsc-goal_card_div_wrapper"},Dn={key:1,class:"gsc-item-player"},Mn={class:"gsc-num-player2"},An={class:"gsc-cont-info-by-player2"},jn={class:"gsc-cont-info-by-player-row2"},Ln={class:"gsc-cont-info-by-player-row2-line-data"},Un={class:"gsc-cont-cards2"},Pn={key:0,class:"gsc-yellow_card_div"},Hn={key:1,class:"gsc-red_card_div"},xn={key:2,class:"gsc-yellowred_card_div"},Wn={key:5,class:"gsc-goal_card_div_wrapper"},qn={class:"cont-display-gsc"},Xn=["src"],Jn={class:"gsc-cont-info-by-player-row1"},Gn={class:"shield-player-cont"},Yn=["src"];function Kn(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.type==1?(e.openBlock(),e.createElementBlock("div",wn,[e.createElementVNode("div",Cn,[s.data.shirt<10?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("0")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.data.shirt),1)]),e.createElementVNode("div",Sn,[e.createElementVNode("div",kn,[e.createElementVNode("div",En,[e.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,In)])]),e.createElementVNode("div",Vn,[e.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:e.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[0]||(i[0]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},e.toDisplayString(s.data.name),5),e.createElementVNode("div",Nn,[e.createElementVNode("div",Tn,[e.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,On),e.createElementVNode("div",{class:e.normalizeClass(s.position)},e.toDisplayString(s.data.position),3)]),e.createElementVNode("div",$n,[s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock("div",Fn)):e.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(e.openBlock(),e.createElementBlock("div",Bn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(e.openBlock(),e.createElementBlock("div",zn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("'"+e.toDisplayString(s.data.yellowcardmin),1)],64)):e.createCommentVNode("",!0),s.data.redcard>=1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode("'"+e.toDisplayString(s.data.redcardmin),1)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data.goalsMin,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[i[2]||(i[2]=e.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(e.openBlock(),e.createElementBlock("div",Rn,[i[3]||(i[3]=e.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(s.data.substitutionMin),1)])):e.createCommentVNode("",!0)])])])])])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",Mn,[s.data.shirt<10?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("0")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.data.shirt),1)]),e.createElementVNode("div",An,[e.createElementVNode("div",jn,[e.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:e.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[1]||(i[1]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},e.toDisplayString(s.data.name),5),e.createElementVNode("div",Ln,[e.createElementVNode("div",Un,[s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock("div",Pn)):e.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(e.openBlock(),e.createElementBlock("div",Hn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(e.openBlock(),e.createElementBlock("div",xn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("'"+e.toDisplayString(s.data.yellowcardmin),1)],64)):e.createCommentVNode("",!0),s.data.redcard>=1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode("'"+e.toDisplayString(s.data.redcardmin),1)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data.goalsMin,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[i[4]||(i[4]=e.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(e.openBlock(),e.createElementBlock("div",Wn,[i[5]||(i[5]=e.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(s.data.substitutionMin),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qn,[e.createElementVNode("div",{class:e.normalizeClass(s.position)},e.toDisplayString(s.data.position),3),e.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,Xn)])])]),e.createElementVNode("div",Jn,[e.createElementVNode("div",Gn,[e.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,Yn)])])])])):e.createCommentVNode("",!0)],64)}const Zn=Q(bn,[["render",Kn],["__scopeId","data-v-ce649720"]]);/**
|
|
6
|
+
`+o):a.stack=o}catch{}}throw a}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=se(this.defaults,s);const{transitional:a,paramsSerializer:n,headers:o}=s;a!==void 0&&Fe.assertOptions(a,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1),n!=null&&(w.isFunction(n)?s.paramsSerializer={serialize:n}:Fe.assertOptions(n,{encode:K.function,serialize:K.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Fe.assertOptions(s,{baseUrl:K.spelling("baseURL"),withXsrfToken:K.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let r=o&&w.merge(o.common,o[s.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),s.headers=W.concat(r,o);const c=[];let h=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(s)===!1||(h=h&&g.synchronous,c.unshift(g.fulfilled,g.rejected))});const f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let p,u=0,l;if(!h){const y=[ci.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,f),l=y.length,p=Promise.resolve(s);u<l;)p=p.then(y[u++],y[u++]);return p}l=c.length;let C=s;for(u=0;u<l;){const y=c[u++],g=c[u++];try{C=y(C)}catch(m){g.call(this,m);break}}try{p=ci.call(this,C)}catch(y){return Promise.reject(y)}for(u=0,l=f.length;u<l;)p=p.then(f[u++],f[u++]);return p}getUri(i){i=se(this.defaults,i);const s=ei(i.baseURL,i.url,i.allowAbsoluteUrls);return qt(s,i.params,i.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(i){ae.prototype[i]=function(s,a){return this.request(se(a||{},{method:i,url:s,data:(a||{}).data}))}}),w.forEach(["post","put","patch"],function(i){function s(a){return function(o,r,c){return this.request(se(c||{},{method:i,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}ae.prototype[i]=s(),ae.prototype[i+"Form"]=s(!0)});let wa=class vi{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o;const r=new Promise(c=>{a.subscribe(c),o=c}).then(n);return r.cancel=function(){a.unsubscribe(o)},r},i(function(o,r,c){a.reason||(a.reason=new ce(o,r,c),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=a=>{i.abort(a)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new vi(function(n){i=n}),cancel:i}}};function Ca(t){return function(s){return t.apply(null,s)}}function Sa(t){return w.isObject(t)&&t.isAxiosError===!0}const et={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(et).forEach(([t,i])=>{et[i]=t});function hi(t){const i=new ae(t),s=$t(ae.prototype.request,i);return w.extend(s,ae.prototype,i,{allOwnKeys:!0}),w.extend(s,i,null,{allOwnKeys:!0}),s.create=function(n){return hi(se(t,n))},s}const F=hi(ge);F.Axios=ae,F.CanceledError=ce,F.CancelToken=wa,F.isCancel=Kt,F.VERSION=di,F.toFormData=Ie,F.AxiosError=O,F.Cancel=F.CanceledError,F.all=function(i){return Promise.all(i)},F.spread=Ca,F.isAxiosError=Sa,F.mergeConfig=se,F.AxiosHeaders=W,F.formToJSON=t=>Jt(w.isHTMLForm(t)?new FormData(t):t),F.getAdapter=li.getAdapter,F.HttpStatusCode=et,F.default=F;const{Axios:_c,AxiosError:bc,CanceledError:wc,isCancel:Cc,CancelToken:Sc,VERSION:kc,all:Ec,Cancel:Ic,isAxiosError:Vc,spread:Nc,toFormData:Tc,AxiosHeaders:Oc,HttpStatusCode:$c,formToJSON:Fc,getAdapter:Bc,mergeConfig:zc}=F,Z=Object.create(null);Z.open="0",Z.close="1",Z.ping="2",Z.pong="3",Z.message="4",Z.upgrade="5",Z.noop="6";const Be=Object.create(null);Object.keys(Z).forEach(t=>{Be[Z[t]]=t});const tt={type:"error",data:"parser error"},pi=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",fi=typeof ArrayBuffer=="function",gi=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,it=({type:t,data:i},s,a)=>pi&&i instanceof Blob?s?a(i):ui(i,a):fi&&(i instanceof ArrayBuffer||gi(i))?s?a(i):ui(new Blob([i]),a):a(Z[t]+(i||"")),ui=(t,i)=>{const s=new FileReader;return s.onload=function(){const a=s.result.split(",")[1];i("b"+(a||""))},s.readAsDataURL(t)};function yi(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let st;function ka(t,i){if(pi&&t.data instanceof Blob)return t.data.arrayBuffer().then(yi).then(i);if(fi&&(t.data instanceof ArrayBuffer||gi(t.data)))return i(yi(t.data));it(t,!1,s=>{st||(st=new TextEncoder),i(st.encode(s))})}const _i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<_i.length;t++)ye[_i.charCodeAt(t)]=t;const Ea=t=>{let i=t.length*.75,s=t.length,a,n=0,o,r,c,h;t[t.length-1]==="="&&(i--,t[t.length-2]==="="&&i--);const f=new ArrayBuffer(i),p=new Uint8Array(f);for(a=0;a<s;a+=4)o=ye[t.charCodeAt(a)],r=ye[t.charCodeAt(a+1)],c=ye[t.charCodeAt(a+2)],h=ye[t.charCodeAt(a+3)],p[n++]=o<<2|r>>4,p[n++]=(r&15)<<4|c>>2,p[n++]=(c&3)<<6|h&63;return f},Ia=typeof ArrayBuffer=="function",at=(t,i)=>{if(typeof t!="string")return{type:"message",data:bi(t,i)};const s=t.charAt(0);return s==="b"?{type:"message",data:Va(t.substring(1),i)}:Be[s]?t.length>1?{type:Be[s],data:t.substring(1)}:{type:Be[s]}:tt},Va=(t,i)=>{if(Ia){const s=Ea(t);return bi(s,i)}else return{base64:!0,data:t}},bi=(t,i)=>{switch(i){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},wi="",Na=(t,i)=>{const s=t.length,a=new Array(s);let n=0;t.forEach((o,r)=>{it(o,!1,c=>{a[r]=c,++n===s&&i(a.join(wi))})})},Ta=(t,i)=>{const s=t.split(wi),a=[];for(let n=0;n<s.length;n++){const o=at(s[n],i);if(a.push(o),o.type==="error")break}return a};function Oa(){return new TransformStream({transform(t,i){ka(t,s=>{const a=s.length;let n;if(a<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,a);else if(a<65536){n=new Uint8Array(3);const o=new DataView(n.buffer);o.setUint8(0,126),o.setUint16(1,a)}else{n=new Uint8Array(9);const o=new DataView(n.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(a))}t.data&&typeof t.data!="string"&&(n[0]|=128),i.enqueue(n),i.enqueue(s)})}})}let nt;function ze(t){return t.reduce((i,s)=>i+s.length,0)}function Re(t,i){if(t[0].length===i)return t.shift();const s=new Uint8Array(i);let a=0;for(let n=0;n<i;n++)s[n]=t[0][a++],a===t[0].length&&(t.shift(),a=0);return t.length&&a<t[0].length&&(t[0]=t[0].slice(a)),s}function $a(t,i){nt||(nt=new TextDecoder);const s=[];let a=0,n=-1,o=!1;return new TransformStream({transform(r,c){for(s.push(r);;){if(a===0){if(ze(s)<1)break;const h=Re(s,1);o=(h[0]&128)===128,n=h[0]&127,n<126?a=3:n===126?a=1:a=2}else if(a===1){if(ze(s)<2)break;const h=Re(s,2);n=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),a=3}else if(a===2){if(ze(s)<8)break;const h=Re(s,8),f=new DataView(h.buffer,h.byteOffset,h.length),p=f.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(tt);break}n=p*Math.pow(2,32)+f.getUint32(4),a=3}else{if(ze(s)<n)break;const h=Re(s,n);c.enqueue(at(o?h:nt.decode(h),i)),a=0}if(n===0||n>t){c.enqueue(tt);break}}}})}const Ci=4;function M(t){if(t)return Fa(t)}function Fa(t){for(var i in M.prototype)t[i]=M.prototype[i];return t}M.prototype.on=M.prototype.addEventListener=function(t,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(i),this},M.prototype.once=function(t,i){function s(){this.off(t,s),i.apply(this,arguments)}return s.fn=i,this.on(t,s),this},M.prototype.off=M.prototype.removeListener=M.prototype.removeAllListeners=M.prototype.removeEventListener=function(t,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+t];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var a,n=0;n<s.length;n++)if(a=s[n],a===i||a.fn===i){s.splice(n,1);break}return s.length===0&&delete this._callbacks["$"+t],this},M.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),s=this._callbacks["$"+t],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(s){s=s.slice(0);for(var a=0,n=s.length;a<n;++a)s[a].apply(this,i)}return this},M.prototype.emitReserved=M.prototype.emit,M.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},M.prototype.hasListeners=function(t){return!!this.listeners(t).length};const De=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,s)=>s(i,0),q=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ba="arraybuffer";function Rc(){}function Si(t,...i){return i.reduce((s,a)=>(t.hasOwnProperty(a)&&(s[a]=t[a]),s),{})}const za=q.setTimeout,Ra=q.clearTimeout;function Me(t,i){i.useNativeTimers?(t.setTimeoutFn=za.bind(q),t.clearTimeoutFn=Ra.bind(q)):(t.setTimeoutFn=q.setTimeout.bind(q),t.clearTimeoutFn=q.clearTimeout.bind(q))}const Da=1.33;function Ma(t){return typeof t=="string"?Aa(t):Math.ceil((t.byteLength||t.size)*Da)}function Aa(t){let i=0,s=0;for(let a=0,n=t.length;a<n;a++)i=t.charCodeAt(a),i<128?s+=1:i<2048?s+=2:i<55296||i>=57344?s+=3:(a++,s+=4);return s}function ki(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ja(t){let i="";for(let s in t)t.hasOwnProperty(s)&&(i.length&&(i+="&"),i+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return i}function La(t){let i={},s=t.split("&");for(let a=0,n=s.length;a<n;a++){let o=s[a].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return i}class Ua extends Error{constructor(i,s,a){super(i),this.description=s,this.context=a,this.type="TransportError"}}class ot extends M{constructor(i){super(),this.writable=!1,Me(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,s,a){return super.emitReserved("error",new Ua(i,s,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const s=at(i,this.socket.binaryType);this.onPacket(s)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,s={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const s=ja(i);return s.length?"?"+s:""}}class Pa extends ot{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const s=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||s()})),this.writable||(a++,this.once("drain",function(){--a||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const s=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};Ta(i,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Na(i,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=ki()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(i,s)}}let Ei=!1;try{Ei=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ha=Ei;function xa(){}class Wa extends Pa{constructor(i){if(super(i),typeof location<"u"){const s=location.protocol==="https:";let a=location.port;a||(a=s?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||a!==i.port}}doWrite(i,s){const a=this.request({method:"POST",data:i});a.on("success",s),a.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(s,a)=>{this.onError("xhr poll error",s,a)}),this.pollXhr=i}}let de=class He extends M{constructor(i,s,a){super(),this.createRequest=i,Me(this,a),this._opts=a,this._method=a.method||"GET",this._uri=s,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var i;const s=Si(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(s);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&a.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var n;a.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=He.requestsCount++,He.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=xa,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete He.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};if(de.requestsCount=0,de.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ii);else if(typeof addEventListener=="function"){const t="onpagehide"in q?"pagehide":"unload";addEventListener(t,Ii,!1)}}function Ii(){for(let t in de.requests)de.requests.hasOwnProperty(t)&&de.requests[t].abort()}const qa=function(){const t=Vi({xdomain:!1});return t&&t.responseType!==null}();class Xa extends Wa{constructor(i){super(i);const s=i&&i.forceBase64;this.supportsBinary=qa&&!s}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new de(Vi,this.uri(),i)}}function Vi(t){const i=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Ha))return new XMLHttpRequest}catch{}if(!i)try{return new q[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Ni=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ga extends ot{get name(){return"websocket"}doOpen(){const i=this.uri(),s=this.opts.protocols,a=Ni?{}:Si(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,s,a)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;it(a,this.supportsBinary,o=>{try{this.doWrite(a,o)}catch{}n&&De(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=ki()),this.supportsBinary||(s.b64=1),this.createUri(i,s)}}const rt=q.WebSocket||q.MozWebSocket;class Ja extends Ga{createSocket(i,s,a){return Ni?new rt(i,s,a):s?new rt(i,s):new rt(i)}doWrite(i,s){this.ws.send(s)}}class Ya extends ot{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const s=$a(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=i.readable.pipeThrough(s).getReader(),n=Oa();n.readable.pipeTo(i.writable),this._writer=n.writable.getWriter();const o=()=>{a.read().then(({done:c,value:h})=>{c||(this.onPacket(h),o())}).catch(c=>{})};o();const r={type:"open"};this.query.sid&&(r.data=`{"sid":"${this.query.sid}"}`),this._writer.write(r).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;this._writer.write(a).then(()=>{n&&De(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const Ka={websocket:Ja,webtransport:Ya,polling:Xa},Za=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qa=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lt(t){if(t.length>8e3)throw"URI too long";const i=t,s=t.indexOf("["),a=t.indexOf("]");s!=-1&&a!=-1&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));let n=Za.exec(t||""),o={},r=14;for(;r--;)o[Qa[r]]=n[r]||"";return s!=-1&&a!=-1&&(o.source=i,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=va(o,o.path),o.queryKey=en(o,o.query),o}function va(t,i){const s=/\/{2,9}/g,a=i.replace(s,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&a.splice(0,1),i.slice(-1)=="/"&&a.splice(a.length-1,1),a}function en(t,i){const s={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,n,o){n&&(s[n]=o)}),s}const ct=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ae=[];ct&&addEventListener("offline",()=>{Ae.forEach(t=>t())},!1);class ee extends M{constructor(i,s){if(super(),this.binaryType=Ba,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(s=i,i=null),i){const a=lt(i);s.hostname=a.host,s.secure=a.protocol==="https"||a.protocol==="wss",s.port=a.port,a.query&&(s.query=a.query)}else s.host&&(s.hostname=lt(s.host).host);Me(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(a=>{const n=a.prototype.name;this.transports.push(n),this._transportsByName[n]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=La(this.opts.query)),ct&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ae.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const s=Object.assign({},this.opts.query);s.EIO=Ci,s.transport=i,this.id&&(s.sid=this.id);const a=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&ee.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(i);s.open(),this.setTransport(s)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",ee.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=i.data,this._onError(s);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let a=0;a<this.writeBuffer.length;a++){const n=this.writeBuffer[a].data;if(n&&(s+=Ma(n)),a>0&&s>this._maxPayload)return this.writeBuffer.slice(0,a);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,De(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,s,a){return this._sendPacket("message",i,s,a),this}send(i,s,a){return this._sendPacket("message",i,s,a),this}_sendPacket(i,s,a,n){if(typeof s=="function"&&(n=s,s=void 0),typeof a=="function"&&(n=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const o={type:i,data:s,options:a};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),i()},a=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():i()}):this.upgrading?a():i()),this}_onError(i){if(ee.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ct&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=Ae.indexOf(this._offlineEventListener);a!==-1&&Ae.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,s),this.writeBuffer=[],this._prevBufferLen=0}}}ee.protocol=Ci;class tn extends ee{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let s=this.createTransport(i),a=!1;ee.priorWebsocketSuccess=!1;const n=()=>{a||(s.send([{type:"ping",data:"probe"}]),s.once("packet",u=>{if(!a)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;ee.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(p(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const l=new Error("probe error");l.transport=s.name,this.emitReserved("upgradeError",l)}}))};function o(){a||(a=!0,p(),s.close(),s=null)}const r=u=>{const l=new Error("probe error: "+u);l.transport=s.name,o(),this.emitReserved("upgradeError",l)};function c(){r("transport closed")}function h(){r("socket closed")}function f(u){s&&u.name!==s.name&&o()}const p=()=>{s.removeListener("open",n),s.removeListener("error",r),s.removeListener("close",c),this.off("close",h),this.off("upgrading",f)};s.once("open",n),s.once("error",r),s.once("close",c),this.once("close",h),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{a||s.open()},200):s.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const s=[];for(let a=0;a<i.length;a++)~this.transports.indexOf(i[a])&&s.push(i[a]);return s}}let sn=class extends tn{constructor(i,s={}){const a=typeof i=="object"?i:s;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(n=>Ka[n]).filter(n=>!!n)),super(i,a)}};function an(t,i="",s){let a=t;s=s||typeof location<"u"&&location,t==null&&(t=s.protocol+"//"+s.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=s.protocol+t:t=s.host+t),/^(https?|wss?):\/\//.test(t)||(typeof s<"u"?t=s.protocol+"//"+t:t="https://"+t),a=lt(t)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const o=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+o+":"+a.port+i,a.href=a.protocol+"://"+o+(s&&s.port===a.port?"":":"+a.port),a}const nn=typeof ArrayBuffer=="function",on=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ti=Object.prototype.toString,rn=typeof Blob=="function"||typeof Blob<"u"&&Ti.call(Blob)==="[object BlobConstructor]",ln=typeof File=="function"||typeof File<"u"&&Ti.call(File)==="[object FileConstructor]";function dt(t){return nn&&(t instanceof ArrayBuffer||on(t))||rn&&t instanceof Blob||ln&&t instanceof File}function je(t,i){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)if(je(t[s]))return!0;return!1}if(dt(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return je(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&je(t[s]))return!0;return!1}function cn(t){const i=[],s=t.data,a=t;return a.data=mt(s,i),a.attachments=i.length,{packet:a,buffers:i}}function mt(t,i){if(!t)return t;if(dt(t)){const s={_placeholder:!0,num:i.length};return i.push(t),s}else if(Array.isArray(t)){const s=new Array(t.length);for(let a=0;a<t.length;a++)s[a]=mt(t[a],i);return s}else if(typeof t=="object"&&!(t instanceof Date)){const s={};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(s[a]=mt(t[a],i));return s}return t}function dn(t,i){return t.data=ht(t.data,i),delete t.attachments,t}function ht(t,i){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<i.length)return i[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let s=0;s<t.length;s++)t[s]=ht(t[s],i);else if(typeof t=="object")for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(t[s]=ht(t[s],i));return t}const mn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],hn=5;var $;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})($||($={}));class pn{constructor(i){this.replacer=i}encode(i){return(i.type===$.EVENT||i.type===$.ACK)&&je(i)?this.encodeAsBinary({type:i.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let s=""+i.type;return(i.type===$.BINARY_EVENT||i.type===$.BINARY_ACK)&&(s+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(s+=i.nsp+","),i.id!=null&&(s+=i.id),i.data!=null&&(s+=JSON.stringify(i.data,this.replacer)),s}encodeAsBinary(i){const s=cn(i),a=this.encodeAsString(s.packet),n=s.buffers;return n.unshift(a),n}}function Oi(t){return Object.prototype.toString.call(t)==="[object Object]"}class pt extends M{constructor(i){super(),this.reviver=i}add(i){let s;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(i);const a=s.type===$.BINARY_EVENT;a||s.type===$.BINARY_ACK?(s.type=a?$.EVENT:$.ACK,this.reconstructor=new fn(s),s.attachments===0&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else if(dt(i)||i.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(i),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let s=0;const a={type:Number(i.charAt(0))};if($[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===$.BINARY_EVENT||a.type===$.BINARY_ACK){const o=s+1;for(;i.charAt(++s)!=="-"&&s!=i.length;);const r=i.substring(o,s);if(r!=Number(r)||i.charAt(s)!=="-")throw new Error("Illegal attachments");a.attachments=Number(r)}if(i.charAt(s+1)==="/"){const o=s+1;for(;++s&&!(i.charAt(s)===","||s===i.length););a.nsp=i.substring(o,s)}else a.nsp="/";const n=i.charAt(s+1);if(n!==""&&Number(n)==n){const o=s+1;for(;++s;){const r=i.charAt(s);if(r==null||Number(r)!=r){--s;break}if(s===i.length)break}a.id=Number(i.substring(o,s+1))}if(i.charAt(++s)){const o=this.tryParse(i.substr(s));if(pt.isPayloadValid(a.type,o))a.data=o;else throw new Error("invalid payload")}return a}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,s){switch(i){case $.CONNECT:return Oi(s);case $.DISCONNECT:return s===void 0;case $.CONNECT_ERROR:return typeof s=="string"||Oi(s);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&mn.indexOf(s[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class fn{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const s=dn(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gn=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pt,Encoder:pn,get PacketType(){return $},protocol:hn},Symbol.toStringTag,{value:"Module"}));function J(t,i,s){return t.on(i,s),function(){t.off(i,s)}}const un=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $i extends M{constructor(i,s,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=s,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[J(i,"open",this.onopen.bind(this)),J(i,"packet",this.onpacket.bind(this)),J(i,"error",this.onerror.bind(this)),J(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...s){var a,n,o;if(un.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(s.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const r={type:$.EVENT,data:s};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const p=this.ids++,u=s.pop();this._registerAckCallback(p,u),r.id=p}const c=(n=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||n===void 0?void 0:n.writable,h=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!c||(h?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(i,s){var a;const n=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(n===void 0){this.acks[i]=s;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===i&&this.sendBuffer.splice(c,1);s.call(this,new Error("operation has timed out"))},n),r=(...c)=>{this.io.clearTimeoutFn(o),s.apply(this,c)};r.withError=!0,this.acks[i]=r}emitWithAck(i,...s){return new Promise((a,n)=>{const o=(r,c)=>r?n(r):a(c);o.withError=!0,s.push(o),this.emit(i,...s)})}_addToQueue(i){let s;typeof i[i.length-1]=="function"&&(s=i.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((n,...o)=>a!==this._queue[0]?void 0:(n!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(n)):(this._queue.shift(),s&&s(null,...o)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!i||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,s),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(a=>String(a.id)===i)){const a=this.acks[i];delete this.acks[i],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case $.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(i);break;case $.ACK:case $.BINARY_ACK:this.onack(i);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();const a=new Error(i.data.message);a.data=i.data.data,this.emitReserved("connect_error",a);break}}onevent(i){const s=i.data||[];i.id!=null&&s.push(this.ack(i.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const a of s)a.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const s=this;let a=!1;return function(...n){a||(a=!0,s.packet({type:$.ACK,id:i,data:n}))}}onack(i){const s=this.acks[i.id];typeof s=="function"&&(delete this.acks[i.id],s.withError&&i.data.unshift(null),s.apply(this,i.data))}onconnect(i,s){this.id=i,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const s=this._anyListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const s=this._anyOutgoingListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const a of s)a.apply(this,i.data)}}}function me(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}me.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),s=Math.floor(i*this.jitter*t);t=(Math.floor(i*10)&1)==0?t-s:t+s}return Math.min(t,this.max)|0},me.prototype.reset=function(){this.attempts=0},me.prototype.setMin=function(t){this.ms=t},me.prototype.setMax=function(t){this.max=t},me.prototype.setJitter=function(t){this.jitter=t};class ft extends M{constructor(i,s){var a;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(s=i,i=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,Me(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((a=s.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new me({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=i;const n=s.parser||gn;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var s;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(s=this.backoff)===null||s===void 0||s.setMin(i),this)}randomizationFactor(i){var s;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(s=this.backoff)===null||s===void 0||s.setJitter(i),this)}reconnectionDelayMax(i){var s;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(s=this.backoff)===null||s===void 0||s.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new sn(this.uri,this.opts);const s=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const n=J(s,"open",function(){a.onopen(),i&&i()}),o=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),i?i(c):this.maybeReconnectOnOpen()},r=J(s,"error",o);if(this._timeout!==!1){const c=this._timeout,h=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),s.close()},c);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(n),this.subs.push(r),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(J(i,"ping",this.onping.bind(this)),J(i,"data",this.ondata.bind(this)),J(i,"error",this.onerror.bind(this)),J(i,"close",this.onclose.bind(this)),J(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(s){this.onclose("parse error",s)}}ondecoded(i){De(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,s){let a=this.nsps[i];return a?this._autoConnect&&!a.active&&a.connect():(a=new $i(this,i,s),this.nsps[i]=a),a}_destroy(i){const s=Object.keys(this.nsps);for(const a of s)if(this.nsps[a].active)return;this._close()}_packet(i){const s=this.encoder.encode(i);for(let a=0;a<s.length;a++)this.engine.write(s[a],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,s){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(n=>{n?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",n)):i.onreconnect()}))},s);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const _e={};function Le(t,i){typeof t=="object"&&(i=t,t=void 0),i=i||{};const s=an(t,i.path||"/socket.io"),a=s.source,n=s.id,o=s.path,r=_e[n]&&o in _e[n].nsps,c=i.forceNew||i["force new connection"]||i.multiplex===!1||r;let h;return c?h=new ft(a,i):(_e[n]||(_e[n]=new ft(a,i)),h=_e[n]),s.query&&!i.query&&(i.query=s.queryKey),h.socket(s.path,i)}Object.assign(Le,{Manager:ft,Socket:$i,io:Le,connect:Le});const yn=Le("https://golstats-live-server-sockets.azurewebsites.net/",{autoConnect:!1,transports:["websocket"]});function _n(){return yn}function gt(t,i){const s=i||_n();s.connected&&s.emit("subscribe",{channel:t})}const Q=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},bn={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(t){(t.section!=="Historicos"||t.type==="Postmatch")&&this.$emit("open-profile",t)}},mounted(){}},wn={key:0,class:"gsc-item-player"},Cn={class:"gsc-num-player"},Sn={class:"gsc-cont-info-by-player"},kn={class:"gsc-cont-info-by-player-row1"},En={class:"shield-player-cont"},In=["src"],Vn={class:"gsc-cont-info-by-player-row2"},Nn={class:"gsc-cont-info-by-player-row2-line-data"},Tn={class:"cont-display-gsc"},On=["src"],$n={class:"gsc-cont-cards"},Fn={key:0,class:"gsc-yellow_card_div"},Bn={key:1,class:"gsc-red_card_div"},zn={key:2,class:"gsc-yellowred_card_div"},Rn={key:5,class:"gsc-goal_card_div_wrapper"},Dn={key:1,class:"gsc-item-player"},Mn={class:"gsc-num-player2"},An={class:"gsc-cont-info-by-player2"},jn={class:"gsc-cont-info-by-player-row2"},Ln={class:"gsc-cont-info-by-player-row2-line-data"},Un={class:"gsc-cont-cards2"},Pn={key:0,class:"gsc-yellow_card_div"},Hn={key:1,class:"gsc-red_card_div"},xn={key:2,class:"gsc-yellowred_card_div"},Wn={key:5,class:"gsc-goal_card_div_wrapper"},qn={class:"cont-display-gsc"},Xn=["src"],Gn={class:"gsc-cont-info-by-player-row1"},Jn={class:"shield-player-cont"},Yn=["src"];function Kn(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.type==1?(e.openBlock(),e.createElementBlock("div",wn,[e.createElementVNode("div",Cn,[s.data.shirt<10?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("0")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.data.shirt),1)]),e.createElementVNode("div",Sn,[e.createElementVNode("div",kn,[e.createElementVNode("div",En,[e.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,In)])]),e.createElementVNode("div",Vn,[e.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:e.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[0]||(i[0]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},e.toDisplayString(s.data.name),5),e.createElementVNode("div",Nn,[e.createElementVNode("div",Tn,[e.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,On),e.createElementVNode("div",{class:e.normalizeClass(s.position)},e.toDisplayString(s.data.position),3)]),e.createElementVNode("div",$n,[s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock("div",Fn)):e.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(e.openBlock(),e.createElementBlock("div",Bn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(e.openBlock(),e.createElementBlock("div",zn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("'"+e.toDisplayString(s.data.yellowcardmin),1)],64)):e.createCommentVNode("",!0),s.data.redcard>=1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode("'"+e.toDisplayString(s.data.redcardmin),1)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data.goalsMin,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[i[2]||(i[2]=e.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(e.openBlock(),e.createElementBlock("div",Rn,[i[3]||(i[3]=e.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(s.data.substitutionMin),1)])):e.createCommentVNode("",!0)])])])])])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",Mn,[s.data.shirt<10?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("0")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.data.shirt),1)]),e.createElementVNode("div",An,[e.createElementVNode("div",jn,[e.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:e.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[1]||(i[1]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},e.toDisplayString(s.data.name),5),e.createElementVNode("div",Ln,[e.createElementVNode("div",Un,[s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock("div",Pn)):e.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(e.openBlock(),e.createElementBlock("div",Hn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(e.openBlock(),e.createElementBlock("div",xn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("'"+e.toDisplayString(s.data.yellowcardmin),1)],64)):e.createCommentVNode("",!0),s.data.redcard>=1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode("'"+e.toDisplayString(s.data.redcardmin),1)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data.goalsMin,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[i[4]||(i[4]=e.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(e.openBlock(),e.createElementBlock("div",Wn,[i[5]||(i[5]=e.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(s.data.substitutionMin),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qn,[e.createElementVNode("div",{class:e.normalizeClass(s.position)},e.toDisplayString(s.data.position),3),e.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,Xn)])])]),e.createElementVNode("div",Gn,[e.createElementVNode("div",Jn,[e.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,Yn)])])])])):e.createCommentVNode("",!0)],64)}const Zn=Q(bn,[["render",Kn],["__scopeId","data-v-ce649720"]]);/**
|
|
7
7
|
* Vue 3 Carousel 0.3.1
|
|
8
8
|
* (c) 2023
|
|
9
9
|
* @license MIT
|
|
10
|
-
*/const j={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"}},Fi={itemsToShow:{default:j.itemsToShow,type:Number},itemsToScroll:{default:j.itemsToScroll,type:Number},wrapAround:{default:j.wrapAround,type:Boolean},throttle:{default:j.throttle,type:Number},snapAlign:{default:j.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:j.transition,type:Number},breakpoints:{default:j.breakpoints,type:Object},autoplay:{default:j.autoplay,type:Number},pauseAutoplayOnHover:{default:j.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:j.mouseDrag,type:Boolean},touchDrag:{default:j.touchDrag,type:Boolean},dir:{default:j.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:j.i18n,type:Object},settings:{default(){return{}},type:Object}};function Qn({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function vn({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function yt({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function eo({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:yt({val:r,max:s-o,min:0})}function Bi(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Bi(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function ut({val:t,max:i,min:s=0}){return t>i?ut({val:t-(i+1),max:i,min:s}):t<s?ut({val:t+(i+1),max:i,min:s}):t}function to(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function io(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function so(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var ao=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},j))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},so(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),no=e.defineComponent({name:"Carousel",props:Fi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),c=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},j));let p=Object.assign({},j),y;const l=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),u=e.ref(0),g=e.ref(0),m=e.ref(0);let S,N;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",l),e.provide("maxSlide",g),e.provide("minSlide",m),e.provide("slideWidth",c);function _(){y=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),b(p)}function d(){if(!y||!Object.keys(y).length)return;const T=Object.keys(y).map(A=>Number(A)).sort((A,v)=>+v-+A);let L=Object.assign({},p);T.some(A=>{const v=window.matchMedia(`(min-width: ${A}px)`).matches;return v&&(L=Object.assign(Object.assign({},L),y[A])),v}),b(L)}function b(T){Object.entries(T).forEach(([L,A])=>f[L]=A)}const E=io(()=>{d(),B()},16);function B(){if(!o.value)return;const T=o.value.getBoundingClientRect();c.value=T.width/f.itemsToShow}function V(){h.value<=0||(u.value=Math.ceil((h.value-1)/2),g.value=Qn({config:f,slidesCount:h.value}),m.value=vn({config:f,slidesCount:h.value}),f.wrapAround||(l.value=yt({val:l.value,max:g.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>B()),setTimeout(()=>B(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{N&&clearTimeout(N),S&&clearInterval(S),window.removeEventListener("resize",E,{passive:!0})});let R=!1;const Y={x:0,y:0},ne={x:0,y:0},D=e.reactive({x:0,y:0}),P=e.ref(!1),H=e.ref(!1),kt=()=>{P.value=!0},Et=()=>{P.value=!1};function X(T){["INPUT","TEXTAREA","SELECT"].includes(T.target.tagName)||(R=T.type==="touchstart",R||T.preventDefault(),!(!R&&T.button!==0||oe.value)&&(Y.x=R?T.touches[0].clientX:T.clientX,Y.y=R?T.touches[0].clientY:T.clientY,document.addEventListener(R?"touchmove":"mousemove",he,!0),document.addEventListener(R?"touchend":"mouseup",k,!0)))}const he=to(T=>{H.value=!0,ne.x=R?T.touches[0].clientX:T.clientX,ne.y=R?T.touches[0].clientY:T.clientY;const L=ne.x-Y.x,A=ne.y-Y.y;D.y=A,D.x=L},f.throttle);function k(){const T=f.dir==="rtl"?-1:1,L=Math.sign(D.x)*.4,A=Math.round(D.x/c.value+L)*T;if(A&&!R){const v=Vt=>{Vt.stopPropagation(),window.removeEventListener("click",v,!0)};window.addEventListener("click",v,!0)}re(l.value-A),D.x=0,D.y=0,H.value=!1,document.removeEventListener(R?"touchmove":"mousemove",he,!0),document.removeEventListener(R?"touchend":"mouseup",k,!0)}function I(){!f.autoplay||f.autoplay<=0||(S=setInterval(()=>{f.pauseAutoplayOnHover&&P.value||Pe()},f.autoplay))}function z(){S&&(clearInterval(S),S=null),I()}const oe=e.ref(!1);function re(T){const L=f.wrapAround?T:yt({val:T,max:g.value,min:m.value});l.value===L||oe.value||(s("slide-start",{slidingToIndex:T,currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!0,C.value=l.value,l.value=L,N=setTimeout(()=>{if(f.wrapAround){const A=ut({val:L,max:g.value,min:0});A!==l.value&&(l.value=A,s("loop",{currentSlideIndex:l.value,slidingToIndex:T}))}s("update:modelValue",l.value),s("slide-end",{currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!1,z()},f.transition))}function Pe(){re(l.value+f.itemsToScroll)}function It(){re(l.value-f.itemsToScroll)}const Xi={slideTo:re,next:Pe,prev:It};e.provide("nav",Xi),e.provide("isSliding",oe);const Ji=e.computed(()=>eo({config:f,currentSlide:l.value,slidesCount:h.value}));e.provide("slidesToScroll",Ji);const dc=e.computed(()=>{const T=f.dir==="rtl"?-1:1,L=Ji.value*c.value*T;return{transform:`translateX(${D.x-L}px)`,transition:`${oe.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function Gi(){_(),d(),V(),B(),z()}Object.keys(Fi).forEach(T=>{["modelValue"].includes(T)||e.watch(()=>t[T],Gi)}),e.watch(()=>t.modelValue,T=>{T!==l.value&&re(Number(T))}),e.watch(h,V),s("before-init"),_();const Yi={config:f,slidesCount:h,slideWidth:c,next:Pe,prev:It,slideTo:re,currentSlide:l,maxSlide:g,minSlide:m,middleSlide:u};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:B,initDefaultConfigs:_,restartCarousel:Gi,slideTo:re,next:Pe,prev:It,nav:Xi,data:Yi});const Ki=i.default||i.slides,Zi=i.addons,Qi=e.reactive(Yi);return()=>{const T=Bi(Ki==null?void 0:Ki(Qi)),L=(Zi==null?void 0:Zi(Qi))||[];T.forEach((Nt,Tt)=>Nt.props.index=Tt);let A=T;if(f.wrapAround){const Nt=T.map((Ot,be)=>e.cloneVNode(Ot,{index:-T.length+be,isClone:!0,key:`clone-before-${be}`})),Tt=T.map((Ot,be)=>e.cloneVNode(Ot,{index:T.length+be,isClone:!0,key:`clone-after-${be}`}));A=[...Nt,...T,...Tt]}r.value=T,h.value=Math.max(T.length,1);const v=e.h("ol",{class:"carousel__track",style:dc.value,onMousedownCapture:f.mouseDrag?X:null,onTouchstartPassiveCapture:f.touchDrag?X:null},A),Vt=e.h("div",{class:"carousel__viewport"},v);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":oe.value,"is-dragging":H.value,"is-hover":P.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:kt,onMouseleave:Et},[Vt,L,e.h(ao)])}}}),zi;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(zi||(zi={}));var oo=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},j))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,c=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),y=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=y};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const ro=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},lo=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),co={class:"gsc-carousel"},mo={key:0},ho=lo(()=>e.createElementVNode("div",null,"no hay",-1)),po=[ho],fo={class:"gsc-carousel__2d__slides"},go={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yo=["fill"],uo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_o=["fill"],bo={class:"gsc-carousel__2d__navigation"},wo={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Co=["stroke"],So={key:1,class:"gsc-carousel__2d__navigation__pagination"},ko=["onClick"],Eo={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Io=["stroke"],Vo={__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:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:s}){const a=t;e.useCssVars(g=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),c=e.ref(!1);e.watch(n,g=>{g&&c.value?(c.value=!1,h(a.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.defaultItemByIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.items,g=>{n.value?h(g):c.value=!0},{immediate:!0});function h(g){g&&g.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(S=>S[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=g[m]):(r.value=0,o.value=g[0])}else r.value=a.defaultItemByIndex,o.value=g[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function y(){n.value&&n.value.updateSlideWidth()}function l(g){n.value&&n.value.slideTo(g)}function C(g){n.value.slideTo(g)}function u(g){const m=g.slidingToIndex<0?a.items.length-1:g.slidingToIndex===a.items.length?0:g.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:y,slideTo:l}),(g,m)=>(e.openBlock(),e.createElementBlock("div",co,[a.is3d?(e.openBlock(),e.createElementBlock("div",mo,po)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",fo,[e.createVNode(e.unref(no),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(S,N)=>(e.openBlock(),e.createBlock(e.unref(oo),{key:N},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=S=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",go,[e.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:t.arrowsColor},null,8,yo)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=S=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",uo,[e.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:t.arrowsColor},null,8,_o)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",bo,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=S=>p())},[(e.openBlock(),e.createElementBlock("svg",wo,[e.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:a.arrowsColor},null,8,Co)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",So,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(S,N)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${N}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===N?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===N?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:_=>C(N)},null,12,ko))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=S=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Eo,[e.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:a.arrowsColor},null,8,Io)]))])):e.createCommentVNode("",!0)])],2))]))}},_t=ro(Vo,[["__scopeId","data-v-54620d25"]]);function No(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const To=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},bt={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 t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Ri=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Di=bt.setup;bt.setup=Di?(t,i)=>(Ri(),Di(t,i)):Ri;const Oo={ref:"gscScrollableContainer",class:"scrollable-container"},$o={class:"scrollable-arrows"},Fo=["width","height","viewBox"],Bo=["stroke"],zo={class:"scrollable-wrapper"},Ro={class:"scrollable-arrows"},Do=["width","height","viewBox"],Mo=["stroke"];function Ao(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Oo,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",$o,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,Bo)],8,Fo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",zo,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",Ro,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,Mo)],8,Do))])],2)):e.createCommentVNode("",!0)],512)}const jo=To(bt,[["render",Ao],["__scopeId","data-v-b548a08d"]]),Lo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},wt={components:{GSCSlider:jo},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 t=e.ref("myDivRef"),{elementSize:i}=No(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Mi=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},Ai=wt.setup;wt.setup=Ai?(t,i)=>(Mi(),Ai(t,i)):Mi;const Uo={ref:"myDivRef"},Po={key:0,class:"gs-switch-container"},Ho=["onClick"],xo={key:1,class:"gs-switch-container-type"},Wo=["onClick"],qo={key:2,class:"gs-switch-container-carousel"},Xo=["onClick"];function Jo(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",Uo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Ho))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Wo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",qo,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Xo))),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"])])):e.createCommentVNode("",!0)],512)}const Ue=Lo(wt,[["render",Jo],["__scopeId","data-v-8a86dfaf"]]),Go={selectoritem:"_selectoritem_1hm4i_137",selectoritem2:"_selectoritem2_1hm4i_157",gscheaderlineup:"_gscheaderlineup_1hm4i_177",anNoEstn:"_anNoEstn_1hm4i_191",groupsLeague:"_groupsLeague_1hm4i_197",jugadores:"_jugadores_1hm4i_209",switchOption:"_switchOption_1hm4i_219",jugadores1:"_jugadores1_1hm4i_239",switchOption1:"_switchOption1_1hm4i_249",switchStatesBig:"_switchStatesBig_1hm4i_265",groupsLeagueParent:"_groupsLeagueParent_1hm4i_283",imgHomeTeamIcon:"_imgHomeTeamIcon_1hm4i_301",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1hm4i_313",teamContainer:"_teamContainer_1hm4i_337",name:"_name_1hm4i_361",homeTeamContainer:"_homeTeamContainer_1hm4i_373",div:"_div_1hm4i_393",scoreContainer:"_scoreContainer_1hm4i_401",scoreContainerWrapper:"_scoreContainerWrapper_1hm4i_421",teamContainer1:"_teamContainer1_1hm4i_447",awayTeamContainer:"_awayTeamContainer_1hm4i_471",matchContainer:"_matchContainer_1hm4i_491",sliderMatchesChild:"_sliderMatchesChild_1hm4i_509",manchesterUnited:"_manchesterUnited_1hm4i_521",sliderMatchesItem:"_sliderMatchesItem_1hm4i_533",sliderMatches:"_sliderMatches_1hm4i_509",sortIcon:"_sortIcon_1hm4i_569",filtros:"_filtros_1hm4i_583",sortParent:"_sortParent_1hm4i_599",shapeIcon:"_shapeIcon_1hm4i_613",btnFilter:"_btnFilter_1hm4i_623",btnFilter1:"_btnFilter1_1hm4i_651",btnFilterParent:"_btnFilterParent_1hm4i_679",backArrowIcon:"_backArrowIcon_1hm4i_695",teamContainer2:"_teamContainer2_1hm4i_707",homeTeam:"_homeTeam_1hm4i_373",div4:"_div4_1hm4i_735",finalScore:"_finalScore_1hm4i_745",manchesterUnited1:"_manchesterUnited1_1hm4i_771",scoreContainer1:"_scoreContainer1_1hm4i_785",match:"_match_1hm4i_491",manchesterUnited2:"_manchesterUnited2_1hm4i_821",btnDetails:"_btnDetails_1hm4i_831",matchContainer1:"_matchContainer1_1hm4i_851",goalChild:"_goalChild_1hm4i_867",goal:"_goal_1hm4i_867",manchesterUnited3:"_manchesterUnited3_1hm4i_893",minuteEvent:"_minuteEvent_1hm4i_907",yellowCard:"_yellowCard_1hm4i_921",awayTeamEvents:"_awayTeamEvents_1hm4i_935",rectangle:"_rectangle_1hm4i_949",homeTeamEvents:"_homeTeamEvents_1hm4i_963",totalEvents:"_totalEvents_1hm4i_979",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1hm4i_995",switchOption3:"_switchOption3_1hm4i_1017",switchOption4:"_switchOption4_1hm4i_1041",switchStatesBig1:"_switchStatesBig1_1hm4i_1061",manchesterUnited13:"_manchesterUnited13_1hm4i_1075",homeTeamContainer1:"_homeTeamContainer1_1hm4i_1085",scoreContainer2:"_scoreContainer2_1hm4i_1099",matchContainer2:"_matchContainer2_1hm4i_1127",manchesterUnited14:"_manchesterUnited14_1hm4i_1147",sliderMatchesInner:"_sliderMatchesInner_1hm4i_1161",rectangleIcon:"_rectangleIcon_1hm4i_1181",sliderMatches1:"_sliderMatches1_1hm4i_1201",containerData:"_containerData_1hm4i_1217",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1hm4i_1245",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1hm4i_995",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1hm4i_1293",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1hm4i_1299",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1hm4i_1307"},Yo={components:{GSCCarousel:_t,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ko=["src"],Zo=["src"],Qo=["src"],vo=["src"],er=["src"],tr=["src"];function ir(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,Ko)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,Zo)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,Qo)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,vo)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,er)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,tr)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const sr=Q(Yo,[["render",ir],["__cssModules",{$style:Go}]]),ar=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Ct={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ji=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Li=Ct.setup;Ct.setup=Li?(t,i)=>(ji(),Li(t,i)):ji;const nr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),or=["src"],rr={key:1,class:"text"},lr=["src"],cr={class:"stats"},dr=nr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),mr={class:"numstats"},hr={class:"leyend"};function pr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,or)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",rr,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,lr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",cr,[dr,e.createElementVNode("div",mr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",hr,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const fr=ar(Ct,[["render",pr],["__scopeId","data-v-f3ee6b2b"]]),gr={class:"gsc-dropdown__main-container__item-selected"},yr=["height","width"],ur=["stroke"],_r={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},br=["fill"],wr={class:"gsc-dropdown__items-container"},Cr=["onClick"],Sr={key:0,class:"gsc-dropdown__items-footer"},Ui={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&C&&C.length){if(s.defaultItemByProp){const g=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);g!==-1?(o.value=g,a.value=C[g]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const u=s.items.findIndex(g=>typeof C=="object"?JSON.stringify(g)===JSON.stringify(C):g===C);u!==-1&&(o.value=u,a.value=s.items[u],i("update:modelValue",a.value))}},{immediate:!0});const c=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function y(C,u){s.isMultipleOption?o.value=-1:(o.value=u,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function l(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(c.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",gr,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,ur)],8,yr)):(e.openBlock(),e.createElementBlock("svg",_r,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,br)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",wr,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(g,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:S=>y(g,m)},[e.renderSlot(C.$slots,"availableItem",{item:g})],10,Cr)),[[e.vShow,!g.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Sr,[e.createVNode(e.unref(fr),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:l})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},kr=["for"],Er=["name"],Ir={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,kr)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)]),8,Er)):(e.openBlock(),e.createElementBlock("svg",Ir,n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]))}},Vr=["value"],Nr={class:"filter-modal__padding"},Tr={class:"filter-modal__content-header"},Or={class:"filter-modal__content-options"},$r=["onClick"],Fr={class:"filter-modal__content-header"},Br={class:"filter-modal__content-options"},zr=["onClick"],Rr=Q({__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({d00c78a6:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,c=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),y=e.ref(!0),l=e.ref(!0),C=e.ref(["local","visit"]),u=e.ref(["win","draw","lose"]),g=()=>{o.value.focus(),c.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(u.value)),f.value=y.value,p.value=l.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,u.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&S()});const m=(d,b)=>{let E;b==="team"?E=C.value:E=u.value;const B=E.findIndex(V=>V===d);B==-1?E.push(d):b=="team"&&C.value.length==2?E.splice(B,1):(b=="team"&&E.push(d),u.value.length>1&&E.splice(B,1)),y.value=C.value.length==2,l.value=u.value.length==3},S=()=>{C.value=["local","visit"],u.value=["win","draw","lose"],y.value=!0,l.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})},N=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})},_=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})};return(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[b[5]||(b[5]=e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Vr),b[6]||(b[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:b[4]||(b[4]=E=>{t.isOpen=!1,_()})},[e.createElementVNode("div",Nr,[e.createElementVNode("div",Tr,[b[7]||(b[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(Pi,{modelValue:y.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>y.value=E),b[1]||(b[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Or,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,$r)),64))]),e.createElementVNode("div",Fr,[b[8]||(b[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(Pi,{modelValue:l.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>l.value=E),b[3]||(b[3]=E=>E&&(u.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Br,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"player"),class:e.normalizeClass({active:u.value.includes(E.id)})},e.toDisplayString(E.name),11,zr)),64))])]),b[9]||(b[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:S},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:N},"Listo")])],34)],4))}},[["__scopeId","data-v-2118a6cd"]]),Dr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},Mr={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ar={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Dr,s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)]))):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",Mr,s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)]))):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Ar,s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)]))):e.createCommentVNode("",!0)}},jr={class:"match-details"},Lr={class:"match-details__list"},Ur={class:"match-details__list right"},Pr=Q({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("ul",Lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(Hi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",Ur,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(Hi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-ad3b88e3"]]),Hr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},St={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},xi=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Wi=St.setup;St.setup=Wi?(t,i)=>(xi(),Wi(t,i)):xi;const xr={key:0,class:"text-left"},Wr=["width","src"],qr=["checked"],Xr=["width","src"],Jr={key:3,class:"text-right"};function Gr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",xr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,Wr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,qr),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,Xr)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Jr,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const Yr=Hr(St,[["render",Gr],["__scopeId","data-v-e2a20444"]]),Kr={containernofoundsearchrecientes:"_containernofoundsearchrecientes_nc3mr_159","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_nc3mr_171","btn-delete-filters":"_btn-delete-filters_nc3mr_183",btndeletefilters:"_btndeletefilters_nc3mr_215",leyenddeleteshow:"_leyenddeleteshow_nc3mr_247",selectoritem:"_selectoritem_nc3mr_261",anNoEstn:"_anNoEstn_nc3mr_279",groupsLeague:"_groupsLeague_nc3mr_287",historicas:"_historicas_nc3mr_297",switchOption:"_switchOption_nc3mr_309",recientes:"_recientes_nc3mr_331",switchOption1:"_switchOption1_nc3mr_343",switchOption2:"_switchOption2_nc3mr_369",switchStatesBig:"_switchStatesBig_nc3mr_387",groupsLeagueParent:"_groupsLeagueParent_nc3mr_407",imgHomeTeamIcon:"_imgHomeTeamIcon_nc3mr_427",imgHomeTeamWrapper:"_imgHomeTeamWrapper_nc3mr_441",teamContainer:"_teamContainer_nc3mr_467",name:"_name_nc3mr_493",homeTeamContainer:"_homeTeamContainer_nc3mr_507",div:"_div_nc3mr_529",scoreContainer:"_scoreContainer_nc3mr_539",scoreContainerWrapper:"_scoreContainerWrapper_nc3mr_561",teamContainer1:"_teamContainer1_nc3mr_587",awayTeamContainer:"_awayTeamContainer_nc3mr_613",matchContainer:"_matchContainer_nc3mr_635",sliderMatchesChild:"_sliderMatchesChild_nc3mr_655",manchesterUnited:"_manchesterUnited_nc3mr_669",sliderMatchesItem:"_sliderMatchesItem_nc3mr_683",sliderMatches:"_sliderMatches_nc3mr_655",sortIcon:"_sortIcon_nc3mr_719",filtros:"_filtros_nc3mr_735",sortParent:"_sortParent_nc3mr_753",shapeIcon:"_shapeIcon_nc3mr_769",btnFilter:"_btnFilter_nc3mr_781",btnFilter1:"_btnFilter1_nc3mr_813",btnFilterParent:"_btnFilterParent_nc3mr_843",backArrowIcon:"_backArrowIcon_nc3mr_861",teamContainer2:"_teamContainer2_nc3mr_875",homeTeam:"_homeTeam_nc3mr_507",div4:"_div4_nc3mr_907",finalScore:"_finalScore_nc3mr_919",manchesterUnited1:"_manchesterUnited1_nc3mr_947",scoreContainer1:"_scoreContainer1_nc3mr_963",match:"_match_nc3mr_635",manchesterUnited2:"_manchesterUnited2_nc3mr_997",btnDetails:"_btnDetails_nc3mr_1023",matchContainer1:"_matchContainer1_nc3mr_1045",goalChild:"_goalChild_nc3mr_1063",goal:"_goal_nc3mr_1063",manchesterUnited3:"_manchesterUnited3_nc3mr_1093",minuteEvent:"_minuteEvent_nc3mr_1109",yellowCard:"_yellowCard_nc3mr_1125",awayTeamEvents:"_awayTeamEvents_nc3mr_1141",rectangle:"_rectangle_nc3mr_1157",homeTeamEvents:"_homeTeamEvents_nc3mr_1173",totalEvents:"_totalEvents_nc3mr_1191",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_nc3mr_1209",sliderMatchesInner:"_sliderMatchesInner_nc3mr_1231",btnFilter2:"_btnFilter2_nc3mr_1245",btnDetails1:"_btnDetails1_nc3mr_1279",matchContainer3:"_matchContainer3_nc3mr_1297",backArrowIcon1:"_backArrowIcon1_nc3mr_1319",match1:"_match1_nc3mr_1333",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_nc3mr_1345",jugadores2:"_jugadores2_nc3mr_1367",switchOption6:"_switchOption6_nc3mr_1381",switchOption7:"_switchOption7_nc3mr_1403",switchStatesBig2:"_switchStatesBig2_nc3mr_1429",manchesterUnited26:"_manchesterUnited26_nc3mr_1445",homeTeamContainer2:"_homeTeamContainer2_nc3mr_1457",vectorIcon:"_vectorIcon_nc3mr_1473",teamSwitch:"_teamSwitch_nc3mr_1485",matchContainer5:"_matchContainer5_nc3mr_1511",manchesterUnited27:"_manchesterUnited27_nc3mr_1533",sliderMatchesChild1:"_sliderMatchesChild1_nc3mr_1549",sliderMatchesChild2:"_sliderMatchesChild2_nc3mr_1571",sliderMatches2:"_sliderMatches2_nc3mr_1593",filtros2:"_filtros2_nc3mr_1613",btnFilter4:"_btnFilter4_nc3mr_1633",jornada2:"_jornada2_nc3mr_1665",filterMatchday:"_filterMatchday_nc3mr_1679",btnDetails2:"_btnDetails2_nc3mr_1701",filtersContainer:"_filtersContainer_nc3mr_1723",matchContainer6:"_matchContainer6_nc3mr_1743",matchDetailContainer:"_matchDetailContainer_nc3mr_1761",containerData:"_containerData_nc3mr_1781",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_nc3mr_1811",headerSeccionAlineaciones:"_headerSeccionAlineaciones_nc3mr_1209",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_nc3mr_1863",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_nc3mr_1889",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_nc3mr_1915",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_nc3mr_1939",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_nc3mr_1965",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_nc3mr_1993",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_nc3mr_2015",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_nc3mr_2037",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_nc3mr_2065",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_nc3mr_2089",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_nc3mr_2111"},Zr={components:{GSCCarousel:_t,GscSwitchComponent:Ue,GSCDropdown:Ui,GSCFilter:Rr,GSCSwitchRadio:Yr,GSCMatchDetails:Pr},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Qr=["src"],vr=["src"],el={class:"selector-tournaments"},tl=["src"],il=["src"],sl={key:1},al=["src"],nl=["src"],ol={class:"selector-tournaments"},rl=["src"],ll=["src"],cl={key:1},dl=["src"],ml=["src"],hl={class:"selector-tournaments"},pl=["src"],fl=["src"],gl={key:1};function yl(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Qr)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,vr)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(l=>[e.createElementVNode("div",el,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,tl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,il),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",sl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[11]||(i[11]=[e.createTextVNode(" No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,al)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,nl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter1.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow1.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(l=>[e.createElementVNode("div",ol,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,ll),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",cl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[14]||(i[14]=[e.createTextVNode(" No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,ml)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter2.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-arrow-expand.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(l=>[e.createElementVNode("div",hl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,fl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[15]||(i[15]=[e.createTextVNode(" No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const ul=Q(Zr,[["render",yl],["__cssModules",{$style:Kr}]]),_l={selectoritem:"_selectoritem_125nf_179",selectoritem2:"_selectoritem2_125nf_199",gscheaderlineup:"_gscheaderlineup_125nf_219",anNoEstn:"_anNoEstn_125nf_233",groupsLeague:"_groupsLeague_125nf_239",jugadores:"_jugadores_125nf_249",switchOption:"_switchOption_125nf_259",jugadores1:"_jugadores1_125nf_279",switchOption1:"_switchOption1_125nf_289",switchStatesBig:"_switchStatesBig_125nf_305",groupsLeagueParent:"_groupsLeagueParent_125nf_323",imgHomeTeamIcon:"_imgHomeTeamIcon_125nf_341",imgHomeTeamWrapper:"_imgHomeTeamWrapper_125nf_353",teamContainer:"_teamContainer_125nf_377",name:"_name_125nf_401",homeTeamContainer:"_homeTeamContainer_125nf_413",div:"_div_125nf_433",titleSession:"_titleSession_125nf_441",scoreContainer:"_scoreContainer_125nf_461",scoreContainerWrapper:"_scoreContainerWrapper_125nf_481",teamContainer1:"_teamContainer1_125nf_505",awayTeamContainer:"_awayTeamContainer_125nf_529",matchContainer:"_matchContainer_125nf_549",sliderMatchesChild:"_sliderMatchesChild_125nf_567",manchesterUnited:"_manchesterUnited_125nf_579",sliderMatchesItem:"_sliderMatchesItem_125nf_591",sliderMatches:"_sliderMatches_125nf_567",sortIcon:"_sortIcon_125nf_627",filtros:"_filtros_125nf_641",sortParent:"_sortParent_125nf_657",shapeIcon:"_shapeIcon_125nf_671",btnFilter:"_btnFilter_125nf_681",btnFilter1:"_btnFilter1_125nf_709",btnFilterParent:"_btnFilterParent_125nf_737",backArrowIcon:"_backArrowIcon_125nf_753",teamContainer2:"_teamContainer2_125nf_765",homeTeam:"_homeTeam_125nf_413",div4:"_div4_125nf_793",finalScore:"_finalScore_125nf_803",manchesterUnited1:"_manchesterUnited1_125nf_829",scoreContainer1:"_scoreContainer1_125nf_843",match:"_match_125nf_549",manchesterUnited2:"_manchesterUnited2_125nf_879",btnDetails:"_btnDetails_125nf_889",matchContainer1:"_matchContainer1_125nf_909",goalChild:"_goalChild_125nf_925",goal:"_goal_125nf_925",manchesterUnited3:"_manchesterUnited3_125nf_951",minuteEvent:"_minuteEvent_125nf_965",yellowCard:"_yellowCard_125nf_979",awayTeamEvents:"_awayTeamEvents_125nf_993",rectangle:"_rectangle_125nf_1007",homeTeamEvents:"_homeTeamEvents_125nf_1021",totalEvents:"_totalEvents_125nf_1037",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_125nf_1053",switchOption3:"_switchOption3_125nf_1075",switchOption4:"_switchOption4_125nf_1099",switchStatesBig1:"_switchStatesBig1_125nf_1119",manchesterUnited13:"_manchesterUnited13_125nf_1133",homeTeamContainer1:"_homeTeamContainer1_125nf_1143",scoreContainer2:"_scoreContainer2_125nf_1157",matchContainer2:"_matchContainer2_125nf_1185",manchesterUnited14:"_manchesterUnited14_125nf_1205",sliderMatchesInner:"_sliderMatchesInner_125nf_1219",rectangleIcon:"_rectangleIcon_125nf_1239",sliderMatches1:"_sliderMatches1_125nf_1259",containerData:"_containerData_125nf_1275",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_125nf_1303",headerSeccionAlineaciones:"_headerSeccionAlineaciones_125nf_1053",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_125nf_1351",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_125nf_1357",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_125nf_1365"},bl={components:{GSCCarousel:_t,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},wl=["src"],Cl=["src"],Sl=["src"],kl=["src"],El=["src"],Il=["src"];function Vl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,wl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+" | "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+" | "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Cl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Sl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,kl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,El)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Il)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Nl=Q(bl,[["render",Vl],["__cssModules",{$style:_l}]]),Tl={anNoEstn:"_anNoEstn_j98j7_139",groupsLeague:"_groupsLeague_j98j7_145",historicas:"_historicas_j98j7_153",switchOption:"_switchOption_j98j7_163",switchOption1:"_switchOption1_j98j7_183",probables:"_probables_j98j7_203",switchOption2:"_switchOption2_j98j7_213",switchStatesBig:"_switchStatesBig_j98j7_237",groupsLeagueParent:"_groupsLeagueParent_j98j7_255",imgHomeTeamIcon:"_imgHomeTeamIcon_j98j7_273",imgHomeTeamWrapper:"_imgHomeTeamWrapper_j98j7_285",teamContainer:"_teamContainer_j98j7_309",name:"_name_j98j7_333",jor:"_jor_j98j7_345",jorParent:"_jorParent_j98j7_357",shapeIcon:"_shapeIcon_j98j7_373",frameParent:"_frameParent_j98j7_383",manchesterUnited:"_manchesterUnited_j98j7_413",necaxaIcon:"_necaxaIcon_j98j7_435",manchesterUnited1:"_manchesterUnited1_j98j7_447",team:"_team_j98j7_309",homeTeamContainer:"_homeTeamContainer_j98j7_475",div1:"_div1_j98j7_495",scoreContainer:"_scoreContainer_j98j7_503",scoreContainerWrapper:"_scoreContainerWrapper_j98j7_525",team1:"_team1_j98j7_549",name1:"_name1_j98j7_563",teamContainer1:"_teamContainer1_j98j7_577",awayTeamContainer:"_awayTeamContainer_j98j7_601",matchContainer:"_matchContainer_j98j7_623",goalChild:"_goalChild_j98j7_641",goal:"_goal_j98j7_641",manchesterUnited4:"_manchesterUnited4_j98j7_667",minuteEvent:"_minuteEvent_j98j7_681",yellowCard:"_yellowCard_j98j7_695",awayTeamEvents:"_awayTeamEvents_j98j7_709",rectangle:"_rectangle_j98j7_723",homeTeamEvents:"_homeTeamEvents_j98j7_737",totalEvents:"_totalEvents_j98j7_753",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_j98j7_769",homeTeamContainer1:"_homeTeamContainer1_j98j7_789",awayTeamContainer1:"_awayTeamContainer1_j98j7_813",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_j98j7_837",jugadores:"_jugadores_j98j7_857",switchOption6:"_switchOption6_j98j7_869",switchOption8:"_switchOption8_j98j7_889",switchStatesBig2:"_switchStatesBig2_j98j7_913",manchesterUnited28:"_manchesterUnited28_j98j7_927",homeTeamContainer2:"_homeTeamContainer2_j98j7_935",matchContainer2:"_matchContainer2_j98j7_949",manchesterUnited29:"_manchesterUnited29_j98j7_971",sliderMatchesChild:"_sliderMatchesChild_j98j7_985",sliderMatchesItem:"_sliderMatchesItem_j98j7_1005",sliderMatches:"_sliderMatches_j98j7_985",jorParent2:"_jorParent2_j98j7_1045",filterMatchday:"_filterMatchday_j98j7_1059",necaxaIcon4:"_necaxaIcon4_j98j7_1081",team4:"_team4_j98j7_1093",filterMatchdayParent:"_filterMatchdayParent_j98j7_1113",filterMatchday1:"_filterMatchday1_j98j7_1127",teamParent:"_teamParent_j98j7_1157",filtersContainer:"_filtersContainer_j98j7_1177",containerData:"_containerData_j98j7_1195",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_j98j7_1223",headerSeccionAlineaciones:"_headerSeccionAlineaciones_j98j7_769"},Ol={components:{GSCDropdown:Ui,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},$l=["src"],Fl={class:"selector-tournaments"},Bl=["src"],zl=["src"],Rl={class:"selector-tournaments"},Dl=["src"],Ml=["src"],Al={class:"selector-tournaments"},jl=["src"],Ll=["src"],Ul={class:"selector-tournaments"},Pl=["src"],Hl=["src"],xl=["src"],Wl={class:"selector-tournaments"},ql=["src"],Xl=["src"],Jl={class:"selector-tournaments"};function Gl(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,$l)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Fl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,zl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Rl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Dl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Ml)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Al,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Ll),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Ul,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Pl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Hl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,xl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Wl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,Xl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Jl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const Yl=Q(Ol,[["render",Gl],["__cssModules",{$style:Tl}]]);let qi=null;const Kl={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:Zn,HeaderPlayerHistorico:sr,HeaderPlayerRecientes:ul,HeaderPlayerProbables:Yl,HeaderPlayerPostmatch:Nl},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(t){throw new Error(t)}},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&setTimeout(()=>{this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,this.cleaneDataAway(),this.cleaneDataHome(),this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),this.lastSection=t},1e3),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[F.get(this.urlGames+t.season_id+"/games/"+t.game_id,s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==this.lastGetLineUpGameId&&(o=F.get(this.url+r,s),n.push(o));const[c,h]=await Promise.all(n);await this.gameDataInfo(t,c),await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=this.dataPlayersHome.findIndex(S=>S.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,S)=>m.position_id>S.position_id?1:S.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),y=s[1].trim().split(" "),l="";p.length==2||p.length==1?p[0].length<4?l=p[0]+" "+p[1]:l=p[0]:p.length==3?l=p[0]+" "+p[1]:p.length==4&&(l=p[1]+" "+p[2]+" "+p[3]);var C=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";l=l.replace(",","");var u=C+". "+l,g=this.dataPlayersAway.findIndex(S=>S.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:g!=-1?this.isFemale?this.positions[this.dataPlayersAway[g].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[g].position_id-1].name:"",position_id:this.dataPlayersAway[g].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].playerID+".png",nationality:g!=-1&&this.dataPlayersAway[g].nationality?this.dataPlayersAway[g].nationality.substring(0,3):"",imgNationality:g!=-1?this.dataPlayersAway[g].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,S)=>m.position_id>S.position_id?1:S.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersHome.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var y=i.data[d].player_name.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,S=i.data[d].x,N=100-(100-S)*50/100;N=N*.9;var _=i.away_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:_!=-1?this.isFemale?this.positions[i.away_team.players[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[_].position_id-1].name:"",position_id:i.away_team.players[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:_!=-1&&i.away_team.players[_].nationality?i.away_team.players[_].nationality.substring(0,3):"",imgNationality:_!=-1?i.away_team.players[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:N+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var c=this.playersHome[V].idsGoals.findIndex(R=>R==i.play_id);c!=-1&&(s=c,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var y=this.playersAway[V].idsGoals.findIndex(R=>R==i.play_id);y!=-1&&(s=y,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==l[0]),u=this.playersHome.findIndex(V=>V.playerId==l[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),u!=-1&&(this.playersHome[u].idSubstitution=i.play_id,this.playersHome[u].substitutionIn=!0,this.playersHome[u].substitutionMin=i.minute,this.playersHome[u].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var g=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==g[0]),S=this.playersAway.findIndex(V=>V.playerId==g[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),S!=-1&&(this.playersAway[S].idSubstitution=i.play_id,this.playersAway[S].substitutionIn=!0,this.playersAway[S].substitutionMin=i.minute,this.playersAway[S].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var N=this.playersHome.findIndex(V=>V.playerId==i.player_id);N!=-1&&(this.playersHome[N].goals+=1,this.playersHome[N].goalsMin.push(i.minute),this.playersHome[N].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(V=>V.playerId==i.player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(i.minute),this.playersAway[_].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var b=this.playersAway.findIndex(V=>V.playerId==i.player_id);b!=-1&&(this.playersAway[b].yellowcards+=1,this.playersAway[b].yellowcardsMin=i.minute,this.playersAway[b].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var B=this.playersAway.findIndex(V=>V.playerId==i.player_id);B!=-1&&(this.playersAway[B].redcards+=1,this.playersAway[B].redcardsMin=i.minute,this.playersAway[B].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(u=>u.playerId==s[0]),n=this.playersHome.findIndex(u=>u.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(u=>u.playerId==o[0]),c=this.playersAway.findIndex(u=>u.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),c!=-1&&(this.playersAway[c].idSubstitution=i.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=i.minute,this.playersAway[c].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(u=>u.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(u=>u.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==i.player_id);y!=-1&&(this.playersAway[y].yellowcards+=1,this.playersAway[y].yellowcardsMin=i.minute,this.playersAway[y].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(u=>u.playerId==i.player_id);l!=-1&&(this.playersHome[l].redcards+=1,this.playersHome[l].redcardsMin=i.minute,this.playersHome[l].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(u=>u.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){try{const d=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<d.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=d.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),d.data.home_team.bench){for(let b=0;b<d.data.home_team.bench.length;b++){this.subsTitle=!0;var p=d.data.home_team.bench[b].playerName.split(","),y=p[0].split(" "),l=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var u=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=u+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<d.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,S=d.data.away_team.starting_lineup[0].lineup[b].x;S=Math.abs(S-100);var h=S*50/100,N=d.data.away_team.starting_lineup[0].lineup[b].y;N=Math.abs(N-100);var f=d.data.away_team.players.findIndex(H=>H.player_id==d.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:N-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),d.data.away_team.bench){for(let b=0;b<d.data.away_team.bench.length;b++){this.subsTitle=!0;var p=d.data.away_team.bench[b].playerName.split(","),y=p[0].split(" "),l=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var u=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=u+". "+C,m=d.data.away_team.players.findIndex(P=>P.player_id==d.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}await this.getMXM(t)}catch(_){return Promise.reject(_)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(t){try{const _=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<_.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var i=_.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.home_team.starting_lineup[0].lineup[d].x;c=Math.abs(c-100);var h=_.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-c)*50/100;f=f*.9;var p=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[p].position_id-1].name,position_id:_.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.home_team.players[p].nationality?_.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.home_team.bench){for(let d=0;d<_.data.home_team.bench.length;d++){this.subsTitle=!0;var y=_.data.home_team.bench[d].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,S=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[d].playerName,position:S!=-1?this.isFemale?this.positions[_.data.home_team.players[S].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[S].position_id-1].name:"",position_id:_.data.home_team.players[S].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.bench[d].playerID+".png",nationality:S!=-1&&_.data.home_team.players[S].nationality?_.data.home_team.players[S].nationality.substring(0,3):"",imgNationality:S!=-1?_.data.home_team.players[S].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=_.data.away_team.players;for(let d=0;d<_.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var i=_.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-c)*50/100;f=f*.9;var p=_.data.away_team.players.findIndex(H=>H.player_id==_.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[p].position_id-1].name,position_id:_.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.away_team.players[p].nationality?_.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.away_team.bench){for(let d=0;d<_.data.away_team.bench.length;d++){this.subsTitle=!0;var y=_.data.away_team.bench[d].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,S=_.data.away_team.players.findIndex(D=>D.player_id==_.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[d].playerName,position:S!=-1?this.isFemale?this.positions[_.data.away_team.players[S].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[S].position_id-1].name:"",position_id:_.data.away_team.players[S].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.bench[d].playerID+".png",nationality:S!=-1&&_.data.away_team.players[S].nationality?_.data.away_team.players[S].nationality.substring(0,3):"",imgNationality:S!=-1?_.data.away_team.players[S].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}await this.getMXM(t)}catch(N){return Promise.reject(N)}},async getLineupProbablesHome(t){this.auxProbablesIDGameHome!=t.id&&(this.auxProbablesIDGameHome=t.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(t.id))},async getLineupProbablesAway(t){this.auxProbablesIDGameAway!=t.id&&(this.auxProbablesIDGameAway=t.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(t.id))},async getLineupProbables(t){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id},async changeCarouselItem(t){typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=t.game_id&&(this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id))},async changeCarouselItemRecent(t){if(t.selectedItem){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}},async getHeaderInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(this.urlGames+t.season_id+"/games/"+t.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){gt("lineups.game."+this.game.game_id,this.socket),gt("mxm.game."+this.game.game_id,this.socket),gt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==c[1]),f=this.playersAway.findIndex(p=>p.playerId==c[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)qi=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),qi.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=this.urlMXM+t;if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const g=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<g.data.plays.length;m++){if(g.data.plays[m].event_type_id==3){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=g.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(S=>S.playerId==i[0]),a=this.playersHome.findIndex(S=>S.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=g.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=g.data.plays[m].minute,this.playersHome[s].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=g.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=g.data.plays[m].minute,this.playersHome[a].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=g.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(S=>S.playerId==n[0]),r=this.playersAway.findIndex(S=>S.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=g.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=g.data.plays[m].minute,this.playersAway[o].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=g.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=g.data.plays[m].minute,this.playersAway[r].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}if(g.data.plays[m].event_type_id==1){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(S=>S.playerId==g.data.plays[m].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(g.data.plays[m].minute),this.playersHome[c].idsGoals.push(g.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(S=>S.playerId==g.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(g.data.plays[m].minute),this.playersAway[h].idsGoals.push(g.data.plays[m].play_id))}}if(g.data.plays[m].event_type_id==2){if(g.data.plays[m].category_id==8){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(S=>S.playerId==g.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=g.data.plays[m].minute,this.playersHome[f].idyellowcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(S=>S.playerId==g.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=g.data.plays[m].minute,this.playersAway[p].idyellowcards=g.data.plays[m].play_id)}}if(g.data.plays[m].category_id==9){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(S=>S.playerId==g.data.plays[m].player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=g.data.plays[m].minute,this.playersHome[y].idredcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(S=>S.playerId==g.data.plays[m].player_id);l!=-1&&(this.playersAway[l].redcards+=1,this.playersAway[l].redcardsMin=g.data.plays[m].minute,this.playersAway[l].idredcards=g.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t!=null)try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const he=F.create({headers:{Authorization:`${this.tokenPremium}`}}),k=i||await he.get(this.url+t);if(!k||!k.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=k.data.home_team.players,this.dataPlayersAway=k.data.away_team.players,k.data.home_team.starting_lineup[0].lineup.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0);for(let I=0;I<k.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=k.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.home_team.team_id+"_g.svg","home",0);var s=k.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=k.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=k.data.home_team.players.findIndex(z=>z.player_id==k.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:k.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[k.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.home_team.players[p].position_id-1].name,position_id:k.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.home_team.starting_lineup[0].lineup[I].player_id+".png",nationality:k.data.home_team.players[p].nationality?k.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:k.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:k.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:k.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:k.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:k.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:k.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(k.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),k.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),k.data.home_team.bench){for(let I=0;I<k.data.home_team.bench.length;I++){this.subsTitle=!0;var y=k.data.home_team.bench[I].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,S=k.data.home_team.players.findIndex(z=>z.player_id==k.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:k.data.home_team.bench[I].playerName,position:S!=-1?this.isFemale?this.positions[k.data.home_team.players[S].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.home_team.players[S].position_id-1].name:"",position_id:k.data.home_team.players[S].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.home_team.bench[I].playerID+".png",nationality:S!=-1&&k.data.home_team.players[S].nationality?k.data.home_team.players[S].nationality.substring(0,3):"",imgNationality:S!=-1?k.data.home_team.players[S].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:k.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:k.data.home_team.team_id})}this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}for(let I=0;I<k.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=k.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.away_team.team_id+"_g.svg","away",0);var N=k.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),_=N[0].split(" "),d=N[1].trim().split(" "),b="";_.length==2||_.length==1?_[0].length<4?b=_[0]+" "+_[1]:b=_[0]:_.length==3?b=_[0]+" "+_[1]:_.length==4&&(b=_[1]+" "+_[2]+" "+_[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=k.data.away_team.starting_lineup[0].lineup[I].x,R=100-(100-V)*50/100;R=R*.9;var Y=k.data.away_team.players.findIndex(z=>z.player_id==k.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:k.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[k.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.away_team.players[Y].position_id-1].name,position_id:k.data.away_team.players[Y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.away_team.starting_lineup[0].lineup[I].player_id+".png",nationality:k.data.away_team.players[Y].nationality?k.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:k.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:B,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:k.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:R,positionXOrigin:k.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:k.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:k.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:k.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(k.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),k.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),k.data.away_team.bench){for(let I=0;I<k.data.away_team.bench.length;I++){this.subsTitle=!0;var ne=k.data.away_team.bench[I].playerName.split(","),D=ne[0].split(" "),P=ne[1].trim().split(" "),H="";D.length==2||D.length==1?D[0].length<4?H=D[0]+" "+D[1]:H=D[0]:D.length==3?H=D[0]+" "+D[1]:D.length==4&&(H=D[1]+" "+D[2]+" "+D[3]);var kt=P[P.length-1]!=""?P[P.length-1].charAt(0):P[P.length-2]?P[P.length-2].charAt(0):"";H=H.replace(",","");var Et=kt+". "+H,X=k.data.away_team.players.findIndex(z=>z.player_id==k.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:k.data.away_team.bench[I].playerName,position:X!=-1?this.isFemale?this.positions[k.data.away_team.players[X].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.away_team.players[X].position_id-1].name:"",position_id:k.data.away_team.players[X].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.away_team.bench[I].playerID+".png",nationality:X!=-1&&k.data.away_team.players[X].nationality?k.data.away_team.players[X].nationality.substring(0,3):"",imgNationality:X!=-1?k.data.away_team.players[X].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:Et,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:k.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:k.data.away_team.team_id})}this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500)}catch(he){return Promise.reject(he)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(t){this.teamActive=t}}},Zl={style:{background:"#1d2a35"}},Ql={class:"size-browser-class"},vl={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},ec={class:"team-shield-left",style:{"margin-left":"16%"}},tc=["src"],ic={class:"team-shield-right",style:{"margin-right":"16%"}},sc=["src"],ac={class:"lineup-players is-centered"},nc=["onClick"],oc=["onClick"];function rc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Zl,[e.createElementVNode("div",Ql,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",vl,[e.createElementVNode("div",ec,[e.createElementVNode("img",{src:n.homeTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,tc)]),e.createElementVNode("div",ic,[e.createElementVNode("img",{src:n.awayTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,sc)])]),e.createElementVNode("div",ac,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[0]||(i[0]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)]),10,nc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[1]||(i[1]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)]),10,oc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)]),2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ")]),2)],2)):e.createCommentVNode("",!0)],2)])])}const lc=Q(Kl,[["render",rc]]),cc=Q({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(lc,{game:t.game,gamehome:t.gamehome,gameaway:t.gameaway,"selected-option":"Prematch"},null,8,["game","gamehome","gameaway"])]))}},[["__scopeId","data-v-c4b2885b"]]);te.GSCLineupsReports=cc,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
|
|
10
|
+
*/const j={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"}},Fi={itemsToShow:{default:j.itemsToShow,type:Number},itemsToScroll:{default:j.itemsToScroll,type:Number},wrapAround:{default:j.wrapAround,type:Boolean},throttle:{default:j.throttle,type:Number},snapAlign:{default:j.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:j.transition,type:Number},breakpoints:{default:j.breakpoints,type:Object},autoplay:{default:j.autoplay,type:Number},pauseAutoplayOnHover:{default:j.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:j.mouseDrag,type:Boolean},touchDrag:{default:j.touchDrag,type:Boolean},dir:{default:j.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:j.i18n,type:Object},settings:{default(){return{}},type:Object}};function Qn({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function vn({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function ut({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function eo({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:ut({val:r,max:s-o,min:0})}function Bi(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Bi(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function yt({val:t,max:i,min:s=0}){return t>i?yt({val:t-(i+1),max:i,min:s}):t<s?yt({val:t+(i+1),max:i,min:s}):t}function to(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function io(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function so(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var ao=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},j))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},so(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),no=e.defineComponent({name:"Carousel",props:Fi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),c=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},j));let p=Object.assign({},j),u;const l=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),y=e.ref(0),g=e.ref(0),m=e.ref(0);let S,N;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",l),e.provide("maxSlide",g),e.provide("minSlide",m),e.provide("slideWidth",c);function _(){u=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),b(p)}function d(){if(!u||!Object.keys(u).length)return;const T=Object.keys(u).map(A=>Number(A)).sort((A,v)=>+v-+A);let L=Object.assign({},p);T.some(A=>{const v=window.matchMedia(`(min-width: ${A}px)`).matches;return v&&(L=Object.assign(Object.assign({},L),u[A])),v}),b(L)}function b(T){Object.entries(T).forEach(([L,A])=>f[L]=A)}const E=io(()=>{d(),B()},16);function B(){if(!o.value)return;const T=o.value.getBoundingClientRect();c.value=T.width/f.itemsToShow}function V(){h.value<=0||(y.value=Math.ceil((h.value-1)/2),g.value=Qn({config:f,slidesCount:h.value}),m.value=vn({config:f,slidesCount:h.value}),f.wrapAround||(l.value=ut({val:l.value,max:g.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>B()),setTimeout(()=>B(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{N&&clearTimeout(N),S&&clearInterval(S),window.removeEventListener("resize",E,{passive:!0})});let R=!1;const Y={x:0,y:0},ne={x:0,y:0},D=e.reactive({x:0,y:0}),P=e.ref(!1),H=e.ref(!1),kt=()=>{P.value=!0},Et=()=>{P.value=!1};function X(T){["INPUT","TEXTAREA","SELECT"].includes(T.target.tagName)||(R=T.type==="touchstart",R||T.preventDefault(),!(!R&&T.button!==0||oe.value)&&(Y.x=R?T.touches[0].clientX:T.clientX,Y.y=R?T.touches[0].clientY:T.clientY,document.addEventListener(R?"touchmove":"mousemove",he,!0),document.addEventListener(R?"touchend":"mouseup",k,!0)))}const he=to(T=>{H.value=!0,ne.x=R?T.touches[0].clientX:T.clientX,ne.y=R?T.touches[0].clientY:T.clientY;const L=ne.x-Y.x,A=ne.y-Y.y;D.y=A,D.x=L},f.throttle);function k(){const T=f.dir==="rtl"?-1:1,L=Math.sign(D.x)*.4,A=Math.round(D.x/c.value+L)*T;if(A&&!R){const v=Vt=>{Vt.stopPropagation(),window.removeEventListener("click",v,!0)};window.addEventListener("click",v,!0)}re(l.value-A),D.x=0,D.y=0,H.value=!1,document.removeEventListener(R?"touchmove":"mousemove",he,!0),document.removeEventListener(R?"touchend":"mouseup",k,!0)}function I(){!f.autoplay||f.autoplay<=0||(S=setInterval(()=>{f.pauseAutoplayOnHover&&P.value||Pe()},f.autoplay))}function z(){S&&(clearInterval(S),S=null),I()}const oe=e.ref(!1);function re(T){const L=f.wrapAround?T:ut({val:T,max:g.value,min:m.value});l.value===L||oe.value||(s("slide-start",{slidingToIndex:T,currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!0,C.value=l.value,l.value=L,N=setTimeout(()=>{if(f.wrapAround){const A=yt({val:L,max:g.value,min:0});A!==l.value&&(l.value=A,s("loop",{currentSlideIndex:l.value,slidingToIndex:T}))}s("update:modelValue",l.value),s("slide-end",{currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!1,z()},f.transition))}function Pe(){re(l.value+f.itemsToScroll)}function It(){re(l.value-f.itemsToScroll)}const Xi={slideTo:re,next:Pe,prev:It};e.provide("nav",Xi),e.provide("isSliding",oe);const Gi=e.computed(()=>eo({config:f,currentSlide:l.value,slidesCount:h.value}));e.provide("slidesToScroll",Gi);const dc=e.computed(()=>{const T=f.dir==="rtl"?-1:1,L=Gi.value*c.value*T;return{transform:`translateX(${D.x-L}px)`,transition:`${oe.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function Ji(){_(),d(),V(),B(),z()}Object.keys(Fi).forEach(T=>{["modelValue"].includes(T)||e.watch(()=>t[T],Ji)}),e.watch(()=>t.modelValue,T=>{T!==l.value&&re(Number(T))}),e.watch(h,V),s("before-init"),_();const Yi={config:f,slidesCount:h,slideWidth:c,next:Pe,prev:It,slideTo:re,currentSlide:l,maxSlide:g,minSlide:m,middleSlide:y};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:B,initDefaultConfigs:_,restartCarousel:Ji,slideTo:re,next:Pe,prev:It,nav:Xi,data:Yi});const Ki=i.default||i.slides,Zi=i.addons,Qi=e.reactive(Yi);return()=>{const T=Bi(Ki==null?void 0:Ki(Qi)),L=(Zi==null?void 0:Zi(Qi))||[];T.forEach((Nt,Tt)=>Nt.props.index=Tt);let A=T;if(f.wrapAround){const Nt=T.map((Ot,be)=>e.cloneVNode(Ot,{index:-T.length+be,isClone:!0,key:`clone-before-${be}`})),Tt=T.map((Ot,be)=>e.cloneVNode(Ot,{index:T.length+be,isClone:!0,key:`clone-after-${be}`}));A=[...Nt,...T,...Tt]}r.value=T,h.value=Math.max(T.length,1);const v=e.h("ol",{class:"carousel__track",style:dc.value,onMousedownCapture:f.mouseDrag?X:null,onTouchstartPassiveCapture:f.touchDrag?X:null},A),Vt=e.h("div",{class:"carousel__viewport"},v);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":oe.value,"is-dragging":H.value,"is-hover":P.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:kt,onMouseleave:Et},[Vt,L,e.h(ao)])}}}),zi;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(zi||(zi={}));var oo=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},j))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,c=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),u=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=u};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const ro=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},lo=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),co={class:"gsc-carousel"},mo={key:0},ho=lo(()=>e.createElementVNode("div",null,"no hay",-1)),po=[ho],fo={class:"gsc-carousel__2d__slides"},go={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uo=["fill"],yo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_o=["fill"],bo={class:"gsc-carousel__2d__navigation"},wo={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Co=["stroke"],So={key:1,class:"gsc-carousel__2d__navigation__pagination"},ko=["onClick"],Eo={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Io=["stroke"],Vo={__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:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:s}){const a=t;e.useCssVars(g=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),c=e.ref(!1);e.watch(n,g=>{g&&c.value?(c.value=!1,h(a.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.defaultItemByIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.items,g=>{n.value?h(g):c.value=!0},{immediate:!0});function h(g){g&&g.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(S=>S[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=g[m]):(r.value=0,o.value=g[0])}else r.value=a.defaultItemByIndex,o.value=g[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function u(){n.value&&n.value.updateSlideWidth()}function l(g){n.value&&n.value.slideTo(g)}function C(g){n.value.slideTo(g)}function y(g){const m=g.slidingToIndex<0?a.items.length-1:g.slidingToIndex===a.items.length?0:g.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:u,slideTo:l}),(g,m)=>(e.openBlock(),e.createElementBlock("div",co,[a.is3d?(e.openBlock(),e.createElementBlock("div",mo,po)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",fo,[e.createVNode(e.unref(no),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:y},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(S,N)=>(e.openBlock(),e.createBlock(e.unref(oo),{key:N},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=S=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",go,[e.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:t.arrowsColor},null,8,uo)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=S=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",yo,[e.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:t.arrowsColor},null,8,_o)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",bo,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=S=>p())},[(e.openBlock(),e.createElementBlock("svg",wo,[e.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:a.arrowsColor},null,8,Co)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",So,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(S,N)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${N}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===N?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===N?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:_=>C(N)},null,12,ko))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=S=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Eo,[e.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:a.arrowsColor},null,8,Io)]))])):e.createCommentVNode("",!0)])],2))]))}},_t=ro(Vo,[["__scopeId","data-v-54620d25"]]);function No(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const To=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},bt={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 t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Ri=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Di=bt.setup;bt.setup=Di?(t,i)=>(Ri(),Di(t,i)):Ri;const Oo={ref:"gscScrollableContainer",class:"scrollable-container"},$o={class:"scrollable-arrows"},Fo=["width","height","viewBox"],Bo=["stroke"],zo={class:"scrollable-wrapper"},Ro={class:"scrollable-arrows"},Do=["width","height","viewBox"],Mo=["stroke"];function Ao(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Oo,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",$o,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,Bo)],8,Fo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",zo,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",Ro,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,Mo)],8,Do))])],2)):e.createCommentVNode("",!0)],512)}const jo=To(bt,[["render",Ao],["__scopeId","data-v-b548a08d"]]),Lo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},wt={components:{GSCSlider:jo},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 t=e.ref("myDivRef"),{elementSize:i}=No(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Mi=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},Ai=wt.setup;wt.setup=Ai?(t,i)=>(Mi(),Ai(t,i)):Mi;const Uo={ref:"myDivRef"},Po={key:0,class:"gs-switch-container"},Ho=["onClick"],xo={key:1,class:"gs-switch-container-type"},Wo=["onClick"],qo={key:2,class:"gs-switch-container-carousel"},Xo=["onClick"];function Go(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",Uo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Ho))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Wo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",qo,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Xo))),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"])])):e.createCommentVNode("",!0)],512)}const Ue=Lo(wt,[["render",Go],["__scopeId","data-v-8a86dfaf"]]),Jo={selectoritem:"_selectoritem_1hm4i_137",selectoritem2:"_selectoritem2_1hm4i_157",gscheaderlineup:"_gscheaderlineup_1hm4i_177",anNoEstn:"_anNoEstn_1hm4i_191",groupsLeague:"_groupsLeague_1hm4i_197",jugadores:"_jugadores_1hm4i_209",switchOption:"_switchOption_1hm4i_219",jugadores1:"_jugadores1_1hm4i_239",switchOption1:"_switchOption1_1hm4i_249",switchStatesBig:"_switchStatesBig_1hm4i_265",groupsLeagueParent:"_groupsLeagueParent_1hm4i_283",imgHomeTeamIcon:"_imgHomeTeamIcon_1hm4i_301",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1hm4i_313",teamContainer:"_teamContainer_1hm4i_337",name:"_name_1hm4i_361",homeTeamContainer:"_homeTeamContainer_1hm4i_373",div:"_div_1hm4i_393",scoreContainer:"_scoreContainer_1hm4i_401",scoreContainerWrapper:"_scoreContainerWrapper_1hm4i_421",teamContainer1:"_teamContainer1_1hm4i_447",awayTeamContainer:"_awayTeamContainer_1hm4i_471",matchContainer:"_matchContainer_1hm4i_491",sliderMatchesChild:"_sliderMatchesChild_1hm4i_509",manchesterUnited:"_manchesterUnited_1hm4i_521",sliderMatchesItem:"_sliderMatchesItem_1hm4i_533",sliderMatches:"_sliderMatches_1hm4i_509",sortIcon:"_sortIcon_1hm4i_569",filtros:"_filtros_1hm4i_583",sortParent:"_sortParent_1hm4i_599",shapeIcon:"_shapeIcon_1hm4i_613",btnFilter:"_btnFilter_1hm4i_623",btnFilter1:"_btnFilter1_1hm4i_651",btnFilterParent:"_btnFilterParent_1hm4i_679",backArrowIcon:"_backArrowIcon_1hm4i_695",teamContainer2:"_teamContainer2_1hm4i_707",homeTeam:"_homeTeam_1hm4i_373",div4:"_div4_1hm4i_735",finalScore:"_finalScore_1hm4i_745",manchesterUnited1:"_manchesterUnited1_1hm4i_771",scoreContainer1:"_scoreContainer1_1hm4i_785",match:"_match_1hm4i_491",manchesterUnited2:"_manchesterUnited2_1hm4i_821",btnDetails:"_btnDetails_1hm4i_831",matchContainer1:"_matchContainer1_1hm4i_851",goalChild:"_goalChild_1hm4i_867",goal:"_goal_1hm4i_867",manchesterUnited3:"_manchesterUnited3_1hm4i_893",minuteEvent:"_minuteEvent_1hm4i_907",yellowCard:"_yellowCard_1hm4i_921",awayTeamEvents:"_awayTeamEvents_1hm4i_935",rectangle:"_rectangle_1hm4i_949",homeTeamEvents:"_homeTeamEvents_1hm4i_963",totalEvents:"_totalEvents_1hm4i_979",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1hm4i_995",switchOption3:"_switchOption3_1hm4i_1017",switchOption4:"_switchOption4_1hm4i_1041",switchStatesBig1:"_switchStatesBig1_1hm4i_1061",manchesterUnited13:"_manchesterUnited13_1hm4i_1075",homeTeamContainer1:"_homeTeamContainer1_1hm4i_1085",scoreContainer2:"_scoreContainer2_1hm4i_1099",matchContainer2:"_matchContainer2_1hm4i_1127",manchesterUnited14:"_manchesterUnited14_1hm4i_1147",sliderMatchesInner:"_sliderMatchesInner_1hm4i_1161",rectangleIcon:"_rectangleIcon_1hm4i_1181",sliderMatches1:"_sliderMatches1_1hm4i_1201",containerData:"_containerData_1hm4i_1217",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1hm4i_1245",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1hm4i_995",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1hm4i_1293",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1hm4i_1299",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1hm4i_1307"},Yo={components:{GSCCarousel:_t,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ko=["src"],Zo=["src"],Qo=["src"],vo=["src"],er=["src"],tr=["src"];function ir(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,Ko)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,Zo)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,Qo)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,vo)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,er)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,tr)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const sr=Q(Yo,[["render",ir],["__cssModules",{$style:Jo}]]),ar=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Ct={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ji=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Li=Ct.setup;Ct.setup=Li?(t,i)=>(ji(),Li(t,i)):ji;const nr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),or=["src"],rr={key:1,class:"text"},lr=["src"],cr={class:"stats"},dr=nr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),mr={class:"numstats"},hr={class:"leyend"};function pr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,or)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",rr,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,lr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",cr,[dr,e.createElementVNode("div",mr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",hr,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const fr=ar(Ct,[["render",pr],["__scopeId","data-v-f3ee6b2b"]]),gr={class:"gsc-dropdown__main-container__item-selected"},ur=["height","width"],yr=["stroke"],_r={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},br=["fill"],wr={class:"gsc-dropdown__items-container"},Cr=["onClick"],Sr={key:0,class:"gsc-dropdown__items-footer"},Ui={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,y)=>{if(!s.modelValue&&(!s.onlyFirstTime||!y||!y.length)&&C&&C.length){if(s.defaultItemByProp){const g=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);g!==-1?(o.value=g,a.value=C[g]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const y=s.items.findIndex(g=>typeof C=="object"?JSON.stringify(g)===JSON.stringify(C):g===C);y!==-1&&(o.value=y,a.value=s.items[y],i("update:modelValue",a.value))}},{immediate:!0});const c=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function u(C,y){s.isMultipleOption?o.value=-1:(o.value=y,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function l(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(c.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",gr,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,yr)],8,ur)):(e.openBlock(),e.createElementBlock("svg",_r,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,br)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",wr,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(g,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:S=>u(g,m)},[e.renderSlot(C.$slots,"availableItem",{item:g})],10,Cr)),[[e.vShow,!g.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Sr,[e.createVNode(e.unref(fr),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:l})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},kr=["for"],Er=["name"],Ir={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,kr)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)]),8,Er)):(e.openBlock(),e.createElementBlock("svg",Ir,n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]))}},Vr=["value"],Nr={class:"filter-modal__padding"},Tr={class:"filter-modal__content-header"},Or={class:"filter-modal__content-options"},$r=["onClick"],Fr={class:"filter-modal__content-header"},Br={class:"filter-modal__content-options"},zr=["onClick"],Rr=Q({__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({d00c78a6:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,c=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),u=e.ref(!0),l=e.ref(!0),C=e.ref(["local","visit"]),y=e.ref(["win","draw","lose"]),g=()=>{o.value.focus(),c.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(y.value)),f.value=u.value,p.value=l.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,y.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&S()});const m=(d,b)=>{let E;b==="team"?E=C.value:E=y.value;const B=E.findIndex(V=>V===d);B==-1?E.push(d):b=="team"&&C.value.length==2?E.splice(B,1):(b=="team"&&E.push(d),y.value.length>1&&E.splice(B,1)),u.value=C.value.length==2,l.value=y.value.length==3},S=()=>{C.value=["local","visit"],y.value=["win","draw","lose"],u.value=!0,l.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:y.value})},N=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:y.value})},_=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:y.value})};return(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[b[5]||(b[5]=e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Vr),b[6]||(b[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:b[4]||(b[4]=E=>{t.isOpen=!1,_()})},[e.createElementVNode("div",Nr,[e.createElementVNode("div",Tr,[b[7]||(b[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(Pi,{modelValue:u.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>u.value=E),b[1]||(b[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Or,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,$r)),64))]),e.createElementVNode("div",Fr,[b[8]||(b[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(Pi,{modelValue:l.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>l.value=E),b[3]||(b[3]=E=>E&&(y.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Br,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"player"),class:e.normalizeClass({active:y.value.includes(E.id)})},e.toDisplayString(E.name),11,zr)),64))])]),b[9]||(b[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:S},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:N},"Listo")])],34)],4))}},[["__scopeId","data-v-2118a6cd"]]),Dr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},Mr={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ar={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Dr,s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)]))):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",Mr,s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)]))):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Ar,s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)]))):e.createCommentVNode("",!0)}},jr={class:"match-details"},Lr={class:"match-details__list"},Ur={class:"match-details__list right"},Pr=Q({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("ul",Lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(Hi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",Ur,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(Hi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-ad3b88e3"]]),Hr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},St={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},xi=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Wi=St.setup;St.setup=Wi?(t,i)=>(xi(),Wi(t,i)):xi;const xr={key:0,class:"text-left"},Wr=["width","src"],qr=["checked"],Xr=["width","src"],Gr={key:3,class:"text-right"};function Jr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",xr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,Wr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,qr),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,Xr)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Gr,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const Yr=Hr(St,[["render",Jr],["__scopeId","data-v-e2a20444"]]),Kr={containernofoundsearchrecientes:"_containernofoundsearchrecientes_nc3mr_159","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_nc3mr_171","btn-delete-filters":"_btn-delete-filters_nc3mr_183",btndeletefilters:"_btndeletefilters_nc3mr_215",leyenddeleteshow:"_leyenddeleteshow_nc3mr_247",selectoritem:"_selectoritem_nc3mr_261",anNoEstn:"_anNoEstn_nc3mr_279",groupsLeague:"_groupsLeague_nc3mr_287",historicas:"_historicas_nc3mr_297",switchOption:"_switchOption_nc3mr_309",recientes:"_recientes_nc3mr_331",switchOption1:"_switchOption1_nc3mr_343",switchOption2:"_switchOption2_nc3mr_369",switchStatesBig:"_switchStatesBig_nc3mr_387",groupsLeagueParent:"_groupsLeagueParent_nc3mr_407",imgHomeTeamIcon:"_imgHomeTeamIcon_nc3mr_427",imgHomeTeamWrapper:"_imgHomeTeamWrapper_nc3mr_441",teamContainer:"_teamContainer_nc3mr_467",name:"_name_nc3mr_493",homeTeamContainer:"_homeTeamContainer_nc3mr_507",div:"_div_nc3mr_529",scoreContainer:"_scoreContainer_nc3mr_539",scoreContainerWrapper:"_scoreContainerWrapper_nc3mr_561",teamContainer1:"_teamContainer1_nc3mr_587",awayTeamContainer:"_awayTeamContainer_nc3mr_613",matchContainer:"_matchContainer_nc3mr_635",sliderMatchesChild:"_sliderMatchesChild_nc3mr_655",manchesterUnited:"_manchesterUnited_nc3mr_669",sliderMatchesItem:"_sliderMatchesItem_nc3mr_683",sliderMatches:"_sliderMatches_nc3mr_655",sortIcon:"_sortIcon_nc3mr_719",filtros:"_filtros_nc3mr_735",sortParent:"_sortParent_nc3mr_753",shapeIcon:"_shapeIcon_nc3mr_769",btnFilter:"_btnFilter_nc3mr_781",btnFilter1:"_btnFilter1_nc3mr_813",btnFilterParent:"_btnFilterParent_nc3mr_843",backArrowIcon:"_backArrowIcon_nc3mr_861",teamContainer2:"_teamContainer2_nc3mr_875",homeTeam:"_homeTeam_nc3mr_507",div4:"_div4_nc3mr_907",finalScore:"_finalScore_nc3mr_919",manchesterUnited1:"_manchesterUnited1_nc3mr_947",scoreContainer1:"_scoreContainer1_nc3mr_963",match:"_match_nc3mr_635",manchesterUnited2:"_manchesterUnited2_nc3mr_997",btnDetails:"_btnDetails_nc3mr_1023",matchContainer1:"_matchContainer1_nc3mr_1045",goalChild:"_goalChild_nc3mr_1063",goal:"_goal_nc3mr_1063",manchesterUnited3:"_manchesterUnited3_nc3mr_1093",minuteEvent:"_minuteEvent_nc3mr_1109",yellowCard:"_yellowCard_nc3mr_1125",awayTeamEvents:"_awayTeamEvents_nc3mr_1141",rectangle:"_rectangle_nc3mr_1157",homeTeamEvents:"_homeTeamEvents_nc3mr_1173",totalEvents:"_totalEvents_nc3mr_1191",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_nc3mr_1209",sliderMatchesInner:"_sliderMatchesInner_nc3mr_1231",btnFilter2:"_btnFilter2_nc3mr_1245",btnDetails1:"_btnDetails1_nc3mr_1279",matchContainer3:"_matchContainer3_nc3mr_1297",backArrowIcon1:"_backArrowIcon1_nc3mr_1319",match1:"_match1_nc3mr_1333",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_nc3mr_1345",jugadores2:"_jugadores2_nc3mr_1367",switchOption6:"_switchOption6_nc3mr_1381",switchOption7:"_switchOption7_nc3mr_1403",switchStatesBig2:"_switchStatesBig2_nc3mr_1429",manchesterUnited26:"_manchesterUnited26_nc3mr_1445",homeTeamContainer2:"_homeTeamContainer2_nc3mr_1457",vectorIcon:"_vectorIcon_nc3mr_1473",teamSwitch:"_teamSwitch_nc3mr_1485",matchContainer5:"_matchContainer5_nc3mr_1511",manchesterUnited27:"_manchesterUnited27_nc3mr_1533",sliderMatchesChild1:"_sliderMatchesChild1_nc3mr_1549",sliderMatchesChild2:"_sliderMatchesChild2_nc3mr_1571",sliderMatches2:"_sliderMatches2_nc3mr_1593",filtros2:"_filtros2_nc3mr_1613",btnFilter4:"_btnFilter4_nc3mr_1633",jornada2:"_jornada2_nc3mr_1665",filterMatchday:"_filterMatchday_nc3mr_1679",btnDetails2:"_btnDetails2_nc3mr_1701",filtersContainer:"_filtersContainer_nc3mr_1723",matchContainer6:"_matchContainer6_nc3mr_1743",matchDetailContainer:"_matchDetailContainer_nc3mr_1761",containerData:"_containerData_nc3mr_1781",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_nc3mr_1811",headerSeccionAlineaciones:"_headerSeccionAlineaciones_nc3mr_1209",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_nc3mr_1863",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_nc3mr_1889",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_nc3mr_1915",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_nc3mr_1939",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_nc3mr_1965",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_nc3mr_1993",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_nc3mr_2015",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_nc3mr_2037",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_nc3mr_2065",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_nc3mr_2089",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_nc3mr_2111"},Zr={components:{GSCCarousel:_t,GscSwitchComponent:Ue,GSCDropdown:Ui,GSCFilter:Rr,GSCSwitchRadio:Yr,GSCMatchDetails:Pr},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Qr=["src"],vr=["src"],el={class:"selector-tournaments"},tl=["src"],il=["src"],sl={key:1},al=["src"],nl=["src"],ol={class:"selector-tournaments"},rl=["src"],ll=["src"],cl={key:1},dl=["src"],ml=["src"],hl={class:"selector-tournaments"},pl=["src"],fl=["src"],gl={key:1};function ul(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),u=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Qr)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,vr)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(l=>[e.createElementVNode("div",el,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,tl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,il),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",sl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[11]||(i[11]=[e.createTextVNode(" No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(u,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,al)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,nl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter1.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow1.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(l=>[e.createElementVNode("div",ol,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,ll),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",cl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[14]||(i[14]=[e.createTextVNode(" No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(u,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,ml)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter2.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-arrow-expand.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(l=>[e.createElementVNode("div",hl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,fl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[15]||(i[15]=[e.createTextVNode(" No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(u,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const yl=Q(Zr,[["render",ul],["__cssModules",{$style:Kr}]]),_l={selectoritem:"_selectoritem_125nf_179",selectoritem2:"_selectoritem2_125nf_199",gscheaderlineup:"_gscheaderlineup_125nf_219",anNoEstn:"_anNoEstn_125nf_233",groupsLeague:"_groupsLeague_125nf_239",jugadores:"_jugadores_125nf_249",switchOption:"_switchOption_125nf_259",jugadores1:"_jugadores1_125nf_279",switchOption1:"_switchOption1_125nf_289",switchStatesBig:"_switchStatesBig_125nf_305",groupsLeagueParent:"_groupsLeagueParent_125nf_323",imgHomeTeamIcon:"_imgHomeTeamIcon_125nf_341",imgHomeTeamWrapper:"_imgHomeTeamWrapper_125nf_353",teamContainer:"_teamContainer_125nf_377",name:"_name_125nf_401",homeTeamContainer:"_homeTeamContainer_125nf_413",div:"_div_125nf_433",titleSession:"_titleSession_125nf_441",scoreContainer:"_scoreContainer_125nf_461",scoreContainerWrapper:"_scoreContainerWrapper_125nf_481",teamContainer1:"_teamContainer1_125nf_505",awayTeamContainer:"_awayTeamContainer_125nf_529",matchContainer:"_matchContainer_125nf_549",sliderMatchesChild:"_sliderMatchesChild_125nf_567",manchesterUnited:"_manchesterUnited_125nf_579",sliderMatchesItem:"_sliderMatchesItem_125nf_591",sliderMatches:"_sliderMatches_125nf_567",sortIcon:"_sortIcon_125nf_627",filtros:"_filtros_125nf_641",sortParent:"_sortParent_125nf_657",shapeIcon:"_shapeIcon_125nf_671",btnFilter:"_btnFilter_125nf_681",btnFilter1:"_btnFilter1_125nf_709",btnFilterParent:"_btnFilterParent_125nf_737",backArrowIcon:"_backArrowIcon_125nf_753",teamContainer2:"_teamContainer2_125nf_765",homeTeam:"_homeTeam_125nf_413",div4:"_div4_125nf_793",finalScore:"_finalScore_125nf_803",manchesterUnited1:"_manchesterUnited1_125nf_829",scoreContainer1:"_scoreContainer1_125nf_843",match:"_match_125nf_549",manchesterUnited2:"_manchesterUnited2_125nf_879",btnDetails:"_btnDetails_125nf_889",matchContainer1:"_matchContainer1_125nf_909",goalChild:"_goalChild_125nf_925",goal:"_goal_125nf_925",manchesterUnited3:"_manchesterUnited3_125nf_951",minuteEvent:"_minuteEvent_125nf_965",yellowCard:"_yellowCard_125nf_979",awayTeamEvents:"_awayTeamEvents_125nf_993",rectangle:"_rectangle_125nf_1007",homeTeamEvents:"_homeTeamEvents_125nf_1021",totalEvents:"_totalEvents_125nf_1037",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_125nf_1053",switchOption3:"_switchOption3_125nf_1075",switchOption4:"_switchOption4_125nf_1099",switchStatesBig1:"_switchStatesBig1_125nf_1119",manchesterUnited13:"_manchesterUnited13_125nf_1133",homeTeamContainer1:"_homeTeamContainer1_125nf_1143",scoreContainer2:"_scoreContainer2_125nf_1157",matchContainer2:"_matchContainer2_125nf_1185",manchesterUnited14:"_manchesterUnited14_125nf_1205",sliderMatchesInner:"_sliderMatchesInner_125nf_1219",rectangleIcon:"_rectangleIcon_125nf_1239",sliderMatches1:"_sliderMatches1_125nf_1259",containerData:"_containerData_125nf_1275",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_125nf_1303",headerSeccionAlineaciones:"_headerSeccionAlineaciones_125nf_1053",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_125nf_1351",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_125nf_1357",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_125nf_1365"},bl={components:{GSCCarousel:_t,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},wl=["src"],Cl=["src"],Sl=["src"],kl=["src"],El=["src"],Il=["src"];function Vl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,wl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+" | "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+" | "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Cl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Sl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,kl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,El)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Il)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Nl=Q(bl,[["render",Vl],["__cssModules",{$style:_l}]]),Tl={anNoEstn:"_anNoEstn_j98j7_139",groupsLeague:"_groupsLeague_j98j7_145",historicas:"_historicas_j98j7_153",switchOption:"_switchOption_j98j7_163",switchOption1:"_switchOption1_j98j7_183",probables:"_probables_j98j7_203",switchOption2:"_switchOption2_j98j7_213",switchStatesBig:"_switchStatesBig_j98j7_237",groupsLeagueParent:"_groupsLeagueParent_j98j7_255",imgHomeTeamIcon:"_imgHomeTeamIcon_j98j7_273",imgHomeTeamWrapper:"_imgHomeTeamWrapper_j98j7_285",teamContainer:"_teamContainer_j98j7_309",name:"_name_j98j7_333",jor:"_jor_j98j7_345",jorParent:"_jorParent_j98j7_357",shapeIcon:"_shapeIcon_j98j7_373",frameParent:"_frameParent_j98j7_383",manchesterUnited:"_manchesterUnited_j98j7_413",necaxaIcon:"_necaxaIcon_j98j7_435",manchesterUnited1:"_manchesterUnited1_j98j7_447",team:"_team_j98j7_309",homeTeamContainer:"_homeTeamContainer_j98j7_475",div1:"_div1_j98j7_495",scoreContainer:"_scoreContainer_j98j7_503",scoreContainerWrapper:"_scoreContainerWrapper_j98j7_525",team1:"_team1_j98j7_549",name1:"_name1_j98j7_563",teamContainer1:"_teamContainer1_j98j7_577",awayTeamContainer:"_awayTeamContainer_j98j7_601",matchContainer:"_matchContainer_j98j7_623",goalChild:"_goalChild_j98j7_641",goal:"_goal_j98j7_641",manchesterUnited4:"_manchesterUnited4_j98j7_667",minuteEvent:"_minuteEvent_j98j7_681",yellowCard:"_yellowCard_j98j7_695",awayTeamEvents:"_awayTeamEvents_j98j7_709",rectangle:"_rectangle_j98j7_723",homeTeamEvents:"_homeTeamEvents_j98j7_737",totalEvents:"_totalEvents_j98j7_753",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_j98j7_769",homeTeamContainer1:"_homeTeamContainer1_j98j7_789",awayTeamContainer1:"_awayTeamContainer1_j98j7_813",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_j98j7_837",jugadores:"_jugadores_j98j7_857",switchOption6:"_switchOption6_j98j7_869",switchOption8:"_switchOption8_j98j7_889",switchStatesBig2:"_switchStatesBig2_j98j7_913",manchesterUnited28:"_manchesterUnited28_j98j7_927",homeTeamContainer2:"_homeTeamContainer2_j98j7_935",matchContainer2:"_matchContainer2_j98j7_949",manchesterUnited29:"_manchesterUnited29_j98j7_971",sliderMatchesChild:"_sliderMatchesChild_j98j7_985",sliderMatchesItem:"_sliderMatchesItem_j98j7_1005",sliderMatches:"_sliderMatches_j98j7_985",jorParent2:"_jorParent2_j98j7_1045",filterMatchday:"_filterMatchday_j98j7_1059",necaxaIcon4:"_necaxaIcon4_j98j7_1081",team4:"_team4_j98j7_1093",filterMatchdayParent:"_filterMatchdayParent_j98j7_1113",filterMatchday1:"_filterMatchday1_j98j7_1127",teamParent:"_teamParent_j98j7_1157",filtersContainer:"_filtersContainer_j98j7_1177",containerData:"_containerData_j98j7_1195",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_j98j7_1223",headerSeccionAlineaciones:"_headerSeccionAlineaciones_j98j7_769"},Ol={components:{GSCDropdown:Ui,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},$l=["src"],Fl={class:"selector-tournaments"},Bl=["src"],zl=["src"],Rl={class:"selector-tournaments"},Dl=["src"],Ml=["src"],Al={class:"selector-tournaments"},jl=["src"],Ll=["src"],Ul={class:"selector-tournaments"},Pl=["src"],Hl=["src"],xl=["src"],Wl={class:"selector-tournaments"},ql=["src"],Xl=["src"],Gl={class:"selector-tournaments"};function Jl(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,$l)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Fl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,zl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Rl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Dl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Ml)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Al,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Ll),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Ul,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Pl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Hl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,xl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Wl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,Xl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Gl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const Yl=Q(Ol,[["render",Jl],["__cssModules",{$style:Tl}]]);let qi=null;const Kl={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:Zn,HeaderPlayerHistorico:sr,HeaderPlayerRecientes:yl,HeaderPlayerProbables:Yl,HeaderPlayerPostmatch:Nl},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(t){throw new Error(t)}},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&setTimeout(()=>{this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,this.cleaneDataAway(),this.cleaneDataHome(),this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),this.lastSection=t},1e3),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[F.get(this.urlGames+t.season_id+"/games/"+t.game_id,s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==this.lastGetLineUpGameId&&(o=F.get(this.url+r,s),n.push(o));const[c,h]=await Promise.all(n);await this.gameDataInfo(t,c),await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=this.dataPlayersHome.findIndex(S=>S.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,S)=>m.position_id>S.position_id?1:S.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),u=s[1].trim().split(" "),l="";p.length==2||p.length==1?p[0].length<4?l=p[0]+" "+p[1]:l=p[0]:p.length==3?l=p[0]+" "+p[1]:p.length==4&&(l=p[1]+" "+p[2]+" "+p[3]);var C=u[u.length-1]!=""?u[u.length-1].charAt(0):u[u.length-2]?u[u.length-2].charAt(0):"";l=l.replace(",","");var y=C+". "+l,g=this.dataPlayersAway.findIndex(S=>S.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:g!=-1?this.isFemale?this.positions[this.dataPlayersAway[g].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[g].position_id-1].name:"",position_id:this.dataPlayersAway[g].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].playerID+".png",nationality:g!=-1&&this.dataPlayersAway[g].nationality?this.dataPlayersAway[g].nationality.substring(0,3):"",imgNationality:g!=-1?this.dataPlayersAway[g].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:y,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,S)=>m.position_id>S.position_id?1:S.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersHome.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var u=i.data[d].player_name.split(","),l=u[0].split(" "),C=u[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";y=y.replace(",","");var m=g+". "+y,S=i.data[d].x,N=100-(100-S)*50/100;N=N*.9;var _=i.away_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:_!=-1?this.isFemale?this.positions[i.away_team.players[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[_].position_id-1].name:"",position_id:i.away_team.players[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:_!=-1&&i.away_team.players[_].nationality?i.away_team.players[_].nationality.substring(0,3):"",imgNationality:_!=-1?i.away_team.players[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:N+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var c=this.playersHome[V].idsGoals.findIndex(R=>R==i.play_id);c!=-1&&(s=c,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var u=this.playersAway[V].idsGoals.findIndex(R=>R==i.play_id);u!=-1&&(s=u,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==l[0]),y=this.playersHome.findIndex(V=>V.playerId==l[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),y!=-1&&(this.playersHome[y].idSubstitution=i.play_id,this.playersHome[y].substitutionIn=!0,this.playersHome[y].substitutionMin=i.minute,this.playersHome[y].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var g=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==g[0]),S=this.playersAway.findIndex(V=>V.playerId==g[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),S!=-1&&(this.playersAway[S].idSubstitution=i.play_id,this.playersAway[S].substitutionIn=!0,this.playersAway[S].substitutionMin=i.minute,this.playersAway[S].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var N=this.playersHome.findIndex(V=>V.playerId==i.player_id);N!=-1&&(this.playersHome[N].goals+=1,this.playersHome[N].goalsMin.push(i.minute),this.playersHome[N].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(V=>V.playerId==i.player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(i.minute),this.playersAway[_].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var b=this.playersAway.findIndex(V=>V.playerId==i.player_id);b!=-1&&(this.playersAway[b].yellowcards+=1,this.playersAway[b].yellowcardsMin=i.minute,this.playersAway[b].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var B=this.playersAway.findIndex(V=>V.playerId==i.player_id);B!=-1&&(this.playersAway[B].redcards+=1,this.playersAway[B].redcardsMin=i.minute,this.playersAway[B].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(y=>y.playerId==s[0]),n=this.playersHome.findIndex(y=>y.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(y=>y.playerId==o[0]),c=this.playersAway.findIndex(y=>y.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),c!=-1&&(this.playersAway[c].idSubstitution=i.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=i.minute,this.playersAway[c].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(y=>y.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(y=>y.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(y=>y.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var u=this.playersAway.findIndex(y=>y.playerId==i.player_id);u!=-1&&(this.playersAway[u].yellowcards+=1,this.playersAway[u].yellowcardsMin=i.minute,this.playersAway[u].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(y=>y.playerId==i.player_id);l!=-1&&(this.playersHome[l].redcards+=1,this.playersHome[l].redcardsMin=i.minute,this.playersHome[l].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(y=>y.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){try{const d=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<d.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=d.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),d.data.home_team.bench){for(let b=0;b<d.data.home_team.bench.length;b++){this.subsTitle=!0;var p=d.data.home_team.bench[b].playerName.split(","),u=p[0].split(" "),l=p[1].trim().split(" "),C="";u.length==2||u.length==1?u[0].length<4?C=u[0]+" "+u[1]:C=u[0]:u.length==3?C=u[0]+" "+u[1]:u.length==4&&(C=u[1]+" "+u[2]+" "+u[3]);var y=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=y+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<d.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,S=d.data.away_team.starting_lineup[0].lineup[b].x;S=Math.abs(S-100);var h=S*50/100,N=d.data.away_team.starting_lineup[0].lineup[b].y;N=Math.abs(N-100);var f=d.data.away_team.players.findIndex(H=>H.player_id==d.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:N-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),d.data.away_team.bench){for(let b=0;b<d.data.away_team.bench.length;b++){this.subsTitle=!0;var p=d.data.away_team.bench[b].playerName.split(","),u=p[0].split(" "),l=p[1].trim().split(" "),C="";u.length==2||u.length==1?u[0].length<4?C=u[0]+" "+u[1]:C=u[0]:u.length==3?C=u[0]+" "+u[1]:u.length==4&&(C=u[1]+" "+u[2]+" "+u[3]);var y=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=y+". "+C,m=d.data.away_team.players.findIndex(P=>P.player_id==d.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}await this.getMXM(t)}catch(_){return Promise.reject(_)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(t){try{const _=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<_.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var i=_.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.home_team.starting_lineup[0].lineup[d].x;c=Math.abs(c-100);var h=_.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-c)*50/100;f=f*.9;var p=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[p].position_id-1].name,position_id:_.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.home_team.players[p].nationality?_.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.home_team.bench){for(let d=0;d<_.data.home_team.bench.length;d++){this.subsTitle=!0;var u=_.data.home_team.bench[d].playerName.split(","),l=u[0].split(" "),C=u[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";y=y.replace(",","");var m=g+". "+y,S=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[d].playerName,position:S!=-1?this.isFemale?this.positions[_.data.home_team.players[S].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[S].position_id-1].name:"",position_id:_.data.home_team.players[S].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.bench[d].playerID+".png",nationality:S!=-1&&_.data.home_team.players[S].nationality?_.data.home_team.players[S].nationality.substring(0,3):"",imgNationality:S!=-1?_.data.home_team.players[S].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=_.data.away_team.players;for(let d=0;d<_.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var i=_.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-c)*50/100;f=f*.9;var p=_.data.away_team.players.findIndex(H=>H.player_id==_.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[p].position_id-1].name,position_id:_.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.away_team.players[p].nationality?_.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.away_team.bench){for(let d=0;d<_.data.away_team.bench.length;d++){this.subsTitle=!0;var u=_.data.away_team.bench[d].playerName.split(","),l=u[0].split(" "),C=u[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";y=y.replace(",","");var m=g+". "+y,S=_.data.away_team.players.findIndex(D=>D.player_id==_.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[d].playerName,position:S!=-1?this.isFemale?this.positions[_.data.away_team.players[S].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[S].position_id-1].name:"",position_id:_.data.away_team.players[S].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.bench[d].playerID+".png",nationality:S!=-1&&_.data.away_team.players[S].nationality?_.data.away_team.players[S].nationality.substring(0,3):"",imgNationality:S!=-1?_.data.away_team.players[S].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}await this.getMXM(t)}catch(N){return Promise.reject(N)}},async getLineupProbablesHome(t){this.auxProbablesIDGameHome!=t.id&&(this.auxProbablesIDGameHome=t.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(t.id))},async getLineupProbablesAway(t){this.auxProbablesIDGameAway!=t.id&&(this.auxProbablesIDGameAway=t.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(t.id))},async getLineupProbables(t){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id},async changeCarouselItem(t){typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=t.game_id&&(this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id))},async changeCarouselItemRecent(t){if(t.selectedItem){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}},async getHeaderInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(this.urlGames+t.season_id+"/games/"+t.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){gt("lineups.game."+this.game.game_id,this.socket),gt("mxm.game."+this.game.game_id,this.socket),gt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==c[1]),f=this.playersAway.findIndex(p=>p.playerId==c[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)qi=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),qi.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=this.urlMXM+t;if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const g=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<g.data.plays.length;m++){if(g.data.plays[m].event_type_id==3){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=g.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(S=>S.playerId==i[0]),a=this.playersHome.findIndex(S=>S.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=g.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=g.data.plays[m].minute,this.playersHome[s].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=g.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=g.data.plays[m].minute,this.playersHome[a].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=g.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(S=>S.playerId==n[0]),r=this.playersAway.findIndex(S=>S.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=g.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=g.data.plays[m].minute,this.playersAway[o].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=g.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=g.data.plays[m].minute,this.playersAway[r].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}if(g.data.plays[m].event_type_id==1){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(S=>S.playerId==g.data.plays[m].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(g.data.plays[m].minute),this.playersHome[c].idsGoals.push(g.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(S=>S.playerId==g.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(g.data.plays[m].minute),this.playersAway[h].idsGoals.push(g.data.plays[m].play_id))}}if(g.data.plays[m].event_type_id==2){if(g.data.plays[m].category_id==8){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(S=>S.playerId==g.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=g.data.plays[m].minute,this.playersHome[f].idyellowcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(S=>S.playerId==g.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=g.data.plays[m].minute,this.playersAway[p].idyellowcards=g.data.plays[m].play_id)}}if(g.data.plays[m].category_id==9){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var u=this.playersHome.findIndex(S=>S.playerId==g.data.plays[m].player_id);u!=-1&&(this.playersHome[u].redcards+=1,this.playersHome[u].redcardsMin=g.data.plays[m].minute,this.playersHome[u].idredcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(S=>S.playerId==g.data.plays[m].player_id);l!=-1&&(this.playersAway[l].redcards+=1,this.playersAway[l].redcardsMin=g.data.plays[m].minute,this.playersAway[l].idredcards=g.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t!=null)try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const he=F.create({headers:{Authorization:`${this.tokenPremium}`}}),k=i||await he.get(this.url+t);if(!k||!k.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=k.data.home_team.players,this.dataPlayersAway=k.data.away_team.players,k.data.home_team.starting_lineup[0].lineup.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0);for(let I=0;I<k.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=k.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.home_team.team_id+"_g.svg","home",0);var s=k.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=k.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=k.data.home_team.players.findIndex(z=>z.player_id==k.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:k.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[k.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.home_team.players[p].position_id-1].name,position_id:k.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.home_team.starting_lineup[0].lineup[I].player_id+".png",nationality:k.data.home_team.players[p].nationality?k.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:k.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:k.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:k.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:k.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:k.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:k.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(k.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),k.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),k.data.home_team.bench){for(let I=0;I<k.data.home_team.bench.length;I++){this.subsTitle=!0;var u=k.data.home_team.bench[I].playerName.split(","),l=u[0].split(" "),C=u[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";y=y.replace(",","");var m=g+". "+y,S=k.data.home_team.players.findIndex(z=>z.player_id==k.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:k.data.home_team.bench[I].playerName,position:S!=-1?this.isFemale?this.positions[k.data.home_team.players[S].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.home_team.players[S].position_id-1].name:"",position_id:k.data.home_team.players[S].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.home_team.bench[I].playerID+".png",nationality:S!=-1&&k.data.home_team.players[S].nationality?k.data.home_team.players[S].nationality.substring(0,3):"",imgNationality:S!=-1?k.data.home_team.players[S].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:k.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:k.data.home_team.team_id})}this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}for(let I=0;I<k.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=k.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+k.data.away_team.team_id+"_g.svg","away",0);var N=k.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),_=N[0].split(" "),d=N[1].trim().split(" "),b="";_.length==2||_.length==1?_[0].length<4?b=_[0]+" "+_[1]:b=_[0]:_.length==3?b=_[0]+" "+_[1]:_.length==4&&(b=_[1]+" "+_[2]+" "+_[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=k.data.away_team.starting_lineup[0].lineup[I].x,R=100-(100-V)*50/100;R=R*.9;var Y=k.data.away_team.players.findIndex(z=>z.player_id==k.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:k.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[k.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.away_team.players[Y].position_id-1].name,position_id:k.data.away_team.players[Y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.away_team.starting_lineup[0].lineup[I].player_id+".png",nationality:k.data.away_team.players[Y].nationality?k.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:k.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:B,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:k.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:R,positionXOrigin:k.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:k.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:k.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:k.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(k.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),k.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),k.data.away_team.bench){for(let I=0;I<k.data.away_team.bench.length;I++){this.subsTitle=!0;var ne=k.data.away_team.bench[I].playerName.split(","),D=ne[0].split(" "),P=ne[1].trim().split(" "),H="";D.length==2||D.length==1?D[0].length<4?H=D[0]+" "+D[1]:H=D[0]:D.length==3?H=D[0]+" "+D[1]:D.length==4&&(H=D[1]+" "+D[2]+" "+D[3]);var kt=P[P.length-1]!=""?P[P.length-1].charAt(0):P[P.length-2]?P[P.length-2].charAt(0):"";H=H.replace(",","");var Et=kt+". "+H,X=k.data.away_team.players.findIndex(z=>z.player_id==k.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:k.data.away_team.bench[I].playerName,position:X!=-1?this.isFemale?this.positions[k.data.away_team.players[X].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[k.data.away_team.players[X].position_id-1].name:"",position_id:k.data.away_team.players[X].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+k.data.away_team.bench[I].playerID+".png",nationality:X!=-1&&k.data.away_team.players[X].nationality?k.data.away_team.players[X].nationality.substring(0,3):"",imgNationality:X!=-1?k.data.away_team.players[X].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:Et,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+k.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:k.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:k.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:k.data.away_team.team_id})}this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500)}catch(he){return Promise.reject(he)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(t){this.teamActive=t}}},Zl={style:{background:"#1d2a35"}},Ql={class:"size-browser-class"},vl={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},ec={class:"team-shield-left",style:{"margin-left":"16%"}},tc=["src"],ic={class:"team-shield-right",style:{"margin-right":"16%"}},sc=["src"],ac={class:"lineup-players is-centered"},nc=["onClick"],oc=["onClick"];function rc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Zl,[e.createElementVNode("div",Ql,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",vl,[e.createElementVNode("div",ec,[e.createElementVNode("img",{src:n.homeTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,tc)]),e.createElementVNode("div",ic,[e.createElementVNode("img",{src:n.awayTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,sc)])]),e.createElementVNode("div",ac,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[0]||(i[0]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)]),10,nc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[1]||(i[1]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)]),10,oc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)]),2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ")]),2)],2)):e.createCommentVNode("",!0)],2)])])}const lc=Q(Kl,[["render",rc]]),cc=Q({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameNumber:{type:Number,default:0},lastGames:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"}},setup(t){const i=t,s=o=>o?{game_id:o.game_id||null,season_id:o.season_id||null,prematch:o.prematch!==void 0?o.prematch:!0}:{game_id:null,season_id:null,prematch:!0},a=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_home_games){const o=i.gameNumber-1,r=i.lastGames.last_home_games[o];return s(r)}return s(null)}),n=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_visiting_games){const o=i.gameNumber-1,r=i.lastGames.last_visiting_games[o];return s(r)}return s(null)});return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(lc,{game:t.game,gamehome:a.value,gameaway:n.value,"selected-option":t.selectedOption},null,8,["game","gamehome","gameaway","selected-option"])]))}},[["__scopeId","data-v-0ee3fd7d"]]);te.GSCLineupsReports=cc,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
|