@golstats/gsc-game-data 1.0.95 → 1.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-d26afb7d-KpC1Z7yD-b1e442ff.js → FilterConditions-d26afb7d-KpC1Z7yD-fc321c51.js} +1 -1
- package/dist/{FilterField-d8c662e7-Fhk1ixKS-65ae2947.js → FilterField-d8c662e7-Fhk1ixKS-d7fa58a1.js} +1 -1
- package/dist/{FilterSubcategories-33303037-BuTD3Tee-0c92c92a.js → FilterSubcategories-33303037-BuTD3Tee-4a561d3b.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +2 -2
- package/dist/{index-b8885f0f.js → index-ae721d4d.js} +12 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3561,7 +3561,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3561
3561
|
`).slice(2):`
|
|
3562
3562
|
`+Y.split(`
|
|
3563
3563
|
`).map(function(le){return" "+le}).join(`
|
|
3564
|
-
`)):Y=R.stylize("[Circular]","special")),E(H)){if(K&&G.match(/^\d+$/))return Y;(H=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=R.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=R.stylize(H,"string"))}return H+": "+Y}function v(R){return Array.isArray(R)}function w(R){return typeof R=="boolean"}function C(R){return R===null}function k(R){return typeof R=="number"}function B(R){return typeof R=="string"}function E(R){return R===void 0}function T(R){return A(R)&&S(R)==="[object RegExp]"}function A(R){return typeof R=="object"&&R!==null}function M(R){return A(R)&&S(R)==="[object Date]"}function N(R){return A(R)&&(S(R)==="[object Error]"||R instanceof Error)}function O(R){return typeof R=="function"}function S(R){return Object.prototype.toString.call(R)}function z(R){return R<10?"0"+R.toString(10):R.toString(10)}l.debuglog=function(R){if(R=R.toUpperCase(),!m[R])if(x.test(R)){var j=_.pid;m[R]=function(){var W=l.format.apply(l,arguments);console.error("%s %d: %s",R,j,W)}}else m[R]=function(){};return m[R]},l.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},l.types=n(41088),l.isArray=v,l.isBoolean=w,l.isNull=C,l.isNullOrUndefined=function(R){return R==null},l.isNumber=k,l.isString=B,l.isSymbol=function(R){return typeof R=="symbol"},l.isUndefined=E,l.isRegExp=T,l.types.isRegExp=T,l.isObject=A,l.isDate=M,l.types.isDate=M,l.isError=N,l.types.isNativeError=N,l.isFunction=O,l.isPrimitive=function(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||R===void 0},l.isBuffer=n(75272);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(R,j){return Object.prototype.hasOwnProperty.call(R,j)}l.log=function(){var R,j;console.log("%s - %s",(j=[z((R=new Date).getHours()),z(R.getMinutes()),z(R.getSeconds())].join(":"),[R.getDate(),I[R.getMonth()],j].join(" ")),l.format.apply(l,arguments))},l.inherits=n(6768),l._extend=function(R,j){if(!j||!A(j))return R;for(var W=Object.keys(j),$=W.length;$--;)R[W[$]]=j[W[$]];return R};var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function D(R,j){if(!R){var W=new Error("Promise was rejected with a falsy value");W.reason=R,R=W}return j(R)}l.promisify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');if(L&&R[L]){var j;if(typeof(j=R[L])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,L,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var W,$,G=new Promise(function(Y,Z){W=Y,$=Z}),K=[],H=0;H<arguments.length;H++)K.push(arguments[H]);K.push(function(Y,Z){Y?$(Y):W(Z)});try{R.apply(this,K)}catch(Y){$(Y)}return G}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),L&&Object.defineProperty(j,L,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,f(R))},l.promisify.custom=L,l.callbackify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var W=[],$=0;$<arguments.length;$++)W.push(arguments[$]);var G=W.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var K=this,H=function(){return G.apply(K,arguments)};R.apply(this,W).then(function(Y){_.nextTick(H.bind(null,null,Y))},function(Y){_.nextTick(D.bind(null,Y,H))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),Object.defineProperties(j,f(R)),j}},5408:function(i,l,n){var _=n(13380);i.exports=function(f){return _("webgl",f)}},96632:function(i,l,n){var _=n(46492),f=n(63436),o=n(57916),m=n(99676),x=n(2304),c=m("Object.prototype.toString"),s=n(46672)(),d=typeof globalThis>"u"?n.g:globalThis,p=f(),h=m("String.prototype.slice"),g=Object.getPrototypeOf,b=m("Array.prototype.indexOf",!0)||function(w,C){for(var k=0;k<w.length;k+=1)if(w[k]===C)return k;return-1},v={__proto__:null};_(p,s&&x&&g?function(w){var C=new d[w];if(Symbol.toStringTag in C){var k=g(C),B=x(k,Symbol.toStringTag);if(!B){var E=g(k);B=x(E,Symbol.toStringTag)}v["$"+w]=o(B.get)}}:function(w){var C=new d[w],k=C.slice||C.set;k&&(v["$"+w]=o(k))}),i.exports=function(w){if(!w||typeof w!="object")return!1;if(!s){var C=h(c(w),8,-1);return b(p,C)>-1?C:C==="Object"&&function(k){var B=!1;return _(v,function(E,T){if(!B)try{E(k),B=h(T,1)}catch{}}),B}(w)}return x?function(k){var B=!1;return _(v,function(E,T){if(!B)try{"$"+E(k)===T&&(B=h(T,1))}catch{}}),B}(w):null}},67020:function(i,l,n){var _=n(38700),f=n(50896),o=_.instance();function m(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var v=g.match(c);return v?v[0]:""}var w=this._validateYear(g),C=g.month(),k=""+this.toChineseMonth(w,C);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(w,C)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(s);return b?b[0]:""}var v=this._validateYear(g),w=g.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(d);return b?b[0]:""}var v=this._validateYear(g),w=g.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},parseMonth:function(g,b){g=this._validateYear(g);var v,w=parseInt(b);if(isNaN(w))b[0]==="闰"&&(v=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),w=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var C=b[b.length-1];v=C==="i"||C==="I"}return this.toMonthIndex(g,w,v)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,v){var w=this.intercalaryMonth(g);if(v&&b!==w||b<1||b>12)throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?!v&&b<=w?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var v=this.intercalaryMonth(g);if(b<0||b>(v?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v?b<v?b+1:b:b+1},intercalaryMonth:function(g){return g=this._validateYear(g),p[g-p[0]]>>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var v=this.intercalaryMonth(g);return!!v&&v===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,v){var w,C=this._validateYear(g,_.local.invalidyear),k=h[C-h[0]],B=k>>9&4095,E=k>>5&15,T=31&k;(w=o.newDate(B,E,T)).add(4-(w.dayOfWeek()||7),"d");var A=this.toJD(g,b,v)-w.toJD();return 1+Math.floor(A/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var v=p[g-p[0]];if(b>(v>>13?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v&1<<12-b?30:29},weekDay:function(g,b,v){return(this.dayOfWeek(g,b,v)||7)<6},toJD:function(g,b,v){var w=this._validate(g,k,v,_.local.invalidDate);g=this._validateYear(w.year()),b=w.month(),v=w.day();var C=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),B=function(E,T,A,M,N){var O,S,z;if(typeof E=="object")S=E,O=T||{};else{var I;if(!(typeof E=="number"&&E>=1888&&E<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof A=="number"&&A>=1&&A<=30))throw new Error("Lunar day outside range 1 - 30");typeof M=="object"?(I=!1,O=M):(I=!!M,O={}),S={year:E,month:T,day:A,isIntercalary:I}}z=S.day-1;var F,L=p[S.year-p[0]],D=L>>13;F=D&&(S.month>D||S.isIntercalary)?S.month:S.month-1;for(var R=0;R<F;R++)z+=L&1<<12-R?30:29;var j=h[S.year-h[0]],W=new Date(j>>9&4095,(j>>5&15)-1,(31&j)+z);return O.year=W.getFullYear(),O.month=1+W.getMonth(),O.day=W.getDate(),O}(g,k,v,C);return o.toJD(B.year,B.month,B.day)},fromJD:function(g){var b=o.fromJD(g),v=function(C,k,B,E){var T,A;if(typeof C=="object")T=C,A=k||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof B=="number"&&B>=1&&B<=31))throw new Error("Solar day outside range 1 - 31");T={year:C,month:k,day:B},A={}}var M=h[T.year-h[0]],N=T.year<<9|T.month<<5|T.day;A.year=N>=M?T.year:T.year-1,M=h[A.year-h[0]];var O,S=new Date(M>>9&4095,(M>>5&15)-1,31&M),z=new Date(T.year,T.month-1,T.day);O=Math.round((z-S)/864e5);var I,F=p[A.year-p[0]];for(I=0;I<13;I++){var L=F&1<<12-I?30:29;if(O<L)break;O-=L}var D=F>>13;return!D||I<D?(A.isIntercalary=!1,A.month=1+I):I===D?(A.isIntercalary=!0,A.month=I):(A.isIntercalary=!1,A.month=I),A.day=1+O,A}(b.year(),b.month(),b.day()),w=this.toMonthIndex(v.year,v.month,v.isIntercalary);return this.newDate(v.year,w,v.day)},fromString:function(g){var b=g.match(x),v=this._validateYear(+b[1]),w=+b[2],C=!!b[3],k=this.toMonthIndex(v,w,C),B=+b[4];return this.newDate(v,k,B)},add:function(g,b,v){var w=g.year(),C=g.month(),k=this.isIntercalaryMonth(w,C),B=this.toChineseMonth(w,C),E=Object.getPrototypeOf(m.prototype).add.call(this,g,b,v);if(v==="y"){var T=E.year(),A=E.month(),M=this.isIntercalaryMonth(T,B),N=k&&M?this.toMonthIndex(T,B,!0):this.toMonthIndex(T,B,!1);N!==A&&E.month(N)}return E}});var x=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,c=/^\d?\d[iI]?/m,s=/^闰?十?[一二三四五六七八九]?月/m,d=/^闰?十?[一二三四五六七八九]?/m;_.calendars.chinese=m;var p=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return(m=s.year())<0&&m++,s.day()+30*(s.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(x/30)+1,d=x-30*(s-1)+1;return this.newDate(c,s,d)}}),_.calendars.coptic=o},55668:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),!1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),13},daysInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),400},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/8)+1},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(x,c,s){return(this._validate(x,c,s,_.local.invalidDate).day()+1)%8},weekDay:function(x,c,s){var d=this.dayOfWeek(x,c,s);return d>=2&&d<=6},extraInfo:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return{century:m[Math.floor((d.year()-1)/100)+1]||""}},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return x=d.year()+(d.year()<0?1:0),c=d.month(),(s=d.day())+(c>1?16:0)+(c>2?32*(c-2):0)+400*(x-1)+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x+.5)-Math.floor(this.jdEpoch)-1;var c=Math.floor(x/400)+1;x-=400*(c-1),x+=x>15?16:0;var s=Math.floor(x/32)+1,d=x-32*(s-1)+1;return this.newDate(c<=0?c-1:c,s,d)}});var m={20:"Fruitbat",21:"Anchovy"};_.calendars.discworld=o},65168:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return(m=s.year())<0&&m++,s.day()+30*(s.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(x/30)+1,d=x-30*(s-1)+1;return this.newDate(c,s,d)}}),_.calendars.ethiopian=o},2084:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(x){return m(7*(x=x<0?x+1:x)+1,19)<7},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),this._leapYear(x.year?x.year():x)?13:12},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(x){return x=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear).year(),this.toJD(x===-1?1:x+1,7,1)-this.toJD(x,7,1)},daysInMonth:function(x,c){return x.year&&(c=x.month(),x=x.year()),this._validate(x,c,this.minDay,_.local.invalidMonth),c===12&&this.leapYear(x)||c===8&&m(this.daysInYear(x),10)===5?30:c===9&&m(this.daysInYear(x),10)===3?29:this.daysPerMonth[c-1]},weekDay:function(x,c,s){return this.dayOfWeek(x,c,s)!==6},extraInfo:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return{yearType:(this.leapYear(d)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(d)%10-3]}},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);x=d.year(),c=d.month(),s=d.day();var p=x<=0?x+1:x,h=this.jdEpoch+this._delay1(p)+this._delay2(p)+s+1;if(c<7){for(var g=7;g<=this.monthsInYear(x);g++)h+=this.daysInMonth(x,g);for(g=1;g<c;g++)h+=this.daysInMonth(x,g)}else for(g=7;g<c;g++)h+=this.daysInMonth(x,g);return h},_delay1:function(x){var c=Math.floor((235*x-234)/19),s=12084+13753*c,d=29*c+Math.floor(s/25920);return m(3*(d+1),7)<3&&d++,d},_delay2:function(x){var c=this._delay1(x-1),s=this._delay1(x);return this._delay1(x+1)-s==356?2:s-c==382?1:0},fromJD:function(x){x=Math.floor(x)+.5;for(var c=Math.floor(98496*(x-this.jdEpoch)/35975351)-1;x>=this.toJD(c===-1?1:c+1,7,1);)c++;for(var s=x<this.toJD(c,1,1)?7:1;x>this.toJD(c,s,this.daysInMonth(c,s));)s++;var d=x-this.toJD(c,s,1)+1;return this.newDate(c,s,d)}}),_.calendars.hebrew=o},26368:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(m){return(11*this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year()+14)%30<11},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(m){return this.leapYear(m)?355:354},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==5},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return m=s.year(),x=s.month(),m=m<=0?m+1:m,(c=s.day())+Math.ceil(29.5*(x-1))+354*(m-1)+Math.floor((3+11*m)/30)+this.jdEpoch-1},fromJD:function(m){m=Math.floor(m)+.5;var x=Math.floor((30*(m-this.jdEpoch)+10646)/10631);x=x<=0?x-1:x;var c=Math.min(12,Math.ceil((m-29-this.toJD(x,1,1))/29.5)+1),s=m-this.toJD(x,c,1)+1;return this.newDate(x,c,s)}}),_.calendars.islamic=o},24747:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()<0?x.year()+1:x.year())%4==0},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(4-(s.dayOfWeek()||7),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return m=s.year(),x=s.month(),c=s.day(),m<0&&m++,x<=2&&(m--,x+=12),Math.floor(365.25*(m+4716))+Math.floor(30.6001*(x+1))+c-1524.5},fromJD:function(m){var x=Math.floor(m+.5)+1524,c=Math.floor((x-122.1)/365.25),s=Math.floor(365.25*c),d=Math.floor((x-s)/30.6001),p=d-Math.floor(d<14?1:13),h=c-Math.floor(p>2?4716:4715),g=x-s-Math.floor(30.6001*d);return h<=0&&h--,this.newDate(h,p,g)}}),_.calendars.julian=o},65616:function(i,l,n){var _=n(38700),f=n(50896);function o(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}function m(c,s){return c-s*Math.floor(c/s)}function x(c,s){return m(c-1,s)+1}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),!1},formatYear:function(c){c=this._validate(c,this.minMonth,this.minDay,_.local.invalidYear).year();var s=Math.floor(c/400);return c%=400,c+=c<0?400:0,s+"."+Math.floor(c/20)+"."+c%20},forYear:function(c){if((c=c.split(".")).length<3)throw"Invalid Mayan year";for(var s=0,d=0;d<c.length;d++){var p=parseInt(c[d],10);if(Math.abs(p)>19||d>0&&p<0)throw"Invalid Mayan year";s=20*s+p}return s},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),18},weekOfYear:function(c,s,d){return this._validate(c,s,d,_.local.invalidDate),0},daysInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),360},daysInMonth:function(c,s){return this._validate(c,s,this.minDay,_.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(c,s,d){return this._validate(c,s,d,_.local.invalidDate).day()},weekDay:function(c,s,d){return this._validate(c,s,d,_.local.invalidDate),!0},extraInfo:function(c,s,d){var p=this._validate(c,s,d,_.local.invalidDate).toJD(),h=this._toHaab(p),g=this._toTzolkin(p);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(c){var s=m(8+(c-=this.jdEpoch)+340,365);return[Math.floor(s/20)+1,m(s,20)]},_toTzolkin:function(c){return[x(20+(c-=this.jdEpoch),20),x(c+4,13)]},toJD:function(c,s,d){var p=this._validate(c,s,d,_.local.invalidDate);return p.day()+20*p.month()+360*p.year()+this.jdEpoch},fromJD:function(c){c=Math.floor(c)+.5-this.jdEpoch;var s=Math.floor(c/360);c%=360,c+=c<0?360:0;var d=Math.floor(c/20),p=c%20;return this.newDate(s,d,p)}}),_.calendars.mayan=o},30632:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar;var m=_.instance("gregorian");f(o.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear);return m.leapYear(c.year()+(c.year()<1?1:0)+1469)},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(1-(d.dayOfWeek()||7),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return(this.dayOfWeek(x,c,s)||7)<6},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidMonth);(x=d.year())<0&&x++;for(var p=d.day(),h=1;h<d.month();h++)p+=this.daysPerMonth[h-1];return p+m.toJD(x+1468,3,13)},fromJD:function(x){x=Math.floor(x+.5);for(var c=Math.floor((x-(this.jdEpoch-1))/366);x>=this.toJD(c+1,1,1);)c++;for(var s=x-Math.floor(this.toJD(c,1,1)+.5)+1,d=1;s>this.daysInMonth(c,d);)s-=this.daysInMonth(c,d),d++;return this.newDate(c,d,s)}}),_.calendars.nanakshahi=o},73040:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(m){return this.daysInYear(m)!==this.daysPerYear},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(m){if(m=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[m]===void 0)return this.daysPerYear;for(var x=0,c=this.minMonth;c<=12;c++)x+=this.NEPALI_CALENDAR_DATA[m][c];return x},daysInMonth:function(m,x){return m.year&&(x=m.month(),m=m.year()),this._validate(m,x,this.minDay,_.local.invalidMonth),this.NEPALI_CALENDAR_DATA[m]===void 0?this.daysPerMonth[x-1]:this.NEPALI_CALENDAR_DATA[m][x]},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);m=s.year(),x=s.month(),c=s.day();var d=_.instance(),p=0,h=x,g=m;this._createMissingCalendarData(m);var b=m-(h>9||h===9&&c>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(x!==9&&(p=c,h--);h!==9;)h<=0&&(h=12,g--),p+=this.NEPALI_CALENDAR_DATA[g][h],h--;return x===9?(p+=c-this.NEPALI_CALENDAR_DATA[g][0])<0&&(p+=d.daysInYear(b)):p+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],d.newDate(b,1,1).add(p,"d").toJD()},fromJD:function(m){var x=_.instance().fromJD(m),c=x.year(),s=x.dayOfYear(),d=c+56;this._createMissingCalendarData(d);for(var p=9,h=this.NEPALI_CALENDAR_DATA[d][0],g=this.NEPALI_CALENDAR_DATA[d][p]-h+1;s>g;)++p>12&&(p=1,d++),g+=this.NEPALI_CALENDAR_DATA[d][p];var b=this.NEPALI_CALENDAR_DATA[d][p]-(g-s);return this.newDate(d,p,b)},_createMissingCalendarData:function(m){var x=this.daysPerMonth.slice(0);x.unshift(17);for(var c=m-1;c<m+2;c++)this.NEPALI_CALENDAR_DATA[c]===void 0&&(this.NEPALI_CALENDAR_DATA[c]=x)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),_.calendars.nepali=o},1104:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return 682*((c.year()-(c.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-(d.dayOfWeek()+1)%7,"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return this.dayOfWeek(x,c,s)!==5},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);x=d.year(),c=d.month(),s=d.day();var p=x-(x>=0?474:473),h=474+m(p,2820);return s+(c<=7?31*(c-1):30*(c-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(p/2820)+this.jdEpoch-1},fromJD:function(x){var c=(x=Math.floor(x)+.5)-this.toJD(475,1,1),s=Math.floor(c/1029983),d=m(c,1029983),p=2820;if(d!==1029982){var h=Math.floor(d/366),g=m(d,366);p=Math.floor((2134*h+2816*g+2815)/1028522)+h+1}var b=p+2820*s+474;b=b<=0?b-1:b;var v=x-this.toJD(b,1,1)+1,w=v<=186?Math.ceil(v/31):Math.ceil((v-6)/30),C=x-this.toJD(b,w,1)+1;return this.newDate(b,w,C)}}),_.calendars.persian=o,_.calendars.jalali=o},51456:function(i,l,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,s){var d=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(d.year()),o.weekOfYear(x,d.month(),d.day())},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return(this.dayOfWeek(x,c,s)||7)<6},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return x=this._t2gYear(d.year()),o.toJD(x,d.month(),d.day())},fromJD:function(x){var c=o.fromJD(x),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)},_g2tYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)}}),_.calendars.taiwan=m},4592:function(i,l,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,s){var d=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(d.year()),o.weekOfYear(x,d.month(),d.day())},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return(this.dayOfWeek(x,c,s)||7)<6},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return x=this._t2gYear(d.year()),o.toJD(x,d.month(),d.day())},fromJD:function(x){var c=o.fromJD(x),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)},_g2tYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)}}),_.calendars.thai=m},45348:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this.daysInYear(c.year())===355},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(x){for(var c=0,s=1;s<=12;s++)c+=this.daysInMonth(x,s);return c},daysInMonth:function(x,c){for(var s=this._validate(x,c,this.minDay,_.local.invalidMonth).toJD()-24e5+.5,d=0,p=0;p<m.length;p++){if(m[p]>s)return m[d]-m[d-1];d++}return 30},weekDay:function(x,c,s){return this.dayOfWeek(x,c,s)!==5},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate),p=12*(d.year()-1)+d.month()-15292;return d.day()+m[p-1]-1+24e5-.5},fromJD:function(x){for(var c=x-24e5+.5,s=0,d=0;d<m.length&&!(m[d]>c);d++)s++;var p=s+15292,h=Math.floor((p-1)/12),g=h+1,b=p-12*h,v=c-m[s-1]+1;return this.newDate(g,b,v)},isValid:function(x,c,s){var d=_.baseCalendar.prototype.isValid.apply(this,arguments);return d&&(d=(x=x.year!=null?x.year:x)>=1276&&x<=1500),d},_validate:function(x,c,s,d){var p=_.baseCalendar.prototype._validate.apply(this,arguments);if(p.year<1276||p.year>1500)throw d.replace(/\{0\}/,this.local.name);return p}}),_.calendars.ummalqura=o;var m=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(i,l,n){var _=n(50896);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function o(d,p,h,g){if(this._calendar=d,this._year=p,this._month=h,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function m(d,p){return"000000".substring(0,p-(d=""+d).length)+d}function x(){this.shortYearCutoff="+10"}function c(d){this.local=this.regionalOptions[d]||this.regionalOptions[""]}_(f.prototype,{instance:function(d,p){d=(d||"gregorian").toLowerCase(),p=p||"";var h=this._localCals[d+"-"+p];if(!h&&this.calendars[d]&&(h=new this.calendars[d](p),this._localCals[d+"-"+p]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,d);return h},newDate:function(d,p,h,g,b){return(g=(d!=null&&d.year?d.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(d,p,h)},substituteDigits:function(d){return function(p){return(p+"").replace(/[0-9]/g,function(h){return d[h]})}},substituteChineseDigits:function(d,p){return function(h){for(var g="",b=0;h>0;){var v=h%10;g=(v===0?"":d[v]+p[b])+g,b++,h=Math.floor(h/10)}return g.indexOf(d[1]+p[1])===0&&(g=g.substr(1)),g||d[0]}}}),_(o.prototype,{newDate:function(d,p,h){return this._calendar.newDate(d??this,p,h)},year:function(d){return arguments.length===0?this._year:this.set(d,"y")},month:function(d){return arguments.length===0?this._month:this.set(d,"m")},day:function(d){return arguments.length===0?this._day:this.set(d,"d")},date:function(d,p,h){if(!this._calendar.isValid(d,p,h))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=d,this._month=p,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(d,p){return this._calendar.add(this,d,p)},set:function(d,p){return this._calendar.set(this,d,p)},compareTo:function(d){if(this._calendar.name!==d._calendar.name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,d._calendar.local.name);var p=this._year!==d._year?this._year-d._year:this._month!==d._month?this.monthOfYear()-d.monthOfYear():this._day-d._day;return p===0?0:p<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(d){return this._calendar.fromJD(d)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(d){return this._calendar.fromJSDate(d)},toString:function(){return(this.year()<0?"-":"")+m(Math.abs(this.year()),4)+"-"+m(this.month(),2)+"-"+m(this.day(),2)}}),_(x.prototype,{_validateLevel:0,newDate:function(d,p,h){return d==null?this.today():(d.year&&(this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate),h=d.day(),p=d.month(),d=d.year()),new o(this,d,p,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(p.year()<0?"-":"")+m(Math.abs(p.year()),4)},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),12},monthOfYear:function(d,p){var h=this._validate(d,p,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(d,p){var h=(p+this.firstMonth-2*this.minMonth)%this.monthsInYear(d)+this.minMonth;return this._validate(d,h,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth),h},daysInYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return this.leapYear(p)?366:365},dayOfYear:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(d,p,h){return this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate),{}},add:function(d,p,h){return this._validate(d,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate),this._correctAdd(d,this._add(d,p,h),p,h)},_add:function(d,p,h){if(this._validateLevel++,h==="d"||h==="w"){var g=d.toJD()+p*(h==="w"?this.daysInWeek():1),b=d.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var v=d.year()+(h==="y"?p:0),w=d.monthOfYear()+(h==="m"?p:0);b=d.day(),h==="y"?(d.month()!==this.fromMonthOfYear(v,w)&&(w=this.newDate(v,d.month(),this.minDay).monthOfYear()),w=Math.min(w,this.monthsInYear(v)),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w)))):h==="m"&&(function(k){for(;w<k.minMonth;)v--,w+=k.monthsInYear(v);for(var B=k.monthsInYear(v);w>B-1+k.minMonth;)v++,w-=B,B=k.monthsInYear(v)}(this),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w))));var C=[v,this.fromMonthOfYear(v,w),b];return this._validateLevel--,C}catch(k){throw this._validateLevel--,k}},_correctAdd:function(d,p,h,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||p[0]!==0&&d.year()>0==p[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],v=h<0?-1:1;p=this._add(d,h*b[0]+v*b[1],b[2])}return d.date(p[0],p[1],p[2])},set:function(d,p,h){this._validate(d,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate);var g=h==="y"?p:d.year(),b=h==="m"?p:d.month(),v=h==="d"?p:d.day();return h!=="y"&&h!=="m"||(v=Math.min(v,this.daysInMonth(g,b))),d.date(g,b,v)},isValid:function(d,p,h){this._validateLevel++;var g=this.hasYearZero||d!==0;if(g){var b=this.newDate(d,p,this.minDay);g=p>=this.minMonth&&p-this.minMonth<this.monthsInYear(b)&&h>=this.minDay&&h-this.minDay<this.daysInMonth(b)}return this._validateLevel--,g},toJSDate:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);return s.instance().fromJD(this.toJD(g)).toJSDate()},fromJSDate:function(d){return this.fromJD(s.instance().fromJSDate(d).toJD())},_validate:function(d,p,h,g){if(d.year){if(this._validateLevel===0&&this.name!==d.calendar().name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,d.calendar().local.name);return d}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(d,p,h))throw g.replace(/\{0\}/,this.local.name);var b=this.newDate(d,p,h);return this._validateLevel--,b}catch(v){throw this._validateLevel--,v}}}),c.prototype=new x,_(c.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(d=p.year()+(p.year()<0?1:0))%4==0&&(d%100!=0||d%400==0)},weekOfYear:function(d,p,h){var g=this.newDate(d,p,h);return g.add(4-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(d,p){var h=this._validate(d,p,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(d,p,h){return(this.dayOfWeek(d,p,h)||7)<6},toJD:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);d=g.year(),p=g.month(),h=g.day(),d<0&&d++,p<3&&(p+=12,d--);var b=Math.floor(d/100),v=2-b+Math.floor(b/4);return Math.floor(365.25*(d+4716))+Math.floor(30.6001*(p+1))+h+v-1524.5},fromJD:function(d){var p=Math.floor(d+.5),h=Math.floor((p-186721625e-2)/36524.25),g=1524+(h=p+1+h-Math.floor(h/4)),b=Math.floor((g-122.1)/365.25),v=Math.floor(365.25*b),w=Math.floor((g-v)/30.6001),C=g-v-Math.floor(30.6001*w),k=w-(w>13.5?13:1),B=b-(k>2.5?4716:4715);return B<=0&&B--,this.newDate(B,k,C)},toJSDate:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(d){return this.newDate(d.getFullYear(),d.getMonth()+1,d.getDate())}});var s=i.exports=new f;s.cdate=o,s.baseCalendar=x,s.calendars.gregorian=c},15168:function(i,l,n){var _=n(50896),f=n(38700);_(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],_(f.cdate.prototype,{formatDate:function(o,m){return typeof o!="string"&&(m=o,o=""),this._calendar.formatDate(o||"",this,m)}}),_(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(o,m,x){if(typeof o!="string"&&(x=m,m=o,o=""),!m)return"";if(m.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;o=o||this.local.dateFormat;for(var c,s,d,p=(x=x||{}).dayNamesShort||this.local.dayNamesShort,h=x.dayNames||this.local.dayNames,g=x.monthNumbers||this.local.monthNumbers,b=x.monthNamesShort||this.local.monthNamesShort,v=x.monthNames||this.local.monthNames,w=(x.calculateWeek||this.local.calculateWeek,function(S,z){for(var I=1;O+I<o.length&&o.charAt(O+I)===S;)I++;return O+=I-1,Math.floor(I/(z||1))>1}),C=function(S,z,I,F){var L=""+z;if(w(S,F))for(;L.length<I;)L="0"+L;return L},k=this,B=function(S){return typeof g=="function"?g.call(k,S,w("m")):A(C("m",S.month(),2))},E=function(S,z){return z?typeof v=="function"?v.call(k,S):v[S.month()-k.minMonth]:typeof b=="function"?b.call(k,S):b[S.month()-k.minMonth]},T=this.local.digits,A=function(S){return x.localNumbers&&T?T(S):S},M="",N=!1,O=0;O<o.length;O++)if(N)o.charAt(O)!=="'"||w("'")?M+=o.charAt(O):N=!1;else switch(o.charAt(O)){case"d":M+=A(C("d",m.day(),2));break;case"D":M+=(c=m.dayOfWeek(),s=p,d=h,w("D")?d[c]:s[c]);break;case"o":M+=C("o",m.dayOfYear(),3);break;case"w":M+=C("w",m.weekOfYear(),2);break;case"m":M+=B(m);break;case"M":M+=E(m,w("M"));break;case"y":M+=w("y",2)?m.year():(m.year()%100<10?"0":"")+m.year()%100;break;case"Y":w("Y",2),M+=m.formatYear();break;case"J":M+=m.toJD();break;case"@":M+=(m.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":M+=(m.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":w("'")?M+="'":N=!0;break;default:M+=o.charAt(O)}return M},parseDate:function(o,m,x){if(m==null)throw f.local.invalidArguments||f.regionalOptions[""].invalidArguments;if((m=typeof m=="object"?m.toString():m+"")==="")return null;o=o||this.local.dateFormat;var c=(x=x||{}).shortYearCutoff||this.shortYearCutoff;c=typeof c!="string"?c:this.today().year()%100+parseInt(c,10);for(var s=x.dayNamesShort||this.local.dayNamesShort,d=x.dayNames||this.local.dayNames,p=x.parseMonth||this.local.parseMonth,h=x.monthNumbers||this.local.monthNumbers,g=x.monthNamesShort||this.local.monthNamesShort,b=x.monthNames||this.local.monthNames,v=-1,w=-1,C=-1,k=-1,B=-1,E=!1,T=!1,A=function(j,W){for(var $=1;L+$<o.length&&o.charAt(L+$)===j;)$++;return L+=$-1,Math.floor($/(W||1))>1},M=function(j,W){var $=A(j,W),G=[2,3,$?4:2,$?4:2,10,11,20]["oyYJ@!".indexOf(j)+1],K=new RegExp("^-?\\d{1,"+G+"}"),H=m.substring(F).match(K);if(!H)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=H[0].length,parseInt(H[0],10)},N=this,O=function(){if(typeof h=="function"){A("m");var j=h.call(N,m.substring(F));return F+=j.length,j}return M("m")},S=function(j,W,$,G){for(var K=A(j,G)?$:W,H=0;H<K.length;H++)if(m.substr(F,K[H].length).toLowerCase()===K[H].toLowerCase())return F+=K[H].length,H+N.minMonth;throw(f.local.unknownNameAt||f.regionalOptions[""].unknownNameAt).replace(/\{0\}/,F)},z=function(){if(typeof b=="function"){var j=A("M")?b.call(N,m.substring(F)):g.call(N,m.substring(F));return F+=j.length,j}return S("M",g,b)},I=function(){if(m.charAt(F)!==o.charAt(L))throw(f.local.unexpectedLiteralAt||f.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,F);F++},F=0,L=0;L<o.length;L++)if(T)o.charAt(L)!=="'"||A("'")?I():T=!1;else switch(o.charAt(L)){case"d":k=M("d");break;case"D":S("D",s,d);break;case"o":B=M("o");break;case"w":M("w");break;case"m":C=O();break;case"M":C=z();break;case"y":var D=L;E=!A("y",2),L=D,w=M("y",2);break;case"Y":w=M("Y",2);break;case"J":v=M("J")+.5,m.charAt(F)==="."&&(F++,M("J"));break;case"@":v=M("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":v=M("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":F=m.length;break;case"'":A("'")?I():T=!0;break;default:I()}if(F<m.length)throw f.local.unexpectedText||f.regionalOptions[""].unexpectedText;if(w===-1?w=this.today().year():w<100&&E&&(w+=c===-1?1900:this.today().year()-this.today().year()%100-(w<=c?0:100)),typeof C=="string"&&(C=p.call(this,w,C)),B>-1){C=1,k=B;for(var R=this.daysInMonth(w,C);k>R;R=this.daysInMonth(w,C))C++,k-=R}return v>-1?this.fromJD(v):this.newDate(w,C,k)},determineDate:function(o,m,x,c,s){x&&typeof x!="object"&&(s=c,c=x,x=null),typeof c!="string"&&(s=c,c="");var d=this;return m=m?m.newDate():null,o==null?m:typeof o=="string"?function(p){try{return d.parseDate(c,p,s)}catch{}for(var h=((p=p.toLowerCase()).match(/^c/)&&x?x.newDate():null)||d.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(p);b;)h.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(p);return h}(o):typeof o=="number"?isNaN(o)||o===1/0||o===-1/0?m:d.today().add(o,"d"):d.newDate(o)}})},21576:function(){},19768:function(){},63436:function(i,l,n){var _=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;i.exports=function(){for(var o=[],m=0;m<_.length;m++)typeof f[_[m]]=="function"&&(o[o.length]=_[m]);return o}},67756:function(i,l,n){function _(ge,ve,we){ge.prototype=ve.prototype=we,we.constructor=ge}function f(ge,ve){var we=Object.create(ge.prototype);for(var Se in ve)we[Se]=ve[Se];return we}function o(){}n.d(l,{qy:function(){return fe},Gz:function(){return ie}});var m=.7,x=1/m,c="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",p=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\(".concat(c,",").concat(c,",").concat(c,"\\)$")),g=new RegExp("^rgb\\(".concat(d,",").concat(d,",").concat(d,"\\)$")),b=new RegExp("^rgba\\(".concat(c,",").concat(c,",").concat(c,",").concat(s,"\\)$")),v=new RegExp("^rgba\\(".concat(d,",").concat(d,",").concat(d,",").concat(s,"\\)$")),w=new RegExp("^hsl\\(".concat(s,",").concat(d,",").concat(d,"\\)$")),C=new RegExp("^hsla\\(".concat(s,",").concat(d,",").concat(d,",").concat(s,"\\)$")),k={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function T(ge){var ve,we;return ge=(ge+"").trim().toLowerCase(),(ve=p.exec(ge))?(we=ve[1].length,ve=parseInt(ve[1],16),we===6?A(ve):we===3?new O(ve>>8&15|ve>>4&240,ve>>4&15|240&ve,(15&ve)<<4|15&ve,1):we===8?M(ve>>24&255,ve>>16&255,ve>>8&255,(255&ve)/255):we===4?M(ve>>12&15|ve>>8&240,ve>>8&15|ve>>4&240,ve>>4&15|240&ve,((15&ve)<<4|15&ve)/255):null):(ve=h.exec(ge))?new O(ve[1],ve[2],ve[3],1):(ve=g.exec(ge))?new O(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,1):(ve=b.exec(ge))?M(ve[1],ve[2],ve[3],ve[4]):(ve=v.exec(ge))?M(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,ve[4]):(ve=w.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,1):(ve=C.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,ve[4]):k.hasOwnProperty(ge)?A(k[ge]):ge==="transparent"?new O(NaN,NaN,NaN,0):null}function A(ge){return new O(ge>>16&255,ge>>8&255,255&ge,1)}function M(ge,ve,we,Se){return Se<=0&&(ge=ve=we=NaN),new O(ge,ve,we,Se)}function N(ge,ve,we,Se){return arguments.length===1?((ke=ge)instanceof o||(ke=T(ke)),ke?new O((ke=ke.rgb()).r,ke.g,ke.b,ke.opacity):new O):new O(ge,ve,we,Se??1);var ke}function O(ge,ve,we,Se){this.r=+ge,this.g=+ve,this.b=+we,this.opacity=+Se}function S(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b))}function z(){var ge=I(this.opacity);return"".concat(ge===1?"rgb(":"rgba(").concat(F(this.r),", ").concat(F(this.g),", ").concat(F(this.b)).concat(ge===1?")":", ".concat(ge,")"))}function I(ge){return isNaN(ge)?1:Math.max(0,Math.min(1,ge))}function F(ge){return Math.max(0,Math.min(255,Math.round(ge)||0))}function L(ge){return((ge=F(ge))<16?"0":"")+ge.toString(16)}function D(ge,ve,we,Se){return Se<=0?ge=ve=we=NaN:we<=0||we>=1?ge=ve=NaN:ve<=0&&(ge=NaN),new j(ge,ve,we,Se)}function R(ge){if(ge instanceof j)return new j(ge.h,ge.s,ge.l,ge.opacity);if(ge instanceof o||(ge=T(ge)),!ge)return new j;if(ge instanceof j)return ge;var ve=(ge=ge.rgb()).r/255,we=ge.g/255,Se=ge.b/255,ke=Math.min(ve,we,Se),xe=Math.max(ve,we,Se),Ae=NaN,Te=xe-ke,he=(xe+ke)/2;return Te?(Ae=ve===xe?(we-Se)/Te+6*(we<Se):we===xe?(Se-ve)/Te+2:(ve-we)/Te+4,Te/=he<.5?xe+ke:2-xe-ke,Ae*=60):Te=he>0&&he<1?0:Ae,new j(Ae,Te,he,ge.opacity)}function j(ge,ve,we,Se){this.h=+ge,this.s=+ve,this.l=+we,this.opacity=+Se}function W(ge){return(ge=(ge||0)%360)<0?ge+360:ge}function $(ge){return Math.max(0,Math.min(1,ge||0))}function G(ge,ve,we){return 255*(ge<60?ve+(we-ve)*ge/60:ge<180?we:ge<240?ve+(we-ve)*(240-ge)/60:ve)}_(o,T,{copy:function(ge){return Object.assign(new this.constructor,this,ge)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:E,toString:E}),_(O,N,f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},rgb:function(){return this},clamp:function(){return new O(F(this.r),F(this.g),F(this.b),I(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b)).concat(L(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:z,toString:z})),_(j,function(ge,ve,we,Se){return arguments.length===1?R(ge):new j(ge,ve,we,Se??1)},f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new j(this.h,this.s,this.l*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new j(this.h,this.s,this.l*ge,this.opacity)},rgb:function(){var ge=this.h%360+360*(this.h<0),ve=isNaN(ge)||isNaN(this.s)?0:this.s,we=this.l,Se=we+(we<.5?we:1-we)*ve,ke=2*we-Se;return new O(G(ge>=240?ge-240:ge+120,ke,Se),G(ge,ke,Se),G(ge<120?ge+240:ge-120,ke,Se),this.opacity)},clamp:function(){return new j(W(this.h),$(this.s),$(this.l),I(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var ge=I(this.opacity);return"".concat(ge===1?"hsl(":"hsla(").concat(W(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(ge===1?")":", ".concat(ge,")"))}}));var K=function(ge){return function(){return ge}};function H(ge,ve){var we=ve-ge;return we?function(Se,ke){return function(xe){return Se+xe*ke}}(ge,we):K(isNaN(ge)?ve:ge)}var Y=function ge(ve){var we=function(ke){return(ke=+ke)==1?H:function(xe,Ae){return Ae-xe?function(Te,he,pe){return Te=Math.pow(Te,pe),he=Math.pow(he,pe)-Te,pe=1/pe,function(_e){return Math.pow(Te+_e*he,pe)}}(xe,Ae,ke):K(isNaN(xe)?Ae:xe)}}(ve);function Se(ke,xe){var Ae=we((ke=N(ke)).r,(xe=N(xe)).r),Te=we(ke.g,xe.g),he=we(ke.b,xe.b),pe=H(ke.opacity,xe.opacity);return function(_e){return ke.r=Ae(_e),ke.g=Te(_e),ke.b=he(_e),ke.opacity=pe(_e),ke+""}}return Se.gamma=ge,Se}(1);function Z(ge,ve){var we,Se=ve?ve.length:0,ke=ge?Math.min(Se,ge.length):0,xe=new Array(ke),Ae=new Array(Se);for(we=0;we<ke;++we)xe[we]=fe(ge[we],ve[we]);for(;we<Se;++we)Ae[we]=ve[we];return function(Te){for(we=0;we<ke;++we)Ae[we]=xe[we](Te);return Ae}}function le(ge,ve){var we=new Date;return ge=+ge,ve=+ve,function(Se){return we.setTime(ge*(1-Se)+ve*Se),we}}function ie(ge,ve){return ge=+ge,ve=+ve,function(we){return ge*(1-we)+ve*we}}function ne(ge){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ne(ge)}function re(ge,ve){var we,Se={},ke={};for(we in ge!==null&&ne(ge)==="object"||(ge={}),ve!==null&&ne(ve)==="object"||(ve={}),ve)we in ge?Se[we]=fe(ge[we],ve[we]):ke[we]=ve[we];return function(xe){for(we in Se)ke[we]=Se[we](xe);return ke}}var Q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=new RegExp(Q.source,"g");function se(ge,ve){var we,Se,ke,xe=Q.lastIndex=ee.lastIndex=0,Ae=-1,Te=[],he=[];for(ge+="",ve+="";(we=Q.exec(ge))&&(Se=ee.exec(ve));)(ke=Se.index)>xe&&(ke=ve.slice(xe,ke),Te[Ae]?Te[Ae]+=ke:Te[++Ae]=ke),(we=we[0])===(Se=Se[0])?Te[Ae]?Te[Ae]+=Se:Te[++Ae]=Se:(Te[++Ae]=null,he.push({i:Ae,x:ie(we,Se)})),xe=ee.lastIndex;return xe<ve.length&&(ke=ve.slice(xe),Te[Ae]?Te[Ae]+=ke:Te[++Ae]=ke),Te.length<2?he[0]?function(pe){return function(_e){return pe(_e)+""}}(he[0].x):function(pe){return function(){return pe}}(ve):(ve=he.length,function(pe){for(var _e,Oe=0;Oe<ve;++Oe)Te[(_e=he[Oe]).i]=_e.x(pe);return Te.join("")})}function de(ge,ve){ve||(ve=[]);var we,Se=ge?Math.min(ve.length,ge.length):0,ke=ve.slice();return function(xe){for(we=0;we<Se;++we)ke[we]=ge[we]*(1-xe)+ve[we]*xe;return ke}}function ue(ge){return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ue(ge)}function fe(ge,ve){var we,Se,ke=ue(ve);return ve==null||ke==="boolean"?K(ve):(ke==="number"?ie:ke==="string"?(we=T(ve))?(ve=we,Y):se:ve instanceof T?Y:ve instanceof Date?le:(Se=ve,!ArrayBuffer.isView(Se)||Se instanceof DataView?Array.isArray(ve)?Z:typeof ve.valueOf!="function"&&typeof ve.toString!="function"||isNaN(ve)?re:ie:de))(ge,ve)}},30584:function(i){i.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},7294:function(i){i.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},47916:function(i){i.exports=JSON.parse('["normal","italic","oblique"]')},2904:function(i){i.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},68194:function(i){i.exports=JSON.parse('["inherit","initial","unset"]')},3748:function(i){i.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')}},u={};function y(i){var l=u[i];if(l!==void 0)return l.exports;var n=u[i]={exports:{}};return r[i].call(n.exports,n,n.exports,y),n.exports}return y.n=function(i){var l=i&&i.__esModule?function(){return i.default}:function(){return i};return y.d(l,{a:l}),l},y.d=function(i,l){for(var n in l)y.o(l,n)&&!y.o(i,n)&&Object.defineProperty(i,n,{enumerable:!0,get:l[n]})},y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),y.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)},y.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},y(13792)}()})})(ZP);var Gwt=ZP.exports;const Y6=Hwt(Gwt),Wwt={id:"main-container"},qwt={id:"surface-container"},Ywt=t.createElementVNode("br",null,null,-1),XP=39,D0=74,Zwt=0,KP=2,JP=4,QP=8,eV=9,tV=10,aV=11,rV=13,Xwt=14,Kwt=15,Jwt=18,Fp=19,Qwt=800,nV=300,iV=5,e6t=2,t6t=3,a6t=4,r6t=7,n6t=-46,oV=100,sV=-14,i6t={__name:"CardField",props:{selected_category:{type:Number,default:31},selected_team:{type:Array,default:()=>[]},showBallPosition:{type:Boolean,default:!0},showPlayersPosition:{type:Boolean,default:!0},widthContainer:{type:Number,default:1280},dataPaintInfo:{type:Object,default:()=>{}},showTracks:{type:Boolean,default:!1},touches:{type:Number,default:1},showPlayersEndPosition:{type:Boolean,default:!1},secondStart:{type:Number,default:0},operationStart:{type:Number,default:0},secondEnd:{type:Number,default:1},operationEnd:{type:Number,default:1}},emits:["changelateralidad"],setup(e,{emit:a}){var r;let u=.75,y=t.ref("left");const i=a,l=t.ref(null),n=t.ref(null),_=t.ref(0),f=t.ref(null),o=e;let m=null;t.watch(()=>_.value,(N,O)=>{c(N),n.value.style.height=`${s(N)}px`,f.value.style.top=`${d(s(N))}px`}),t.watch(()=>o.selected_category,(N,O)=>{N==32?y.value="right":y.value="left"});function x(){m=new ResizeObserver(N=>{for(const O of N)_.value=O.contentRect.width}),m.observe(l.value)}function c(N){Y6.relayout(l.value,{width:N,height:s(N)})}function s(N){return Math.round(nV/Qwt*N,0)}function d(N){return sV+(N-oV)/(nV-oV)*(n6t-sV)}t.watch(()=>o.dataPaintInfo,(N,O)=>{N.data.length>0?E(N):T(N)},{deep:!0}),t.watch(()=>o.selected_team,N=>{N.data.length>0&&E(N)}),t.watch(()=>o.secondStart,N=>{E(N)});function p(N,O){let S=.01321,z=.00929,I=0,F=0,L=[];const D=O.length;let R=Math.floor(D/10);for(;I<D0;)F=O.filter(j=>j[0]>=I*S&&j[0]<=(I+1)*S&&j[1]>=N*z&&j[1]<=(N+1)*z).map(j=>j[1]).length,R=R===0?1:R,L.push(parseFloat((F/R).toFixed(4))),I++;return L.reverse()}function h(N){let O=[g(D0),g(D0)],S=[],z=XP;for(;z>0&&z<=XP;)S=p(z,N),O.push(S),z--;return O.push(g(D0),g(D0)),O}function g(N){return Array.from({length:N},()=>0)}function b(N,O,S){const z=[];let I=0,F=0;z.push(N[0]);for(let L=1;L<S-1;L++){const D=[];D.push(N[L][0]);for(let R=1;R<O-1;R++)I=N[L][R-1],F=N[L][R+1],D.push(I+.5*(N[L][R]+F-I));D.push(N[L][O-1]),z.push(D)}z.push(N[S-1]);for(let L=1;L<O-1;L++)for(let D=1;D<S-1;D++)I=z[D-1][L],F=z[D+1][L],z[D][L]=I+.5*(z[D][L]+F-I);return z}function v(N,O,S){for(var z=[],I=0;I<N.length;I++)N[I][Fp]==0&&N[I][JP]===o.selected_category&&z.push([N[I][tV],N[I][aV]]);return z}function w(N,O,S=1){let z=[],I=[];return N.forEach(F=>{if(F[JP]===o.selected_category){let L=N.filter(D=>F[0]===D[Jwt]&&D[Fp]<=S).sort((D,R)=>D[Fp]-R[Fp]);L.length>0&&z.push(L),F[Fp]===0&&I.push([F[Zwt],F[rV],F[Xwt],F[Kwt]])}}),{sequences:z,main_plays:I}}function C(N,O,S,z,I){let F=[],L=[],D=[],R=[],j=[],W=[],$=[],G=[],K=[],H=[];const Y="rgba(253, 101, 36, 1)",Z="rgba(255, 255, 255, 1)";return z=33,N.forEach((le,ie)=>{if(le.length===1){if(le[0][Fp]===0)return;let ne=le[0][QP]*S,re=le[0][eV]*z;L.push(ne),D.push(re-.7),R.push(ne),j.push(re),le[0][KP]===O?W.push(Z):W.push(Y)}else le.forEach((ne,re)=>{if(ne[Fp]===0)return;let Q=ne[QP]*S,ee=ne[eV]*z,se=ne[tV]*S,de=ne[aV]*z;L.push(Q),D.push(ee-.7),R.push(Q),j.push(ee),ne[KP]===O?W.push(Z):W.push(Y),$.push(Q),G.push(ee),le.length-1===re&&($.push(se),G.push(de),K.push(se),H.push(de))})}),F.shadowXPoints=L,F.shadowYPoints=D,F.playerXPoints=R,F.playerYPoints=j,F.playerColorPoints=W,F.trackX=$,F.trackY=G,F.arrowX=K,F.arrowY=H,F}function k(N,O){return N.map((S,z)=>S.map((I,F)=>{if(F===O){let[L,D,R]=I.split(/[:.]/);return parseInt(L)*60+parseInt(D)}else return I}))}function B(N,O,S,z,I=0,F){let L=[];return z.forEach(D=>{let R=I===0?parseInt(D[1])-parseInt(S):parseInt(D[1])+parseInt(S);N.filter(j=>D[0]===j[r6t]&&R===j[iV]&&O===j[e6t]).forEach(j=>{let W=j[t6t],$=j[a6t];$<=F&&L.push([W,$])})}),L}function E(N){N.data=k(N.data,rV),N.field_positions=k(N.field_positions,iV);let O=w(N.data,u,o.touches),S=v(N.data),z=B(N.field_positions,o.selected_team,o.secondStart,O.main_plays,o.operationStart,u),I=B(N.field_positions,o.selected_team,o.secondEnd,O.main_plays,o.operationEnd,u),F=h(S),L=h(z),D=h(I),R=F[0].length,j=F.length;F=b(b(F,R,j),R,j),L=b(b(L,R,j),R,j),D=b(b(D,R,j),R,j),R=F[0].length,j=F.length;let W=C(O.sequences,o.selected_team,R,j,o.touches);var $=[[0,"rgba(12,31,82,0)"],[.2,"rgba(14, 55, 115, 0.8)"],[.4,"rgba(33, 85, 160, 0.8)"],[.6,"rgba(16, 124, 170, 0.8)"],[.8,"rgba(32, 154, 207, 0.8)"],[1,"rgba(32, 174, 207, 0.8)"]],G=[[0,"rgba(12,31,82,0)"],[.2,"rgba(73, 13, 67, 0.8)"],[.4,"rgba(98, 32, 91, 0.8)"],[.6,"rgba(121, 52, 114, 0.8)"],[.8,"rgba(176, 36, 121, 0.8)"],[1,"rgba(230, 49, 158, 0.8)"]],K=[[0,"rgba(12,31,82,0)"],[.2,"rgba(94, 111, 79, 1)"],[.4,"rgba(111, 142, 28, 1)"],[.6,"rgba(142, 177, 50, 1)"],[.8,"rgba(169, 211, 57, 1)"],[1,"rgba(195, 229, 105, 1)"]],H=[{z:F,type:"heatmap",connectgaps:!0,opacity:1,colorscale:K,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],Y=[{z:L,type:"heatmap",connectgaps:!0,opacity:1,colorscale:$,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],Z=[{z:D,type:"heatmap",connectgaps:!0,opacity:1,colorscale:G,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],le={x:W.shadowXPoints,y:W.shadowYPoints,mode:"markers",marker:{color:"rgba(0, 0, 0, 0.5)",size:9}},ie={x:W.playerXPoints,y:W.playerYPoints,mode:"markers",marker:{color:W.playerColorPoints,size:8}},ne={x:W.trackX,y:W.trackY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1,dash:"2px 2px",arrowhead:"end"}},re={x:W.arrowX,y:W.arrowY,mode:"markers",marker:{symbol:"triangle-up",size:10,color:"rgba(255, 255, 255, 1)",angle:120}},Q=[];o.showTracks&&Q.push(ne,le,ie,re),o.showPlayersEndPosition&&Q.push(...Z),o.showPlayersPosition&&Q.push(...Y),o.showBallPosition&&Q.push(...H);const ee=[0,R],se=[0,j];r={showlegend:!1,width:_.value,height:s(_.value),xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:ee},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:se},margin:{l:5,r:0,b:0,t:5}},Y6.newPlot("surface-plot-heatmap",Q,r,{displayModeBar:!1,staticPlot:!0},{responsive:!0})}function T(N){N.data=[],N.field_positions=[];let O=w(N.data,u,o.touches),S=v(N.data),z=h(S),I=z[0].length,F=z.length;z=b(b(z,I,F),I,F),I=z[0].length,F=z.length;let L=C(O.sequences,o.selected_team,I,F);var D=[[0,"rgba(12,31,82,0)"],[.2,"rgba(14, 55, 115, 0)"],[.4,"rgba(33, 85, 160, 0)"],[.6,"rgba(16, 124, 170, 0)"],[.8,"rgba(32, 154, 207, 0)"],[1,"rgba(32, 174, 207, 0)"]],R=[[0,"rgba(12,31,82,0)"],[.2,"rgba(73, 13, 67, 0)"],[.4,"rgba(98, 32, 91, 0)"],[.6,"rgba(121, 52, 114, 0)"],[.8,"rgba(176, 36, 121, 0)"],[1,"rgba(230, 49, 158, 0)"]],j=[[0,"rgba(12,31,82,0)"],[.2,"rgba(94, 111, 79, 0)"],[.4,"rgba(111, 142, 28, 0)"],[.6,"rgba(142, 177, 50, 0)"],[.8,"rgba(169, 211, 57, 0)"],[1,"rgba(195, 229, 105, 0)"]],W=[{z:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],type:"heatmap",connectgaps:!0,opacity:.25,colorscale:j,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],$=[{z:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],type:"heatmap",connectgaps:!0,opacity:.25,colorscale:D,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],G=[{z:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],type:"heatmap",connectgaps:!0,opacity:.25,colorscale:R,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],K={x:L.shadowXPoints,y:L.shadowYPoints,mode:"markers",marker:{color:"rgba(0, 0, 0, 0.5)",size:9}},H={x:L.playerXPoints,y:L.playerYPoints,mode:"markers",marker:{color:L.playerColorPoints,size:8}},Y={x:L.trackX,y:L.trackY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1,dash:"2px 2px",arrowhead:"end"}},Z={x:L.arrowX,y:L.arrowY,mode:"markers",marker:{symbol:"triangle-up",size:10,color:"rgba(255, 255, 255, 1)",angle:120}},le=[];o.showTracks&&le.push(Y,K,H,Z),o.showPlayersEndPosition&&le.push(...G),o.showPlayersPosition&&le.push(...$),o.showBallPosition&&le.push(...W);const ie=[0,I],ne=[0,F];r={showlegend:!1,width:_.value,height:s(_.value),xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:ie},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:ne},margin:{l:5,r:0,b:0,t:5}},Y6.newPlot("surface-plot-heatmap",le,r,{displayModeBar:!1,staticPlot:!0},{responsive:!0})}const A=()=>{};function M(N){y.value=N,i("changelateralidad",y.value)}return t.onBeforeUnmount(()=>{window.removeEventListener("resize",A)}),t.onMounted(()=>{l.value&&(l.value.style.pointerEvents="none"),window.addEventListener("resize",A),x()}),(N,O)=>(t.openBlock(),t.createElementBlock("div",Wwt,[t.createElementVNode("div",qwt,[o.dataPaintInfo.data.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.widthContainer<768?"class-not-result-field-movil":"class-not-result-field")},[e.widthContainer<768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No se muestran resultados debido"),Ywt,t.createTextVNode(" a los filtros aplicados.")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No se muestran resultados debido a los filtros aplicados.")],64))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{id:"label-left-zone",style:t.normalizeStyle(t.unref(y)=="left"?"":"opacity: 0.6"),onClick:O[0]||(O[0]=S=>M("left"))},null,4),t.createElementVNode("div",{id:"label-right-zone",style:t.normalizeStyle(t.unref(y)=="right"?"":"opacity: 0.6"),onClick:O[1]||(O[1]=S=>M("right"))},null,4),t.createElementVNode("div",{ref_key:"surfacePlot",ref:l,id:"surface-plot-heatmap"},null,512)])]))}},lV="/arrowbtn.png",o6t={components:{GSCTrendMenuBall:Kxt,GSCCheckbox:lf,GSCTrendPosition:Uwt,CardField:i6t},props:{acronymHome:{type:String,default:""},acronymAway:{type:String,default:""},typePlay:{type:String,default:"A favor"},widthContainer:{type:Number,default:1280},touchAllData:{type:Array,default:()=>[]},playersData:{type:Object,default:()=>{}},homeTeam:{type:Number,default:0},awayTeam:{type:Number,default:0},selected_category:{type:Number,default:31},team:{type:Number,required:!0},forGame:{type:Boolean,required:!1},teamsData:{type:Object,default:()=>{}},fieldPositionsAll:{type:Array,default:()=>[]},inFavor:{type:Boolean,required:!1},isTacticVisible:{type:Boolean,required:!1}},data(){return{type:"ball",show:!1,game:62276,trajectories:[],rival:3014,totalCorners:0,typepositioning:"Posición",BallOnOff:"OFF",numberTouches:1,playersList:{},timepositioning:-1,checkedBallGo:!0,checkedHeatMap:!0,filterFieldPositions:[],timepositioningFinal:-1,arrayPlayers:{},season:1325,timepositioningend:1,zonesFilter:[],touchFilter:{},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{touchAllData:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},zonesFilter:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},typepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioningend:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0}},computed:{reftrendteamslocal(){const e=this.widthContainer;return e<=480?"ref-trend-teams-local480":e<=768?"ref-trend-teams-local768":"ref-trend-teams-local"},reftrendteamsrival(){return this.widthContainer<=768?"ref-trend-teams-rival768":"ref-trend-teams-rival"},reftrendteamsall(){const e=this.widthContainer;return e<=480?"ref-trend-teams-all480":e<=768?"ref-trend-teams-all768":"ref-trend-teams-all"},refpointlebeltext(){const e=this.widthContainer;return e<=480?"ref-point-lebel-text480":e<=768?"ref-point-lebel-text768":e<=860?"ref-point-lebel-text870":"ref-point-lebel-text"},trendcontentcontrols(){return this.widthContainer<=768?"trend-content-controls768":["trend-content-controls","to-right"]},trendtitle(){return this.widthContainer<=768?"trend-title768":"trend-title"},trendtitlecontainer(){return this.widthContainer<=768?"trend-titlecontainer768":"trend-titlecontainer"},trendcontentcontrolscontainer(){const e=this.widthContainer;return e<=400?"trend-content-controls-container400":e<=860?"trend-content-controls-container860":"trend-content-controls-container"},trendcontentcontrolsleyendcheckscontent(){const e=this.widthContainer;return e<=400?"trend-content-controls-leyend-checkscontent400":e<=768?"trend-content-controls-leyend-checkscontent768":e<=1e3?"trend-content-controls-leyend-checkscontent1000":"trend-content-controls-leyend-checkscontent"},trendcontentcontrolsleyend(){const e=this.widthContainer;return e<=768?"trend-content-controls-leyend768":e<=1e3?"trend-content-controls-leyend1000":"trend-content-controls-leyend"},contDataClass(){return this.widthContainer<=768?"cont-data768":"cont-data"},contDataClass2(){return this.widthContainer<=768?"cont-data-ref768":"cont-data-ref"},contCollectorsClass(){const e=this.widthContainer;return e<=768?"cont-collectors768":e<=900?"cont-collectors900":"cont-collectors"},contCollectorsClass2(){const e=this.widthContainer;return e<=768?"cont-collectors-ref768":e<=900?"cont-collectors-ref900":"cont-collectors-ref"},contWhoCnnectedClass(){const e=this.widthContainer;return e<=768?"cont-who-connected768":e<=900?"cont-who-connected900":"cont-who-connected"},contWhoCnnectedClass2(){const e=this.widthContainer;return e<=768?"cont-who-connected-ref768":e<=900?"cont-who-connected-ref900":"cont-who-connected-ref"}},methods:{changelateralidad(e){this.$emit("changelateralidad",e)},changeTouchesnum(e){this.numberTouches=e},checkBallGo(){this.checkedBallGo=!this.checkedBallGo},checkHeatMap(){this.checkedHeatMap=!this.checkedHeatMap},changeBallOnOff(e){typeof e=="string"&&(this.BallOnOff=e)},getDataPosition(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(o=>o[19]===0).map(o=>this.tiempoASegundosEnteros(o[13]));let r=[];this.timepositioning>=0?r=a.map(o=>o+this.timepositioning):r=a.map(o=>o-this.timepositioning);const u=this.fieldPositionsAll.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),y=this.contarYAgruparPorPosicion(u);let i=[];this.zonesFilter.length!=35?i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team):i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team),this.filterFieldPositions=i;let l=[],n=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&l.push(this.arrayPlayers[e].id),n.push(this.arrayPlayers[e].id);l.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(o=>l.includes(o[1])));const _=i.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),f=this.contarYAgruparPorPosicion(_);this.arrayPlayers={};for(let o=0;o<y.length;o++){const m=f.filter(function(x){return x.id_player==y[o].id_player});this.arrayPlayers[y[o].id_player]={id:y[o].id_player,corners:y[o].corners,cornersfilter:m[0]?m[0].corners:0,data:this.playersData[y[o].id_player]?this.playersData[y[o].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&n.includes(y[o].id_player)?!!l.includes(y[o].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},getDataTrajectory(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(c=>c[19]===0).map(c=>this.tiempoASegundosEnteros(c[13]));let r=[];this.timepositioning>=0?r=a.map(c=>c+Math.abs(this.timepositioning)):r=a.map(c=>c-Math.abs(this.timepositioning));let u=[];this.timepositioningend>=0?u=a.map(c=>c+Math.abs(this.timepositioningend)):u=a.map(c=>c-Math.abs(this.timepositioningend));const y=this.fieldPositionsAll.filter(c=>this.zonesFilter.includes(c[6])&&c[2]===this.team);this.filterFieldPositions=y;let i=[],l=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&i.push(this.arrayPlayers[e].id),l.push(this.arrayPlayers[e].id);i.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(c=>i.includes(c[1])));const n=this.fieldPositionsAll.filter(c=>a.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),_=y.filter(c=>r.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),f=y.filter(c=>u.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),o=this.contarYAgruparPorPosicion(n),m=this.contarYAgruparPorPosicion(_),x=this.contarYAgruparPorPosicion(f);for(let c=0;c<o.length;c++){const s=m.filter(function(p){return p.id_player==o[c].id_player}),d=x.filter(function(p){return p.id_player==o[c].id_player});this.arrayPlayers[o[c].id_player]={id:o[c].id_player,corners:o[c].corners,cornersfilter:s[0]?s[0].corners:0,cornersfilterfinal:d[0]?d[0].corners:0,data:this.playersData[o[c].id_player]?this.playersData[o[c].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&l.includes(o[c].id_player)?!!i.includes(o[c].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},contarYAgruparPorPosicion(e){const a=e.reduce((r,u)=>{const y=u[1];return r[y]?r[y]+=1:r[y]=1,r},{});return Object.keys(a).map(r=>({id_player:parseInt(r,10),corners:a[r]}))},tiempoASegundosEnteros(e){let a=e.split(":"),r=parseInt(a[0],10),u=parseFloat(a[1]);return r*60+Math.floor(u)},getTimePositioning(e){this.timepositioning=e},getTimePositioningEnd(e){this.timepositioningend=e},getTypePositioning(e){this.typepositioning=e},getArrayZonesField(e){this.zonesFilter=e},selectcheckplayerall(e){for(let a in this.arrayPlayers)this.arrayPlayers[a].selected=e;this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},selectcheckplayer(e){this.arrayPlayers[e].selected=!this.arrayPlayers[e].selected,this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},clickTypeButton(e){this.type=e},clickAdvanced(){this.show=!this.show},async getData(){}},mounted(){}},yc=e=>(t.pushScopeId("data-v-6ea1f349"),e=e(),t.popScopeId(),e),s6t={class:"text-diferent"},l6t=yc(()=>t.createElementVNode("br",null,null,-1)),c6t={key:0,class:"btnAdvance",src:lV},d6t={key:1,class:"btnAdvanceHide",src:lV},u6t={class:"menu-advanced-container"},p6t={class:"container-buttons-menu"},h6t={key:1,class:"position-only"},f6t={class:"buttons-menu-select-data"},m6t={key:0,class:"ref-trend-ball-player-container"},g6t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-6ea1f349><div class="ref-trend-ball-ball-point" data-v-6ea1f349></div><div class="ref-trend-ball-ball-label" data-v-6ea1f349>BALÓN</div></div><div class="ref-trend-ball-player" data-v-6ea1f349><div class="ref-trend-ball-playe-point" data-v-6ea1f349></div><div class="ref-trend-ball-player-label" data-v-6ea1f349>JUGADORES OFENSIVOS</div></div>',2),y6t=[g6t],_6t={key:1,class:"ref-trend-ball-player-container-route"},v6t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-6ea1f349><div class="ref-trend-ball-ball-point" data-v-6ea1f349></div><div class="ref-trend-ball-ball-label" data-v-6ea1f349>BALÓN</div></div><div class="ref-trend-ball-player-route" data-v-6ea1f349><div class="ref-trend-ball-player-label" data-v-6ea1f349>RECORRIDOS: </div><div class="ref-trend-ball-playe-point" data-v-6ea1f349></div><div class="ref-trend-ball-player-label" data-v-6ea1f349>INICIO </div><div class="ref-trend-ball-playe-point-end" data-v-6ea1f349></div><div class="ref-trend-ball-player-label" data-v-6ea1f349>FINAL</div></div>',2),b6t=[v6t],x6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-gol.png)"}},null,-1)),w6t=yc(()=>t.createElementVNode("br",null,null,-1)),k6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-con-destino.png)"}},null,-1)),C6t=yc(()=>t.createElementVNode("br",null,null,-1)),E6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-sin-destino.png)"}},null,-1)),S6t=yc(()=>t.createElementVNode("br",null,null,-1)),T6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/sin-destino.png)"}},null,-1)),A6t={class:"ref-trend-teams-rival-container-table"},N6t={class:"ref-trend-teams-rival-container-row1"},B6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-jugador-rival.png)"}},null,-1)),M6t=yc(()=>t.createElementVNode("br",null,null,-1)),I6t={class:"ref-trend-teams-rival-container-row2"},O6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-portero.png)"}},null,-1)),F6t=yc(()=>t.createElementVNode("br",null,null,-1));function z6t(e,a,r,u,y,i){const l=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCTrendMenuBall"),_=t.resolveComponent("GSCTrendPosition"),f=t.resolveComponent("CardField");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.widthContainer<=768?"gsc-trend-movil":"gsc-trend-plays")},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitlecontainer)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitle)},[t.createTextVNode(" Tendencia General "),t.createElementVNode("span",s6t,"("+t.toDisplayString(r.typePlay)+")",1)],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrols)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyend)},[r.widthContainer>1e3||r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Elige que quieres ver: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Elige que "),l6t,t.createTextVNode("quieres ver:")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyendcheckscontent)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(l,{label:"¿A dónde fue el balón?",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF","model-value":y.checkedBallGo,"onUpdate:modelValue":a[0]||(a[0]=o=>i.checkBallGo())},null,8,["labelFontSize","model-value"])],2),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(l,{label:"Jugadores ofensivos",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF",boxBackgroundColor:"#15a9e0","model-value":y.checkedHeatMap,"onUpdate:modelValue":a[1]||(a[1]=o=>i.checkHeatMap())},null,8,["labelFontSize","model-value"])],2),[[t.vShow,r.isTacticVisible]])],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass)},[t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=768?"button-avanced-movil":"button-avanced"),onClick:a[2]||(a[2]=(...o)=>i.clickAdvanced&&i.clickAdvanced(...o))},[y.show?(t.openBlock(),t.createElementBlock("img",c6t)):t.createCommentVNode("",!0),t.createTextVNode("Avanzado"),y.show?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",d6t))],2),t.withDirectives(t.createElementVNode("div",u6t,[t.createElementVNode("div",p6t,[r.isTacticVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",y.type=="ball"?"active":""]),onClick:a[3]||(a[3]=o=>i.clickTypeButton("ball"))}," A dónde fue el balón ",2),t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",y.type=="position"?"active":""]),onClick:a[4]||(a[4]=o=>i.clickTypeButton("position"))}," Posicionamiento ",2)],64)):(t.openBlock(),t.createElementBlock("div",h6t,"Posicionamiento"))]),t.createElementVNode("div",f6t,[t.withDirectives(t.createVNode(n,{"Ball-on-off":y.BallOnOff,onChangeBallOnOff:i.changeBallOnOff,onTouchesnum:i.changeTouchesnum},null,8,["Ball-on-off","onChangeBallOnOff","onTouchesnum"]),[[t.vShow,y.type=="ball"]]),t.withDirectives(t.createVNode(_,{onSelectcheckplayer:i.selectcheckplayer,onSelectcheckplayerall:i.selectcheckplayerall,data:y.arrayPlayers,onShowfield:i.getArrayZonesField,onTypepositioning:i.getTypePositioning,"width-container":r.widthContainer,onTimepositioning:i.getTimePositioning,onTimepositioningend:i.getTimePositioningEnd},null,8,["onSelectcheckplayer","onSelectcheckplayerall","data","onShowfield","onTypepositioning","width-container","onTimepositioning","onTimepositioningend"]),[[t.vShow,r.isTacticVisible&&y.type==="position"]])])],512),[[t.vShow,y.show]])],2),t.createElementVNode("div",{class:t.normalizeClass(i.contWhoCnnectedClass)},[t.createVNode(f,{"width-container":r.widthContainer,selected_team:r.team,"show-ball-position":y.checkedBallGo,"show-players-position":y.checkedHeatMap,selected_category:r.selected_category,"show-tracks":y.BallOnOff=="ON",touches:y.numberTouches,"operation-start":y.timepositioning>0?1:0,"second-start":Math.abs(y.timepositioning),"second-end":y.timepositioningend>0?1:0,"operation-end":Math.abs(y.timepositioningend),onChangelateralidad:i.changelateralidad,"show-players-end-position":y.typepositioning=="Recorrido","data-paint-info":{data:r.touchAllData,field_positions:y.filterFieldPositions,home_atk_direction:1}},null,8,["width-container","selected_team","show-ball-position","show-players-position","selected_category","show-tracks","touches","operation-start","second-start","second-end","operation-end","onChangelateralidad","show-players-end-position","data-paint-info"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass2)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass2)},[y.typepositioning==="Posición"?(t.openBlock(),t.createElementBlock("div",m6t,y6t)):(t.openBlock(),t.createElementBlock("div",_6t,b6t))],2),y.BallOnOff=="ON"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.contWhoCnnectedClass2)},[t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamsall)},[t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamslocal)},[t.createElementVNode("div",{class:"ref-trend-teams-local-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center !important;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.acronymHome),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.teamsData[r.team].name),1)],64))],4),t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=480?"ref-trend-teams-local-container-table-movil":"ref-trend-teams-local-container-table")},[t.createElementVNode("div",{class:"ref-trend-teams-local-container-row1",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[x6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Remata destino "),w6t,t.createTextVNode("portería fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row2",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[k6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado destino "),C6t,t.createTextVNode("a portería no fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row3",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[E6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado sin "),S6t,t.createTextVNode("destino a portería")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row4",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[T6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},"Sin destino",2)],4)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamsrival)},[t.createElementVNode("div",{class:"ref-trend-teams-rival-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.acronymAway),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Rival")],64))],4),t.createElementVNode("div",A6t,[t.createElementVNode("div",N6t,[B6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Jugador rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),M6t,t.createTextVNode("Jugador rival")],64))],2)]),t.createElementVNode("div",I6t,[O6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Portero rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),F6t,t.createTextVNode("Portero rival")],64))],2)])])],2)],2)],2)):t.createCommentVNode("",!0)],2)],2)}const P6t=Ti(o6t,[["render",z6t],["__scopeId","data-v-6ea1f349"]]),V6t={components:{GSCConnectionsSetPiece:Hot,GSCHeaderSetPiece:N2t,GSCDataToHighlight:k_t,GSCModalBreakdown:Rvt,GSCSpecificPlays:Lxt,GSCTrend:P6t},props:{game:{type:Object,required:!0},forSeason:{type:Boolean,default:!1},forTeam:{type:Boolean,default:!1},forGame:{type:Boolean,default:!1},team:{type:Number,default:0},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",touchAllDataHome:[],touchAllDataAway:[],filters:{isMoment:!1,final:[1,2,3],moment:[1,2,3],playingAs:[1,2],sections:[1,2,3,4,5,6],games:[],players:[],cornertype:31,howWas:[120,126,327,133],zona:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],whathappened:[583,585,587,589,584,586,588,590,122,128,136,142,123,129,137,143,124,130,138,144,125,131,139,14,146,147,327,133],isWhatHappenedFull:!0,isZoneFull:!0},containerWidth:0,openModal:!1,playersData:{},teamsData:{},gamesAllHome:[],gamesAllAway:[],teamSelected:0,touchDataSelected:[],auxChangeFilterPlayer:!0,auxChangeFilterGames:!0,positionsDataSelected:[],copyLastFilters:{},seasonId:0,totalDataCollection:{},seasonsByGame:{},matchesByGame:{},rivalsByGame:{},updateConnections:0,showCorners:0,filterPlayersAvailable:[],filterGamesAvailable:[],updateTrend:0,lateralidad:"left",updateFilter:0,copyplayers:[],infavoragainst:!0,typePlay:"A favor",modalInitialData:{},areFiltersOpen:!1}},watch:{game:{immediate:!0,handler(e){this.getDataCorners(e),this.createStorageGame()}},teamSelected:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},infavoragainst:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},calculationTouchesData:{immediate:!0,handler(){this.showCorners=this.calculationTouchesData.filter(e=>e[19]==0).length}}},computed:{isGameOnly(){return this.forGame&&!this.forSeason&&!this.forTeam},calculateTotal(){return this.touchDataSelected.filter(e=>e[19]==0).length},calculationPositionsData(){return this.positionsDataSelected},calculationTouchesData(){let e=[],a=[];if(this.touchDataSelected.length>0){this.updateCopyfilter(),this.filters.isMoment?a=this.touchDataSelected.filter(u=>this.filters.moment.includes(u[17])&&this.filters.playingAs.includes(u[14])&&this.filters.sections.includes(u[20])&&u[19]==0):a=this.touchDataSelected.filter(u=>this.filters.final.includes(u[16])&&this.filters.playingAs.includes(u[14])&&this.filters.sections.includes(u[20])&&u[19]==0),this.updateGamesListFilter({corners:a,games:this.filters.games}),this.filters.games.length>0&&(a=a.filter(u=>this.filters.games.includes(u[3]))),this.infavoragainst&&(this.updatePlayerListFilter({corners:a,players:this.filters.players}),this.filters.players.length>0&&(a=a.filter(u=>this.filters.players.includes(u[1])))),a=a.filter(u=>this.filters.cornertype==u[4]),this.filters.zona.length!=35&&(a=a.filter(u=>this.filters.zona.includes(u[12]))),a=a.filter(u=>u[5].split(",").map(y=>parseInt(y)).some(y=>this.filters.howWas.includes(y))),this.filters.whathappened.length!=24&&(a=a.filter(u=>u[5].split(",").map(y=>parseInt(y)).some(y=>this.filters.whathappened.includes(y))));const r=a.map(u=>u[18]);e=this.touchDataSelected.filter(u=>r.includes(u[18]))}return e},cornersInFavor(){return"-"},cornersAgainst(){return"-"}},methods:{setHeaderStickyListener(){const e=this.$refs.header.getBoundingClientRect();window.onscroll=()=>{(window.scrollY||window.pageYOffset)>e.top?this.$refs.header.classList.add("sticky"):this.$refs.header.classList.remove("sticky")}},setCornersSide(e){this.lateralidad=e},onChangeShowFilters(e){this.areFiltersOpen=e},fillFilterPlayersReset(){setTimeout(()=>{if(this.infavoragainst){const e=this.forGame?this.infavoragainst?this.teamSelected:this.teamSelected==this.game.home_team?this.game.away_team:this.game.home_team:this.teamSelected,a=this.touchDataSelected.filter(u=>u[19]==0&&e).map(u=>u[1]),r=[...new Set(a)];this.getFilterTakenCorners({players:r})}},100)},fillFilterGamesReset(){setTimeout(()=>{const e=this.touchDataSelected.filter(r=>r[19]==0).map(r=>r[3]),a=[...new Set(e)];this.getFilterGames({games:a})},100)},updateCopyfilter(){this.copyLastFilters=this.filters},fillGameDataTeam(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.game.home_team].acronym} vs ${this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.game.home_team==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},fillGameData(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.teamSelected].acronym} vs ${this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.teamSelected==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},updatePlayerListFilter(e){if(this.infavoragainst){let a={},r=[];for(let u=0;u<e.corners.length;u++){const y=e.corners[u];if(y[19]===0&&y[2]===this.teamSelected){const i=y[1],l=this.playersData[i];i in a||(a[i]=l,r.push(l))}}if(this.filterPlayersAvailable=r,e.players.length>0&&this.filterPlayersAvailable.length>0)for(let u=0;u<this.filterPlayersAvailable.length;u++)e.players.includes(this.filterPlayersAvailable[u].id)?this.filterPlayersAvailable[u].isSelected=!0:this.filterPlayersAvailable[u].isSelected=!1}},updateGamesListFilter(e){if(!this.forGame){this.filterGamesAvailable=[];const a=this.obtenerIDsGames(e.corners);this.forSeason?this.teamSelected==this.game.home_team?this.filterGamesAvailable=a.map(r=>{let u=this.gamesAllHome.find(y=>y.game_id===r);if(u)return this.fillGameData(u)}):this.filterGamesAvailable=a.map(r=>{let u=this.gamesAllAway.find(y=>y.game_id===r);if(u)return this.fillGameData(u)}):this.filterGamesAvailable=a.map(r=>{let u=this.gamesAllHome.find(y=>y.game_id===r);if(u)return this.fillGameDataTeam(u)})}if(e.games.length>0&&this.filterGamesAvailable.length>0)for(let a=0;a<this.filterGamesAvailable.length;a++)e.games.includes(this.filterGamesAvailable[a].id)?this.filterGamesAvailable[a].isSelected=!0:this.filterGamesAvailable[a].isSelected=!1},getResetPlayers(){for(let e in this.playersData)this.playersData[e].isSelected=!0},getFilterZone(e){this.filters.zona=e,this.filters.isZoneFull=e.length===35},getFilterHowWasCorner(e){this.filters.cornertype=e.cornertype,this.filters.howWas=e.howWas},getFilterTakenCorners(e){this.filters.players=e.players},getFilterGames(e){this.filters.games=e.games,this.fillFilterPlayersReset()},getFilterDetails(e){this.filters.playingAs=e.playingAs,this.filters.sections=e.sections,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterResultsByTime(e){this.filters.final=e.final,this.filters.isMoment=e.isMoment,this.filters.moment=e.moment,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterWhatHappened(e){this.filters.whathappened=e,this.filters.isWhatHappenedFull=e.length===24},obtenerIDsGames(e){return[...new Set(e.map(a=>a[3]))]},async getInFavorAgainstTeam(e){this.updateTrend+=1,this.infavoragainst=e,this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&(this.teamSelected==this.game.home_team?await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}))},async getTeamSelected(e){this.teamSelected!=e&&(this.updateConnections+=1,this.updateTrend+=1,this.teamSelected=e,this.touchDataSelected=[],this.gamesAllHome.length!=0&&this.gamesAllAway.length!=0&&(this.teamSelected==this.game.home_team?this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})))},async requestOrchestrator(e){let a=[];const r=Li.create({headers:{Authorization:`${this.token}`}});for(let n=0;n<e.games.length;n++)this.seasonId=e.games[n].season_id,a.push(e.inFavor?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id+"?isR=1");const u=async n=>{try{return(await r.get(n)).data}catch(_){throw console.error("Error al obtener datos:",_),_}};var y=[],i=[];const l=a.map(n=>u(n));Promise.all(l).then(n=>{for(let _=0;_<n.length;_++)n[_].data=this.changeLateralityCoordenatesPlays(n[_].data,!1),n[_].field_positions=this.changeLateralityCoordenatesPlays(n[_].field_positions,!0),y=y.concat(n[_].data),i=i.concat(n[_].field_positions),this.getDataPlayers(n[_].players),this.getDataPlayers(n[_].rival_players),this.getDataTeams(n[_].teams),this.getSeasonByGame({season:n[_]&&n[_].hasOwnProperty("season_name")?n[_].season_name:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getMatchByGame({match:n[_]&&n[_].hasOwnProperty("matchday_abbreviation")?n[_].matchday_abbreviation:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getRivalsByGame({rival:this.infavoragainst?this.teamSelected==n[_].teams[0].team_id?n[_].teams[1].name:n[_].teams[0].name:this.teamSelected==n[_].teams[0].team_id?n[_].teams[0].name:n[_].teams[1].name,game:n[_].data[0]?n[_].data[0][3]:0,team:this.teamSelected,favor:this.infavoragainst});this.touchDataSelected=y,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch=y,this.positionsDataSelected=i,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions=i}).catch(n=>{console.error("Error al obtener datos:",n)})},getRowMatrix(e,a){let r=.01351,u=.02439,y=0,i=0,l=[];const n=a.length;let _=Math.floor(n/10);for(;y<74;)i=a.filter(f=>f[0]>=y*r&&f[0]<=(y+1)*r&&f[1]>=e*u&&f[1]<=(e+1)*u).map(f=>f[1]).length,_=_===0?1:_,l.push(parseFloat((i/_).toFixed(4))),y++;return l.reverse()},getEmptyArray(e){return Array.from({length:e},()=>0)},getMatrix(e){let a=[this.getEmptyArray(74),this.getEmptyArray(74)],r=[],u=39;for(;u>0&&u<=39;)r=this.getRowMatrix(u,e),a.push(r),u--;return a.push(this.getEmptyArray(74),this.getEmptyArray(74)),a},getSoftData(e,a,r){const u=[];let y=0,i=0;u.push(e[0]);for(let l=1;l<r-1;l++){const n=[];n.push(e[l][0]);for(let _=1;_<a-1;_++)y=e[l][_-1],i=e[l][_+1],n.push(y+.5*(e[l][_]+i-y));n.push(e[l][a-1]),u.push(n)}u.push(e[r-1]);for(let l=1;l<a-1;l++)for(let n=1;n<r-1;n++)y=u[n-1][l],i=u[n+1][l],u[n][l]=y+.5*(u[n][l]+i-y);return u},changeLateralityCoordenatesPlays(e,a){return a?e.forEach((r,u)=>{let y=0,i=0;this.infavoragainst?(y=r[2]===this.teamSelected?1-r[3]:r[3],i=r[2]===this.teamSelected?1-r[4]:r[4]):(y=r[2]===this.teamSelected?r[3]:1-r[3],i=r[2]===this.teamSelected?r[4]:1-r[4]),e[u][3]=y,e[u][4]=i}):e.forEach((r,u)=>{let y=0,i=0,l=0,n=0,_=0,f=0;r[19]!=0?this.infavoragainst?(y=r[2]===this.teamSelected?r[6]:1-r[6],i=r[2]===this.teamSelected?1-r[7]:r[7],l=r[2]===this.teamSelected?r[8]:1-r[8],n=r[2]===this.teamSelected?1-r[9]:r[9],_=r[2]===this.teamSelected?r[10]:1-r[10],f=r[2]===this.teamSelected?1-r[11]:r[11]):(y=r[2]===this.teamSelected?1-r[6]:r[6],i=r[2]===this.teamSelected?r[7]:1-r[7],l=r[2]===this.teamSelected?1-r[8]:r[8],n=r[2]===this.teamSelected?r[9]:1-r[9],_=r[2]===this.teamSelected?1-r[10]:r[10],f=r[2]===this.teamSelected?r[11]:1-r[11]):(y=1-r[6],i=r[7],l=1-r[8],n=r[9],_=1-r[10],f=r[11]),e[u][6]=y,e[u][7]=i,e[u][8]=l,e[u][9]=n,e[u][10]=_,e[u][11]=f}),e},changeLateralityPlays(e){e.field_positions=e.field_positions.map(r=>[...r.slice(0,3),r[4],r[3],...r.slice(5)]);let a=[];return e.data.forEach(r=>{r[19]===0&&a.push([r[0],r[13],r[14],r[15]])}),a.forEach(r=>{e.field_positions.filter(u=>r[0]===u[7]&&this.teamSelected===u[2]).forEach(u=>{let y=u[3],i=u[4];(e.homeTeamAtkDirection===1&&r[3]===1||e.homeTeamAtkDirection===2&&r[3]===2||e.homeTeamAtkDirection===1&&r[3]===3||e.homeTeamAtkDirection===2&&r[3]===4)&&(y=1-y,i=1-i),u[3]=y,u[4]=i})}),e.field_positions},createStorageGame(){this.totalDataCollection[this.game.id]={},this.totalDataCollection[this.game.id][this.game.home_team]={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.home_team].Against={},this.totalDataCollection[this.game.id][this.game.home_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].Against.positions=[],(this.forGame||this.forSeason)&&(this.totalDataCollection[this.game.id][this.game.away_team]={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.away_team].Against={},this.totalDataCollection[this.game.id][this.game.away_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].Against.positions=[])},validateDataLocalStorage(e){return this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch.length>0&&this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions.length>0?(this.touchDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch,this.positionsDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions,!1):!0},getGamesByTeam(e){this.forSeason?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.gamesAllAway=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.forGame?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllAway=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1})},async getDataCorners(e){const a=await Li.create({headers:{Authorization:`${this.token}`}}).get("https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?seasons="+e.season);this.forSeason?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):this.forGame?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,game:this.game,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,game:this.game,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.validateDataLocalStorage({team:e.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game}))},obtenerNombreAbreviado(e){let a=e.split(", ");if(a.length!==2)return e;let r=a[0],u=a[1],y=r.split(" ")[0];return u.charAt(0).toUpperCase()+". "+y},getDataPlayers(e){for(let a=0;a<e.length;a++)this.playersData.hasOwnProperty(e[a].player_id)||(this.playersData[e[a].player_id]={name:this.obtenerNombreAbreviado(e[a].name),last_name:e[a].name.includes(",")?e[a].name.split(",")[0].trim():"",first_name:e[a].name.includes(",")?e[a].name.split(",")[1].trim():"",img:e[a].photo,photo:e[a].photo,position:e[a].position_id,positions:[e[a].position_id],id:e[a].player_id,player_id:e[a].player_id,team_id:e[a].team_id,team:e[a].team_id,nationality_id:e[a].nationality_id,nationality_flag:"https://az755631.vo.msecnd.net/flags/"+e[a].nationality_id+".jpg",jersey:e[a].jersey,isSelected:!0})},getSeasonByGame(e){e.season!=""?this.seasonsByGame[e.game]=e.season:this.seasonsByGame[e.game]="-"},getMatchByGame(e){e.match!=""?this.matchesByGame[e.game]=e.match.replace("M","J"):this.matchesByGame[e.game]="-"},getRivalsByGame(e){this.rivalsByGame[e.favor?"InFavor":"Against"]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival:(this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival):(this.rivalsByGame[e.favor?"InFavor":"Against"]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival)},getDataTeams(e){for(let a=0;a<e.length;a++)this.teamsData.hasOwnProperty(e[a].team_id)||(this.teamsData[e[a].team_id]={name:e[a].name,acronym:e[a].acronym,img:"https://az755631.vo.msecnd.net/teams-80/"+e[a].team_id+".png",id:e[a].team_id})},getTypePlay(e){typeof e=="string"&&(this.typePlay=e)},clickOpenModal(){this.openModal=!this.openModal,document.body.classList.add("no-scroll")},clickCloseFinal(){this.openModal=!1,document.body.classList.remove("no-scroll")},onOpenMediaPlayer(e){this.$emit("open-media-player",e)},onOpenMediaPlayerJson(e){let a={seasonId:this.seasonId,mainSectionType:1,playListType:3,categoryIds:[e.id],gameIds:this.forGame?[this.game.id]:null,playerIds:[],goalkeeperIds:[],teamId:this.teamSelected,matchResult:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};this.$emit("open-media-player",a)}},mounted(){this.setHeaderStickyListener();const e=()=>{const a=document.querySelector(".gsc-set-piece");a?this.containerWidth=a.clientWidth:setTimeout(()=>{},400)};window.addEventListener("resize",e),this.$nextTick(e)}},L6t={class:"gsc-set-piece"},R6t={ref:"header",class:"gsc-set-piece__header"};function D6t(e,a,r,u,y,i){const l=t.resolveComponent("GSCHeaderSetPiece"),n=t.resolveComponent("GSCDataToHighlight"),_=t.resolveComponent("GSCTrend"),f=t.resolveComponent("GSCConnectionsSetPiece"),o=t.resolveComponent("GSCModalBreakdown"),m=t.resolveComponent("GSCSpecificPlays");return t.openBlock(),t.createElementBlock("div",L6t,[t.createElementVNode("div",R6t,[(t.openBlock(),t.createBlock(l,{"width-container":y.containerWidth,type:r.forTeam?0:3,"teams-data":y.teamsData,"game-info":r.game,"total-corners":i.calculateTotal,"show-corners":y.showCorners,"in-favor":y.infavoragainst,"corners-in-favor":i.cornersInFavor,"corners-against":i.cornersAgainst,"for-game":r.forGame,key:y.updateFilter,lateralidad:y.lateralidad,"available-players":y.filterPlayersAvailable,"available-games":y.filterGamesAvailable,"is-synchronization":r.isSynchronization,onChangeShowFilters:i.onChangeShowFilters,onChangetypePlay:i.getTypePlay,onOpenModal:i.clickOpenModal,onTeamselected:i.getTeamSelected,onInfavoragainstteam:i.getInFavorAgainstTeam,onFilter_results_by_time:i.getFilterResultsByTime,onFilter_details:i.getFilterDetails,onFilter_games:i.getFilterGames,onFilter_takencorners:i.getFilterTakenCorners,onFilter_howwascorner:i.getFilterHowWasCorner,onFilter_zone:i.getFilterZone,onFilter_whathappened:i.getFilterWhatHappened},null,8,["width-container","type","teams-data","game-info","total-corners","show-corners","in-favor","corners-in-favor","corners-against","for-game","lateralidad","available-players","available-games","is-synchronization","onChangeShowFilters","onChangetypePlay","onOpenModal","onTeamselected","onInfavoragainstteam","onFilter_results_by_time","onFilter_details","onFilter_games","onFilter_takencorners","onFilter_howwascorner","onFilter_zone","onFilter_whathappened"]))],512),!r.isSynchronization&&y.teamSelected>0?(t.openBlock(),t.createBlock(n,{key:0,team:y.teamSelected,season:r.game.season,"in-favor":y.infavoragainst,"width-container":y.containerWidth},null,8,["team","season","in-favor","width-container"])):t.createCommentVNode("",!0),r.isSynchronization?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_,{"players-data":y.playersData,"teams-data":y.teamsData,"touch-all-data":i.calculationTouchesData,"field-positions-all":i.calculationPositionsData,"width-container":y.containerWidth,"in-favor":y.infavoragainst,"for-game":r.forGame,"home-team":r.game.home_team,"away-team":r.game.away_team,"acronym-home":r.game.home_acronym,"acronym-away":r.game.away_acronym,team:y.teamSelected,"type-play":y.typePlay,selected_category:y.filters.cornertype,"is-tactic-visible":r.isTacticVisible,key:y.updateTrend,onChangelateralidad:i.setCornersSide},null,8,["players-data","teams-data","touch-all-data","field-positions-all","width-container","in-favor","for-game","home-team","away-team","acronym-home","acronym-away","team","type-play","selected_category","is-tactic-visible","onChangelateralidad"])),!r.isSynchronization&&y.teamSelected>0?(t.openBlock(),t.createBlock(f,{"seasons-by-game":y.seasonsByGame,"matches-by-game":y.matchesByGame,"rivals-by-game":y.rivalsByGame,"width-container":y.containerWidth,"players-data":y.playersData,"teams-data":y.teamsData,"touch-all-data":i.calculationTouchesData,"team-id":r.forGame?y.infavoragainst?y.teamSelected:y.teamSelected==r.game.home_team?r.game.away_team:r.game.home_team:y.teamSelected,"in-favor":y.infavoragainst,"for-game":r.forGame,key:y.updateConnections},null,8,["seasons-by-game","matches-by-game","rivals-by-game","width-container","players-data","teams-data","touch-all-data","team-id","in-favor","for-game"])):t.createCommentVNode("",!0),y.openModal?(t.openBlock(),t.createBlock(o,{key:3,"component-width":y.containerWidth,onClickClose:i.clickCloseFinal,"show-modal-prop":y.openModal,id:y.teamSelected,"season-id":r.game.season,game:r.game.id,onClickPlay:i.onOpenMediaPlayerJson,prematch:!!r.forGame},null,8,["component-width","onClickClose","show-modal-prop","id","season-id","game","onClickPlay","prematch"])):t.createCommentVNode("",!0),y.teamSelected&&r.game.season?(t.openBlock(),t.createBlock(m,{key:4,"team-id-for-analysis":y.teamSelected,"season-id-for-analysis":r.game?r.game.season:y.seasonId,"width-container":y.containerWidth,filters:y.filters,"is-game-only":i.isGameOnly,game:r.game,"is-against-mode":!y.infavoragainst,"are-filters-open":y.areFiltersOpen,"is-tactic-visible":r.isTacticVisible,"is-synchronization":r.isSynchronization,onOpenMediaPlayer:i.onOpenMediaPlayer},null,8,["team-id-for-analysis","season-id-for-analysis","width-container","filters","is-game-only","game","is-against-mode","are-filters-open","is-tactic-visible","is-synchronization","onOpenMediaPlayer"])):t.createCommentVNode("",!0)])}const $6t=Ti(V6t,[["render",D6t],["__scopeId","data-v-683751ab"]]),sBt="",lBt="",j6t={class:"datagame-container"},U6t=Si({__name:"GSCTacticaFijaMain",props:{game:{type:Object,default:()=>({})}},emits:["open-media-player"],setup(e,{emit:a}){function r(u){a("open-media-player",u)}return(u,y)=>(t.openBlock(),t.createElementBlock("div",j6t,[t.createVNode(t.unref($6t),{game:{id:e.game.gameId,home_team:e.game.homeTeam.team_id,away_team:e.game.awayTeam.team_id,season:e.game.seasonId,game_status:e.game.game_status,home_acronym:e.game.homeTeam.acronym,away_acronym:e.game.awayTeam.acronym,logo_home:"https://az755631.vo.msecnd.net/teams-80/"+e.game.homeTeam.team_id+".png",logo_away:"https://az755631.vo.msecnd.net/teams-80/"+e.game.awayTeam.team_id+".png"},"for-season":e.game.game_status==4,"for-team":!1,"for-game":e.game.game_status!=4,onOpenMediaPlayer:r},null,8,["game","for-season","for-game"])]))}},[["__scopeId","data-v-5c618d95"]]),$0=(e,a)=>{const r=e.__vccOpts||e;for(const[u,y]of a)r[u]=y;return r},H6t={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const r=e,u=t.computed(()=>({"--height":r.height,"--width":r.width,"--padding":r.padding,"--border-radius":r.borderRadius,"--border":`solid ${r.borderWidth} ${r.borderColor}`,"--background-color":r.backgroundColor,"--font-color":r.fontColor,"--font-size":r.fontSize,"--font-family":r.fontFamily,"--active-background-color":r.activeBackgroundColor||r.backgroundColor,"--active-border-color":r.activeBorderColor||r.borderColor,"--active-font-color":r.activeFontColor||r.fontColor}));function y(){a("click")}return(i,l)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(u.value),onClick:y},t.toDisplayString(e.text),7))}},G6t=$0(H6t,[["__scopeId","data-v-ea76c1c1"]]);function cV(e,a){return function(){return e.apply(a,arguments)}}const{toString:W6t}=Object.prototype,{getPrototypeOf:Z6}=Object,M_=(e=>a=>{const r=W6t.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),jd=e=>(e=e.toLowerCase(),a=>M_(a)===e),I_=e=>a=>typeof a===e,{isArray:cf}=Array,j0=I_("undefined");function q6t(e){return e!==null&&!j0(e)&&e.constructor!==null&&!j0(e.constructor)&&_c(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dV=jd("ArrayBuffer");function Y6t(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&dV(e.buffer),a}const Z6t=I_("string"),_c=I_("function"),uV=I_("number"),O_=e=>e!==null&&typeof e=="object",X6t=e=>e===!0||e===!1,F_=e=>{if(M_(e)!=="object")return!1;const a=Z6(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},K6t=jd("Date"),J6t=jd("File"),Q6t=jd("Blob"),e8t=jd("FileList"),t8t=e=>O_(e)&&_c(e.pipe),a8t=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||_c(e.append)&&((a=M_(e))==="formdata"||a==="object"&&_c(e.toString)&&e.toString()==="[object FormData]"))},r8t=jd("URLSearchParams"),n8t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function U0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let u,y;if(typeof e!="object"&&(e=[e]),cf(e))for(u=0,y=e.length;u<y;u++)a.call(null,e[u],u,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let n;for(u=0;u<l;u++)n=i[u],a.call(null,e[n],n,e)}}function pV(e,a){a=a.toLowerCase();const r=Object.keys(e);let u=r.length,y;for(;u-- >0;)if(y=r[u],a===y.toLowerCase())return y;return null}const hV=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fV=e=>!j0(e)&&e!==hV;function X6(){const{caseless:e}=fV(this)&&this||{},a={},r=(u,y)=>{const i=e&&pV(a,y)||y;F_(a[i])&&F_(u)?a[i]=X6(a[i],u):F_(u)?a[i]=X6({},u):cf(u)?a[i]=u.slice():a[i]=u};for(let u=0,y=arguments.length;u<y;u++)arguments[u]&&U0(arguments[u],r);return a}const i8t=(e,a,r,{allOwnKeys:u}={})=>(U0(a,(y,i)=>{r&&_c(y)?e[i]=cV(y,r):e[i]=y},{allOwnKeys:u}),e),o8t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s8t=(e,a,r,u)=>{e.prototype=Object.create(a.prototype,u),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},l8t=(e,a,r,u)=>{let y,i,l;const n={};if(a=a||{},e==null)return a;do{for(y=Object.getOwnPropertyNames(e),i=y.length;i-- >0;)l=y[i],(!u||u(l,e,a))&&!n[l]&&(a[l]=e[l],n[l]=!0);e=r!==!1&&Z6(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},c8t=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const u=e.indexOf(a,r);return u!==-1&&u===r},d8t=e=>{if(!e)return null;if(cf(e))return e;let a=e.length;if(!uV(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},u8t=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Z6(Uint8Array)),p8t=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let u;for(;(u=r.next())&&!u.done;){const y=u.value;a.call(e,y[0],y[1])}},h8t=(e,a)=>{let r;const u=[];for(;(r=e.exec(a))!==null;)u.push(r);return u},f8t=jd("HTMLFormElement"),m8t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,u){return r.toUpperCase()+u}),mV=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),g8t=jd("RegExp"),gV=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),u={};U0(r,(y,i)=>{let l;(l=a(y,i,e))!==!1&&(u[i]=l||y)}),Object.defineProperties(e,u)},y8t=e=>{gV(e,(a,r)=>{if(_c(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const u=e[r];if(_c(u)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_8t=(e,a)=>{const r={},u=y=>{y.forEach(i=>{r[i]=!0})};return cf(e)?u(e):u(String(e).split(a)),r},v8t=()=>{},b8t=(e,a)=>(e=+e,Number.isFinite(e)?e:a),K6="abcdefghijklmnopqrstuvwxyz",yV="0123456789",_V={DIGIT:yV,ALPHA:K6,ALPHA_DIGIT:K6+K6.toUpperCase()+yV},x8t=(e=16,a=_V.ALPHA_DIGIT)=>{let r="";const{length:u}=a;for(;e--;)r+=a[Math.random()*u|0];return r};function w8t(e){return!!(e&&_c(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k8t=e=>{const a=new Array(10),r=(u,y)=>{if(O_(u)){if(a.indexOf(u)>=0)return;if(!("toJSON"in u)){a[y]=u;const i=cf(u)?[]:{};return U0(u,(l,n)=>{const _=r(l,y+1);!j0(_)&&(i[n]=_)}),a[y]=void 0,i}}return u};return r(e,0)},C8t=jd("AsyncFunction"),E8t=e=>e&&(O_(e)||_c(e))&&_c(e.then)&&_c(e.catch),Br={isArray:cf,isArrayBuffer:dV,isBuffer:q6t,isFormData:a8t,isArrayBufferView:Y6t,isString:Z6t,isNumber:uV,isBoolean:X6t,isObject:O_,isPlainObject:F_,isUndefined:j0,isDate:K6t,isFile:J6t,isBlob:Q6t,isRegExp:g8t,isFunction:_c,isStream:t8t,isURLSearchParams:r8t,isTypedArray:u8t,isFileList:e8t,forEach:U0,merge:X6,extend:i8t,trim:n8t,stripBOM:o8t,inherits:s8t,toFlatObject:l8t,kindOf:M_,kindOfTest:jd,endsWith:c8t,toArray:d8t,forEachEntry:p8t,matchAll:h8t,isHTMLForm:f8t,hasOwnProperty:mV,hasOwnProp:mV,reduceDescriptors:gV,freezeMethods:y8t,toObjectSet:_8t,toCamelCase:m8t,noop:v8t,toFiniteNumber:b8t,findKey:pV,global:hV,isContextDefined:fV,ALPHABET:_V,generateString:x8t,isSpecCompliantForm:w8t,toJSONObject:k8t,isAsyncFn:C8t,isThenable:E8t};function Xn(e,a,r,u,y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),u&&(this.request=u),y&&(this.response=y)}Br.inherits(Xn,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:Br.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vV=Xn.prototype,bV={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bV[e]={value:e}}),Object.defineProperties(Xn,bV),Object.defineProperty(vV,"isAxiosError",{value:!0}),Xn.from=(e,a,r,u,y,i)=>{const l=Object.create(vV);return Br.toFlatObject(e,l,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Xn.call(l,e.message,a,r,u,y),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const S8t=null;function J6(e){return Br.isPlainObject(e)||Br.isArray(e)}function xV(e){return Br.endsWith(e,"[]")?e.slice(0,-2):e}function wV(e,a,r){return e?e.concat(a).map(function(u,y){return u=xV(u),!r&&y?"["+u+"]":u}).join(r?".":""):a}function T8t(e){return Br.isArray(e)&&!e.some(J6)}const A8t=Br.toFlatObject(Br,{},null,function(e){return/^is[A-Z]/.test(e)});function z_(e,a,r){if(!Br.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=Br.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!Br.isUndefined(s[c])});const u=r.metaTokens,y=r.visitor||f,i=r.dots,l=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&Br.isSpecCompliantForm(a);if(!Br.isFunction(y))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Br.isDate(c))return c.toISOString();if(!n&&Br.isBlob(c))throw new Xn("Blob is not supported. Use a Buffer instead.");return Br.isArrayBuffer(c)||Br.isTypedArray(c)?n&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,s,d){let p=c;if(c&&!d&&typeof c=="object"){if(Br.endsWith(s,"{}"))s=u?s:s.slice(0,-2),c=JSON.stringify(c);else if(Br.isArray(c)&&T8t(c)||(Br.isFileList(c)||Br.endsWith(s,"[]"))&&(p=Br.toArray(c)))return s=xV(s),p.forEach(function(h,g){!(Br.isUndefined(h)||h===null)&&a.append(l===!0?wV([s],g,i):l===null?s:s+"[]",_(h))}),!1}return J6(c)?!0:(a.append(wV(d,s,i),_(c)),!1)}const o=[],m=Object.assign(A8t,{defaultVisitor:f,convertValue:_,isVisitable:J6});function x(c,s){if(!Br.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));o.push(c),Br.forEach(c,function(d,p){(!(Br.isUndefined(d)||d===null)&&y.call(a,d,Br.isString(p)?p.trim():p,s,m))===!0&&x(d,s?s.concat(p):[p])}),o.pop()}}if(!Br.isObject(e))throw new TypeError("data must be an object");return x(e),a}function kV(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Q6(e,a){this._pairs=[],e&&z_(e,this,a)}const CV=Q6.prototype;CV.append=function(e,a){this._pairs.push([e,a])},CV.toString=function(e){const a=e?function(r){return e.call(this,r,kV)}:kV;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function N8t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function EV(e,a,r){if(!a)return e;const u=r&&r.encode||N8t,y=r&&r.serialize;let i;if(y?i=y(a,r):i=Br.isURLSearchParams(a)?a.toString():new Q6(a,r).toString(u),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class B8t{constructor(){this.handlers=[]}use(a,r,u){return this.handlers.push({fulfilled:a,rejected:r,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){Br.forEach(this.handlers,function(r){r!==null&&a(r)})}}const SV=B8t,TV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M8t=typeof URLSearchParams<"u"?URLSearchParams:Q6,I8t=typeof FormData<"u"?FormData:null,O8t=typeof Blob<"u"?Blob:null,F8t={isBrowser:!0,classes:{URLSearchParams:M8t,FormData:I8t,Blob:O8t},protocols:["http","https","file","blob","url","data"]},AV=typeof window<"u"&&typeof document<"u",z8t=(e=>AV&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),P8t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),V8t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AV,hasStandardBrowserEnv:z8t,hasStandardBrowserWebWorkerEnv:P8t},Symbol.toStringTag,{value:"Module"})),Ud={...V8t,...F8t};function L8t(e,a){return z_(e,new Ud.classes.URLSearchParams,Object.assign({visitor:function(r,u,y,i){return Ud.isNode&&Br.isBuffer(r)?(this.append(u,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function R8t(e){return Br.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function D8t(e){const a={},r=Object.keys(e);let u;const y=r.length;let i;for(u=0;u<y;u++)i=r[u],a[i]=e[i];return a}function NV(e){function a(r,u,y,i){let l=r[i++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),_=i>=r.length;return l=!l&&Br.isArray(y)?y.length:l,_?(Br.hasOwnProp(y,l)?y[l]=[y[l],u]:y[l]=u,!n):((!y[l]||!Br.isObject(y[l]))&&(y[l]=[]),a(r,u,y[l],i)&&Br.isArray(y[l])&&(y[l]=D8t(y[l])),!n)}if(Br.isFormData(e)&&Br.isFunction(e.entries)){const r={};return Br.forEachEntry(e,(u,y)=>{a(R8t(u),y,r,0)}),r}return null}function $8t(e,a,r){if(Br.isString(e))try{return(a||JSON.parse)(e),Br.trim(e)}catch(u){if(u.name!=="SyntaxError")throw u}return(r||JSON.stringify)(e)}const e8={transitional:TV,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",u=r.indexOf("application/json")>-1,y=Br.isObject(e);if(y&&Br.isHTMLForm(e)&&(e=new FormData(e)),Br.isFormData(e))return u?JSON.stringify(NV(e)):e;if(Br.isArrayBuffer(e)||Br.isBuffer(e)||Br.isStream(e)||Br.isFile(e)||Br.isBlob(e))return e;if(Br.isArrayBufferView(e))return e.buffer;if(Br.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(y){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L8t(e,this.formSerializer).toString();if((i=Br.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return z_(i?{"files[]":e}:e,l&&new l,this.formSerializer)}}return y||u?(a.setContentType("application/json",!1),$8t(e)):e}],transformResponse:[function(e){const a=this.transitional||e8.transitional,r=a&&a.forcedJSONParsing,u=this.responseType==="json";if(e&&Br.isString(e)&&(r&&!this.responseType||u)){const y=!(a&&a.silentJSONParsing)&&u;try{return JSON.parse(e)}catch(i){if(y)throw i.name==="SyntaxError"?Xn.from(i,Xn.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ud.classes.FormData,Blob:Ud.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Br.forEach(["delete","get","head","post","put","patch"],e=>{e8.headers[e]={}});const t8=e8,j8t=Br.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"]),U8t=e=>{const a={};let r,u,y;return e&&e.split(`
|
|
3564
|
+
`)):Y=R.stylize("[Circular]","special")),E(H)){if(K&&G.match(/^\d+$/))return Y;(H=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=R.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=R.stylize(H,"string"))}return H+": "+Y}function v(R){return Array.isArray(R)}function w(R){return typeof R=="boolean"}function C(R){return R===null}function k(R){return typeof R=="number"}function B(R){return typeof R=="string"}function E(R){return R===void 0}function T(R){return A(R)&&S(R)==="[object RegExp]"}function A(R){return typeof R=="object"&&R!==null}function M(R){return A(R)&&S(R)==="[object Date]"}function N(R){return A(R)&&(S(R)==="[object Error]"||R instanceof Error)}function O(R){return typeof R=="function"}function S(R){return Object.prototype.toString.call(R)}function z(R){return R<10?"0"+R.toString(10):R.toString(10)}l.debuglog=function(R){if(R=R.toUpperCase(),!m[R])if(x.test(R)){var j=_.pid;m[R]=function(){var W=l.format.apply(l,arguments);console.error("%s %d: %s",R,j,W)}}else m[R]=function(){};return m[R]},l.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},l.types=n(41088),l.isArray=v,l.isBoolean=w,l.isNull=C,l.isNullOrUndefined=function(R){return R==null},l.isNumber=k,l.isString=B,l.isSymbol=function(R){return typeof R=="symbol"},l.isUndefined=E,l.isRegExp=T,l.types.isRegExp=T,l.isObject=A,l.isDate=M,l.types.isDate=M,l.isError=N,l.types.isNativeError=N,l.isFunction=O,l.isPrimitive=function(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||R===void 0},l.isBuffer=n(75272);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(R,j){return Object.prototype.hasOwnProperty.call(R,j)}l.log=function(){var R,j;console.log("%s - %s",(j=[z((R=new Date).getHours()),z(R.getMinutes()),z(R.getSeconds())].join(":"),[R.getDate(),I[R.getMonth()],j].join(" ")),l.format.apply(l,arguments))},l.inherits=n(6768),l._extend=function(R,j){if(!j||!A(j))return R;for(var W=Object.keys(j),$=W.length;$--;)R[W[$]]=j[W[$]];return R};var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function D(R,j){if(!R){var W=new Error("Promise was rejected with a falsy value");W.reason=R,R=W}return j(R)}l.promisify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');if(L&&R[L]){var j;if(typeof(j=R[L])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,L,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var W,$,G=new Promise(function(Y,Z){W=Y,$=Z}),K=[],H=0;H<arguments.length;H++)K.push(arguments[H]);K.push(function(Y,Z){Y?$(Y):W(Z)});try{R.apply(this,K)}catch(Y){$(Y)}return G}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),L&&Object.defineProperty(j,L,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,f(R))},l.promisify.custom=L,l.callbackify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var W=[],$=0;$<arguments.length;$++)W.push(arguments[$]);var G=W.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var K=this,H=function(){return G.apply(K,arguments)};R.apply(this,W).then(function(Y){_.nextTick(H.bind(null,null,Y))},function(Y){_.nextTick(D.bind(null,Y,H))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),Object.defineProperties(j,f(R)),j}},5408:function(i,l,n){var _=n(13380);i.exports=function(f){return _("webgl",f)}},96632:function(i,l,n){var _=n(46492),f=n(63436),o=n(57916),m=n(99676),x=n(2304),c=m("Object.prototype.toString"),s=n(46672)(),d=typeof globalThis>"u"?n.g:globalThis,p=f(),h=m("String.prototype.slice"),g=Object.getPrototypeOf,b=m("Array.prototype.indexOf",!0)||function(w,C){for(var k=0;k<w.length;k+=1)if(w[k]===C)return k;return-1},v={__proto__:null};_(p,s&&x&&g?function(w){var C=new d[w];if(Symbol.toStringTag in C){var k=g(C),B=x(k,Symbol.toStringTag);if(!B){var E=g(k);B=x(E,Symbol.toStringTag)}v["$"+w]=o(B.get)}}:function(w){var C=new d[w],k=C.slice||C.set;k&&(v["$"+w]=o(k))}),i.exports=function(w){if(!w||typeof w!="object")return!1;if(!s){var C=h(c(w),8,-1);return b(p,C)>-1?C:C==="Object"&&function(k){var B=!1;return _(v,function(E,T){if(!B)try{E(k),B=h(T,1)}catch{}}),B}(w)}return x?function(k){var B=!1;return _(v,function(E,T){if(!B)try{"$"+E(k)===T&&(B=h(T,1))}catch{}}),B}(w):null}},67020:function(i,l,n){var _=n(38700),f=n(50896),o=_.instance();function m(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var v=g.match(c);return v?v[0]:""}var w=this._validateYear(g),C=g.month(),k=""+this.toChineseMonth(w,C);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(w,C)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(s);return b?b[0]:""}var v=this._validateYear(g),w=g.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(d);return b?b[0]:""}var v=this._validateYear(g),w=g.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},parseMonth:function(g,b){g=this._validateYear(g);var v,w=parseInt(b);if(isNaN(w))b[0]==="闰"&&(v=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),w=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var C=b[b.length-1];v=C==="i"||C==="I"}return this.toMonthIndex(g,w,v)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,v){var w=this.intercalaryMonth(g);if(v&&b!==w||b<1||b>12)throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?!v&&b<=w?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var v=this.intercalaryMonth(g);if(b<0||b>(v?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v?b<v?b+1:b:b+1},intercalaryMonth:function(g){return g=this._validateYear(g),p[g-p[0]]>>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var v=this.intercalaryMonth(g);return!!v&&v===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,v){var w,C=this._validateYear(g,_.local.invalidyear),k=h[C-h[0]],B=k>>9&4095,E=k>>5&15,T=31&k;(w=o.newDate(B,E,T)).add(4-(w.dayOfWeek()||7),"d");var A=this.toJD(g,b,v)-w.toJD();return 1+Math.floor(A/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var v=p[g-p[0]];if(b>(v>>13?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v&1<<12-b?30:29},weekDay:function(g,b,v){return(this.dayOfWeek(g,b,v)||7)<6},toJD:function(g,b,v){var w=this._validate(g,k,v,_.local.invalidDate);g=this._validateYear(w.year()),b=w.month(),v=w.day();var C=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),B=function(E,T,A,M,N){var O,S,z;if(typeof E=="object")S=E,O=T||{};else{var I;if(!(typeof E=="number"&&E>=1888&&E<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof A=="number"&&A>=1&&A<=30))throw new Error("Lunar day outside range 1 - 30");typeof M=="object"?(I=!1,O=M):(I=!!M,O={}),S={year:E,month:T,day:A,isIntercalary:I}}z=S.day-1;var F,L=p[S.year-p[0]],D=L>>13;F=D&&(S.month>D||S.isIntercalary)?S.month:S.month-1;for(var R=0;R<F;R++)z+=L&1<<12-R?30:29;var j=h[S.year-h[0]],W=new Date(j>>9&4095,(j>>5&15)-1,(31&j)+z);return O.year=W.getFullYear(),O.month=1+W.getMonth(),O.day=W.getDate(),O}(g,k,v,C);return o.toJD(B.year,B.month,B.day)},fromJD:function(g){var b=o.fromJD(g),v=function(C,k,B,E){var T,A;if(typeof C=="object")T=C,A=k||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof B=="number"&&B>=1&&B<=31))throw new Error("Solar day outside range 1 - 31");T={year:C,month:k,day:B},A={}}var M=h[T.year-h[0]],N=T.year<<9|T.month<<5|T.day;A.year=N>=M?T.year:T.year-1,M=h[A.year-h[0]];var O,S=new Date(M>>9&4095,(M>>5&15)-1,31&M),z=new Date(T.year,T.month-1,T.day);O=Math.round((z-S)/864e5);var I,F=p[A.year-p[0]];for(I=0;I<13;I++){var L=F&1<<12-I?30:29;if(O<L)break;O-=L}var D=F>>13;return!D||I<D?(A.isIntercalary=!1,A.month=1+I):I===D?(A.isIntercalary=!0,A.month=I):(A.isIntercalary=!1,A.month=I),A.day=1+O,A}(b.year(),b.month(),b.day()),w=this.toMonthIndex(v.year,v.month,v.isIntercalary);return this.newDate(v.year,w,v.day)},fromString:function(g){var b=g.match(x),v=this._validateYear(+b[1]),w=+b[2],C=!!b[3],k=this.toMonthIndex(v,w,C),B=+b[4];return this.newDate(v,k,B)},add:function(g,b,v){var w=g.year(),C=g.month(),k=this.isIntercalaryMonth(w,C),B=this.toChineseMonth(w,C),E=Object.getPrototypeOf(m.prototype).add.call(this,g,b,v);if(v==="y"){var T=E.year(),A=E.month(),M=this.isIntercalaryMonth(T,B),N=k&&M?this.toMonthIndex(T,B,!0):this.toMonthIndex(T,B,!1);N!==A&&E.month(N)}return E}});var x=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,c=/^\d?\d[iI]?/m,s=/^闰?十?[一二三四五六七八九]?月/m,d=/^闰?十?[一二三四五六七八九]?/m;_.calendars.chinese=m;var p=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return(m=s.year())<0&&m++,s.day()+30*(s.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(x/30)+1,d=x-30*(s-1)+1;return this.newDate(c,s,d)}}),_.calendars.coptic=o},55668:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),!1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),13},daysInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),400},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/8)+1},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(x,c,s){return(this._validate(x,c,s,_.local.invalidDate).day()+1)%8},weekDay:function(x,c,s){var d=this.dayOfWeek(x,c,s);return d>=2&&d<=6},extraInfo:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return{century:m[Math.floor((d.year()-1)/100)+1]||""}},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return x=d.year()+(d.year()<0?1:0),c=d.month(),(s=d.day())+(c>1?16:0)+(c>2?32*(c-2):0)+400*(x-1)+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x+.5)-Math.floor(this.jdEpoch)-1;var c=Math.floor(x/400)+1;x-=400*(c-1),x+=x>15?16:0;var s=Math.floor(x/32)+1,d=x-32*(s-1)+1;return this.newDate(c<=0?c-1:c,s,d)}});var m={20:"Fruitbat",21:"Anchovy"};_.calendars.discworld=o},65168:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return(m=s.year())<0&&m++,s.day()+30*(s.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(x/30)+1,d=x-30*(s-1)+1;return this.newDate(c,s,d)}}),_.calendars.ethiopian=o},2084:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(x){return m(7*(x=x<0?x+1:x)+1,19)<7},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),this._leapYear(x.year?x.year():x)?13:12},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(x){return x=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear).year(),this.toJD(x===-1?1:x+1,7,1)-this.toJD(x,7,1)},daysInMonth:function(x,c){return x.year&&(c=x.month(),x=x.year()),this._validate(x,c,this.minDay,_.local.invalidMonth),c===12&&this.leapYear(x)||c===8&&m(this.daysInYear(x),10)===5?30:c===9&&m(this.daysInYear(x),10)===3?29:this.daysPerMonth[c-1]},weekDay:function(x,c,s){return this.dayOfWeek(x,c,s)!==6},extraInfo:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return{yearType:(this.leapYear(d)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(d)%10-3]}},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);x=d.year(),c=d.month(),s=d.day();var p=x<=0?x+1:x,h=this.jdEpoch+this._delay1(p)+this._delay2(p)+s+1;if(c<7){for(var g=7;g<=this.monthsInYear(x);g++)h+=this.daysInMonth(x,g);for(g=1;g<c;g++)h+=this.daysInMonth(x,g)}else for(g=7;g<c;g++)h+=this.daysInMonth(x,g);return h},_delay1:function(x){var c=Math.floor((235*x-234)/19),s=12084+13753*c,d=29*c+Math.floor(s/25920);return m(3*(d+1),7)<3&&d++,d},_delay2:function(x){var c=this._delay1(x-1),s=this._delay1(x);return this._delay1(x+1)-s==356?2:s-c==382?1:0},fromJD:function(x){x=Math.floor(x)+.5;for(var c=Math.floor(98496*(x-this.jdEpoch)/35975351)-1;x>=this.toJD(c===-1?1:c+1,7,1);)c++;for(var s=x<this.toJD(c,1,1)?7:1;x>this.toJD(c,s,this.daysInMonth(c,s));)s++;var d=x-this.toJD(c,s,1)+1;return this.newDate(c,s,d)}}),_.calendars.hebrew=o},26368:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(m){return(11*this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year()+14)%30<11},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(m){return this.leapYear(m)?355:354},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==5},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return m=s.year(),x=s.month(),m=m<=0?m+1:m,(c=s.day())+Math.ceil(29.5*(x-1))+354*(m-1)+Math.floor((3+11*m)/30)+this.jdEpoch-1},fromJD:function(m){m=Math.floor(m)+.5;var x=Math.floor((30*(m-this.jdEpoch)+10646)/10631);x=x<=0?x-1:x;var c=Math.min(12,Math.ceil((m-29-this.toJD(x,1,1))/29.5)+1),s=m-this.toJD(x,c,1)+1;return this.newDate(x,c,s)}}),_.calendars.islamic=o},24747:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()<0?x.year()+1:x.year())%4==0},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(4-(s.dayOfWeek()||7),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);return m=s.year(),x=s.month(),c=s.day(),m<0&&m++,x<=2&&(m--,x+=12),Math.floor(365.25*(m+4716))+Math.floor(30.6001*(x+1))+c-1524.5},fromJD:function(m){var x=Math.floor(m+.5)+1524,c=Math.floor((x-122.1)/365.25),s=Math.floor(365.25*c),d=Math.floor((x-s)/30.6001),p=d-Math.floor(d<14?1:13),h=c-Math.floor(p>2?4716:4715),g=x-s-Math.floor(30.6001*d);return h<=0&&h--,this.newDate(h,p,g)}}),_.calendars.julian=o},65616:function(i,l,n){var _=n(38700),f=n(50896);function o(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}function m(c,s){return c-s*Math.floor(c/s)}function x(c,s){return m(c-1,s)+1}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),!1},formatYear:function(c){c=this._validate(c,this.minMonth,this.minDay,_.local.invalidYear).year();var s=Math.floor(c/400);return c%=400,c+=c<0?400:0,s+"."+Math.floor(c/20)+"."+c%20},forYear:function(c){if((c=c.split(".")).length<3)throw"Invalid Mayan year";for(var s=0,d=0;d<c.length;d++){var p=parseInt(c[d],10);if(Math.abs(p)>19||d>0&&p<0)throw"Invalid Mayan year";s=20*s+p}return s},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),18},weekOfYear:function(c,s,d){return this._validate(c,s,d,_.local.invalidDate),0},daysInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),360},daysInMonth:function(c,s){return this._validate(c,s,this.minDay,_.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(c,s,d){return this._validate(c,s,d,_.local.invalidDate).day()},weekDay:function(c,s,d){return this._validate(c,s,d,_.local.invalidDate),!0},extraInfo:function(c,s,d){var p=this._validate(c,s,d,_.local.invalidDate).toJD(),h=this._toHaab(p),g=this._toTzolkin(p);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(c){var s=m(8+(c-=this.jdEpoch)+340,365);return[Math.floor(s/20)+1,m(s,20)]},_toTzolkin:function(c){return[x(20+(c-=this.jdEpoch),20),x(c+4,13)]},toJD:function(c,s,d){var p=this._validate(c,s,d,_.local.invalidDate);return p.day()+20*p.month()+360*p.year()+this.jdEpoch},fromJD:function(c){c=Math.floor(c)+.5-this.jdEpoch;var s=Math.floor(c/360);c%=360,c+=c<0?360:0;var d=Math.floor(c/20),p=c%20;return this.newDate(s,d,p)}}),_.calendars.mayan=o},30632:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar;var m=_.instance("gregorian");f(o.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear);return m.leapYear(c.year()+(c.year()<1?1:0)+1469)},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(1-(d.dayOfWeek()||7),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return(this.dayOfWeek(x,c,s)||7)<6},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidMonth);(x=d.year())<0&&x++;for(var p=d.day(),h=1;h<d.month();h++)p+=this.daysPerMonth[h-1];return p+m.toJD(x+1468,3,13)},fromJD:function(x){x=Math.floor(x+.5);for(var c=Math.floor((x-(this.jdEpoch-1))/366);x>=this.toJD(c+1,1,1);)c++;for(var s=x-Math.floor(this.toJD(c,1,1)+.5)+1,d=1;s>this.daysInMonth(c,d);)s-=this.daysInMonth(c,d),d++;return this.newDate(c,d,s)}}),_.calendars.nanakshahi=o},73040:function(i,l,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(m){return this.daysInYear(m)!==this.daysPerYear},weekOfYear:function(m,x,c){var s=this.newDate(m,x,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(m){if(m=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[m]===void 0)return this.daysPerYear;for(var x=0,c=this.minMonth;c<=12;c++)x+=this.NEPALI_CALENDAR_DATA[m][c];return x},daysInMonth:function(m,x){return m.year&&(x=m.month(),m=m.year()),this._validate(m,x,this.minDay,_.local.invalidMonth),this.NEPALI_CALENDAR_DATA[m]===void 0?this.daysPerMonth[x-1]:this.NEPALI_CALENDAR_DATA[m][x]},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==6},toJD:function(m,x,c){var s=this._validate(m,x,c,_.local.invalidDate);m=s.year(),x=s.month(),c=s.day();var d=_.instance(),p=0,h=x,g=m;this._createMissingCalendarData(m);var b=m-(h>9||h===9&&c>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(x!==9&&(p=c,h--);h!==9;)h<=0&&(h=12,g--),p+=this.NEPALI_CALENDAR_DATA[g][h],h--;return x===9?(p+=c-this.NEPALI_CALENDAR_DATA[g][0])<0&&(p+=d.daysInYear(b)):p+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],d.newDate(b,1,1).add(p,"d").toJD()},fromJD:function(m){var x=_.instance().fromJD(m),c=x.year(),s=x.dayOfYear(),d=c+56;this._createMissingCalendarData(d);for(var p=9,h=this.NEPALI_CALENDAR_DATA[d][0],g=this.NEPALI_CALENDAR_DATA[d][p]-h+1;s>g;)++p>12&&(p=1,d++),g+=this.NEPALI_CALENDAR_DATA[d][p];var b=this.NEPALI_CALENDAR_DATA[d][p]-(g-s);return this.newDate(d,p,b)},_createMissingCalendarData:function(m){var x=this.daysPerMonth.slice(0);x.unshift(17);for(var c=m-1;c<m+2;c++)this.NEPALI_CALENDAR_DATA[c]===void 0&&(this.NEPALI_CALENDAR_DATA[c]=x)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),_.calendars.nepali=o},1104:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return 682*((c.year()-(c.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-(d.dayOfWeek()+1)%7,"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return this.dayOfWeek(x,c,s)!==5},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);x=d.year(),c=d.month(),s=d.day();var p=x-(x>=0?474:473),h=474+m(p,2820);return s+(c<=7?31*(c-1):30*(c-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(p/2820)+this.jdEpoch-1},fromJD:function(x){var c=(x=Math.floor(x)+.5)-this.toJD(475,1,1),s=Math.floor(c/1029983),d=m(c,1029983),p=2820;if(d!==1029982){var h=Math.floor(d/366),g=m(d,366);p=Math.floor((2134*h+2816*g+2815)/1028522)+h+1}var b=p+2820*s+474;b=b<=0?b-1:b;var v=x-this.toJD(b,1,1)+1,w=v<=186?Math.ceil(v/31):Math.ceil((v-6)/30),C=x-this.toJD(b,w,1)+1;return this.newDate(b,w,C)}}),_.calendars.persian=o,_.calendars.jalali=o},51456:function(i,l,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,s){var d=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(d.year()),o.weekOfYear(x,d.month(),d.day())},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return(this.dayOfWeek(x,c,s)||7)<6},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return x=this._t2gYear(d.year()),o.toJD(x,d.month(),d.day())},fromJD:function(x){var c=o.fromJD(x),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)},_g2tYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)}}),_.calendars.taiwan=m},4592:function(i,l,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,s){var d=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(d.year()),o.weekOfYear(x,d.month(),d.day())},daysInMonth:function(x,c){var s=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(x,c,s){return(this.dayOfWeek(x,c,s)||7)<6},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate);return x=this._t2gYear(d.year()),o.toJD(x,d.month(),d.day())},fromJD:function(x){var c=o.fromJD(x),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)},_g2tYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)}}),_.calendars.thai=m},45348:function(i,l,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this.daysInYear(c.year())===355},weekOfYear:function(x,c,s){var d=this.newDate(x,c,s);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(x){for(var c=0,s=1;s<=12;s++)c+=this.daysInMonth(x,s);return c},daysInMonth:function(x,c){for(var s=this._validate(x,c,this.minDay,_.local.invalidMonth).toJD()-24e5+.5,d=0,p=0;p<m.length;p++){if(m[p]>s)return m[d]-m[d-1];d++}return 30},weekDay:function(x,c,s){return this.dayOfWeek(x,c,s)!==5},toJD:function(x,c,s){var d=this._validate(x,c,s,_.local.invalidDate),p=12*(d.year()-1)+d.month()-15292;return d.day()+m[p-1]-1+24e5-.5},fromJD:function(x){for(var c=x-24e5+.5,s=0,d=0;d<m.length&&!(m[d]>c);d++)s++;var p=s+15292,h=Math.floor((p-1)/12),g=h+1,b=p-12*h,v=c-m[s-1]+1;return this.newDate(g,b,v)},isValid:function(x,c,s){var d=_.baseCalendar.prototype.isValid.apply(this,arguments);return d&&(d=(x=x.year!=null?x.year:x)>=1276&&x<=1500),d},_validate:function(x,c,s,d){var p=_.baseCalendar.prototype._validate.apply(this,arguments);if(p.year<1276||p.year>1500)throw d.replace(/\{0\}/,this.local.name);return p}}),_.calendars.ummalqura=o;var m=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(i,l,n){var _=n(50896);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function o(d,p,h,g){if(this._calendar=d,this._year=p,this._month=h,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function m(d,p){return"000000".substring(0,p-(d=""+d).length)+d}function x(){this.shortYearCutoff="+10"}function c(d){this.local=this.regionalOptions[d]||this.regionalOptions[""]}_(f.prototype,{instance:function(d,p){d=(d||"gregorian").toLowerCase(),p=p||"";var h=this._localCals[d+"-"+p];if(!h&&this.calendars[d]&&(h=new this.calendars[d](p),this._localCals[d+"-"+p]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,d);return h},newDate:function(d,p,h,g,b){return(g=(d!=null&&d.year?d.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(d,p,h)},substituteDigits:function(d){return function(p){return(p+"").replace(/[0-9]/g,function(h){return d[h]})}},substituteChineseDigits:function(d,p){return function(h){for(var g="",b=0;h>0;){var v=h%10;g=(v===0?"":d[v]+p[b])+g,b++,h=Math.floor(h/10)}return g.indexOf(d[1]+p[1])===0&&(g=g.substr(1)),g||d[0]}}}),_(o.prototype,{newDate:function(d,p,h){return this._calendar.newDate(d??this,p,h)},year:function(d){return arguments.length===0?this._year:this.set(d,"y")},month:function(d){return arguments.length===0?this._month:this.set(d,"m")},day:function(d){return arguments.length===0?this._day:this.set(d,"d")},date:function(d,p,h){if(!this._calendar.isValid(d,p,h))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=d,this._month=p,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(d,p){return this._calendar.add(this,d,p)},set:function(d,p){return this._calendar.set(this,d,p)},compareTo:function(d){if(this._calendar.name!==d._calendar.name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,d._calendar.local.name);var p=this._year!==d._year?this._year-d._year:this._month!==d._month?this.monthOfYear()-d.monthOfYear():this._day-d._day;return p===0?0:p<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(d){return this._calendar.fromJD(d)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(d){return this._calendar.fromJSDate(d)},toString:function(){return(this.year()<0?"-":"")+m(Math.abs(this.year()),4)+"-"+m(this.month(),2)+"-"+m(this.day(),2)}}),_(x.prototype,{_validateLevel:0,newDate:function(d,p,h){return d==null?this.today():(d.year&&(this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate),h=d.day(),p=d.month(),d=d.year()),new o(this,d,p,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(p.year()<0?"-":"")+m(Math.abs(p.year()),4)},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),12},monthOfYear:function(d,p){var h=this._validate(d,p,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(d,p){var h=(p+this.firstMonth-2*this.minMonth)%this.monthsInYear(d)+this.minMonth;return this._validate(d,h,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth),h},daysInYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return this.leapYear(p)?366:365},dayOfYear:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(d,p,h){return this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate),{}},add:function(d,p,h){return this._validate(d,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate),this._correctAdd(d,this._add(d,p,h),p,h)},_add:function(d,p,h){if(this._validateLevel++,h==="d"||h==="w"){var g=d.toJD()+p*(h==="w"?this.daysInWeek():1),b=d.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var v=d.year()+(h==="y"?p:0),w=d.monthOfYear()+(h==="m"?p:0);b=d.day(),h==="y"?(d.month()!==this.fromMonthOfYear(v,w)&&(w=this.newDate(v,d.month(),this.minDay).monthOfYear()),w=Math.min(w,this.monthsInYear(v)),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w)))):h==="m"&&(function(k){for(;w<k.minMonth;)v--,w+=k.monthsInYear(v);for(var B=k.monthsInYear(v);w>B-1+k.minMonth;)v++,w-=B,B=k.monthsInYear(v)}(this),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w))));var C=[v,this.fromMonthOfYear(v,w),b];return this._validateLevel--,C}catch(k){throw this._validateLevel--,k}},_correctAdd:function(d,p,h,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||p[0]!==0&&d.year()>0==p[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],v=h<0?-1:1;p=this._add(d,h*b[0]+v*b[1],b[2])}return d.date(p[0],p[1],p[2])},set:function(d,p,h){this._validate(d,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate);var g=h==="y"?p:d.year(),b=h==="m"?p:d.month(),v=h==="d"?p:d.day();return h!=="y"&&h!=="m"||(v=Math.min(v,this.daysInMonth(g,b))),d.date(g,b,v)},isValid:function(d,p,h){this._validateLevel++;var g=this.hasYearZero||d!==0;if(g){var b=this.newDate(d,p,this.minDay);g=p>=this.minMonth&&p-this.minMonth<this.monthsInYear(b)&&h>=this.minDay&&h-this.minDay<this.daysInMonth(b)}return this._validateLevel--,g},toJSDate:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);return s.instance().fromJD(this.toJD(g)).toJSDate()},fromJSDate:function(d){return this.fromJD(s.instance().fromJSDate(d).toJD())},_validate:function(d,p,h,g){if(d.year){if(this._validateLevel===0&&this.name!==d.calendar().name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,d.calendar().local.name);return d}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(d,p,h))throw g.replace(/\{0\}/,this.local.name);var b=this.newDate(d,p,h);return this._validateLevel--,b}catch(v){throw this._validateLevel--,v}}}),c.prototype=new x,_(c.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(d=p.year()+(p.year()<0?1:0))%4==0&&(d%100!=0||d%400==0)},weekOfYear:function(d,p,h){var g=this.newDate(d,p,h);return g.add(4-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(d,p){var h=this._validate(d,p,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(d,p,h){return(this.dayOfWeek(d,p,h)||7)<6},toJD:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate);d=g.year(),p=g.month(),h=g.day(),d<0&&d++,p<3&&(p+=12,d--);var b=Math.floor(d/100),v=2-b+Math.floor(b/4);return Math.floor(365.25*(d+4716))+Math.floor(30.6001*(p+1))+h+v-1524.5},fromJD:function(d){var p=Math.floor(d+.5),h=Math.floor((p-186721625e-2)/36524.25),g=1524+(h=p+1+h-Math.floor(h/4)),b=Math.floor((g-122.1)/365.25),v=Math.floor(365.25*b),w=Math.floor((g-v)/30.6001),C=g-v-Math.floor(30.6001*w),k=w-(w>13.5?13:1),B=b-(k>2.5?4716:4715);return B<=0&&B--,this.newDate(B,k,C)},toJSDate:function(d,p,h){var g=this._validate(d,p,h,s.local.invalidDate||s.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(d){return this.newDate(d.getFullYear(),d.getMonth()+1,d.getDate())}});var s=i.exports=new f;s.cdate=o,s.baseCalendar=x,s.calendars.gregorian=c},15168:function(i,l,n){var _=n(50896),f=n(38700);_(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],_(f.cdate.prototype,{formatDate:function(o,m){return typeof o!="string"&&(m=o,o=""),this._calendar.formatDate(o||"",this,m)}}),_(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(o,m,x){if(typeof o!="string"&&(x=m,m=o,o=""),!m)return"";if(m.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;o=o||this.local.dateFormat;for(var c,s,d,p=(x=x||{}).dayNamesShort||this.local.dayNamesShort,h=x.dayNames||this.local.dayNames,g=x.monthNumbers||this.local.monthNumbers,b=x.monthNamesShort||this.local.monthNamesShort,v=x.monthNames||this.local.monthNames,w=(x.calculateWeek||this.local.calculateWeek,function(S,z){for(var I=1;O+I<o.length&&o.charAt(O+I)===S;)I++;return O+=I-1,Math.floor(I/(z||1))>1}),C=function(S,z,I,F){var L=""+z;if(w(S,F))for(;L.length<I;)L="0"+L;return L},k=this,B=function(S){return typeof g=="function"?g.call(k,S,w("m")):A(C("m",S.month(),2))},E=function(S,z){return z?typeof v=="function"?v.call(k,S):v[S.month()-k.minMonth]:typeof b=="function"?b.call(k,S):b[S.month()-k.minMonth]},T=this.local.digits,A=function(S){return x.localNumbers&&T?T(S):S},M="",N=!1,O=0;O<o.length;O++)if(N)o.charAt(O)!=="'"||w("'")?M+=o.charAt(O):N=!1;else switch(o.charAt(O)){case"d":M+=A(C("d",m.day(),2));break;case"D":M+=(c=m.dayOfWeek(),s=p,d=h,w("D")?d[c]:s[c]);break;case"o":M+=C("o",m.dayOfYear(),3);break;case"w":M+=C("w",m.weekOfYear(),2);break;case"m":M+=B(m);break;case"M":M+=E(m,w("M"));break;case"y":M+=w("y",2)?m.year():(m.year()%100<10?"0":"")+m.year()%100;break;case"Y":w("Y",2),M+=m.formatYear();break;case"J":M+=m.toJD();break;case"@":M+=(m.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":M+=(m.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":w("'")?M+="'":N=!0;break;default:M+=o.charAt(O)}return M},parseDate:function(o,m,x){if(m==null)throw f.local.invalidArguments||f.regionalOptions[""].invalidArguments;if((m=typeof m=="object"?m.toString():m+"")==="")return null;o=o||this.local.dateFormat;var c=(x=x||{}).shortYearCutoff||this.shortYearCutoff;c=typeof c!="string"?c:this.today().year()%100+parseInt(c,10);for(var s=x.dayNamesShort||this.local.dayNamesShort,d=x.dayNames||this.local.dayNames,p=x.parseMonth||this.local.parseMonth,h=x.monthNumbers||this.local.monthNumbers,g=x.monthNamesShort||this.local.monthNamesShort,b=x.monthNames||this.local.monthNames,v=-1,w=-1,C=-1,k=-1,B=-1,E=!1,T=!1,A=function(j,W){for(var $=1;L+$<o.length&&o.charAt(L+$)===j;)$++;return L+=$-1,Math.floor($/(W||1))>1},M=function(j,W){var $=A(j,W),G=[2,3,$?4:2,$?4:2,10,11,20]["oyYJ@!".indexOf(j)+1],K=new RegExp("^-?\\d{1,"+G+"}"),H=m.substring(F).match(K);if(!H)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=H[0].length,parseInt(H[0],10)},N=this,O=function(){if(typeof h=="function"){A("m");var j=h.call(N,m.substring(F));return F+=j.length,j}return M("m")},S=function(j,W,$,G){for(var K=A(j,G)?$:W,H=0;H<K.length;H++)if(m.substr(F,K[H].length).toLowerCase()===K[H].toLowerCase())return F+=K[H].length,H+N.minMonth;throw(f.local.unknownNameAt||f.regionalOptions[""].unknownNameAt).replace(/\{0\}/,F)},z=function(){if(typeof b=="function"){var j=A("M")?b.call(N,m.substring(F)):g.call(N,m.substring(F));return F+=j.length,j}return S("M",g,b)},I=function(){if(m.charAt(F)!==o.charAt(L))throw(f.local.unexpectedLiteralAt||f.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,F);F++},F=0,L=0;L<o.length;L++)if(T)o.charAt(L)!=="'"||A("'")?I():T=!1;else switch(o.charAt(L)){case"d":k=M("d");break;case"D":S("D",s,d);break;case"o":B=M("o");break;case"w":M("w");break;case"m":C=O();break;case"M":C=z();break;case"y":var D=L;E=!A("y",2),L=D,w=M("y",2);break;case"Y":w=M("Y",2);break;case"J":v=M("J")+.5,m.charAt(F)==="."&&(F++,M("J"));break;case"@":v=M("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":v=M("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":F=m.length;break;case"'":A("'")?I():T=!0;break;default:I()}if(F<m.length)throw f.local.unexpectedText||f.regionalOptions[""].unexpectedText;if(w===-1?w=this.today().year():w<100&&E&&(w+=c===-1?1900:this.today().year()-this.today().year()%100-(w<=c?0:100)),typeof C=="string"&&(C=p.call(this,w,C)),B>-1){C=1,k=B;for(var R=this.daysInMonth(w,C);k>R;R=this.daysInMonth(w,C))C++,k-=R}return v>-1?this.fromJD(v):this.newDate(w,C,k)},determineDate:function(o,m,x,c,s){x&&typeof x!="object"&&(s=c,c=x,x=null),typeof c!="string"&&(s=c,c="");var d=this;return m=m?m.newDate():null,o==null?m:typeof o=="string"?function(p){try{return d.parseDate(c,p,s)}catch{}for(var h=((p=p.toLowerCase()).match(/^c/)&&x?x.newDate():null)||d.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(p);b;)h.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(p);return h}(o):typeof o=="number"?isNaN(o)||o===1/0||o===-1/0?m:d.today().add(o,"d"):d.newDate(o)}})},21576:function(){},19768:function(){},63436:function(i,l,n){var _=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;i.exports=function(){for(var o=[],m=0;m<_.length;m++)typeof f[_[m]]=="function"&&(o[o.length]=_[m]);return o}},67756:function(i,l,n){function _(ge,ve,we){ge.prototype=ve.prototype=we,we.constructor=ge}function f(ge,ve){var we=Object.create(ge.prototype);for(var Se in ve)we[Se]=ve[Se];return we}function o(){}n.d(l,{qy:function(){return fe},Gz:function(){return ie}});var m=.7,x=1/m,c="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",p=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\(".concat(c,",").concat(c,",").concat(c,"\\)$")),g=new RegExp("^rgb\\(".concat(d,",").concat(d,",").concat(d,"\\)$")),b=new RegExp("^rgba\\(".concat(c,",").concat(c,",").concat(c,",").concat(s,"\\)$")),v=new RegExp("^rgba\\(".concat(d,",").concat(d,",").concat(d,",").concat(s,"\\)$")),w=new RegExp("^hsl\\(".concat(s,",").concat(d,",").concat(d,"\\)$")),C=new RegExp("^hsla\\(".concat(s,",").concat(d,",").concat(d,",").concat(s,"\\)$")),k={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function T(ge){var ve,we;return ge=(ge+"").trim().toLowerCase(),(ve=p.exec(ge))?(we=ve[1].length,ve=parseInt(ve[1],16),we===6?A(ve):we===3?new O(ve>>8&15|ve>>4&240,ve>>4&15|240&ve,(15&ve)<<4|15&ve,1):we===8?M(ve>>24&255,ve>>16&255,ve>>8&255,(255&ve)/255):we===4?M(ve>>12&15|ve>>8&240,ve>>8&15|ve>>4&240,ve>>4&15|240&ve,((15&ve)<<4|15&ve)/255):null):(ve=h.exec(ge))?new O(ve[1],ve[2],ve[3],1):(ve=g.exec(ge))?new O(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,1):(ve=b.exec(ge))?M(ve[1],ve[2],ve[3],ve[4]):(ve=v.exec(ge))?M(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,ve[4]):(ve=w.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,1):(ve=C.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,ve[4]):k.hasOwnProperty(ge)?A(k[ge]):ge==="transparent"?new O(NaN,NaN,NaN,0):null}function A(ge){return new O(ge>>16&255,ge>>8&255,255&ge,1)}function M(ge,ve,we,Se){return Se<=0&&(ge=ve=we=NaN),new O(ge,ve,we,Se)}function N(ge,ve,we,Se){return arguments.length===1?((ke=ge)instanceof o||(ke=T(ke)),ke?new O((ke=ke.rgb()).r,ke.g,ke.b,ke.opacity):new O):new O(ge,ve,we,Se??1);var ke}function O(ge,ve,we,Se){this.r=+ge,this.g=+ve,this.b=+we,this.opacity=+Se}function S(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b))}function z(){var ge=I(this.opacity);return"".concat(ge===1?"rgb(":"rgba(").concat(F(this.r),", ").concat(F(this.g),", ").concat(F(this.b)).concat(ge===1?")":", ".concat(ge,")"))}function I(ge){return isNaN(ge)?1:Math.max(0,Math.min(1,ge))}function F(ge){return Math.max(0,Math.min(255,Math.round(ge)||0))}function L(ge){return((ge=F(ge))<16?"0":"")+ge.toString(16)}function D(ge,ve,we,Se){return Se<=0?ge=ve=we=NaN:we<=0||we>=1?ge=ve=NaN:ve<=0&&(ge=NaN),new j(ge,ve,we,Se)}function R(ge){if(ge instanceof j)return new j(ge.h,ge.s,ge.l,ge.opacity);if(ge instanceof o||(ge=T(ge)),!ge)return new j;if(ge instanceof j)return ge;var ve=(ge=ge.rgb()).r/255,we=ge.g/255,Se=ge.b/255,ke=Math.min(ve,we,Se),xe=Math.max(ve,we,Se),Ae=NaN,Te=xe-ke,he=(xe+ke)/2;return Te?(Ae=ve===xe?(we-Se)/Te+6*(we<Se):we===xe?(Se-ve)/Te+2:(ve-we)/Te+4,Te/=he<.5?xe+ke:2-xe-ke,Ae*=60):Te=he>0&&he<1?0:Ae,new j(Ae,Te,he,ge.opacity)}function j(ge,ve,we,Se){this.h=+ge,this.s=+ve,this.l=+we,this.opacity=+Se}function W(ge){return(ge=(ge||0)%360)<0?ge+360:ge}function $(ge){return Math.max(0,Math.min(1,ge||0))}function G(ge,ve,we){return 255*(ge<60?ve+(we-ve)*ge/60:ge<180?we:ge<240?ve+(we-ve)*(240-ge)/60:ve)}_(o,T,{copy:function(ge){return Object.assign(new this.constructor,this,ge)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:E,toString:E}),_(O,N,f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},rgb:function(){return this},clamp:function(){return new O(F(this.r),F(this.g),F(this.b),I(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b)).concat(L(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:z,toString:z})),_(j,function(ge,ve,we,Se){return arguments.length===1?R(ge):new j(ge,ve,we,Se??1)},f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new j(this.h,this.s,this.l*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new j(this.h,this.s,this.l*ge,this.opacity)},rgb:function(){var ge=this.h%360+360*(this.h<0),ve=isNaN(ge)||isNaN(this.s)?0:this.s,we=this.l,Se=we+(we<.5?we:1-we)*ve,ke=2*we-Se;return new O(G(ge>=240?ge-240:ge+120,ke,Se),G(ge,ke,Se),G(ge<120?ge+240:ge-120,ke,Se),this.opacity)},clamp:function(){return new j(W(this.h),$(this.s),$(this.l),I(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var ge=I(this.opacity);return"".concat(ge===1?"hsl(":"hsla(").concat(W(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(ge===1?")":", ".concat(ge,")"))}}));var K=function(ge){return function(){return ge}};function H(ge,ve){var we=ve-ge;return we?function(Se,ke){return function(xe){return Se+xe*ke}}(ge,we):K(isNaN(ge)?ve:ge)}var Y=function ge(ve){var we=function(ke){return(ke=+ke)==1?H:function(xe,Ae){return Ae-xe?function(Te,he,pe){return Te=Math.pow(Te,pe),he=Math.pow(he,pe)-Te,pe=1/pe,function(_e){return Math.pow(Te+_e*he,pe)}}(xe,Ae,ke):K(isNaN(xe)?Ae:xe)}}(ve);function Se(ke,xe){var Ae=we((ke=N(ke)).r,(xe=N(xe)).r),Te=we(ke.g,xe.g),he=we(ke.b,xe.b),pe=H(ke.opacity,xe.opacity);return function(_e){return ke.r=Ae(_e),ke.g=Te(_e),ke.b=he(_e),ke.opacity=pe(_e),ke+""}}return Se.gamma=ge,Se}(1);function Z(ge,ve){var we,Se=ve?ve.length:0,ke=ge?Math.min(Se,ge.length):0,xe=new Array(ke),Ae=new Array(Se);for(we=0;we<ke;++we)xe[we]=fe(ge[we],ve[we]);for(;we<Se;++we)Ae[we]=ve[we];return function(Te){for(we=0;we<ke;++we)Ae[we]=xe[we](Te);return Ae}}function le(ge,ve){var we=new Date;return ge=+ge,ve=+ve,function(Se){return we.setTime(ge*(1-Se)+ve*Se),we}}function ie(ge,ve){return ge=+ge,ve=+ve,function(we){return ge*(1-we)+ve*we}}function ne(ge){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ne(ge)}function re(ge,ve){var we,Se={},ke={};for(we in ge!==null&&ne(ge)==="object"||(ge={}),ve!==null&&ne(ve)==="object"||(ve={}),ve)we in ge?Se[we]=fe(ge[we],ve[we]):ke[we]=ve[we];return function(xe){for(we in Se)ke[we]=Se[we](xe);return ke}}var Q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=new RegExp(Q.source,"g");function se(ge,ve){var we,Se,ke,xe=Q.lastIndex=ee.lastIndex=0,Ae=-1,Te=[],he=[];for(ge+="",ve+="";(we=Q.exec(ge))&&(Se=ee.exec(ve));)(ke=Se.index)>xe&&(ke=ve.slice(xe,ke),Te[Ae]?Te[Ae]+=ke:Te[++Ae]=ke),(we=we[0])===(Se=Se[0])?Te[Ae]?Te[Ae]+=Se:Te[++Ae]=Se:(Te[++Ae]=null,he.push({i:Ae,x:ie(we,Se)})),xe=ee.lastIndex;return xe<ve.length&&(ke=ve.slice(xe),Te[Ae]?Te[Ae]+=ke:Te[++Ae]=ke),Te.length<2?he[0]?function(pe){return function(_e){return pe(_e)+""}}(he[0].x):function(pe){return function(){return pe}}(ve):(ve=he.length,function(pe){for(var _e,Oe=0;Oe<ve;++Oe)Te[(_e=he[Oe]).i]=_e.x(pe);return Te.join("")})}function de(ge,ve){ve||(ve=[]);var we,Se=ge?Math.min(ve.length,ge.length):0,ke=ve.slice();return function(xe){for(we=0;we<Se;++we)ke[we]=ge[we]*(1-xe)+ve[we]*xe;return ke}}function ue(ge){return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ue(ge)}function fe(ge,ve){var we,Se,ke=ue(ve);return ve==null||ke==="boolean"?K(ve):(ke==="number"?ie:ke==="string"?(we=T(ve))?(ve=we,Y):se:ve instanceof T?Y:ve instanceof Date?le:(Se=ve,!ArrayBuffer.isView(Se)||Se instanceof DataView?Array.isArray(ve)?Z:typeof ve.valueOf!="function"&&typeof ve.toString!="function"||isNaN(ve)?re:ie:de))(ge,ve)}},30584:function(i){i.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},7294:function(i){i.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},47916:function(i){i.exports=JSON.parse('["normal","italic","oblique"]')},2904:function(i){i.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},68194:function(i){i.exports=JSON.parse('["inherit","initial","unset"]')},3748:function(i){i.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')}},u={};function y(i){var l=u[i];if(l!==void 0)return l.exports;var n=u[i]={exports:{}};return r[i].call(n.exports,n,n.exports,y),n.exports}return y.n=function(i){var l=i&&i.__esModule?function(){return i.default}:function(){return i};return y.d(l,{a:l}),l},y.d=function(i,l){for(var n in l)y.o(l,n)&&!y.o(i,n)&&Object.defineProperty(i,n,{enumerable:!0,get:l[n]})},y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),y.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)},y.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},y(13792)}()})})(ZP);var Gwt=ZP.exports;const Y6=Hwt(Gwt),Wwt={id:"main-container"},qwt={id:"surface-container"},Ywt=t.createElementVNode("br",null,null,-1),XP=39,D0=74,Zwt=0,KP=2,JP=4,QP=8,eV=9,tV=10,aV=11,rV=13,Xwt=14,Kwt=15,Jwt=18,Fp=19,Qwt=800,nV=300,iV=5,e6t=2,t6t=3,a6t=4,r6t=7,n6t=-46,oV=100,sV=-14,i6t={__name:"CardField",props:{selected_category:{type:Number,default:31},selected_team:{type:Array,default:()=>[]},showBallPosition:{type:Boolean,default:!0},showPlayersPosition:{type:Boolean,default:!0},widthContainer:{type:Number,default:1280},dataPaintInfo:{type:Object,default:()=>{}},showTracks:{type:Boolean,default:!1},touches:{type:Number,default:1},showPlayersEndPosition:{type:Boolean,default:!1},secondStart:{type:Number,default:0},operationStart:{type:Number,default:0},secondEnd:{type:Number,default:1},operationEnd:{type:Number,default:1}},emits:["changelateralidad"],setup(e,{emit:a}){var r;let u=.75,y=t.ref("left");const i=a,l=t.ref(null),n=t.ref(null),_=t.ref(0),f=t.ref(null),o=e;let m=null;t.watch(()=>_.value,(N,O)=>{c(N),n.value.style.height=`${s(N)}px`,f.value.style.top=`${d(s(N))}px`}),t.watch(()=>o.selected_category,(N,O)=>{N==32?y.value="right":y.value="left"});function x(){m=new ResizeObserver(N=>{for(const O of N)_.value=O.contentRect.width}),m.observe(l.value)}function c(N){Y6.relayout(l.value,{width:N,height:s(N)})}function s(N){return Math.round(nV/Qwt*N,0)}function d(N){return sV+(N-oV)/(nV-oV)*(n6t-sV)}t.watch(()=>o.dataPaintInfo,(N,O)=>{N.data.length>0?E(N):T(N)},{deep:!0}),t.watch(()=>o.selected_team,N=>{N.data.length>0&&E(N)}),t.watch(()=>o.secondStart,N=>{E(N)});function p(N,O){let S=.01321,z=.00929,I=0,F=0,L=[];const D=O.length;let R=Math.floor(D/10);for(;I<D0;)F=O.filter(j=>j[0]>=I*S&&j[0]<=(I+1)*S&&j[1]>=N*z&&j[1]<=(N+1)*z).map(j=>j[1]).length,R=R===0?1:R,L.push(parseFloat((F/R).toFixed(4))),I++;return L.reverse()}function h(N){let O=[g(D0),g(D0)],S=[],z=XP;for(;z>0&&z<=XP;)S=p(z,N),O.push(S),z--;return O.push(g(D0),g(D0)),O}function g(N){return Array.from({length:N},()=>0)}function b(N,O,S){const z=[];let I=0,F=0;z.push(N[0]);for(let L=1;L<S-1;L++){const D=[];D.push(N[L][0]);for(let R=1;R<O-1;R++)I=N[L][R-1],F=N[L][R+1],D.push(I+.5*(N[L][R]+F-I));D.push(N[L][O-1]),z.push(D)}z.push(N[S-1]);for(let L=1;L<O-1;L++)for(let D=1;D<S-1;D++)I=z[D-1][L],F=z[D+1][L],z[D][L]=I+.5*(z[D][L]+F-I);return z}function v(N,O,S){for(var z=[],I=0;I<N.length;I++)N[I][Fp]==0&&N[I][JP]===o.selected_category&&z.push([N[I][tV],N[I][aV]]);return z}function w(N,O,S=1){let z=[],I=[];return N.forEach(F=>{if(F[JP]===o.selected_category){let L=N.filter(D=>F[0]===D[Jwt]&&D[Fp]<=S).sort((D,R)=>D[Fp]-R[Fp]);L.length>0&&z.push(L),F[Fp]===0&&I.push([F[Zwt],F[rV],F[Xwt],F[Kwt]])}}),{sequences:z,main_plays:I}}function C(N,O,S,z,I){let F=[],L=[],D=[],R=[],j=[],W=[],$=[],G=[],K=[],H=[];const Y="rgba(253, 101, 36, 1)",Z="rgba(255, 255, 255, 1)";return z=33,N.forEach((le,ie)=>{if(le.length===1){if(le[0][Fp]===0)return;let ne=le[0][QP]*S,re=le[0][eV]*z;L.push(ne),D.push(re-.7),R.push(ne),j.push(re),le[0][KP]===O?W.push(Z):W.push(Y)}else le.forEach((ne,re)=>{if(ne[Fp]===0)return;let Q=ne[QP]*S,ee=ne[eV]*z,se=ne[tV]*S,de=ne[aV]*z;L.push(Q),D.push(ee-.7),R.push(Q),j.push(ee),ne[KP]===O?W.push(Z):W.push(Y),$.push(Q),G.push(ee),le.length-1===re&&($.push(se),G.push(de),K.push(se),H.push(de))})}),F.shadowXPoints=L,F.shadowYPoints=D,F.playerXPoints=R,F.playerYPoints=j,F.playerColorPoints=W,F.trackX=$,F.trackY=G,F.arrowX=K,F.arrowY=H,F}function k(N,O){return N.map((S,z)=>S.map((I,F)=>{if(F===O){let[L,D,R]=I.split(/[:.]/);return parseInt(L)*60+parseInt(D)}else return I}))}function B(N,O,S,z,I=0,F){let L=[];return z.forEach(D=>{let R=I===0?parseInt(D[1])-parseInt(S):parseInt(D[1])+parseInt(S);N.filter(j=>D[0]===j[r6t]&&R===j[iV]&&O===j[e6t]).forEach(j=>{let W=j[t6t],$=j[a6t];$<=F&&L.push([W,$])})}),L}function E(N){N.data=k(N.data,rV),N.field_positions=k(N.field_positions,iV);let O=w(N.data,u,o.touches),S=v(N.data),z=B(N.field_positions,o.selected_team,o.secondStart,O.main_plays,o.operationStart,u),I=B(N.field_positions,o.selected_team,o.secondEnd,O.main_plays,o.operationEnd,u),F=h(S),L=h(z),D=h(I),R=F[0].length,j=F.length;F=b(b(F,R,j),R,j),L=b(b(L,R,j),R,j),D=b(b(D,R,j),R,j),R=F[0].length,j=F.length;let W=C(O.sequences,o.selected_team,R,j,o.touches);var $=[[0,"rgba(12,31,82,0)"],[.2,"rgba(14, 55, 115, 0.8)"],[.4,"rgba(33, 85, 160, 0.8)"],[.6,"rgba(16, 124, 170, 0.8)"],[.8,"rgba(32, 154, 207, 0.8)"],[1,"rgba(32, 174, 207, 0.8)"]],G=[[0,"rgba(12,31,82,0)"],[.2,"rgba(73, 13, 67, 0.8)"],[.4,"rgba(98, 32, 91, 0.8)"],[.6,"rgba(121, 52, 114, 0.8)"],[.8,"rgba(176, 36, 121, 0.8)"],[1,"rgba(230, 49, 158, 0.8)"]],K=[[0,"rgba(12,31,82,0)"],[.2,"rgba(94, 111, 79, 1)"],[.4,"rgba(111, 142, 28, 1)"],[.6,"rgba(142, 177, 50, 1)"],[.8,"rgba(169, 211, 57, 1)"],[1,"rgba(195, 229, 105, 1)"]],H=[{z:F,type:"heatmap",connectgaps:!0,opacity:1,colorscale:K,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],Y=[{z:L,type:"heatmap",connectgaps:!0,opacity:1,colorscale:$,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],Z=[{z:D,type:"heatmap",connectgaps:!0,opacity:1,colorscale:G,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],le={x:W.shadowXPoints,y:W.shadowYPoints,mode:"markers",marker:{color:"rgba(0, 0, 0, 0.5)",size:9}},ie={x:W.playerXPoints,y:W.playerYPoints,mode:"markers",marker:{color:W.playerColorPoints,size:8}},ne={x:W.trackX,y:W.trackY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1,dash:"2px 2px",arrowhead:"end"}},re={x:W.arrowX,y:W.arrowY,mode:"markers",marker:{symbol:"triangle-up",size:10,color:"rgba(255, 255, 255, 1)",angle:120}},Q=[];o.showTracks&&Q.push(ne,le,ie,re),o.showPlayersEndPosition&&Q.push(...Z),o.showPlayersPosition&&Q.push(...Y),o.showBallPosition&&Q.push(...H);const ee=[0,R],se=[0,j];r={showlegend:!1,width:_.value,height:s(_.value),xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:ee},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:se},margin:{l:5,r:0,b:0,t:5}},Y6.newPlot("surface-plot-heatmap",Q,r,{displayModeBar:!1,staticPlot:!0},{responsive:!0})}function T(N){N.data=[],N.field_positions=[];let O=w(N.data,u,o.touches),S=v(N.data),z=h(S),I=z[0].length,F=z.length;z=b(b(z,I,F),I,F),I=z[0].length,F=z.length;let L=C(O.sequences,o.selected_team,I,F);var D=[[0,"rgba(12,31,82,0)"],[.2,"rgba(14, 55, 115, 0)"],[.4,"rgba(33, 85, 160, 0)"],[.6,"rgba(16, 124, 170, 0)"],[.8,"rgba(32, 154, 207, 0)"],[1,"rgba(32, 174, 207, 0)"]],R=[[0,"rgba(12,31,82,0)"],[.2,"rgba(73, 13, 67, 0)"],[.4,"rgba(98, 32, 91, 0)"],[.6,"rgba(121, 52, 114, 0)"],[.8,"rgba(176, 36, 121, 0)"],[1,"rgba(230, 49, 158, 0)"]],j=[[0,"rgba(12,31,82,0)"],[.2,"rgba(94, 111, 79, 0)"],[.4,"rgba(111, 142, 28, 0)"],[.6,"rgba(142, 177, 50, 0)"],[.8,"rgba(169, 211, 57, 0)"],[1,"rgba(195, 229, 105, 0)"]],W=[{z:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],type:"heatmap",connectgaps:!0,opacity:.25,colorscale:j,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],$=[{z:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],type:"heatmap",connectgaps:!0,opacity:.25,colorscale:D,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],G=[{z:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],type:"heatmap",connectgaps:!0,opacity:.25,colorscale:R,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],K={x:L.shadowXPoints,y:L.shadowYPoints,mode:"markers",marker:{color:"rgba(0, 0, 0, 0.5)",size:9}},H={x:L.playerXPoints,y:L.playerYPoints,mode:"markers",marker:{color:L.playerColorPoints,size:8}},Y={x:L.trackX,y:L.trackY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1,dash:"2px 2px",arrowhead:"end"}},Z={x:L.arrowX,y:L.arrowY,mode:"markers",marker:{symbol:"triangle-up",size:10,color:"rgba(255, 255, 255, 1)",angle:120}},le=[];o.showTracks&&le.push(Y,K,H,Z),o.showPlayersEndPosition&&le.push(...G),o.showPlayersPosition&&le.push(...$),o.showBallPosition&&le.push(...W);const ie=[0,I],ne=[0,F];r={showlegend:!1,width:_.value,height:s(_.value),xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:ie},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:ne},margin:{l:5,r:0,b:0,t:5}},Y6.newPlot("surface-plot-heatmap",le,r,{displayModeBar:!1,staticPlot:!0},{responsive:!0})}const A=()=>{};function M(N){y.value=N,i("changelateralidad",y.value)}return t.onBeforeUnmount(()=>{window.removeEventListener("resize",A)}),t.onMounted(()=>{l.value&&(l.value.style.pointerEvents="none"),window.addEventListener("resize",A),x()}),(N,O)=>(t.openBlock(),t.createElementBlock("div",Wwt,[t.createElementVNode("div",qwt,[o.dataPaintInfo.data.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.widthContainer<768?"class-not-result-field-movil":"class-not-result-field")},[e.widthContainer<768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No se muestran resultados debido"),Ywt,t.createTextVNode(" a los filtros aplicados.")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No se muestran resultados debido a los filtros aplicados.")],64))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{id:"label-left-zone",style:t.normalizeStyle(t.unref(y)=="left"?"":"opacity: 0.6"),onClick:O[0]||(O[0]=S=>M("left"))},null,4),t.createElementVNode("div",{id:"label-right-zone",style:t.normalizeStyle(t.unref(y)=="right"?"":"opacity: 0.6"),onClick:O[1]||(O[1]=S=>M("right"))},null,4),t.createElementVNode("div",{ref_key:"surfacePlot",ref:l,id:"surface-plot-heatmap"},null,512)])]))}},lV="/arrowbtn.png",o6t={components:{GSCTrendMenuBall:Kxt,GSCCheckbox:lf,GSCTrendPosition:Uwt,CardField:i6t},props:{acronymHome:{type:String,default:""},acronymAway:{type:String,default:""},typePlay:{type:String,default:"A favor"},widthContainer:{type:Number,default:1280},touchAllData:{type:Array,default:()=>[]},playersData:{type:Object,default:()=>{}},homeTeam:{type:Number,default:0},awayTeam:{type:Number,default:0},selected_category:{type:Number,default:31},team:{type:Number,required:!0},forGame:{type:Boolean,required:!1},teamsData:{type:Object,default:()=>{}},fieldPositionsAll:{type:Array,default:()=>[]},inFavor:{type:Boolean,required:!1},isTacticVisible:{type:Boolean,required:!1}},data(){return{type:"ball",show:!1,game:62276,trajectories:[],rival:3014,totalCorners:0,typepositioning:"Posición",BallOnOff:"OFF",numberTouches:1,playersList:{},timepositioning:-1,checkedBallGo:!0,checkedHeatMap:!0,filterFieldPositions:[],timepositioningFinal:-1,arrayPlayers:{},season:1325,timepositioningend:1,zonesFilter:[],touchFilter:{},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{touchAllData:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},zonesFilter:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},typepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioningend:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0}},computed:{reftrendteamslocal(){const e=this.widthContainer;return e<=480?"ref-trend-teams-local480":e<=768?"ref-trend-teams-local768":"ref-trend-teams-local"},reftrendteamsrival(){return this.widthContainer<=768?"ref-trend-teams-rival768":"ref-trend-teams-rival"},reftrendteamsall(){const e=this.widthContainer;return e<=480?"ref-trend-teams-all480":e<=768?"ref-trend-teams-all768":"ref-trend-teams-all"},refpointlebeltext(){const e=this.widthContainer;return e<=480?"ref-point-lebel-text480":e<=768?"ref-point-lebel-text768":e<=860?"ref-point-lebel-text870":"ref-point-lebel-text"},trendcontentcontrols(){return this.widthContainer<=768?"trend-content-controls768":["trend-content-controls","to-right"]},trendtitle(){return this.widthContainer<=768?"trend-title768":"trend-title"},trendtitlecontainer(){return this.widthContainer<=768?"trend-titlecontainer768":"trend-titlecontainer"},trendcontentcontrolscontainer(){const e=this.widthContainer;return e<=400?"trend-content-controls-container400":e<=860?"trend-content-controls-container860":"trend-content-controls-container"},trendcontentcontrolsleyendcheckscontent(){const e=this.widthContainer;return e<=400?"trend-content-controls-leyend-checkscontent400":e<=768?"trend-content-controls-leyend-checkscontent768":e<=1e3?"trend-content-controls-leyend-checkscontent1000":"trend-content-controls-leyend-checkscontent"},trendcontentcontrolsleyend(){const e=this.widthContainer;return e<=768?"trend-content-controls-leyend768":e<=1e3?"trend-content-controls-leyend1000":"trend-content-controls-leyend"},contDataClass(){return this.widthContainer<=768?"cont-data768":"cont-data"},contDataClass2(){return this.widthContainer<=768?"cont-data-ref768":"cont-data-ref"},contCollectorsClass(){const e=this.widthContainer;return e<=768?"cont-collectors768":e<=900?"cont-collectors900":"cont-collectors"},contCollectorsClass2(){const e=this.widthContainer;return e<=768?"cont-collectors-ref768":e<=900?"cont-collectors-ref900":"cont-collectors-ref"},contWhoCnnectedClass(){const e=this.widthContainer;return e<=768?"cont-who-connected768":e<=900?"cont-who-connected900":"cont-who-connected"},contWhoCnnectedClass2(){const e=this.widthContainer;return e<=768?"cont-who-connected-ref768":e<=900?"cont-who-connected-ref900":"cont-who-connected-ref"}},methods:{changelateralidad(e){this.$emit("changelateralidad",e)},changeTouchesnum(e){this.numberTouches=e},checkBallGo(){this.checkedBallGo=!this.checkedBallGo},checkHeatMap(){this.checkedHeatMap=!this.checkedHeatMap},changeBallOnOff(e){typeof e=="string"&&(this.BallOnOff=e)},getDataPosition(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(o=>o[19]===0).map(o=>this.tiempoASegundosEnteros(o[13]));let r=[];this.timepositioning>=0?r=a.map(o=>o+this.timepositioning):r=a.map(o=>o-this.timepositioning);const u=this.fieldPositionsAll.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),y=this.contarYAgruparPorPosicion(u);let i=[];this.zonesFilter.length!=35?i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team):i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team),this.filterFieldPositions=i;let l=[],n=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&l.push(this.arrayPlayers[e].id),n.push(this.arrayPlayers[e].id);l.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(o=>l.includes(o[1])));const _=i.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),f=this.contarYAgruparPorPosicion(_);this.arrayPlayers={};for(let o=0;o<y.length;o++){const m=f.filter(function(x){return x.id_player==y[o].id_player});this.arrayPlayers[y[o].id_player]={id:y[o].id_player,corners:y[o].corners,cornersfilter:m[0]?m[0].corners:0,data:this.playersData[y[o].id_player]?this.playersData[y[o].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&n.includes(y[o].id_player)?!!l.includes(y[o].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},getDataTrajectory(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(c=>c[19]===0).map(c=>this.tiempoASegundosEnteros(c[13]));let r=[];this.timepositioning>=0?r=a.map(c=>c+Math.abs(this.timepositioning)):r=a.map(c=>c-Math.abs(this.timepositioning));let u=[];this.timepositioningend>=0?u=a.map(c=>c+Math.abs(this.timepositioningend)):u=a.map(c=>c-Math.abs(this.timepositioningend));const y=this.fieldPositionsAll.filter(c=>this.zonesFilter.includes(c[6])&&c[2]===this.team);this.filterFieldPositions=y;let i=[],l=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&i.push(this.arrayPlayers[e].id),l.push(this.arrayPlayers[e].id);i.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(c=>i.includes(c[1])));const n=this.fieldPositionsAll.filter(c=>a.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),_=y.filter(c=>r.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),f=y.filter(c=>u.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),o=this.contarYAgruparPorPosicion(n),m=this.contarYAgruparPorPosicion(_),x=this.contarYAgruparPorPosicion(f);for(let c=0;c<o.length;c++){const s=m.filter(function(p){return p.id_player==o[c].id_player}),d=x.filter(function(p){return p.id_player==o[c].id_player});this.arrayPlayers[o[c].id_player]={id:o[c].id_player,corners:o[c].corners,cornersfilter:s[0]?s[0].corners:0,cornersfilterfinal:d[0]?d[0].corners:0,data:this.playersData[o[c].id_player]?this.playersData[o[c].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&l.includes(o[c].id_player)?!!i.includes(o[c].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},contarYAgruparPorPosicion(e){const a=e.reduce((r,u)=>{const y=u[1];return r[y]?r[y]+=1:r[y]=1,r},{});return Object.keys(a).map(r=>({id_player:parseInt(r,10),corners:a[r]}))},tiempoASegundosEnteros(e){let a=e.split(":"),r=parseInt(a[0],10),u=parseFloat(a[1]);return r*60+Math.floor(u)},getTimePositioning(e){this.timepositioning=e},getTimePositioningEnd(e){this.timepositioningend=e},getTypePositioning(e){this.typepositioning=e},getArrayZonesField(e){this.zonesFilter=e},selectcheckplayerall(e){for(let a in this.arrayPlayers)this.arrayPlayers[a].selected=e;this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},selectcheckplayer(e){this.arrayPlayers[e].selected=!this.arrayPlayers[e].selected,this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},clickTypeButton(e){this.type=e},clickAdvanced(){this.show=!this.show},async getData(){}},mounted(){}},yc=e=>(t.pushScopeId("data-v-6ea1f349"),e=e(),t.popScopeId(),e),s6t={class:"text-diferent"},l6t=yc(()=>t.createElementVNode("br",null,null,-1)),c6t={key:0,class:"btnAdvance",src:lV},d6t={key:1,class:"btnAdvanceHide",src:lV},u6t={class:"menu-advanced-container"},p6t={class:"container-buttons-menu"},h6t={key:1,class:"position-only"},f6t={class:"buttons-menu-select-data"},m6t={key:0,class:"ref-trend-ball-player-container"},g6t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-6ea1f349><div class="ref-trend-ball-ball-point" data-v-6ea1f349></div><div class="ref-trend-ball-ball-label" data-v-6ea1f349>BALÓN</div></div><div class="ref-trend-ball-player" data-v-6ea1f349><div class="ref-trend-ball-playe-point" data-v-6ea1f349></div><div class="ref-trend-ball-player-label" data-v-6ea1f349>JUGADORES OFENSIVOS</div></div>',2),y6t=[g6t],_6t={key:1,class:"ref-trend-ball-player-container-route"},v6t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-6ea1f349><div class="ref-trend-ball-ball-point" data-v-6ea1f349></div><div class="ref-trend-ball-ball-label" data-v-6ea1f349>BALÓN</div></div><div class="ref-trend-ball-player-route" data-v-6ea1f349><div class="ref-trend-ball-player-label" data-v-6ea1f349>RECORRIDOS: </div><div class="ref-trend-ball-playe-point" data-v-6ea1f349></div><div class="ref-trend-ball-player-label" data-v-6ea1f349>INICIO </div><div class="ref-trend-ball-playe-point-end" data-v-6ea1f349></div><div class="ref-trend-ball-player-label" data-v-6ea1f349>FINAL</div></div>',2),b6t=[v6t],x6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-gol.png)"}},null,-1)),w6t=yc(()=>t.createElementVNode("br",null,null,-1)),k6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-con-destino.png)"}},null,-1)),C6t=yc(()=>t.createElementVNode("br",null,null,-1)),E6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-sin-destino.png)"}},null,-1)),S6t=yc(()=>t.createElementVNode("br",null,null,-1)),T6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/sin-destino.png)"}},null,-1)),A6t={class:"ref-trend-teams-rival-container-table"},N6t={class:"ref-trend-teams-rival-container-row1"},B6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-jugador-rival.png)"}},null,-1)),M6t=yc(()=>t.createElementVNode("br",null,null,-1)),I6t={class:"ref-trend-teams-rival-container-row2"},O6t=yc(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-portero.png)"}},null,-1)),F6t=yc(()=>t.createElementVNode("br",null,null,-1));function z6t(e,a,r,u,y,i){const l=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCTrendMenuBall"),_=t.resolveComponent("GSCTrendPosition"),f=t.resolveComponent("CardField");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.widthContainer<=768?"gsc-trend-movil":"gsc-trend-plays")},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitlecontainer)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitle)},[t.createTextVNode(" Tendencia General "),t.createElementVNode("span",s6t,"("+t.toDisplayString(r.typePlay)+")",1)],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrols)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyend)},[r.widthContainer>1e3||r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Elige que quieres ver: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Elige que "),l6t,t.createTextVNode("quieres ver:")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyendcheckscontent)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(l,{label:"¿A dónde fue el balón?",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF","model-value":y.checkedBallGo,"onUpdate:modelValue":a[0]||(a[0]=o=>i.checkBallGo())},null,8,["labelFontSize","model-value"])],2),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(l,{label:"Jugadores ofensivos",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF",boxBackgroundColor:"#15a9e0","model-value":y.checkedHeatMap,"onUpdate:modelValue":a[1]||(a[1]=o=>i.checkHeatMap())},null,8,["labelFontSize","model-value"])],2),[[t.vShow,r.isTacticVisible]])],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass)},[t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=768?"button-avanced-movil":"button-avanced"),onClick:a[2]||(a[2]=(...o)=>i.clickAdvanced&&i.clickAdvanced(...o))},[y.show?(t.openBlock(),t.createElementBlock("img",c6t)):t.createCommentVNode("",!0),t.createTextVNode("Avanzado"),y.show?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",d6t))],2),t.withDirectives(t.createElementVNode("div",u6t,[t.createElementVNode("div",p6t,[r.isTacticVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",y.type=="ball"?"active":""]),onClick:a[3]||(a[3]=o=>i.clickTypeButton("ball"))}," A dónde fue el balón ",2),t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",y.type=="position"?"active":""]),onClick:a[4]||(a[4]=o=>i.clickTypeButton("position"))}," Posicionamiento ",2)],64)):(t.openBlock(),t.createElementBlock("div",h6t,"Posicionamiento"))]),t.createElementVNode("div",f6t,[t.withDirectives(t.createVNode(n,{"Ball-on-off":y.BallOnOff,onChangeBallOnOff:i.changeBallOnOff,onTouchesnum:i.changeTouchesnum},null,8,["Ball-on-off","onChangeBallOnOff","onTouchesnum"]),[[t.vShow,y.type=="ball"]]),t.withDirectives(t.createVNode(_,{onSelectcheckplayer:i.selectcheckplayer,onSelectcheckplayerall:i.selectcheckplayerall,data:y.arrayPlayers,onShowfield:i.getArrayZonesField,onTypepositioning:i.getTypePositioning,"width-container":r.widthContainer,onTimepositioning:i.getTimePositioning,onTimepositioningend:i.getTimePositioningEnd},null,8,["onSelectcheckplayer","onSelectcheckplayerall","data","onShowfield","onTypepositioning","width-container","onTimepositioning","onTimepositioningend"]),[[t.vShow,r.isTacticVisible&&y.type==="position"]])])],512),[[t.vShow,y.show]])],2),t.createElementVNode("div",{class:t.normalizeClass(i.contWhoCnnectedClass)},[t.createVNode(f,{"width-container":r.widthContainer,selected_team:r.team,"show-ball-position":y.checkedBallGo,"show-players-position":y.checkedHeatMap,selected_category:r.selected_category,"show-tracks":y.BallOnOff=="ON",touches:y.numberTouches,"operation-start":y.timepositioning>0?1:0,"second-start":Math.abs(y.timepositioning),"second-end":y.timepositioningend>0?1:0,"operation-end":Math.abs(y.timepositioningend),onChangelateralidad:i.changelateralidad,"show-players-end-position":y.typepositioning=="Recorrido","data-paint-info":{data:r.touchAllData,field_positions:y.filterFieldPositions,home_atk_direction:1}},null,8,["width-container","selected_team","show-ball-position","show-players-position","selected_category","show-tracks","touches","operation-start","second-start","second-end","operation-end","onChangelateralidad","show-players-end-position","data-paint-info"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass2)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass2)},[y.typepositioning==="Posición"?(t.openBlock(),t.createElementBlock("div",m6t,y6t)):(t.openBlock(),t.createElementBlock("div",_6t,b6t))],2),y.BallOnOff=="ON"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.contWhoCnnectedClass2)},[t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamsall)},[t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamslocal)},[t.createElementVNode("div",{class:"ref-trend-teams-local-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center !important;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.acronymHome),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.teamsData[r.team].name),1)],64))],4),t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=480?"ref-trend-teams-local-container-table-movil":"ref-trend-teams-local-container-table")},[t.createElementVNode("div",{class:"ref-trend-teams-local-container-row1",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[x6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Remata destino "),w6t,t.createTextVNode("portería fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row2",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[k6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado destino "),C6t,t.createTextVNode("a portería no fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row3",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[E6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado sin "),S6t,t.createTextVNode("destino a portería")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row4",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[T6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},"Sin destino",2)],4)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamsrival)},[t.createElementVNode("div",{class:"ref-trend-teams-rival-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r.acronymAway),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Rival")],64))],4),t.createElementVNode("div",A6t,[t.createElementVNode("div",N6t,[B6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Jugador rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),M6t,t.createTextVNode("Jugador rival")],64))],2)]),t.createElementVNode("div",I6t,[O6t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Portero rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),F6t,t.createTextVNode("Portero rival")],64))],2)])])],2)],2)],2)):t.createCommentVNode("",!0)],2)],2)}const P6t=Ti(o6t,[["render",z6t],["__scopeId","data-v-6ea1f349"]]),V6t={components:{GSCConnectionsSetPiece:Hot,GSCHeaderSetPiece:N2t,GSCDataToHighlight:k_t,GSCModalBreakdown:Rvt,GSCSpecificPlays:Lxt,GSCTrend:P6t},props:{game:{type:Object,required:!0},forSeason:{type:Boolean,default:!1},forTeam:{type:Boolean,default:!1},forGame:{type:Boolean,default:!1},team:{type:Number,default:0},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",touchAllDataHome:[],touchAllDataAway:[],filters:{isMoment:!1,final:[1,2,3],moment:[1,2,3],playingAs:[1,2],sections:[1,2,3,4,5,6],games:[],players:[],cornertype:31,howWas:[120,126,327,133],zona:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],whathappened:[583,585,587,589,584,586,588,590,122,128,136,142,123,129,137,143,124,130,138,144,125,131,139,14,146,147,327,133],isWhatHappenedFull:!0,isZoneFull:!0},containerWidth:0,openModal:!1,playersData:{},teamsData:{},gamesAllHome:[],gamesAllAway:[],teamSelected:0,touchDataSelected:[],auxChangeFilterPlayer:!0,auxChangeFilterGames:!0,positionsDataSelected:[],copyLastFilters:{},seasonId:0,totalDataCollection:{},seasonsByGame:{},matchesByGame:{},rivalsByGame:{},updateConnections:0,showCorners:0,filterPlayersAvailable:[],filterGamesAvailable:[],updateTrend:0,lateralidad:"left",updateFilter:0,copyplayers:[],infavoragainst:!0,typePlay:"A favor",modalInitialData:{},areFiltersOpen:!1}},watch:{game:{immediate:!0,handler(e){this.getDataCorners(e),this.createStorageGame()}},teamSelected:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},infavoragainst:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},calculationTouchesData:{immediate:!0,handler(){this.showCorners=this.calculationTouchesData.filter(e=>e[19]==0).length}}},computed:{isGameOnly(){return this.forGame&&!this.forSeason&&!this.forTeam},calculateTotal(){return this.touchDataSelected.filter(e=>e[19]==0).length},calculationPositionsData(){return this.positionsDataSelected},calculationTouchesData(){let e=[],a=[];if(this.touchDataSelected.length>0){this.updateCopyfilter(),this.filters.isMoment?a=this.touchDataSelected.filter(u=>this.filters.moment.includes(u[17])&&this.filters.playingAs.includes(u[14])&&this.filters.sections.includes(u[20])&&u[19]==0):a=this.touchDataSelected.filter(u=>this.filters.final.includes(u[16])&&this.filters.playingAs.includes(u[14])&&this.filters.sections.includes(u[20])&&u[19]==0),this.updateGamesListFilter({corners:a,games:this.filters.games}),this.filters.games.length>0&&(a=a.filter(u=>this.filters.games.includes(u[3]))),this.infavoragainst&&(this.updatePlayerListFilter({corners:a,players:this.filters.players}),this.filters.players.length>0&&(a=a.filter(u=>this.filters.players.includes(u[1])))),a=a.filter(u=>this.filters.cornertype==u[4]),this.filters.zona.length!=35&&(a=a.filter(u=>this.filters.zona.includes(u[12]))),a=a.filter(u=>u[5].split(",").map(y=>parseInt(y)).some(y=>this.filters.howWas.includes(y))),this.filters.whathappened.length!=24&&(a=a.filter(u=>u[5].split(",").map(y=>parseInt(y)).some(y=>this.filters.whathappened.includes(y))));const r=a.map(u=>u[18]);e=this.touchDataSelected.filter(u=>r.includes(u[18]))}return e},cornersInFavor(){return"-"},cornersAgainst(){return"-"}},methods:{setHeaderStickyListener(){const e=this.$refs.header.getBoundingClientRect();window.onscroll=()=>{(window.scrollY||window.pageYOffset)>e.top?this.$refs.header.classList.add("sticky"):this.$refs.header.classList.remove("sticky")}},setCornersSide(e){this.lateralidad=e},onChangeShowFilters(e){this.areFiltersOpen=e},fillFilterPlayersReset(){setTimeout(()=>{if(this.infavoragainst){const e=this.forGame?this.infavoragainst?this.teamSelected:this.teamSelected==this.game.home_team?this.game.away_team:this.game.home_team:this.teamSelected,a=this.touchDataSelected.filter(u=>u[19]==0&&e).map(u=>u[1]),r=[...new Set(a)];this.getFilterTakenCorners({players:r})}},100)},fillFilterGamesReset(){setTimeout(()=>{const e=this.touchDataSelected.filter(r=>r[19]==0).map(r=>r[3]),a=[...new Set(e)];this.getFilterGames({games:a})},100)},updateCopyfilter(){this.copyLastFilters=this.filters},fillGameDataTeam(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.game.home_team].acronym} vs ${this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.game.home_team==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},fillGameData(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.teamSelected].acronym} vs ${this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.teamSelected==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},updatePlayerListFilter(e){if(this.infavoragainst){let a={},r=[];for(let u=0;u<e.corners.length;u++){const y=e.corners[u];if(y[19]===0&&y[2]===this.teamSelected){const i=y[1],l=this.playersData[i];i in a||(a[i]=l,r.push(l))}}if(this.filterPlayersAvailable=r,e.players.length>0&&this.filterPlayersAvailable.length>0)for(let u=0;u<this.filterPlayersAvailable.length;u++)e.players.includes(this.filterPlayersAvailable[u].id)?this.filterPlayersAvailable[u].isSelected=!0:this.filterPlayersAvailable[u].isSelected=!1}},updateGamesListFilter(e){if(!this.forGame){this.filterGamesAvailable=[];const a=this.obtenerIDsGames(e.corners);this.forSeason?this.teamSelected==this.game.home_team?this.filterGamesAvailable=a.map(r=>{let u=this.gamesAllHome.find(y=>y.game_id===r);if(u)return this.fillGameData(u)}):this.filterGamesAvailable=a.map(r=>{let u=this.gamesAllAway.find(y=>y.game_id===r);if(u)return this.fillGameData(u)}):this.filterGamesAvailable=a.map(r=>{let u=this.gamesAllHome.find(y=>y.game_id===r);if(u)return this.fillGameDataTeam(u)})}if(e.games.length>0&&this.filterGamesAvailable.length>0)for(let a=0;a<this.filterGamesAvailable.length;a++)e.games.includes(this.filterGamesAvailable[a].id)?this.filterGamesAvailable[a].isSelected=!0:this.filterGamesAvailable[a].isSelected=!1},getResetPlayers(){for(let e in this.playersData)this.playersData[e].isSelected=!0},getFilterZone(e){this.filters.zona=e,this.filters.isZoneFull=e.length===35},getFilterHowWasCorner(e){this.filters.cornertype=e.cornertype,this.filters.howWas=e.howWas},getFilterTakenCorners(e){this.filters.players=e.players},getFilterGames(e){this.filters.games=e.games,this.fillFilterPlayersReset()},getFilterDetails(e){this.filters.playingAs=e.playingAs,this.filters.sections=e.sections,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterResultsByTime(e){this.filters.final=e.final,this.filters.isMoment=e.isMoment,this.filters.moment=e.moment,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterWhatHappened(e){this.filters.whathappened=e,this.filters.isWhatHappenedFull=e.length===24},obtenerIDsGames(e){return[...new Set(e.map(a=>a[3]))]},async getInFavorAgainstTeam(e){this.updateTrend+=1,this.infavoragainst=e,this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&(this.teamSelected==this.game.home_team?await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}))},async getTeamSelected(e){this.teamSelected!=e&&(this.updateConnections+=1,this.updateTrend+=1,this.teamSelected=e,this.touchDataSelected=[],this.gamesAllHome.length!=0&&this.gamesAllAway.length!=0&&(this.teamSelected==this.game.home_team?this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})))},async requestOrchestrator(e){let a=[];const r=Li.create({headers:{Authorization:`${this.token}`}});for(let n=0;n<e.games.length;n++)this.seasonId=e.games[n].season_id,a.push(e.inFavor?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id+"?isR=1");const u=async n=>{try{return(await r.get(n)).data}catch(_){throw console.error("Error al obtener datos:",_),_}};var y=[],i=[];const l=a.map(n=>u(n));Promise.all(l).then(n=>{for(let _=0;_<n.length;_++)n[_].data=this.changeLateralityCoordenatesPlays(n[_].data,!1),n[_].field_positions=this.changeLateralityCoordenatesPlays(n[_].field_positions,!0),y=y.concat(n[_].data),i=i.concat(n[_].field_positions),this.getDataPlayers(n[_].players),this.getDataPlayers(n[_].rival_players),this.getDataTeams(n[_].teams),this.getSeasonByGame({season:n[_]&&n[_].hasOwnProperty("season_name")?n[_].season_name:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getMatchByGame({match:n[_]&&n[_].hasOwnProperty("matchday_abbreviation")?n[_].matchday_abbreviation:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getRivalsByGame({rival:this.infavoragainst?this.teamSelected==n[_].teams[0].team_id?n[_].teams[1].name:n[_].teams[0].name:this.teamSelected==n[_].teams[0].team_id?n[_].teams[0].name:n[_].teams[1].name,game:n[_].data[0]?n[_].data[0][3]:0,team:this.teamSelected,favor:this.infavoragainst});this.touchDataSelected=y,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch=y,this.positionsDataSelected=i,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions=i}).catch(n=>{console.error("Error al obtener datos:",n)})},getRowMatrix(e,a){let r=.01351,u=.02439,y=0,i=0,l=[];const n=a.length;let _=Math.floor(n/10);for(;y<74;)i=a.filter(f=>f[0]>=y*r&&f[0]<=(y+1)*r&&f[1]>=e*u&&f[1]<=(e+1)*u).map(f=>f[1]).length,_=_===0?1:_,l.push(parseFloat((i/_).toFixed(4))),y++;return l.reverse()},getEmptyArray(e){return Array.from({length:e},()=>0)},getMatrix(e){let a=[this.getEmptyArray(74),this.getEmptyArray(74)],r=[],u=39;for(;u>0&&u<=39;)r=this.getRowMatrix(u,e),a.push(r),u--;return a.push(this.getEmptyArray(74),this.getEmptyArray(74)),a},getSoftData(e,a,r){const u=[];let y=0,i=0;u.push(e[0]);for(let l=1;l<r-1;l++){const n=[];n.push(e[l][0]);for(let _=1;_<a-1;_++)y=e[l][_-1],i=e[l][_+1],n.push(y+.5*(e[l][_]+i-y));n.push(e[l][a-1]),u.push(n)}u.push(e[r-1]);for(let l=1;l<a-1;l++)for(let n=1;n<r-1;n++)y=u[n-1][l],i=u[n+1][l],u[n][l]=y+.5*(u[n][l]+i-y);return u},changeLateralityCoordenatesPlays(e,a){return a?e.forEach((r,u)=>{let y=0,i=0;this.infavoragainst?(y=r[2]===this.teamSelected?1-r[3]:r[3],i=r[2]===this.teamSelected?1-r[4]:r[4]):(y=r[2]===this.teamSelected?r[3]:1-r[3],i=r[2]===this.teamSelected?r[4]:1-r[4]),e[u][3]=y,e[u][4]=i}):e.forEach((r,u)=>{let y=0,i=0,l=0,n=0,_=0,f=0;r[19]!=0?this.infavoragainst?(y=r[2]===this.teamSelected?r[6]:1-r[6],i=r[2]===this.teamSelected?1-r[7]:r[7],l=r[2]===this.teamSelected?r[8]:1-r[8],n=r[2]===this.teamSelected?1-r[9]:r[9],_=r[2]===this.teamSelected?r[10]:1-r[10],f=r[2]===this.teamSelected?1-r[11]:r[11]):(y=r[2]===this.teamSelected?1-r[6]:r[6],i=r[2]===this.teamSelected?r[7]:1-r[7],l=r[2]===this.teamSelected?1-r[8]:r[8],n=r[2]===this.teamSelected?r[9]:1-r[9],_=r[2]===this.teamSelected?1-r[10]:r[10],f=r[2]===this.teamSelected?r[11]:1-r[11]):(y=1-r[6],i=r[7],l=1-r[8],n=r[9],_=1-r[10],f=r[11]),e[u][6]=y,e[u][7]=i,e[u][8]=l,e[u][9]=n,e[u][10]=_,e[u][11]=f}),e},changeLateralityPlays(e){e.field_positions=e.field_positions.map(r=>[...r.slice(0,3),r[4],r[3],...r.slice(5)]);let a=[];return e.data.forEach(r=>{r[19]===0&&a.push([r[0],r[13],r[14],r[15]])}),a.forEach(r=>{e.field_positions.filter(u=>r[0]===u[7]&&this.teamSelected===u[2]).forEach(u=>{let y=u[3],i=u[4];(e.homeTeamAtkDirection===1&&r[3]===1||e.homeTeamAtkDirection===2&&r[3]===2||e.homeTeamAtkDirection===1&&r[3]===3||e.homeTeamAtkDirection===2&&r[3]===4)&&(y=1-y,i=1-i),u[3]=y,u[4]=i})}),e.field_positions},createStorageGame(){this.totalDataCollection[this.game.id]={},this.totalDataCollection[this.game.id][this.game.home_team]={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.home_team].Against={},this.totalDataCollection[this.game.id][this.game.home_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].Against.positions=[],(this.forGame||this.forSeason)&&(this.totalDataCollection[this.game.id][this.game.away_team]={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.away_team].Against={},this.totalDataCollection[this.game.id][this.game.away_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].Against.positions=[])},validateDataLocalStorage(e){return this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch.length>0&&this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions.length>0?(this.touchDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch,this.positionsDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions,!1):!0},getGamesByTeam(e){this.forSeason?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.gamesAllAway=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.forGame?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllAway=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1})},async getDataCorners(e){const a=await Li.create({headers:{Authorization:`${this.token}`}}).get("https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?seasons="+e.season);this.forSeason?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):this.forGame?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,game:this.game,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,game:this.game,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.validateDataLocalStorage({team:e.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game}))},obtenerNombreAbreviado(e){let a=e.split(", ");if(a.length!==2)return e;let r=a[0],u=a[1],y=r.split(" ")[0];return u.charAt(0).toUpperCase()+". "+y},getDataPlayers(e){for(let a=0;a<e.length;a++)this.playersData.hasOwnProperty(e[a].player_id)||(this.playersData[e[a].player_id]={name:this.obtenerNombreAbreviado(e[a].name),last_name:e[a].name.includes(",")?e[a].name.split(",")[0].trim():"",first_name:e[a].name.includes(",")?e[a].name.split(",")[1].trim():"",img:e[a].photo,photo:e[a].photo,position:e[a].position_id,positions:[e[a].position_id],id:e[a].player_id,player_id:e[a].player_id,team_id:e[a].team_id,team:e[a].team_id,nationality_id:e[a].nationality_id,nationality_flag:"https://az755631.vo.msecnd.net/flags/"+e[a].nationality_id+".jpg",jersey:e[a].jersey,isSelected:!0})},getSeasonByGame(e){e.season!=""?this.seasonsByGame[e.game]=e.season:this.seasonsByGame[e.game]="-"},getMatchByGame(e){e.match!=""?this.matchesByGame[e.game]=e.match.replace("M","J"):this.matchesByGame[e.game]="-"},getRivalsByGame(e){this.rivalsByGame[e.favor?"InFavor":"Against"]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival:(this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival):(this.rivalsByGame[e.favor?"InFavor":"Against"]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival)},getDataTeams(e){for(let a=0;a<e.length;a++)this.teamsData.hasOwnProperty(e[a].team_id)||(this.teamsData[e[a].team_id]={name:e[a].name,acronym:e[a].acronym,img:"https://az755631.vo.msecnd.net/teams-80/"+e[a].team_id+".png",id:e[a].team_id})},getTypePlay(e){typeof e=="string"&&(this.typePlay=e)},clickOpenModal(){this.openModal=!this.openModal,document.body.classList.add("no-scroll")},clickCloseFinal(){this.openModal=!1,document.body.classList.remove("no-scroll")},onOpenMediaPlayer(e){this.$emit("open-media-player",e)},onOpenMediaPlayerJson(e){let a={seasonId:this.seasonId,mainSectionType:1,playListType:3,categoryIds:[e.id],gameIds:this.forGame?[this.game.id]:null,playerIds:[],goalkeeperIds:[],teamId:this.teamSelected,matchResult:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};this.$emit("open-media-player",a)}},mounted(){this.setHeaderStickyListener();const e=()=>{const a=document.querySelector(".gsc-set-piece");a?this.containerWidth=a.clientWidth:setTimeout(()=>{},400)};window.addEventListener("resize",e),this.$nextTick(e)}},L6t={class:"gsc-set-piece"},R6t={ref:"header",class:"gsc-set-piece__header"};function D6t(e,a,r,u,y,i){const l=t.resolveComponent("GSCHeaderSetPiece"),n=t.resolveComponent("GSCDataToHighlight"),_=t.resolveComponent("GSCTrend"),f=t.resolveComponent("GSCConnectionsSetPiece"),o=t.resolveComponent("GSCModalBreakdown"),m=t.resolveComponent("GSCSpecificPlays");return t.openBlock(),t.createElementBlock("div",L6t,[t.createElementVNode("div",R6t,[(t.openBlock(),t.createBlock(l,{"width-container":y.containerWidth,type:r.forTeam?0:3,"teams-data":y.teamsData,"game-info":r.game,"total-corners":i.calculateTotal,"show-corners":y.showCorners,"in-favor":y.infavoragainst,"corners-in-favor":i.cornersInFavor,"corners-against":i.cornersAgainst,"for-game":r.forGame,key:y.updateFilter,lateralidad:y.lateralidad,"available-players":y.filterPlayersAvailable,"available-games":y.filterGamesAvailable,"is-synchronization":r.isSynchronization,onChangeShowFilters:i.onChangeShowFilters,onChangetypePlay:i.getTypePlay,onOpenModal:i.clickOpenModal,onTeamselected:i.getTeamSelected,onInfavoragainstteam:i.getInFavorAgainstTeam,onFilter_results_by_time:i.getFilterResultsByTime,onFilter_details:i.getFilterDetails,onFilter_games:i.getFilterGames,onFilter_takencorners:i.getFilterTakenCorners,onFilter_howwascorner:i.getFilterHowWasCorner,onFilter_zone:i.getFilterZone,onFilter_whathappened:i.getFilterWhatHappened},null,8,["width-container","type","teams-data","game-info","total-corners","show-corners","in-favor","corners-in-favor","corners-against","for-game","lateralidad","available-players","available-games","is-synchronization","onChangeShowFilters","onChangetypePlay","onOpenModal","onTeamselected","onInfavoragainstteam","onFilter_results_by_time","onFilter_details","onFilter_games","onFilter_takencorners","onFilter_howwascorner","onFilter_zone","onFilter_whathappened"]))],512),!r.isSynchronization&&y.teamSelected>0?(t.openBlock(),t.createBlock(n,{key:0,team:y.teamSelected,season:r.game.season,"in-favor":y.infavoragainst,"width-container":y.containerWidth},null,8,["team","season","in-favor","width-container"])):t.createCommentVNode("",!0),r.isSynchronization?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_,{"players-data":y.playersData,"teams-data":y.teamsData,"touch-all-data":i.calculationTouchesData,"field-positions-all":i.calculationPositionsData,"width-container":y.containerWidth,"in-favor":y.infavoragainst,"for-game":r.forGame,"home-team":r.game.home_team,"away-team":r.game.away_team,"acronym-home":r.game.home_acronym,"acronym-away":r.game.away_acronym,team:y.teamSelected,"type-play":y.typePlay,selected_category:y.filters.cornertype,"is-tactic-visible":r.isTacticVisible,key:y.updateTrend,onChangelateralidad:i.setCornersSide},null,8,["players-data","teams-data","touch-all-data","field-positions-all","width-container","in-favor","for-game","home-team","away-team","acronym-home","acronym-away","team","type-play","selected_category","is-tactic-visible","onChangelateralidad"])),!r.isSynchronization&&y.teamSelected>0?(t.openBlock(),t.createBlock(f,{"seasons-by-game":y.seasonsByGame,"matches-by-game":y.matchesByGame,"rivals-by-game":y.rivalsByGame,"width-container":y.containerWidth,"players-data":y.playersData,"teams-data":y.teamsData,"touch-all-data":i.calculationTouchesData,"team-id":r.forGame?y.infavoragainst?y.teamSelected:y.teamSelected==r.game.home_team?r.game.away_team:r.game.home_team:y.teamSelected,"in-favor":y.infavoragainst,"for-game":r.forGame,key:y.updateConnections},null,8,["seasons-by-game","matches-by-game","rivals-by-game","width-container","players-data","teams-data","touch-all-data","team-id","in-favor","for-game"])):t.createCommentVNode("",!0),y.openModal?(t.openBlock(),t.createBlock(o,{key:3,"component-width":y.containerWidth,onClickClose:i.clickCloseFinal,"show-modal-prop":y.openModal,id:y.teamSelected,"season-id":r.game.season,game:r.game.id,onClickPlay:i.onOpenMediaPlayerJson,prematch:!!r.forGame},null,8,["component-width","onClickClose","show-modal-prop","id","season-id","game","onClickPlay","prematch"])):t.createCommentVNode("",!0),y.teamSelected&&r.game.season?(t.openBlock(),t.createBlock(m,{key:4,"team-id-for-analysis":y.teamSelected,"season-id-for-analysis":r.game?r.game.season:y.seasonId,"width-container":y.containerWidth,filters:y.filters,"is-game-only":i.isGameOnly,game:r.game,"is-against-mode":!y.infavoragainst,"are-filters-open":y.areFiltersOpen,"is-tactic-visible":r.isTacticVisible,"is-synchronization":r.isSynchronization,onOpenMediaPlayer:i.onOpenMediaPlayer},null,8,["team-id-for-analysis","season-id-for-analysis","width-container","filters","is-game-only","game","is-against-mode","are-filters-open","is-tactic-visible","is-synchronization","onOpenMediaPlayer"])):t.createCommentVNode("",!0)])}const $6t=Ti(V6t,[["render",D6t],["__scopeId","data-v-683751ab"]]),sBt="",lBt="",j6t={class:"datagame-container"},U6t=Si({__name:"GSCTacticaFijaMain",props:{game:{type:Object,default:()=>({})},isTacticVisible:{type:Boolean,default:!0}},emits:["open-media-player"],setup(e,{emit:a}){function r(u){a("open-media-player",u)}return(u,y)=>(t.openBlock(),t.createElementBlock("div",j6t,[t.createVNode(t.unref($6t),{game:{id:e.game.gameId,home_team:e.game.homeTeam.team_id,away_team:e.game.awayTeam.team_id,season:e.game.seasonId,game_status:e.game.game_status,home_acronym:e.game.homeTeam.acronym,away_acronym:e.game.awayTeam.acronym,logo_home:"https://az755631.vo.msecnd.net/teams-80/"+e.game.homeTeam.team_id+".png",logo_away:"https://az755631.vo.msecnd.net/teams-80/"+e.game.awayTeam.team_id+".png"},"for-season":e.game.game_status==4,"for-team":!1,"for-game":e.game.game_status!=4,"is-tactic-visible":e.isTacticVisible,onOpenMediaPlayer:r},null,8,["game","for-season","for-game","is-tactic-visible"])]))}},[["__scopeId","data-v-52f7049d"]]),$0=(e,a)=>{const r=e.__vccOpts||e;for(const[u,y]of a)r[u]=y;return r},H6t={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const r=e,u=t.computed(()=>({"--height":r.height,"--width":r.width,"--padding":r.padding,"--border-radius":r.borderRadius,"--border":`solid ${r.borderWidth} ${r.borderColor}`,"--background-color":r.backgroundColor,"--font-color":r.fontColor,"--font-size":r.fontSize,"--font-family":r.fontFamily,"--active-background-color":r.activeBackgroundColor||r.backgroundColor,"--active-border-color":r.activeBorderColor||r.borderColor,"--active-font-color":r.activeFontColor||r.fontColor}));function y(){a("click")}return(i,l)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(u.value),onClick:y},t.toDisplayString(e.text),7))}},G6t=$0(H6t,[["__scopeId","data-v-ea76c1c1"]]);function cV(e,a){return function(){return e.apply(a,arguments)}}const{toString:W6t}=Object.prototype,{getPrototypeOf:Z6}=Object,M_=(e=>a=>{const r=W6t.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),jd=e=>(e=e.toLowerCase(),a=>M_(a)===e),I_=e=>a=>typeof a===e,{isArray:cf}=Array,j0=I_("undefined");function q6t(e){return e!==null&&!j0(e)&&e.constructor!==null&&!j0(e.constructor)&&_c(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dV=jd("ArrayBuffer");function Y6t(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&dV(e.buffer),a}const Z6t=I_("string"),_c=I_("function"),uV=I_("number"),O_=e=>e!==null&&typeof e=="object",X6t=e=>e===!0||e===!1,F_=e=>{if(M_(e)!=="object")return!1;const a=Z6(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},K6t=jd("Date"),J6t=jd("File"),Q6t=jd("Blob"),e8t=jd("FileList"),t8t=e=>O_(e)&&_c(e.pipe),a8t=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||_c(e.append)&&((a=M_(e))==="formdata"||a==="object"&&_c(e.toString)&&e.toString()==="[object FormData]"))},r8t=jd("URLSearchParams"),n8t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function U0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let u,y;if(typeof e!="object"&&(e=[e]),cf(e))for(u=0,y=e.length;u<y;u++)a.call(null,e[u],u,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let n;for(u=0;u<l;u++)n=i[u],a.call(null,e[n],n,e)}}function pV(e,a){a=a.toLowerCase();const r=Object.keys(e);let u=r.length,y;for(;u-- >0;)if(y=r[u],a===y.toLowerCase())return y;return null}const hV=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fV=e=>!j0(e)&&e!==hV;function X6(){const{caseless:e}=fV(this)&&this||{},a={},r=(u,y)=>{const i=e&&pV(a,y)||y;F_(a[i])&&F_(u)?a[i]=X6(a[i],u):F_(u)?a[i]=X6({},u):cf(u)?a[i]=u.slice():a[i]=u};for(let u=0,y=arguments.length;u<y;u++)arguments[u]&&U0(arguments[u],r);return a}const i8t=(e,a,r,{allOwnKeys:u}={})=>(U0(a,(y,i)=>{r&&_c(y)?e[i]=cV(y,r):e[i]=y},{allOwnKeys:u}),e),o8t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s8t=(e,a,r,u)=>{e.prototype=Object.create(a.prototype,u),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},l8t=(e,a,r,u)=>{let y,i,l;const n={};if(a=a||{},e==null)return a;do{for(y=Object.getOwnPropertyNames(e),i=y.length;i-- >0;)l=y[i],(!u||u(l,e,a))&&!n[l]&&(a[l]=e[l],n[l]=!0);e=r!==!1&&Z6(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},c8t=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const u=e.indexOf(a,r);return u!==-1&&u===r},d8t=e=>{if(!e)return null;if(cf(e))return e;let a=e.length;if(!uV(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},u8t=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Z6(Uint8Array)),p8t=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let u;for(;(u=r.next())&&!u.done;){const y=u.value;a.call(e,y[0],y[1])}},h8t=(e,a)=>{let r;const u=[];for(;(r=e.exec(a))!==null;)u.push(r);return u},f8t=jd("HTMLFormElement"),m8t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,u){return r.toUpperCase()+u}),mV=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),g8t=jd("RegExp"),gV=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),u={};U0(r,(y,i)=>{let l;(l=a(y,i,e))!==!1&&(u[i]=l||y)}),Object.defineProperties(e,u)},y8t=e=>{gV(e,(a,r)=>{if(_c(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const u=e[r];if(_c(u)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_8t=(e,a)=>{const r={},u=y=>{y.forEach(i=>{r[i]=!0})};return cf(e)?u(e):u(String(e).split(a)),r},v8t=()=>{},b8t=(e,a)=>(e=+e,Number.isFinite(e)?e:a),K6="abcdefghijklmnopqrstuvwxyz",yV="0123456789",_V={DIGIT:yV,ALPHA:K6,ALPHA_DIGIT:K6+K6.toUpperCase()+yV},x8t=(e=16,a=_V.ALPHA_DIGIT)=>{let r="";const{length:u}=a;for(;e--;)r+=a[Math.random()*u|0];return r};function w8t(e){return!!(e&&_c(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k8t=e=>{const a=new Array(10),r=(u,y)=>{if(O_(u)){if(a.indexOf(u)>=0)return;if(!("toJSON"in u)){a[y]=u;const i=cf(u)?[]:{};return U0(u,(l,n)=>{const _=r(l,y+1);!j0(_)&&(i[n]=_)}),a[y]=void 0,i}}return u};return r(e,0)},C8t=jd("AsyncFunction"),E8t=e=>e&&(O_(e)||_c(e))&&_c(e.then)&&_c(e.catch),Br={isArray:cf,isArrayBuffer:dV,isBuffer:q6t,isFormData:a8t,isArrayBufferView:Y6t,isString:Z6t,isNumber:uV,isBoolean:X6t,isObject:O_,isPlainObject:F_,isUndefined:j0,isDate:K6t,isFile:J6t,isBlob:Q6t,isRegExp:g8t,isFunction:_c,isStream:t8t,isURLSearchParams:r8t,isTypedArray:u8t,isFileList:e8t,forEach:U0,merge:X6,extend:i8t,trim:n8t,stripBOM:o8t,inherits:s8t,toFlatObject:l8t,kindOf:M_,kindOfTest:jd,endsWith:c8t,toArray:d8t,forEachEntry:p8t,matchAll:h8t,isHTMLForm:f8t,hasOwnProperty:mV,hasOwnProp:mV,reduceDescriptors:gV,freezeMethods:y8t,toObjectSet:_8t,toCamelCase:m8t,noop:v8t,toFiniteNumber:b8t,findKey:pV,global:hV,isContextDefined:fV,ALPHABET:_V,generateString:x8t,isSpecCompliantForm:w8t,toJSONObject:k8t,isAsyncFn:C8t,isThenable:E8t};function Xn(e,a,r,u,y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),u&&(this.request=u),y&&(this.response=y)}Br.inherits(Xn,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:Br.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vV=Xn.prototype,bV={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bV[e]={value:e}}),Object.defineProperties(Xn,bV),Object.defineProperty(vV,"isAxiosError",{value:!0}),Xn.from=(e,a,r,u,y,i)=>{const l=Object.create(vV);return Br.toFlatObject(e,l,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Xn.call(l,e.message,a,r,u,y),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const S8t=null;function J6(e){return Br.isPlainObject(e)||Br.isArray(e)}function xV(e){return Br.endsWith(e,"[]")?e.slice(0,-2):e}function wV(e,a,r){return e?e.concat(a).map(function(u,y){return u=xV(u),!r&&y?"["+u+"]":u}).join(r?".":""):a}function T8t(e){return Br.isArray(e)&&!e.some(J6)}const A8t=Br.toFlatObject(Br,{},null,function(e){return/^is[A-Z]/.test(e)});function z_(e,a,r){if(!Br.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=Br.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!Br.isUndefined(s[c])});const u=r.metaTokens,y=r.visitor||f,i=r.dots,l=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&Br.isSpecCompliantForm(a);if(!Br.isFunction(y))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Br.isDate(c))return c.toISOString();if(!n&&Br.isBlob(c))throw new Xn("Blob is not supported. Use a Buffer instead.");return Br.isArrayBuffer(c)||Br.isTypedArray(c)?n&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,s,d){let p=c;if(c&&!d&&typeof c=="object"){if(Br.endsWith(s,"{}"))s=u?s:s.slice(0,-2),c=JSON.stringify(c);else if(Br.isArray(c)&&T8t(c)||(Br.isFileList(c)||Br.endsWith(s,"[]"))&&(p=Br.toArray(c)))return s=xV(s),p.forEach(function(h,g){!(Br.isUndefined(h)||h===null)&&a.append(l===!0?wV([s],g,i):l===null?s:s+"[]",_(h))}),!1}return J6(c)?!0:(a.append(wV(d,s,i),_(c)),!1)}const o=[],m=Object.assign(A8t,{defaultVisitor:f,convertValue:_,isVisitable:J6});function x(c,s){if(!Br.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));o.push(c),Br.forEach(c,function(d,p){(!(Br.isUndefined(d)||d===null)&&y.call(a,d,Br.isString(p)?p.trim():p,s,m))===!0&&x(d,s?s.concat(p):[p])}),o.pop()}}if(!Br.isObject(e))throw new TypeError("data must be an object");return x(e),a}function kV(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Q6(e,a){this._pairs=[],e&&z_(e,this,a)}const CV=Q6.prototype;CV.append=function(e,a){this._pairs.push([e,a])},CV.toString=function(e){const a=e?function(r){return e.call(this,r,kV)}:kV;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function N8t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function EV(e,a,r){if(!a)return e;const u=r&&r.encode||N8t,y=r&&r.serialize;let i;if(y?i=y(a,r):i=Br.isURLSearchParams(a)?a.toString():new Q6(a,r).toString(u),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class B8t{constructor(){this.handlers=[]}use(a,r,u){return this.handlers.push({fulfilled:a,rejected:r,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){Br.forEach(this.handlers,function(r){r!==null&&a(r)})}}const SV=B8t,TV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M8t=typeof URLSearchParams<"u"?URLSearchParams:Q6,I8t=typeof FormData<"u"?FormData:null,O8t=typeof Blob<"u"?Blob:null,F8t={isBrowser:!0,classes:{URLSearchParams:M8t,FormData:I8t,Blob:O8t},protocols:["http","https","file","blob","url","data"]},AV=typeof window<"u"&&typeof document<"u",z8t=(e=>AV&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),P8t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),V8t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AV,hasStandardBrowserEnv:z8t,hasStandardBrowserWebWorkerEnv:P8t},Symbol.toStringTag,{value:"Module"})),Ud={...V8t,...F8t};function L8t(e,a){return z_(e,new Ud.classes.URLSearchParams,Object.assign({visitor:function(r,u,y,i){return Ud.isNode&&Br.isBuffer(r)?(this.append(u,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function R8t(e){return Br.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function D8t(e){const a={},r=Object.keys(e);let u;const y=r.length;let i;for(u=0;u<y;u++)i=r[u],a[i]=e[i];return a}function NV(e){function a(r,u,y,i){let l=r[i++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),_=i>=r.length;return l=!l&&Br.isArray(y)?y.length:l,_?(Br.hasOwnProp(y,l)?y[l]=[y[l],u]:y[l]=u,!n):((!y[l]||!Br.isObject(y[l]))&&(y[l]=[]),a(r,u,y[l],i)&&Br.isArray(y[l])&&(y[l]=D8t(y[l])),!n)}if(Br.isFormData(e)&&Br.isFunction(e.entries)){const r={};return Br.forEachEntry(e,(u,y)=>{a(R8t(u),y,r,0)}),r}return null}function $8t(e,a,r){if(Br.isString(e))try{return(a||JSON.parse)(e),Br.trim(e)}catch(u){if(u.name!=="SyntaxError")throw u}return(r||JSON.stringify)(e)}const e8={transitional:TV,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",u=r.indexOf("application/json")>-1,y=Br.isObject(e);if(y&&Br.isHTMLForm(e)&&(e=new FormData(e)),Br.isFormData(e))return u?JSON.stringify(NV(e)):e;if(Br.isArrayBuffer(e)||Br.isBuffer(e)||Br.isStream(e)||Br.isFile(e)||Br.isBlob(e))return e;if(Br.isArrayBufferView(e))return e.buffer;if(Br.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(y){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L8t(e,this.formSerializer).toString();if((i=Br.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return z_(i?{"files[]":e}:e,l&&new l,this.formSerializer)}}return y||u?(a.setContentType("application/json",!1),$8t(e)):e}],transformResponse:[function(e){const a=this.transitional||e8.transitional,r=a&&a.forcedJSONParsing,u=this.responseType==="json";if(e&&Br.isString(e)&&(r&&!this.responseType||u)){const y=!(a&&a.silentJSONParsing)&&u;try{return JSON.parse(e)}catch(i){if(y)throw i.name==="SyntaxError"?Xn.from(i,Xn.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ud.classes.FormData,Blob:Ud.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Br.forEach(["delete","get","head","post","put","patch"],e=>{e8.headers[e]={}});const t8=e8,j8t=Br.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"]),U8t=e=>{const a={};let r,u,y;return e&&e.split(`
|
|
3565
3565
|
`).forEach(function(i){y=i.indexOf(":"),r=i.substring(0,y).trim().toLowerCase(),u=i.substring(y+1).trim(),!(!r||a[r]&&j8t[r])&&(r==="set-cookie"?a[r]?a[r].push(u):a[r]=[u]:a[r]=a[r]?a[r]+", "+u:u)}),a},BV=Symbol("internals");function H0(e){return e&&String(e).trim().toLowerCase()}function P_(e){return e===!1||e==null?e:Br.isArray(e)?e.map(P_):String(e)}function H8t(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=r.exec(e);)a[u[1]]=u[2];return a}const G8t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function a8(e,a,r,u,y){if(Br.isFunction(u))return u.call(this,a,r);if(y&&(a=r),!!Br.isString(a)){if(Br.isString(u))return a.indexOf(u)!==-1;if(Br.isRegExp(u))return u.test(a)}}function W8t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,u)=>r.toUpperCase()+u)}function q8t(e,a){const r=Br.toCamelCase(" "+a);["get","set","has"].forEach(u=>{Object.defineProperty(e,u+r,{value:function(y,i,l){return this[u].call(this,a,y,i,l)},configurable:!0})})}class V_{constructor(a){a&&this.set(a)}set(a,r,u){const y=this;function i(n,_,f){const o=H0(_);if(!o)throw new Error("header name must be a non-empty string");const m=Br.findKey(y,o);(!m||y[m]===void 0||f===!0||f===void 0&&y[m]!==!1)&&(y[m||_]=P_(n))}const l=(n,_)=>Br.forEach(n,(f,o)=>i(f,o,_));return Br.isPlainObject(a)||a instanceof this.constructor?l(a,r):Br.isString(a)&&(a=a.trim())&&!G8t(a)?l(U8t(a),r):a!=null&&i(r,a,u),this}get(a,r){if(a=H0(a),a){const u=Br.findKey(this,a);if(u){const y=this[u];if(!r)return y;if(r===!0)return H8t(y);if(Br.isFunction(r))return r.call(this,y,u);if(Br.isRegExp(r))return r.exec(y);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=H0(a),a){const u=Br.findKey(this,a);return!!(u&&this[u]!==void 0&&(!r||a8(this,this[u],u,r)))}return!1}delete(a,r){const u=this;let y=!1;function i(l){if(l=H0(l),l){const n=Br.findKey(u,l);n&&(!r||a8(u,u[n],n,r))&&(delete u[n],y=!0)}}return Br.isArray(a)?a.forEach(i):i(a),y}clear(a){const r=Object.keys(this);let u=r.length,y=!1;for(;u--;){const i=r[u];(!a||a8(this,this[i],i,a,!0))&&(delete this[i],y=!0)}return y}normalize(a){const r=this,u={};return Br.forEach(this,(y,i)=>{const l=Br.findKey(u,i);if(l){r[l]=P_(y),delete r[i];return}const n=a?W8t(i):String(i).trim();n!==i&&delete r[i],r[n]=P_(y),u[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return Br.forEach(this,(u,y)=>{u!=null&&u!==!1&&(r[y]=a&&Br.isArray(u)?u.join(", "):u)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
|
|
3566
3566
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const u=new this(a);return r.forEach(y=>u.set(y)),u}static accessor(a){const r=(this[BV]=this[BV]={accessors:{}}).accessors,u=this.prototype;function y(i){const l=H0(i);r[l]||(q8t(u,i),r[l]=!0)}return Br.isArray(a)?a.forEach(y):y(a),this}}V_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Br.reduceDescriptors(V_.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(u){this[r]=u}}}),Br.freezeMethods(V_);const vu=V_;function r8(e,a){const r=this||t8,u=a||r,y=vu.from(u.headers);let i=u.data;return Br.forEach(e,function(l){i=l.call(r,i,y.normalize(),a?a.status:void 0)}),y.normalize(),i}function MV(e){return!!(e&&e.__CANCEL__)}function G0(e,a,r){Xn.call(this,e??"canceled",Xn.ERR_CANCELED,a,r),this.name="CanceledError"}Br.inherits(G0,Xn,{__CANCEL__:!0});function Y8t(e,a,r){const u=r.config.validateStatus;!r.status||!u||u(r.status)?e(r):a(new Xn("Request failed with status code "+r.status,[Xn.ERR_BAD_REQUEST,Xn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Z8t=Ud.hasStandardBrowserEnv?{write(e,a,r,u,y,i){const l=[e+"="+encodeURIComponent(a)];Br.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Br.isString(u)&&l.push("path="+u),Br.isString(y)&&l.push("domain="+y),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function X8t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function K8t(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function IV(e,a){return e&&!X8t(a)?K8t(e,a):a}const J8t=Ud.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function u(y){let i=y;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=u(window.location.href),function(y){const i=Br.isString(y)?u(y):y;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}();function Q8t(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function e7t(e,a){e=e||10;const r=new Array(e),u=new Array(e);let y=0,i=0,l;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),f=u[i];l||(l=_),r[y]=n,u[y]=_;let o=i,m=0;for(;o!==y;)m+=r[o++],o=o%e;if(y=(y+1)%e,y===i&&(i=(i+1)%e),_-l<a)return;const x=f&&_-f;return x?Math.round(m*1e3/x):void 0}}function OV(e,a){let r=0;const u=e7t(50,250);return y=>{const i=y.loaded,l=y.lengthComputable?y.total:void 0,n=i-r,_=u(n),f=i<=l;r=i;const o={loaded:i,total:l,progress:l?i/l:void 0,bytes:n,rate:_||void 0,estimated:_&&l&&f?(l-i)/_:void 0,event:y};o[a?"download":"upload"]=!0,e(o)}}const t7t=typeof XMLHttpRequest<"u",a7t=t7t&&function(e){return new Promise(function(a,r){let u=e.data;const y=vu.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,n;function _(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let f;if(Br.isFormData(u)){if(Ud.hasStandardBrowserEnv||Ud.hasStandardBrowserWebWorkerEnv)y.setContentType(!1);else if((f=y.getContentType())!==!1){const[s,...d]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];y.setContentType([s||"multipart/form-data",...d].join("; "))}}let o=new XMLHttpRequest;if(e.auth){const s=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.set("Authorization","Basic "+btoa(s+":"+d))}const m=IV(e.baseURL,e.url);o.open(e.method.toUpperCase(),EV(m,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const s=vu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:s,config:e,request:o};Y8t(function(p){a(p),_()},function(p){r(p),_()},d),o=null}if("onloadend"in o?o.onloadend=x:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(x)},o.onabort=function(){o&&(r(new Xn("Request aborted",Xn.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new Xn("Network Error",Xn.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let s=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||TV;e.timeoutErrorMessage&&(s=e.timeoutErrorMessage),r(new Xn(s,d.clarifyTimeoutError?Xn.ETIMEDOUT:Xn.ECONNABORTED,e,o)),o=null},Ud.hasStandardBrowserEnv&&(l&&Br.isFunction(l)&&(l=l(e)),l||l!==!1&&J8t(m))){const s=e.xsrfHeaderName&&e.xsrfCookieName&&Z8t.read(e.xsrfCookieName);s&&y.set(e.xsrfHeaderName,s)}u===void 0&&y.setContentType(null),"setRequestHeader"in o&&Br.forEach(y.toJSON(),function(s,d){o.setRequestHeader(d,s)}),Br.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),i&&i!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",OV(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",OV(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=s=>{o&&(r(!s||s.type?new G0(null,e,o):s),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const c=Q8t(m);if(c&&Ud.protocols.indexOf(c)===-1){r(new Xn("Unsupported protocol "+c+":",Xn.ERR_BAD_REQUEST,e));return}o.send(u||null)})},n8={http:S8t,xhr:a7t};Br.forEach(n8,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const FV=e=>`- ${e}`,r7t=e=>Br.isFunction(e)||e===null||e===!1,zV={getAdapter:e=>{e=Br.isArray(e)?e:[e];const{length:a}=e;let r,u;const y={};for(let i=0;i<a;i++){r=e[i];let l;if(u=r,!r7t(r)&&(u=n8[(l=String(r)).toLowerCase()],u===void 0))throw new Xn(`Unknown adapter '${l}'`);if(u)break;y[l||"#"+i]=u}if(!u){const i=Object.entries(y).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let l=a?i.length>1?`since :
|
|
3567
3567
|
`+i.map(FV).join(`
|
|
@@ -3570,5 +3570,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3570
3570
|
* vuex v4.0.2
|
|
3571
3571
|
* (c) 2021 Evan You
|
|
3572
3572
|
* @license MIT
|
|
3573
|
-
*/var C7t="store";function zp(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function GV(e){return e!==null&&typeof e=="object"}function E7t(e){return e&&typeof e.then=="function"}function jc(e,a){if(!e)throw new Error("[vuex] "+a)}function S7t(e,a){return function(){return e(a)}}function WV(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var u=a.indexOf(e);u>-1&&a.splice(u,1)}}function qV(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;D_(e,r,[],e._modules.root,!0),h8(e,r,a)}function h8(e,a,r){var u=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var y=e._wrappedGetters,i={};zp(y,function(l,n){i[n]=S7t(l,e),Object.defineProperty(e.getters,n,{get:function(){return i[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&M7t(e),u&&r&&e._withCommit(function(){u.data=null})}function D_(e,a,r,u,y){var i=!r.length,l=e._modules.getNamespace(r);if(u.namespaced&&(e._modulesNamespaceMap[l]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+l+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[l]=u),!i&&!y){var n=f8(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in n&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),n[_]=u.state})}var f=u.context=T7t(e,l,r);u.forEachMutation(function(o,m){var x=l+m;A7t(e,x,o,f)}),u.forEachAction(function(o,m){var x=o.root?m:l+m,c=o.handler||o;N7t(e,x,c,f)}),u.forEachGetter(function(o,m){var x=l+m;B7t(e,x,o,f)}),u.forEachChild(function(o,m){D_(e,a,r.concat(m),o,y)})}function T7t(e,a,r){var u=a==="",y={dispatch:u?e.dispatch:function(i,l,n){var _=$_(i,l,n),f=_.payload,o=_.options,m=_.type;if((!o||!o.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+m);return}return e.dispatch(m,f)},commit:u?e.commit:function(i,l,n){var _=$_(i,l,n),f=_.payload,o=_.options,m=_.type;if((!o||!o.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+m);return}e.commit(m,f,o)}};return Object.defineProperties(y,{getters:{get:u?function(){return e.getters}:function(){return YV(e,a)}},state:{get:function(){return f8(e.state,r)}}}),y}function YV(e,a){if(!e._makeLocalGettersCache[a]){var r={},u=a.length;Object.keys(e.getters).forEach(function(y){if(y.slice(0,u)===a){var i=y.slice(u);Object.defineProperty(r,i,{get:function(){return e.getters[y]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function A7t(e,a,r,u){var y=e._mutations[a]||(e._mutations[a]=[]);y.push(function(i){r.call(e,u.state,i)})}function N7t(e,a,r,u){var y=e._actions[a]||(e._actions[a]=[]);y.push(function(i){var l=r.call(e,{dispatch:u.dispatch,commit:u.commit,getters:u.getters,state:u.state,rootGetters:e.getters,rootState:e.state},i);return E7t(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(n){throw e._devtoolHook.emit("vuex:error",n),n}):l})}function B7t(e,a,r,u){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(y){return r(u.state,u.getters,y.state,y.getters)}}function M7t(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&jc(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function f8(e,a){return a.reduce(function(r,u){return r[u]},e)}function $_(e,a,r){return GV(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&jc(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var I7t="vuex bindings",ZV="vuex:mutations",m8="vuex:actions",uf="vuex",O7t=0;function F7t(e,a){k7t({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[I7t]},function(r){r.addTimelineLayer({id:ZV,label:"Vuex Mutations",color:XV}),r.addTimelineLayer({id:m8,label:"Vuex Actions",color:XV}),r.addInspector({id:uf,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(u){if(u.app===e&&u.inspectorId===uf)if(u.filter){var y=[];eL(y,a._modules.root,u.filter,""),u.rootNodes=y}else u.rootNodes=[QV(a._modules.root,"")]}),r.on.getInspectorState(function(u){if(u.app===e&&u.inspectorId===uf){var y=u.nodeId;YV(a,y),u.state=V7t(R7t(a._modules,y),y==="root"?a.getters:a._makeLocalGettersCache,y)}}),r.on.editInspectorState(function(u){if(u.app===e&&u.inspectorId===uf){var y=u.nodeId,i=u.path;y!=="root"&&(i=y.split("/").filter(Boolean).concat(i)),a._withCommit(function(){u.set(a._state.data,i,u.state.value)})}}),a.subscribe(function(u,y){var i={};u.payload&&(i.payload=u.payload),i.state=y,r.notifyComponentUpdate(),r.sendInspectorTree(uf),r.sendInspectorState(uf),r.addTimelineEvent({layerId:ZV,event:{time:Date.now(),title:u.type,data:i}})}),a.subscribeAction({before:function(u,y){var i={};u.payload&&(i.payload=u.payload),u._id=O7t++,u._time=Date.now(),i.state=y,r.addTimelineEvent({layerId:m8,event:{time:u._time,title:u.type,groupId:u._id,subtitle:"start",data:i}})},after:function(u,y){var i={},l=Date.now()-u._time;i.duration={_custom:{type:"duration",display:l+"ms",tooltip:"Action duration",value:l}},u.payload&&(i.payload=u.payload),i.state=y,r.addTimelineEvent({layerId:m8,event:{time:Date.now(),title:u.type,groupId:u._id,subtitle:"end",data:i}})}})})}var XV=8702998,z7t=6710886,P7t=16777215,KV={label:"namespaced",textColor:P7t,backgroundColor:z7t};function JV(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function QV(e,a){return{id:a||"root",label:JV(a),tags:e.namespaced?[KV]:[],children:Object.keys(e._children).map(function(r){return QV(e._children[r],a+r+"/")})}}function eL(e,a,r,u){u.includes(r)&&e.push({id:u||"root",label:u.endsWith("/")?u.slice(0,u.length-1):u||"Root",tags:a.namespaced?[KV]:[]}),Object.keys(a._children).forEach(function(y){eL(e,a._children[y],r,u+y+"/")})}function V7t(e,a,r){a=r==="root"?a:a[r];var u=Object.keys(a),y={state:Object.keys(e.state).map(function(l){return{key:l,editable:!0,value:e.state[l]}})};if(u.length){var i=L7t(a);y.getters=Object.keys(i).map(function(l){return{key:l.endsWith("/")?JV(l):l,editable:!1,value:g8(function(){return i[l]})}})}return y}function L7t(e){var a={};return Object.keys(e).forEach(function(r){var u=r.split("/");if(u.length>1){var y=a,i=u.pop();u.forEach(function(l){y[l]||(y[l]={_custom:{value:{},display:l,tooltip:"Module",abstract:!0}}),y=y[l]._custom.value}),y[i]=g8(function(){return e[r]})}else a[r]=g8(function(){return e[r]})}),a}function R7t(e,a){var r=a.split("/").filter(function(u){return u});return r.reduce(function(u,y,i){var l=u[y];if(!l)throw new Error('Missing module "'+y+'" for path "'+a+'".');return i===r.length-1?l:l._children},a==="root"?e:e.root._children)}function g8(e){try{return e()}catch(a){return a}}var Uc=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},tL={namespaced:{configurable:!0}};tL.namespaced.get=function(){return!!this._rawModule.namespaced},Uc.prototype.addChild=function(e,a){this._children[e]=a},Uc.prototype.removeChild=function(e){delete this._children[e]},Uc.prototype.getChild=function(e){return this._children[e]},Uc.prototype.hasChild=function(e){return e in this._children},Uc.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Uc.prototype.forEachChild=function(e){zp(this._children,e)},Uc.prototype.forEachGetter=function(e){this._rawModule.getters&&zp(this._rawModule.getters,e)},Uc.prototype.forEachAction=function(e){this._rawModule.actions&&zp(this._rawModule.actions,e)},Uc.prototype.forEachMutation=function(e){this._rawModule.mutations&&zp(this._rawModule.mutations,e)},Object.defineProperties(Uc.prototype,tL);var Pp=function(e){this.register([],e,!1)};Pp.prototype.get=function(e){return e.reduce(function(a,r){return a.getChild(r)},this.root)},Pp.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(r,u){return a=a.getChild(u),r+(a.namespaced?u+"/":"")},"")},Pp.prototype.update=function(e){aL([],this.root,e)},Pp.prototype.register=function(e,a,r){var u=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&iL(e,a);var y=new Uc(a,r);if(e.length===0)this.root=y;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],y)}a.modules&&zp(a.modules,function(l,n){u.register(e.concat(n),l,r)})},Pp.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1],u=a.getChild(r);if(!u){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}u.runtime&&a.removeChild(r)},Pp.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1];return a?a.hasChild(r):!1};function aL(e,a,r){if(process.env.NODE_ENV!=="production"&&iL(e,r),a.update(r),r.modules)for(var u in r.modules){if(!a.getChild(u)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+u+"' on hot reloading, manual reload is needed");return}aL(e.concat(u),a.getChild(u),r.modules[u])}}var rL={assert:function(e){return typeof e=="function"},expected:"function"},D7t={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},nL={getters:rL,mutations:rL,actions:D7t};function iL(e,a){Object.keys(nL).forEach(function(r){if(a[r]){var u=nL[r];zp(a[r],function(y,i){jc(u.assert(y),$7t(e,r,i,y,u.expected))})}})}function $7t(e,a,r,u,y){var i=a+" should be "+y+' but "'+a+"."+r+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(u)+".",i}var Fl=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(jc(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),jc(this instanceof e,"store must be called with the new operator."));var u=a.plugins;u===void 0&&(u=[]);var y=a.strict;y===void 0&&(y=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Pp(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var l=this,n=this,_=n.dispatch,f=n.commit;this.dispatch=function(m,x){return _.call(l,m,x)},this.commit=function(m,x,c){return f.call(l,m,x,c)},this.strict=y;var o=this._modules.root.state;D_(this,o,[],this._modules.root),h8(this,o),u.forEach(function(m){return m(r)})},y8={state:{configurable:!0}};Fl.prototype.install=function(e,a){e.provide(a||C7t,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&F7t(e,this)},y8.state.get=function(){return this._state.data},y8.state.set=function(e){process.env.NODE_ENV!=="production"&&jc(!1,"use store.replaceState() to explicit replace store state.")},Fl.prototype.commit=function(e,a,r){var u=this,y=$_(e,a,r),i=y.type,l=y.payload,n=y.options,_={type:i,payload:l},f=this._mutations[i];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){f.forEach(function(o){o(l)})}),this._subscribers.slice().forEach(function(o){return o(_,u.state)}),process.env.NODE_ENV!=="production"&&n&&n.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Fl.prototype.dispatch=function(e,a){var r=this,u=$_(e,a),y=u.type,i=u.payload,l={type:y,payload:i},n=this._actions[y];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+y);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(l,r.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var _=n.length>1?Promise.all(n.map(function(f){return f(i)})):n[0](i);return new Promise(function(f,o){_.then(function(m){try{r._actionSubscribers.filter(function(x){return x.after}).forEach(function(x){return x.after(l,r.state)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(x))}f(m)},function(m){try{r._actionSubscribers.filter(function(x){return x.error}).forEach(function(x){return x.error(l,r.state,m)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(x))}o(m)})})},Fl.prototype.subscribe=function(e,a){return WV(e,this._subscribers,a)},Fl.prototype.subscribeAction=function(e,a){var r=typeof e=="function"?{before:e}:e;return WV(r,this._actionSubscribers,a)},Fl.prototype.watch=function(e,a,r){var u=this;return process.env.NODE_ENV!=="production"&&jc(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(u.state,u.getters)},a,Object.assign({},r))},Fl.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Fl.prototype.registerModule=function(e,a,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(jc(Array.isArray(e),"module path must be a string or an Array."),jc(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),D_(this,this.state,e,this._modules.get(e),r.preserveState),h8(this,this.state)},Fl.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&jc(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=f8(a.state,e.slice(0,-1));delete r[e[e.length-1]]}),qV(this)},Fl.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&jc(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Fl.prototype.hotUpdate=function(e){this._modules.update(e),qV(this,!0)},Fl.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Fl.prototype,y8);var j7t=H7t(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!oL(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),U7t(a).forEach(function(u){var y=u.key,i=u.val;r[y]=function(){for(var l=[],n=arguments.length;n--;)l[n]=arguments[n];var _=this.$store.commit;if(e){var f=G7t(this.$store,"mapMutations",e);if(!f)return;_=f.context.commit}return typeof i=="function"?i.apply(this,[_].concat(l)):_.apply(this.$store,[i].concat(l))}}),r});function U7t(e){return oL(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function oL(e){return Array.isArray(e)||GV(e)}function H7t(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function G7t(e,a,r){var u=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!u&&console.error("[vuex] module namespace not found in "+a+"(): "+r),u}const W7t="/icn-play.svg",q7t="/icn-tiros-de-esquina.svg",Y7t="/icn-tiro-a-porteria.svg",Z7t="/icn-cambio.svg",X7t="/icn-falta.svg",K7t="/atajada.svg",J7t="/fuera-de-lugar.svg",_8="/gol.svg",Q7t="/var.png",ekt="/tiempo-agregado.svg",tkt="/jugada-peligrosa.svg",akt="/penal-marcado.svg",rkt="/penal-fallado.svg",nkt="/inicia-el-partido.svg",ikt="/fin-del-partido.svg",okt="/icn-tarjeta-amarilla.svg",skt="/icn-tarjeta-roja.svg",lkt=[1,2,3,4,6],ckt={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return u8.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):u8.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):u8.RED_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>m7t(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||lkt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...j7t("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},dkt=e=>(t.pushScopeId("data-v-c284b7dc"),e=e(),t.popScopeId(),e),ukt={class:"time-line-event__details"},pkt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},hkt=["src"],fkt=dkt(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),mkt={class:"time-line-event__details__info"},gkt={key:0,class:"time-line-event__details__info__header__players"},ykt={class:"time-line-event__details__info__header__players__div-img"},_kt=["src"],vkt={class:"time-line-event__details__info__body"},bkt={class:"time-line-event__details__info__body__comment"},xkt={class:"time-line-event__minute__container"},wkt={class:"time-line-event__minute__container__text"},kkt={class:"time-line-event__minute__container__icon-container"},Ckt={class:"time-line-event__minute__container__icon-container__icon"},Ekt={key:0,src:q7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Skt={key:1,src:Y7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Tkt={key:2,src:Z7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Akt={key:3,src:X7t,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Nkt={key:4,src:K7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Bkt={key:5,src:J7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Mkt={key:6,src:_8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ikt={key:7,src:_8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Okt={key:8,src:_8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Fkt={key:9,src:Q7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},zkt={key:10,src:ekt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Pkt={key:11,src:tkt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Vkt={key:12,src:akt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lkt={key:13,src:rkt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Rkt={key:14,src:nkt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Dkt={key:15,src:ikt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$kt={key:16,src:okt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jkt={key:17,src:skt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Ukt={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Hkt(e,a,r,u,y,i){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",i.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:y.gameEventKey},[t.createElementVNode("div",ukt,[r.gameEvent.video_link!=="-"&&r.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=l=>i.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",pkt,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,hkt)]),fkt])):t.createCommentVNode("",!0),t.createElementVNode("div",mkt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",i.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",gkt,[i.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.srcImgPlayers,(l,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":n===1}]),key:n},[t.createElementVNode("div",ykt,[t.createElementVNode("img",{src:l,alt:""},null,8,_kt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",i.nameClasses]),onClick:a[1]||(a[1]=l=>i.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:W7t,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(r.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${r.gameEvent.event_type_name}`:r.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(r.gameEvent.category_id?r.gameEvent.event_type_id===5?r.gameEvent.category_name:r.gameEvent.event_type_name==="Gol"?r.gameEvent.event_type_name+" de "+r.gameEvent.team_name:r.gameEvent.event_type_name:r.gameEvent.comments),1)],2)],2),t.createElementVNode("div",vkt,[t.createElementVNode("div",bkt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",i.minuteClasses])},[t.createElementVNode("div",xkt,[t.createElementVNode("div",wkt,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",kkt,[t.createElementVNode("div",Ckt,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Ekt)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Skt)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Tkt)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Akt)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Nkt)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Bkt)):r.gameEvent.category_id==6&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==5&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==1&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==2&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==3&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==7&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==12&&r.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",Mkt)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Ikt)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Okt)):r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Fkt)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",zkt)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",Pkt)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Vkt)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Lkt)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==16||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==18||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==20||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Rkt)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==13||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==17||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==19||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==21||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",Dkt)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",$kt)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",jkt)):(t.openBlock(),t.createElementBlock("img",Ukt))])])])],2)],6)}const Gkt=$0(ckt,[["render",Hkt],["__scopeId","data-v-c284b7dc"]]),Wkt={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},qkt={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let j_=null;const Ykt={name:"TimeLine",components:{Tooltip:u7t,TimeLineEvent:Gkt},mixins:[h7t],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":Wkt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await $V.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)j_=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),j_.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const r=this.$refs[`gameEventDiv${a}`][0],u=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,y=e+12;r&&(r.style.height=`${y}px`),u&&(u.style.height=`${y}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(r=>r.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const r=qkt[a.game_status];r&&this.timeLineStatuses.push({...r,gameEvent:a})}),this.timeLineStatuses.sort((a,r)=>r.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return f7t(a)},thumbnailClick(e){this.dataVideo.link=e,this.dataVideo.visible=!0}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){j_&&j_.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,a]){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm([e,a]){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm([e,a]){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},sL=e=>(t.pushScopeId("data-v-f6284340"),e=e(),t.popScopeId(),e),Zkt={ref:"timeLine",class:"time-line"},Xkt={class:"time-line__header"},Kkt={class:"time-line__header__dot"},Jkt={class:"time-line__header__dot__home-team team-logo"},Qkt=["src"],e9t={class:"time-line__header__dot__away-team team-logo"},t9t=["src"],a9t={class:"time-line__game-events"},r9t={key:1,class:"start-line"},n9t=sL(()=>t.createElementVNode("div",null,null,-1)),i9t=sL(()=>t.createElementVNode("div",null,null,-1)),o9t=[n9t,i9t],s9t={key:1,class:"noEventText"},l9t={class:"tooltip-data"},c9t=["src"];function d9t(e,a,r,u,y,i){const l=t.resolveComponent("TimeLineEvent"),n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Zkt,[t.createElementVNode("div",Xkt,[t.createElementVNode("div",Kkt,[t.createElementVNode("div",Jkt,[t.createElementVNode("img",{src:i.getTeamLogoSrc("homeTeam"),alt:""},null,8,Qkt)]),t.createElementVNode("div",e9t,[t.createElementVNode("img",{src:i.getTeamLogoSrc("awayTeam"),alt:""},null,8,t9t)])])]),t.createElementVNode("div",a9t,[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:y.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gameEventsToShow,(_,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:_.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(i.getGameEventClassAndSetIcon(_,f))},[t.createElementVNode("div",{class:t.normalizeClass(i.getEventContainerClass(_))},[t.createVNode(l,{"game-event":_,"is-mobile":i.isMobile,"time-line-width":y.timeLineWidth,width:i.gameEventWidth,onEventHeight:o=>i.updateContainerHeight(o,f),onPlayerChanged:a[0]||(a[0]=o=>e.$emit("player-changed",o)),onThumbnailClick:i.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),r.gameData.status===1&&f===i.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",r9t,o9t)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",s9t,"Aún no comienza el partido"))])],512),t.createVNode(n,{data:y.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",l9t,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:y.dataVideo.link,format:"video/mp4"},null,8,c9t)])])]),_:1},8,["data"])],64)}const u9t=$0(Ykt,[["render",d9t],["__scopeId","data-v-f6284340"]]),p9t={class:"game-time-line__options"},h9t={class:"game-time-line__timeline"},f9t={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})}},setup(e){$V.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),r=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let u=null;const y=t.ref(["Todo","1er tiempo","2do tiempo"]),i=t.ref("Todo"),l=t.ref({}),n=t.ref(null),_=t.ref(0),f=t.computed(()=>{let s="all";return i.value==="1er tiempo"||i.value==="1er"?s="firstHalf":(i.value==="2do tiempo"||i.value==="2do")&&(s="secondHalf"),s}),o=t.computed(()=>_.value<500);function m(s){i.value=s}function x(s){l.value=s}function c(){if(window.ResizeObserver)u=new ResizeObserver(()=>{_.value=n.value.clientWidth}),u.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{u&&u.unobserve(n.value)}),(s,d)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:n,class:"game-time-line"},[t.createElementVNode("div",p9t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"game-time-line__options__option"},[t.createVNode(G6t,t.mergeProps(_.value<390?r.value:a.value,{text:p=="Todo"?p:_.value<390?p.substring(0,3):p,"is-active":i.value===p,onClick:h=>m(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",h9t,[t.createVNode(u9t,{"game-data":e.game,"time-line-period":f.value,"is-mobile":o.value,socket:e.socket,onGameEventsByPeriodFilled:x},null,8,["game-data","time-line-period","is-mobile","socket"])])],512))}},m9t=$0(f9t,[["__scopeId","data-v-787294df"]]);function g9t(e){const a=t.ref({width:0,height:0});function r(){const u=e.value.getBoundingClientRect();a.value.width=u.width,a.value.height=u.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const y9t=(e,a)=>{const r=e.__vccOpts||e;for(const[u,y]of a)r[u]=y;return r},v8={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},lL=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},cL=v8.setup;v8.setup=cL?(e,a)=>(lL(),cL(e,a)):lL;const _9t={ref:"gscScrollableContainer",class:"scrollable-container"},v9t={class:"scrollable-arrows"},b9t=["width","height","viewBox"],x9t=["stroke"],w9t={class:"scrollable-wrapper"},k9t={class:"scrollable-arrows"},C9t=["width","height","viewBox"],E9t=["stroke"];function S9t(e,a,r,u,y,i){return t.openBlock(),t.createElementBlock("div",_9t,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...l)=>i.scrollLeft&&i.scrollLeft(...l))},[t.createElementVNode("div",v9t,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,x9t)],8,b9t))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...l)=>i.getScroll&&i.getScroll(...l))},[t.createElementVNode("div",w9t,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...l)=>i.scrollRight&&i.scrollRight(...l))},[t.createElementVNode("div",k9t,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,E9t)],8,C9t))])],2)):t.createCommentVNode("",!0)],512)}const T9t=y9t(v8,[["render",S9t],["__scopeId","data-v-b548a08d"]]),A9t=(e,a)=>{const r=e.__vccOpts||e;for(const[u,y]of a)r[u]=y;return r},b8={components:{GSCSlider:T9t},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=g9t(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},dL=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},uL=b8.setup;b8.setup=uL?(e,a)=>(dL(),uL(e,a)):dL;const N9t={ref:"myDivRef"},B9t={key:0,class:"gs-switch-container"},M9t=["onClick"],I9t={key:1,class:"gs-switch-container-type"},O9t=["onClick"],F9t={key:2,class:"gs-switch-container-carousel"},z9t=["onClick"];function P9t(e,a,r,u,y,i){const l=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",N9t,[r.type==0?(t.openBlock(),t.createElementBlock("div",B9t,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(u.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,M9t))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",I9t,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(u.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:r.backgroundOptionDisable}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,O9t))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",F9t,[t.createVNode(l,{arrows:r.arrow,"background-color":r.background,"px-scroll":r.pxScroll,"scroll-color":r.scrollColor,"arrows-position":r.arrowsPosition,arrowsScrollHide:r.arrowsScrollHide,"arrows-background":r.arrowsBackground,"arrows-container-bg-l":r.arrowsContainerBgL,"arrows-container-bg-r":r.arrowsContainerBgR,"arrows-margin":r.arrowsMargin,"arrows-radius":r.arrowsRadius,"arrows-border":r.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,z9t))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const pL=A9t(b8,[["render",P9t],["__scopeId","data-v-8a86dfaf"]]);function hL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V9t(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var r=function u(){return this instanceof u?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var y=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(r,u,y.get?y:{enumerable:!0,get:function(){return e[u]}})}),r}var x8={exports:{}};function w8(){}w8.prototype={on:function(e,a,r){var u=this.e||(this.e={});return(u[e]||(u[e]=[])).push({fn:a,ctx:r}),this},once:function(e,a,r){var u=this;function y(){u.off(e,y),a.apply(r,arguments)}return y._=a,this.on(e,y,r)},emit:function(e){var a=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),u=0,y=r.length;for(u;u<y;u++)r[u].fn.apply(r[u].ctx,a);return this},off:function(e,a){var r=this.e||(this.e={}),u=r[e],y=[];if(u&&a)for(var i=0,l=u.length;i<l;i++)u[i].fn!==a&&u[i].fn._!==a&&y.push(u[i]);return y.length?r[e]=y:delete r[e],this}},x8.exports=w8,x8.exports.TinyEmitter=w8;var L9t=x8.exports,R9t=L9t,D9t=new R9t;const U_=hL(D9t),dBt="",$9t={class:"game-data__header"},j9t={class:"game-data__header__tournament-season-dropdown"},U9t={class:"game-data__header__teams-carousel"},H9t={class:"game-data__body"},G9t={class:"game-data__body__menu"},W9t={class:"game-data__body__menu__contmenuswitch"};ig.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const q9t=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:IQ,GSCGameTimeLine:m9t,GscSwitchComponent:pL,GSCLineupsMain:e0e,GSCDatosGSMain:G4e,GSCVideoGame:yTe,GSCSummaryMain:Jrt,GSCTacticaFijaMain:U6t}}),Y9t=Si(Object.assign(q9t,{props:{currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>({})},isSynchronization:{type:Boolean,default:!1}},emits:["openmedia","change-season-id","onOpenProfile"],setup(e,{emit:a}){const r=e,u=bb();U_.on("socket-connected",()=>{u.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const y=t.ref({season:[]}),i=t.ref({}),l=t.ref({}),n=t.ref(!0),_=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),f=t.ref([{componentName:"GSCSummaryMain",name:"Resumen",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"GSCDatosGSMain",name:"Datos Golstats",id:3},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Tactica Fija",id:7}]);let o=null;const m=t.ref(null),x=t.ref(0),c=t.ref(f.value[0]);let s=t.ref("");const d=t.computed(()=>{const A=[];return i.value&&i.value.id&&(A.push({id:i.value.id,name:i.value.name,type:i.value.type}),i.value.related_seasons&&i.value.related_seasons.forEach(M=>{A.push({id:M.id,type:M.type})})),A});function p(){o=new ResizeObserver(A=>{for(const M of A)x.value=M.contentRect.width}),o.observe(m.value)}const h=t.computed(()=>{let A={};return l.value&&l.value.game_id&&(A={gameId:l.value.game_id,id:l.value.game_id,seasonId:l.value.season_id,status:l.value.game_status,game_status:l.value.game_status==0?4:l.value.game_status,dateTimeUTC:l.value.date_time_utc,homeTeam:l.value.home_team,awayTeam:l.value.visiting_team,is_live:l.value.is_live}),A});t.watch(()=>u.state.nextGeneral.gameForAnalysis,()=>{u.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function g(A){y.value=A,n.value=A.is_captured!==0,y.value.id!==A.id&&(y.value=A)}function b(A){a("openmedia",A)}function v(A){a("onOpenProfile",A)}function w(A){E(A),A=="Estadísticas"&&(s.value="Comparativa")}function C(){s.value=""}function k(A){i.value.id!==A.id&&(i.value=A,a("change-season-id",A.id))}const B=t.computed(()=>f.value.map(A=>{if(n.value)return A.name;if(A.id!==5&&A.id!==6)return A.name}).filter(A=>A!=null));function E(A){c.value=f.value.find(M=>M.name===A)||f.value[0]}t.onMounted(()=>{p(),t.nextTick(()=>{r.isSynchronization&&E("Tactica Fija")})}),t.onBeforeUnmount(()=>{o&&o.disconnect()});function T(A){l.value=A}return(A,M)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:m},[t.createElementVNode("div",$9t,[t.createElementVNode("div",j9t,[t.createVNode(t.unref(v$),{"current-season-id":e.currentSeasonId,onInput:g},null,8,["current-season-id"]),t.createVNode(t.unref(j$),{"current-season-id":e.currentSeasonId,seasons:y.value.seasons,onInput:k},null,8,["current-season-id","seasons"])]),t.createElementVNode("div",U9t,[t.createVNode(t.unref(KG),{token:_.value,"await-for-seasons":"",seasons:d.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":r.defaultGameId,"sort-calendar":r.sortCalendar,onChangeGameCarousel:T},null,8,["token","seasons","default-game-id","sort-calendar"])])]),t.createElementVNode("div",H9t,[t.createElementVNode("div",G9t,[t.createElementVNode("div",W9t,[t.createVNode(t.unref(pL),{type:2,buttons:B.value,"font-family":"Poppins-Regular","font-size":"16px",width:x.value<400||x.value<700?"max-content":x.value<840||x.value<1050?"155px":"165px","selected-option":c.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:E},null,8,["buttons","width","selected-option"])])]),h.value&&h.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value.componentName),{key:0,game:h.value,subsection:t.unref(s),seasonSelected:i.value,showLineups:n.value,socket:e.socket,"is-tactic-visible":!!i.value.show_tactic,"is-synchronization":e.isSynchronization,onResetSubsection:C,onOpenmedia:b,onOnOpenProfile:v,onChangeToTab:w,onOpenMediaPlayer:b},null,40,["game","subsection","seasonSelected","showLineups","socket","is-tactic-visible","is-synchronization"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-16ed7ea9"]]);async function Hs({url:e,options:a={},retries:r=3}){return await ig.get(e,a).then(u=>u).catch(u=>r>0?Hs({url:e,options:a,retries:r-1}):u)}async function fL({seasonId:e},a=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(r){if(a)return fL({seasonId:e},!1);throw new Error(r)}}async function Z9t({seasonId:e}){try{return(await Hs({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function X9t({seasonId:e}){try{return(await Hs({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function K9t(e,a,r,u,y,i,l=!1){const n=r.map(_=>_===1?2:_===2?1:3);return e.filter(_=>{const f=i&&_[y.teamId]?_[y.teamId]!==i:!1,o=a===1?2:1;return(l||u.includes(_[y.gameId]))&&(!a||(f?o:a)===_[y.playingAs])&&(r.includes(_[y.matchResult])&&_[y.teamId]===i||n.includes(_[y.matchResult])&&_[y.teamId]!==i)})}function mL(e,a,r,u,y){return a.length===2&&r.length===3&&u.length===6?e:e.filter(i=>a.includes(i[y.playingAs])&&r.includes(i[y.matchResult])&&u.includes(i[y.section]))}async function gL({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Hs({url:a})).data}catch(a){return Promise.reject(a)}}async function J9t({seasonId:e,gameId:a}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:u}=await Hs({url:r});return u}catch(r){return Promise.reject(r)}}async function Q9t({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Hs({url:a})).data.data}catch(a){return Promise.reject(a)}}async function eCt({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Hs({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const tCt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let k8=null;function yL(){return k8||(k8=Z1(tCt)),k8}async function aCt(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Hs({url:a})).data}catch(a){return Promise.reject(a)}}async function _L({seasonId:e,teamId:a}){try{return await Hs({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(r){return Promise.reject(r)}}async function rCt(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Hs({url:a})}catch(a){return Promise.reject(a)}}async function nCt(e){try{return await Hs({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const iCt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,r,u){return K9t(e.seasonPlays,u["filterGeneral/getPlayingAs"],u["filterGeneral/getResults"],u["filterGeneral/getSelectedGamesIds"],yL(),u["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((r,u)=>{const y={...u};return y.home_team=e.currentSeasonTeams.find(i=>i.team_id===u.home_team),y.visiting_team=e.currentSeasonTeams.find(i=>i.team_id===u.visiting_team),r[u.matchday_abbreviation]?r[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?r[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(y):r[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[y]:r[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.date]:[y]},r},{});for(let[r,u]of Object.entries(a))a[r]=Object.entries(u).map(([y,i])=>({date:y,games:i})),a[r].sort((y,i)=>y.date<i.date?-1:y.date>i.date?1:0);return a},matchdaysDates(e,a){let r=[];if(a.nextGamesSchedule){let u=Object.keys(a.nextGamesSchedule);for(let y of u){let i=Number(y.replace("M","")),l=a.nextGamesSchedule[y].map(n=>({matchday:i,date:new Date(n.date)}));r=r.concat(l)}}return r},closestMatchDay(e,a){let r=new Date,u=0,y=-new Date(0,0,0).valueOf(),i=a.matchdaysDates,l=i.length;for(let n=0;n<i.length;n++)u=Math.abs(i[n].date-r),u<y&&(l=n,y=u);return i[l]?i[l].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},r=!1){try{const u=await fL({seasonId:a["filterGeneral/getSeasonId"]});if(r)return u;e("updateSeasonPlays",u)}catch(u){return Promise.reject(u)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const r=await gL({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const r=await aCt({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",r.teams)}catch(r){return Promise.reject(r)}},async isDataFilled({state:e,dispatch:a,commit:r}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return r("setIsSectionLoading",!1,{root:!0}),!0;const u=[void 0,void 0];return e.currentSeasonGames.length===0&&(u[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(u[1]=a("getCurrentSeasonTeams")),await Promise.all(u),!1}catch(u){throw new Error(u)}}}}};async function oCt({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:r}=await Hs({url:a});return r}catch(a){return Promise.reject(a)}}const sCt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let C8=null;function lCt(){return C8||(C8=Z1(sCt)),C8}class H_{constructor(){Vi(this,"maximumLiveSection",1);Vi(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vi(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,r,u){u&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=r,this.accomplished.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r)),this.accomplished.totalPostGame+=r,this.accomplished.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,r)}increaseReceivedByOne(a,r,u){u&&(this.setMaximumLiveSection(a),this.received.totalLive+=r,this.received.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r)),this.received.totalPostGame+=r,this.received.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,r)}increaseTrendLiveAccumulatedByOne(a,r,u){for(let y=r-1;y<a.accumulated.length;y++)a.accumulated[y]+=u}decreaseAccomplishedLiveByOne(a,r){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=r),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r))}decreaseReceivedLiveByOne(a,r){this.received.totalLive>0&&(this.received.totalLive-=r),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,r,u){for(let y=a.accumulated.length-1;y>=r-1;y--)a.accumulated[y]-=u}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,r){return a.map(u=>u/r)}calculateRanking(a,r,u,y,i,l,n,_){let f=[];y===3&&a&&a.length&&(u.playingAs.length!==2||u.matchResult.length!==3)?f=Array.from(a.reduce((m,x)=>{const c=x[r.playingAs]===1,s=c?"1":"2",d=m.get(x[r.gameId]);if(d)d[s]?d[s].arrayPlays.push(x):d[s]={numberTeamId:x[r.teamId],arrayPlays:[x]};else{const p={numberMatchResult:x[r.matchResult]};c&&(p[1]={numberTeamId:x[r.teamId],arrayPlays:[x]}),m.set(x[r.gameId],p)}return m},new Map).values()).reduce((m,x)=>{const c=u.playingAs.length===2?"both":u.playingAs[0].toString();return(c==="both"&&(x[1].numberTeamId===u.teamId||x[2].numberTeamId===u.teamId)||c!=="both"&&x[c].numberTeamId===u.teamId)&&u.matchResult.includes(x.numberMatchResult)&&m.push(...x[1].arrayPlays,...x[2].arrayPlays),m},[]).filter(m=>u.sections.includes(m[r.section])):(f=a?[...a]:[],n&&a&&(f=a.filter(o=>u.playingAs.includes(o[r.playingAs])&&u.matchResult.includes(o[r.matchResult])&&u.sections.includes(o[r.section])))),this.setTeamRanking(f,y,r,u.teamId,l,"accomplished",_)}setTeamRanking(a,r,u,y,i,l,n){let _=null,f=null;r===3&&(_=new Map,f={},a.forEach(x=>{const c=_.get(x[u.gameId]);c?c[x[u.teamId.toString()]]?c[x[u.teamId.toString()]]+=x[u.total]:c[x[u.teamId.toString()]]=x[u.total]:_.set(x[u.gameId],{[x[u.teamId.toString()]]:x[u.total]})}),Array.from(_.values()).forEach(x=>{const[c,s]=Object.keys(x).map(p=>p),d=x[c]+x[s];this.addPassesAvgByTeam(f,c,d?x[c]/d:0),this.addPassesAvgByTeam(f,s,d?x[s]/d:0)}));const o=i.sort((x,c)=>x.team_id-c.team_id).map(x=>{if(r===3){const c=f[x.team_id.toString()];return{teamId:x.team_id,points:c?c.numberTotalPassesAvg/c.numberGamesCount:0,total:c?c.numberTotalPassesAvg:0}}else{const c=a.reduce((s,d)=>d[u.teamId]===x.team_id&&r===d[u.categoryId]?s+d[u.total]:s,0);return{teamId:x.team_id,points:x[`${n}FilterGames`]?c/x[`${n}FilterGames`]:0,total:c}}}).sort((x,c)=>c.points-x.points);this.accomplished.arrayRankings=o;const m=o.findIndex(x=>x.teamId===y);r===3&&(this.accomplished.avgPreGame=o[m].points),this[l].ranking=m+1,this[l].leader=o[0]}addPassesAvgByTeam(a,r,u){a[r]?(a[r].numberGamesCount+=1,a[r].numberTotalPassesAvg+=u):a[r]={numberGamesCount:1,numberTotalPassesAvg:u}}}class bn{constructor(a,r,u,y,i,l,n,_,f,o){Vi(this,"id","");Vi(this,"generalId",0);Vi(this,"name","");Vi(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vi(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vi(this,"accomplishedCategoryIds",[]);Vi(this,"receivedCategoryIds",[]);Vi(this,"generalCategoriesIds",{accomplished:0,received:0});Vi(this,"specialMention","");Vi(this,"homeTeam",new H_);Vi(this,"visitingTeam",new H_);Vi(this,"isLeagueDataCalculated",!1);Vi(this,"leagueAccomplishedMax",0);Vi(this,"leagueReceivedMax",0);Vi(this,"leagueAccomplishedAvg",0);Vi(this,"leagueReceivedAvg",0);Vi(this,"leagueAccomplishedAccumulator",0);Vi(this,"leagueReceivedAccumulator",0);Vi(this,"homeTeamType","homeTeam");Vi(this,"visitingTeamType","visitingTeam");Vi(this,"betOnly",!1);Vi(this,"isPercent",!1);this.id=`${u.accomplished}-${u.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=u||{accomplished:0,received:0},this.name=y,this.names["0-0"]=y||"",this.names["1-1"]=i||"",this.names["0-1"]=l||"",this.names["1-0"]=n||"",this.generalId=_||0,this.betOnly=f||!1,this.isPercent=o||!1}addLeaguePlays(a,r,u){a.length===0||!u||this.isLeagueDataCalculated||(a.forEach(y=>{this.isAccomplishedLeaguePlay(y[r.categoryId])&&(this.leagueAccomplishedAccumulator+=y[r.total]),this.isReceivedLeaguePlay(y[r.categoryId])&&(this.leagueReceivedAccumulator+=y[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*u)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*u)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,r,u){let y="-";for(const[i,l]of Object.entries(this.generalCategoriesIds))a===l&&(y=`${i==="accomplished"?"0":"1"}${y}`),r===l&&(y=`${y}${i==="accomplished"?"0":"1"}`);y.length===3&&(this.mentions[y]=u)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,r,u,y,i){!u||!i||a!==this.homeTeamType&&a!==this.visitingTeamType||(u.forEach(l=>{this.isAccomplishedPlay(l[y.categoryId])?this[a].increaseAccomplishedByOne(l[y.section],l[y.total]):this.isReceivedPlay(l[y.categoryId])&&this[a].increaseReceivedByOne(l[y.section],l[y.total])}),this[a].calculateAvg(i))}addLivePlay(a,r,u,y,i=!1,l=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&u[y.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(u[y.section],u[y.total],!0)}subtractLivePlay(a,r,u,y,i){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(u[y.categoryId])&&!i?this[a].decreaseAccomplishedLiveByOne(u[y.section],u[y.total]):this.isReceivedPlay(u[y.categoryId])&&i&&this[a].decreaseReceivedLiveByOne(u[y.section],u[y.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(u=>a===u||`${a}_r`===u)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(r=>a===r)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,r,u,y,i,l=!1){this[this.homeTeamType].calculateRanking(a,r,u,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,l,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,r,y,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,l,this.visitingTeamType)}resetData(){this.homeTeam=new H_,this.visitingTeam=new H_,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const cCt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new bn([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new bn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new bn([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new bn([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new bn([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new bn([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new bn([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new bn([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new bn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new bn([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new bn([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new bn([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new bn([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new bn([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new bn([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new bn([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new bn([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new bn([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new bn([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new bn([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new bn([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new bn([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new bn([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new bn([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new bn([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new bn([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new bn([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new bn([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new bn([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new bn([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new bn([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new bn([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new bn([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new bn([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new bn([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new bn([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new bn([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new bn([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},dCt=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],uCt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let E8=null;function pCt(){return E8||(E8=Z1(uCt)),E8}const hCt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let S8=null;function fCt(){return S8||(S8=Z1(hCt)),S8}function G_(e,a,r){return[r.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function vL(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function T8(e,a,r){let u=[...a];return e[r.categoryId]===2&&(u[0]=14),e[r.categoryId]===20&&(u[0]=15),[14,15].includes(u[0])?u:null}var A8={exports:{}},mCt=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,gCt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],bL=function(a){var r=a,u=a.indexOf("["),y=a.indexOf("]");u!=-1&&y!=-1&&(a=a.substring(0,u)+a.substring(u,y).replace(/:/g,";")+a.substring(y,a.length));for(var i=mCt.exec(a||""),l={},n=14;n--;)l[gCt[n]]=i[n]||"";return u!=-1&&y!=-1&&(l.source=r,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=yCt(l,l.path),l.queryKey=_Ct(l,l.query),l};function yCt(e,a){var r=/\/{2,9}/g,u=a.replace(r,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&u.splice(0,1),a.substr(a.length-1,1)=="/"&&u.splice(u.length-1,1),u}function _Ct(e,a){var r={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,y,i){y&&(r[y]=i)}),r}var N8={exports:{}},B8={exports:{}},q0=1e3,Y0=q0*60,Z0=Y0*60,X0=Z0*24,vCt=X0*365.25,bCt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return xCt(e);if(r==="number"&&isNaN(e)===!1)return a.long?kCt(e):wCt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xCt(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*vCt;case"days":case"day":case"d":return r*X0;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Z0;case"minutes":case"minute":case"mins":case"min":case"m":return r*Y0;case"seconds":case"second":case"secs":case"sec":case"s":return r*q0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wCt(e){return e>=X0?Math.round(e/X0)+"d":e>=Z0?Math.round(e/Z0)+"h":e>=Y0?Math.round(e/Y0)+"m":e>=q0?Math.round(e/q0)+"s":e+"ms"}function kCt(e){return W_(e,X0,"day")||W_(e,Z0,"hour")||W_(e,Y0,"minute")||W_(e,q0,"second")||e+" ms"}function W_(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=u.debug=u.default=u,a.coerce=_,a.disable=l,a.enable=i,a.enabled=n,a.humanize=bCt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,m;for(m in f)o=(o<<5)-o+f.charCodeAt(m),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function u(f){var o;function m(){if(m.enabled){var x=m,c=+new Date,s=c-(o||c);x.diff=s,x.prev=o,x.curr=c,o=c;for(var d=new Array(arguments.length),p=0;p<d.length;p++)d[p]=arguments[p];d[0]=a.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var h=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(b,v){if(b==="%%")return b;h++;var w=a.formatters[v];if(typeof w=="function"){var C=d[h];b=w.call(x,C),d.splice(h,1),h--}return b}),a.formatArgs.call(x,d);var g=m.log||a.log||console.log.bind(console);g.apply(x,d)}}return m.namespace=f,m.enabled=a.enabled(f),m.useColors=a.useColors(),m.color=r(f),m.destroy=y,typeof a.init=="function"&&a.init(m),a.instances.push(m),m}function y(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function i(f){a.save(f),a.names=[],a.skips=[];var o,m=(typeof f=="string"?f:"").split(/[\s,]+/),x=m.length;for(o=0;o<x;o++)m[o]&&(f=m[o].replace(/\*/g,".*?"),f[0]==="-"?a.skips.push(new RegExp("^"+f.substr(1)+"$")):a.names.push(new RegExp("^"+f+"$")));for(o=0;o<a.instances.length;o++){var c=a.instances[o];c.enabled=a.enabled(c.namespace)}}function l(){a.enable("")}function n(f){if(f[f.length-1]==="*")return!0;var o,m;for(o=0,m=a.skips.length;o<m;o++)if(a.skips[o].test(f))return!1;for(o=0,m=a.names.length;o<m;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(B8,B8.exports);var CCt=B8.exports;(function(e,a){a=e.exports=CCt,a.log=y,a.formatArgs=u,a.save=i,a.load=l,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function u(_){var f=this.useColors;if(_[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+_[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),!!f){var o="color: "+this.color;_.splice(1,0,o,"color: inherit");var m=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(m++,c==="%c"&&(x=m))}),_.splice(x,0,o)}}function y(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function l(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(l());function n(){try{return window.localStorage}catch{}}})(N8,N8.exports);var q_=N8.exports,ECt=bL,xL=q_("socket.io-client:url"),SCt=TCt;function TCt(e,a){var r=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(xL("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),xL("parse %s",e),r=ECt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var u=r.host.indexOf(":")!==-1,y=u?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+y+":"+r.port,r.href=r.protocol+"://"+y+(a&&a.port===r.port?"":":"+r.port),r}var Y_={},M8={exports:{}},I8={exports:{}},K0=1e3,J0=K0*60,Q0=J0*60,e1=Q0*24,ACt=e1*365.25,NCt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return BCt(e);if(r==="number"&&isNaN(e)===!1)return a.long?ICt(e):MCt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function BCt(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*ACt;case"days":case"day":case"d":return r*e1;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Q0;case"minutes":case"minute":case"mins":case"min":case"m":return r*J0;case"seconds":case"second":case"secs":case"sec":case"s":return r*K0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function MCt(e){return e>=e1?Math.round(e/e1)+"d":e>=Q0?Math.round(e/Q0)+"h":e>=J0?Math.round(e/J0)+"m":e>=K0?Math.round(e/K0)+"s":e+"ms"}function ICt(e){return Z_(e,e1,"day")||Z_(e,Q0,"hour")||Z_(e,J0,"minute")||Z_(e,K0,"second")||e+" ms"}function Z_(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=u.debug=u.default=u,a.coerce=_,a.disable=l,a.enable=i,a.enabled=n,a.humanize=NCt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,m;for(m in f)o=(o<<5)-o+f.charCodeAt(m),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function u(f){var o;function m(){if(m.enabled){var x=m,c=+new Date,s=c-(o||c);x.diff=s,x.prev=o,x.curr=c,o=c;for(var d=new Array(arguments.length),p=0;p<d.length;p++)d[p]=arguments[p];d[0]=a.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var h=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(b,v){if(b==="%%")return b;h++;var w=a.formatters[v];if(typeof w=="function"){var C=d[h];b=w.call(x,C),d.splice(h,1),h--}return b}),a.formatArgs.call(x,d);var g=m.log||a.log||console.log.bind(console);g.apply(x,d)}}return m.namespace=f,m.enabled=a.enabled(f),m.useColors=a.useColors(),m.color=r(f),m.destroy=y,typeof a.init=="function"&&a.init(m),a.instances.push(m),m}function y(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function i(f){a.save(f),a.names=[],a.skips=[];var o,m=(typeof f=="string"?f:"").split(/[\s,]+/),x=m.length;for(o=0;o<x;o++)m[o]&&(f=m[o].replace(/\*/g,".*?"),f[0]==="-"?a.skips.push(new RegExp("^"+f.substr(1)+"$")):a.names.push(new RegExp("^"+f+"$")));for(o=0;o<a.instances.length;o++){var c=a.instances[o];c.enabled=a.enabled(c.namespace)}}function l(){a.enable("")}function n(f){if(f[f.length-1]==="*")return!0;var o,m;for(o=0,m=a.skips.length;o<m;o++)if(a.skips[o].test(f))return!1;for(o=0,m=a.names.length;o<m;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(I8,I8.exports);var OCt=I8.exports;(function(e,a){a=e.exports=OCt,a.log=y,a.formatArgs=u,a.save=i,a.load=l,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function u(_){var f=this.useColors;if(_[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+_[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),!!f){var o="color: "+this.color;_.splice(1,0,o,"color: inherit");var m=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(m++,c==="%c"&&(x=m))}),_.splice(x,0,o)}}function y(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function l(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(l());function n(){try{return window.localStorage}catch{}}})(M8,M8.exports);var FCt=M8.exports,wL={exports:{}};(function(e){e.exports=a;function a(u){if(u)return r(u)}function r(u){for(var y in a.prototype)u[y]=a.prototype[y];return u}a.prototype.on=a.prototype.addEventListener=function(u,y){return this._callbacks=this._callbacks||{},(this._callbacks["$"+u]=this._callbacks["$"+u]||[]).push(y),this},a.prototype.once=function(u,y){function i(){this.off(u,i),y.apply(this,arguments)}return i.fn=y,this.on(u,i),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(u,y){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+u];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+u],this;for(var l,n=0;n<i.length;n++)if(l=i[n],l===y||l.fn===y){i.splice(n,1);break}return i.length===0&&delete this._callbacks["$"+u],this},a.prototype.emit=function(u){this._callbacks=this._callbacks||{};for(var y=new Array(arguments.length-1),i=this._callbacks["$"+u],l=1;l<arguments.length;l++)y[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,n=i.length;l<n;++l)i[l].apply(this,y)}return this},a.prototype.listeners=function(u){return this._callbacks=this._callbacks||{},this._callbacks["$"+u]||[]},a.prototype.hasListeners=function(u){return!!this.listeners(u).length}})(wL);var pf=wL.exports,X_={},zCt={}.toString,O8=Array.isArray||function(e){return zCt.call(e)=="[object Array]"},kL=RCt,PCt=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",VCt=typeof ArrayBuffer=="function",LCt=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function RCt(e){return PCt&&Buffer.isBuffer(e)||VCt&&(e instanceof ArrayBuffer||LCt(e))}var F8=O8,CL=kL,EL=Object.prototype.toString,DCt=typeof Blob=="function"||typeof Blob<"u"&&EL.call(Blob)==="[object BlobConstructor]",$Ct=typeof File=="function"||typeof File<"u"&&EL.call(File)==="[object FileConstructor]";X_.deconstructPacket=function(e){var a=[],r=e.data,u=e;return u.data=z8(r,a),u.attachments=a.length,{packet:u,buffers:a}};function z8(e,a){if(!e)return e;if(CL(e)){var r={_placeholder:!0,num:a.length};return a.push(e),r}else if(F8(e)){for(var u=new Array(e.length),y=0;y<e.length;y++)u[y]=z8(e[y],a);return u}else if(typeof e=="object"&&!(e instanceof Date)){var u={};for(var i in e)u[i]=z8(e[i],a);return u}return e}X_.reconstructPacket=function(e,a){return e.data=P8(e.data,a),e.attachments=void 0,e};function P8(e,a){if(!e)return e;if(e&&e._placeholder===!0){var r=typeof e.num=="number"&&e.num>=0&&e.num<a.length;if(r)return a[e.num];throw new Error("illegal attachments")}else if(F8(e))for(var u=0;u<e.length;u++)e[u]=P8(e[u],a);else if(typeof e=="object")for(var y in e)e[y]=P8(e[y],a);return e}X_.removeBlobs=function(e,a){function r(i,l,n){if(!i)return i;if(DCt&&i instanceof Blob||$Ct&&i instanceof File){u++;var _=new FileReader;_.onload=function(){n?n[l]=this.result:y=this.result,--u||a(y)},_.readAsArrayBuffer(i)}else if(F8(i))for(var f=0;f<i.length;f++)r(i[f],f,i);else if(typeof i=="object"&&!CL(i))for(var o in i)r(i[o],o,i)}var u=0,y=e;r(y),u||a(y)},function(e){var a=FCt("socket.io-parser"),r=pf,u=X_,y=O8,i=kL;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=l,e.Decoder=m;function l(){}var n=e.ERROR+'"encode error"';l.prototype.encode=function(p,h){if(a("encoding packet %j",p),e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type)o(p,h);else{var g=_(p);h([g])}};function _(p){var h=""+p.type;if((e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type)&&(h+=p.attachments+"-"),p.nsp&&p.nsp!=="/"&&(h+=p.nsp+","),p.id!=null&&(h+=p.id),p.data!=null){var g=f(p.data);if(g!==!1)h+=g;else return n}return a("encoded %j as %s",p,h),h}function f(p){try{return JSON.stringify(p)}catch{return!1}}function o(p,h){function g(b){var v=u.deconstructPacket(b),w=_(v.packet),C=v.buffers;C.unshift(w),h(C)}u.removeBlobs(p,g)}function m(){this.reconstructor=null}r(m.prototype),m.prototype.add=function(p){var h;if(typeof p=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=x(p),e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type?(this.reconstructor=new s(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(i(p)||p.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(p),h&&(this.reconstructor=null,this.emit("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+p)};function x(p){var h=0,g={type:Number(p.charAt(0))};if(e.types[g.type]==null)return d("unknown packet type "+g.type);if(e.BINARY_EVENT===g.type||e.BINARY_ACK===g.type){for(var b=h+1;p.charAt(++h)!=="-"&&h!=p.length;);var v=p.substring(b,h);if(v!=Number(v)||p.charAt(h)!=="-")throw new Error("Illegal attachments");g.attachments=Number(v)}if(p.charAt(h+1)==="/"){for(var b=h+1;++h;){var w=p.charAt(h);if(w===","||h===p.length)break}g.nsp=p.substring(b,h)}else g.nsp="/";var C=p.charAt(h+1);if(C!==""&&Number(C)==C){for(var b=h+1;++h;){var w=p.charAt(h);if(w==null||Number(w)!=w){--h;break}if(h===p.length)break}g.id=Number(p.substring(b,h+1))}if(p.charAt(++h)){var k=c(p.substr(h)),B=k!==!1&&(g.type===e.ERROR||y(k));if(B)g.data=k;else return d("invalid payload")}return a("decoded %s as %j",p,g),g}function c(p){try{return JSON.parse(p)}catch{return!1}}m.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function s(p){this.reconPack=p,this.buffers=[]}s.prototype.takeBinaryData=function(p){if(this.buffers.push(p),this.buffers.length===this.reconPack.attachments){var h=u.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},s.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function d(p){return{type:e.ERROR,data:"parser error: "+p}}}(Y_);var V8={exports:{}},K_={},L8={exports:{}};try{L8.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{L8.exports=!1}var jCt=L8.exports,R8=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),UCt=jCt,HCt=R8,D8=function(e){var a=e.xdomain,r=e.xscheme,u=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||UCt))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!r&&u)return new XDomainRequest}catch{}if(!a)try{return new HCt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},$8={exports:{}},Vp={},GCt=Object.keys||function(a){var r=[],u=Object.prototype.hasOwnProperty;for(var y in a)u.call(a,y)&&r.push(y);return r},WCt=O8,SL=Object.prototype.toString,qCt=typeof Blob=="function"||typeof Blob<"u"&&SL.call(Blob)==="[object BlobConstructor]",YCt=typeof File=="function"||typeof File<"u"&&SL.call(File)==="[object FileConstructor]",TL=J_;function J_(e){if(!e||typeof e!="object")return!1;if(WCt(e)){for(var a=0,r=e.length;a<r;a++)if(J_(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||qCt&&e instanceof Blob||YCt&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return J_(e.toJSON(),!0);for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)&&J_(e[u]))return!0;return!1}var ZCt=function(e,a,r){var u=e.byteLength;if(a=a||0,r=r||u,e.slice)return e.slice(a,r);if(a<0&&(a+=u),r<0&&(r+=u),r>u&&(r=u),a>=u||a>=r||u===0)return new ArrayBuffer(0);for(var y=new Uint8Array(e),i=new Uint8Array(r-a),l=a,n=0;l<r;l++,n++)i[n]=y[l];return i.buffer},XCt=KCt;function KCt(e,a,r){var u=!1;return r=r||JCt,y.count=e,e===0?a():y;function y(i,l){if(y.count<=0)throw new Error("after called too many times");--y.count,i?(u=!0,a(i),a=r):y.count===0&&!u&&a(null,l)}}function JCt(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var ap=String.fromCharCode;function AL(e){for(var a=[],r=0,u=e.length,y,i;r<u;)y=e.charCodeAt(r++),y>=55296&&y<=56319&&r<u?(i=e.charCodeAt(r++),(i&64512)==56320?a.push(((y&1023)<<10)+(i&1023)+65536):(a.push(y),r--)):a.push(y);return a}function QCt(e){for(var a=e.length,r=-1,u,y="";++r<a;)u=e[r],u>65535&&(u-=65536,y+=ap(u>>>10&1023|55296),u=56320|u&1023),y+=ap(u);return y}function NL(e,a){if(e>=55296&&e<=57343){if(a)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function j8(e,a){return ap(e>>a&63|128)}function eEt(e,a){if(!(e&4294967168))return ap(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=ap(e>>18&7|240),r+=j8(e,12),r+=j8(e,6)):(NL(e,a)||(e=65533),r=ap(e>>12&15|224),r+=j8(e,6)):r=ap(e>>6&31|192),r+=ap(e&63|128),r}function tEt(e,a){a=a||{};for(var r=a.strict!==!1,u=AL(e),y=u.length,i=-1,l,n="";++i<y;)l=u[i],n+=eEt(l,r);return n}function hf(){if(rp>=ev)throw Error("Invalid byte index");var e=Q_[rp]&255;if(rp++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function aEt(e){var a,r,u,y,i;if(rp>ev)throw Error("Invalid byte index");if(rp==ev)return!1;if(a=Q_[rp]&255,rp++,!(a&128))return a;if((a&224)==192){if(r=hf(),i=(a&31)<<6|r,i>=128)return i;throw Error("Invalid continuation byte")}if((a&240)==224){if(r=hf(),u=hf(),i=(a&15)<<12|r<<6|u,i>=2048)return NL(i,e)?i:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(r=hf(),u=hf(),y=hf(),i=(a&7)<<18|r<<12|u<<6|y,i>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}var Q_,ev,rp;function rEt(e,a){a=a||{};var r=a.strict!==!1;Q_=AL(e),ev=Q_.length,rp=0;for(var u=[],y;(y=aEt(r))!==!1;)u.push(y);return QCt(u)}var nEt={version:"2.1.2",encode:tEt,decode:rEt},tv={},BL;function iEt(){return BL||(BL=1,function(e){tv.encode=function(a){var r=new Uint8Array(a),u,y=r.length,i="";for(u=0;u<y;u+=3)i+=e[r[u]>>2],i+=e[(r[u]&3)<<4|r[u+1]>>4],i+=e[(r[u+1]&15)<<2|r[u+2]>>6],i+=e[r[u+2]&63];return y%3===2?i=i.substring(0,i.length-1)+"=":y%3===1&&(i=i.substring(0,i.length-2)+"=="),i},tv.decode=function(a){var r=a.length*.75,u=a.length,y,i=0,l,n,_,f;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);var o=new ArrayBuffer(r),m=new Uint8Array(o);for(y=0;y<u;y+=4)l=e.indexOf(a[y]),n=e.indexOf(a[y+1]),_=e.indexOf(a[y+2]),f=e.indexOf(a[y+3]),m[i++]=l<<2|n>>4,m[i++]=(n&15)<<4|_>>2,m[i++]=(_&3)<<6|f&63;return o}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),tv}var U8,ML;function oEt(){if(ML)return U8;ML=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var n=new Blob(["hi"]);return n.size===2}catch{return!1}}(),r=a&&function(){try{var n=new Blob([new Uint8Array([1,2])]);return n.size===2}catch{return!1}}(),u=e&&e.prototype.append&&e.prototype.getBlob;function y(n){return n.map(function(_){if(_.buffer instanceof ArrayBuffer){var f=_.buffer;if(_.byteLength!==f.byteLength){var o=new Uint8Array(_.byteLength);o.set(new Uint8Array(f,_.byteOffset,_.byteLength)),f=o.buffer}return f}return _})}function i(n,_){_=_||{};var f=new e;return y(n).forEach(function(o){f.append(o)}),_.type?f.getBlob(_.type):f.getBlob()}function l(n,_){return new Blob(y(n),_||{})}return typeof Blob<"u"&&(i.prototype=Blob.prototype,l.prototype=Blob.prototype),U8=function(){return a?r?Blob:l:u?i:void 0}(),U8}(function(e){var a=GCt,r=TL,u=ZCt,y=XCt,i=nEt,l;typeof ArrayBuffer<"u"&&(l=iEt());var n=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),_=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),f=n||_;e.protocol=3;var o=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},m=a(o),x={type:"error",data:"parser error"},c=oEt();e.encodePacket=function(v,w,C,k){typeof w=="function"&&(k=w,w=!1),typeof C=="function"&&(k=C,C=null);var B=v.data===void 0?void 0:v.data.buffer||v.data;if(typeof ArrayBuffer<"u"&&B instanceof ArrayBuffer)return d(v,w,k);if(typeof c<"u"&&B instanceof c)return h(v,w,k);if(B&&B.base64)return s(v,k);var E=o[v.type];return v.data!==void 0&&(E+=C?i.encode(String(v.data),{strict:!1}):String(v.data)),k(""+E)};function s(v,w){var C="b"+e.packets[v.type]+v.data.data;return w(C)}function d(v,w,C){if(!w)return e.encodeBase64Packet(v,C);var k=v.data,B=new Uint8Array(k),E=new Uint8Array(1+k.byteLength);E[0]=o[v.type];for(var T=0;T<B.length;T++)E[T+1]=B[T];return C(E.buffer)}function p(v,w,C){if(!w)return e.encodeBase64Packet(v,C);var k=new FileReader;return k.onload=function(){e.encodePacket({type:v.type,data:k.result},w,!0,C)},k.readAsArrayBuffer(v.data)}function h(v,w,C){if(!w)return e.encodeBase64Packet(v,C);if(f)return p(v,w,C);var k=new Uint8Array(1);k[0]=o[v.type];var B=new c([k.buffer,v.data]);return C(B)}e.encodeBase64Packet=function(v,w){var C="b"+e.packets[v.type];if(typeof c<"u"&&v.data instanceof c){var k=new FileReader;return k.onload=function(){var M=k.result.split(",")[1];w(C+M)},k.readAsDataURL(v.data)}var B;try{B=String.fromCharCode.apply(null,new Uint8Array(v.data))}catch{for(var E=new Uint8Array(v.data),T=new Array(E.length),A=0;A<E.length;A++)T[A]=E[A];B=String.fromCharCode.apply(null,T)}return C+=btoa(B),w(C)},e.decodePacket=function(v,w,C){if(v===void 0)return x;if(typeof v=="string"){if(v.charAt(0)==="b")return e.decodeBase64Packet(v.substr(1),w);if(C&&(v=g(v),v===!1))return x;var B=v.charAt(0);return Number(B)!=B||!m[B]?x:v.length>1?{type:m[B],data:v.substring(1)}:{type:m[B]}}var k=new Uint8Array(v),B=k[0],E=u(v,1);return c&&w==="blob"&&(E=new c([E])),{type:m[B],data:E}};function g(v){try{v=i.decode(v,{strict:!1})}catch{return!1}return v}e.decodeBase64Packet=function(v,w){var C=m[v.charAt(0)];if(!l)return{type:C,data:{base64:!0,data:v.substr(1)}};var k=l.decode(v.substr(1));return w==="blob"&&c&&(k=new c([k])),{type:C,data:k}},e.encodePayload=function(v,w,C){typeof w=="function"&&(C=w,w=null);var k=r(v);if(w&&k)return c&&!f?e.encodePayloadAsBlob(v,C):e.encodePayloadAsArrayBuffer(v,C);if(!v.length)return C("0:");function B(T){return T.length+":"+T}function E(T,A){e.encodePacket(T,k?w:!1,!1,function(M){A(null,B(M))})}b(v,E,function(T,A){return C(A.join(""))})};function b(v,w,C){for(var k=new Array(v.length),B=y(v.length,C),E=function(A,M,N){w(M,function(O,S){k[A]=S,N(O,k)})},T=0;T<v.length;T++)E(T,v[T],B)}e.decodePayload=function(v,w,C){if(typeof v!="string")return e.decodePayloadAsBinary(v,w,C);typeof w=="function"&&(C=w,w=null);var k;if(v==="")return C(x,0,1);for(var B="",E,T,A=0,M=v.length;A<M;A++){var N=v.charAt(A);if(N!==":"){B+=N;continue}if(B===""||B!=(E=Number(B))||(T=v.substr(A+1,E),B!=T.length))return C(x,0,1);if(T.length){if(k=e.decodePacket(T,w,!1),x.type===k.type&&x.data===k.data)return C(x,0,1);var O=C(k,A+E,M);if(O===!1)return}A+=E,B=""}if(B!=="")return C(x,0,1)},e.encodePayloadAsArrayBuffer=function(v,w){if(!v.length)return w(new ArrayBuffer(0));function C(k,B){e.encodePacket(k,!0,!0,function(E){return B(null,E)})}b(v,C,function(k,B){var E=B.reduce(function(M,N){var O;return typeof N=="string"?O=N.length:O=N.byteLength,M+O.toString().length+O+2},0),T=new Uint8Array(E),A=0;return B.forEach(function(M){var N=typeof M=="string",O=M;if(N){for(var I=new Uint8Array(M.length),S=0;S<M.length;S++)I[S]=M.charCodeAt(S);O=I.buffer}N?T[A++]=0:T[A++]=1;for(var z=O.byteLength.toString(),S=0;S<z.length;S++)T[A++]=parseInt(z[S]);T[A++]=255;for(var I=new Uint8Array(O),S=0;S<I.length;S++)T[A++]=I[S]}),w(T.buffer)})},e.encodePayloadAsBlob=function(v,w){function C(k,B){e.encodePacket(k,!0,!0,function(E){var T=new Uint8Array(1);if(T[0]=1,typeof E=="string"){for(var A=new Uint8Array(E.length),M=0;M<E.length;M++)A[M]=E.charCodeAt(M);E=A.buffer,T[0]=0}for(var N=E instanceof ArrayBuffer?E.byteLength:E.size,O=N.toString(),S=new Uint8Array(O.length+1),M=0;M<O.length;M++)S[M]=parseInt(O[M]);if(S[O.length]=255,c){var z=new c([T.buffer,S.buffer,E]);B(null,z)}})}b(v,C,function(k,B){return w(new c(B))})},e.decodePayloadAsBinary=function(v,w,C){typeof w=="function"&&(C=w,w=null);for(var k=v,B=[];k.byteLength>0;){for(var E=new Uint8Array(k),T=E[0]===0,A="",M=1;E[M]!==255;M++){if(A.length>310)return C(x,0,1);A+=E[M]}k=u(k,2+A.length),A=parseInt(A);var N=u(k,0,A);if(T)try{N=String.fromCharCode.apply(null,new Uint8Array(N))}catch{var O=new Uint8Array(N);N="";for(var M=0;M<O.length;M++)N+=String.fromCharCode(O[M])}B.push(N),k=u(k,A)}var S=B.length;B.forEach(function(z,I){C(e.decodePacket(z,w,!0),I,S)})}})(Vp);var H8,IL;function G8(){if(IL)return H8;IL=1;var e=Vp,a=pf;H8=r;function r(u){this.path=u.path,this.hostname=u.hostname,this.port=u.port,this.secure=u.secure,this.query=u.query,this.timestampParam=u.timestampParam,this.timestampRequests=u.timestampRequests,this.readyState="",this.agent=u.agent||!1,this.socket=u.socket,this.enablesXDR=u.enablesXDR,this.withCredentials=u.withCredentials,this.pfx=u.pfx,this.key=u.key,this.passphrase=u.passphrase,this.cert=u.cert,this.ca=u.ca,this.ciphers=u.ciphers,this.rejectUnauthorized=u.rejectUnauthorized,this.forceNode=u.forceNode,this.isReactNative=u.isReactNative,this.extraHeaders=u.extraHeaders,this.localAddress=u.localAddress}return a(r.prototype),r.prototype.onError=function(u,y){var i=new Error(u);return i.type="TransportError",i.description=y,this.emit("error",i),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(u){if(this.readyState==="open")this.write(u);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(u){var y=e.decodePacket(u,this.socket.binaryType);this.onPacket(y)},r.prototype.onPacket=function(u){this.emit("packet",u)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},H8}var ff={};ff.encode=function(e){var a="";for(var r in e)e.hasOwnProperty(r)&&(a.length&&(a+="&"),a+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return a},ff.decode=function(e){for(var a={},r=e.split("&"),u=0,y=r.length;u<y;u++){var i=r[u].split("=");a[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return a};var av=function(e,a){var r=function(){};r.prototype=a.prototype,e.prototype=new r,e.prototype.constructor=e},OL="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),rv=64,FL={},zL=0,np=0,PL;function W8(e){var a="";do a=OL[e%rv]+a,e=Math.floor(e/rv);while(e>0);return a}function sEt(e){var a=0;for(np=0;np<e.length;np++)a=a*rv+FL[e.charAt(np)];return a}function q8(){var e=W8(+new Date);return e!==PL?(zL=0,PL=e):e+"."+W8(zL++)}for(;np<rv;np++)FL[OL[np]]=np;q8.encode=W8,q8.decode=sEt;var VL=q8,Y8={exports:{}},Z8={exports:{}},t1=1e3,a1=t1*60,r1=a1*60,n1=r1*24,lEt=n1*365.25,cEt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return dEt(e);if(r==="number"&&isNaN(e)===!1)return a.long?pEt(e):uEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function dEt(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*lEt;case"days":case"day":case"d":return r*n1;case"hours":case"hour":case"hrs":case"hr":case"h":return r*r1;case"minutes":case"minute":case"mins":case"min":case"m":return r*a1;case"seconds":case"second":case"secs":case"sec":case"s":return r*t1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function uEt(e){return e>=n1?Math.round(e/n1)+"d":e>=r1?Math.round(e/r1)+"h":e>=a1?Math.round(e/a1)+"m":e>=t1?Math.round(e/t1)+"s":e+"ms"}function pEt(e){return nv(e,n1,"day")||nv(e,r1,"hour")||nv(e,a1,"minute")||nv(e,t1,"second")||e+" ms"}function nv(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=u.debug=u.default=u,a.coerce=_,a.disable=l,a.enable=i,a.enabled=n,a.humanize=cEt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,m;for(m in f)o=(o<<5)-o+f.charCodeAt(m),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function u(f){var o;function m(){if(m.enabled){var x=m,c=+new Date,s=c-(o||c);x.diff=s,x.prev=o,x.curr=c,o=c;for(var d=new Array(arguments.length),p=0;p<d.length;p++)d[p]=arguments[p];d[0]=a.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var h=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(b,v){if(b==="%%")return b;h++;var w=a.formatters[v];if(typeof w=="function"){var C=d[h];b=w.call(x,C),d.splice(h,1),h--}return b}),a.formatArgs.call(x,d);var g=m.log||a.log||console.log.bind(console);g.apply(x,d)}}return m.namespace=f,m.enabled=a.enabled(f),m.useColors=a.useColors(),m.color=r(f),m.destroy=y,typeof a.init=="function"&&a.init(m),a.instances.push(m),m}function y(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function i(f){a.save(f),a.names=[],a.skips=[];var o,m=(typeof f=="string"?f:"").split(/[\s,]+/),x=m.length;for(o=0;o<x;o++)m[o]&&(f=m[o].replace(/\*/g,".*?"),f[0]==="-"?a.skips.push(new RegExp("^"+f.substr(1)+"$")):a.names.push(new RegExp("^"+f+"$")));for(o=0;o<a.instances.length;o++){var c=a.instances[o];c.enabled=a.enabled(c.namespace)}}function l(){a.enable("")}function n(f){if(f[f.length-1]==="*")return!0;var o,m;for(o=0,m=a.skips.length;o<m;o++)if(a.skips[o].test(f))return!1;for(o=0,m=a.names.length;o<m;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(Z8,Z8.exports);var hEt=Z8.exports;(function(e,a){a=e.exports=hEt,a.log=y,a.formatArgs=u,a.save=i,a.load=l,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function u(_){var f=this.useColors;if(_[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+_[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),!!f){var o="color: "+this.color;_.splice(1,0,o,"color: inherit");var m=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(m++,c==="%c"&&(x=m))}),_.splice(x,0,o)}}function y(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function l(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(l());function n(){try{return window.localStorage}catch{}}})(Y8,Y8.exports);var iv=Y8.exports,LL=G8(),fEt=ff,RL=Vp,mEt=av,gEt=VL,Hc=iv("engine.io-client:polling"),DL=Hd,yEt=function(){var e=D8,a=new e({xdomain:!1});return a.responseType!=null}();function Hd(e){var a=e&&e.forceBase64;(!yEt||a)&&(this.supportsBinary=!1),LL.call(this,e)}mEt(Hd,LL),Hd.prototype.name="polling",Hd.prototype.doOpen=function(){this.poll()},Hd.prototype.pause=function(e){var a=this;this.readyState="pausing";function r(){Hc("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var u=0;this.polling&&(Hc("we are currently polling - waiting to pause"),u++,this.once("pollComplete",function(){Hc("pre-pause polling complete"),--u||r()})),this.writable||(Hc("we are currently writing - waiting to pause"),u++,this.once("drain",function(){Hc("pre-pause writing complete"),--u||r()}))}else r()},Hd.prototype.poll=function(){Hc("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Hd.prototype.onData=function(e){var a=this;Hc("polling got data %s",e);var r=function(u,y,i){if(a.readyState==="opening"&&u.type==="open"&&a.onOpen(),u.type==="close")return a.onClose(),!1;a.onPacket(u)};RL.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Hc('ignoring poll - transport state "%s"',this.readyState))},Hd.prototype.doClose=function(){var e=this;function a(){Hc("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Hc("transport open - closing"),a()):(Hc("transport not open - deferring close"),this.once("open",a))},Hd.prototype.write=function(e){var a=this;this.writable=!1;var r=function(){a.writable=!0,a.emit("drain")};RL.encodePayload(e,this.supportsBinary,function(u){a.doWrite(u,r)})},Hd.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=gEt()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=fEt.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var u=this.hostname.indexOf(":")!==-1;return a+"://"+(u?"["+this.hostname+"]":this.hostname)+r+this.path+e};var _Et=D8,$L=DL,vEt=pf,bEt=av,X8=iv("engine.io-client:polling-xhr"),xEt=R8;$8.exports=mf,$8.exports.Request=Ho;function jL(){}function mf(e){if($L.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var a=location.protocol==="https:",r=location.port;r||(r=a?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==a}}bEt(mf,$L),mf.prototype.supportsBinary=!0,mf.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Ho(e)},mf.prototype.doWrite=function(e,a){var r=typeof e!="string"&&e!==void 0,u=this.request({method:"POST",data:e,isBinary:r}),y=this;u.on("success",a),u.on("error",function(i){y.onError("xhr post error",i)}),this.sendXhr=u},mf.prototype.doPoll=function(){X8("xhr poll");var e=this.request(),a=this;e.on("data",function(r){a.onData(r)}),e.on("error",function(r){a.onError("xhr poll error",r)}),this.pollXhr=e};function Ho(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(vEt(Ho.prototype),Ho.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new _Et(e),r=this;try{X8("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var u in this.extraHeaders)this.extraHeaders.hasOwnProperty(u)&&a.setRequestHeader(u,this.extraHeaders[u])}}catch{}if(this.method==="POST")try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.withCredentials),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){r.onLoad()},a.onerror=function(){r.onError(a.responseText)}):a.onreadystatechange=function(){if(a.readyState===2)try{var y=a.getResponseHeader("Content-Type");(r.supportsBinary&&y==="application/octet-stream"||y==="application/octet-stream; charset=UTF-8")&&(a.responseType="arraybuffer")}catch{}a.readyState===4&&(a.status===200||a.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof a.status=="number"?a.status:0)},0))},X8("xhr data %s",this.data),a.send(this.data)}catch(y){setTimeout(function(){r.onError(y)},0);return}typeof document<"u"&&(this.index=Ho.requestsCount++,Ho.requests[this.index]=this)},Ho.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Ho.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Ho.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Ho.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=jL:this.xhr.onreadystatechange=jL,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ho.requests[this.index],this.xhr=null}},Ho.prototype.onLoad=function(){var e;try{var a;try{a=this.xhr.getResponseHeader("Content-Type")}catch{}a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)},Ho.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Ho.prototype.abort=function(){this.cleanup()},Ho.requestsCount=0,Ho.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",UL);else if(typeof addEventListener=="function"){var wEt="onpagehide"in xEt?"pagehide":"unload";addEventListener(wEt,UL,!1)}}function UL(){for(var e in Ho.requests)Ho.requests.hasOwnProperty(e)&&Ho.requests[e].abort()}var kEt=$8.exports,K8=DL,CEt=av,HL=R8,EEt=gf,SEt=/\n/g,TEt=/\\n/g,ov;function AEt(){}function gf(e){K8.call(this,e),this.query=this.query||{},ov||(ov=HL.___eio=HL.___eio||[]),this.index=ov.length;var a=this;ov.push(function(r){a.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=AEt)},!1)}CEt(gf,K8),gf.prototype.supportsBinary=!1,gf.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),K8.prototype.doClose.call(this)},gf.prototype.doPoll=function(){var e=this,a=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),a.async=!0,a.src=this.uri(),a.onerror=function(y){e.onError("jsonp poll error",y)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(a,r):(document.head||document.body).appendChild(a),this.script=a;var u=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);u&&setTimeout(function(){var y=document.createElement("iframe");document.body.appendChild(y),document.body.removeChild(y)},100)},gf.prototype.doWrite=function(e,a){var r=this;if(!this.form){var u=document.createElement("form"),y=document.createElement("textarea"),i=this.iframeId="eio_iframe_"+this.index,l;u.className="socketio",u.style.position="absolute",u.style.top="-1000px",u.style.left="-1000px",u.target=i,u.method="POST",u.setAttribute("accept-charset","utf-8"),y.name="d",u.appendChild(y),document.body.appendChild(u),this.form=u,this.area=y}this.form.action=this.uri();function n(){_(),a()}function _(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(o){r.onError("jsonp polling iframe removal error",o)}try{var f='<iframe src="javascript:0" name="'+r.iframeId+'">';l=document.createElement(f)}catch{l=document.createElement("iframe"),l.name=r.iframeId,l.src="javascript:0"}l.id=r.iframeId,r.form.appendChild(l),r.iframe=l}_(),e=e.replace(TEt,`\\
|
|
3573
|
+
*/var C7t="store";function zp(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function GV(e){return e!==null&&typeof e=="object"}function E7t(e){return e&&typeof e.then=="function"}function jc(e,a){if(!e)throw new Error("[vuex] "+a)}function S7t(e,a){return function(){return e(a)}}function WV(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var u=a.indexOf(e);u>-1&&a.splice(u,1)}}function qV(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;D_(e,r,[],e._modules.root,!0),h8(e,r,a)}function h8(e,a,r){var u=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var y=e._wrappedGetters,i={};zp(y,function(l,n){i[n]=S7t(l,e),Object.defineProperty(e.getters,n,{get:function(){return i[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&M7t(e),u&&r&&e._withCommit(function(){u.data=null})}function D_(e,a,r,u,y){var i=!r.length,l=e._modules.getNamespace(r);if(u.namespaced&&(e._modulesNamespaceMap[l]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+l+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[l]=u),!i&&!y){var n=f8(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in n&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),n[_]=u.state})}var f=u.context=T7t(e,l,r);u.forEachMutation(function(o,m){var x=l+m;A7t(e,x,o,f)}),u.forEachAction(function(o,m){var x=o.root?m:l+m,c=o.handler||o;N7t(e,x,c,f)}),u.forEachGetter(function(o,m){var x=l+m;B7t(e,x,o,f)}),u.forEachChild(function(o,m){D_(e,a,r.concat(m),o,y)})}function T7t(e,a,r){var u=a==="",y={dispatch:u?e.dispatch:function(i,l,n){var _=$_(i,l,n),f=_.payload,o=_.options,m=_.type;if((!o||!o.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+m);return}return e.dispatch(m,f)},commit:u?e.commit:function(i,l,n){var _=$_(i,l,n),f=_.payload,o=_.options,m=_.type;if((!o||!o.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+m);return}e.commit(m,f,o)}};return Object.defineProperties(y,{getters:{get:u?function(){return e.getters}:function(){return YV(e,a)}},state:{get:function(){return f8(e.state,r)}}}),y}function YV(e,a){if(!e._makeLocalGettersCache[a]){var r={},u=a.length;Object.keys(e.getters).forEach(function(y){if(y.slice(0,u)===a){var i=y.slice(u);Object.defineProperty(r,i,{get:function(){return e.getters[y]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function A7t(e,a,r,u){var y=e._mutations[a]||(e._mutations[a]=[]);y.push(function(i){r.call(e,u.state,i)})}function N7t(e,a,r,u){var y=e._actions[a]||(e._actions[a]=[]);y.push(function(i){var l=r.call(e,{dispatch:u.dispatch,commit:u.commit,getters:u.getters,state:u.state,rootGetters:e.getters,rootState:e.state},i);return E7t(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(n){throw e._devtoolHook.emit("vuex:error",n),n}):l})}function B7t(e,a,r,u){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(y){return r(u.state,u.getters,y.state,y.getters)}}function M7t(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&jc(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function f8(e,a){return a.reduce(function(r,u){return r[u]},e)}function $_(e,a,r){return GV(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&jc(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var I7t="vuex bindings",ZV="vuex:mutations",m8="vuex:actions",uf="vuex",O7t=0;function F7t(e,a){k7t({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[I7t]},function(r){r.addTimelineLayer({id:ZV,label:"Vuex Mutations",color:XV}),r.addTimelineLayer({id:m8,label:"Vuex Actions",color:XV}),r.addInspector({id:uf,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(u){if(u.app===e&&u.inspectorId===uf)if(u.filter){var y=[];eL(y,a._modules.root,u.filter,""),u.rootNodes=y}else u.rootNodes=[QV(a._modules.root,"")]}),r.on.getInspectorState(function(u){if(u.app===e&&u.inspectorId===uf){var y=u.nodeId;YV(a,y),u.state=V7t(R7t(a._modules,y),y==="root"?a.getters:a._makeLocalGettersCache,y)}}),r.on.editInspectorState(function(u){if(u.app===e&&u.inspectorId===uf){var y=u.nodeId,i=u.path;y!=="root"&&(i=y.split("/").filter(Boolean).concat(i)),a._withCommit(function(){u.set(a._state.data,i,u.state.value)})}}),a.subscribe(function(u,y){var i={};u.payload&&(i.payload=u.payload),i.state=y,r.notifyComponentUpdate(),r.sendInspectorTree(uf),r.sendInspectorState(uf),r.addTimelineEvent({layerId:ZV,event:{time:Date.now(),title:u.type,data:i}})}),a.subscribeAction({before:function(u,y){var i={};u.payload&&(i.payload=u.payload),u._id=O7t++,u._time=Date.now(),i.state=y,r.addTimelineEvent({layerId:m8,event:{time:u._time,title:u.type,groupId:u._id,subtitle:"start",data:i}})},after:function(u,y){var i={},l=Date.now()-u._time;i.duration={_custom:{type:"duration",display:l+"ms",tooltip:"Action duration",value:l}},u.payload&&(i.payload=u.payload),i.state=y,r.addTimelineEvent({layerId:m8,event:{time:Date.now(),title:u.type,groupId:u._id,subtitle:"end",data:i}})}})})}var XV=8702998,z7t=6710886,P7t=16777215,KV={label:"namespaced",textColor:P7t,backgroundColor:z7t};function JV(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function QV(e,a){return{id:a||"root",label:JV(a),tags:e.namespaced?[KV]:[],children:Object.keys(e._children).map(function(r){return QV(e._children[r],a+r+"/")})}}function eL(e,a,r,u){u.includes(r)&&e.push({id:u||"root",label:u.endsWith("/")?u.slice(0,u.length-1):u||"Root",tags:a.namespaced?[KV]:[]}),Object.keys(a._children).forEach(function(y){eL(e,a._children[y],r,u+y+"/")})}function V7t(e,a,r){a=r==="root"?a:a[r];var u=Object.keys(a),y={state:Object.keys(e.state).map(function(l){return{key:l,editable:!0,value:e.state[l]}})};if(u.length){var i=L7t(a);y.getters=Object.keys(i).map(function(l){return{key:l.endsWith("/")?JV(l):l,editable:!1,value:g8(function(){return i[l]})}})}return y}function L7t(e){var a={};return Object.keys(e).forEach(function(r){var u=r.split("/");if(u.length>1){var y=a,i=u.pop();u.forEach(function(l){y[l]||(y[l]={_custom:{value:{},display:l,tooltip:"Module",abstract:!0}}),y=y[l]._custom.value}),y[i]=g8(function(){return e[r]})}else a[r]=g8(function(){return e[r]})}),a}function R7t(e,a){var r=a.split("/").filter(function(u){return u});return r.reduce(function(u,y,i){var l=u[y];if(!l)throw new Error('Missing module "'+y+'" for path "'+a+'".');return i===r.length-1?l:l._children},a==="root"?e:e.root._children)}function g8(e){try{return e()}catch(a){return a}}var Uc=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},tL={namespaced:{configurable:!0}};tL.namespaced.get=function(){return!!this._rawModule.namespaced},Uc.prototype.addChild=function(e,a){this._children[e]=a},Uc.prototype.removeChild=function(e){delete this._children[e]},Uc.prototype.getChild=function(e){return this._children[e]},Uc.prototype.hasChild=function(e){return e in this._children},Uc.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Uc.prototype.forEachChild=function(e){zp(this._children,e)},Uc.prototype.forEachGetter=function(e){this._rawModule.getters&&zp(this._rawModule.getters,e)},Uc.prototype.forEachAction=function(e){this._rawModule.actions&&zp(this._rawModule.actions,e)},Uc.prototype.forEachMutation=function(e){this._rawModule.mutations&&zp(this._rawModule.mutations,e)},Object.defineProperties(Uc.prototype,tL);var Pp=function(e){this.register([],e,!1)};Pp.prototype.get=function(e){return e.reduce(function(a,r){return a.getChild(r)},this.root)},Pp.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(r,u){return a=a.getChild(u),r+(a.namespaced?u+"/":"")},"")},Pp.prototype.update=function(e){aL([],this.root,e)},Pp.prototype.register=function(e,a,r){var u=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&iL(e,a);var y=new Uc(a,r);if(e.length===0)this.root=y;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],y)}a.modules&&zp(a.modules,function(l,n){u.register(e.concat(n),l,r)})},Pp.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1],u=a.getChild(r);if(!u){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}u.runtime&&a.removeChild(r)},Pp.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1];return a?a.hasChild(r):!1};function aL(e,a,r){if(process.env.NODE_ENV!=="production"&&iL(e,r),a.update(r),r.modules)for(var u in r.modules){if(!a.getChild(u)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+u+"' on hot reloading, manual reload is needed");return}aL(e.concat(u),a.getChild(u),r.modules[u])}}var rL={assert:function(e){return typeof e=="function"},expected:"function"},D7t={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},nL={getters:rL,mutations:rL,actions:D7t};function iL(e,a){Object.keys(nL).forEach(function(r){if(a[r]){var u=nL[r];zp(a[r],function(y,i){jc(u.assert(y),$7t(e,r,i,y,u.expected))})}})}function $7t(e,a,r,u,y){var i=a+" should be "+y+' but "'+a+"."+r+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(u)+".",i}var Fl=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(jc(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),jc(this instanceof e,"store must be called with the new operator."));var u=a.plugins;u===void 0&&(u=[]);var y=a.strict;y===void 0&&(y=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Pp(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var l=this,n=this,_=n.dispatch,f=n.commit;this.dispatch=function(m,x){return _.call(l,m,x)},this.commit=function(m,x,c){return f.call(l,m,x,c)},this.strict=y;var o=this._modules.root.state;D_(this,o,[],this._modules.root),h8(this,o),u.forEach(function(m){return m(r)})},y8={state:{configurable:!0}};Fl.prototype.install=function(e,a){e.provide(a||C7t,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&F7t(e,this)},y8.state.get=function(){return this._state.data},y8.state.set=function(e){process.env.NODE_ENV!=="production"&&jc(!1,"use store.replaceState() to explicit replace store state.")},Fl.prototype.commit=function(e,a,r){var u=this,y=$_(e,a,r),i=y.type,l=y.payload,n=y.options,_={type:i,payload:l},f=this._mutations[i];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){f.forEach(function(o){o(l)})}),this._subscribers.slice().forEach(function(o){return o(_,u.state)}),process.env.NODE_ENV!=="production"&&n&&n.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Fl.prototype.dispatch=function(e,a){var r=this,u=$_(e,a),y=u.type,i=u.payload,l={type:y,payload:i},n=this._actions[y];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+y);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(l,r.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var _=n.length>1?Promise.all(n.map(function(f){return f(i)})):n[0](i);return new Promise(function(f,o){_.then(function(m){try{r._actionSubscribers.filter(function(x){return x.after}).forEach(function(x){return x.after(l,r.state)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(x))}f(m)},function(m){try{r._actionSubscribers.filter(function(x){return x.error}).forEach(function(x){return x.error(l,r.state,m)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(x))}o(m)})})},Fl.prototype.subscribe=function(e,a){return WV(e,this._subscribers,a)},Fl.prototype.subscribeAction=function(e,a){var r=typeof e=="function"?{before:e}:e;return WV(r,this._actionSubscribers,a)},Fl.prototype.watch=function(e,a,r){var u=this;return process.env.NODE_ENV!=="production"&&jc(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(u.state,u.getters)},a,Object.assign({},r))},Fl.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Fl.prototype.registerModule=function(e,a,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(jc(Array.isArray(e),"module path must be a string or an Array."),jc(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),D_(this,this.state,e,this._modules.get(e),r.preserveState),h8(this,this.state)},Fl.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&jc(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=f8(a.state,e.slice(0,-1));delete r[e[e.length-1]]}),qV(this)},Fl.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&jc(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Fl.prototype.hotUpdate=function(e){this._modules.update(e),qV(this,!0)},Fl.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Fl.prototype,y8);var j7t=H7t(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!oL(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),U7t(a).forEach(function(u){var y=u.key,i=u.val;r[y]=function(){for(var l=[],n=arguments.length;n--;)l[n]=arguments[n];var _=this.$store.commit;if(e){var f=G7t(this.$store,"mapMutations",e);if(!f)return;_=f.context.commit}return typeof i=="function"?i.apply(this,[_].concat(l)):_.apply(this.$store,[i].concat(l))}}),r});function U7t(e){return oL(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function oL(e){return Array.isArray(e)||GV(e)}function H7t(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function G7t(e,a,r){var u=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!u&&console.error("[vuex] module namespace not found in "+a+"(): "+r),u}const W7t="/icn-play.svg",q7t="/icn-tiros-de-esquina.svg",Y7t="/icn-tiro-a-porteria.svg",Z7t="/icn-cambio.svg",X7t="/icn-falta.svg",K7t="/atajada.svg",J7t="/fuera-de-lugar.svg",_8="/gol.svg",Q7t="/var.png",ekt="/tiempo-agregado.svg",tkt="/jugada-peligrosa.svg",akt="/penal-marcado.svg",rkt="/penal-fallado.svg",nkt="/inicia-el-partido.svg",ikt="/fin-del-partido.svg",okt="/icn-tarjeta-amarilla.svg",skt="/icn-tarjeta-roja.svg",lkt=[1,2,3,4,6],ckt={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return u8.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):u8.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):u8.RED_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>m7t(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||lkt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...j7t("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},dkt=e=>(t.pushScopeId("data-v-c284b7dc"),e=e(),t.popScopeId(),e),ukt={class:"time-line-event__details"},pkt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},hkt=["src"],fkt=dkt(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),mkt={class:"time-line-event__details__info"},gkt={key:0,class:"time-line-event__details__info__header__players"},ykt={class:"time-line-event__details__info__header__players__div-img"},_kt=["src"],vkt={class:"time-line-event__details__info__body"},bkt={class:"time-line-event__details__info__body__comment"},xkt={class:"time-line-event__minute__container"},wkt={class:"time-line-event__minute__container__text"},kkt={class:"time-line-event__minute__container__icon-container"},Ckt={class:"time-line-event__minute__container__icon-container__icon"},Ekt={key:0,src:q7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Skt={key:1,src:Y7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Tkt={key:2,src:Z7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Akt={key:3,src:X7t,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Nkt={key:4,src:K7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Bkt={key:5,src:J7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Mkt={key:6,src:_8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ikt={key:7,src:_8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Okt={key:8,src:_8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Fkt={key:9,src:Q7t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},zkt={key:10,src:ekt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Pkt={key:11,src:tkt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Vkt={key:12,src:akt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lkt={key:13,src:rkt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Rkt={key:14,src:nkt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Dkt={key:15,src:ikt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$kt={key:16,src:okt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jkt={key:17,src:skt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Ukt={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Hkt(e,a,r,u,y,i){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",i.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:y.gameEventKey},[t.createElementVNode("div",ukt,[r.gameEvent.video_link!=="-"&&r.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=l=>i.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",pkt,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,hkt)]),fkt])):t.createCommentVNode("",!0),t.createElementVNode("div",mkt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",i.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",gkt,[i.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.srcImgPlayers,(l,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":n===1}]),key:n},[t.createElementVNode("div",ykt,[t.createElementVNode("img",{src:l,alt:""},null,8,_kt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",i.nameClasses]),onClick:a[1]||(a[1]=l=>i.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:W7t,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(r.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${r.gameEvent.event_type_name}`:r.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(r.gameEvent.category_id?r.gameEvent.event_type_id===5?r.gameEvent.category_name:r.gameEvent.event_type_name==="Gol"?r.gameEvent.event_type_name+" de "+r.gameEvent.team_name:r.gameEvent.event_type_name:r.gameEvent.comments),1)],2)],2),t.createElementVNode("div",vkt,[t.createElementVNode("div",bkt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",i.minuteClasses])},[t.createElementVNode("div",xkt,[t.createElementVNode("div",wkt,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",kkt,[t.createElementVNode("div",Ckt,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Ekt)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Skt)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Tkt)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Akt)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Nkt)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Bkt)):r.gameEvent.category_id==6&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==5&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==1&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==2&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==3&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==7&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==12&&r.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",Mkt)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Ikt)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Okt)):r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Fkt)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",zkt)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",Pkt)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Vkt)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Lkt)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==16||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==18||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==20||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Rkt)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==13||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==17||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==19||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==21||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",Dkt)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",$kt)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",jkt)):(t.openBlock(),t.createElementBlock("img",Ukt))])])])],2)],6)}const Gkt=$0(ckt,[["render",Hkt],["__scopeId","data-v-c284b7dc"]]),Wkt={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},qkt={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let j_=null;const Ykt={name:"TimeLine",components:{Tooltip:u7t,TimeLineEvent:Gkt},mixins:[h7t],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":Wkt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await $V.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)j_=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),j_.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const r=this.$refs[`gameEventDiv${a}`][0],u=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,y=e+12;r&&(r.style.height=`${y}px`),u&&(u.style.height=`${y}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(r=>r.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const r=qkt[a.game_status];r&&this.timeLineStatuses.push({...r,gameEvent:a})}),this.timeLineStatuses.sort((a,r)=>r.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return f7t(a)},thumbnailClick(e){this.dataVideo.link=e,this.dataVideo.visible=!0}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){j_&&j_.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,a]){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm([e,a]){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm([e,a]){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},sL=e=>(t.pushScopeId("data-v-f6284340"),e=e(),t.popScopeId(),e),Zkt={ref:"timeLine",class:"time-line"},Xkt={class:"time-line__header"},Kkt={class:"time-line__header__dot"},Jkt={class:"time-line__header__dot__home-team team-logo"},Qkt=["src"],e9t={class:"time-line__header__dot__away-team team-logo"},t9t=["src"],a9t={class:"time-line__game-events"},r9t={key:1,class:"start-line"},n9t=sL(()=>t.createElementVNode("div",null,null,-1)),i9t=sL(()=>t.createElementVNode("div",null,null,-1)),o9t=[n9t,i9t],s9t={key:1,class:"noEventText"},l9t={class:"tooltip-data"},c9t=["src"];function d9t(e,a,r,u,y,i){const l=t.resolveComponent("TimeLineEvent"),n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Zkt,[t.createElementVNode("div",Xkt,[t.createElementVNode("div",Kkt,[t.createElementVNode("div",Jkt,[t.createElementVNode("img",{src:i.getTeamLogoSrc("homeTeam"),alt:""},null,8,Qkt)]),t.createElementVNode("div",e9t,[t.createElementVNode("img",{src:i.getTeamLogoSrc("awayTeam"),alt:""},null,8,t9t)])])]),t.createElementVNode("div",a9t,[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:y.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gameEventsToShow,(_,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:_.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(i.getGameEventClassAndSetIcon(_,f))},[t.createElementVNode("div",{class:t.normalizeClass(i.getEventContainerClass(_))},[t.createVNode(l,{"game-event":_,"is-mobile":i.isMobile,"time-line-width":y.timeLineWidth,width:i.gameEventWidth,onEventHeight:o=>i.updateContainerHeight(o,f),onPlayerChanged:a[0]||(a[0]=o=>e.$emit("player-changed",o)),onThumbnailClick:i.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),r.gameData.status===1&&f===i.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",r9t,o9t)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",s9t,"Aún no comienza el partido"))])],512),t.createVNode(n,{data:y.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",l9t,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:y.dataVideo.link,format:"video/mp4"},null,8,c9t)])])]),_:1},8,["data"])],64)}const u9t=$0(Ykt,[["render",d9t],["__scopeId","data-v-f6284340"]]),p9t={class:"game-time-line__options"},h9t={class:"game-time-line__timeline"},f9t={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})}},setup(e){$V.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),r=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let u=null;const y=t.ref(["Todo","1er tiempo","2do tiempo"]),i=t.ref("Todo"),l=t.ref({}),n=t.ref(null),_=t.ref(0),f=t.computed(()=>{let s="all";return i.value==="1er tiempo"||i.value==="1er"?s="firstHalf":(i.value==="2do tiempo"||i.value==="2do")&&(s="secondHalf"),s}),o=t.computed(()=>_.value<500);function m(s){i.value=s}function x(s){l.value=s}function c(){if(window.ResizeObserver)u=new ResizeObserver(()=>{_.value=n.value.clientWidth}),u.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{u&&u.unobserve(n.value)}),(s,d)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:n,class:"game-time-line"},[t.createElementVNode("div",p9t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"game-time-line__options__option"},[t.createVNode(G6t,t.mergeProps(_.value<390?r.value:a.value,{text:p=="Todo"?p:_.value<390?p.substring(0,3):p,"is-active":i.value===p,onClick:h=>m(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",h9t,[t.createVNode(u9t,{"game-data":e.game,"time-line-period":f.value,"is-mobile":o.value,socket:e.socket,onGameEventsByPeriodFilled:x},null,8,["game-data","time-line-period","is-mobile","socket"])])],512))}},m9t=$0(f9t,[["__scopeId","data-v-787294df"]]);function g9t(e){const a=t.ref({width:0,height:0});function r(){const u=e.value.getBoundingClientRect();a.value.width=u.width,a.value.height=u.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const y9t=(e,a)=>{const r=e.__vccOpts||e;for(const[u,y]of a)r[u]=y;return r},v8={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},lL=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},cL=v8.setup;v8.setup=cL?(e,a)=>(lL(),cL(e,a)):lL;const _9t={ref:"gscScrollableContainer",class:"scrollable-container"},v9t={class:"scrollable-arrows"},b9t=["width","height","viewBox"],x9t=["stroke"],w9t={class:"scrollable-wrapper"},k9t={class:"scrollable-arrows"},C9t=["width","height","viewBox"],E9t=["stroke"];function S9t(e,a,r,u,y,i){return t.openBlock(),t.createElementBlock("div",_9t,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...l)=>i.scrollLeft&&i.scrollLeft(...l))},[t.createElementVNode("div",v9t,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,x9t)],8,b9t))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...l)=>i.getScroll&&i.getScroll(...l))},[t.createElementVNode("div",w9t,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...l)=>i.scrollRight&&i.scrollRight(...l))},[t.createElementVNode("div",k9t,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,E9t)],8,C9t))])],2)):t.createCommentVNode("",!0)],512)}const T9t=y9t(v8,[["render",S9t],["__scopeId","data-v-b548a08d"]]),A9t=(e,a)=>{const r=e.__vccOpts||e;for(const[u,y]of a)r[u]=y;return r},b8={components:{GSCSlider:T9t},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=g9t(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},dL=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},uL=b8.setup;b8.setup=uL?(e,a)=>(dL(),uL(e,a)):dL;const N9t={ref:"myDivRef"},B9t={key:0,class:"gs-switch-container"},M9t=["onClick"],I9t={key:1,class:"gs-switch-container-type"},O9t=["onClick"],F9t={key:2,class:"gs-switch-container-carousel"},z9t=["onClick"];function P9t(e,a,r,u,y,i){const l=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",N9t,[r.type==0?(t.openBlock(),t.createElementBlock("div",B9t,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(u.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,M9t))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",I9t,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(u.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:r.backgroundOptionDisable}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,O9t))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",F9t,[t.createVNode(l,{arrows:r.arrow,"background-color":r.background,"px-scroll":r.pxScroll,"scroll-color":r.scrollColor,"arrows-position":r.arrowsPosition,arrowsScrollHide:r.arrowsScrollHide,"arrows-background":r.arrowsBackground,"arrows-container-bg-l":r.arrowsContainerBgL,"arrows-container-bg-r":r.arrowsContainerBgR,"arrows-margin":r.arrowsMargin,"arrows-radius":r.arrowsRadius,"arrows-border":r.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,z9t))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const pL=A9t(b8,[["render",P9t],["__scopeId","data-v-8a86dfaf"]]);function hL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V9t(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var r=function u(){return this instanceof u?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var y=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(r,u,y.get?y:{enumerable:!0,get:function(){return e[u]}})}),r}var x8={exports:{}};function w8(){}w8.prototype={on:function(e,a,r){var u=this.e||(this.e={});return(u[e]||(u[e]=[])).push({fn:a,ctx:r}),this},once:function(e,a,r){var u=this;function y(){u.off(e,y),a.apply(r,arguments)}return y._=a,this.on(e,y,r)},emit:function(e){var a=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),u=0,y=r.length;for(u;u<y;u++)r[u].fn.apply(r[u].ctx,a);return this},off:function(e,a){var r=this.e||(this.e={}),u=r[e],y=[];if(u&&a)for(var i=0,l=u.length;i<l;i++)u[i].fn!==a&&u[i].fn._!==a&&y.push(u[i]);return y.length?r[e]=y:delete r[e],this}},x8.exports=w8,x8.exports.TinyEmitter=w8;var L9t=x8.exports,R9t=L9t,D9t=new R9t;const U_=hL(D9t),dBt="",$9t={class:"game-data__header"},j9t={class:"game-data__header__tournament-season-dropdown"},U9t={class:"game-data__header__teams-carousel"},H9t={class:"game-data__body"},G9t={class:"game-data__body__menu"},W9t={class:"game-data__body__menu__contmenuswitch"};ig.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const q9t=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:IQ,GSCGameTimeLine:m9t,GscSwitchComponent:pL,GSCLineupsMain:e0e,GSCDatosGSMain:G4e,GSCVideoGame:yTe,GSCSummaryMain:Jrt,GSCTacticaFijaMain:U6t}}),Y9t=Si(Object.assign(q9t,{props:{currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>({})},isSynchronization:{type:Boolean,default:!1}},emits:["openmedia","change-season-id","onOpenProfile"],setup(e,{emit:a}){const r=e,u=bb();U_.on("socket-connected",()=>{u.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const y=t.ref({season:[]}),i=t.ref({}),l=t.ref({}),n=t.ref(!0),_=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),f=t.ref([{componentName:"GSCSummaryMain",name:"Resumen",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"GSCDatosGSMain",name:"Datos Golstats",id:3},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Tactica Fija",id:7}]);let o=null;const m=t.ref(null),x=t.ref(0),c=t.ref(f.value[0]);let s=t.ref("");const d=t.computed(()=>{const A=[];return i.value&&i.value.id&&(A.push({id:i.value.id,name:i.value.name,type:i.value.type}),i.value.related_seasons&&i.value.related_seasons.forEach(M=>{A.push({id:M.id,type:M.type})})),A});function p(){o=new ResizeObserver(A=>{for(const M of A)x.value=M.contentRect.width}),o.observe(m.value)}const h=t.computed(()=>{let A={};return l.value&&l.value.game_id&&(A={gameId:l.value.game_id,id:l.value.game_id,seasonId:l.value.season_id,status:l.value.game_status,game_status:l.value.game_status==0?4:l.value.game_status,dateTimeUTC:l.value.date_time_utc,homeTeam:l.value.home_team,awayTeam:l.value.visiting_team,is_live:l.value.is_live}),A});t.watch(()=>u.state.nextGeneral.gameForAnalysis,()=>{u.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function g(A){y.value=A,n.value=A.is_captured!==0,y.value.id!==A.id&&(y.value=A)}function b(A){a("openmedia",A)}function v(A){a("onOpenProfile",A)}function w(A){E(A),A=="Estadísticas"&&(s.value="Comparativa")}function C(){s.value=""}function k(A){i.value.id!==A.id&&(i.value=A,a("change-season-id",A.id))}const B=t.computed(()=>f.value.map(A=>{if(n.value)return A.name;if(A.id!==5&&A.id!==6)return A.name}).filter(A=>A!=null));function E(A){c.value=f.value.find(M=>M.name===A)||f.value[0]}t.onMounted(()=>{p(),t.nextTick(()=>{r.isSynchronization&&E("Tactica Fija")})}),t.onBeforeUnmount(()=>{o&&o.disconnect()});function T(A){l.value=A}return(A,M)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:m},[t.createElementVNode("div",$9t,[t.createElementVNode("div",j9t,[t.createVNode(t.unref(v$),{"current-season-id":e.currentSeasonId,onInput:g},null,8,["current-season-id"]),t.createVNode(t.unref(j$),{"current-season-id":e.currentSeasonId,seasons:y.value.seasons,onInput:k},null,8,["current-season-id","seasons"])]),t.createElementVNode("div",U9t,[t.createVNode(t.unref(KG),{token:_.value,"await-for-seasons":"",seasons:d.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":r.defaultGameId,"sort-calendar":r.sortCalendar,onChangeGameCarousel:T},null,8,["token","seasons","default-game-id","sort-calendar"])])]),t.createElementVNode("div",H9t,[t.createElementVNode("div",G9t,[t.createElementVNode("div",W9t,[t.createVNode(t.unref(pL),{type:2,buttons:B.value,"font-family":"Poppins-Regular","font-size":"16px",width:x.value<400||x.value<700?"max-content":x.value<840||x.value<1050?"155px":"165px","selected-option":c.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:E},null,8,["buttons","width","selected-option"])])]),t.createElementVNode("h1",null,"isTacticVisible "+t.toDisplayString(!!i.value.show_tactic),1),h.value&&h.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.value.componentName),{key:0,game:h.value,subsection:t.unref(s),seasonSelected:i.value,showLineups:n.value,socket:e.socket,"is-tactic-visible":!!i.value.show_tactic,"is-synchronization":e.isSynchronization,onResetSubsection:C,onOpenmedia:b,onOnOpenProfile:v,onChangeToTab:w,onOpenMediaPlayer:b},null,40,["game","subsection","seasonSelected","showLineups","socket","is-tactic-visible","is-synchronization"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-36c536e7"]]);async function Hs({url:e,options:a={},retries:r=3}){return await ig.get(e,a).then(u=>u).catch(u=>r>0?Hs({url:e,options:a,retries:r-1}):u)}async function fL({seasonId:e},a=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(r){if(a)return fL({seasonId:e},!1);throw new Error(r)}}async function Z9t({seasonId:e}){try{return(await Hs({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function X9t({seasonId:e}){try{return(await Hs({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function K9t(e,a,r,u,y,i,l=!1){const n=r.map(_=>_===1?2:_===2?1:3);return e.filter(_=>{const f=i&&_[y.teamId]?_[y.teamId]!==i:!1,o=a===1?2:1;return(l||u.includes(_[y.gameId]))&&(!a||(f?o:a)===_[y.playingAs])&&(r.includes(_[y.matchResult])&&_[y.teamId]===i||n.includes(_[y.matchResult])&&_[y.teamId]!==i)})}function mL(e,a,r,u,y){return a.length===2&&r.length===3&&u.length===6?e:e.filter(i=>a.includes(i[y.playingAs])&&r.includes(i[y.matchResult])&&u.includes(i[y.section]))}async function gL({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Hs({url:a})).data}catch(a){return Promise.reject(a)}}async function J9t({seasonId:e,gameId:a}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:u}=await Hs({url:r});return u}catch(r){return Promise.reject(r)}}async function Q9t({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Hs({url:a})).data.data}catch(a){return Promise.reject(a)}}async function eCt({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Hs({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const tCt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let k8=null;function yL(){return k8||(k8=Z1(tCt)),k8}async function aCt(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Hs({url:a})).data}catch(a){return Promise.reject(a)}}async function _L({seasonId:e,teamId:a}){try{return await Hs({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(r){return Promise.reject(r)}}async function rCt(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Hs({url:a})}catch(a){return Promise.reject(a)}}async function nCt(e){try{return await Hs({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const iCt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,r,u){return K9t(e.seasonPlays,u["filterGeneral/getPlayingAs"],u["filterGeneral/getResults"],u["filterGeneral/getSelectedGamesIds"],yL(),u["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((r,u)=>{const y={...u};return y.home_team=e.currentSeasonTeams.find(i=>i.team_id===u.home_team),y.visiting_team=e.currentSeasonTeams.find(i=>i.team_id===u.visiting_team),r[u.matchday_abbreviation]?r[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?r[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(y):r[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[y]:r[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.date]:[y]},r},{});for(let[r,u]of Object.entries(a))a[r]=Object.entries(u).map(([y,i])=>({date:y,games:i})),a[r].sort((y,i)=>y.date<i.date?-1:y.date>i.date?1:0);return a},matchdaysDates(e,a){let r=[];if(a.nextGamesSchedule){let u=Object.keys(a.nextGamesSchedule);for(let y of u){let i=Number(y.replace("M","")),l=a.nextGamesSchedule[y].map(n=>({matchday:i,date:new Date(n.date)}));r=r.concat(l)}}return r},closestMatchDay(e,a){let r=new Date,u=0,y=-new Date(0,0,0).valueOf(),i=a.matchdaysDates,l=i.length;for(let n=0;n<i.length;n++)u=Math.abs(i[n].date-r),u<y&&(l=n,y=u);return i[l]?i[l].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},r=!1){try{const u=await fL({seasonId:a["filterGeneral/getSeasonId"]});if(r)return u;e("updateSeasonPlays",u)}catch(u){return Promise.reject(u)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const r=await gL({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const r=await aCt({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",r.teams)}catch(r){return Promise.reject(r)}},async isDataFilled({state:e,dispatch:a,commit:r}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return r("setIsSectionLoading",!1,{root:!0}),!0;const u=[void 0,void 0];return e.currentSeasonGames.length===0&&(u[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(u[1]=a("getCurrentSeasonTeams")),await Promise.all(u),!1}catch(u){throw new Error(u)}}}}};async function oCt({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:r}=await Hs({url:a});return r}catch(a){return Promise.reject(a)}}const sCt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let C8=null;function lCt(){return C8||(C8=Z1(sCt)),C8}class H_{constructor(){Vi(this,"maximumLiveSection",1);Vi(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vi(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,r,u){u&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=r,this.accomplished.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r)),this.accomplished.totalPostGame+=r,this.accomplished.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,r)}increaseReceivedByOne(a,r,u){u&&(this.setMaximumLiveSection(a),this.received.totalLive+=r,this.received.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r)),this.received.totalPostGame+=r,this.received.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,r)}increaseTrendLiveAccumulatedByOne(a,r,u){for(let y=r-1;y<a.accumulated.length;y++)a.accumulated[y]+=u}decreaseAccomplishedLiveByOne(a,r){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=r),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r))}decreaseReceivedLiveByOne(a,r){this.received.totalLive>0&&(this.received.totalLive-=r),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,r,u){for(let y=a.accumulated.length-1;y>=r-1;y--)a.accumulated[y]-=u}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,r){return a.map(u=>u/r)}calculateRanking(a,r,u,y,i,l,n,_){let f=[];y===3&&a&&a.length&&(u.playingAs.length!==2||u.matchResult.length!==3)?f=Array.from(a.reduce((m,x)=>{const c=x[r.playingAs]===1,s=c?"1":"2",d=m.get(x[r.gameId]);if(d)d[s]?d[s].arrayPlays.push(x):d[s]={numberTeamId:x[r.teamId],arrayPlays:[x]};else{const p={numberMatchResult:x[r.matchResult]};c&&(p[1]={numberTeamId:x[r.teamId],arrayPlays:[x]}),m.set(x[r.gameId],p)}return m},new Map).values()).reduce((m,x)=>{const c=u.playingAs.length===2?"both":u.playingAs[0].toString();return(c==="both"&&(x[1].numberTeamId===u.teamId||x[2].numberTeamId===u.teamId)||c!=="both"&&x[c].numberTeamId===u.teamId)&&u.matchResult.includes(x.numberMatchResult)&&m.push(...x[1].arrayPlays,...x[2].arrayPlays),m},[]).filter(m=>u.sections.includes(m[r.section])):(f=a?[...a]:[],n&&a&&(f=a.filter(o=>u.playingAs.includes(o[r.playingAs])&&u.matchResult.includes(o[r.matchResult])&&u.sections.includes(o[r.section])))),this.setTeamRanking(f,y,r,u.teamId,l,"accomplished",_)}setTeamRanking(a,r,u,y,i,l,n){let _=null,f=null;r===3&&(_=new Map,f={},a.forEach(x=>{const c=_.get(x[u.gameId]);c?c[x[u.teamId.toString()]]?c[x[u.teamId.toString()]]+=x[u.total]:c[x[u.teamId.toString()]]=x[u.total]:_.set(x[u.gameId],{[x[u.teamId.toString()]]:x[u.total]})}),Array.from(_.values()).forEach(x=>{const[c,s]=Object.keys(x).map(p=>p),d=x[c]+x[s];this.addPassesAvgByTeam(f,c,d?x[c]/d:0),this.addPassesAvgByTeam(f,s,d?x[s]/d:0)}));const o=i.sort((x,c)=>x.team_id-c.team_id).map(x=>{if(r===3){const c=f[x.team_id.toString()];return{teamId:x.team_id,points:c?c.numberTotalPassesAvg/c.numberGamesCount:0,total:c?c.numberTotalPassesAvg:0}}else{const c=a.reduce((s,d)=>d[u.teamId]===x.team_id&&r===d[u.categoryId]?s+d[u.total]:s,0);return{teamId:x.team_id,points:x[`${n}FilterGames`]?c/x[`${n}FilterGames`]:0,total:c}}}).sort((x,c)=>c.points-x.points);this.accomplished.arrayRankings=o;const m=o.findIndex(x=>x.teamId===y);r===3&&(this.accomplished.avgPreGame=o[m].points),this[l].ranking=m+1,this[l].leader=o[0]}addPassesAvgByTeam(a,r,u){a[r]?(a[r].numberGamesCount+=1,a[r].numberTotalPassesAvg+=u):a[r]={numberGamesCount:1,numberTotalPassesAvg:u}}}class bn{constructor(a,r,u,y,i,l,n,_,f,o){Vi(this,"id","");Vi(this,"generalId",0);Vi(this,"name","");Vi(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vi(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vi(this,"accomplishedCategoryIds",[]);Vi(this,"receivedCategoryIds",[]);Vi(this,"generalCategoriesIds",{accomplished:0,received:0});Vi(this,"specialMention","");Vi(this,"homeTeam",new H_);Vi(this,"visitingTeam",new H_);Vi(this,"isLeagueDataCalculated",!1);Vi(this,"leagueAccomplishedMax",0);Vi(this,"leagueReceivedMax",0);Vi(this,"leagueAccomplishedAvg",0);Vi(this,"leagueReceivedAvg",0);Vi(this,"leagueAccomplishedAccumulator",0);Vi(this,"leagueReceivedAccumulator",0);Vi(this,"homeTeamType","homeTeam");Vi(this,"visitingTeamType","visitingTeam");Vi(this,"betOnly",!1);Vi(this,"isPercent",!1);this.id=`${u.accomplished}-${u.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=u||{accomplished:0,received:0},this.name=y,this.names["0-0"]=y||"",this.names["1-1"]=i||"",this.names["0-1"]=l||"",this.names["1-0"]=n||"",this.generalId=_||0,this.betOnly=f||!1,this.isPercent=o||!1}addLeaguePlays(a,r,u){a.length===0||!u||this.isLeagueDataCalculated||(a.forEach(y=>{this.isAccomplishedLeaguePlay(y[r.categoryId])&&(this.leagueAccomplishedAccumulator+=y[r.total]),this.isReceivedLeaguePlay(y[r.categoryId])&&(this.leagueReceivedAccumulator+=y[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*u)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*u)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,r,u){let y="-";for(const[i,l]of Object.entries(this.generalCategoriesIds))a===l&&(y=`${i==="accomplished"?"0":"1"}${y}`),r===l&&(y=`${y}${i==="accomplished"?"0":"1"}`);y.length===3&&(this.mentions[y]=u)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,r,u,y,i){!u||!i||a!==this.homeTeamType&&a!==this.visitingTeamType||(u.forEach(l=>{this.isAccomplishedPlay(l[y.categoryId])?this[a].increaseAccomplishedByOne(l[y.section],l[y.total]):this.isReceivedPlay(l[y.categoryId])&&this[a].increaseReceivedByOne(l[y.section],l[y.total])}),this[a].calculateAvg(i))}addLivePlay(a,r,u,y,i=!1,l=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&u[y.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(u[y.section],u[y.total],!0)}subtractLivePlay(a,r,u,y,i){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(u[y.categoryId])&&!i?this[a].decreaseAccomplishedLiveByOne(u[y.section],u[y.total]):this.isReceivedPlay(u[y.categoryId])&&i&&this[a].decreaseReceivedLiveByOne(u[y.section],u[y.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(u=>a===u||`${a}_r`===u)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(r=>a===r)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,r,u,y,i,l=!1){this[this.homeTeamType].calculateRanking(a,r,u,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,l,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,r,y,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,l,this.visitingTeamType)}resetData(){this.homeTeam=new H_,this.visitingTeam=new H_,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const cCt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new bn([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new bn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new bn([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new bn([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new bn([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new bn([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new bn([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new bn([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new bn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new bn([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new bn([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new bn([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new bn([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new bn([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new bn([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new bn([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new bn([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new bn([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new bn([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new bn([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new bn([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new bn([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new bn([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new bn([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new bn([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new bn([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new bn([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new bn([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new bn([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new bn([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new bn([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new bn([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new bn([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new bn([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new bn([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new bn([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new bn([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new bn([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},dCt=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],uCt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let E8=null;function pCt(){return E8||(E8=Z1(uCt)),E8}const hCt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let S8=null;function fCt(){return S8||(S8=Z1(hCt)),S8}function G_(e,a,r){return[r.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function vL(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function T8(e,a,r){let u=[...a];return e[r.categoryId]===2&&(u[0]=14),e[r.categoryId]===20&&(u[0]=15),[14,15].includes(u[0])?u:null}var A8={exports:{}},mCt=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,gCt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],bL=function(a){var r=a,u=a.indexOf("["),y=a.indexOf("]");u!=-1&&y!=-1&&(a=a.substring(0,u)+a.substring(u,y).replace(/:/g,";")+a.substring(y,a.length));for(var i=mCt.exec(a||""),l={},n=14;n--;)l[gCt[n]]=i[n]||"";return u!=-1&&y!=-1&&(l.source=r,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=yCt(l,l.path),l.queryKey=_Ct(l,l.query),l};function yCt(e,a){var r=/\/{2,9}/g,u=a.replace(r,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&u.splice(0,1),a.substr(a.length-1,1)=="/"&&u.splice(u.length-1,1),u}function _Ct(e,a){var r={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,y,i){y&&(r[y]=i)}),r}var N8={exports:{}},B8={exports:{}},q0=1e3,Y0=q0*60,Z0=Y0*60,X0=Z0*24,vCt=X0*365.25,bCt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return xCt(e);if(r==="number"&&isNaN(e)===!1)return a.long?kCt(e):wCt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xCt(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*vCt;case"days":case"day":case"d":return r*X0;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Z0;case"minutes":case"minute":case"mins":case"min":case"m":return r*Y0;case"seconds":case"second":case"secs":case"sec":case"s":return r*q0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wCt(e){return e>=X0?Math.round(e/X0)+"d":e>=Z0?Math.round(e/Z0)+"h":e>=Y0?Math.round(e/Y0)+"m":e>=q0?Math.round(e/q0)+"s":e+"ms"}function kCt(e){return W_(e,X0,"day")||W_(e,Z0,"hour")||W_(e,Y0,"minute")||W_(e,q0,"second")||e+" ms"}function W_(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=u.debug=u.default=u,a.coerce=_,a.disable=l,a.enable=i,a.enabled=n,a.humanize=bCt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,m;for(m in f)o=(o<<5)-o+f.charCodeAt(m),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function u(f){var o;function m(){if(m.enabled){var x=m,c=+new Date,s=c-(o||c);x.diff=s,x.prev=o,x.curr=c,o=c;for(var d=new Array(arguments.length),p=0;p<d.length;p++)d[p]=arguments[p];d[0]=a.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var h=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(b,v){if(b==="%%")return b;h++;var w=a.formatters[v];if(typeof w=="function"){var C=d[h];b=w.call(x,C),d.splice(h,1),h--}return b}),a.formatArgs.call(x,d);var g=m.log||a.log||console.log.bind(console);g.apply(x,d)}}return m.namespace=f,m.enabled=a.enabled(f),m.useColors=a.useColors(),m.color=r(f),m.destroy=y,typeof a.init=="function"&&a.init(m),a.instances.push(m),m}function y(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function i(f){a.save(f),a.names=[],a.skips=[];var o,m=(typeof f=="string"?f:"").split(/[\s,]+/),x=m.length;for(o=0;o<x;o++)m[o]&&(f=m[o].replace(/\*/g,".*?"),f[0]==="-"?a.skips.push(new RegExp("^"+f.substr(1)+"$")):a.names.push(new RegExp("^"+f+"$")));for(o=0;o<a.instances.length;o++){var c=a.instances[o];c.enabled=a.enabled(c.namespace)}}function l(){a.enable("")}function n(f){if(f[f.length-1]==="*")return!0;var o,m;for(o=0,m=a.skips.length;o<m;o++)if(a.skips[o].test(f))return!1;for(o=0,m=a.names.length;o<m;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(B8,B8.exports);var CCt=B8.exports;(function(e,a){a=e.exports=CCt,a.log=y,a.formatArgs=u,a.save=i,a.load=l,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function u(_){var f=this.useColors;if(_[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+_[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),!!f){var o="color: "+this.color;_.splice(1,0,o,"color: inherit");var m=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(m++,c==="%c"&&(x=m))}),_.splice(x,0,o)}}function y(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function l(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(l());function n(){try{return window.localStorage}catch{}}})(N8,N8.exports);var q_=N8.exports,ECt=bL,xL=q_("socket.io-client:url"),SCt=TCt;function TCt(e,a){var r=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(xL("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),xL("parse %s",e),r=ECt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var u=r.host.indexOf(":")!==-1,y=u?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+y+":"+r.port,r.href=r.protocol+"://"+y+(a&&a.port===r.port?"":":"+r.port),r}var Y_={},M8={exports:{}},I8={exports:{}},K0=1e3,J0=K0*60,Q0=J0*60,e1=Q0*24,ACt=e1*365.25,NCt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return BCt(e);if(r==="number"&&isNaN(e)===!1)return a.long?ICt(e):MCt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function BCt(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*ACt;case"days":case"day":case"d":return r*e1;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Q0;case"minutes":case"minute":case"mins":case"min":case"m":return r*J0;case"seconds":case"second":case"secs":case"sec":case"s":return r*K0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function MCt(e){return e>=e1?Math.round(e/e1)+"d":e>=Q0?Math.round(e/Q0)+"h":e>=J0?Math.round(e/J0)+"m":e>=K0?Math.round(e/K0)+"s":e+"ms"}function ICt(e){return Z_(e,e1,"day")||Z_(e,Q0,"hour")||Z_(e,J0,"minute")||Z_(e,K0,"second")||e+" ms"}function Z_(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=u.debug=u.default=u,a.coerce=_,a.disable=l,a.enable=i,a.enabled=n,a.humanize=NCt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,m;for(m in f)o=(o<<5)-o+f.charCodeAt(m),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function u(f){var o;function m(){if(m.enabled){var x=m,c=+new Date,s=c-(o||c);x.diff=s,x.prev=o,x.curr=c,o=c;for(var d=new Array(arguments.length),p=0;p<d.length;p++)d[p]=arguments[p];d[0]=a.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var h=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(b,v){if(b==="%%")return b;h++;var w=a.formatters[v];if(typeof w=="function"){var C=d[h];b=w.call(x,C),d.splice(h,1),h--}return b}),a.formatArgs.call(x,d);var g=m.log||a.log||console.log.bind(console);g.apply(x,d)}}return m.namespace=f,m.enabled=a.enabled(f),m.useColors=a.useColors(),m.color=r(f),m.destroy=y,typeof a.init=="function"&&a.init(m),a.instances.push(m),m}function y(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function i(f){a.save(f),a.names=[],a.skips=[];var o,m=(typeof f=="string"?f:"").split(/[\s,]+/),x=m.length;for(o=0;o<x;o++)m[o]&&(f=m[o].replace(/\*/g,".*?"),f[0]==="-"?a.skips.push(new RegExp("^"+f.substr(1)+"$")):a.names.push(new RegExp("^"+f+"$")));for(o=0;o<a.instances.length;o++){var c=a.instances[o];c.enabled=a.enabled(c.namespace)}}function l(){a.enable("")}function n(f){if(f[f.length-1]==="*")return!0;var o,m;for(o=0,m=a.skips.length;o<m;o++)if(a.skips[o].test(f))return!1;for(o=0,m=a.names.length;o<m;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(I8,I8.exports);var OCt=I8.exports;(function(e,a){a=e.exports=OCt,a.log=y,a.formatArgs=u,a.save=i,a.load=l,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function u(_){var f=this.useColors;if(_[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+_[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),!!f){var o="color: "+this.color;_.splice(1,0,o,"color: inherit");var m=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(m++,c==="%c"&&(x=m))}),_.splice(x,0,o)}}function y(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function l(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(l());function n(){try{return window.localStorage}catch{}}})(M8,M8.exports);var FCt=M8.exports,wL={exports:{}};(function(e){e.exports=a;function a(u){if(u)return r(u)}function r(u){for(var y in a.prototype)u[y]=a.prototype[y];return u}a.prototype.on=a.prototype.addEventListener=function(u,y){return this._callbacks=this._callbacks||{},(this._callbacks["$"+u]=this._callbacks["$"+u]||[]).push(y),this},a.prototype.once=function(u,y){function i(){this.off(u,i),y.apply(this,arguments)}return i.fn=y,this.on(u,i),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(u,y){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+u];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+u],this;for(var l,n=0;n<i.length;n++)if(l=i[n],l===y||l.fn===y){i.splice(n,1);break}return i.length===0&&delete this._callbacks["$"+u],this},a.prototype.emit=function(u){this._callbacks=this._callbacks||{};for(var y=new Array(arguments.length-1),i=this._callbacks["$"+u],l=1;l<arguments.length;l++)y[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,n=i.length;l<n;++l)i[l].apply(this,y)}return this},a.prototype.listeners=function(u){return this._callbacks=this._callbacks||{},this._callbacks["$"+u]||[]},a.prototype.hasListeners=function(u){return!!this.listeners(u).length}})(wL);var pf=wL.exports,X_={},zCt={}.toString,O8=Array.isArray||function(e){return zCt.call(e)=="[object Array]"},kL=RCt,PCt=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",VCt=typeof ArrayBuffer=="function",LCt=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function RCt(e){return PCt&&Buffer.isBuffer(e)||VCt&&(e instanceof ArrayBuffer||LCt(e))}var F8=O8,CL=kL,EL=Object.prototype.toString,DCt=typeof Blob=="function"||typeof Blob<"u"&&EL.call(Blob)==="[object BlobConstructor]",$Ct=typeof File=="function"||typeof File<"u"&&EL.call(File)==="[object FileConstructor]";X_.deconstructPacket=function(e){var a=[],r=e.data,u=e;return u.data=z8(r,a),u.attachments=a.length,{packet:u,buffers:a}};function z8(e,a){if(!e)return e;if(CL(e)){var r={_placeholder:!0,num:a.length};return a.push(e),r}else if(F8(e)){for(var u=new Array(e.length),y=0;y<e.length;y++)u[y]=z8(e[y],a);return u}else if(typeof e=="object"&&!(e instanceof Date)){var u={};for(var i in e)u[i]=z8(e[i],a);return u}return e}X_.reconstructPacket=function(e,a){return e.data=P8(e.data,a),e.attachments=void 0,e};function P8(e,a){if(!e)return e;if(e&&e._placeholder===!0){var r=typeof e.num=="number"&&e.num>=0&&e.num<a.length;if(r)return a[e.num];throw new Error("illegal attachments")}else if(F8(e))for(var u=0;u<e.length;u++)e[u]=P8(e[u],a);else if(typeof e=="object")for(var y in e)e[y]=P8(e[y],a);return e}X_.removeBlobs=function(e,a){function r(i,l,n){if(!i)return i;if(DCt&&i instanceof Blob||$Ct&&i instanceof File){u++;var _=new FileReader;_.onload=function(){n?n[l]=this.result:y=this.result,--u||a(y)},_.readAsArrayBuffer(i)}else if(F8(i))for(var f=0;f<i.length;f++)r(i[f],f,i);else if(typeof i=="object"&&!CL(i))for(var o in i)r(i[o],o,i)}var u=0,y=e;r(y),u||a(y)},function(e){var a=FCt("socket.io-parser"),r=pf,u=X_,y=O8,i=kL;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=l,e.Decoder=m;function l(){}var n=e.ERROR+'"encode error"';l.prototype.encode=function(p,h){if(a("encoding packet %j",p),e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type)o(p,h);else{var g=_(p);h([g])}};function _(p){var h=""+p.type;if((e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type)&&(h+=p.attachments+"-"),p.nsp&&p.nsp!=="/"&&(h+=p.nsp+","),p.id!=null&&(h+=p.id),p.data!=null){var g=f(p.data);if(g!==!1)h+=g;else return n}return a("encoded %j as %s",p,h),h}function f(p){try{return JSON.stringify(p)}catch{return!1}}function o(p,h){function g(b){var v=u.deconstructPacket(b),w=_(v.packet),C=v.buffers;C.unshift(w),h(C)}u.removeBlobs(p,g)}function m(){this.reconstructor=null}r(m.prototype),m.prototype.add=function(p){var h;if(typeof p=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=x(p),e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type?(this.reconstructor=new s(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(i(p)||p.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(p),h&&(this.reconstructor=null,this.emit("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+p)};function x(p){var h=0,g={type:Number(p.charAt(0))};if(e.types[g.type]==null)return d("unknown packet type "+g.type);if(e.BINARY_EVENT===g.type||e.BINARY_ACK===g.type){for(var b=h+1;p.charAt(++h)!=="-"&&h!=p.length;);var v=p.substring(b,h);if(v!=Number(v)||p.charAt(h)!=="-")throw new Error("Illegal attachments");g.attachments=Number(v)}if(p.charAt(h+1)==="/"){for(var b=h+1;++h;){var w=p.charAt(h);if(w===","||h===p.length)break}g.nsp=p.substring(b,h)}else g.nsp="/";var C=p.charAt(h+1);if(C!==""&&Number(C)==C){for(var b=h+1;++h;){var w=p.charAt(h);if(w==null||Number(w)!=w){--h;break}if(h===p.length)break}g.id=Number(p.substring(b,h+1))}if(p.charAt(++h)){var k=c(p.substr(h)),B=k!==!1&&(g.type===e.ERROR||y(k));if(B)g.data=k;else return d("invalid payload")}return a("decoded %s as %j",p,g),g}function c(p){try{return JSON.parse(p)}catch{return!1}}m.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function s(p){this.reconPack=p,this.buffers=[]}s.prototype.takeBinaryData=function(p){if(this.buffers.push(p),this.buffers.length===this.reconPack.attachments){var h=u.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},s.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function d(p){return{type:e.ERROR,data:"parser error: "+p}}}(Y_);var V8={exports:{}},K_={},L8={exports:{}};try{L8.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{L8.exports=!1}var jCt=L8.exports,R8=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),UCt=jCt,HCt=R8,D8=function(e){var a=e.xdomain,r=e.xscheme,u=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||UCt))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!r&&u)return new XDomainRequest}catch{}if(!a)try{return new HCt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},$8={exports:{}},Vp={},GCt=Object.keys||function(a){var r=[],u=Object.prototype.hasOwnProperty;for(var y in a)u.call(a,y)&&r.push(y);return r},WCt=O8,SL=Object.prototype.toString,qCt=typeof Blob=="function"||typeof Blob<"u"&&SL.call(Blob)==="[object BlobConstructor]",YCt=typeof File=="function"||typeof File<"u"&&SL.call(File)==="[object FileConstructor]",TL=J_;function J_(e){if(!e||typeof e!="object")return!1;if(WCt(e)){for(var a=0,r=e.length;a<r;a++)if(J_(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||qCt&&e instanceof Blob||YCt&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return J_(e.toJSON(),!0);for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)&&J_(e[u]))return!0;return!1}var ZCt=function(e,a,r){var u=e.byteLength;if(a=a||0,r=r||u,e.slice)return e.slice(a,r);if(a<0&&(a+=u),r<0&&(r+=u),r>u&&(r=u),a>=u||a>=r||u===0)return new ArrayBuffer(0);for(var y=new Uint8Array(e),i=new Uint8Array(r-a),l=a,n=0;l<r;l++,n++)i[n]=y[l];return i.buffer},XCt=KCt;function KCt(e,a,r){var u=!1;return r=r||JCt,y.count=e,e===0?a():y;function y(i,l){if(y.count<=0)throw new Error("after called too many times");--y.count,i?(u=!0,a(i),a=r):y.count===0&&!u&&a(null,l)}}function JCt(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var ap=String.fromCharCode;function AL(e){for(var a=[],r=0,u=e.length,y,i;r<u;)y=e.charCodeAt(r++),y>=55296&&y<=56319&&r<u?(i=e.charCodeAt(r++),(i&64512)==56320?a.push(((y&1023)<<10)+(i&1023)+65536):(a.push(y),r--)):a.push(y);return a}function QCt(e){for(var a=e.length,r=-1,u,y="";++r<a;)u=e[r],u>65535&&(u-=65536,y+=ap(u>>>10&1023|55296),u=56320|u&1023),y+=ap(u);return y}function NL(e,a){if(e>=55296&&e<=57343){if(a)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function j8(e,a){return ap(e>>a&63|128)}function eEt(e,a){if(!(e&4294967168))return ap(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=ap(e>>18&7|240),r+=j8(e,12),r+=j8(e,6)):(NL(e,a)||(e=65533),r=ap(e>>12&15|224),r+=j8(e,6)):r=ap(e>>6&31|192),r+=ap(e&63|128),r}function tEt(e,a){a=a||{};for(var r=a.strict!==!1,u=AL(e),y=u.length,i=-1,l,n="";++i<y;)l=u[i],n+=eEt(l,r);return n}function hf(){if(rp>=ev)throw Error("Invalid byte index");var e=Q_[rp]&255;if(rp++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function aEt(e){var a,r,u,y,i;if(rp>ev)throw Error("Invalid byte index");if(rp==ev)return!1;if(a=Q_[rp]&255,rp++,!(a&128))return a;if((a&224)==192){if(r=hf(),i=(a&31)<<6|r,i>=128)return i;throw Error("Invalid continuation byte")}if((a&240)==224){if(r=hf(),u=hf(),i=(a&15)<<12|r<<6|u,i>=2048)return NL(i,e)?i:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(r=hf(),u=hf(),y=hf(),i=(a&7)<<18|r<<12|u<<6|y,i>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}var Q_,ev,rp;function rEt(e,a){a=a||{};var r=a.strict!==!1;Q_=AL(e),ev=Q_.length,rp=0;for(var u=[],y;(y=aEt(r))!==!1;)u.push(y);return QCt(u)}var nEt={version:"2.1.2",encode:tEt,decode:rEt},tv={},BL;function iEt(){return BL||(BL=1,function(e){tv.encode=function(a){var r=new Uint8Array(a),u,y=r.length,i="";for(u=0;u<y;u+=3)i+=e[r[u]>>2],i+=e[(r[u]&3)<<4|r[u+1]>>4],i+=e[(r[u+1]&15)<<2|r[u+2]>>6],i+=e[r[u+2]&63];return y%3===2?i=i.substring(0,i.length-1)+"=":y%3===1&&(i=i.substring(0,i.length-2)+"=="),i},tv.decode=function(a){var r=a.length*.75,u=a.length,y,i=0,l,n,_,f;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);var o=new ArrayBuffer(r),m=new Uint8Array(o);for(y=0;y<u;y+=4)l=e.indexOf(a[y]),n=e.indexOf(a[y+1]),_=e.indexOf(a[y+2]),f=e.indexOf(a[y+3]),m[i++]=l<<2|n>>4,m[i++]=(n&15)<<4|_>>2,m[i++]=(_&3)<<6|f&63;return o}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),tv}var U8,ML;function oEt(){if(ML)return U8;ML=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var n=new Blob(["hi"]);return n.size===2}catch{return!1}}(),r=a&&function(){try{var n=new Blob([new Uint8Array([1,2])]);return n.size===2}catch{return!1}}(),u=e&&e.prototype.append&&e.prototype.getBlob;function y(n){return n.map(function(_){if(_.buffer instanceof ArrayBuffer){var f=_.buffer;if(_.byteLength!==f.byteLength){var o=new Uint8Array(_.byteLength);o.set(new Uint8Array(f,_.byteOffset,_.byteLength)),f=o.buffer}return f}return _})}function i(n,_){_=_||{};var f=new e;return y(n).forEach(function(o){f.append(o)}),_.type?f.getBlob(_.type):f.getBlob()}function l(n,_){return new Blob(y(n),_||{})}return typeof Blob<"u"&&(i.prototype=Blob.prototype,l.prototype=Blob.prototype),U8=function(){return a?r?Blob:l:u?i:void 0}(),U8}(function(e){var a=GCt,r=TL,u=ZCt,y=XCt,i=nEt,l;typeof ArrayBuffer<"u"&&(l=iEt());var n=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),_=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),f=n||_;e.protocol=3;var o=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},m=a(o),x={type:"error",data:"parser error"},c=oEt();e.encodePacket=function(v,w,C,k){typeof w=="function"&&(k=w,w=!1),typeof C=="function"&&(k=C,C=null);var B=v.data===void 0?void 0:v.data.buffer||v.data;if(typeof ArrayBuffer<"u"&&B instanceof ArrayBuffer)return d(v,w,k);if(typeof c<"u"&&B instanceof c)return h(v,w,k);if(B&&B.base64)return s(v,k);var E=o[v.type];return v.data!==void 0&&(E+=C?i.encode(String(v.data),{strict:!1}):String(v.data)),k(""+E)};function s(v,w){var C="b"+e.packets[v.type]+v.data.data;return w(C)}function d(v,w,C){if(!w)return e.encodeBase64Packet(v,C);var k=v.data,B=new Uint8Array(k),E=new Uint8Array(1+k.byteLength);E[0]=o[v.type];for(var T=0;T<B.length;T++)E[T+1]=B[T];return C(E.buffer)}function p(v,w,C){if(!w)return e.encodeBase64Packet(v,C);var k=new FileReader;return k.onload=function(){e.encodePacket({type:v.type,data:k.result},w,!0,C)},k.readAsArrayBuffer(v.data)}function h(v,w,C){if(!w)return e.encodeBase64Packet(v,C);if(f)return p(v,w,C);var k=new Uint8Array(1);k[0]=o[v.type];var B=new c([k.buffer,v.data]);return C(B)}e.encodeBase64Packet=function(v,w){var C="b"+e.packets[v.type];if(typeof c<"u"&&v.data instanceof c){var k=new FileReader;return k.onload=function(){var M=k.result.split(",")[1];w(C+M)},k.readAsDataURL(v.data)}var B;try{B=String.fromCharCode.apply(null,new Uint8Array(v.data))}catch{for(var E=new Uint8Array(v.data),T=new Array(E.length),A=0;A<E.length;A++)T[A]=E[A];B=String.fromCharCode.apply(null,T)}return C+=btoa(B),w(C)},e.decodePacket=function(v,w,C){if(v===void 0)return x;if(typeof v=="string"){if(v.charAt(0)==="b")return e.decodeBase64Packet(v.substr(1),w);if(C&&(v=g(v),v===!1))return x;var B=v.charAt(0);return Number(B)!=B||!m[B]?x:v.length>1?{type:m[B],data:v.substring(1)}:{type:m[B]}}var k=new Uint8Array(v),B=k[0],E=u(v,1);return c&&w==="blob"&&(E=new c([E])),{type:m[B],data:E}};function g(v){try{v=i.decode(v,{strict:!1})}catch{return!1}return v}e.decodeBase64Packet=function(v,w){var C=m[v.charAt(0)];if(!l)return{type:C,data:{base64:!0,data:v.substr(1)}};var k=l.decode(v.substr(1));return w==="blob"&&c&&(k=new c([k])),{type:C,data:k}},e.encodePayload=function(v,w,C){typeof w=="function"&&(C=w,w=null);var k=r(v);if(w&&k)return c&&!f?e.encodePayloadAsBlob(v,C):e.encodePayloadAsArrayBuffer(v,C);if(!v.length)return C("0:");function B(T){return T.length+":"+T}function E(T,A){e.encodePacket(T,k?w:!1,!1,function(M){A(null,B(M))})}b(v,E,function(T,A){return C(A.join(""))})};function b(v,w,C){for(var k=new Array(v.length),B=y(v.length,C),E=function(A,M,N){w(M,function(O,S){k[A]=S,N(O,k)})},T=0;T<v.length;T++)E(T,v[T],B)}e.decodePayload=function(v,w,C){if(typeof v!="string")return e.decodePayloadAsBinary(v,w,C);typeof w=="function"&&(C=w,w=null);var k;if(v==="")return C(x,0,1);for(var B="",E,T,A=0,M=v.length;A<M;A++){var N=v.charAt(A);if(N!==":"){B+=N;continue}if(B===""||B!=(E=Number(B))||(T=v.substr(A+1,E),B!=T.length))return C(x,0,1);if(T.length){if(k=e.decodePacket(T,w,!1),x.type===k.type&&x.data===k.data)return C(x,0,1);var O=C(k,A+E,M);if(O===!1)return}A+=E,B=""}if(B!=="")return C(x,0,1)},e.encodePayloadAsArrayBuffer=function(v,w){if(!v.length)return w(new ArrayBuffer(0));function C(k,B){e.encodePacket(k,!0,!0,function(E){return B(null,E)})}b(v,C,function(k,B){var E=B.reduce(function(M,N){var O;return typeof N=="string"?O=N.length:O=N.byteLength,M+O.toString().length+O+2},0),T=new Uint8Array(E),A=0;return B.forEach(function(M){var N=typeof M=="string",O=M;if(N){for(var I=new Uint8Array(M.length),S=0;S<M.length;S++)I[S]=M.charCodeAt(S);O=I.buffer}N?T[A++]=0:T[A++]=1;for(var z=O.byteLength.toString(),S=0;S<z.length;S++)T[A++]=parseInt(z[S]);T[A++]=255;for(var I=new Uint8Array(O),S=0;S<I.length;S++)T[A++]=I[S]}),w(T.buffer)})},e.encodePayloadAsBlob=function(v,w){function C(k,B){e.encodePacket(k,!0,!0,function(E){var T=new Uint8Array(1);if(T[0]=1,typeof E=="string"){for(var A=new Uint8Array(E.length),M=0;M<E.length;M++)A[M]=E.charCodeAt(M);E=A.buffer,T[0]=0}for(var N=E instanceof ArrayBuffer?E.byteLength:E.size,O=N.toString(),S=new Uint8Array(O.length+1),M=0;M<O.length;M++)S[M]=parseInt(O[M]);if(S[O.length]=255,c){var z=new c([T.buffer,S.buffer,E]);B(null,z)}})}b(v,C,function(k,B){return w(new c(B))})},e.decodePayloadAsBinary=function(v,w,C){typeof w=="function"&&(C=w,w=null);for(var k=v,B=[];k.byteLength>0;){for(var E=new Uint8Array(k),T=E[0]===0,A="",M=1;E[M]!==255;M++){if(A.length>310)return C(x,0,1);A+=E[M]}k=u(k,2+A.length),A=parseInt(A);var N=u(k,0,A);if(T)try{N=String.fromCharCode.apply(null,new Uint8Array(N))}catch{var O=new Uint8Array(N);N="";for(var M=0;M<O.length;M++)N+=String.fromCharCode(O[M])}B.push(N),k=u(k,A)}var S=B.length;B.forEach(function(z,I){C(e.decodePacket(z,w,!0),I,S)})}})(Vp);var H8,IL;function G8(){if(IL)return H8;IL=1;var e=Vp,a=pf;H8=r;function r(u){this.path=u.path,this.hostname=u.hostname,this.port=u.port,this.secure=u.secure,this.query=u.query,this.timestampParam=u.timestampParam,this.timestampRequests=u.timestampRequests,this.readyState="",this.agent=u.agent||!1,this.socket=u.socket,this.enablesXDR=u.enablesXDR,this.withCredentials=u.withCredentials,this.pfx=u.pfx,this.key=u.key,this.passphrase=u.passphrase,this.cert=u.cert,this.ca=u.ca,this.ciphers=u.ciphers,this.rejectUnauthorized=u.rejectUnauthorized,this.forceNode=u.forceNode,this.isReactNative=u.isReactNative,this.extraHeaders=u.extraHeaders,this.localAddress=u.localAddress}return a(r.prototype),r.prototype.onError=function(u,y){var i=new Error(u);return i.type="TransportError",i.description=y,this.emit("error",i),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(u){if(this.readyState==="open")this.write(u);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(u){var y=e.decodePacket(u,this.socket.binaryType);this.onPacket(y)},r.prototype.onPacket=function(u){this.emit("packet",u)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},H8}var ff={};ff.encode=function(e){var a="";for(var r in e)e.hasOwnProperty(r)&&(a.length&&(a+="&"),a+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return a},ff.decode=function(e){for(var a={},r=e.split("&"),u=0,y=r.length;u<y;u++){var i=r[u].split("=");a[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return a};var av=function(e,a){var r=function(){};r.prototype=a.prototype,e.prototype=new r,e.prototype.constructor=e},OL="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),rv=64,FL={},zL=0,np=0,PL;function W8(e){var a="";do a=OL[e%rv]+a,e=Math.floor(e/rv);while(e>0);return a}function sEt(e){var a=0;for(np=0;np<e.length;np++)a=a*rv+FL[e.charAt(np)];return a}function q8(){var e=W8(+new Date);return e!==PL?(zL=0,PL=e):e+"."+W8(zL++)}for(;np<rv;np++)FL[OL[np]]=np;q8.encode=W8,q8.decode=sEt;var VL=q8,Y8={exports:{}},Z8={exports:{}},t1=1e3,a1=t1*60,r1=a1*60,n1=r1*24,lEt=n1*365.25,cEt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return dEt(e);if(r==="number"&&isNaN(e)===!1)return a.long?pEt(e):uEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function dEt(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*lEt;case"days":case"day":case"d":return r*n1;case"hours":case"hour":case"hrs":case"hr":case"h":return r*r1;case"minutes":case"minute":case"mins":case"min":case"m":return r*a1;case"seconds":case"second":case"secs":case"sec":case"s":return r*t1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function uEt(e){return e>=n1?Math.round(e/n1)+"d":e>=r1?Math.round(e/r1)+"h":e>=a1?Math.round(e/a1)+"m":e>=t1?Math.round(e/t1)+"s":e+"ms"}function pEt(e){return nv(e,n1,"day")||nv(e,r1,"hour")||nv(e,a1,"minute")||nv(e,t1,"second")||e+" ms"}function nv(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=u.debug=u.default=u,a.coerce=_,a.disable=l,a.enable=i,a.enabled=n,a.humanize=cEt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,m;for(m in f)o=(o<<5)-o+f.charCodeAt(m),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function u(f){var o;function m(){if(m.enabled){var x=m,c=+new Date,s=c-(o||c);x.diff=s,x.prev=o,x.curr=c,o=c;for(var d=new Array(arguments.length),p=0;p<d.length;p++)d[p]=arguments[p];d[0]=a.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var h=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(b,v){if(b==="%%")return b;h++;var w=a.formatters[v];if(typeof w=="function"){var C=d[h];b=w.call(x,C),d.splice(h,1),h--}return b}),a.formatArgs.call(x,d);var g=m.log||a.log||console.log.bind(console);g.apply(x,d)}}return m.namespace=f,m.enabled=a.enabled(f),m.useColors=a.useColors(),m.color=r(f),m.destroy=y,typeof a.init=="function"&&a.init(m),a.instances.push(m),m}function y(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function i(f){a.save(f),a.names=[],a.skips=[];var o,m=(typeof f=="string"?f:"").split(/[\s,]+/),x=m.length;for(o=0;o<x;o++)m[o]&&(f=m[o].replace(/\*/g,".*?"),f[0]==="-"?a.skips.push(new RegExp("^"+f.substr(1)+"$")):a.names.push(new RegExp("^"+f+"$")));for(o=0;o<a.instances.length;o++){var c=a.instances[o];c.enabled=a.enabled(c.namespace)}}function l(){a.enable("")}function n(f){if(f[f.length-1]==="*")return!0;var o,m;for(o=0,m=a.skips.length;o<m;o++)if(a.skips[o].test(f))return!1;for(o=0,m=a.names.length;o<m;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(Z8,Z8.exports);var hEt=Z8.exports;(function(e,a){a=e.exports=hEt,a.log=y,a.formatArgs=u,a.save=i,a.load=l,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function u(_){var f=this.useColors;if(_[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+_[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),!!f){var o="color: "+this.color;_.splice(1,0,o,"color: inherit");var m=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(m++,c==="%c"&&(x=m))}),_.splice(x,0,o)}}function y(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function l(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(l());function n(){try{return window.localStorage}catch{}}})(Y8,Y8.exports);var iv=Y8.exports,LL=G8(),fEt=ff,RL=Vp,mEt=av,gEt=VL,Hc=iv("engine.io-client:polling"),DL=Hd,yEt=function(){var e=D8,a=new e({xdomain:!1});return a.responseType!=null}();function Hd(e){var a=e&&e.forceBase64;(!yEt||a)&&(this.supportsBinary=!1),LL.call(this,e)}mEt(Hd,LL),Hd.prototype.name="polling",Hd.prototype.doOpen=function(){this.poll()},Hd.prototype.pause=function(e){var a=this;this.readyState="pausing";function r(){Hc("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var u=0;this.polling&&(Hc("we are currently polling - waiting to pause"),u++,this.once("pollComplete",function(){Hc("pre-pause polling complete"),--u||r()})),this.writable||(Hc("we are currently writing - waiting to pause"),u++,this.once("drain",function(){Hc("pre-pause writing complete"),--u||r()}))}else r()},Hd.prototype.poll=function(){Hc("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Hd.prototype.onData=function(e){var a=this;Hc("polling got data %s",e);var r=function(u,y,i){if(a.readyState==="opening"&&u.type==="open"&&a.onOpen(),u.type==="close")return a.onClose(),!1;a.onPacket(u)};RL.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Hc('ignoring poll - transport state "%s"',this.readyState))},Hd.prototype.doClose=function(){var e=this;function a(){Hc("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Hc("transport open - closing"),a()):(Hc("transport not open - deferring close"),this.once("open",a))},Hd.prototype.write=function(e){var a=this;this.writable=!1;var r=function(){a.writable=!0,a.emit("drain")};RL.encodePayload(e,this.supportsBinary,function(u){a.doWrite(u,r)})},Hd.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=gEt()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=fEt.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var u=this.hostname.indexOf(":")!==-1;return a+"://"+(u?"["+this.hostname+"]":this.hostname)+r+this.path+e};var _Et=D8,$L=DL,vEt=pf,bEt=av,X8=iv("engine.io-client:polling-xhr"),xEt=R8;$8.exports=mf,$8.exports.Request=Ho;function jL(){}function mf(e){if($L.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var a=location.protocol==="https:",r=location.port;r||(r=a?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==a}}bEt(mf,$L),mf.prototype.supportsBinary=!0,mf.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Ho(e)},mf.prototype.doWrite=function(e,a){var r=typeof e!="string"&&e!==void 0,u=this.request({method:"POST",data:e,isBinary:r}),y=this;u.on("success",a),u.on("error",function(i){y.onError("xhr post error",i)}),this.sendXhr=u},mf.prototype.doPoll=function(){X8("xhr poll");var e=this.request(),a=this;e.on("data",function(r){a.onData(r)}),e.on("error",function(r){a.onError("xhr poll error",r)}),this.pollXhr=e};function Ho(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(vEt(Ho.prototype),Ho.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new _Et(e),r=this;try{X8("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var u in this.extraHeaders)this.extraHeaders.hasOwnProperty(u)&&a.setRequestHeader(u,this.extraHeaders[u])}}catch{}if(this.method==="POST")try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.withCredentials),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){r.onLoad()},a.onerror=function(){r.onError(a.responseText)}):a.onreadystatechange=function(){if(a.readyState===2)try{var y=a.getResponseHeader("Content-Type");(r.supportsBinary&&y==="application/octet-stream"||y==="application/octet-stream; charset=UTF-8")&&(a.responseType="arraybuffer")}catch{}a.readyState===4&&(a.status===200||a.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof a.status=="number"?a.status:0)},0))},X8("xhr data %s",this.data),a.send(this.data)}catch(y){setTimeout(function(){r.onError(y)},0);return}typeof document<"u"&&(this.index=Ho.requestsCount++,Ho.requests[this.index]=this)},Ho.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Ho.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Ho.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Ho.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=jL:this.xhr.onreadystatechange=jL,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ho.requests[this.index],this.xhr=null}},Ho.prototype.onLoad=function(){var e;try{var a;try{a=this.xhr.getResponseHeader("Content-Type")}catch{}a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)},Ho.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Ho.prototype.abort=function(){this.cleanup()},Ho.requestsCount=0,Ho.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",UL);else if(typeof addEventListener=="function"){var wEt="onpagehide"in xEt?"pagehide":"unload";addEventListener(wEt,UL,!1)}}function UL(){for(var e in Ho.requests)Ho.requests.hasOwnProperty(e)&&Ho.requests[e].abort()}var kEt=$8.exports,K8=DL,CEt=av,HL=R8,EEt=gf,SEt=/\n/g,TEt=/\\n/g,ov;function AEt(){}function gf(e){K8.call(this,e),this.query=this.query||{},ov||(ov=HL.___eio=HL.___eio||[]),this.index=ov.length;var a=this;ov.push(function(r){a.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=AEt)},!1)}CEt(gf,K8),gf.prototype.supportsBinary=!1,gf.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),K8.prototype.doClose.call(this)},gf.prototype.doPoll=function(){var e=this,a=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),a.async=!0,a.src=this.uri(),a.onerror=function(y){e.onError("jsonp poll error",y)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(a,r):(document.head||document.body).appendChild(a),this.script=a;var u=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);u&&setTimeout(function(){var y=document.createElement("iframe");document.body.appendChild(y),document.body.removeChild(y)},100)},gf.prototype.doWrite=function(e,a){var r=this;if(!this.form){var u=document.createElement("form"),y=document.createElement("textarea"),i=this.iframeId="eio_iframe_"+this.index,l;u.className="socketio",u.style.position="absolute",u.style.top="-1000px",u.style.left="-1000px",u.target=i,u.method="POST",u.setAttribute("accept-charset","utf-8"),y.name="d",u.appendChild(y),document.body.appendChild(u),this.form=u,this.area=y}this.form.action=this.uri();function n(){_(),a()}function _(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(o){r.onError("jsonp polling iframe removal error",o)}try{var f='<iframe src="javascript:0" name="'+r.iframeId+'">';l=document.createElement(f)}catch{l=document.createElement("iframe"),l.name=r.iframeId,l.src="javascript:0"}l.id=r.iframeId,r.form.appendChild(l),r.iframe=l}_(),e=e.replace(TEt,`\\
|
|
3574
3574
|
`),this.area.value=e.replace(SEt,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&n()}:this.iframe.onload=n};const NEt=V9t(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var J8=G8(),BEt=Vp,MEt=ff,IEt=av,OEt=VL,FEt=iv("engine.io-client:websocket"),sv,Q8;if(typeof WebSocket<"u"?sv=WebSocket:typeof self<"u"&&(sv=self.WebSocket||self.MozWebSocket),typeof window>"u")try{Q8=NEt}catch{}var yf=sv||Q8,zEt=vc;function vc(e){var a=e&&e.forceBase64;a&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=sv&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(yf=Q8),J8.call(this,e)}IEt(vc,J8),vc.prototype.name="websocket",vc.prototype.supportsBinary=!0,vc.prototype.doOpen=function(){if(this.check()){var e=this.uri(),a=this.protocols,r={};this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?a?new yf(e,a):new yf(e):new yf(e,a,r)}catch(u){return this.emit("error",u)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},vc.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(a){e.onData(a.data)},this.ws.onerror=function(a){e.onError("websocket error",a)}},vc.prototype.write=function(e){var a=this;this.writable=!1;for(var r=e.length,u=0,y=r;u<y;u++)(function(l){BEt.encodePacket(l,a.supportsBinary,function(n){if(!a.usingBrowserWebSocket){var _={};if(l.options&&(_.compress=l.options.compress),a.perMessageDeflate){var f=typeof n=="string"?Buffer.byteLength(n):n.length;f<a.perMessageDeflate.threshold&&(_.compress=!1)}}try{a.usingBrowserWebSocket?a.ws.send(n):a.ws.send(n,_)}catch{FEt("websocket closed before onclose event")}--r||i()})})(e[u]);function i(){a.emit("flush"),setTimeout(function(){a.writable=!0,a.emit("drain")},0)}},vc.prototype.onClose=function(){J8.prototype.onClose.call(this)},vc.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},vc.prototype.uri=function(){var e=this.query||{},a=this.secure?"wss":"ws",r="";this.port&&(a==="wss"&&Number(this.port)!==443||a==="ws"&&Number(this.port)!==80)&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=OEt()),this.supportsBinary||(e.b64=1),e=MEt.encode(e),e.length&&(e="?"+e);var u=this.hostname.indexOf(":")!==-1;return a+"://"+(u?"["+this.hostname+"]":this.hostname)+r+this.path+e},vc.prototype.check=function(){return!!yf&&!("__initialize"in yf&&this.name===vc.prototype.name)};var PEt=D8,VEt=kEt,LEt=EEt,REt=zEt;K_.polling=DEt,K_.websocket=REt;function DEt(e){var a,r=!1,u=!1,y=e.jsonp!==!1;if(typeof location<"u"){var i=location.protocol==="https:",l=location.port;l||(l=i?443:80),r=e.hostname!==location.hostname||l!==e.port,u=e.secure!==i}if(e.xdomain=r,e.xscheme=u,a=new PEt(e),"open"in a&&!e.forceJSONP)return new VEt(e);if(!y)throw new Error("JSONP disabled");return new LEt(e)}var $Et=[].indexOf,GL=function(e,a){if($Et)return e.indexOf(a);for(var r=0;r<e.length;++r)if(e[r]===a)return r;return-1},jEt=K_,UEt=pf,zo=iv("engine.io-client:socket"),HEt=GL,WL=Vp,qL=bL,GEt=ff,WEt=Mn;function Mn(e,a){if(!(this instanceof Mn))return new Mn(e,a);a=a||{},e&&typeof e=="object"&&(a=e,e=null),e?(e=qL(e),a.hostname=e.host,a.secure=e.protocol==="https"||e.protocol==="wss",a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=qL(a.host).host),this.secure=a.secure!=null?a.secure:typeof location<"u"&&location.protocol==="https:",a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.agent=a.agent||!1,this.hostname=a.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=a.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=a.query||{},typeof this.query=="string"&&(this.query=GEt.decode(this.query)),this.upgrade=a.upgrade!==!1,this.path=(a.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!a.forceJSONP,this.jsonp=a.jsonp!==!1,this.forceBase64=!!a.forceBase64,this.enablesXDR=!!a.enablesXDR,this.withCredentials=a.withCredentials!==!1,this.timestampParam=a.timestampParam||"t",this.timestampRequests=a.timestampRequests,this.transports=a.transports||["polling","websocket"],this.transportOptions=a.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=a.policyPort||843,this.rememberUpgrade=a.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=a.onlyBinaryUpgrades,this.perMessageDeflate=a.perMessageDeflate!==!1?a.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=a.pfx||void 0,this.key=a.key||void 0,this.passphrase=a.passphrase||void 0,this.cert=a.cert||void 0,this.ca=a.ca||void 0,this.ciphers=a.ciphers||void 0,this.rejectUnauthorized=a.rejectUnauthorized===void 0?!0:a.rejectUnauthorized,this.forceNode=!!a.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(a.extraHeaders&&Object.keys(a.extraHeaders).length>0&&(this.extraHeaders=a.extraHeaders),a.localAddress&&(this.localAddress=a.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Mn.priorWebsocketSuccess=!1,UEt(Mn.prototype),Mn.protocol=WL.protocol,Mn.Socket=Mn,Mn.Transport=G8(),Mn.transports=K_,Mn.parser=Vp,Mn.prototype.createTransport=function(e){zo('creating transport "%s"',e);var a=qEt(this.query);a.EIO=WL.protocol,a.transport=e;var r=this.transportOptions[e]||{};this.id&&(a.sid=this.id);var u=new jEt[e]({query:a,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative});return u};function qEt(e){var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=e[r]);return a}Mn.prototype.open=function(){var e;if(this.rememberUpgrade&&Mn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var a=this;setTimeout(function(){a.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},Mn.prototype.setTransport=function(e){zo("setting transport %s",e.name);var a=this;this.transport&&(zo("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){a.onDrain()}).on("packet",function(r){a.onPacket(r)}).on("error",function(r){a.onError(r)}).on("close",function(){a.onClose("transport close")})},Mn.prototype.probe=function(e){zo('probing transport "%s"',e);var a=this.createTransport(e,{probe:1}),r=!1,u=this;Mn.priorWebsocketSuccess=!1;function y(){if(u.onlyBinaryUpgrades){var m=!this.supportsBinary&&u.transport.supportsBinary;r=r||m}r||(zo('probe transport "%s" opened',e),a.send([{type:"ping",data:"probe"}]),a.once("packet",function(x){if(!r)if(x.type==="pong"&&x.data==="probe"){if(zo('probe transport "%s" pong',e),u.upgrading=!0,u.emit("upgrading",a),!a)return;Mn.priorWebsocketSuccess=a.name==="websocket",zo('pausing current transport "%s"',u.transport.name),u.transport.pause(function(){r||u.readyState!=="closed"&&(zo("changing transport and sending upgrade packet"),o(),u.setTransport(a),a.send([{type:"upgrade"}]),u.emit("upgrade",a),a=null,u.upgrading=!1,u.flush())})}else{zo('probe transport "%s" failed',e);var c=new Error("probe error");c.transport=a.name,u.emit("upgradeError",c)}}))}function i(){r||(r=!0,o(),a.close(),a=null)}function l(m){var x=new Error("probe error: "+m);x.transport=a.name,i(),zo('probe transport "%s" failed because of error: %s',e,m),u.emit("upgradeError",x)}function n(){l("transport closed")}function _(){l("socket closed")}function f(m){a&&m.name!==a.name&&(zo('"%s" works - aborting "%s"',m.name,a.name),i())}function o(){a.removeListener("open",y),a.removeListener("error",l),a.removeListener("close",n),u.removeListener("close",_),u.removeListener("upgrading",f)}a.once("open",y),a.once("error",l),a.once("close",n),this.once("close",_),this.once("upgrading",f),a.open()},Mn.prototype.onOpen=function(){if(zo("socket open"),this.readyState="open",Mn.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){zo("starting upgrade probes");for(var e=0,a=this.upgrades.length;e<a;e++)this.probe(this.upgrades[e])}},Mn.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(zo('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var a=new Error("server error");a.code=e.data,this.onError(a);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else zo('packet received with socket readyState "%s"',this.readyState)},Mn.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},Mn.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var a=this;a.pingTimeoutTimer=setTimeout(function(){a.readyState!=="closed"&&a.onClose("ping timeout")},e||a.pingInterval+a.pingTimeout)},Mn.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){zo("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},Mn.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},Mn.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},Mn.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(zo("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},Mn.prototype.write=Mn.prototype.send=function(e,a,r){return this.sendPacket("message",e,a,r),this},Mn.prototype.sendPacket=function(e,a,r,u){if(typeof a=="function"&&(u=a,a=void 0),typeof r=="function"&&(u=r,r=null),!(this.readyState==="closing"||this.readyState==="closed")){r=r||{},r.compress=r.compress!==!1;var y={type:e,data:a,options:r};this.emit("packetCreate",y),this.writeBuffer.push(y),u&&this.once("flush",u),this.flush()}},Mn.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?u():a()}):this.upgrading?u():a()}function a(){e.onClose("forced close"),zo("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),a()}function u(){e.once("upgrade",r),e.once("upgradeError",r)}return this},Mn.prototype.onError=function(e){zo("socket error %j",e),Mn.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},Mn.prototype.onClose=function(e,a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){zo('socket close with reason: "%s"',e);var r=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,a),r.writeBuffer=[],r.prevBufferLen=0}},Mn.prototype.filterUpgrades=function(e){for(var a=[],r=0,u=e.length;r<u;r++)~HEt(this.transports,e[r])&&a.push(e[r]);return a},V8.exports=WEt,V8.exports.parser=Vp;var YEt=V8.exports,YL={exports:{}},ZEt=XEt;function XEt(e,a){var r=[];a=a||0;for(var u=a||0;u<e.length;u++)r[u-a]=e[u];return r}var ZL=KEt;function KEt(e,a,r){return e.on(a,r),{destroy:function(){e.removeListener(a,r)}}}var XL=[].slice,KL=function(e,a){if(typeof a=="string"&&(a=e[a]),typeof a!="function")throw new Error("bind() requires a function");var r=XL.call(arguments,2);return function(){return a.apply(e,r.concat(XL.call(arguments)))}};(function(e,a){var r=Y_,u=pf,y=ZEt,i=ZL,l=KL,n=q_("socket.io-client:socket"),_=ff,f=TL;e.exports=x;var o={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},m=u.prototype.emit;function x(c,s,d){this.io=c,this.nsp=s,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},d&&d.query&&(this.query=d.query),this.io.autoConnect&&this.open()}u(x.prototype),x.prototype.subEvents=function(){if(!this.subs){var c=this.io;this.subs=[i(c,"open",l(this,"onopen")),i(c,"packet",l(this,"onpacket")),i(c,"close",l(this,"onclose"))]}},x.prototype.open=x.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},x.prototype.send=function(){var c=y(arguments);return c.unshift("message"),this.emit.apply(this,c),this},x.prototype.emit=function(c){if(o.hasOwnProperty(c))return m.apply(this,arguments),this;var s=y(arguments),d={type:(this.flags.binary!==void 0?this.flags.binary:f(s))?r.BINARY_EVENT:r.EVENT,data:s};return d.options={},d.options.compress=!this.flags||this.flags.compress!==!1,typeof s[s.length-1]=="function"&&(n("emitting packet with ack id %d",this.ids),this.acks[this.ids]=s.pop(),d.id=this.ids++),this.connected?this.packet(d):this.sendBuffer.push(d),this.flags={},this},x.prototype.packet=function(c){c.nsp=this.nsp,this.io.packet(c)},x.prototype.onopen=function(){if(n("transport is open - connecting"),this.nsp!=="/")if(this.query){var c=typeof this.query=="object"?_.encode(this.query):this.query;n("sending connect packet with query %s",c),this.packet({type:r.CONNECT,query:c})}else this.packet({type:r.CONNECT})},x.prototype.onclose=function(c){n("close (%s)",c),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",c)},x.prototype.onpacket=function(c){var s=c.nsp===this.nsp,d=c.type===r.ERROR&&c.nsp==="/";if(!(!s&&!d))switch(c.type){case r.CONNECT:this.onconnect();break;case r.EVENT:this.onevent(c);break;case r.BINARY_EVENT:this.onevent(c);break;case r.ACK:this.onack(c);break;case r.BINARY_ACK:this.onack(c);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",c.data);break}},x.prototype.onevent=function(c){var s=c.data||[];n("emitting event %j",s),c.id!=null&&(n("attaching ack callback to event"),s.push(this.ack(c.id))),this.connected?m.apply(this,s):this.receiveBuffer.push(s)},x.prototype.ack=function(c){var s=this,d=!1;return function(){if(!d){d=!0;var p=y(arguments);n("sending ack %j",p),s.packet({type:f(p)?r.BINARY_ACK:r.ACK,id:c,data:p})}}},x.prototype.onack=function(c){var s=this.acks[c.id];typeof s=="function"?(n("calling ack %s with %j",c.id,c.data),s.apply(this,c.data),delete this.acks[c.id]):n("bad ack %s",c.id)},x.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},x.prototype.emitBuffered=function(){var c;for(c=0;c<this.receiveBuffer.length;c++)m.apply(this,this.receiveBuffer[c]);for(this.receiveBuffer=[],c=0;c<this.sendBuffer.length;c++)this.packet(this.sendBuffer[c]);this.sendBuffer=[]},x.prototype.ondisconnect=function(){n("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},x.prototype.destroy=function(){if(this.subs){for(var c=0;c<this.subs.length;c++)this.subs[c].destroy();this.subs=null}this.io.destroy(this)},x.prototype.close=x.prototype.disconnect=function(){return this.connected&&(n("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},x.prototype.compress=function(c){return this.flags.compress=c,this},x.prototype.binary=function(c){return this.flags.binary=c,this}})(YL);var JL=YL.exports,JEt=_f;function _f(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}_f.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),r=Math.floor(a*this.jitter*e);e=Math.floor(a*10)&1?e+r:e-r}return Math.min(e,this.max)|0},_f.prototype.reset=function(){this.attempts=0},_f.prototype.setMin=function(e){this.ms=e},_f.prototype.setMax=function(e){this.max=e},_f.prototype.setJitter=function(e){this.jitter=e};var QEt=YEt,eSt=JL,tSt=pf,aSt=Y_,ip=ZL,vf=KL,Ns=q_("socket.io-client:manager"),QL=GL,rSt=JEt,eR=Object.prototype.hasOwnProperty,tR=di;function di(e,a){if(!(this instanceof di))return new di(e,a);e&&typeof e=="object"&&(a=e,e=void 0),a=a||{},a.path=a.path||"/socket.io",this.nsps={},this.subs=[],this.opts=a,this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor(a.randomizationFactor||.5),this.backoff=new rSt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=a.parser||aSt;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=a.autoConnect!==!1,this.autoConnect&&this.open()}di.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)eR.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},di.prototype.updateSocketIds=function(){for(var e in this.nsps)eR.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},di.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},tSt(di.prototype),di.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},di.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},di.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},di.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},di.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},di.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},di.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},di.prototype.open=di.prototype.connect=function(e,a){if(Ns("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Ns("opening %s",this.uri),this.engine=QEt(this.uri,this.opts);var r=this.engine,u=this;this.readyState="opening",this.skipReconnect=!1;var y=ip(r,"open",function(){u.onopen(),e&&e()}),i=ip(r,"error",function(_){if(Ns("connect_error"),u.cleanup(),u.readyState="closed",u.emitAll("connect_error",_),e){var f=new Error("Connection error");f.data=_,e(f)}else u.maybeReconnectOnOpen()});if(this._timeout!==!1){var l=this._timeout;Ns("connect attempt will timeout after %d",l),l===0&&y.destroy();var n=setTimeout(function(){Ns("connect attempt timed out after %d",l),y.destroy(),r.close(),r.emit("error","timeout"),u.emitAll("connect_timeout",l)},l);this.subs.push({destroy:function(){clearTimeout(n)}})}return this.subs.push(y),this.subs.push(i),this},di.prototype.onopen=function(){Ns("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(ip(e,"data",vf(this,"ondata"))),this.subs.push(ip(e,"ping",vf(this,"onping"))),this.subs.push(ip(e,"pong",vf(this,"onpong"))),this.subs.push(ip(e,"error",vf(this,"onerror"))),this.subs.push(ip(e,"close",vf(this,"onclose"))),this.subs.push(ip(this.decoder,"decoded",vf(this,"ondecoded")))},di.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},di.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},di.prototype.ondata=function(e){this.decoder.add(e)},di.prototype.ondecoded=function(e){this.emit("packet",e)},di.prototype.onerror=function(e){Ns("error",e),this.emitAll("error",e)},di.prototype.socket=function(e,a){var r=this.nsps[e];if(!r){r=new eSt(this,e,a),this.nsps[e]=r;var u=this;r.on("connecting",y),r.on("connect",function(){r.id=u.generateId(e)}),this.autoConnect&&y()}function y(){~QL(u.connecting,r)||u.connecting.push(r)}return r},di.prototype.destroy=function(e){var a=QL(this.connecting,e);~a&&this.connecting.splice(a,1),!this.connecting.length&&this.close()},di.prototype.packet=function(e){Ns("writing packet %j",e);var a=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),a.encoding?a.packetBuffer.push(e):(a.encoding=!0,this.encoder.encode(e,function(r){for(var u=0;u<r.length;u++)a.engine.write(r[u],e.options);a.encoding=!1,a.processPacketQueue()}))},di.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},di.prototype.cleanup=function(){Ns("cleanup");for(var e=this.subs.length,a=0;a<e;a++){var r=this.subs.shift();r.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},di.prototype.close=di.prototype.disconnect=function(){Ns("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},di.prototype.onclose=function(e){Ns("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},di.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Ns("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var a=this.backoff.duration();Ns("will wait %dms before reconnect attempt",a),this.reconnecting=!0;var r=setTimeout(function(){e.skipReconnect||(Ns("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(u){u?(Ns("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",u.data)):(Ns("reconnect success"),e.onreconnect())}))},a);this.subs.push({destroy:function(){clearTimeout(r)}})}},di.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,a){var r=SCt,u=Y_,y=tR,i=q_("socket.io-client");e.exports=a=n;var l=a.managers={};function n(_,f){typeof _=="object"&&(f=_,_=void 0),f=f||{};var o=r(_),m=o.source,x=o.id,c=o.path,s=l[x]&&c in l[x].nsps,d=f.forceNew||f["force new connection"]||f.multiplex===!1||s,p;return d?(i("ignoring socket cache for %s",m),p=y(m,f)):(l[x]||(i("new io instance for %s",m),l[x]=y(m,f)),p=l[x]),o.query&&!f.query&&(f.query=o.query),p.socket(o.path,f)}a.protocol=u.protocol,a.connect=n,a.Manager=tR,a.Socket=JL}(A8,A8.exports);var nSt=A8.exports;const lv=hL(nSt)("https://golstats-live-server-sockets.azurewebsites.net",{autoConnect:!1,transports:["websocket"]});function iSt(){return lv}lv.on("connect",()=>{U_.emit("socket-connected")}),lv.on("disconnect",()=>{U_.emit("socket-disconnected")}),lv.on("reconnect",()=>{U_.emit("socket-reconnected")});const e7=iSt(),oSt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],sSt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:yL(),indexesTSP:lCt(),indexesLS:pCt(),indexesTLP:fCt(),nextGamesDataStructure:cCt,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return dCt.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return mL(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return mL(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,r)=>a+r[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,r)=>a+r[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const r of Object.values(e.nextGamesDataStructure))for(const u of Object.values(r.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&u.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&u.visitingTeam.resetTotals(),u.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),u.addTeamPlays(u.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),u.addTeamPlays(u.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((r,u)=>r.priority-u.priority)},statisticData(e,a){for(const r of Object.values(a.filledDataStructure))if(r.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&r.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return r.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,a&&e7.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(r=>{r.playedGames=e.currentSeasonGames.reduce((u,y)=>{if(y.game_status===1&&(y.home_team===r.team_id||y.visiting_team===r.team_id)){const i=y.score[0]-y.score[1],l=y.home_team===r.team_id;u.push({playingAs:l?1:2,matchResult:i===0?3:l?i>0?1:2:i<0?1:2})}return u},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&e7.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:r=!1}){if(r){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=t9(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=t9(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const r=Object.values(e.nextGamesDataStructure);r.forEach(u=>{for(const y of Object.values(u.subcategories))y.resetMentions()}),r.forEach(u=>{for(const y of a)for(const i of Object.values(u.subcategories))i.addSpecialMention(y[0],y[1],y[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const u=G_(a,e.indexesTLP,e.categoriesMap);for(const y of Object.values(e.nextGamesDataStructure))for(const i of Object.values(y.subcategories))i.addLivePlay(e.gameForAnalysis.home_team===u[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",u[e.indexesTSP.teamId],u,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const r=!!a[e.indexesTLP.length],u=e.livePlays.get(a[e.indexesTLP.playId]);if(vq(u,a))return;let y="";const i=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";u&&(y=e.gameForAnalysis.home_team===u[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const l=G_(u,e.indexesTLP,e.categoriesMap),n=T8(u,l,e.indexesTLP),_=G_(a,e.indexesTLP,e.categoriesMap),f=T8(a,_,e.indexesTLP);for(const o of Object.values(e.nextGamesDataStructure))for(const m of Object.values(o.subcategories))u&&(m.subtractLivePlay(y,l[e.indexesTSP.teamId],l,e.indexesTSP,r),n&&m.subtractLivePlay(y,n[e.indexesTSP.teamId],n,e.indexesTSP,r)),m.addLivePlay(i,_[e.indexesTSP.teamId],_,e.indexesTSP,e.isLive,r),f&&m.addLivePlay(i,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,r);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const r=!!a[e.indexesTLP.length],u=e.livePlays.get(a[e.indexesTLP.playId]);let y="";if(u){y=e.gameForAnalysis.home_team===u[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(u[e.indexesTLP.playId]);const i=G_(u,e.indexesTLP,e.categoriesMap),l=T8(a,i,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(n.subcategories))_.subtractLivePlay(y,i[e.indexesTSP.teamId],i,e.indexesTSP,r),l&&_.subtractLivePlay(y,l[e.indexesTSP.teamId],l,e.indexesTSP,r)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.homeTeam.resetTotalsLive(),r.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:r}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(i=>{i.homeTeamFilterGames=i.playedGames.filter(l=>e.homeTeamFilter.playingAs.includes(l.playingAs)&&e.homeTeamFilter.matchResult.includes(l.matchResult)).length,i.visitingTeamFilterGames=i.playedGames.filter(l=>e.visitingTeamFilter.playingAs.includes(l.playingAs)&&e.visitingTeamFilter.matchResult.includes(l.matchResult)).length});const u=[],y=new Map;for(const i of Object.values(e.nextGamesDataStructure))for(const l of Object.values(i.subcategories))u.push(l);a.rankingData.forEach(i=>{for(const l of u)if(l.isInGeneralCategory(i[e.indexesLS.categoryId])){y.has(l.id)?y.get(l.id).push(i):y.set(l.id,[i]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=vL(a)},setVisitingGames(e,a){e.visitingGames=vL(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.accomplishedCategoryIds.forEach(u=>{const y=e.categoriesMap.get(u);y?y.push(r.generalCategoriesIds.accomplished):e.categoriesMap.set(u,[r.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:r}){r==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const l=await nCt({gameId:a.gameId});if(l){var r=[],u=[],y={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},i={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(l.data).length!==0&&(r=l.data.data.filter(n=>n[1]==a.homeTeam),u=l.data.data.filter(n=>n[1]==a.awayTeam),y=l.data.games,i=l.data.games),e("updateHomeTeamPlays",r),e("updateVisitingTeamPlays",u),e("setHomeGames",y),e("setVisitingGames",i)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(l){return Promise.reject(l)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},r){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let u=[];e("updateGameForAnalysis",r.gameInfo),u.push(a("setAndGetStatsPostMatch",{gameId:r.game,homeTeam:r.homeTeam,awayTeam:r.awayTeam})),await Promise.all(u)}catch(u){throw new Error(u)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:r},{gameId:u,isTeamsAnalysis:y,currentSeasonId:i,isLoginChanged:l=!1,defaultFilter:n=null,gameInfo:_=null,isCupGame:f=!1}){try{let o={},m=e.seasonId!==Number(i);const x=[];r("setIsSectionLoading",!0,{root:!0}),r("setUsePastSeasonId",!1),m&&r("setSeasonId",i),r("updateGameId",Number(u)),e.oldSeasonId!==e.seasonId&&r("resetNextGamesDataStructure");const c=await a("getCurrentSeasonGames",Number(u));if(r("leagueGeneral/updateCurrentSeasonGames",c,{root:!0}),o=c.find(s=>s.game_id===Number(u)),!o&&_&&(o=_),o&&r("updateGameForAnalysis",o),o.game_status!==1&&(f||await a("checkTeamsData",{gameId:u,isFromBet:!!n}),(l||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&x.push(a("getSeasonStatistics")),(l||e.categoriesMap.size===0)&&r("generateCategoriesMap")),e.usePastSeasonId){const s=await a("getCurrentSeasonGamesLast");r("leagueGeneral/updateCurrentSeasonGames",s,{root:!0})}(l||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(s=>o.home_team===s.team_id))&&x.push(a("getCurrentSeasonTeams")),r("setHomeResultGame",o.score[0]),r("setAwayResultGame",o.score[1]),y?o.game_status!==1?(await a("fillStatisticData",{gameId:u,gameinfo:o,promises:x,defaultFilter:n}),r("updateShowPostMatchData",!1)):(r("updateStats",[]),r("updateShowPostMatchData",!0),x.push(a("fillStatisticDataPostMatch",{game:u,homeTeam:o.home_team,awayTeam:o.visiting_team,gameInfo:o})),await Promise.all(x)):r("setIsSectionLoading",!1,{root:!0})}catch(o){return Promise.reject(o)}},async fillStatisticData({commit:e,dispatch:a,getters:r,rootGetters:u,state:y},{gameId:i,gameinfo:l,promises:n=[],defaultFilter:_=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",l),l.is_live&&n.push(a("getCurrentLiveGamePlays",i)),n.push(a("getSpecialMentionsByGame",i)),n.push(a("getHomeTeamPlays")),n.push(a("getVisitingTeamPlays")),n.push(a("getCurrentSeasonPlays")),_&&n.push(oCt(_)),f=await Promise.all(n)}catch(o){throw new Error(o)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:r,isPremiumAccount:u["loginGeneral/getPremiumAccount"]}),_){const[o]=f.pop();o&&(e("setBetSubcategories",o.categories),e("setBetDescription",o.sectionDescription),e("setDefaultFilter",o.params),e("updateFilterAux"),e("updateFilters",{filters:y.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:r,commit:u},{gameId:y,isFromBet:i}){try{const l=Number(y);if(r.general.tournaments&&r.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const n=r.general.tournaments.find(_=>{for(const f of _.seasons)if(f.id===e.seasonId)return!0;return!1});u("general/setTournamentSelected",n||{},{root:!0})}if(e.pastSeasonId){u("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const n=r.leagueGeneral.currentSeasonGames.find(_=>_.game_id===l);n&&u("updateGameForAnalysis",n),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),u("setUsePastSeasonId",i||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else u("setUsePastSeasonId",!1)}catch(l){throw new Error(l)}},async getSpecialMentionsByGame({commit:e},a){try{const r=await eCt({gameId:a});e("addSpecialMentions",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonGames({commit:e,state:a},r){try{const{teams:u,games:y,past_season_id:i,tournament_id:l}=await J9t({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:r}),n=oSt.find(_=>_.id===l);return n&&e("setCurrentTournamentName",n.name),e("setHome",u[0]),e("setAway",u[1]),a.usePastSeasonId||e("setPastSeasonId",i),await e("updateCurrentSeasonGames",y),y&&Array.isArray(y)&&e("updateFinishedGames",y.reduce((_,f)=>(f.game_status===1&&(_+=1),_),0)),y}catch(u){return Promise.reject(u)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:r,past_season_id:u}=await gL({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",u),await e("updateCurrentSeasonGames",r),r&&Array.isArray(r)&&e("updateFinishedGames",r.reduce((y,i)=>(i.game_status===1&&(y+=1),y),0)),r}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const r=await rCt({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",r.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const r=a.usePastSeasonId?a.pastSeasonId:a.seasonId,u=await X9t({seasonId:r});e("updateSeasonStatistics",u),e("updateOldSeasonId",r)}catch(r){return Promise.reject(r)}},updateRankingInSubcategories({state:e,commit:a,getters:r,rootGetters:u}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:r,isPremiumAccount:u["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const r=await _L({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});r.data&&(e("updateHomeTeamPlays",r.data.data),e("setHomeGames",r.data.games))}catch(r){return Promise.reject(r)}},async getVisitingTeamPlays({commit:e,state:a}){try{const r=await _L({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});r.data&&(e("updateVisitingTeamPlays",r.data.data),e("setVisitingGames",r.data.games))}catch(r){return Promise.reject(r)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const r=await Z9t({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",r)}catch(r){return Promise.reject(new Error(r))}},async getCurrentLiveGamePlays({state:e,commit:a},r){try{const u=await Q9t({gameId:r});e.livePlays=new Map,u.forEach(y=>{e.gameForAnalysis.game_id===y[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===y[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===y[e.indexesTLP.teamId])&&a("addLiveGamePlay",y)})}catch(u){throw new Error(u)}},socket_new({state:e,commit:a},r){const u=r[1];(e.gameForAnalysis.home_team===u[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===u[e.indexesTLP.teamId])&&a("addLiveGamePlay",u)},socket_update({state:e,commit:a},r){const u=r[1];e.gameForAnalysis.game_id===u[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===u[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===u[e.indexesTLP.teamId])&&a("updateLiveGamePlay",u)},socket_delete({state:e,commit:a},r){const u=r[1];e.gameForAnalysis.game_id===u[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===u[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===u[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",u)},exitChannel({state:e,getters:a,rootState:r,rootGetters:u,commit:y}){const i=u["loginGeneral/getPremiumAccount"];a.isLive&&i&&(y("updateShowLiveData",!1),y("clearLiveTotals"),e.livePlays.clear(),e7.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const u of Object.values(r.subcategories))u.homeTeam.resetTotals(),u.visitingTeam.resetTotals(),u.homeTeam.resetTotalsLive(),u.visitingTeam.resetTotalsLive(),u.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const u of Object.values(r.subcategories))u.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const u of Object.values(r.subcategories))u.homeTeam.resetTotals(),u.visitingTeam.resetTotals(),u.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const u of Object.values(r.subcategories))u.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function lSt(){try{const{data:e}=await Hs({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const cSt={namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(r=>({...r.tournament,seasons:r.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const r=await lSt();a("setTournaments",r)}}catch(r){throw new Error(r)}}}};async function dSt({seasonId:e,localTeamId:a,visitingTeamId:r}){try{const u=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${r}`;return(await Hs({url:u})).data}catch(u){return Promise.reject(u)}}async function uSt({seasonId:e,localTeamId:a,visitingTeamId:r}){try{const u=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${r}`;return(await Hs({url:u})).data}catch(u){return Promise.reject(u)}}const aR=(e,a)=>{let r={};return e.forEach((u,y)=>{y==3&&(a[0]==35||a[0]==54)&&(a[y]==2?a[y]=1:a[y]=2),y==2&&(a[0]==35||a[0]==54)&&(a[y]==1?a[y]=2:a[y]==2&&(a[y]=1)),r[u]=a[y]}),r},rR=(e,a)=>e.filter(u=>{const y=a.playingAs.includes(u.playing_as),i=a.matchResult.includes(u.match_result),l=a.sections.includes(u.section);return y&&i&&l}),nR=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,r,u){return typeof u>"u"||+u==0?Math[a](r):(r=+r,u=+u,isNaN(r)||!(typeof u=="number"&&u%1===0)?NaN:(r=r.toString().split("e"),r=Math[a](+(r[0]+"e"+(r[1]?+r[1]-u:-u))),r=r.toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+u:u))))}Math.ceil10||(Math.ceil10=function(a,r){return e("ceil",a,r)})})();function iR(e,a){let r=a*-1;return Math.ceil10(e,r)}const pSt={general:cSt,...iCt,...sSt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,r)=>{const u=e.xGLocalPlays,y="homeTeamFilter",i=r.nextGeneral[y];return rR(u,i)},playsAway:(e,a,r)=>{const u=e.xGVisitingPlays,y="visitingTeamFilter",i=r.nextGeneral[y];return rR(u,i)},goalsQtyLocal:(e,a)=>{const r=nR.find(u=>u.name==="Goles");return a.playsLocal.filter(u=>r.categories.includes(u.category_id)).length},goalsQtyAway:(e,a)=>{const r=nR.find(u=>u.name==="Goles");return a.playsAway.filter(u=>r.categories.includes(u.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(r=>r.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(r=>r.category_id===510).length,xGLocal:(e,a)=>{const r=new Set;let u=a.playsLocal.reduce((y,i)=>(r.has(i.moment_of_play)||(r.add(i.moment_of_play),y+=i.xG2),y),0);return iR(u,2)},xGAway:(e,a)=>{const r=new Set;let u=a.playsAway.reduce((y,i)=>(r.has(i.moment_of_play)||(r.add(i.moment_of_play),y+=i.xG2),y),0);return iR(u,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(r=>aR(a.data_headers,r)),e.xGVisitingPlays=a.visiting_team.map(r=>aR(a.data_headers,r))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:r,visitingTeamId:u,postMatch:y=!1}){try{var i={};y?i=await uSt({seasonId:a,localTeamId:r,visitingTeamId:u}):i=await dSt({seasonId:a,localTeamId:r,visitingTeamId:u}),e("setPlays",i)}catch(l){return Promise.reject(l)}}}}}};function hSt(e){for(const[a,r]of Object.entries(pSt))e.hasModule(a)||e.registerModule(a,r)}const fSt={class:"subcategory-group"},mSt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",fSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,u=>(t.openBlock(),t.createBlock(t.unref(wn),{key:u.id,modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},gSt=Yn(mSt,[["__scopeId","data-v-ae6f3d72"]]),ySt={class:"filter-subcategories"},_St=Object.freeze(Object.defineProperty({__proto__:null,default:Yn({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",ySt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"filter-subcategories__group"},[t.createVNode(gSt,{subcategoryGroup:u},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),cv=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),vSt={class:"details__header"},bSt=cv(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),xSt={class:"details__header__checkbox"},wSt={class:"details__body"},kSt={class:"details__body__playing-as"},CSt=["onClick"],ESt={class:"details__header"},SSt=cv(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),TSt={class:"details__header__checkbox"},ASt={class:"details__body"},NSt=cv(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),BSt={class:"details__body__game-section"},MSt=["onClick"],ISt={class:"details__body"},OSt=cv(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),FSt={class:"details__body__game-section"},zSt=["onClick"],PSt=Object.freeze(Object.defineProperty({__proto__:null,default:Yn({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(o=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(o=>o.isSelected)),u=t.computed(()=>a.gameSections.every(o=>o.isSelected)),y=t.computed(()=>a.gameSections.reduce((o,m)=>(m.value<=3?o.firstHalf.push(m):o.secondHalf.push(m),o),{firstHalf:[],secondHalf:[]})),i=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function l(o){o?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,x)=>{m.isSelected=x===0})}function n(o){a.playingAs.filter(m=>m.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function _(o){a.gameSections.filter(m=>m.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function f(o){o?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,x)=>{m.isSelected=x===0})}return(o,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",vSt,[bSt,t.createElementVNode("div",xSt,[t.createVNode(t.unref(wn),{label:"Todos","model-value":r.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),t.createElementVNode("div",wSt,[t.createElementVNode("div",kSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:s=>n(x)},t.toDisplayString(x.name),11,CSt))),128))])]),t.createElementVNode("div",ESt,[SSt,t.createElementVNode("div",TSt,[t.createVNode(t.unref(wn),{label:"Todos","model-value":u.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",ASt,[NSt,t.createElementVNode("div",BSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.firstHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:s=>_(x)},t.toDisplayString(x.text),11,MSt))),128))])]),t.createElementVNode("div",ISt,[OSt,t.createElementVNode("div",FSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.secondHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:s=>_(x)},t.toDisplayString(x.text),11,zSt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),VSt={class:"filter-field"},LSt=Object.freeze(Object.defineProperty({__proto__:null,default:Yn({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(u,y)=>y+1));function r(){}return(u,y)=>(t.openBlock(),t.createElementBlock("div",VSt,[t.createVNode(t.unref(Dz),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));ol.GSCGameData=Y9t,ol.registerStoreModules=hSt,Object.defineProperty(ol,Symbol.toStringTag,{value:"Module"})});
|