@golstats/gsc-game-data 1.0.128 → 1.0.129
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-dc6b25de-DnVJJKkV-d351f6e3.js → FilterConditions-dc6b25de-DnVJJKkV-9d76034f.js} +1 -1
- package/dist/{FilterField-37ad154d-BT2JTaEA-fb4599d6.js → FilterField-37ad154d-BT2JTaEA-4a2a9dd5.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Cj9Wh5lV-e118e75a.js → FilterSubcategories-a7b96423-Cj9Wh5lV-f1d18bca.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-1f9968d4.js → index-7ce38d46.js} +8186 -8182
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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 Fkt="store";function Vp(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function pz(e){return e!==null&&typeof e=="object"}function Rkt(e){return e&&typeof e.then=="function"}function qc(e,a){if(!e)throw new Error("[vuex] "+a)}function Vkt(e,a){return function(){return e(a)}}function hz(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var d=a.indexOf(e);d>-1&&a.splice(d,1)}}function fz(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;q_(e,r,[],e._modules.root,!0),k8(e,r,a)}function k8(e,a,r){var d=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var m=e._wrappedGetters,n={};Vp(m,function(s,i){n[i]=Vkt(s,e),Object.defineProperty(e.getters,i,{get:function(){return n[i]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&jkt(e),d&&r&&e._withCommit(function(){d.data=null})}function q_(e,a,r,d,m){var n=!r.length,s=e._modules.getNamespace(r);if(d.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[s]=d),!n&&!m){var i=C8(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in i&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),i[_]=d.state})}var f=d.context=zkt(e,s,r);d.forEachMutation(function(o,g){var x=s+g;Dkt(e,x,o,f)}),d.forEachAction(function(o,g){var x=o.root?g:s+g,c=o.handler||o;Lkt(e,x,c,f)}),d.forEachGetter(function(o,g){var x=s+g;$kt(e,x,o,f)}),d.forEachChild(function(o,g){q_(e,a,r.concat(g),o,m)})}function zkt(e,a,r){var d=a==="",m={dispatch:d?e.dispatch:function(n,s,i){var _=Y_(n,s,i),f=_.payload,o=_.options,g=_.type;if((!o||!o.root)&&(g=a+g,process.env.NODE_ENV!=="production"&&!e._actions[g])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+g);return}return e.dispatch(g,f)},commit:d?e.commit:function(n,s,i){var _=Y_(n,s,i),f=_.payload,o=_.options,g=_.type;if((!o||!o.root)&&(g=a+g,process.env.NODE_ENV!=="production"&&!e._mutations[g])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+g);return}e.commit(g,f,o)}};return Object.defineProperties(m,{getters:{get:d?function(){return e.getters}:function(){return mz(e,a)}},state:{get:function(){return C8(e.state,r)}}}),m}function mz(e,a){if(!e._makeLocalGettersCache[a]){var r={},d=a.length;Object.keys(e.getters).forEach(function(m){if(m.slice(0,d)===a){var n=m.slice(d);Object.defineProperty(r,n,{get:function(){return e.getters[m]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function Dkt(e,a,r,d){var m=e._mutations[a]||(e._mutations[a]=[]);m.push(function(n){r.call(e,d.state,n)})}function Lkt(e,a,r,d){var m=e._actions[a]||(e._actions[a]=[]);m.push(function(n){var s=r.call(e,{dispatch:d.dispatch,commit:d.commit,getters:d.getters,state:d.state,rootGetters:e.getters,rootState:e.state},n);return Rkt(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(i){throw e._devtoolHook.emit("vuex:error",i),i}):s})}function $kt(e,a,r,d){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(m){return r(d.state,d.getters,m.state,m.getters)}}function jkt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&qc(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function C8(e,a){return a.reduce(function(r,d){return r[d]},e)}function Y_(e,a,r){return pz(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&qc(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var Ukt="vuex bindings",gz="vuex:mutations",E8="vuex:actions",hf="vuex",Hkt=0;function Gkt(e,a){Pkt({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:[Ukt]},function(r){r.addTimelineLayer({id:gz,label:"Vuex Mutations",color:yz}),r.addTimelineLayer({id:E8,label:"Vuex Actions",color:yz}),r.addInspector({id:hf,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(d){if(d.app===e&&d.inspectorId===hf)if(d.filter){var m=[];xz(m,a._modules.root,d.filter,""),d.rootNodes=m}else d.rootNodes=[bz(a._modules.root,"")]}),r.on.getInspectorState(function(d){if(d.app===e&&d.inspectorId===hf){var m=d.nodeId;mz(a,m),d.state=Ykt(Jkt(a._modules,m),m==="root"?a.getters:a._makeLocalGettersCache,m)}}),r.on.editInspectorState(function(d){if(d.app===e&&d.inspectorId===hf){var m=d.nodeId,n=d.path;m!=="root"&&(n=m.split("/").filter(Boolean).concat(n)),a._withCommit(function(){d.set(a._state.data,n,d.state.value)})}}),a.subscribe(function(d,m){var n={};d.payload&&(n.payload=d.payload),n.state=m,r.notifyComponentUpdate(),r.sendInspectorTree(hf),r.sendInspectorState(hf),r.addTimelineEvent({layerId:gz,event:{time:Date.now(),title:d.type,data:n}})}),a.subscribeAction({before:function(d,m){var n={};d.payload&&(n.payload=d.payload),d._id=Hkt++,d._time=Date.now(),n.state=m,r.addTimelineEvent({layerId:E8,event:{time:d._time,title:d.type,groupId:d._id,subtitle:"start",data:n}})},after:function(d,m){var n={},s=Date.now()-d._time;n.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},d.payload&&(n.payload=d.payload),n.state=m,r.addTimelineEvent({layerId:E8,event:{time:Date.now(),title:d.type,groupId:d._id,subtitle:"end",data:n}})}})})}var yz=8702998,Wkt=6710886,qkt=16777215,_z={label:"namespaced",textColor:qkt,backgroundColor:Wkt};function vz(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function bz(e,a){return{id:a||"root",label:vz(a),tags:e.namespaced?[_z]:[],children:Object.keys(e._children).map(function(r){return bz(e._children[r],a+r+"/")})}}function xz(e,a,r,d){d.includes(r)&&e.push({id:d||"root",label:d.endsWith("/")?d.slice(0,d.length-1):d||"Root",tags:a.namespaced?[_z]:[]}),Object.keys(a._children).forEach(function(m){xz(e,a._children[m],r,d+m+"/")})}function Ykt(e,a,r){a=r==="root"?a:a[r];var d=Object.keys(a),m={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(d.length){var n=Zkt(a);m.getters=Object.keys(n).map(function(s){return{key:s.endsWith("/")?vz(s):s,editable:!1,value:T8(function(){return n[s]})}})}return m}function Zkt(e){var a={};return Object.keys(e).forEach(function(r){var d=r.split("/");if(d.length>1){var m=a,n=d.pop();d.forEach(function(s){m[s]||(m[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),m=m[s]._custom.value}),m[n]=T8(function(){return e[r]})}else a[r]=T8(function(){return e[r]})}),a}function Jkt(e,a){var r=a.split("/").filter(function(d){return d});return r.reduce(function(d,m,n){var s=d[m];if(!s)throw new Error('Missing module "'+m+'" for path "'+a+'".');return n===r.length-1?s:s._children},a==="root"?e:e.root._children)}function T8(e){try{return e()}catch(a){return a}}var Yc=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)||{}},wz={namespaced:{configurable:!0}};wz.namespaced.get=function(){return!!this._rawModule.namespaced},Yc.prototype.addChild=function(e,a){this._children[e]=a},Yc.prototype.removeChild=function(e){delete this._children[e]},Yc.prototype.getChild=function(e){return this._children[e]},Yc.prototype.hasChild=function(e){return e in this._children},Yc.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)},Yc.prototype.forEachChild=function(e){Vp(this._children,e)},Yc.prototype.forEachGetter=function(e){this._rawModule.getters&&Vp(this._rawModule.getters,e)},Yc.prototype.forEachAction=function(e){this._rawModule.actions&&Vp(this._rawModule.actions,e)},Yc.prototype.forEachMutation=function(e){this._rawModule.mutations&&Vp(this._rawModule.mutations,e)},Object.defineProperties(Yc.prototype,wz);var zp=function(e){this.register([],e,!1)};zp.prototype.get=function(e){return e.reduce(function(a,r){return a.getChild(r)},this.root)},zp.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(r,d){return a=a.getChild(d),r+(a.namespaced?d+"/":"")},"")},zp.prototype.update=function(e){kz([],this.root,e)},zp.prototype.register=function(e,a,r){var d=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&Tz(e,a);var m=new Yc(a,r);if(e.length===0)this.root=m;else{var n=this.get(e.slice(0,-1));n.addChild(e[e.length-1],m)}a.modules&&Vp(a.modules,function(s,i){d.register(e.concat(i),s,r)})},zp.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1],d=a.getChild(r);if(!d){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}d.runtime&&a.removeChild(r)},zp.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1];return a?a.hasChild(r):!1};function kz(e,a,r){if(process.env.NODE_ENV!=="production"&&Tz(e,r),a.update(r),r.modules)for(var d in r.modules){if(!a.getChild(d)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+d+"' on hot reloading, manual reload is needed");return}kz(e.concat(d),a.getChild(d),r.modules[d])}}var Cz={assert:function(e){return typeof e=="function"},expected:"function"},Xkt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Ez={getters:Cz,mutations:Cz,actions:Xkt};function Tz(e,a){Object.keys(Ez).forEach(function(r){if(a[r]){var d=Ez[r];Vp(a[r],function(m,n){qc(d.assert(m),Kkt(e,r,n,m,d.expected))})}})}function Kkt(e,a,r,d,m){var n=a+" should be "+m+' but "'+a+"."+r+'"';return e.length>0&&(n+=' in module "'+e.join(".")+'"'),n+=" is "+JSON.stringify(d)+".",n}var Rl=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(qc(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),qc(this instanceof e,"store must be called with the new operator."));var d=a.plugins;d===void 0&&(d=[]);var m=a.strict;m===void 0&&(m=!1);var n=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 zp(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=n;var s=this,i=this,_=i.dispatch,f=i.commit;this.dispatch=function(g,x){return _.call(s,g,x)},this.commit=function(g,x,c){return f.call(s,g,x,c)},this.strict=m;var o=this._modules.root.state;q_(this,o,[],this._modules.root),k8(this,o),d.forEach(function(g){return g(r)})},S8={state:{configurable:!0}};Rl.prototype.install=function(e,a){e.provide(a||Fkt,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&Gkt(e,this)},S8.state.get=function(){return this._state.data},S8.state.set=function(e){process.env.NODE_ENV!=="production"&&qc(!1,"use store.replaceState() to explicit replace store state.")},Rl.prototype.commit=function(e,a,r){var d=this,m=Y_(e,a,r),n=m.type,s=m.payload,i=m.options,_={type:n,payload:s},f=this._mutations[n];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+n);return}this._withCommit(function(){f.forEach(function(o){o(s)})}),this._subscribers.slice().forEach(function(o){return o(_,d.state)}),process.env.NODE_ENV!=="production"&&i&&i.silent&&console.warn("[vuex] mutation type: "+n+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Rl.prototype.dispatch=function(e,a){var r=this,d=Y_(e,a),m=d.type,n=d.payload,s={type:m,payload:n},i=this._actions[m];if(!i){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+m);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(s,r.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var _=i.length>1?Promise.all(i.map(function(f){return f(n)})):i[0](n);return new Promise(function(f,o){_.then(function(g){try{r._actionSubscribers.filter(function(x){return x.after}).forEach(function(x){return x.after(s,r.state)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(x))}f(g)},function(g){try{r._actionSubscribers.filter(function(x){return x.error}).forEach(function(x){return x.error(s,r.state,g)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(x))}o(g)})})},Rl.prototype.subscribe=function(e,a){return hz(e,this._subscribers,a)},Rl.prototype.subscribeAction=function(e,a){var r=typeof e=="function"?{before:e}:e;return hz(r,this._actionSubscribers,a)},Rl.prototype.watch=function(e,a,r){var d=this;return process.env.NODE_ENV!=="production"&&qc(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(d.state,d.getters)},a,Object.assign({},r))},Rl.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Rl.prototype.registerModule=function(e,a,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(qc(Array.isArray(e),"module path must be a string or an Array."),qc(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),q_(this,this.state,e,this._modules.get(e),r.preserveState),k8(this,this.state)},Rl.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&qc(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=C8(a.state,e.slice(0,-1));delete r[e[e.length-1]]}),fz(this)},Rl.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&qc(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Rl.prototype.hotUpdate=function(e){this._modules.update(e),fz(this,!0)},Rl.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Rl.prototype,S8);var Qkt=t9t(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!Sz(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),e9t(a).forEach(function(d){var m=d.key,n=d.val;r[m]=function(){for(var s=[],i=arguments.length;i--;)s[i]=arguments[i];var _=this.$store.commit;if(e){var f=a9t(this.$store,"mapMutations",e);if(!f)return;_=f.context.commit}return typeof n=="function"?n.apply(this,[_].concat(s)):_.apply(this.$store,[n].concat(s))}}),r});function e9t(e){return Sz(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 Sz(e){return Array.isArray(e)||pz(e)}function t9t(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function a9t(e,a,r){var d=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!d&&console.error("[vuex] module namespace not found in "+a+"(): "+r),d}const r9t="/icn-play.svg",n9t="/icn-tiros-de-esquina.svg",i9t="/icn-tiro-a-porteria.svg",o9t="/icn-cambio.svg",s9t="/icn-falta.svg",l9t="/atajada.svg",c9t="/fuera-de-lugar.svg",A8="/gol.svg",d9t="/var.png",u9t="/tiempo-agregado.svg",p9t="/jugada-peligrosa.svg",h9t="/penal-marcado.svg",f9t="/penal-fallado.svg",m9t="/inicia-el-partido.svg",g9t="/fin-del-partido.svg",y9t="/icn-tarjeta-amarilla.svg",_9t="/icn-tarjeta-roja.svg",v9t=[1,2,3,4,6],b9t={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return x8.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):x8.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):x8.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=>Tkt(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||v9t.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Qkt("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})}}},x9t=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),w9t={class:"time-line-event__details"},k9t={width:"127",preload:"metadata",style:{"border-radius":"8px"}},C9t=["src"],E9t=x9t(()=>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)),T9t={class:"time-line-event__details__info"},S9t={key:0,class:"time-line-event__details__info__header__players"},A9t={class:"time-line-event__details__info__header__players__div-img"},N9t=["src"],I9t={class:"time-line-event__details__info__body"},B9t={class:"time-line-event__details__info__body__comment"},M9t={class:"time-line-event__minute__container"},O9t={class:"time-line-event__minute__container__text"},P9t={class:"time-line-event__minute__container__icon-container"},F9t={class:"time-line-event__minute__container__icon-container__icon"},R9t={key:0,src:n9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},V9t={key:1,src:i9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},z9t={key:2,src:o9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},D9t={key:3,src:s9t,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},L9t={key:4,src:l9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$9t={key:5,src:c9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},j9t={key:6,src:A8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},U9t={key:7,src:A8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},H9t={key:8,src:A8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},G9t={key:9,src:d9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},W9t={key:10,src:u9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},q9t={key:11,src:p9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Y9t={key:12,src:h9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Z9t={key:13,src:f9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},J9t={key:14,src:m9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},X9t={key:15,src:g9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},K9t={key:16,src:y9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Q9t={key:17,src:_9t,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},eCt={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 tCt(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",n.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:m.gameEventKey},[t.createElementVNode("div",w9t,[r.canPlayVideos&&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]=s=>n.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",k9t,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,C9t)]),E9t])):t.createCommentVNode("",!0),t.createElementVNode("div",T9t,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",n.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",S9t,[n.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(n.srcImgPlayers,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":i===1}]),key:i},[t.createElementVNode("div",A9t,[t.createElementVNode("img",{src:s,alt:""},null,8,N9t)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",n.nameClasses]),onClick:a[1]||(a[1]=s=>n.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.canPlayVideos&&r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:r9t,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",I9t,[t.createElementVNode("div",B9t,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",n.minuteClasses])},[t.createElementVNode("div",M9t,[t.createElementVNode("div",O9t,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",P9t,[t.createElementVNode("div",F9t,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",R9t)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",V9t)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",z9t)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",D9t)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",L9t)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",$9t)):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",j9t)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",U9t)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",H9t)):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",G9t)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",W9t)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",q9t)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Y9t)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Z9t)):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",J9t)):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",X9t)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",K9t)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Q9t)):(t.openBlock(),t.createElementBlock("img",eCt))])])])],2)],6)}const aCt=$0(b9t,[["render",tCt],["__scopeId","data-v-9943063a"]]),rCt={"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"},nCt={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 Z_=null;const iCt={name:"TimeLine",components:{Tooltip:wkt,TimeLineEvent:aCt},mixins:[Ckt],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const 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":rCt[`${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 lz.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)Z_=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),Z_.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const r=this.$refs[`gameEventDiv${a}`][0],d=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,m=e+12;r&&(r.style.height=`${m}px`),d&&(d.style.height=`${m}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=nCt[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 Ekt(a)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){Z_&&Z_.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)}}},Az=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),oCt={ref:"timeLine",class:"time-line"},sCt={class:"time-line__header"},lCt={class:"time-line__header__dot"},cCt={class:"time-line__header__dot__home-team team-logo"},dCt=["src"],uCt={class:"time-line__header__dot__away-team team-logo"},pCt=["src"],hCt={key:1,class:"start-line"},fCt=Az(()=>t.createElementVNode("div",null,null,-1)),mCt=Az(()=>t.createElementVNode("div",null,null,-1)),gCt=[fCt,mCt],yCt={key:1,class:"noEventText"},_Ct={class:"tooltip-data"},vCt=["src"];function bCt(e,a,r,d,m,n){const s=t.resolveComponent("TimeLineEvent"),i=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",oCt,[t.createElementVNode("div",sCt,[t.createElementVNode("div",lCt,[t.createElementVNode("div",cCt,[t.createElementVNode("img",{src:n.getTeamLogoSrc("homeTeam"),alt:""},null,8,dCt)]),t.createElementVNode("div",uCt,[t.createElementVNode("img",{src:n.getTeamLogoSrc("awayTeam"),alt:""},null,8,pCt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${m.gameEvents.length}`},[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:m.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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(n.getGameEventClassAndSetIcon(_,f))},[t.createElementVNode("div",{class:t.normalizeClass(n.getEventContainerClass(_))},[t.createVNode(s,{"game-event":_,"is-mobile":n.isMobile,"time-line-width":m.timeLineWidth,width:n.gameEventWidth,"can-play-videos":r.canPlayVideos,onEventHeight:o=>n.updateContainerHeight(o,f),onPlayerChanged:a[0]||(a[0]=o=>e.$emit("player-changed",o)),onThumbnailClick:n.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","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===n.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",hCt,gCt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",yCt,"Aún no comienza el partido"))]))],512),t.createVNode(i,{data:m.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",_Ct,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:m.dataVideo.link,format:"video/mp4"},null,8,vCt)])])]),_:1},8,["data"])],64)}const xCt=$0(iCt,[["render",bCt],["__scopeId","data-v-2574e576"]]),wCt={class:"game-time-line__options"},kCt={class:"game-time-line__timeline"},CCt={__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:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){lz.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 d=null;const m=t.ref(["Todo","1er tiempo","2do tiempo"]),n=t.ref("Todo"),s=t.ref({}),i=t.ref(null),_=t.ref(0),f=t.computed(()=>{let l="all";return n.value==="1er tiempo"||n.value==="1er"?l="firstHalf":(n.value==="2do tiempo"||n.value==="2do")&&(l="secondHalf"),l}),o=t.computed(()=>_.value<500);function g(l){n.value=l}function x(l){s.value=l}function c(){if(window.ResizeObserver)d=new ResizeObserver(()=>{_.value=i.value.clientWidth}),d.observe(i.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{d&&d.unobserve(i.value)}),(l,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:i,class:"game-time-line"},[t.createElementVNode("div",wCt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"game-time-line__options__option"},[t.createVNode(a7t,t.mergeProps(_.value<390?r.value:a.value,{text:p=="Todo"?p:_.value<390?p.substring(0,3):p,"is-active":n.value===p,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",kCt,[t.createVNode(xCt,{"game-data":e.game,"time-line-period":f.value,"is-mobile":o.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:x},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},ECt=$0(CCt,[["__scopeId","data-v-f42d0c90"]]);function TCt(e){const a=t.ref({width:0,height:0});function r(){const d=e.value.getBoundingClientRect();a.value.width=d.width,a.value.height=d.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const SCt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},N8={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)}}},Nz=()=>{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}))},Iz=N8.setup;N8.setup=Iz?(e,a)=>(Nz(),Iz(e,a)):Nz;const ACt={ref:"gscScrollableContainer",class:"scrollable-container"},NCt={class:"scrollable-arrows"},ICt=["width","height","viewBox"],BCt=["stroke"],MCt={class:"scrollable-wrapper"},OCt={class:"scrollable-arrows"},PCt=["width","height","viewBox"],FCt=["stroke"];function RCt(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",ACt,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",n.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>n.scrollLeft&&n.scrollLeft(...s))},[t.createElementVNode("div",NCt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.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,BCt)],8,ICt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>n.getScroll&&n.getScroll(...s))},[t.createElementVNode("div",MCt,[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",n.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>n.scrollRight&&n.scrollRight(...s))},[t.createElementVNode("div",OCt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.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,FCt)],8,PCt))])],2)):t.createCommentVNode("",!0)],512)}const VCt=SCt(N8,[["render",RCt],["__scopeId","data-v-b548a08d"]]),zCt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},I8={components:{GSCSlider:VCt},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}=TCt(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}}},Bz=()=>{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}))},Mz=I8.setup;I8.setup=Mz?(e,a)=>(Bz(),Mz(e,a)):Bz;const DCt={ref:"myDivRef"},LCt={key:0,class:"gs-switch-container"},$Ct=["onClick"],jCt={key:1,class:"gs-switch-container-type"},UCt=["onClick"],HCt={key:2,class:"gs-switch-container-carousel"},GCt=["onClick"];function WCt(e,a,r,d,m,n){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",DCt,[r.type==0?(t.openBlock(),t.createElementBlock("div",LCt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([n.customGrid(d.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==i?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=i,n.clickEmitEvent(i))},t.toDisplayString(i),13,$Ct))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",jCt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([n.customGrid(d.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==i?{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=i,n.clickEmitEvent(i))},t.toDisplayString(i),13,UCt))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",HCt,[t.createVNode(s,{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,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==i?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=i,n.clickEmitEvent(i))},t.toDisplayString(i),13,GCt))),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 Oz=zCt(I8,[["render",WCt],["__scopeId","data-v-8a86dfaf"]]);function Pz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qCt(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var r=function d(){return this instanceof d?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(d){var m=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(r,d,m.get?m:{enumerable:!0,get:function(){return e[d]}})}),r}var B8={exports:{}};function M8(){}M8.prototype={on:function(e,a,r){var d=this.e||(this.e={});return(d[e]||(d[e]=[])).push({fn:a,ctx:r}),this},once:function(e,a,r){var d=this;function m(){d.off(e,m),a.apply(r,arguments)}return m._=a,this.on(e,m,r)},emit:function(e){var a=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),d=0,m=r.length;for(d;d<m;d++)r[d].fn.apply(r[d].ctx,a);return this},off:function(e,a){var r=this.e||(this.e={}),d=r[e],m=[];if(d&&a)for(var n=0,s=d.length;n<s;n++)d[n].fn!==a&&d[n].fn._!==a&&m.push(d[n]);return m.length?r[e]=m:delete r[e],this}},B8.exports=M8,B8.exports.TinyEmitter=M8;var YCt=B8.exports,ZCt=YCt,JCt=new ZCt;const J_=Pz(JCt),xBt="",XCt={class:"game-data__header"},KCt={class:"game-data__header__tournament-season-dropdown"},QCt={class:"game-data__header__teams-carousel"},eEt={class:"game-data__body"},tEt={class:"game-data__body__menu"},aEt={class:"game-data__body__menu__contmenuswitch"};cg.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const rEt=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:gee,GSCGameTimeLine:ECt,GscSwitchComponent:Oz,GSCLineupsMain:z0e,GSCDatosGSMain:Nxe,GSCVideoGame:tAe,GSCSummaryMain:znt,GSCTacticaFijaMain:e7t}}),nEt=Ti(Object.assign(rEt,{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},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile"],setup(e,{emit:a}){const r=e,d=j1();J_.on("socket-connected",()=>{d.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const m=t.ref({season:[]}),n=t.ref({}),s=t.ref({}),i=t.ref(!0),_=t.ref(new Set([1,2])),f=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),o=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:"Táctica Fija",id:7}]);let g=null;const x=t.ref(null),c=t.ref(0),l=t.ref(o.value[0]),u=t.ref([]);let p=t.ref("");const h={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},y=t.computed(()=>{const z=[];return n.value&&n.value.id&&(z.push({id:n.value.id,name:n.value.name,type:n.value.type}),n.value.related_seasons&&n.value.related_seasons.forEach(L=>{z.push({id:L.id,type:L.type})})),z}),b=t.computed(()=>{if(r.clientPrivilegesBySeasons){const z=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(n.value.id);if(z)return z.teamId}return 0});function v(){g=new ResizeObserver(z=>{for(const L of z)c.value=L.contentRect.width}),g.observe(x.value)}const w=t.computed(()=>{let z={};return s.value&&s.value.game_id&&(z={gameId:s.value.game_id,id:s.value.game_id,seasonId:s.value.season_id,status:s.value.game_status,game_status:s.value.game_status==0?4:s.value.game_status,dateTimeUTC:s.value.date_time_utc,homeTeam:s.value.home_team,awayTeam:s.value.visiting_team,is_live:s.value.is_live}),z});t.watch(()=>d.state.nextGeneral.gameForAnalysis,()=>{d.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function C(z){i.value=z.is_captured!==0,m.value.id!==z.id&&(m.value=z,d.commit("gameGlobal/setTournamentType",z.tournament_type))}function k(z){B.value&&!B.value.canPrivilegesTeamPlayVideos||a("openmedia",z)}function N(z){a("onOpenProfile",z)}function E(z){R(z),z=="Estadísticas"&&(p.value="Comparativa")}function S(){p.value=""}function A(z){n.value.id!==z.id&&(n.value=z,a("change-season-id",z.id))}const I=t.computed(()=>o.value.reduce((z,L)=>(r.disabledSectionsIds.includes(L.id)||B.value&&!B.value.canPrivilegesTeamPlayVideos&&L.id===2||r.clientPrivilegesBySeasons&&L.id===7||(i.value||L.id!==5&&L.id!==6)&&z.push(L.name),z),[])),B=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(n.value&&s.value&&s.value.game_id){const z=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(n.value.id);if(z)if(T(z.playingAs),s.value.game_status===1){const L=z.playingAs.has(s.value.playingAs);return{seasonAndPrivileges:z,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&L,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:s.value.home_team.team_id===z.teamId,homeTeamDetails:{canPlayVideos:L,team:s.value.home_team},awayTeamDetails:{canPlayVideos:L,team:s.value.visiting_team}}}else{const L=s.value.home_team.team_id===z.teamId,D=O.value.filter(W=>z.playingAs.has(W.playingAs));return{seasonAndPrivileges:z,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&D.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:L,homeTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&L&&D.length>0,team:s.value.home_team},awayTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&!L&&D.length>0,team:s.value.visiting_team}}}T(new Set)}return h}return null}),O=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(n.value){const z=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(n.value.id);if(z)return u.value.filter(L=>L.game_status===1&&z.playingAs.has(L.playingAs))}return[]}return[]});t.watch(I,()=>{B.value&&!B.value.canPrivilegesTeamPlayVideos&&l.value.id===2&&R("Resumen")},{deep:!0,immediate:!0});function T(z){_.value=z}function R(z){l.value=o.value.find(L=>L.name===z)||o.value[0]}t.onMounted(()=>{v(),t.nextTick(()=>{r.isSynchronization&&R("Tactica Fija")})}),t.onBeforeUnmount(()=>{g&&g.disconnect()});function M(z){z.playingAs||(z.playingAs=b.value?z.home_team.team_id===b.value?1:2:0),s.value=z}function P(z){u.value=z.map(L=>{const D={...L};return b.value&&(D.playingAs=D.home_team.team_id===b.value?1:2),D})}return(z,L)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:x},[t.createElementVNode("div",XCt,[t.withDirectives(t.createElementVNode("div",KCt,[t.createVNode(t.unref($$),{"current-season-id":e.currentSeasonId,onInput:C,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":"https://l104v3p3kd.execute-api.us-east-2.amazonaws.com/qa/gs3/tournaments"},null,8,["current-season-id","tournaments-ids-to-include"]),t.createVNode(t.unref(dj),{"current-season-id":e.currentSeasonId,seasons:m.value.seasons,onInput:A},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",QCt,[t.createVNode(t.unref(wW),{token:f.value,"await-for-seasons":"",seasons:y.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":b.value,"only-games-team-id":b.value,"tournament-type":t.unref(d).state.gameGlobal.tournamentType,onChangeGameCarousel:M,onChangeGamesByClientPrivileges:P},null,8,["token","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),t.createElementVNode("div",eEt,[t.createElementVNode("div",tEt,[t.createElementVNode("div",aEt,[t.createVNode(t.unref(Oz),{type:2,buttons:I.value,"font-family":"Poppins-Regular","font-size":"16px",width:c.value<400||c.value<700?"max-content":c.value<840||c.value<1050?"155px":"165px","selected-option":l.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:R},null,8,["buttons","width","selected-option"])])]),w.value&&w.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value.componentName),{key:0,game:w.value,subsection:t.unref(p),seasonSelected:n.value,showLineups:i.value,socket:e.socket,"is-tactic-visible":!!n.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":B.value?B.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":_.value,"client-privileges-team-id":b.value,"play-videos-privileges":B.value,onResetSubsection:S,onOpenmedia:k,onOnOpenProfile:N,onChangeToTab:E,onOpenMediaPlayer:k},null,40,["game","subsection","seasonSelected","showLineups","socket","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-35bb519e"]]);async function Hs({url:e,options:a={},retries:r=3}){return await cg.get(e,a).then(d=>d).catch(d=>r>0?Hs({url:e,options:a,retries:r-1}):d)}async function Fz({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 Fz({seasonId:e},!1);throw new Error(r)}}async function iEt({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 oEt({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 sEt(e,a,r,d,m,n,s=!1){const i=r.map(_=>_===1?2:_===2?1:3);return e.filter(_=>{const f=n&&_[m.teamId]?_[m.teamId]!==n:!1,o=a===1?2:1;return(s||d.includes(_[m.gameId]))&&(!a||(f?o:a)===_[m.playingAs])&&(r.includes(_[m.matchResult])&&_[m.teamId]===n||i.includes(_[m.matchResult])&&_[m.teamId]!==n)})}function Rz(e,a,r,d,m){return a.length===2&&r.length===3&&d.length===6?e:e.filter(n=>a.includes(n[m.playingAs])&&r.includes(n[m.matchResult])&&d.includes(n[m.section]))}async function Vz({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 lEt({seasonId:e,gameId:a}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:d}=await Hs({url:r});return d}catch(r){return Promise.reject(r)}}async function cEt({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 dEt({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 uEt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let O8=null;function zz(){return O8||(O8=J1(uEt)),O8}async function pEt(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 Dz({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 hEt(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 fEt(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 mEt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,r,d){return sEt(e.seasonPlays,d["filterGeneral/getPlayingAs"],d["filterGeneral/getResults"],d["filterGeneral/getSelectedGamesIds"],zz(),d["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((r,d)=>{const m={...d};return m.home_team=e.currentSeasonTeams.find(n=>n.team_id===d.home_team),m.visiting_team=e.currentSeasonTeams.find(n=>n.team_id===d.visiting_team),r[d.matchday_abbreviation]?r[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?r[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(m):r[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[m]:r[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[m]},r},{});for(let[r,d]of Object.entries(a))a[r]=Object.entries(d).map(([m,n])=>({date:m,games:n})),a[r].sort((m,n)=>m.date<n.date?-1:m.date>n.date?1:0);return a},matchdaysDates(e,a){let r=[];if(a.nextGamesSchedule){let d=Object.keys(a.nextGamesSchedule);for(let m of d){let n=Number(m.replace("M","")),s=a.nextGamesSchedule[m].map(i=>({matchday:n,date:new Date(i.date)}));r=r.concat(s)}}return r},closestMatchDay(e,a){let r=new Date,d=0,m=-new Date(0,0,0).valueOf(),n=a.matchdaysDates,s=n.length;for(let i=0;i<n.length;i++)d=Math.abs(n[i].date-r),d<m&&(s=i,m=d);return n[s]?n[s].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 d=await Fz({seasonId:a["filterGeneral/getSeasonId"]});if(r)return d;e("updateSeasonPlays",d)}catch(d){return Promise.reject(d)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const r=await Vz({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const r=await pEt({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 d=[void 0,void 0];return e.currentSeasonGames.length===0&&(d[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(d[1]=a("getCurrentSeasonTeams")),await Promise.all(d),!1}catch(d){throw new Error(d)}}}}};async function gEt({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 yEt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let P8=null;function _Et(){return P8||(P8=J1(yEt)),P8}class X_{constructor(){zi(this,"maximumLiveSection",1);zi(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:[]});zi(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,d){d&&(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,d){d&&(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,d){for(let m=r-1;m<a.accumulated.length;m++)a.accumulated[m]+=d}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,d){for(let m=a.accumulated.length-1;m>=r-1;m--)a.accumulated[m]-=d}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(d=>d/r)}calculateRanking(a,r,d,m,n,s,i,_){let f=[];m===3&&a&&a.length&&(d.playingAs.length!==2||d.matchResult.length!==3)?f=Array.from(a.reduce((g,x)=>{const c=x[r.playingAs]===1,l=c?"1":"2",u=g.get(x[r.gameId]);if(u)u[l]?u[l].arrayPlays.push(x):u[l]={numberTeamId:x[r.teamId],arrayPlays:[x]};else{const p={numberMatchResult:x[r.matchResult]};c&&(p[1]={numberTeamId:x[r.teamId],arrayPlays:[x]}),g.set(x[r.gameId],p)}return g},new Map).values()).reduce((g,x)=>{const c=d.playingAs.length===2?"both":d.playingAs[0].toString();return(c==="both"&&(x[1].numberTeamId===d.teamId||x[2].numberTeamId===d.teamId)||c!=="both"&&x[c].numberTeamId===d.teamId)&&d.matchResult.includes(x.numberMatchResult)&&g.push(...x[1].arrayPlays,...x[2].arrayPlays),g},[]).filter(g=>d.sections.includes(g[r.section])):(f=a?[...a]:[],i&&a&&(f=a.filter(o=>d.playingAs.includes(o[r.playingAs])&&d.matchResult.includes(o[r.matchResult])&&d.sections.includes(o[r.section])))),this.setTeamRanking(f,m,r,d.teamId,s,"accomplished",_)}setTeamRanking(a,r,d,m,n,s,i){let _=null,f=null;r===3&&(_=new Map,f={},a.forEach(x=>{const c=_.get(x[d.gameId]);c?c[x[d.teamId.toString()]]?c[x[d.teamId.toString()]]+=x[d.total]:c[x[d.teamId.toString()]]=x[d.total]:_.set(x[d.gameId],{[x[d.teamId.toString()]]:x[d.total]})}),Array.from(_.values()).forEach(x=>{const[c,l]=Object.keys(x).map(p=>p),u=x[c]+x[l];this.addPassesAvgByTeam(f,c,u?x[c]/u:0),this.addPassesAvgByTeam(f,l,u?x[l]/u:0)}));const o=n.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((l,u)=>u[d.teamId]===x.team_id&&r===u[d.categoryId]?l+u[d.total]:l,0);return{teamId:x.team_id,points:x[`${i}FilterGames`]?c/x[`${i}FilterGames`]:0,total:c}}}).sort((x,c)=>c.points-x.points);this.accomplished.arrayRankings=o;const g=o.findIndex(x=>x.teamId===m);r===3&&(this.accomplished.avgPreGame=o[g].points),this[s].ranking=g+1,this[s].leader=o[0]}addPassesAvgByTeam(a,r,d){a[r]?(a[r].numberGamesCount+=1,a[r].numberTotalPassesAvg+=d):a[r]={numberGamesCount:1,numberTotalPassesAvg:d}}}class kn{constructor(a,r,d,m,n,s,i,_,f,o){zi(this,"id","");zi(this,"generalId",0);zi(this,"name","");zi(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});zi(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});zi(this,"accomplishedCategoryIds",[]);zi(this,"receivedCategoryIds",[]);zi(this,"generalCategoriesIds",{accomplished:0,received:0});zi(this,"specialMention","");zi(this,"homeTeam",new X_);zi(this,"visitingTeam",new X_);zi(this,"isLeagueDataCalculated",!1);zi(this,"leagueAccomplishedMax",0);zi(this,"leagueReceivedMax",0);zi(this,"leagueAccomplishedAvg",0);zi(this,"leagueReceivedAvg",0);zi(this,"leagueAccomplishedAccumulator",0);zi(this,"leagueReceivedAccumulator",0);zi(this,"homeTeamType","homeTeam");zi(this,"visitingTeamType","visitingTeam");zi(this,"betOnly",!1);zi(this,"isPercent",!1);this.id=`${d.accomplished}-${d.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=d||{accomplished:0,received:0},this.name=m,this.names["0-0"]=m||"",this.names["1-1"]=n||"",this.names["0-1"]=s||"",this.names["1-0"]=i||"",this.generalId=_||0,this.betOnly=f||!1,this.isPercent=o||!1}addLeaguePlays(a,r,d){a.length===0||!d||this.isLeagueDataCalculated||(a.forEach(m=>{this.isAccomplishedLeaguePlay(m[r.categoryId])&&(this.leagueAccomplishedAccumulator+=m[r.total]),this.isReceivedLeaguePlay(m[r.categoryId])&&(this.leagueReceivedAccumulator+=m[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*d)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*d)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,r,d){let m="-";for(const[n,s]of Object.entries(this.generalCategoriesIds))a===s&&(m=`${n==="accomplished"?"0":"1"}${m}`),r===s&&(m=`${m}${n==="accomplished"?"0":"1"}`);m.length===3&&(this.mentions[m]=d)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,r,d,m,n){!d||!n||a!==this.homeTeamType&&a!==this.visitingTeamType||(d.forEach(s=>{this.isAccomplishedPlay(s[m.categoryId])?this[a].increaseAccomplishedByOne(s[m.section],s[m.total]):this.isReceivedPlay(s[m.categoryId])&&this[a].increaseReceivedByOne(s[m.section],s[m.total])}),this[a].calculateAvg(n))}addLivePlay(a,r,d,m,n=!1,s=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&d[m.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(d[m.section],d[m.total],!0)}subtractLivePlay(a,r,d,m,n){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(d[m.categoryId])&&!n?this[a].decreaseAccomplishedLiveByOne(d[m.section],d[m.total]):this.isReceivedPlay(d[m.categoryId])&&n&&this[a].decreaseReceivedLiveByOne(d[m.section],d[m.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(d=>a===d||`${a}_r`===d)}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,d,m,n,s=!1){this[this.homeTeamType].calculateRanking(a,r,d,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,n,s,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,r,m,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,n,s,this.visitingTeamType)}resetData(){this.homeTeam=new X_,this.visitingTeam=new X_,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 vEt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new kn([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new kn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new kn([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new kn([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new kn([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new kn([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new kn([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new kn([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new kn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new kn([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new kn([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new kn([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new kn([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new kn([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new kn([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new kn([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new kn([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new kn([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new kn([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new kn([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new kn([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new kn([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new kn([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new kn([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new kn([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new kn([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new kn([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 kn([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new kn([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new kn([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new kn([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new kn([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new kn([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new kn([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new kn([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new kn([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new kn([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new kn([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},bEt=[{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}],xEt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let F8=null;function wEt(){return F8||(F8=J1(xEt)),F8}const kEt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let R8=null;function CEt(){return R8||(R8=J1(kEt)),R8}function K_(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 Lz(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 V8(e,a,r){let d=[...a];return e[r.categoryId]===2&&(d[0]=14),e[r.categoryId]===20&&(d[0]=15),[14,15].includes(d[0])?d:null}var z8={exports:{}},EEt=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,TEt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],$z=function(a){var r=a,d=a.indexOf("["),m=a.indexOf("]");d!=-1&&m!=-1&&(a=a.substring(0,d)+a.substring(d,m).replace(/:/g,";")+a.substring(m,a.length));for(var n=EEt.exec(a||""),s={},i=14;i--;)s[TEt[i]]=n[i]||"";return d!=-1&&m!=-1&&(s.source=r,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=SEt(s,s.path),s.queryKey=AEt(s,s.query),s};function SEt(e,a){var r=/\/{2,9}/g,d=a.replace(r,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&d.splice(0,1),a.substr(a.length-1,1)=="/"&&d.splice(d.length-1,1),d}function AEt(e,a){var r={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,m,n){m&&(r[m]=n)}),r}var D8={exports:{}},L8={exports:{}},q0=1e3,Y0=q0*60,Z0=Y0*60,J0=Z0*24,NEt=J0*365.25,IEt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return BEt(e);if(r==="number"&&isNaN(e)===!1)return a.long?OEt(e):MEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function BEt(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]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return r*NEt;case"days":case"day":case"d":return r*J0;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 MEt(e){return e>=J0?Math.round(e/J0)+"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 OEt(e){return Q_(e,J0,"day")||Q_(e,Z0,"hour")||Q_(e,Y0,"minute")||Q_(e,q0,"second")||e+" ms"}function Q_(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=d.debug=d.default=d,a.coerce=_,a.disable=s,a.enable=n,a.enabled=i,a.humanize=IEt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,g;for(g in f)o=(o<<5)-o+f.charCodeAt(g),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function d(f){var o;function g(){if(g.enabled){var x=g,c=+new Date,l=c-(o||c);x.diff=l,x.prev=o,x.curr=c,o=c;for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];u[0]=a.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var h=0;u[0]=u[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=u[h];b=w.call(x,C),u.splice(h,1),h--}return b}),a.formatArgs.call(x,u);var y=g.log||a.log||console.log.bind(console);y.apply(x,u)}}return g.namespace=f,g.enabled=a.enabled(f),g.useColors=a.useColors(),g.color=r(f),g.destroy=m,typeof a.init=="function"&&a.init(g),a.instances.push(g),g}function m(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function n(f){a.save(f),a.names=[],a.skips=[];var o,g=(typeof f=="string"?f:"").split(/[\s,]+/),x=g.length;for(o=0;o<x;o++)g[o]&&(f=g[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 s(){a.enable("")}function i(f){if(f[f.length-1]==="*")return!0;var o,g;for(o=0,g=a.skips.length;o<g;o++)if(a.skips[o].test(f))return!1;for(o=0,g=a.names.length;o<g;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(L8,L8.exports);var PEt=L8.exports;(function(e,a){a=e.exports=PEt,a.log=m,a.formatArgs=d,a.save=n,a.load=s,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:i(),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 d(_){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 g=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(g++,c==="%c"&&(x=g))}),_.splice(x,0,o)}}function m(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function s(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(s());function i(){try{return window.localStorage}catch{}}})(D8,D8.exports);var ev=D8.exports,FEt=$z,jz=ev("socket.io-client:url"),REt=VEt;function VEt(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)||(jz("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),jz("parse %s",e),r=FEt(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 d=r.host.indexOf(":")!==-1,m=d?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+m+":"+r.port,r.href=r.protocol+"://"+m+(a&&a.port===r.port?"":":"+r.port),r}var tv={},$8={exports:{}},j8={exports:{}},X0=1e3,K0=X0*60,Q0=K0*60,e1=Q0*24,zEt=e1*365.25,DEt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return LEt(e);if(r==="number"&&isNaN(e)===!1)return a.long?jEt(e):$Et(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function LEt(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]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return r*zEt;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*K0;case"seconds":case"second":case"secs":case"sec":case"s":return r*X0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $Et(e){return e>=e1?Math.round(e/e1)+"d":e>=Q0?Math.round(e/Q0)+"h":e>=K0?Math.round(e/K0)+"m":e>=X0?Math.round(e/X0)+"s":e+"ms"}function jEt(e){return av(e,e1,"day")||av(e,Q0,"hour")||av(e,K0,"minute")||av(e,X0,"second")||e+" ms"}function av(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=d.debug=d.default=d,a.coerce=_,a.disable=s,a.enable=n,a.enabled=i,a.humanize=DEt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,g;for(g in f)o=(o<<5)-o+f.charCodeAt(g),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function d(f){var o;function g(){if(g.enabled){var x=g,c=+new Date,l=c-(o||c);x.diff=l,x.prev=o,x.curr=c,o=c;for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];u[0]=a.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var h=0;u[0]=u[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=u[h];b=w.call(x,C),u.splice(h,1),h--}return b}),a.formatArgs.call(x,u);var y=g.log||a.log||console.log.bind(console);y.apply(x,u)}}return g.namespace=f,g.enabled=a.enabled(f),g.useColors=a.useColors(),g.color=r(f),g.destroy=m,typeof a.init=="function"&&a.init(g),a.instances.push(g),g}function m(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function n(f){a.save(f),a.names=[],a.skips=[];var o,g=(typeof f=="string"?f:"").split(/[\s,]+/),x=g.length;for(o=0;o<x;o++)g[o]&&(f=g[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 s(){a.enable("")}function i(f){if(f[f.length-1]==="*")return!0;var o,g;for(o=0,g=a.skips.length;o<g;o++)if(a.skips[o].test(f))return!1;for(o=0,g=a.names.length;o<g;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(j8,j8.exports);var UEt=j8.exports;(function(e,a){a=e.exports=UEt,a.log=m,a.formatArgs=d,a.save=n,a.load=s,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:i(),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 d(_){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 g=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(g++,c==="%c"&&(x=g))}),_.splice(x,0,o)}}function m(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function s(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(s());function i(){try{return window.localStorage}catch{}}})($8,$8.exports);var HEt=$8.exports,Uz={exports:{}};(function(e){e.exports=a;function a(d){if(d)return r(d)}function r(d){for(var m in a.prototype)d[m]=a.prototype[m];return d}a.prototype.on=a.prototype.addEventListener=function(d,m){return this._callbacks=this._callbacks||{},(this._callbacks["$"+d]=this._callbacks["$"+d]||[]).push(m),this},a.prototype.once=function(d,m){function n(){this.off(d,n),m.apply(this,arguments)}return n.fn=m,this.on(d,n),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(d,m){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+d];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+d],this;for(var s,i=0;i<n.length;i++)if(s=n[i],s===m||s.fn===m){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+d],this},a.prototype.emit=function(d){this._callbacks=this._callbacks||{};for(var m=new Array(arguments.length-1),n=this._callbacks["$"+d],s=1;s<arguments.length;s++)m[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,i=n.length;s<i;++s)n[s].apply(this,m)}return this},a.prototype.listeners=function(d){return this._callbacks=this._callbacks||{},this._callbacks["$"+d]||[]},a.prototype.hasListeners=function(d){return!!this.listeners(d).length}})(Uz);var ff=Uz.exports,rv={},GEt={}.toString,U8=Array.isArray||function(e){return GEt.call(e)=="[object Array]"},Hz=ZEt,WEt=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",qEt=typeof ArrayBuffer=="function",YEt=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function ZEt(e){return WEt&&Buffer.isBuffer(e)||qEt&&(e instanceof ArrayBuffer||YEt(e))}var H8=U8,Gz=Hz,Wz=Object.prototype.toString,JEt=typeof Blob=="function"||typeof Blob<"u"&&Wz.call(Blob)==="[object BlobConstructor]",XEt=typeof File=="function"||typeof File<"u"&&Wz.call(File)==="[object FileConstructor]";rv.deconstructPacket=function(e){var a=[],r=e.data,d=e;return d.data=G8(r,a),d.attachments=a.length,{packet:d,buffers:a}};function G8(e,a){if(!e)return e;if(Gz(e)){var r={_placeholder:!0,num:a.length};return a.push(e),r}else if(H8(e)){for(var d=new Array(e.length),m=0;m<e.length;m++)d[m]=G8(e[m],a);return d}else if(typeof e=="object"&&!(e instanceof Date)){var d={};for(var n in e)d[n]=G8(e[n],a);return d}return e}rv.reconstructPacket=function(e,a){return e.data=W8(e.data,a),e.attachments=void 0,e};function W8(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(H8(e))for(var d=0;d<e.length;d++)e[d]=W8(e[d],a);else if(typeof e=="object")for(var m in e)e[m]=W8(e[m],a);return e}rv.removeBlobs=function(e,a){function r(n,s,i){if(!n)return n;if(JEt&&n instanceof Blob||XEt&&n instanceof File){d++;var _=new FileReader;_.onload=function(){i?i[s]=this.result:m=this.result,--d||a(m)},_.readAsArrayBuffer(n)}else if(H8(n))for(var f=0;f<n.length;f++)r(n[f],f,n);else if(typeof n=="object"&&!Gz(n))for(var o in n)r(n[o],o,n)}var d=0,m=e;r(m),d||a(m)},function(e){var a=HEt("socket.io-parser"),r=ff,d=rv,m=U8,n=Hz;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=s,e.Decoder=g;function s(){}var i=e.ERROR+'"encode error"';s.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 y=_(p);h([y])}};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 y=f(p.data);if(y!==!1)h+=y;else return i}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 y(b){var v=d.deconstructPacket(b),w=_(v.packet),C=v.buffers;C.unshift(w),h(C)}d.removeBlobs(p,y)}function g(){this.reconstructor=null}r(g.prototype),g.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 l(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(n(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,y={type:Number(p.charAt(0))};if(e.types[y.type]==null)return u("unknown packet type "+y.type);if(e.BINARY_EVENT===y.type||e.BINARY_ACK===y.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");y.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}y.nsp=p.substring(b,h)}else y.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}y.id=Number(p.substring(b,h+1))}if(p.charAt(++h)){var k=c(p.substr(h)),N=k!==!1&&(y.type===e.ERROR||m(k));if(N)y.data=k;else return u("invalid payload")}return a("decoded %s as %j",p,y),y}function c(p){try{return JSON.parse(p)}catch{return!1}}g.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function l(p){this.reconPack=p,this.buffers=[]}l.prototype.takeBinaryData=function(p){if(this.buffers.push(p),this.buffers.length===this.reconPack.attachments){var h=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function u(p){return{type:e.ERROR,data:"parser error: "+p}}}(tv);var q8={exports:{}},nv={},Y8={exports:{}};try{Y8.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{Y8.exports=!1}var KEt=Y8.exports,Z8=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),QEt=KEt,eTt=Z8,J8=function(e){var a=e.xdomain,r=e.xscheme,d=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||QEt))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!r&&d)return new XDomainRequest}catch{}if(!a)try{return new eTt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},X8={exports:{}},Dp={},tTt=Object.keys||function(a){var r=[],d=Object.prototype.hasOwnProperty;for(var m in a)d.call(a,m)&&r.push(m);return r},aTt=U8,qz=Object.prototype.toString,rTt=typeof Blob=="function"||typeof Blob<"u"&&qz.call(Blob)==="[object BlobConstructor]",nTt=typeof File=="function"||typeof File<"u"&&qz.call(File)==="[object FileConstructor]",Yz=iv;function iv(e){if(!e||typeof e!="object")return!1;if(aTt(e)){for(var a=0,r=e.length;a<r;a++)if(iv(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||rTt&&e instanceof Blob||nTt&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return iv(e.toJSON(),!0);for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d)&&iv(e[d]))return!0;return!1}var iTt=function(e,a,r){var d=e.byteLength;if(a=a||0,r=r||d,e.slice)return e.slice(a,r);if(a<0&&(a+=d),r<0&&(r+=d),r>d&&(r=d),a>=d||a>=r||d===0)return new ArrayBuffer(0);for(var m=new Uint8Array(e),n=new Uint8Array(r-a),s=a,i=0;s<r;s++,i++)n[i]=m[s];return n.buffer},oTt=sTt;function sTt(e,a,r){var d=!1;return r=r||lTt,m.count=e,e===0?a():m;function m(n,s){if(m.count<=0)throw new Error("after called too many times");--m.count,n?(d=!0,a(n),a=r):m.count===0&&!d&&a(null,s)}}function lTt(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var rp=String.fromCharCode;function Zz(e){for(var a=[],r=0,d=e.length,m,n;r<d;)m=e.charCodeAt(r++),m>=55296&&m<=56319&&r<d?(n=e.charCodeAt(r++),(n&64512)==56320?a.push(((m&1023)<<10)+(n&1023)+65536):(a.push(m),r--)):a.push(m);return a}function cTt(e){for(var a=e.length,r=-1,d,m="";++r<a;)d=e[r],d>65535&&(d-=65536,m+=rp(d>>>10&1023|55296),d=56320|d&1023),m+=rp(d);return m}function Jz(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 K8(e,a){return rp(e>>a&63|128)}function dTt(e,a){if(!(e&4294967168))return rp(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=rp(e>>18&7|240),r+=K8(e,12),r+=K8(e,6)):(Jz(e,a)||(e=65533),r=rp(e>>12&15|224),r+=K8(e,6)):r=rp(e>>6&31|192),r+=rp(e&63|128),r}function uTt(e,a){a=a||{};for(var r=a.strict!==!1,d=Zz(e),m=d.length,n=-1,s,i="";++n<m;)s=d[n],i+=dTt(s,r);return i}function mf(){if(np>=sv)throw Error("Invalid byte index");var e=ov[np]&255;if(np++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function pTt(e){var a,r,d,m,n;if(np>sv)throw Error("Invalid byte index");if(np==sv)return!1;if(a=ov[np]&255,np++,!(a&128))return a;if((a&224)==192){if(r=mf(),n=(a&31)<<6|r,n>=128)return n;throw Error("Invalid continuation byte")}if((a&240)==224){if(r=mf(),d=mf(),n=(a&15)<<12|r<<6|d,n>=2048)return Jz(n,e)?n:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(r=mf(),d=mf(),m=mf(),n=(a&7)<<18|r<<12|d<<6|m,n>=65536&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}var ov,sv,np;function hTt(e,a){a=a||{};var r=a.strict!==!1;ov=Zz(e),sv=ov.length,np=0;for(var d=[],m;(m=pTt(r))!==!1;)d.push(m);return cTt(d)}var fTt={version:"2.1.2",encode:uTt,decode:hTt},lv={},Xz;function mTt(){return Xz||(Xz=1,function(e){lv.encode=function(a){var r=new Uint8Array(a),d,m=r.length,n="";for(d=0;d<m;d+=3)n+=e[r[d]>>2],n+=e[(r[d]&3)<<4|r[d+1]>>4],n+=e[(r[d+1]&15)<<2|r[d+2]>>6],n+=e[r[d+2]&63];return m%3===2?n=n.substring(0,n.length-1)+"=":m%3===1&&(n=n.substring(0,n.length-2)+"=="),n},lv.decode=function(a){var r=a.length*.75,d=a.length,m,n=0,s,i,_,f;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);var o=new ArrayBuffer(r),g=new Uint8Array(o);for(m=0;m<d;m+=4)s=e.indexOf(a[m]),i=e.indexOf(a[m+1]),_=e.indexOf(a[m+2]),f=e.indexOf(a[m+3]),g[n++]=s<<2|i>>4,g[n++]=(i&15)<<4|_>>2,g[n++]=(_&3)<<6|f&63;return o}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),lv}var Q8,Kz;function gTt(){if(Kz)return Q8;Kz=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var i=new Blob(["hi"]);return i.size===2}catch{return!1}}(),r=a&&function(){try{var i=new Blob([new Uint8Array([1,2])]);return i.size===2}catch{return!1}}(),d=e&&e.prototype.append&&e.prototype.getBlob;function m(i){return i.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 n(i,_){_=_||{};var f=new e;return m(i).forEach(function(o){f.append(o)}),_.type?f.getBlob(_.type):f.getBlob()}function s(i,_){return new Blob(m(i),_||{})}return typeof Blob<"u"&&(n.prototype=Blob.prototype,s.prototype=Blob.prototype),Q8=function(){return a?r?Blob:s:d?n:void 0}(),Q8}(function(e){var a=tTt,r=Yz,d=iTt,m=oTt,n=fTt,s;typeof ArrayBuffer<"u"&&(s=mTt());var i=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),_=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),f=i||_;e.protocol=3;var o=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},g=a(o),x={type:"error",data:"parser error"},c=gTt();e.encodePacket=function(v,w,C,k){typeof w=="function"&&(k=w,w=!1),typeof C=="function"&&(k=C,C=null);var N=v.data===void 0?void 0:v.data.buffer||v.data;if(typeof ArrayBuffer<"u"&&N instanceof ArrayBuffer)return u(v,w,k);if(typeof c<"u"&&N instanceof c)return h(v,w,k);if(N&&N.base64)return l(v,k);var E=o[v.type];return v.data!==void 0&&(E+=C?n.encode(String(v.data),{strict:!1}):String(v.data)),k(""+E)};function l(v,w){var C="b"+e.packets[v.type]+v.data.data;return w(C)}function u(v,w,C){if(!w)return e.encodeBase64Packet(v,C);var k=v.data,N=new Uint8Array(k),E=new Uint8Array(1+k.byteLength);E[0]=o[v.type];for(var S=0;S<N.length;S++)E[S+1]=N[S];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 N=new c([k.buffer,v.data]);return C(N)}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 I=k.result.split(",")[1];w(C+I)},k.readAsDataURL(v.data)}var N;try{N=String.fromCharCode.apply(null,new Uint8Array(v.data))}catch{for(var E=new Uint8Array(v.data),S=new Array(E.length),A=0;A<E.length;A++)S[A]=E[A];N=String.fromCharCode.apply(null,S)}return C+=btoa(N),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=y(v),v===!1))return x;var N=v.charAt(0);return Number(N)!=N||!g[N]?x:v.length>1?{type:g[N],data:v.substring(1)}:{type:g[N]}}var k=new Uint8Array(v),N=k[0],E=d(v,1);return c&&w==="blob"&&(E=new c([E])),{type:g[N],data:E}};function y(v){try{v=n.decode(v,{strict:!1})}catch{return!1}return v}e.decodeBase64Packet=function(v,w){var C=g[v.charAt(0)];if(!s)return{type:C,data:{base64:!0,data:v.substr(1)}};var k=s.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 N(S){return S.length+":"+S}function E(S,A){e.encodePacket(S,k?w:!1,!1,function(I){A(null,N(I))})}b(v,E,function(S,A){return C(A.join(""))})};function b(v,w,C){for(var k=new Array(v.length),N=m(v.length,C),E=function(A,I,B){w(I,function(O,T){k[A]=T,B(O,k)})},S=0;S<v.length;S++)E(S,v[S],N)}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 N="",E,S,A=0,I=v.length;A<I;A++){var B=v.charAt(A);if(B!==":"){N+=B;continue}if(N===""||N!=(E=Number(N))||(S=v.substr(A+1,E),N!=S.length))return C(x,0,1);if(S.length){if(k=e.decodePacket(S,w,!1),x.type===k.type&&x.data===k.data)return C(x,0,1);var O=C(k,A+E,I);if(O===!1)return}A+=E,N=""}if(N!=="")return C(x,0,1)},e.encodePayloadAsArrayBuffer=function(v,w){if(!v.length)return w(new ArrayBuffer(0));function C(k,N){e.encodePacket(k,!0,!0,function(E){return N(null,E)})}b(v,C,function(k,N){var E=N.reduce(function(I,B){var O;return typeof B=="string"?O=B.length:O=B.byteLength,I+O.toString().length+O+2},0),S=new Uint8Array(E),A=0;return N.forEach(function(I){var B=typeof I=="string",O=I;if(B){for(var M=new Uint8Array(I.length),T=0;T<I.length;T++)M[T]=I.charCodeAt(T);O=M.buffer}B?S[A++]=0:S[A++]=1;for(var R=O.byteLength.toString(),T=0;T<R.length;T++)S[A++]=parseInt(R[T]);S[A++]=255;for(var M=new Uint8Array(O),T=0;T<M.length;T++)S[A++]=M[T]}),w(S.buffer)})},e.encodePayloadAsBlob=function(v,w){function C(k,N){e.encodePacket(k,!0,!0,function(E){var S=new Uint8Array(1);if(S[0]=1,typeof E=="string"){for(var A=new Uint8Array(E.length),I=0;I<E.length;I++)A[I]=E.charCodeAt(I);E=A.buffer,S[0]=0}for(var B=E instanceof ArrayBuffer?E.byteLength:E.size,O=B.toString(),T=new Uint8Array(O.length+1),I=0;I<O.length;I++)T[I]=parseInt(O[I]);if(T[O.length]=255,c){var R=new c([S.buffer,T.buffer,E]);N(null,R)}})}b(v,C,function(k,N){return w(new c(N))})},e.decodePayloadAsBinary=function(v,w,C){typeof w=="function"&&(C=w,w=null);for(var k=v,N=[];k.byteLength>0;){for(var E=new Uint8Array(k),S=E[0]===0,A="",I=1;E[I]!==255;I++){if(A.length>310)return C(x,0,1);A+=E[I]}k=d(k,2+A.length),A=parseInt(A);var B=d(k,0,A);if(S)try{B=String.fromCharCode.apply(null,new Uint8Array(B))}catch{var O=new Uint8Array(B);B="";for(var I=0;I<O.length;I++)B+=String.fromCharCode(O[I])}N.push(B),k=d(k,A)}var T=N.length;N.forEach(function(R,M){C(e.decodePacket(R,w,!0),M,T)})}})(Dp);var e7,Qz;function t7(){if(Qz)return e7;Qz=1;var e=Dp,a=ff;e7=r;function r(d){this.path=d.path,this.hostname=d.hostname,this.port=d.port,this.secure=d.secure,this.query=d.query,this.timestampParam=d.timestampParam,this.timestampRequests=d.timestampRequests,this.readyState="",this.agent=d.agent||!1,this.socket=d.socket,this.enablesXDR=d.enablesXDR,this.withCredentials=d.withCredentials,this.pfx=d.pfx,this.key=d.key,this.passphrase=d.passphrase,this.cert=d.cert,this.ca=d.ca,this.ciphers=d.ciphers,this.rejectUnauthorized=d.rejectUnauthorized,this.forceNode=d.forceNode,this.isReactNative=d.isReactNative,this.extraHeaders=d.extraHeaders,this.localAddress=d.localAddress}return a(r.prototype),r.prototype.onError=function(d,m){var n=new Error(d);return n.type="TransportError",n.description=m,this.emit("error",n),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(d){if(this.readyState==="open")this.write(d);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(d){var m=e.decodePacket(d,this.socket.binaryType);this.onPacket(m)},r.prototype.onPacket=function(d){this.emit("packet",d)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},e7}var gf={};gf.encode=function(e){var a="";for(var r in e)e.hasOwnProperty(r)&&(a.length&&(a+="&"),a+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return a},gf.decode=function(e){for(var a={},r=e.split("&"),d=0,m=r.length;d<m;d++){var n=r[d].split("=");a[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return a};var cv=function(e,a){var r=function(){};r.prototype=a.prototype,e.prototype=new r,e.prototype.constructor=e},eD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),dv=64,tD={},aD=0,ip=0,rD;function a7(e){var a="";do a=eD[e%dv]+a,e=Math.floor(e/dv);while(e>0);return a}function yTt(e){var a=0;for(ip=0;ip<e.length;ip++)a=a*dv+tD[e.charAt(ip)];return a}function r7(){var e=a7(+new Date);return e!==rD?(aD=0,rD=e):e+"."+a7(aD++)}for(;ip<dv;ip++)tD[eD[ip]]=ip;r7.encode=a7,r7.decode=yTt;var nD=r7,n7={exports:{}},i7={exports:{}},t1=1e3,a1=t1*60,r1=a1*60,n1=r1*24,_Tt=n1*365.25,vTt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return bTt(e);if(r==="number"&&isNaN(e)===!1)return a.long?wTt(e):xTt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function bTt(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]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return r*_Tt;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 xTt(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 wTt(e){return uv(e,n1,"day")||uv(e,r1,"hour")||uv(e,a1,"minute")||uv(e,t1,"second")||e+" ms"}function uv(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=d.debug=d.default=d,a.coerce=_,a.disable=s,a.enable=n,a.enabled=i,a.humanize=vTt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,g;for(g in f)o=(o<<5)-o+f.charCodeAt(g),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function d(f){var o;function g(){if(g.enabled){var x=g,c=+new Date,l=c-(o||c);x.diff=l,x.prev=o,x.curr=c,o=c;for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];u[0]=a.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var h=0;u[0]=u[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=u[h];b=w.call(x,C),u.splice(h,1),h--}return b}),a.formatArgs.call(x,u);var y=g.log||a.log||console.log.bind(console);y.apply(x,u)}}return g.namespace=f,g.enabled=a.enabled(f),g.useColors=a.useColors(),g.color=r(f),g.destroy=m,typeof a.init=="function"&&a.init(g),a.instances.push(g),g}function m(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function n(f){a.save(f),a.names=[],a.skips=[];var o,g=(typeof f=="string"?f:"").split(/[\s,]+/),x=g.length;for(o=0;o<x;o++)g[o]&&(f=g[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 s(){a.enable("")}function i(f){if(f[f.length-1]==="*")return!0;var o,g;for(o=0,g=a.skips.length;o<g;o++)if(a.skips[o].test(f))return!1;for(o=0,g=a.names.length;o<g;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(i7,i7.exports);var kTt=i7.exports;(function(e,a){a=e.exports=kTt,a.log=m,a.formatArgs=d,a.save=n,a.load=s,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:i(),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 d(_){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 g=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(g++,c==="%c"&&(x=g))}),_.splice(x,0,o)}}function m(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function s(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(s());function i(){try{return window.localStorage}catch{}}})(n7,n7.exports);var pv=n7.exports,iD=t7(),CTt=gf,oD=Dp,ETt=cv,TTt=nD,Zc=pv("engine.io-client:polling"),sD=Hd,STt=function(){var e=J8,a=new e({xdomain:!1});return a.responseType!=null}();function Hd(e){var a=e&&e.forceBase64;(!STt||a)&&(this.supportsBinary=!1),iD.call(this,e)}ETt(Hd,iD),Hd.prototype.name="polling",Hd.prototype.doOpen=function(){this.poll()},Hd.prototype.pause=function(e){var a=this;this.readyState="pausing";function r(){Zc("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var d=0;this.polling&&(Zc("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){Zc("pre-pause polling complete"),--d||r()})),this.writable||(Zc("we are currently writing - waiting to pause"),d++,this.once("drain",function(){Zc("pre-pause writing complete"),--d||r()}))}else r()},Hd.prototype.poll=function(){Zc("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Hd.prototype.onData=function(e){var a=this;Zc("polling got data %s",e);var r=function(d,m,n){if(a.readyState==="opening"&&d.type==="open"&&a.onOpen(),d.type==="close")return a.onClose(),!1;a.onPacket(d)};oD.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Zc('ignoring poll - transport state "%s"',this.readyState))},Hd.prototype.doClose=function(){var e=this;function a(){Zc("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Zc("transport open - closing"),a()):(Zc("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")};oD.encodePayload(e,this.supportsBinary,function(d){a.doWrite(d,r)})},Hd.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=TTt()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=CTt.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var d=this.hostname.indexOf(":")!==-1;return a+"://"+(d?"["+this.hostname+"]":this.hostname)+r+this.path+e};var ATt=J8,lD=sD,NTt=ff,ITt=cv,o7=pv("engine.io-client:polling-xhr"),BTt=Z8;X8.exports=yf,X8.exports.Request=Ho;function cD(){}function yf(e){if(lD.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}}ITt(yf,lD),yf.prototype.supportsBinary=!0,yf.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)},yf.prototype.doWrite=function(e,a){var r=typeof e!="string"&&e!==void 0,d=this.request({method:"POST",data:e,isBinary:r}),m=this;d.on("success",a),d.on("error",function(n){m.onError("xhr post error",n)}),this.sendXhr=d},yf.prototype.doPoll=function(){o7("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(NTt(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 ATt(e),r=this;try{o7("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 d in this.extraHeaders)this.extraHeaders.hasOwnProperty(d)&&a.setRequestHeader(d,this.extraHeaders[d])}}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 m=a.getResponseHeader("Content-Type");(r.supportsBinary&&m==="application/octet-stream"||m==="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))},o7("xhr data %s",this.data),a.send(this.data)}catch(m){setTimeout(function(){r.onError(m)},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=cD:this.xhr.onreadystatechange=cD,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",dD);else if(typeof addEventListener=="function"){var MTt="onpagehide"in BTt?"pagehide":"unload";addEventListener(MTt,dD,!1)}}function dD(){for(var e in Ho.requests)Ho.requests.hasOwnProperty(e)&&Ho.requests[e].abort()}var OTt=X8.exports,s7=sD,PTt=cv,uD=Z8,FTt=_f,RTt=/\n/g,VTt=/\\n/g,hv;function zTt(){}function _f(e){s7.call(this,e),this.query=this.query||{},hv||(hv=uD.___eio=uD.___eio||[]),this.index=hv.length;var a=this;hv.push(function(r){a.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=zTt)},!1)}PTt(_f,s7),_f.prototype.supportsBinary=!1,_f.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),s7.prototype.doClose.call(this)},_f.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(m){e.onError("jsonp poll error",m)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(a,r):(document.head||document.body).appendChild(a),this.script=a;var d=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);d&&setTimeout(function(){var m=document.createElement("iframe");document.body.appendChild(m),document.body.removeChild(m)},100)},_f.prototype.doWrite=function(e,a){var r=this;if(!this.form){var d=document.createElement("form"),m=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index,s;d.className="socketio",d.style.position="absolute",d.style.top="-1000px",d.style.left="-1000px",d.target=n,d.method="POST",d.setAttribute("accept-charset","utf-8"),m.name="d",d.appendChild(m),document.body.appendChild(d),this.form=d,this.area=m}this.form.action=this.uri();function i(){_(),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+'">';s=document.createElement(f)}catch{s=document.createElement("iframe"),s.name=r.iframeId,s.src="javascript:0"}s.id=r.iframeId,r.form.appendChild(s),r.iframe=s}_(),e=e.replace(VTt,`\\
|
|
3573
|
+
*/var Fkt="store";function Vp(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function pz(e){return e!==null&&typeof e=="object"}function Rkt(e){return e&&typeof e.then=="function"}function qc(e,a){if(!e)throw new Error("[vuex] "+a)}function Vkt(e,a){return function(){return e(a)}}function hz(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var d=a.indexOf(e);d>-1&&a.splice(d,1)}}function fz(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;q_(e,r,[],e._modules.root,!0),k8(e,r,a)}function k8(e,a,r){var d=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var m=e._wrappedGetters,n={};Vp(m,function(s,i){n[i]=Vkt(s,e),Object.defineProperty(e.getters,i,{get:function(){return n[i]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&jkt(e),d&&r&&e._withCommit(function(){d.data=null})}function q_(e,a,r,d,m){var n=!r.length,s=e._modules.getNamespace(r);if(d.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[s]=d),!n&&!m){var i=C8(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in i&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),i[_]=d.state})}var f=d.context=zkt(e,s,r);d.forEachMutation(function(o,g){var x=s+g;Dkt(e,x,o,f)}),d.forEachAction(function(o,g){var x=o.root?g:s+g,c=o.handler||o;Lkt(e,x,c,f)}),d.forEachGetter(function(o,g){var x=s+g;$kt(e,x,o,f)}),d.forEachChild(function(o,g){q_(e,a,r.concat(g),o,m)})}function zkt(e,a,r){var d=a==="",m={dispatch:d?e.dispatch:function(n,s,i){var _=Y_(n,s,i),f=_.payload,o=_.options,g=_.type;if((!o||!o.root)&&(g=a+g,process.env.NODE_ENV!=="production"&&!e._actions[g])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+g);return}return e.dispatch(g,f)},commit:d?e.commit:function(n,s,i){var _=Y_(n,s,i),f=_.payload,o=_.options,g=_.type;if((!o||!o.root)&&(g=a+g,process.env.NODE_ENV!=="production"&&!e._mutations[g])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+g);return}e.commit(g,f,o)}};return Object.defineProperties(m,{getters:{get:d?function(){return e.getters}:function(){return mz(e,a)}},state:{get:function(){return C8(e.state,r)}}}),m}function mz(e,a){if(!e._makeLocalGettersCache[a]){var r={},d=a.length;Object.keys(e.getters).forEach(function(m){if(m.slice(0,d)===a){var n=m.slice(d);Object.defineProperty(r,n,{get:function(){return e.getters[m]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function Dkt(e,a,r,d){var m=e._mutations[a]||(e._mutations[a]=[]);m.push(function(n){r.call(e,d.state,n)})}function Lkt(e,a,r,d){var m=e._actions[a]||(e._actions[a]=[]);m.push(function(n){var s=r.call(e,{dispatch:d.dispatch,commit:d.commit,getters:d.getters,state:d.state,rootGetters:e.getters,rootState:e.state},n);return Rkt(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(i){throw e._devtoolHook.emit("vuex:error",i),i}):s})}function $kt(e,a,r,d){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(m){return r(d.state,d.getters,m.state,m.getters)}}function jkt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&qc(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function C8(e,a){return a.reduce(function(r,d){return r[d]},e)}function Y_(e,a,r){return pz(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&qc(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var Ukt="vuex bindings",gz="vuex:mutations",E8="vuex:actions",hf="vuex",Hkt=0;function Gkt(e,a){Pkt({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:[Ukt]},function(r){r.addTimelineLayer({id:gz,label:"Vuex Mutations",color:yz}),r.addTimelineLayer({id:E8,label:"Vuex Actions",color:yz}),r.addInspector({id:hf,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(d){if(d.app===e&&d.inspectorId===hf)if(d.filter){var m=[];xz(m,a._modules.root,d.filter,""),d.rootNodes=m}else d.rootNodes=[bz(a._modules.root,"")]}),r.on.getInspectorState(function(d){if(d.app===e&&d.inspectorId===hf){var m=d.nodeId;mz(a,m),d.state=Ykt(Jkt(a._modules,m),m==="root"?a.getters:a._makeLocalGettersCache,m)}}),r.on.editInspectorState(function(d){if(d.app===e&&d.inspectorId===hf){var m=d.nodeId,n=d.path;m!=="root"&&(n=m.split("/").filter(Boolean).concat(n)),a._withCommit(function(){d.set(a._state.data,n,d.state.value)})}}),a.subscribe(function(d,m){var n={};d.payload&&(n.payload=d.payload),n.state=m,r.notifyComponentUpdate(),r.sendInspectorTree(hf),r.sendInspectorState(hf),r.addTimelineEvent({layerId:gz,event:{time:Date.now(),title:d.type,data:n}})}),a.subscribeAction({before:function(d,m){var n={};d.payload&&(n.payload=d.payload),d._id=Hkt++,d._time=Date.now(),n.state=m,r.addTimelineEvent({layerId:E8,event:{time:d._time,title:d.type,groupId:d._id,subtitle:"start",data:n}})},after:function(d,m){var n={},s=Date.now()-d._time;n.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},d.payload&&(n.payload=d.payload),n.state=m,r.addTimelineEvent({layerId:E8,event:{time:Date.now(),title:d.type,groupId:d._id,subtitle:"end",data:n}})}})})}var yz=8702998,Wkt=6710886,qkt=16777215,_z={label:"namespaced",textColor:qkt,backgroundColor:Wkt};function vz(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function bz(e,a){return{id:a||"root",label:vz(a),tags:e.namespaced?[_z]:[],children:Object.keys(e._children).map(function(r){return bz(e._children[r],a+r+"/")})}}function xz(e,a,r,d){d.includes(r)&&e.push({id:d||"root",label:d.endsWith("/")?d.slice(0,d.length-1):d||"Root",tags:a.namespaced?[_z]:[]}),Object.keys(a._children).forEach(function(m){xz(e,a._children[m],r,d+m+"/")})}function Ykt(e,a,r){a=r==="root"?a:a[r];var d=Object.keys(a),m={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(d.length){var n=Zkt(a);m.getters=Object.keys(n).map(function(s){return{key:s.endsWith("/")?vz(s):s,editable:!1,value:T8(function(){return n[s]})}})}return m}function Zkt(e){var a={};return Object.keys(e).forEach(function(r){var d=r.split("/");if(d.length>1){var m=a,n=d.pop();d.forEach(function(s){m[s]||(m[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),m=m[s]._custom.value}),m[n]=T8(function(){return e[r]})}else a[r]=T8(function(){return e[r]})}),a}function Jkt(e,a){var r=a.split("/").filter(function(d){return d});return r.reduce(function(d,m,n){var s=d[m];if(!s)throw new Error('Missing module "'+m+'" for path "'+a+'".');return n===r.length-1?s:s._children},a==="root"?e:e.root._children)}function T8(e){try{return e()}catch(a){return a}}var Yc=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)||{}},wz={namespaced:{configurable:!0}};wz.namespaced.get=function(){return!!this._rawModule.namespaced},Yc.prototype.addChild=function(e,a){this._children[e]=a},Yc.prototype.removeChild=function(e){delete this._children[e]},Yc.prototype.getChild=function(e){return this._children[e]},Yc.prototype.hasChild=function(e){return e in this._children},Yc.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)},Yc.prototype.forEachChild=function(e){Vp(this._children,e)},Yc.prototype.forEachGetter=function(e){this._rawModule.getters&&Vp(this._rawModule.getters,e)},Yc.prototype.forEachAction=function(e){this._rawModule.actions&&Vp(this._rawModule.actions,e)},Yc.prototype.forEachMutation=function(e){this._rawModule.mutations&&Vp(this._rawModule.mutations,e)},Object.defineProperties(Yc.prototype,wz);var zp=function(e){this.register([],e,!1)};zp.prototype.get=function(e){return e.reduce(function(a,r){return a.getChild(r)},this.root)},zp.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(r,d){return a=a.getChild(d),r+(a.namespaced?d+"/":"")},"")},zp.prototype.update=function(e){kz([],this.root,e)},zp.prototype.register=function(e,a,r){var d=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&Tz(e,a);var m=new Yc(a,r);if(e.length===0)this.root=m;else{var n=this.get(e.slice(0,-1));n.addChild(e[e.length-1],m)}a.modules&&Vp(a.modules,function(s,i){d.register(e.concat(i),s,r)})},zp.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1],d=a.getChild(r);if(!d){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}d.runtime&&a.removeChild(r)},zp.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1];return a?a.hasChild(r):!1};function kz(e,a,r){if(process.env.NODE_ENV!=="production"&&Tz(e,r),a.update(r),r.modules)for(var d in r.modules){if(!a.getChild(d)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+d+"' on hot reloading, manual reload is needed");return}kz(e.concat(d),a.getChild(d),r.modules[d])}}var Cz={assert:function(e){return typeof e=="function"},expected:"function"},Xkt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Ez={getters:Cz,mutations:Cz,actions:Xkt};function Tz(e,a){Object.keys(Ez).forEach(function(r){if(a[r]){var d=Ez[r];Vp(a[r],function(m,n){qc(d.assert(m),Kkt(e,r,n,m,d.expected))})}})}function Kkt(e,a,r,d,m){var n=a+" should be "+m+' but "'+a+"."+r+'"';return e.length>0&&(n+=' in module "'+e.join(".")+'"'),n+=" is "+JSON.stringify(d)+".",n}var Rl=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(qc(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),qc(this instanceof e,"store must be called with the new operator."));var d=a.plugins;d===void 0&&(d=[]);var m=a.strict;m===void 0&&(m=!1);var n=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 zp(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=n;var s=this,i=this,_=i.dispatch,f=i.commit;this.dispatch=function(g,x){return _.call(s,g,x)},this.commit=function(g,x,c){return f.call(s,g,x,c)},this.strict=m;var o=this._modules.root.state;q_(this,o,[],this._modules.root),k8(this,o),d.forEach(function(g){return g(r)})},S8={state:{configurable:!0}};Rl.prototype.install=function(e,a){e.provide(a||Fkt,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&Gkt(e,this)},S8.state.get=function(){return this._state.data},S8.state.set=function(e){process.env.NODE_ENV!=="production"&&qc(!1,"use store.replaceState() to explicit replace store state.")},Rl.prototype.commit=function(e,a,r){var d=this,m=Y_(e,a,r),n=m.type,s=m.payload,i=m.options,_={type:n,payload:s},f=this._mutations[n];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+n);return}this._withCommit(function(){f.forEach(function(o){o(s)})}),this._subscribers.slice().forEach(function(o){return o(_,d.state)}),process.env.NODE_ENV!=="production"&&i&&i.silent&&console.warn("[vuex] mutation type: "+n+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Rl.prototype.dispatch=function(e,a){var r=this,d=Y_(e,a),m=d.type,n=d.payload,s={type:m,payload:n},i=this._actions[m];if(!i){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+m);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(s,r.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var _=i.length>1?Promise.all(i.map(function(f){return f(n)})):i[0](n);return new Promise(function(f,o){_.then(function(g){try{r._actionSubscribers.filter(function(x){return x.after}).forEach(function(x){return x.after(s,r.state)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(x))}f(g)},function(g){try{r._actionSubscribers.filter(function(x){return x.error}).forEach(function(x){return x.error(s,r.state,g)})}catch(x){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(x))}o(g)})})},Rl.prototype.subscribe=function(e,a){return hz(e,this._subscribers,a)},Rl.prototype.subscribeAction=function(e,a){var r=typeof e=="function"?{before:e}:e;return hz(r,this._actionSubscribers,a)},Rl.prototype.watch=function(e,a,r){var d=this;return process.env.NODE_ENV!=="production"&&qc(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(d.state,d.getters)},a,Object.assign({},r))},Rl.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Rl.prototype.registerModule=function(e,a,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(qc(Array.isArray(e),"module path must be a string or an Array."),qc(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),q_(this,this.state,e,this._modules.get(e),r.preserveState),k8(this,this.state)},Rl.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&qc(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=C8(a.state,e.slice(0,-1));delete r[e[e.length-1]]}),fz(this)},Rl.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&qc(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Rl.prototype.hotUpdate=function(e){this._modules.update(e),fz(this,!0)},Rl.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Rl.prototype,S8);var Qkt=t9t(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!Sz(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),e9t(a).forEach(function(d){var m=d.key,n=d.val;r[m]=function(){for(var s=[],i=arguments.length;i--;)s[i]=arguments[i];var _=this.$store.commit;if(e){var f=a9t(this.$store,"mapMutations",e);if(!f)return;_=f.context.commit}return typeof n=="function"?n.apply(this,[_].concat(s)):_.apply(this.$store,[n].concat(s))}}),r});function e9t(e){return Sz(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 Sz(e){return Array.isArray(e)||pz(e)}function t9t(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function a9t(e,a,r){var d=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!d&&console.error("[vuex] module namespace not found in "+a+"(): "+r),d}const r9t="/icn-play.svg",n9t="/icn-tiros-de-esquina.svg",i9t="/icn-tiro-a-porteria.svg",o9t="/icn-cambio.svg",s9t="/icn-falta.svg",l9t="/atajada.svg",c9t="/fuera-de-lugar.svg",A8="/gol.svg",d9t="/var.png",u9t="/tiempo-agregado.svg",p9t="/jugada-peligrosa.svg",h9t="/penal-marcado.svg",f9t="/penal-fallado.svg",m9t="/inicia-el-partido.svg",g9t="/fin-del-partido.svg",y9t="/icn-tarjeta-amarilla.svg",_9t="/icn-tarjeta-roja.svg",v9t=[1,2,3,4,6],b9t={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return x8.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):x8.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):x8.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=>Tkt(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||v9t.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Qkt("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})}}},x9t=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),w9t={class:"time-line-event__details"},k9t={width:"127",preload:"metadata",style:{"border-radius":"8px"}},C9t=["src"],E9t=x9t(()=>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)),T9t={class:"time-line-event__details__info"},S9t={key:0,class:"time-line-event__details__info__header__players"},A9t={class:"time-line-event__details__info__header__players__div-img"},N9t=["src"],I9t={class:"time-line-event__details__info__body"},B9t={class:"time-line-event__details__info__body__comment"},M9t={class:"time-line-event__minute__container"},O9t={class:"time-line-event__minute__container__text"},P9t={class:"time-line-event__minute__container__icon-container"},F9t={class:"time-line-event__minute__container__icon-container__icon"},R9t={key:0,src:n9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},V9t={key:1,src:i9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},z9t={key:2,src:o9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},D9t={key:3,src:s9t,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},L9t={key:4,src:l9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$9t={key:5,src:c9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},j9t={key:6,src:A8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},U9t={key:7,src:A8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},H9t={key:8,src:A8,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},G9t={key:9,src:d9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},W9t={key:10,src:u9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},q9t={key:11,src:p9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Y9t={key:12,src:h9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Z9t={key:13,src:f9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},J9t={key:14,src:m9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},X9t={key:15,src:g9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},K9t={key:16,src:y9t,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Q9t={key:17,src:_9t,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},eCt={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 tCt(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",n.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:m.gameEventKey},[t.createElementVNode("div",w9t,[r.canPlayVideos&&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]=s=>n.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",k9t,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,C9t)]),E9t])):t.createCommentVNode("",!0),t.createElementVNode("div",T9t,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",n.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",S9t,[n.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(n.srcImgPlayers,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":i===1}]),key:i},[t.createElementVNode("div",A9t,[t.createElementVNode("img",{src:s,alt:""},null,8,N9t)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",n.nameClasses]),onClick:a[1]||(a[1]=s=>n.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.canPlayVideos&&r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:r9t,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",I9t,[t.createElementVNode("div",B9t,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",n.minuteClasses])},[t.createElementVNode("div",M9t,[t.createElementVNode("div",O9t,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",P9t,[t.createElementVNode("div",F9t,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",R9t)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",V9t)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",z9t)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",D9t)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",L9t)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",$9t)):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",j9t)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",U9t)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",H9t)):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",G9t)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",W9t)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",q9t)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Y9t)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Z9t)):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",J9t)):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",X9t)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",K9t)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Q9t)):(t.openBlock(),t.createElementBlock("img",eCt))])])])],2)],6)}const aCt=$0(b9t,[["render",tCt],["__scopeId","data-v-9943063a"]]),rCt={"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"},nCt={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 Z_=null;const iCt={name:"TimeLine",components:{Tooltip:wkt,TimeLineEvent:aCt},mixins:[Ckt],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const 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":rCt[`${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 lz.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)Z_=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),Z_.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const r=this.$refs[`gameEventDiv${a}`][0],d=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,m=e+12;r&&(r.style.height=`${m}px`),d&&(d.style.height=`${m}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=nCt[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 Ekt(a)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){Z_&&Z_.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)}}},Az=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),oCt={ref:"timeLine",class:"time-line"},sCt={class:"time-line__header"},lCt={class:"time-line__header__dot"},cCt={class:"time-line__header__dot__home-team team-logo"},dCt=["src"],uCt={class:"time-line__header__dot__away-team team-logo"},pCt=["src"],hCt={key:1,class:"start-line"},fCt=Az(()=>t.createElementVNode("div",null,null,-1)),mCt=Az(()=>t.createElementVNode("div",null,null,-1)),gCt=[fCt,mCt],yCt={key:1,class:"noEventText"},_Ct={class:"tooltip-data"},vCt=["src"];function bCt(e,a,r,d,m,n){const s=t.resolveComponent("TimeLineEvent"),i=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",oCt,[t.createElementVNode("div",sCt,[t.createElementVNode("div",lCt,[t.createElementVNode("div",cCt,[t.createElementVNode("img",{src:n.getTeamLogoSrc("homeTeam"),alt:""},null,8,dCt)]),t.createElementVNode("div",uCt,[t.createElementVNode("img",{src:n.getTeamLogoSrc("awayTeam"),alt:""},null,8,pCt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${m.gameEvents.length}`},[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:m.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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(n.getGameEventClassAndSetIcon(_,f))},[t.createElementVNode("div",{class:t.normalizeClass(n.getEventContainerClass(_))},[t.createVNode(s,{"game-event":_,"is-mobile":n.isMobile,"time-line-width":m.timeLineWidth,width:n.gameEventWidth,"can-play-videos":r.canPlayVideos,onEventHeight:o=>n.updateContainerHeight(o,f),onPlayerChanged:a[0]||(a[0]=o=>e.$emit("player-changed",o)),onThumbnailClick:n.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","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===n.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",hCt,gCt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",yCt,"Aún no comienza el partido"))]))],512),t.createVNode(i,{data:m.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",_Ct,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:m.dataVideo.link,format:"video/mp4"},null,8,vCt)])])]),_:1},8,["data"])],64)}const xCt=$0(iCt,[["render",bCt],["__scopeId","data-v-2574e576"]]),wCt={class:"game-time-line__options"},kCt={class:"game-time-line__timeline"},CCt={__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:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){lz.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 d=null;const m=t.ref(["Todo","1er tiempo","2do tiempo"]),n=t.ref("Todo"),s=t.ref({}),i=t.ref(null),_=t.ref(0),f=t.computed(()=>{let l="all";return n.value==="1er tiempo"||n.value==="1er"?l="firstHalf":(n.value==="2do tiempo"||n.value==="2do")&&(l="secondHalf"),l}),o=t.computed(()=>_.value<500);function g(l){n.value=l}function x(l){s.value=l}function c(){if(window.ResizeObserver)d=new ResizeObserver(()=>{_.value=i.value.clientWidth}),d.observe(i.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{d&&d.unobserve(i.value)}),(l,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:i,class:"game-time-line"},[t.createElementVNode("div",wCt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"game-time-line__options__option"},[t.createVNode(a7t,t.mergeProps(_.value<390?r.value:a.value,{text:p=="Todo"?p:_.value<390?p.substring(0,3):p,"is-active":n.value===p,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",kCt,[t.createVNode(xCt,{"game-data":e.game,"time-line-period":f.value,"is-mobile":o.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:x},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},ECt=$0(CCt,[["__scopeId","data-v-f42d0c90"]]);function TCt(e){const a=t.ref({width:0,height:0});function r(){const d=e.value.getBoundingClientRect();a.value.width=d.width,a.value.height=d.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const SCt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},N8={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)}}},Nz=()=>{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}))},Iz=N8.setup;N8.setup=Iz?(e,a)=>(Nz(),Iz(e,a)):Nz;const ACt={ref:"gscScrollableContainer",class:"scrollable-container"},NCt={class:"scrollable-arrows"},ICt=["width","height","viewBox"],BCt=["stroke"],MCt={class:"scrollable-wrapper"},OCt={class:"scrollable-arrows"},PCt=["width","height","viewBox"],FCt=["stroke"];function RCt(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",ACt,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",n.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>n.scrollLeft&&n.scrollLeft(...s))},[t.createElementVNode("div",NCt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.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,BCt)],8,ICt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>n.getScroll&&n.getScroll(...s))},[t.createElementVNode("div",MCt,[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",n.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>n.scrollRight&&n.scrollRight(...s))},[t.createElementVNode("div",OCt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.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,FCt)],8,PCt))])],2)):t.createCommentVNode("",!0)],512)}const VCt=SCt(N8,[["render",RCt],["__scopeId","data-v-b548a08d"]]),zCt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},I8={components:{GSCSlider:VCt},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}=TCt(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}}},Bz=()=>{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}))},Mz=I8.setup;I8.setup=Mz?(e,a)=>(Bz(),Mz(e,a)):Bz;const DCt={ref:"myDivRef"},LCt={key:0,class:"gs-switch-container"},$Ct=["onClick"],jCt={key:1,class:"gs-switch-container-type"},UCt=["onClick"],HCt={key:2,class:"gs-switch-container-carousel"},GCt=["onClick"];function WCt(e,a,r,d,m,n){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",DCt,[r.type==0?(t.openBlock(),t.createElementBlock("div",LCt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([n.customGrid(d.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==i?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=i,n.clickEmitEvent(i))},t.toDisplayString(i),13,$Ct))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",jCt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([n.customGrid(d.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==i?{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=i,n.clickEmitEvent(i))},t.toDisplayString(i),13,UCt))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",HCt,[t.createVNode(s,{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,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==i?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=i,n.clickEmitEvent(i))},t.toDisplayString(i),13,GCt))),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 Oz=zCt(I8,[["render",WCt],["__scopeId","data-v-8a86dfaf"]]);function Pz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qCt(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var r=function d(){return this instanceof d?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(d){var m=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(r,d,m.get?m:{enumerable:!0,get:function(){return e[d]}})}),r}var B8={exports:{}};function M8(){}M8.prototype={on:function(e,a,r){var d=this.e||(this.e={});return(d[e]||(d[e]=[])).push({fn:a,ctx:r}),this},once:function(e,a,r){var d=this;function m(){d.off(e,m),a.apply(r,arguments)}return m._=a,this.on(e,m,r)},emit:function(e){var a=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),d=0,m=r.length;for(d;d<m;d++)r[d].fn.apply(r[d].ctx,a);return this},off:function(e,a){var r=this.e||(this.e={}),d=r[e],m=[];if(d&&a)for(var n=0,s=d.length;n<s;n++)d[n].fn!==a&&d[n].fn._!==a&&m.push(d[n]);return m.length?r[e]=m:delete r[e],this}},B8.exports=M8,B8.exports.TinyEmitter=M8;var YCt=B8.exports,ZCt=YCt,JCt=new ZCt;const J_=Pz(JCt),xBt="",XCt={class:"game-data__header"},KCt={class:"game-data__header__tournament-season-dropdown"},QCt={class:"game-data__header__teams-carousel"},eEt={class:"game-data__body"},tEt={class:"game-data__body__menu"},aEt={class:"game-data__body__menu__contmenuswitch"};cg.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const rEt=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:gee,GSCGameTimeLine:ECt,GscSwitchComponent:Oz,GSCLineupsMain:z0e,GSCDatosGSMain:Nxe,GSCVideoGame:tAe,GSCSummaryMain:znt,GSCTacticaFijaMain:e7t}}),nEt=Ti(Object.assign(rEt,{props:{tournamentsApiUrl:{type:String,default:""},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},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile"],setup(e,{emit:a}){const r=e,d=j1();J_.on("socket-connected",()=>{d.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const m=t.ref({season:[]}),n=t.ref({}),s=t.ref({}),i=t.ref(!0),_=t.ref(new Set([1,2])),f=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),o=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:"Táctica Fija",id:7}]);let g=null;const x=t.ref(null),c=t.ref(0),l=t.ref(o.value[0]),u=t.ref([]);let p=t.ref("");const h={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},y=t.computed(()=>{const z=[];return n.value&&n.value.id&&(z.push({id:n.value.id,name:n.value.name,type:n.value.type}),n.value.related_seasons&&n.value.related_seasons.forEach(L=>{z.push({id:L.id,type:L.type})})),z}),b=t.computed(()=>{if(r.clientPrivilegesBySeasons){const z=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(n.value.id);if(z)return z.teamId}return 0});function v(){g=new ResizeObserver(z=>{for(const L of z)c.value=L.contentRect.width}),g.observe(x.value)}const w=t.computed(()=>{let z={};return s.value&&s.value.game_id&&(z={gameId:s.value.game_id,id:s.value.game_id,seasonId:s.value.season_id,status:s.value.game_status,game_status:s.value.game_status==0?4:s.value.game_status,dateTimeUTC:s.value.date_time_utc,homeTeam:s.value.home_team,awayTeam:s.value.visiting_team,is_live:s.value.is_live}),z});t.watch(()=>d.state.nextGeneral.gameForAnalysis,()=>{d.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function C(z){i.value=z.is_captured!==0,m.value.id!==z.id&&(m.value=z,d.commit("gameGlobal/setTournamentType",z.tournament_type))}function k(z){B.value&&!B.value.canPrivilegesTeamPlayVideos||a("openmedia",z)}function N(z){a("onOpenProfile",z)}function E(z){R(z),z=="Estadísticas"&&(p.value="Comparativa")}function S(){p.value=""}function A(z){n.value.id!==z.id&&(n.value=z,a("change-season-id",z.id))}const I=t.computed(()=>o.value.reduce((z,L)=>(r.disabledSectionsIds.includes(L.id)||B.value&&!B.value.canPrivilegesTeamPlayVideos&&L.id===2||r.clientPrivilegesBySeasons&&L.id===7||(i.value||L.id!==5&&L.id!==6)&&z.push(L.name),z),[])),B=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(n.value&&s.value&&s.value.game_id){const z=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(n.value.id);if(z)if(T(z.playingAs),s.value.game_status===1){const L=z.playingAs.has(s.value.playingAs);return{seasonAndPrivileges:z,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&L,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:s.value.home_team.team_id===z.teamId,homeTeamDetails:{canPlayVideos:L,team:s.value.home_team},awayTeamDetails:{canPlayVideos:L,team:s.value.visiting_team}}}else{const L=s.value.home_team.team_id===z.teamId,D=O.value.filter(W=>z.playingAs.has(W.playingAs));return{seasonAndPrivileges:z,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&D.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:L,homeTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&L&&D.length>0,team:s.value.home_team},awayTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&!L&&D.length>0,team:s.value.visiting_team}}}T(new Set)}return h}return null}),O=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(n.value){const z=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(n.value.id);if(z)return u.value.filter(L=>L.game_status===1&&z.playingAs.has(L.playingAs))}return[]}return[]});t.watch(I,()=>{B.value&&!B.value.canPrivilegesTeamPlayVideos&&l.value.id===2&&R("Resumen")},{deep:!0,immediate:!0});function T(z){_.value=z}function R(z){l.value=o.value.find(L=>L.name===z)||o.value[0]}t.onMounted(()=>{v(),t.nextTick(()=>{r.isSynchronization&&R("Táctica Fija")})}),t.onBeforeUnmount(()=>{g&&g.disconnect()});function M(z){z.playingAs||(z.playingAs=b.value?z.home_team.team_id===b.value?1:2:0),s.value=z}function P(z){u.value=z.map(L=>{const D={...L};return b.value&&(D.playingAs=D.home_team.team_id===b.value?1:2),D})}return(z,L)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:x},[t.createElementVNode("div",XCt,[t.withDirectives(t.createElementVNode("div",KCt,[t.createVNode(t.unref($$),{"current-season-id":e.currentSeasonId,onInput:C,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(dj),{"current-season-id":e.currentSeasonId,seasons:m.value.seasons,onInput:A},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",QCt,[t.createVNode(t.unref(wW),{token:f.value,"await-for-seasons":"",seasons:y.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":b.value,"only-games-team-id":b.value,"tournament-type":t.unref(d).state.gameGlobal.tournamentType,onChangeGameCarousel:M,onChangeGamesByClientPrivileges:P},null,8,["token","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),t.createElementVNode("div",eEt,[t.createElementVNode("div",tEt,[t.createElementVNode("div",aEt,[t.createVNode(t.unref(Oz),{type:2,buttons:I.value,"font-family":"Poppins-Regular","font-size":"16px",width:c.value<400||c.value<700?"max-content":c.value<840||c.value<1050?"155px":"165px","selected-option":l.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:R},null,8,["buttons","width","selected-option"])])]),w.value&&w.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value.componentName),{key:0,game:w.value,subsection:t.unref(p),seasonSelected:n.value,showLineups:i.value,socket:e.socket,"is-tactic-visible":!!n.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":B.value?B.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":_.value,"client-privileges-team-id":b.value,"play-videos-privileges":B.value,onResetSubsection:S,onOpenmedia:k,onOnOpenProfile:N,onChangeToTab:E,onOpenMediaPlayer:k},null,40,["game","subsection","seasonSelected","showLineups","socket","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-75ea9f53"]]);async function Hs({url:e,options:a={},retries:r=3}){return await cg.get(e,a).then(d=>d).catch(d=>r>0?Hs({url:e,options:a,retries:r-1}):d)}async function Fz({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 Fz({seasonId:e},!1);throw new Error(r)}}async function iEt({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 oEt({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 sEt(e,a,r,d,m,n,s=!1){const i=r.map(_=>_===1?2:_===2?1:3);return e.filter(_=>{const f=n&&_[m.teamId]?_[m.teamId]!==n:!1,o=a===1?2:1;return(s||d.includes(_[m.gameId]))&&(!a||(f?o:a)===_[m.playingAs])&&(r.includes(_[m.matchResult])&&_[m.teamId]===n||i.includes(_[m.matchResult])&&_[m.teamId]!==n)})}function Rz(e,a,r,d,m){return a.length===2&&r.length===3&&d.length===6?e:e.filter(n=>a.includes(n[m.playingAs])&&r.includes(n[m.matchResult])&&d.includes(n[m.section]))}async function Vz({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 lEt({seasonId:e,gameId:a}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:d}=await Hs({url:r});return d}catch(r){return Promise.reject(r)}}async function cEt({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 dEt({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 uEt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let O8=null;function zz(){return O8||(O8=J1(uEt)),O8}async function pEt(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 Dz({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 hEt(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 fEt(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 mEt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,r,d){return sEt(e.seasonPlays,d["filterGeneral/getPlayingAs"],d["filterGeneral/getResults"],d["filterGeneral/getSelectedGamesIds"],zz(),d["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((r,d)=>{const m={...d};return m.home_team=e.currentSeasonTeams.find(n=>n.team_id===d.home_team),m.visiting_team=e.currentSeasonTeams.find(n=>n.team_id===d.visiting_team),r[d.matchday_abbreviation]?r[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?r[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(m):r[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[m]:r[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[m]},r},{});for(let[r,d]of Object.entries(a))a[r]=Object.entries(d).map(([m,n])=>({date:m,games:n})),a[r].sort((m,n)=>m.date<n.date?-1:m.date>n.date?1:0);return a},matchdaysDates(e,a){let r=[];if(a.nextGamesSchedule){let d=Object.keys(a.nextGamesSchedule);for(let m of d){let n=Number(m.replace("M","")),s=a.nextGamesSchedule[m].map(i=>({matchday:n,date:new Date(i.date)}));r=r.concat(s)}}return r},closestMatchDay(e,a){let r=new Date,d=0,m=-new Date(0,0,0).valueOf(),n=a.matchdaysDates,s=n.length;for(let i=0;i<n.length;i++)d=Math.abs(n[i].date-r),d<m&&(s=i,m=d);return n[s]?n[s].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 d=await Fz({seasonId:a["filterGeneral/getSeasonId"]});if(r)return d;e("updateSeasonPlays",d)}catch(d){return Promise.reject(d)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const r=await Vz({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const r=await pEt({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 d=[void 0,void 0];return e.currentSeasonGames.length===0&&(d[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(d[1]=a("getCurrentSeasonTeams")),await Promise.all(d),!1}catch(d){throw new Error(d)}}}}};async function gEt({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 yEt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let P8=null;function _Et(){return P8||(P8=J1(yEt)),P8}class X_{constructor(){zi(this,"maximumLiveSection",1);zi(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:[]});zi(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,d){d&&(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,d){d&&(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,d){for(let m=r-1;m<a.accumulated.length;m++)a.accumulated[m]+=d}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,d){for(let m=a.accumulated.length-1;m>=r-1;m--)a.accumulated[m]-=d}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(d=>d/r)}calculateRanking(a,r,d,m,n,s,i,_){let f=[];m===3&&a&&a.length&&(d.playingAs.length!==2||d.matchResult.length!==3)?f=Array.from(a.reduce((g,x)=>{const c=x[r.playingAs]===1,l=c?"1":"2",u=g.get(x[r.gameId]);if(u)u[l]?u[l].arrayPlays.push(x):u[l]={numberTeamId:x[r.teamId],arrayPlays:[x]};else{const p={numberMatchResult:x[r.matchResult]};c&&(p[1]={numberTeamId:x[r.teamId],arrayPlays:[x]}),g.set(x[r.gameId],p)}return g},new Map).values()).reduce((g,x)=>{const c=d.playingAs.length===2?"both":d.playingAs[0].toString();return(c==="both"&&(x[1].numberTeamId===d.teamId||x[2].numberTeamId===d.teamId)||c!=="both"&&x[c].numberTeamId===d.teamId)&&d.matchResult.includes(x.numberMatchResult)&&g.push(...x[1].arrayPlays,...x[2].arrayPlays),g},[]).filter(g=>d.sections.includes(g[r.section])):(f=a?[...a]:[],i&&a&&(f=a.filter(o=>d.playingAs.includes(o[r.playingAs])&&d.matchResult.includes(o[r.matchResult])&&d.sections.includes(o[r.section])))),this.setTeamRanking(f,m,r,d.teamId,s,"accomplished",_)}setTeamRanking(a,r,d,m,n,s,i){let _=null,f=null;r===3&&(_=new Map,f={},a.forEach(x=>{const c=_.get(x[d.gameId]);c?c[x[d.teamId.toString()]]?c[x[d.teamId.toString()]]+=x[d.total]:c[x[d.teamId.toString()]]=x[d.total]:_.set(x[d.gameId],{[x[d.teamId.toString()]]:x[d.total]})}),Array.from(_.values()).forEach(x=>{const[c,l]=Object.keys(x).map(p=>p),u=x[c]+x[l];this.addPassesAvgByTeam(f,c,u?x[c]/u:0),this.addPassesAvgByTeam(f,l,u?x[l]/u:0)}));const o=n.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((l,u)=>u[d.teamId]===x.team_id&&r===u[d.categoryId]?l+u[d.total]:l,0);return{teamId:x.team_id,points:x[`${i}FilterGames`]?c/x[`${i}FilterGames`]:0,total:c}}}).sort((x,c)=>c.points-x.points);this.accomplished.arrayRankings=o;const g=o.findIndex(x=>x.teamId===m);r===3&&(this.accomplished.avgPreGame=o[g].points),this[s].ranking=g+1,this[s].leader=o[0]}addPassesAvgByTeam(a,r,d){a[r]?(a[r].numberGamesCount+=1,a[r].numberTotalPassesAvg+=d):a[r]={numberGamesCount:1,numberTotalPassesAvg:d}}}class kn{constructor(a,r,d,m,n,s,i,_,f,o){zi(this,"id","");zi(this,"generalId",0);zi(this,"name","");zi(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});zi(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});zi(this,"accomplishedCategoryIds",[]);zi(this,"receivedCategoryIds",[]);zi(this,"generalCategoriesIds",{accomplished:0,received:0});zi(this,"specialMention","");zi(this,"homeTeam",new X_);zi(this,"visitingTeam",new X_);zi(this,"isLeagueDataCalculated",!1);zi(this,"leagueAccomplishedMax",0);zi(this,"leagueReceivedMax",0);zi(this,"leagueAccomplishedAvg",0);zi(this,"leagueReceivedAvg",0);zi(this,"leagueAccomplishedAccumulator",0);zi(this,"leagueReceivedAccumulator",0);zi(this,"homeTeamType","homeTeam");zi(this,"visitingTeamType","visitingTeam");zi(this,"betOnly",!1);zi(this,"isPercent",!1);this.id=`${d.accomplished}-${d.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=d||{accomplished:0,received:0},this.name=m,this.names["0-0"]=m||"",this.names["1-1"]=n||"",this.names["0-1"]=s||"",this.names["1-0"]=i||"",this.generalId=_||0,this.betOnly=f||!1,this.isPercent=o||!1}addLeaguePlays(a,r,d){a.length===0||!d||this.isLeagueDataCalculated||(a.forEach(m=>{this.isAccomplishedLeaguePlay(m[r.categoryId])&&(this.leagueAccomplishedAccumulator+=m[r.total]),this.isReceivedLeaguePlay(m[r.categoryId])&&(this.leagueReceivedAccumulator+=m[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*d)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*d)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,r,d){let m="-";for(const[n,s]of Object.entries(this.generalCategoriesIds))a===s&&(m=`${n==="accomplished"?"0":"1"}${m}`),r===s&&(m=`${m}${n==="accomplished"?"0":"1"}`);m.length===3&&(this.mentions[m]=d)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,r,d,m,n){!d||!n||a!==this.homeTeamType&&a!==this.visitingTeamType||(d.forEach(s=>{this.isAccomplishedPlay(s[m.categoryId])?this[a].increaseAccomplishedByOne(s[m.section],s[m.total]):this.isReceivedPlay(s[m.categoryId])&&this[a].increaseReceivedByOne(s[m.section],s[m.total])}),this[a].calculateAvg(n))}addLivePlay(a,r,d,m,n=!1,s=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&d[m.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(d[m.section],d[m.total],!0)}subtractLivePlay(a,r,d,m,n){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(d[m.categoryId])&&!n?this[a].decreaseAccomplishedLiveByOne(d[m.section],d[m.total]):this.isReceivedPlay(d[m.categoryId])&&n&&this[a].decreaseReceivedLiveByOne(d[m.section],d[m.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(d=>a===d||`${a}_r`===d)}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,d,m,n,s=!1){this[this.homeTeamType].calculateRanking(a,r,d,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,n,s,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,r,m,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,n,s,this.visitingTeamType)}resetData(){this.homeTeam=new X_,this.visitingTeam=new X_,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 vEt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new kn([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new kn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new kn([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new kn([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new kn([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new kn([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new kn([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new kn([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new kn([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new kn([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new kn([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new kn([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new kn([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new kn([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new kn([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new kn([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new kn([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new kn([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new kn([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new kn([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new kn([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new kn([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new kn([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new kn([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new kn([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new kn([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new kn([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 kn([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new kn([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new kn([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new kn([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new kn([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new kn([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new kn([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new kn([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new kn([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new kn([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new kn([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},bEt=[{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}],xEt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let F8=null;function wEt(){return F8||(F8=J1(xEt)),F8}const kEt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let R8=null;function CEt(){return R8||(R8=J1(kEt)),R8}function K_(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 Lz(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 V8(e,a,r){let d=[...a];return e[r.categoryId]===2&&(d[0]=14),e[r.categoryId]===20&&(d[0]=15),[14,15].includes(d[0])?d:null}var z8={exports:{}},EEt=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,TEt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],$z=function(a){var r=a,d=a.indexOf("["),m=a.indexOf("]");d!=-1&&m!=-1&&(a=a.substring(0,d)+a.substring(d,m).replace(/:/g,";")+a.substring(m,a.length));for(var n=EEt.exec(a||""),s={},i=14;i--;)s[TEt[i]]=n[i]||"";return d!=-1&&m!=-1&&(s.source=r,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=SEt(s,s.path),s.queryKey=AEt(s,s.query),s};function SEt(e,a){var r=/\/{2,9}/g,d=a.replace(r,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&d.splice(0,1),a.substr(a.length-1,1)=="/"&&d.splice(d.length-1,1),d}function AEt(e,a){var r={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,m,n){m&&(r[m]=n)}),r}var D8={exports:{}},L8={exports:{}},q0=1e3,Y0=q0*60,Z0=Y0*60,J0=Z0*24,NEt=J0*365.25,IEt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return BEt(e);if(r==="number"&&isNaN(e)===!1)return a.long?OEt(e):MEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function BEt(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]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return r*NEt;case"days":case"day":case"d":return r*J0;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 MEt(e){return e>=J0?Math.round(e/J0)+"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 OEt(e){return Q_(e,J0,"day")||Q_(e,Z0,"hour")||Q_(e,Y0,"minute")||Q_(e,q0,"second")||e+" ms"}function Q_(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=d.debug=d.default=d,a.coerce=_,a.disable=s,a.enable=n,a.enabled=i,a.humanize=IEt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,g;for(g in f)o=(o<<5)-o+f.charCodeAt(g),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function d(f){var o;function g(){if(g.enabled){var x=g,c=+new Date,l=c-(o||c);x.diff=l,x.prev=o,x.curr=c,o=c;for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];u[0]=a.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var h=0;u[0]=u[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=u[h];b=w.call(x,C),u.splice(h,1),h--}return b}),a.formatArgs.call(x,u);var y=g.log||a.log||console.log.bind(console);y.apply(x,u)}}return g.namespace=f,g.enabled=a.enabled(f),g.useColors=a.useColors(),g.color=r(f),g.destroy=m,typeof a.init=="function"&&a.init(g),a.instances.push(g),g}function m(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function n(f){a.save(f),a.names=[],a.skips=[];var o,g=(typeof f=="string"?f:"").split(/[\s,]+/),x=g.length;for(o=0;o<x;o++)g[o]&&(f=g[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 s(){a.enable("")}function i(f){if(f[f.length-1]==="*")return!0;var o,g;for(o=0,g=a.skips.length;o<g;o++)if(a.skips[o].test(f))return!1;for(o=0,g=a.names.length;o<g;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(L8,L8.exports);var PEt=L8.exports;(function(e,a){a=e.exports=PEt,a.log=m,a.formatArgs=d,a.save=n,a.load=s,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:i(),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 d(_){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 g=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(g++,c==="%c"&&(x=g))}),_.splice(x,0,o)}}function m(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function s(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(s());function i(){try{return window.localStorage}catch{}}})(D8,D8.exports);var ev=D8.exports,FEt=$z,jz=ev("socket.io-client:url"),REt=VEt;function VEt(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)||(jz("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),jz("parse %s",e),r=FEt(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 d=r.host.indexOf(":")!==-1,m=d?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+m+":"+r.port,r.href=r.protocol+"://"+m+(a&&a.port===r.port?"":":"+r.port),r}var tv={},$8={exports:{}},j8={exports:{}},X0=1e3,K0=X0*60,Q0=K0*60,e1=Q0*24,zEt=e1*365.25,DEt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return LEt(e);if(r==="number"&&isNaN(e)===!1)return a.long?jEt(e):$Et(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function LEt(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]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return r*zEt;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*K0;case"seconds":case"second":case"secs":case"sec":case"s":return r*X0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $Et(e){return e>=e1?Math.round(e/e1)+"d":e>=Q0?Math.round(e/Q0)+"h":e>=K0?Math.round(e/K0)+"m":e>=X0?Math.round(e/X0)+"s":e+"ms"}function jEt(e){return av(e,e1,"day")||av(e,Q0,"hour")||av(e,K0,"minute")||av(e,X0,"second")||e+" ms"}function av(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=d.debug=d.default=d,a.coerce=_,a.disable=s,a.enable=n,a.enabled=i,a.humanize=DEt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,g;for(g in f)o=(o<<5)-o+f.charCodeAt(g),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function d(f){var o;function g(){if(g.enabled){var x=g,c=+new Date,l=c-(o||c);x.diff=l,x.prev=o,x.curr=c,o=c;for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];u[0]=a.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var h=0;u[0]=u[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=u[h];b=w.call(x,C),u.splice(h,1),h--}return b}),a.formatArgs.call(x,u);var y=g.log||a.log||console.log.bind(console);y.apply(x,u)}}return g.namespace=f,g.enabled=a.enabled(f),g.useColors=a.useColors(),g.color=r(f),g.destroy=m,typeof a.init=="function"&&a.init(g),a.instances.push(g),g}function m(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function n(f){a.save(f),a.names=[],a.skips=[];var o,g=(typeof f=="string"?f:"").split(/[\s,]+/),x=g.length;for(o=0;o<x;o++)g[o]&&(f=g[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 s(){a.enable("")}function i(f){if(f[f.length-1]==="*")return!0;var o,g;for(o=0,g=a.skips.length;o<g;o++)if(a.skips[o].test(f))return!1;for(o=0,g=a.names.length;o<g;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(j8,j8.exports);var UEt=j8.exports;(function(e,a){a=e.exports=UEt,a.log=m,a.formatArgs=d,a.save=n,a.load=s,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:i(),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 d(_){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 g=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(g++,c==="%c"&&(x=g))}),_.splice(x,0,o)}}function m(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function s(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(s());function i(){try{return window.localStorage}catch{}}})($8,$8.exports);var HEt=$8.exports,Uz={exports:{}};(function(e){e.exports=a;function a(d){if(d)return r(d)}function r(d){for(var m in a.prototype)d[m]=a.prototype[m];return d}a.prototype.on=a.prototype.addEventListener=function(d,m){return this._callbacks=this._callbacks||{},(this._callbacks["$"+d]=this._callbacks["$"+d]||[]).push(m),this},a.prototype.once=function(d,m){function n(){this.off(d,n),m.apply(this,arguments)}return n.fn=m,this.on(d,n),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(d,m){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+d];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+d],this;for(var s,i=0;i<n.length;i++)if(s=n[i],s===m||s.fn===m){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+d],this},a.prototype.emit=function(d){this._callbacks=this._callbacks||{};for(var m=new Array(arguments.length-1),n=this._callbacks["$"+d],s=1;s<arguments.length;s++)m[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,i=n.length;s<i;++s)n[s].apply(this,m)}return this},a.prototype.listeners=function(d){return this._callbacks=this._callbacks||{},this._callbacks["$"+d]||[]},a.prototype.hasListeners=function(d){return!!this.listeners(d).length}})(Uz);var ff=Uz.exports,rv={},GEt={}.toString,U8=Array.isArray||function(e){return GEt.call(e)=="[object Array]"},Hz=ZEt,WEt=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",qEt=typeof ArrayBuffer=="function",YEt=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function ZEt(e){return WEt&&Buffer.isBuffer(e)||qEt&&(e instanceof ArrayBuffer||YEt(e))}var H8=U8,Gz=Hz,Wz=Object.prototype.toString,JEt=typeof Blob=="function"||typeof Blob<"u"&&Wz.call(Blob)==="[object BlobConstructor]",XEt=typeof File=="function"||typeof File<"u"&&Wz.call(File)==="[object FileConstructor]";rv.deconstructPacket=function(e){var a=[],r=e.data,d=e;return d.data=G8(r,a),d.attachments=a.length,{packet:d,buffers:a}};function G8(e,a){if(!e)return e;if(Gz(e)){var r={_placeholder:!0,num:a.length};return a.push(e),r}else if(H8(e)){for(var d=new Array(e.length),m=0;m<e.length;m++)d[m]=G8(e[m],a);return d}else if(typeof e=="object"&&!(e instanceof Date)){var d={};for(var n in e)d[n]=G8(e[n],a);return d}return e}rv.reconstructPacket=function(e,a){return e.data=W8(e.data,a),e.attachments=void 0,e};function W8(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(H8(e))for(var d=0;d<e.length;d++)e[d]=W8(e[d],a);else if(typeof e=="object")for(var m in e)e[m]=W8(e[m],a);return e}rv.removeBlobs=function(e,a){function r(n,s,i){if(!n)return n;if(JEt&&n instanceof Blob||XEt&&n instanceof File){d++;var _=new FileReader;_.onload=function(){i?i[s]=this.result:m=this.result,--d||a(m)},_.readAsArrayBuffer(n)}else if(H8(n))for(var f=0;f<n.length;f++)r(n[f],f,n);else if(typeof n=="object"&&!Gz(n))for(var o in n)r(n[o],o,n)}var d=0,m=e;r(m),d||a(m)},function(e){var a=HEt("socket.io-parser"),r=ff,d=rv,m=U8,n=Hz;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=s,e.Decoder=g;function s(){}var i=e.ERROR+'"encode error"';s.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 y=_(p);h([y])}};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 y=f(p.data);if(y!==!1)h+=y;else return i}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 y(b){var v=d.deconstructPacket(b),w=_(v.packet),C=v.buffers;C.unshift(w),h(C)}d.removeBlobs(p,y)}function g(){this.reconstructor=null}r(g.prototype),g.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 l(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(n(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,y={type:Number(p.charAt(0))};if(e.types[y.type]==null)return u("unknown packet type "+y.type);if(e.BINARY_EVENT===y.type||e.BINARY_ACK===y.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");y.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}y.nsp=p.substring(b,h)}else y.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}y.id=Number(p.substring(b,h+1))}if(p.charAt(++h)){var k=c(p.substr(h)),N=k!==!1&&(y.type===e.ERROR||m(k));if(N)y.data=k;else return u("invalid payload")}return a("decoded %s as %j",p,y),y}function c(p){try{return JSON.parse(p)}catch{return!1}}g.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function l(p){this.reconPack=p,this.buffers=[]}l.prototype.takeBinaryData=function(p){if(this.buffers.push(p),this.buffers.length===this.reconPack.attachments){var h=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function u(p){return{type:e.ERROR,data:"parser error: "+p}}}(tv);var q8={exports:{}},nv={},Y8={exports:{}};try{Y8.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{Y8.exports=!1}var KEt=Y8.exports,Z8=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),QEt=KEt,eTt=Z8,J8=function(e){var a=e.xdomain,r=e.xscheme,d=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||QEt))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!r&&d)return new XDomainRequest}catch{}if(!a)try{return new eTt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},X8={exports:{}},Dp={},tTt=Object.keys||function(a){var r=[],d=Object.prototype.hasOwnProperty;for(var m in a)d.call(a,m)&&r.push(m);return r},aTt=U8,qz=Object.prototype.toString,rTt=typeof Blob=="function"||typeof Blob<"u"&&qz.call(Blob)==="[object BlobConstructor]",nTt=typeof File=="function"||typeof File<"u"&&qz.call(File)==="[object FileConstructor]",Yz=iv;function iv(e){if(!e||typeof e!="object")return!1;if(aTt(e)){for(var a=0,r=e.length;a<r;a++)if(iv(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||rTt&&e instanceof Blob||nTt&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return iv(e.toJSON(),!0);for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d)&&iv(e[d]))return!0;return!1}var iTt=function(e,a,r){var d=e.byteLength;if(a=a||0,r=r||d,e.slice)return e.slice(a,r);if(a<0&&(a+=d),r<0&&(r+=d),r>d&&(r=d),a>=d||a>=r||d===0)return new ArrayBuffer(0);for(var m=new Uint8Array(e),n=new Uint8Array(r-a),s=a,i=0;s<r;s++,i++)n[i]=m[s];return n.buffer},oTt=sTt;function sTt(e,a,r){var d=!1;return r=r||lTt,m.count=e,e===0?a():m;function m(n,s){if(m.count<=0)throw new Error("after called too many times");--m.count,n?(d=!0,a(n),a=r):m.count===0&&!d&&a(null,s)}}function lTt(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var rp=String.fromCharCode;function Zz(e){for(var a=[],r=0,d=e.length,m,n;r<d;)m=e.charCodeAt(r++),m>=55296&&m<=56319&&r<d?(n=e.charCodeAt(r++),(n&64512)==56320?a.push(((m&1023)<<10)+(n&1023)+65536):(a.push(m),r--)):a.push(m);return a}function cTt(e){for(var a=e.length,r=-1,d,m="";++r<a;)d=e[r],d>65535&&(d-=65536,m+=rp(d>>>10&1023|55296),d=56320|d&1023),m+=rp(d);return m}function Jz(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 K8(e,a){return rp(e>>a&63|128)}function dTt(e,a){if(!(e&4294967168))return rp(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=rp(e>>18&7|240),r+=K8(e,12),r+=K8(e,6)):(Jz(e,a)||(e=65533),r=rp(e>>12&15|224),r+=K8(e,6)):r=rp(e>>6&31|192),r+=rp(e&63|128),r}function uTt(e,a){a=a||{};for(var r=a.strict!==!1,d=Zz(e),m=d.length,n=-1,s,i="";++n<m;)s=d[n],i+=dTt(s,r);return i}function mf(){if(np>=sv)throw Error("Invalid byte index");var e=ov[np]&255;if(np++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function pTt(e){var a,r,d,m,n;if(np>sv)throw Error("Invalid byte index");if(np==sv)return!1;if(a=ov[np]&255,np++,!(a&128))return a;if((a&224)==192){if(r=mf(),n=(a&31)<<6|r,n>=128)return n;throw Error("Invalid continuation byte")}if((a&240)==224){if(r=mf(),d=mf(),n=(a&15)<<12|r<<6|d,n>=2048)return Jz(n,e)?n:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(r=mf(),d=mf(),m=mf(),n=(a&7)<<18|r<<12|d<<6|m,n>=65536&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}var ov,sv,np;function hTt(e,a){a=a||{};var r=a.strict!==!1;ov=Zz(e),sv=ov.length,np=0;for(var d=[],m;(m=pTt(r))!==!1;)d.push(m);return cTt(d)}var fTt={version:"2.1.2",encode:uTt,decode:hTt},lv={},Xz;function mTt(){return Xz||(Xz=1,function(e){lv.encode=function(a){var r=new Uint8Array(a),d,m=r.length,n="";for(d=0;d<m;d+=3)n+=e[r[d]>>2],n+=e[(r[d]&3)<<4|r[d+1]>>4],n+=e[(r[d+1]&15)<<2|r[d+2]>>6],n+=e[r[d+2]&63];return m%3===2?n=n.substring(0,n.length-1)+"=":m%3===1&&(n=n.substring(0,n.length-2)+"=="),n},lv.decode=function(a){var r=a.length*.75,d=a.length,m,n=0,s,i,_,f;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);var o=new ArrayBuffer(r),g=new Uint8Array(o);for(m=0;m<d;m+=4)s=e.indexOf(a[m]),i=e.indexOf(a[m+1]),_=e.indexOf(a[m+2]),f=e.indexOf(a[m+3]),g[n++]=s<<2|i>>4,g[n++]=(i&15)<<4|_>>2,g[n++]=(_&3)<<6|f&63;return o}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),lv}var Q8,Kz;function gTt(){if(Kz)return Q8;Kz=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var i=new Blob(["hi"]);return i.size===2}catch{return!1}}(),r=a&&function(){try{var i=new Blob([new Uint8Array([1,2])]);return i.size===2}catch{return!1}}(),d=e&&e.prototype.append&&e.prototype.getBlob;function m(i){return i.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 n(i,_){_=_||{};var f=new e;return m(i).forEach(function(o){f.append(o)}),_.type?f.getBlob(_.type):f.getBlob()}function s(i,_){return new Blob(m(i),_||{})}return typeof Blob<"u"&&(n.prototype=Blob.prototype,s.prototype=Blob.prototype),Q8=function(){return a?r?Blob:s:d?n:void 0}(),Q8}(function(e){var a=tTt,r=Yz,d=iTt,m=oTt,n=fTt,s;typeof ArrayBuffer<"u"&&(s=mTt());var i=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),_=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),f=i||_;e.protocol=3;var o=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},g=a(o),x={type:"error",data:"parser error"},c=gTt();e.encodePacket=function(v,w,C,k){typeof w=="function"&&(k=w,w=!1),typeof C=="function"&&(k=C,C=null);var N=v.data===void 0?void 0:v.data.buffer||v.data;if(typeof ArrayBuffer<"u"&&N instanceof ArrayBuffer)return u(v,w,k);if(typeof c<"u"&&N instanceof c)return h(v,w,k);if(N&&N.base64)return l(v,k);var E=o[v.type];return v.data!==void 0&&(E+=C?n.encode(String(v.data),{strict:!1}):String(v.data)),k(""+E)};function l(v,w){var C="b"+e.packets[v.type]+v.data.data;return w(C)}function u(v,w,C){if(!w)return e.encodeBase64Packet(v,C);var k=v.data,N=new Uint8Array(k),E=new Uint8Array(1+k.byteLength);E[0]=o[v.type];for(var S=0;S<N.length;S++)E[S+1]=N[S];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 N=new c([k.buffer,v.data]);return C(N)}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 I=k.result.split(",")[1];w(C+I)},k.readAsDataURL(v.data)}var N;try{N=String.fromCharCode.apply(null,new Uint8Array(v.data))}catch{for(var E=new Uint8Array(v.data),S=new Array(E.length),A=0;A<E.length;A++)S[A]=E[A];N=String.fromCharCode.apply(null,S)}return C+=btoa(N),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=y(v),v===!1))return x;var N=v.charAt(0);return Number(N)!=N||!g[N]?x:v.length>1?{type:g[N],data:v.substring(1)}:{type:g[N]}}var k=new Uint8Array(v),N=k[0],E=d(v,1);return c&&w==="blob"&&(E=new c([E])),{type:g[N],data:E}};function y(v){try{v=n.decode(v,{strict:!1})}catch{return!1}return v}e.decodeBase64Packet=function(v,w){var C=g[v.charAt(0)];if(!s)return{type:C,data:{base64:!0,data:v.substr(1)}};var k=s.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 N(S){return S.length+":"+S}function E(S,A){e.encodePacket(S,k?w:!1,!1,function(I){A(null,N(I))})}b(v,E,function(S,A){return C(A.join(""))})};function b(v,w,C){for(var k=new Array(v.length),N=m(v.length,C),E=function(A,I,B){w(I,function(O,T){k[A]=T,B(O,k)})},S=0;S<v.length;S++)E(S,v[S],N)}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 N="",E,S,A=0,I=v.length;A<I;A++){var B=v.charAt(A);if(B!==":"){N+=B;continue}if(N===""||N!=(E=Number(N))||(S=v.substr(A+1,E),N!=S.length))return C(x,0,1);if(S.length){if(k=e.decodePacket(S,w,!1),x.type===k.type&&x.data===k.data)return C(x,0,1);var O=C(k,A+E,I);if(O===!1)return}A+=E,N=""}if(N!=="")return C(x,0,1)},e.encodePayloadAsArrayBuffer=function(v,w){if(!v.length)return w(new ArrayBuffer(0));function C(k,N){e.encodePacket(k,!0,!0,function(E){return N(null,E)})}b(v,C,function(k,N){var E=N.reduce(function(I,B){var O;return typeof B=="string"?O=B.length:O=B.byteLength,I+O.toString().length+O+2},0),S=new Uint8Array(E),A=0;return N.forEach(function(I){var B=typeof I=="string",O=I;if(B){for(var M=new Uint8Array(I.length),T=0;T<I.length;T++)M[T]=I.charCodeAt(T);O=M.buffer}B?S[A++]=0:S[A++]=1;for(var R=O.byteLength.toString(),T=0;T<R.length;T++)S[A++]=parseInt(R[T]);S[A++]=255;for(var M=new Uint8Array(O),T=0;T<M.length;T++)S[A++]=M[T]}),w(S.buffer)})},e.encodePayloadAsBlob=function(v,w){function C(k,N){e.encodePacket(k,!0,!0,function(E){var S=new Uint8Array(1);if(S[0]=1,typeof E=="string"){for(var A=new Uint8Array(E.length),I=0;I<E.length;I++)A[I]=E.charCodeAt(I);E=A.buffer,S[0]=0}for(var B=E instanceof ArrayBuffer?E.byteLength:E.size,O=B.toString(),T=new Uint8Array(O.length+1),I=0;I<O.length;I++)T[I]=parseInt(O[I]);if(T[O.length]=255,c){var R=new c([S.buffer,T.buffer,E]);N(null,R)}})}b(v,C,function(k,N){return w(new c(N))})},e.decodePayloadAsBinary=function(v,w,C){typeof w=="function"&&(C=w,w=null);for(var k=v,N=[];k.byteLength>0;){for(var E=new Uint8Array(k),S=E[0]===0,A="",I=1;E[I]!==255;I++){if(A.length>310)return C(x,0,1);A+=E[I]}k=d(k,2+A.length),A=parseInt(A);var B=d(k,0,A);if(S)try{B=String.fromCharCode.apply(null,new Uint8Array(B))}catch{var O=new Uint8Array(B);B="";for(var I=0;I<O.length;I++)B+=String.fromCharCode(O[I])}N.push(B),k=d(k,A)}var T=N.length;N.forEach(function(R,M){C(e.decodePacket(R,w,!0),M,T)})}})(Dp);var e7,Qz;function t7(){if(Qz)return e7;Qz=1;var e=Dp,a=ff;e7=r;function r(d){this.path=d.path,this.hostname=d.hostname,this.port=d.port,this.secure=d.secure,this.query=d.query,this.timestampParam=d.timestampParam,this.timestampRequests=d.timestampRequests,this.readyState="",this.agent=d.agent||!1,this.socket=d.socket,this.enablesXDR=d.enablesXDR,this.withCredentials=d.withCredentials,this.pfx=d.pfx,this.key=d.key,this.passphrase=d.passphrase,this.cert=d.cert,this.ca=d.ca,this.ciphers=d.ciphers,this.rejectUnauthorized=d.rejectUnauthorized,this.forceNode=d.forceNode,this.isReactNative=d.isReactNative,this.extraHeaders=d.extraHeaders,this.localAddress=d.localAddress}return a(r.prototype),r.prototype.onError=function(d,m){var n=new Error(d);return n.type="TransportError",n.description=m,this.emit("error",n),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(d){if(this.readyState==="open")this.write(d);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(d){var m=e.decodePacket(d,this.socket.binaryType);this.onPacket(m)},r.prototype.onPacket=function(d){this.emit("packet",d)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},e7}var gf={};gf.encode=function(e){var a="";for(var r in e)e.hasOwnProperty(r)&&(a.length&&(a+="&"),a+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return a},gf.decode=function(e){for(var a={},r=e.split("&"),d=0,m=r.length;d<m;d++){var n=r[d].split("=");a[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return a};var cv=function(e,a){var r=function(){};r.prototype=a.prototype,e.prototype=new r,e.prototype.constructor=e},eD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),dv=64,tD={},aD=0,ip=0,rD;function a7(e){var a="";do a=eD[e%dv]+a,e=Math.floor(e/dv);while(e>0);return a}function yTt(e){var a=0;for(ip=0;ip<e.length;ip++)a=a*dv+tD[e.charAt(ip)];return a}function r7(){var e=a7(+new Date);return e!==rD?(aD=0,rD=e):e+"."+a7(aD++)}for(;ip<dv;ip++)tD[eD[ip]]=ip;r7.encode=a7,r7.decode=yTt;var nD=r7,n7={exports:{}},i7={exports:{}},t1=1e3,a1=t1*60,r1=a1*60,n1=r1*24,_Tt=n1*365.25,vTt=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return bTt(e);if(r==="number"&&isNaN(e)===!1)return a.long?wTt(e):xTt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function bTt(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]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return r*_Tt;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 xTt(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 wTt(e){return uv(e,n1,"day")||uv(e,r1,"hour")||uv(e,a1,"minute")||uv(e,t1,"second")||e+" ms"}function uv(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=d.debug=d.default=d,a.coerce=_,a.disable=s,a.enable=n,a.enabled=i,a.humanize=vTt,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(f){var o=0,g;for(g in f)o=(o<<5)-o+f.charCodeAt(g),o|=0;return a.colors[Math.abs(o)%a.colors.length]}function d(f){var o;function g(){if(g.enabled){var x=g,c=+new Date,l=c-(o||c);x.diff=l,x.prev=o,x.curr=c,o=c;for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];u[0]=a.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var h=0;u[0]=u[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=u[h];b=w.call(x,C),u.splice(h,1),h--}return b}),a.formatArgs.call(x,u);var y=g.log||a.log||console.log.bind(console);y.apply(x,u)}}return g.namespace=f,g.enabled=a.enabled(f),g.useColors=a.useColors(),g.color=r(f),g.destroy=m,typeof a.init=="function"&&a.init(g),a.instances.push(g),g}function m(){var f=a.instances.indexOf(this);return f!==-1?(a.instances.splice(f,1),!0):!1}function n(f){a.save(f),a.names=[],a.skips=[];var o,g=(typeof f=="string"?f:"").split(/[\s,]+/),x=g.length;for(o=0;o<x;o++)g[o]&&(f=g[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 s(){a.enable("")}function i(f){if(f[f.length-1]==="*")return!0;var o,g;for(o=0,g=a.skips.length;o<g;o++)if(a.skips[o].test(f))return!1;for(o=0,g=a.names.length;o<g;o++)if(a.names[o].test(f))return!0;return!1}function _(f){return f instanceof Error?f.stack||f.message:f}})(i7,i7.exports);var kTt=i7.exports;(function(e,a){a=e.exports=kTt,a.log=m,a.formatArgs=d,a.save=n,a.load=s,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:i(),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 d(_){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 g=0,x=0;_[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(g++,c==="%c"&&(x=g))}),_.splice(x,0,o)}}function m(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function s(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(s());function i(){try{return window.localStorage}catch{}}})(n7,n7.exports);var pv=n7.exports,iD=t7(),CTt=gf,oD=Dp,ETt=cv,TTt=nD,Zc=pv("engine.io-client:polling"),sD=Hd,STt=function(){var e=J8,a=new e({xdomain:!1});return a.responseType!=null}();function Hd(e){var a=e&&e.forceBase64;(!STt||a)&&(this.supportsBinary=!1),iD.call(this,e)}ETt(Hd,iD),Hd.prototype.name="polling",Hd.prototype.doOpen=function(){this.poll()},Hd.prototype.pause=function(e){var a=this;this.readyState="pausing";function r(){Zc("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var d=0;this.polling&&(Zc("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){Zc("pre-pause polling complete"),--d||r()})),this.writable||(Zc("we are currently writing - waiting to pause"),d++,this.once("drain",function(){Zc("pre-pause writing complete"),--d||r()}))}else r()},Hd.prototype.poll=function(){Zc("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Hd.prototype.onData=function(e){var a=this;Zc("polling got data %s",e);var r=function(d,m,n){if(a.readyState==="opening"&&d.type==="open"&&a.onOpen(),d.type==="close")return a.onClose(),!1;a.onPacket(d)};oD.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Zc('ignoring poll - transport state "%s"',this.readyState))},Hd.prototype.doClose=function(){var e=this;function a(){Zc("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Zc("transport open - closing"),a()):(Zc("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")};oD.encodePayload(e,this.supportsBinary,function(d){a.doWrite(d,r)})},Hd.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=TTt()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=CTt.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var d=this.hostname.indexOf(":")!==-1;return a+"://"+(d?"["+this.hostname+"]":this.hostname)+r+this.path+e};var ATt=J8,lD=sD,NTt=ff,ITt=cv,o7=pv("engine.io-client:polling-xhr"),BTt=Z8;X8.exports=yf,X8.exports.Request=Ho;function cD(){}function yf(e){if(lD.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}}ITt(yf,lD),yf.prototype.supportsBinary=!0,yf.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)},yf.prototype.doWrite=function(e,a){var r=typeof e!="string"&&e!==void 0,d=this.request({method:"POST",data:e,isBinary:r}),m=this;d.on("success",a),d.on("error",function(n){m.onError("xhr post error",n)}),this.sendXhr=d},yf.prototype.doPoll=function(){o7("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(NTt(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 ATt(e),r=this;try{o7("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 d in this.extraHeaders)this.extraHeaders.hasOwnProperty(d)&&a.setRequestHeader(d,this.extraHeaders[d])}}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 m=a.getResponseHeader("Content-Type");(r.supportsBinary&&m==="application/octet-stream"||m==="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))},o7("xhr data %s",this.data),a.send(this.data)}catch(m){setTimeout(function(){r.onError(m)},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=cD:this.xhr.onreadystatechange=cD,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",dD);else if(typeof addEventListener=="function"){var MTt="onpagehide"in BTt?"pagehide":"unload";addEventListener(MTt,dD,!1)}}function dD(){for(var e in Ho.requests)Ho.requests.hasOwnProperty(e)&&Ho.requests[e].abort()}var OTt=X8.exports,s7=sD,PTt=cv,uD=Z8,FTt=_f,RTt=/\n/g,VTt=/\\n/g,hv;function zTt(){}function _f(e){s7.call(this,e),this.query=this.query||{},hv||(hv=uD.___eio=uD.___eio||[]),this.index=hv.length;var a=this;hv.push(function(r){a.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=zTt)},!1)}PTt(_f,s7),_f.prototype.supportsBinary=!1,_f.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),s7.prototype.doClose.call(this)},_f.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(m){e.onError("jsonp poll error",m)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(a,r):(document.head||document.body).appendChild(a),this.script=a;var d=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);d&&setTimeout(function(){var m=document.createElement("iframe");document.body.appendChild(m),document.body.removeChild(m)},100)},_f.prototype.doWrite=function(e,a){var r=this;if(!this.form){var d=document.createElement("form"),m=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index,s;d.className="socketio",d.style.position="absolute",d.style.top="-1000px",d.style.left="-1000px",d.target=n,d.method="POST",d.setAttribute("accept-charset","utf-8"),m.name="d",d.appendChild(m),document.body.appendChild(d),this.form=d,this.area=m}this.form.action=this.uri();function i(){_(),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+'">';s=document.createElement(f)}catch{s=document.createElement("iframe"),s.name=r.iframeId,s.src="javascript:0"}s.id=r.iframeId,r.form.appendChild(s),r.iframe=s}_(),e=e.replace(VTt,`\\
|
|
3574
3574
|
`),this.area.value=e.replace(RTt,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&i()}:this.iframe.onload=i};const DTt=qCt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var l7=t7(),LTt=Dp,$Tt=gf,jTt=cv,UTt=nD,HTt=pv("engine.io-client:websocket"),fv,c7;if(typeof WebSocket<"u"?fv=WebSocket:typeof self<"u"&&(fv=self.WebSocket||self.MozWebSocket),typeof window>"u")try{c7=DTt}catch{}var vf=fv||c7,GTt=vc;function vc(e){var a=e&&e.forceBase64;a&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=fv&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(vf=c7),l7.call(this,e)}jTt(vc,l7),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 vf(e,a):new vf(e):new vf(e,a,r)}catch(d){return this.emit("error",d)}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,d=0,m=r;d<m;d++)(function(s){LTt.encodePacket(s,a.supportsBinary,function(i){if(!a.usingBrowserWebSocket){var _={};if(s.options&&(_.compress=s.options.compress),a.perMessageDeflate){var f=typeof i=="string"?Buffer.byteLength(i):i.length;f<a.perMessageDeflate.threshold&&(_.compress=!1)}}try{a.usingBrowserWebSocket?a.ws.send(i):a.ws.send(i,_)}catch{HTt("websocket closed before onclose event")}--r||n()})})(e[d]);function n(){a.emit("flush"),setTimeout(function(){a.writable=!0,a.emit("drain")},0)}},vc.prototype.onClose=function(){l7.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]=UTt()),this.supportsBinary||(e.b64=1),e=$Tt.encode(e),e.length&&(e="?"+e);var d=this.hostname.indexOf(":")!==-1;return a+"://"+(d?"["+this.hostname+"]":this.hostname)+r+this.path+e},vc.prototype.check=function(){return!!vf&&!("__initialize"in vf&&this.name===vc.prototype.name)};var WTt=J8,qTt=OTt,YTt=FTt,ZTt=GTt;nv.polling=JTt,nv.websocket=ZTt;function JTt(e){var a,r=!1,d=!1,m=e.jsonp!==!1;if(typeof location<"u"){var n=location.protocol==="https:",s=location.port;s||(s=n?443:80),r=e.hostname!==location.hostname||s!==e.port,d=e.secure!==n}if(e.xdomain=r,e.xscheme=d,a=new WTt(e),"open"in a&&!e.forceJSONP)return new qTt(e);if(!m)throw new Error("JSONP disabled");return new YTt(e)}var XTt=[].indexOf,pD=function(e,a){if(XTt)return e.indexOf(a);for(var r=0;r<e.length;++r)if(e[r]===a)return r;return-1},KTt=nv,QTt=ff,Fo=pv("engine.io-client:socket"),eSt=pD,hD=Dp,fD=$z,tSt=gf,aSt=Pn;function Pn(e,a){if(!(this instanceof Pn))return new Pn(e,a);a=a||{},e&&typeof e=="object"&&(a=e,e=null),e?(e=fD(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=fD(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=tSt.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()}Pn.priorWebsocketSuccess=!1,QTt(Pn.prototype),Pn.protocol=hD.protocol,Pn.Socket=Pn,Pn.Transport=t7(),Pn.transports=nv,Pn.parser=Dp,Pn.prototype.createTransport=function(e){Fo('creating transport "%s"',e);var a=rSt(this.query);a.EIO=hD.protocol,a.transport=e;var r=this.transportOptions[e]||{};this.id&&(a.sid=this.id);var d=new KTt[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 d};function rSt(e){var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=e[r]);return a}Pn.prototype.open=function(){var e;if(this.rememberUpgrade&&Pn.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)},Pn.prototype.setTransport=function(e){Fo("setting transport %s",e.name);var a=this;this.transport&&(Fo("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")})},Pn.prototype.probe=function(e){Fo('probing transport "%s"',e);var a=this.createTransport(e,{probe:1}),r=!1,d=this;Pn.priorWebsocketSuccess=!1;function m(){if(d.onlyBinaryUpgrades){var g=!this.supportsBinary&&d.transport.supportsBinary;r=r||g}r||(Fo('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(Fo('probe transport "%s" pong',e),d.upgrading=!0,d.emit("upgrading",a),!a)return;Pn.priorWebsocketSuccess=a.name==="websocket",Fo('pausing current transport "%s"',d.transport.name),d.transport.pause(function(){r||d.readyState!=="closed"&&(Fo("changing transport and sending upgrade packet"),o(),d.setTransport(a),a.send([{type:"upgrade"}]),d.emit("upgrade",a),a=null,d.upgrading=!1,d.flush())})}else{Fo('probe transport "%s" failed',e);var c=new Error("probe error");c.transport=a.name,d.emit("upgradeError",c)}}))}function n(){r||(r=!0,o(),a.close(),a=null)}function s(g){var x=new Error("probe error: "+g);x.transport=a.name,n(),Fo('probe transport "%s" failed because of error: %s',e,g),d.emit("upgradeError",x)}function i(){s("transport closed")}function _(){s("socket closed")}function f(g){a&&g.name!==a.name&&(Fo('"%s" works - aborting "%s"',g.name,a.name),n())}function o(){a.removeListener("open",m),a.removeListener("error",s),a.removeListener("close",i),d.removeListener("close",_),d.removeListener("upgrading",f)}a.once("open",m),a.once("error",s),a.once("close",i),this.once("close",_),this.once("upgrading",f),a.open()},Pn.prototype.onOpen=function(){if(Fo("socket open"),this.readyState="open",Pn.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Fo("starting upgrade probes");for(var e=0,a=this.upgrades.length;e<a;e++)this.probe(this.upgrades[e])}},Pn.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Fo('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 Fo('packet received with socket readyState "%s"',this.readyState)},Pn.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))},Pn.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)},Pn.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Fo("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},Pn.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},Pn.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},Pn.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Fo("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},Pn.prototype.write=Pn.prototype.send=function(e,a,r){return this.sendPacket("message",e,a,r),this},Pn.prototype.sendPacket=function(e,a,r,d){if(typeof a=="function"&&(d=a,a=void 0),typeof r=="function"&&(d=r,r=null),!(this.readyState==="closing"||this.readyState==="closed")){r=r||{},r.compress=r.compress!==!1;var m={type:e,data:a,options:r};this.emit("packetCreate",m),this.writeBuffer.push(m),d&&this.once("flush",d),this.flush()}},Pn.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?d():a()}):this.upgrading?d():a()}function a(){e.onClose("forced close"),Fo("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),a()}function d(){e.once("upgrade",r),e.once("upgradeError",r)}return this},Pn.prototype.onError=function(e){Fo("socket error %j",e),Pn.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},Pn.prototype.onClose=function(e,a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Fo('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}},Pn.prototype.filterUpgrades=function(e){for(var a=[],r=0,d=e.length;r<d;r++)~eSt(this.transports,e[r])&&a.push(e[r]);return a},q8.exports=aSt,q8.exports.parser=Dp;var nSt=q8.exports,mD={exports:{}},iSt=oSt;function oSt(e,a){var r=[];a=a||0;for(var d=a||0;d<e.length;d++)r[d-a]=e[d];return r}var gD=sSt;function sSt(e,a,r){return e.on(a,r),{destroy:function(){e.removeListener(a,r)}}}var yD=[].slice,_D=function(e,a){if(typeof a=="string"&&(a=e[a]),typeof a!="function")throw new Error("bind() requires a function");var r=yD.call(arguments,2);return function(){return a.apply(e,r.concat(yD.call(arguments)))}};(function(e,a){var r=tv,d=ff,m=iSt,n=gD,s=_D,i=ev("socket.io-client:socket"),_=gf,f=Yz;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},g=d.prototype.emit;function x(c,l,u){this.io=c,this.nsp=l,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},u&&u.query&&(this.query=u.query),this.io.autoConnect&&this.open()}d(x.prototype),x.prototype.subEvents=function(){if(!this.subs){var c=this.io;this.subs=[n(c,"open",s(this,"onopen")),n(c,"packet",s(this,"onpacket")),n(c,"close",s(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=m(arguments);return c.unshift("message"),this.emit.apply(this,c),this},x.prototype.emit=function(c){if(o.hasOwnProperty(c))return g.apply(this,arguments),this;var l=m(arguments),u={type:(this.flags.binary!==void 0?this.flags.binary:f(l))?r.BINARY_EVENT:r.EVENT,data:l};return u.options={},u.options.compress=!this.flags||this.flags.compress!==!1,typeof l[l.length-1]=="function"&&(i("emitting packet with ack id %d",this.ids),this.acks[this.ids]=l.pop(),u.id=this.ids++),this.connected?this.packet(u):this.sendBuffer.push(u),this.flags={},this},x.prototype.packet=function(c){c.nsp=this.nsp,this.io.packet(c)},x.prototype.onopen=function(){if(i("transport is open - connecting"),this.nsp!=="/")if(this.query){var c=typeof this.query=="object"?_.encode(this.query):this.query;i("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){i("close (%s)",c),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",c)},x.prototype.onpacket=function(c){var l=c.nsp===this.nsp,u=c.type===r.ERROR&&c.nsp==="/";if(!(!l&&!u))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 l=c.data||[];i("emitting event %j",l),c.id!=null&&(i("attaching ack callback to event"),l.push(this.ack(c.id))),this.connected?g.apply(this,l):this.receiveBuffer.push(l)},x.prototype.ack=function(c){var l=this,u=!1;return function(){if(!u){u=!0;var p=m(arguments);i("sending ack %j",p),l.packet({type:f(p)?r.BINARY_ACK:r.ACK,id:c,data:p})}}},x.prototype.onack=function(c){var l=this.acks[c.id];typeof l=="function"?(i("calling ack %s with %j",c.id,c.data),l.apply(this,c.data),delete this.acks[c.id]):i("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++)g.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(){i("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&&(i("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}})(mD);var vD=mD.exports,lSt=bf;function bf(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}bf.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},bf.prototype.reset=function(){this.attempts=0},bf.prototype.setMin=function(e){this.ms=e},bf.prototype.setMax=function(e){this.max=e},bf.prototype.setJitter=function(e){this.jitter=e};var cSt=nSt,dSt=vD,uSt=ff,pSt=tv,op=gD,xf=_D,Ns=ev("socket.io-client:manager"),bD=pD,hSt=lSt,xD=Object.prototype.hasOwnProperty,wD=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 hSt({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||pSt;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)xD.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},di.prototype.updateSocketIds=function(){for(var e in this.nsps)xD.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},di.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},uSt(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=cSt(this.uri,this.opts);var r=this.engine,d=this;this.readyState="opening",this.skipReconnect=!1;var m=op(r,"open",function(){d.onopen(),e&&e()}),n=op(r,"error",function(_){if(Ns("connect_error"),d.cleanup(),d.readyState="closed",d.emitAll("connect_error",_),e){var f=new Error("Connection error");f.data=_,e(f)}else d.maybeReconnectOnOpen()});if(this._timeout!==!1){var s=this._timeout;Ns("connect attempt will timeout after %d",s),s===0&&m.destroy();var i=setTimeout(function(){Ns("connect attempt timed out after %d",s),m.destroy(),r.close(),r.emit("error","timeout"),d.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(i)}})}return this.subs.push(m),this.subs.push(n),this},di.prototype.onopen=function(){Ns("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(op(e,"data",xf(this,"ondata"))),this.subs.push(op(e,"ping",xf(this,"onping"))),this.subs.push(op(e,"pong",xf(this,"onpong"))),this.subs.push(op(e,"error",xf(this,"onerror"))),this.subs.push(op(e,"close",xf(this,"onclose"))),this.subs.push(op(this.decoder,"decoded",xf(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 dSt(this,e,a),this.nsps[e]=r;var d=this;r.on("connecting",m),r.on("connect",function(){r.id=d.generateId(e)}),this.autoConnect&&m()}function m(){~bD(d.connecting,r)||d.connecting.push(r)}return r},di.prototype.destroy=function(e){var a=bD(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 d=0;d<r.length;d++)a.engine.write(r[d],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(d){d?(Ns("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",d.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=REt,d=tv,m=wD,n=ev("socket.io-client");e.exports=a=i;var s=a.managers={};function i(_,f){typeof _=="object"&&(f=_,_=void 0),f=f||{};var o=r(_),g=o.source,x=o.id,c=o.path,l=s[x]&&c in s[x].nsps,u=f.forceNew||f["force new connection"]||f.multiplex===!1||l,p;return u?(n("ignoring socket cache for %s",g),p=m(g,f)):(s[x]||(n("new io instance for %s",g),s[x]=m(g,f)),p=s[x]),o.query&&!f.query&&(f.query=o.query),p.socket(o.path,f)}a.protocol=d.protocol,a.connect=i,a.Manager=wD,a.Socket=vD}(z8,z8.exports);var fSt=z8.exports;const mv=Pz(fSt)("https://golstats-live-server-sockets.azurewebsites.net",{autoConnect:!1,transports:["websocket"]});function mSt(){return mv}mv.on("connect",()=>{J_.emit("socket-connected")}),mv.on("disconnect",()=>{J_.emit("socket-disconnected")}),mv.on("reconnect",()=>{J_.emit("socket-reconnected")});const d7=mSt(),gSt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],ySt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:zz(),indexesTSP:_Et(),indexesLS:wEt(),indexesTLP:CEt(),nextGamesDataStructure:vEt,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 bEt.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return Rz(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return Rz(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(console.count("filledDataStructure"),e.currentSeasonPlays)for(const r of Object.values(e.nextGamesDataStructure))for(const d of Object.values(r.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&d.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&d.visitingTeam.resetTotals(),d.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),d.addTeamPlays(d.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),d.addTeamPlays(d.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return console.count("arrayFilledDataSortedByPriority"),Object.values(a.filledDataStructure).sort((r,d)=>r.priority-d.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&&d7.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(r=>{r.playedGames=e.currentSeasonGames.reduce((d,m)=>{if(m.game_status===1&&(m.home_team===r.team_id||m.visiting_team===r.team_id)){const n=m.score[0]-m.score[1],s=m.home_team===r.team_id;d.push({playingAs:s?1:2,matchResult:n===0?3:s?n>0?1:2:n<0?1:2})}return d},[])})},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&&d7.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=u9(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=u9(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(d=>{for(const m of Object.values(d.subcategories))m.resetMentions()}),r.forEach(d=>{for(const m of a)for(const n of Object.values(d.subcategories))n.addSpecialMention(m[0],m[1],m[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 d=K_(a,e.indexesTLP,e.categoriesMap);for(const m of Object.values(e.nextGamesDataStructure))for(const n of Object.values(m.subcategories))n.addLivePlay(e.gameForAnalysis.home_team===d[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const r=!!a[e.indexesTLP.length],d=e.livePlays.get(a[e.indexesTLP.playId]);if(Hq(d,a))return;let m="";const n=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";d&&(m=e.gameForAnalysis.home_team===d[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const s=K_(d,e.indexesTLP,e.categoriesMap),i=V8(d,s,e.indexesTLP),_=K_(a,e.indexesTLP,e.categoriesMap),f=V8(a,_,e.indexesTLP);for(const o of Object.values(e.nextGamesDataStructure))for(const g of Object.values(o.subcategories))d&&(g.subtractLivePlay(m,s[e.indexesTSP.teamId],s,e.indexesTSP,r),i&&g.subtractLivePlay(m,i[e.indexesTSP.teamId],i,e.indexesTSP,r)),g.addLivePlay(n,_[e.indexesTSP.teamId],_,e.indexesTSP,e.isLive,r),f&&g.addLivePlay(n,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],d=e.livePlays.get(a[e.indexesTLP.playId]);let m="";if(d){m=e.gameForAnalysis.home_team===d[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(d[e.indexesTLP.playId]);const n=K_(d,e.indexesTLP,e.categoriesMap),s=V8(a,n,e.indexesTLP);for(const i of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(i.subcategories))_.subtractLivePlay(m,n[e.indexesTSP.teamId],n,e.indexesTSP,r),s&&_.subtractLivePlay(m,s[e.indexesTSP.teamId],s,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(n=>{n.homeTeamFilterGames=n.playedGames.filter(s=>e.homeTeamFilter.playingAs.includes(s.playingAs)&&e.homeTeamFilter.matchResult.includes(s.matchResult)).length,n.visitingTeamFilterGames=n.playedGames.filter(s=>e.visitingTeamFilter.playingAs.includes(s.playingAs)&&e.visitingTeamFilter.matchResult.includes(s.matchResult)).length});const d=[],m=new Map;for(const n of Object.values(e.nextGamesDataStructure))for(const s of Object.values(n.subcategories))d.push(s);a.rankingData.forEach(n=>{for(const s of d)if(s.isInGeneralCategory(n[e.indexesLS.categoryId])){m.has(s.id)?m.get(s.id).push(n):m.set(s.id,[n]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=Lz(a)},setVisitingGames(e,a){e.visitingGames=Lz(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.accomplishedCategoryIds.forEach(d=>{const m=e.categoriesMap.get(d);m?m.push(r.generalCategoriesIds.accomplished):e.categoriesMap.set(d,[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 s=await fEt({gameId:a.gameId});if(s){var r=[],d=[],m={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},n={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(s.data).length!==0&&(r=s.data.data.filter(i=>i[1]==a.homeTeam),d=s.data.data.filter(i=>i[1]==a.awayTeam),m=s.data.games,n=s.data.games),e("updateHomeTeamPlays",r),e("updateVisitingTeamPlays",d),e("setHomeGames",m),e("setVisitingGames",n)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(s){return Promise.reject(s)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},r){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let d=[];e("updateGameForAnalysis",r.gameInfo),d.push(a("setAndGetStatsPostMatch",{gameId:r.game,homeTeam:r.homeTeam,awayTeam:r.awayTeam})),await Promise.all(d)}catch(d){throw new Error(d)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:r},{gameId:d,isTeamsAnalysis:m,currentSeasonId:n,isLoginChanged:s=!1,defaultFilter:i=null,gameInfo:_=null,isCupGame:f=!1}){try{let o={},g=e.seasonId!==Number(n);const x=[];r("setIsSectionLoading",!0,{root:!0}),r("setUsePastSeasonId",!1),g&&r("setSeasonId",n),r("updateGameId",Number(d)),e.oldSeasonId!==e.seasonId&&r("resetNextGamesDataStructure");const c=await a("getCurrentSeasonGames",Number(d));if(r("leagueGeneral/updateCurrentSeasonGames",c,{root:!0}),o=c.find(l=>l.game_id===Number(d)),!o&&_&&(o=_),o&&r("updateGameForAnalysis",o),o.game_status!==1&&(f||await a("checkTeamsData",{gameId:d,isFromBet:!!i}),(s||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&x.push(a("getSeasonStatistics")),(s||e.categoriesMap.size===0)&&r("generateCategoriesMap")),e.usePastSeasonId){const l=await a("getCurrentSeasonGamesLast");r("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(s||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>o.home_team===l.team_id))&&x.push(a("getCurrentSeasonTeams")),r("setHomeResultGame",o.score[0]),r("setAwayResultGame",o.score[1]),m?o.game_status!==1?(await a("fillStatisticData",{gameId:d,gameinfo:o,promises:x,defaultFilter:i}),r("updateShowPostMatchData",!1)):(r("updateStats",[]),r("updateShowPostMatchData",!0),x.push(a("fillStatisticDataPostMatch",{game:d,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:d,state:m},{gameId:n,gameinfo:s,promises:i=[],defaultFilter:_=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",s),s.is_live&&i.push(a("getCurrentLiveGamePlays",n)),i.push(a("getSpecialMentionsByGame",n)),i.push(a("getHomeTeamPlays")),i.push(a("getVisitingTeamPlays")),i.push(a("getCurrentSeasonPlays")),_&&i.push(gEt(_)),f=await Promise.all(i)}catch(o){throw new Error(o)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:r,isPremiumAccount:d["loginGeneral/getPremiumAccount"]}),_){const[o]=f.pop();o&&(e("setBetSubcategories",o.categories),e("setBetDescription",o.sectionDescription),e("setDefaultFilter",o.params),e("updateFilterAux"),e("updateFilters",{filters:m.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:r,commit:d},{gameId:m,isFromBet:n}){try{const s=Number(m);if(r.general.tournaments&&r.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const i=r.general.tournaments.find(_=>{for(const f of _.seasons)if(f.id===e.seasonId)return!0;return!1});d("general/setTournamentSelected",i||{},{root:!0})}if(e.pastSeasonId){d("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const i=r.leagueGeneral.currentSeasonGames.find(_=>_.game_id===s);i&&d("updateGameForAnalysis",i),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),d("setUsePastSeasonId",n||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else d("setUsePastSeasonId",!1)}catch(s){throw new Error(s)}},async getSpecialMentionsByGame({commit:e},a){try{const r=await dEt({gameId:a});e("addSpecialMentions",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonGames({commit:e,state:a},r){try{const{teams:d,games:m,past_season_id:n,tournament_id:s}=await lEt({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:r}),i=gSt.find(_=>_.id===s);return i&&e("setCurrentTournamentName",i.name),e("setHome",d[0]),e("setAway",d[1]),a.usePastSeasonId||e("setPastSeasonId",n),await e("updateCurrentSeasonGames",m),m&&Array.isArray(m)&&e("updateFinishedGames",m.reduce((_,f)=>(f.game_status===1&&(_+=1),_),0)),m}catch(d){return Promise.reject(d)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:r,past_season_id:d}=await Vz({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",d),await e("updateCurrentSeasonGames",r),r&&Array.isArray(r)&&e("updateFinishedGames",r.reduce((m,n)=>(n.game_status===1&&(m+=1),m),0)),r}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const r=await hEt({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,d=await oEt({seasonId:r});e("updateSeasonStatistics",d),e("updateOldSeasonId",r)}catch(r){return Promise.reject(r)}},updateRankingInSubcategories({state:e,commit:a,getters:r,rootGetters:d}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:r,isPremiumAccount:d["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const r=await Dz({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 Dz({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 iEt({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 d=await cEt({gameId:r});e.livePlays=new Map,d.forEach(m=>{e.gameForAnalysis.game_id===m[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===m[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===m[e.indexesTLP.teamId])&&a("addLiveGamePlay",m)})}catch(d){throw new Error(d)}},socket_new({state:e,commit:a},r){const d=r[1];(e.gameForAnalysis.home_team===d[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===d[e.indexesTLP.teamId])&&a("addLiveGamePlay",d)},socket_update({state:e,commit:a},r){const d=r[1];e.gameForAnalysis.game_id===d[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===d[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===d[e.indexesTLP.teamId])&&a("updateLiveGamePlay",d)},socket_delete({state:e,commit:a},r){const d=r[1];e.gameForAnalysis.game_id===d[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===d[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===d[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",d)},exitChannel({state:e,getters:a,rootState:r,rootGetters:d,commit:m}){const n=d["loginGeneral/getPremiumAccount"];a.isLive&&n&&(m("updateShowLiveData",!1),m("clearLiveTotals"),e.livePlays.clear(),d7.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const d of Object.values(r.subcategories))d.homeTeam.resetTotals(),d.visitingTeam.resetTotals(),d.homeTeam.resetTotalsLive(),d.visitingTeam.resetTotalsLive(),d.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const d of Object.values(r.subcategories))d.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 d of Object.values(r.subcategories))d.homeTeam.resetTotals(),d.visitingTeam.resetTotals(),d.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const d of Object.values(r.subcategories))d.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 _St(){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 vSt={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setTournamentType(e,a){e.tournamentType=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 _St();a("setTournaments",r)}}catch(r){throw new Error(r)}}}}};async function bSt({seasonId:e,localTeamId:a,visitingTeamId:r}){try{const d=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${r}`;return(await Hs({url:d})).data}catch(d){return Promise.reject(d)}}async function xSt({seasonId:e,localTeamId:a,visitingTeamId:r}){try{const d=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${r}`;return(await Hs({url:d})).data}catch(d){return Promise.reject(d)}}const kD=(e,a)=>{let r={};return e.forEach((d,m)=>{m==3&&(a[0]==35||a[0]==54)&&(a[m]==2?a[m]=1:a[m]=2),m==2&&(a[0]==35||a[0]==54)&&(a[m]==1?a[m]=2:a[m]==2&&(a[m]=1)),r[d]=a[m]}),r},CD=(e,a)=>e.filter(d=>{const m=a.playingAs.includes(d.playing_as),n=a.matchResult.includes(d.match_result),s=a.sections.includes(d.section);return m&&n&&s}),ED=[{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,d){return typeof d>"u"||+d==0?Math[a](r):(r=+r,d=+d,isNaN(r)||!(typeof d=="number"&&d%1===0)?NaN:(r=r.toString().split("e"),r=Math[a](+(r[0]+"e"+(r[1]?+r[1]-d:-d))),r=r.toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+d:d))))}Math.ceil10||(Math.ceil10=function(a,r){return e("ceil",a,r)})})();function TD(e,a){let r=a*-1;return Math.ceil10(e,r)}const wSt={...vSt,...mEt,...ySt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,r)=>{const d=e.xGLocalPlays,m="homeTeamFilter",n=r.nextGeneral[m];return CD(d,n)},playsAway:(e,a,r)=>{const d=e.xGVisitingPlays,m="visitingTeamFilter",n=r.nextGeneral[m];return CD(d,n)},goalsQtyLocal:(e,a)=>{const r=ED.find(d=>d.name==="Goles");return a.playsLocal.filter(d=>r.categories.includes(d.category_id)).length},goalsQtyAway:(e,a)=>{const r=ED.find(d=>d.name==="Goles");return a.playsAway.filter(d=>r.categories.includes(d.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 d=a.playsLocal.reduce((m,n)=>(r.has(n.moment_of_play)||(r.add(n.moment_of_play),m+=n.xG2),m),0);return TD(d,2)},xGAway:(e,a)=>{const r=new Set;let d=a.playsAway.reduce((m,n)=>(r.has(n.moment_of_play)||(r.add(n.moment_of_play),m+=n.xG2),m),0);return TD(d,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(r=>kD(a.data_headers,r)),e.xGVisitingPlays=a.visiting_team.map(r=>kD(a.data_headers,r))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:r,visitingTeamId:d,postMatch:m=!1}){try{var n={};m?n=await xSt({seasonId:a,localTeamId:r,visitingTeamId:d}):n=await bSt({seasonId:a,localTeamId:r,visitingTeamId:d}),e("setPlays",n)}catch(s){return Promise.reject(s)}}}}}};function kSt(e){for(const[a,r]of Object.entries(wSt))e.hasModule(a)||e.registerModule(a,r)}const CSt={class:"subcategory-group"},ESt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",CSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,d=>(t.openBlock(),t.createBlock(t.unref(wn),{key:d.id,modelValue:d.isSelected,"onUpdate:modelValue":m=>d.isSelected=m,label:d.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},TSt=On(ESt,[["__scopeId","data-v-ae6f3d72"]]),SSt={class:"filter-subcategories"},ASt=Object.freeze(Object.defineProperty({__proto__:null,default:On({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",SSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,d=>(t.openBlock(),t.createElementBlock("div",{key:d.id,class:"filter-subcategories__group"},[t.createVNode(TSt,{subcategoryGroup:d},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),gv=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),NSt={class:"details__header"},ISt=gv(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),BSt={class:"details__header__checkbox"},MSt={class:"details__body"},OSt={class:"details__body__playing-as"},PSt=["onClick"],FSt={class:"details__header"},RSt=gv(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),VSt={class:"details__header__checkbox"},zSt={class:"details__body"},DSt=gv(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),LSt={class:"details__body__game-section"},$St=["onClick"],jSt={class:"details__body"},USt=gv(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),HSt={class:"details__body__game-section"},GSt=["onClick"],WSt=Object.freeze(Object.defineProperty({__proto__:null,default:On({__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)),d=t.computed(()=>a.gameSections.every(o=>o.isSelected)),m=t.computed(()=>a.gameSections.reduce((o,g)=>(g.value<=3?o.firstHalf.push(g):o.secondHalf.push(g),o),{firstHalf:[],secondHalf:[]})),n=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function s(o){o?a.playingAs.forEach(g=>{g.isSelected=!0}):a.playingAs.forEach((g,x)=>{g.isSelected=x===0})}function i(o){a.playingAs.filter(g=>g.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function _(o){a.gameSections.filter(g=>g.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function f(o){o?a.gameSections.forEach(g=>{g.isSelected=!0}):a.gameSections.forEach((g,x)=>{g.isSelected=x===0})}return(o,g)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",NSt,[ISt,t.createElementVNode("div",BSt,[t.createVNode(t.unref(wn),{label:"Todos","model-value":r.value,"onUpdate:modelValue":s},null,8,["model-value"])])]),t.createElementVNode("div",MSt,[t.createElementVNode("div",OSt,[(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:l=>i(x)},t.toDisplayString(x.name),11,PSt))),128))])]),t.createElementVNode("div",FSt,[RSt,t.createElementVNode("div",VSt,[t.createVNode(t.unref(wn),{label:"Todos","model-value":d.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",zSt,[DSt,t.createElementVNode("div",LSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.firstHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>_(x)},t.toDisplayString(x.text),11,$St))),128))])]),t.createElementVNode("div",jSt,[USt,t.createElementVNode("div",HSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.secondHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>_(x)},t.toDisplayString(x.text),11,GSt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),qSt={class:"filter-field"},YSt=Object.freeze(Object.defineProperty({__proto__:null,default:On({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(d,m)=>m+1));function r(){}return(d,m)=>(t.openBlock(),t.createElementBlock("div",qSt,[t.createVNode(t.unref(nR),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));ol.GSCGameData=nEt,ol.registerStoreModules=kSt,Object.defineProperty(ol,Symbol.toStringTag,{value:"Module"})});
|