@mjsz-vbr-elements/core 2.1.0-beta.50 → 2.1.0-beta.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.1.0-beta.50 - 17/11/2023, 17:31:48
3
+ * version: v2.1.0-beta.51 - 18/11/2023, 10:28:17
4
4
  * (c) 2023
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- var MjszVbrElementsCore=function(w,r){"use strict";const nt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,xe={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=nt("base-input"),a=r.computed({get:()=>n.modelValue,set:s=>e("update:modelValue",s)});return(s,i)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),class:r.normalizeClass([r.unref(o),"is-select"])},[r.renderSlot(s.$slots,"default")],2)),[[r.vModelSelect,a.value]])}};function De(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():r.unref(t)}const zt=typeof window<"u",rt=()=>{},pr=hr();function hr(){var t;return zt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function ee(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function ne(t,e=!1){function n(m,{flush:d="sync",deep:f=!1,timeout:h,throwOnTimeout:g}={}){let y=null;const $=[new Promise(A=>{y=r.watch(t,x=>{m(x)!==e&&(y==null||y(),A(x))},{flush:d,deep:f,immediate:!0})})];return h!=null&&$.push(ee(h,g).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(m,d){if(!r.isRef(m))return n(x=>x===m,d);const{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:y}=d??{};let k=null;const A=[new Promise(x=>{k=r.watch([t,m],([D,B])=>{e!==(D===B)&&(k==null||k(),x(D))},{flush:f,deep:h,immediate:!0})})];return g!=null&&A.push(ee(g,y).then(()=>tt(t)).finally(()=>(k==null||k(),tt(t)))),Promise.race(A)}function a(m){return n(d=>!!d,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,d){return n(f=>{const h=Array.from(f);return h.includes(m)||h.includes(tt(m))},d)}function u(m){return p(1,m)}function p(m=1,d){let f=-1;return n(()=>(f+=1,f>=m),d)}return Array.isArray(tt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:p,get not(){return ne(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:p,get not(){return ne(t,!e)}}}function gr(t){return ne(t)}function yr(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},tt(e))}return o&&(a.value=!0,zt&&c()),De(l),{isPending:r.readonly(a),start:c,stop:l}}function br(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n)}function Sr(t,e,n){return r.watch(t,(o,a,s)=>{o&&e(o,a,s)},n)}function Ot(t){var e;const n=tt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Le=zt?window:void 0,wr=zt?window.document:void 0;function Vt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Le):[e,n,o,a]=t,!e)return rt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(p=>p()),s.length=0},l=(p,m,d,f)=>(p.addEventListener(m,d,f),()=>p.removeEventListener(m,d,f)),c=r.watch(()=>[Ot(e),tt(a)],([p,m])=>{i(),p&&s.push(...n.flatMap(d=>o.map(f=>l(p,d,f,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return De(u),u}let Me=!1;function _r(t,e,n={}){const{window:o=Le,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;pr&&!Me&&(Me=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",rt)));let l=!0;const c=d=>a.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(h=>h===d.target||d.composedPath().includes(h));{const h=Ot(f);return h&&(d.target===h||d.composedPath().includes(h))}}),p=[Vt(o,"click",d=>{const f=Ot(t);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:s}),Vt(o,"pointerdown",d=>{const f=Ot(t);f&&(l=!d.composedPath().includes(f)&&!c(d))},{passive:!0}),i&&Vt(o,"blur",d=>{var f;const h=Ot(t);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&e(d)})].filter(Boolean);return()=>p.forEach(d=>d())}var Tr=Object.defineProperty,kr=Object.defineProperties,$r=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,Be=(t,e,n)=>e in t?Tr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ar=(t,e)=>{for(var n in e||(e={}))Or.call(e,n)&&Be(t,n,e[n]);if(Ce)for(var n of Ce(e))Er.call(e,n)&&Be(t,n,e[n]);return t},Pr=(t,e)=>kr(t,$r(e));function Ie(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=rt,onSuccess:i=rt,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},p=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),d=r.ref(!1),f=r.shallowRef(void 0);async function h(k=0,...$){l&&(p.value=e),f.value=void 0,m.value=!1,d.value=!0,k>0&&await ee(k);const A=typeof t=="function"?t(...$):t;try{const x=await A;p.value=x,m.value=!0,i(x)}catch(x){if(f.value=x,s(x),u)throw x}finally{d.value=!1}return p.value}o&&h(a);const g={state:p,isReady:m,isLoading:d,error:f,execute:h};function y(){return new Promise((k,$)=>{gr(d).toBe(!1).then(()=>k(g)).catch($)})}return Pr(Ar({},g),{then(k,$){return y().then(k,$)}})}function Nr({document:t=wr}={}){if(!t)return r.ref("visible");const e=r.ref(t.visibilityState);return Vt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var vr=Object.defineProperty,ze=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,Ve=(t,e,n)=>e in t?vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lr=(t,e)=>{for(var n in e||(e={}))xr.call(e,n)&&Ve(t,n,e[n]);if(ze)for(var n of ze(e))Dr.call(e,n)&&Ve(t,n,e[n]);return t};async function Mr(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),o.onload=()=>e(o),o.onerror=n})}function Cr(t,e={}){const n=Ie(()=>Mr(tt(t)),void 0,Lr({resetOnExecute:!0},e));return r.watch(()=>tt(t),()=>n.execute(e.delay),{deep:!0}),n}function Re(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=yr(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function z(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Y(t){return function e(n){return arguments.length===0||z(n)?e:t.apply(this,arguments)}}function V(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return z(n)?e:Y(function(a){return t(n,a)});default:return z(n)&&z(o)?e:z(n)?Y(function(a){return t(a,o)}):z(o)?Y(function(a){return t(n,a)}):t(n,o)}}}function Rt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,p){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,p,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function re(t,e,n){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!z(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,z(l)||(s-=1),i+=1}return s<=0?n.apply(this,o):Rt(s,re(t,o,n))}}var Gt=V(function(e,n){return e===1?Y(n):Rt(e,re(e,[],n))});function st(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return z(n)?e:V(function(s,i){return t(n,s,i)});case 2:return z(n)&&z(o)?e:z(n)?V(function(s,i){return t(s,o,i)}):z(o)?V(function(s,i){return t(n,s,i)}):Y(function(s){return t(n,o,s)});default:return z(n)&&z(o)&&z(a)?e:z(n)&&z(o)?V(function(s,i){return t(s,i,a)}):z(n)&&z(a)?V(function(s,i){return t(s,o,i)}):z(o)&&z(a)?V(function(s,i){return t(n,s,i)}):z(n)?Y(function(s){return t(s,o,a)}):z(o)?Y(function(s){return t(n,s,a)}):z(a)?Y(function(s){return t(n,o,s)}):t(n,o,a)}}}const jt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Br(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Ft(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!jt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Br(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function Ge(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const St={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function je(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function Fe(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function Ir(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function zr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const oe=typeof Object.is=="function"?Object.is:zr;var Ye=Object.prototype.toString,He=function(){return Ye.call(arguments)==="[object Arguments]"?function(e){return Ye.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Vr=!{toString:null}.propertyIsEnumerable("toString"),Ue=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],We=function(){return arguments.propertyIsEnumerable("length")}(),Rr=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},mt=Y(typeof Object.keys=="function"&&!We?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=We&&He(e);for(n in e)et(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Vr)for(o=Ue.length-1;o>=0;)n=Ue[o],et(n,e)&&!Rr(a,n)&&(a[a.length]=n),o-=1;return a}),ae=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Ke(t,e,n,o){var a=je(t),s=je(e);function i(l,c){return se(l,c,n.slice(),o.slice())}return!Fe(function(l,c){return!Fe(i,c,l)},s,a)}function se(t,e,n,o){if(oe(t,e))return!0;var a=ae(t);if(a!==ae(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Ir(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&oe(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!oe(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:Ke(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:Ke(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=mt(t);if(i.length!==mt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(et(u,e)&&se(e[u],t[u],l,c)))return!1;s-=1}return!0}var Yt=V(function(e,n){return se(e,n,[],[])});function Gr(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Yt(t[n],e))return n;n+=1}return-1}function Ze(t,e){return Gr(e,t,0)>=0}function Ht(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function ie(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Et=function(e){return(e<10?"0":"")+e},jr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Et(e.getUTCMonth()+1)+"-"+Et(e.getUTCDate())+"T"+Et(e.getUTCHours())+":"+Et(e.getUTCMinutes())+":"+Et(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Fr(t){return function(){return!t.apply(this,arguments)}}function qe(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Yr(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Ut(t){return Object.prototype.toString.call(t)==="[object Object]"}var Hr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Ur(t){return function(e){return new Hr(t,e)}}var Xe=V(Ft(["fantasy-land/filter","filter"],Ur,function(t,e){return Ut(e)?qe(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},mt(e)):Yr(t,e)})),Wr=V(function(e,n){return Xe(Fr(e),n)});function Je(t,e){var n=function(i){var l=e.concat([t]);return Ze(i,l)?"<Circular>":Je(i,l)},o=function(s,i){return Ht(function(l){return ie(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(n,t).join(", ")+"))";case"[object Array]":return"["+Ht(n,t).concat(o(t,Wr(function(s){return/^\d+$/.test(s)},mt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):ie(jr(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":ie(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,mt(t)).join(", ")+"}"}}var le=Y(function(e){return Je(e,[])}),Kr=V(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=le(e),l=o(i,le(n));return l!==void 0&&l===i?e:n}),Zr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),qr=function(e){return function(n){return new Zr(e,n)}},Xr=V(Ft(["fantasy-land/map","map"],qr,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Gt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return qe(function(o,a){return o[a]=e(n[a]),o},{},mt(n));default:return Ht(e,n)}}));const pt=Xr,Qe=Number.isInteger||function(e){return e<<0===e};function Wt(t){return Object.prototype.toString.call(t)==="[object String]"}var tn=V(function(e,n){var o=e<0?n.length+e:e;return Wt(n)?n.charAt(o):n[o]}),Jr=V(function(e,n){if(n!=null)return Qe(e)?tn(e,n):n[e]});const wt=Jr;var Qr=V(function(e,n){return pt(wt(e),n)}),to=Y(function(e){return jt(e)?!0:!e||typeof e!="object"||Wt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),en=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function eo(t,e,n){return function(a,s,i){if(to(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[en]!=null)return n(a,s,i[en]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function no(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var ro=V(function(e,n){return Rt(e.length,function(){return e.apply(n,arguments)})});function oo(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function ao(t,e,n,o){return t["@@transducer/result"](n[o](ro(t["@@transducer/step"],t),e))}var nn=eo(no,ao,oo),so=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function rn(t){return new so(t)}var io=st(function(t,e,n){return nn(typeof t=="function"?rn(t):t,e,n)});const on=io;var lo=Y(function(e){return function(){return e}});const an=lo;var co=Y(function(e){return Gt(on(Kr,0,Qr("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})});const uo=co;var fo=st(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});const ce=fo;function mo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function po(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function ue(t,e,n){if(n||(n=new go),ho(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?ue(t[l],!0,n):t[l]);return s};switch(ae(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return po(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function ho(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var go=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){let n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const n=this.hash(e),o=this.map[n];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function yo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function de(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return jt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var bo=st(de("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),So=Y(de("tail",bo(1,1/0)));const wo=So;function fe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Rt(arguments[0].length,on(yo,arguments[0],wo(arguments)))}var _o=Y(function(e){return Wt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const To=_o;function sn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return fe.apply(this,To(arguments))}var ko=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(et(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,ue(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function $o(t,e,n){return function(o){return new ko(t,e,n,o)}}var Oo=re(4,[],Ft([],$o,function(e,n,o,a){var s=rn(function(i,l){var c=o(l),u=e(et(c,i)?i[c]:ue(n,!1),l);return u&&u["@@transducer/reduced"]?Ge(i):(i[c]=u,i)});return nn(s,{},a)})),Eo=st(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});const Ao=Eo;function Po(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var No=Y(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():jt(e)?[]:Wt(e)?"":Ut(e)?{}:He(e)?function(){return arguments}():Po(e)?e.constructor.from(""):void 0}),vo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=Ge(this.xf["@@transducer/step"](e,this.idx))),e},t}();function xo(t){return function(e){return new vo(t,e)}}var Do=V(Ft([],xo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1}));const Lo=Do;var Mo=V(de("groupBy",Oo(function(t,e){return t.push(e),t},[])));const Co=Mo;var Bo=st(function(e,n,o){return Gt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const Io=Bo;var zo=V(Ze);const Vo=zo;var Ro=V(function(e,n){return Gt(e+1,function(){var o=arguments[e];if(o!=null&&mo(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(le(o)+' does not have a method named "'+n+'"')})});const ln=Ro;var Go=Y(function(e){return e!=null&&Yt(e,No(e))});const jo=Go;var Fo=V(function(e,n){return e.map(function(o){for(var a=n,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=Qe(i)?tn(i,a):a[i],s+=1}return a})}),Yo=V(function(e,n){return Fo([e],n)[0]});const cn=Yo;var Ho=st(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)et(s,n)&&(a[s]=et(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)et(s,o)&&!et(s,a)&&(a[s]=o[s]);return a}),Uo=st(function t(e,n,o){return Ho(function(a,s,i){return Ut(s)&&Ut(i)?t(e,s,i):e(a,s,i)},n,o)}),Wo=V(function(e,n){return Uo(function(o,a,s){return s},e,n)});const Ko=Wo;var Zo=V(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o});const qo=Zo;var Xo=st(function(e,n,o){return e(wt(n,o))});const Jo=Xo;var Qo=V(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const un=Qo;var ta=ln(1,"split");const At=ta;var ea=ln(0,"toLowerCase");const na=ea;var Pt=`
9
- \v\f\r                 \u2028\u2029\uFEFF`,ra="​",oa=typeof String.prototype.trim=="function",aa=Y(!oa||Pt.trim()||!ra.trim()?function(e){var n=new RegExp("^["+Pt+"]["+Pt+"]*"),o=new RegExp("["+Pt+"]["+Pt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Kt=aa,dn=Symbol("I18nContext"),K=r.reactive({messages:{},locale:"",fallbackLocale:""}),fn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=n;const o=(c,u={})=>{const p=!jo(u),m=pt(Kt,At(".",c));return r.computed(()=>{const f=mn(m);return p?ia(f,u):f}).value},a=c=>{const u=pt(Kt,At(".",c));return!!me(K.locale,u,K.messages)},s=c=>{K.locale=c},l={locale:r.computed({get(){return K.locale},set(c){K.locale=c}}),setLocale:s,translate:o,hasTranlation:a};return r.provide(dn,l),{translate:o}},it=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=sa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},sa=()=>{const t=r.inject(dn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},mn=(t=[])=>{let e=me(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=me(K.fallbackLocale,t,K.messages)),e||t.join(".")};function me(t,e,n){return cn([t,...e],n)}const ia=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},pn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=pt(Kt,At(".",t.path)),o=mn(n),a=At(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),hn="https://api.icehockey.hu/vbr",gn="https://www.jegkorongszovetseg.hu/event/game/",yn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",bn="https://www.ersteliga.hu/stats/player/",Sn="https://www.ersteliga.hu/stats/team/",ot="original",b="descend",C="ascend",wn=new Map().set("hu","hu-hu").set("en","hu-gb"),_n=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),la=1e3*60*5,Tn=1e3,ca={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},ua=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),da=[ua];function fa(t,e){return r.openBlock(),r.createElementBlock("svg",ca,da)}const kn={render:fa},ma={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},pa=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ha=[pa];function ga(t,e){return r.openBlock(),r.createElementBlock("svg",ma,ha)}const ya={render:ga},ba={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Sa=r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),wa=[Sa];function _a(t,e){return r.openBlock(),r.createElementBlock("svg",ba,wa)}const Ta={render:_a};function Nt(t){return t.split("-")[1]}function pe(t){return t==="y"?"height":"width"}function ht(t){return t.split("-")[0]}function vt(t){return["top","bottom"].includes(ht(t))?"x":"y"}function $n(t,e,n){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=vt(e),c=pe(l),u=o[c]/2-a[c]/2,p=l==="x";let m;switch(ht(e)){case"top":m={x:s,y:o.y-a.height};break;case"bottom":m={x:s,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:i};break;case"left":m={x:o.x-a.width,y:i};break;default:m={x:o.x,y:o.y}}switch(Nt(e)){case"start":m[l]-=u*(n&&p?-1:1);break;case"end":m[l]+=u*(n&&p?-1:1)}return m}const ka=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:p,y:m}=$n(u,o,c),d=o,f={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:k}=l[g],{x:$,y:A,data:x,reset:D}=await k({x:p,y:m,initialPlacement:o,placement:d,strategy:a,middlewareData:f,rects:u,platform:i,elements:{reference:t,floating:e}});p=$??p,m=A??m,f={...f,[y]:{...f[y],...x}},D&&h<=50&&(h++,typeof D=="object"&&(D.placement&&(d=D.placement),D.rects&&(u=D.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):D.rects),{x:p,y:m}=$n(u,d,c)),g=-1)}return{x:p,y:m,placement:d,strategy:a,middlewareData:f}};function On(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function En(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:d=!1,padding:f=0}=e,h=On(f),g=l[d?m==="floating"?"reference":"floating":m],y=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),k=m==="floating"?{...i.floating,x:o,y:a}:i.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement($))&&await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1},x=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:$,strategy:c}):k);return{top:(y.top-x.top+h.top)/A.y,bottom:(x.bottom-y.bottom+h.bottom)/A.y,left:(y.left-x.left+h.left)/A.x,right:(x.right-y.right+h.right)/A.x}}const $a=Math.min,Oa=Math.max;function he(t,e,n){return Oa(t,$a(e,n))}const An=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:c,elements:u}=e;if(n==null)return{};const p=On(o),m={x:a,y:s},d=vt(i),f=pe(d),h=await c.getDimensions(n),g=d==="y",y=g?"top":"left",k=g?"bottom":"right",$=g?"clientHeight":"clientWidth",A=l.reference[f]+l.reference[d]-m[d]-l.floating[f],x=m[d]-l.reference[d],D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n));let B=D?D[$]:0;B&&await(c.isElement==null?void 0:c.isElement(D))||(B=u.floating[$]||l.floating[f]);const R=A/2-x/2,F=p[y],L=B-h[f]-p[k],N=B/2-h[f]/2+R,I=he(F,N,L),H=Nt(i)!=null&&N!=I&&l.reference[f]/2-(N<F?p[y]:p[k])-h[f]/2<0;return{[d]:m[d]-(H?N<F?F-N:L-N:0),data:{[d]:I,centerOffset:N-I}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Ea={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(t){return t.replace(/left|right|bottom|top/g,e=>Ea[e])}function Aa(t,e,n){n===void 0&&(n=!1);const o=Nt(t),a=vt(t),s=pe(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=qt(i)),{main:i,cross:qt(i)}}const Pa={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,e=>Pa[e])}const Na=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=t,y=ht(o),k=ht(i)===i,$=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=m||(k||!h?[qt(i)]:function(I){const H=qt(I);return[ge(I),H,ge(H)]}(i));m||f==="none"||A.push(...function(I,H,E,T){const _=Nt(I);let O=function(S,P,v){const M=["left","right"],j=["right","left"],G=["top","bottom"],U=["bottom","top"];switch(S){case"top":case"bottom":return v?P?j:M:P?M:j;case"left":case"right":return P?G:U;default:return[]}}(ht(I),E==="start",T);return _&&(O=O.map(S=>S+"-"+_),H&&(O=O.concat(O.map(ge)))),O}(i,h,f,$));const x=[i,...A],D=await En(e,g),B=[];let R=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&B.push(D[y]),p){const{main:I,cross:H}=Aa(o,s,$);B.push(D[I],D[H])}if(R=[...R,{placement:o,overflows:B}],!B.every(I=>I<=0)){var F,L;const I=(((F=a.flip)==null?void 0:F.index)||0)+1,H=x[I];if(H)return{data:{index:I,overflows:R},reset:{placement:H}};let E=(L=R.filter(T=>T.overflows[0]<=0).sort((T,_)=>T.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!E)switch(d){case"bestFit":{var N;const T=(N=R.map(_=>[_.placement,_.overflows.filter(O=>O>0).reduce((O,S)=>O+S,0)]).sort((_,O)=>_[1]-O[1])[0])==null?void 0:N[0];T&&(E=T);break}case"initialPlacement":E=i}if(o!==E)return{reset:{placement:E}}}return{}}}},va=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:o}=e,a=await async function(s,i){const{placement:l,platform:c,elements:u}=s,p=await(c.isRTL==null?void 0:c.isRTL(u.floating)),m=ht(l),d=Nt(l),f=vt(l)==="x",h=["left","top"].includes(m)?-1:1,g=p&&f?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:k,crossAxis:$,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof A=="number"&&($=d==="end"?-1*A:A),f?{x:$*g,y:k*h}:{x:k*h,y:$*g}}(e,t);return{x:n+a.x,y:o+a.y,data:a}}}};function xa(t){return t==="x"?"y":"x"}const Da=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:k,y:$}=y;return{x:k,y:$}}},...c}=t,u={x:n,y:o},p=await En(e,c),m=vt(ht(a)),d=xa(m);let f=u[m],h=u[d];if(s){const y=m==="y"?"bottom":"right";f=he(f+p[m==="y"?"top":"left"],f,f-p[y])}if(i){const y=d==="y"?"bottom":"right";h=he(h+p[d==="y"?"top":"left"],h,h-p[y])}const g=l.fn({...e,[m]:f,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}};function X(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){return X(t).getComputedStyle(t)}function Pn(t){return t instanceof X(t).Node}function lt(t){return Pn(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function q(t){return t instanceof X(t).Element}function Nn(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function La(t){return["table","td","th"].includes(lt(t))}function ye(t){const e=be(),n=J(t);return n.transform!=="none"||n.perspective!=="none"||!e&&!!n.backdropFilter&&n.backdropFilter!=="none"||!e&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function be(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Xt(t){return["html","body","#document"].includes(lt(t))}const vn=Math.min,Dt=Math.max,Jt=Math.round;function xn(t){const e=J(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=Q(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=Jt(n)!==s||Jt(o)!==i;return l&&(n=s,o=i),{width:n,height:o,fallback:l}}function Dn(t){return q(t)?t:t.contextElement}const Ln={x:1,y:1};function _t(t){const e=Dn(t);if(!Q(e))return Ln;const n=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=xn(e);let i=(s?Jt(n.width):n.width)/o,l=(s?Jt(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Mn={x:0,y:0};function Cn(t,e,n){var o,a;if(e===void 0&&(e=!0),!be())return Mn;const s=t?X(t):window;return!n||e&&n!==s?Mn:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function gt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Dn(t);let i=Ln;e&&(o?q(o)&&(i=_t(o)):i=_t(t));const l=Cn(s,n,o);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,p=a.width/i.x,m=a.height/i.y;if(s){const d=X(s),f=o&&q(o)?X(o):o;let h=d.frameElement;for(;h&&o&&f!==d;){const g=_t(h),y=h.getBoundingClientRect(),k=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(k.paddingLeft))*g.x,y.y+=(h.clientTop+parseFloat(k.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,m*=g.y,c+=y.x,u+=y.y,h=X(h).frameElement}}return Zt({width:p,height:m,x:c,y:u})}function ct(t){return((Pn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qt(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bn(t){return gt(ct(t)).left+Qt(t).scrollLeft}function Tt(t){if(lt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Nn(t)&&t.host||ct(t);return Nn(e)?e.host:e}function In(t){const e=Tt(t);return Xt(e)?e.ownerDocument.body:Q(e)&&xt(e)?e:In(e)}function Lt(t,e){var n;e===void 0&&(e=[]);const o=In(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),s=X(o);return a?e.concat(s,s.visualViewport||[],xt(o)?o:[]):e.concat(o,Lt(o))}function zn(t,e,n){let o;if(e==="viewport")o=function(a,s){const i=X(a),l=ct(a),c=i.visualViewport;let u=l.clientWidth,p=l.clientHeight,m=0,d=0;if(c){u=c.width,p=c.height;const f=be();(!f||f&&s==="fixed")&&(m=c.offsetLeft,d=c.offsetTop)}return{width:u,height:p,x:m,y:d}}(t,n);else if(e==="document")o=function(a){const s=ct(a),i=Qt(a),l=a.ownerDocument.body,c=Dt(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),u=Dt(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let p=-i.scrollLeft+Bn(a);const m=-i.scrollTop;return J(l).direction==="rtl"&&(p+=Dt(s.clientWidth,l.clientWidth)-c),{width:c,height:u,x:p,y:m}}(ct(t));else if(q(e))o=function(a,s){const i=gt(a,!0,s==="fixed"),l=i.top+a.clientTop,c=i.left+a.clientLeft,u=Q(a)?_t(a):{x:1,y:1};return{width:a.clientWidth*u.x,height:a.clientHeight*u.y,x:c*u.x,y:l*u.y}}(e,n);else{const a=Cn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Zt(o)}function Vn(t,e){const n=Tt(t);return!(n===e||!q(n)||Xt(n))&&(J(n).position==="fixed"||Vn(n,e))}function Rn(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Gn(t,e){const n=X(t);if(!Q(t))return n;let o=Rn(t,e);for(;o&&La(o)&&J(o).position==="static";)o=Rn(o,e);return o&&(lt(o)==="html"||lt(o)==="body"&&J(o).position==="static"&&!ye(o))?n:o||function(a){let s=Tt(a);for(;Q(s)&&!Xt(s);){if(ye(s))return s;s=Tt(s)}return null}(t)||n}function Ma(t,e,n){const o=Q(e),a=ct(e),s=n==="fixed",i=gt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!s)if((lt(e)!=="body"||xt(a))&&(l=Qt(e)),Q(e)){const u=gt(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else a&&(c.x=Bn(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const Ca={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const s=n==="clippingAncestors"?function(u,p){const m=p.get(u);if(m)return m;let d=Lt(u).filter(y=>q(y)&&lt(y)!=="body"),f=null;const h=J(u).position==="fixed";let g=h?Tt(u):u;for(;q(g)&&!Xt(g);){const y=J(g),k=ye(g);k||y.position!=="fixed"||(f=null),(h?!k&&!f:!k&&y.position==="static"&&f&&["absolute","fixed"].includes(f.position)||xt(g)&&!k&&Vn(u,g))?d=d.filter($=>$!==g):f=y,g=Tt(g)}return p.set(u,d),d}(e,this._c):[].concat(n),i=[...s,o],l=i[0],c=i.reduce((u,p)=>{const m=zn(e,p,a);return u.top=Dt(m.top,u.top),u.right=vn(m.right,u.right),u.bottom=vn(m.bottom,u.bottom),u.left=Dt(m.left,u.left),u},zn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const a=Q(n),s=ct(n);if(n===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((lt(n)!=="body"||xt(s))&&(i=Qt(n)),Q(n))){const u=gt(n);l=_t(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+c.x,y:e.y*l.y-i.scrollTop*l.y+c.y}},isElement:q,getDimensions:function(t){return xn(t)},getOffsetParent:Gn,getDocumentElement:ct,getScale:_t,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const a=this.getOffsetParent||Gn,s=this.getDimensions;return{reference:Ma(e,await a(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Ba(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,c=a||s?[...q(t)?Lt(t):t.contextElement?Lt(t.contextElement):[],...Lt(e)]:[];c.forEach(d=>{const f=!q(d)&&d.toString().includes("V");!a||l&&!f||d.addEventListener("scroll",n,{passive:!0}),s&&d.addEventListener("resize",n)});let u,p=null;i&&(p=new ResizeObserver(()=>{n()}),q(t)&&!l&&p.observe(t),q(t)||!t.contextElement||l||p.observe(t.contextElement),p.observe(e));let m=l?gt(t):null;return l&&function d(){const f=gt(t);!m||f.x===m.x&&f.y===m.y&&f.width===m.width&&f.height===m.height||n(),m=f,u=requestAnimationFrame(d)}(),n(),()=>{var d;c.forEach(f=>{a&&f.removeEventListener("scroll",n),s&&f.removeEventListener("resize",n)}),(d=p)==null||d.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const Ia=(t,e,n)=>{const o=new Map,a={platform:Ca,...n},s={...a.platform,_c:o};return ka(t,e,{...a,platform:s})},jn=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function za({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),p=r.ref(null),m=r.ref(null),d=r.ref(n??"absolute"),f=r.ref(null),h=()=>{!s.value||!i.value||Ia(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,d.value=y.strategy,u.value=y.middlewareData.arrow.x,p.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:k})=>{k&&jn(y,k),h()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return g();f.value=Ba(s.value,i.value,h,{})}},{flush:"post"});const g=()=>{var y;(y=f.value)==null||y.call(f),f.value=null};return{x:l,y:c,arrowX:u,arrowY:p,placement:m,reference:s,floating:i,strategy:d,update:h}}const Va=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?An({element:e.value,padding:n}).fn(o):{}:e?An({element:e,padding:n}).fn(o):{}}}},Ra=["data-placement"],Se={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:p,strategy:m}=za({placement:e.placement,middleware:[Na(),Da({padding:5}),va(e.offset),Va({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),d=()=>{e.disabled||n.value||(n.value=!0)},f=y=>{n.value&&y&&(n.value=!1)},h=y=>{u.value=y},g={mouseenter:d,mouseleave:f,focus:d,blur:f};return _r(p,y=>{var k;(k=u.value)!=null&&k.contains(y.target)||f()}),(y,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:h,show:d,hide:f,events:g}),r.createElementVNode("div",{ref_key:"floating",ref:p,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:f},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,Ra)],64))}},Ga=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],ja={key:0},Fa=["colspan"],Ya={key:1},Ha=["colspan"],we={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=Re(o,{delay:Tn}),{t:i}=it(),l=nt("table"),c=r.computed(()=>n.columns),u=r.computed(()=>Object.keys(n.columns).length),p=(m,d)=>{m.sortOrders&&e("sort",{target:d,orders:m.sortOrders})};return(m,d)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(l))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(f,h)=>(r.openBlock(),r.createBlock(Se,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:y,hide:k})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ot),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(C)}]),onMouseenter:y,onMouseleave:k,onFocus:y,onBlur:k,onClick:$=>p(f,h),onKeydown:[r.withKeys(r.withModifiers($=>p(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers($=>p(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(m.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(kn),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(ot)?(r.openBlock(),r.createBlock(r.unref(kn),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(ya),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(C)?(r.openBlock(),r.createBlock(r.unref(Ta),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,Ga)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(g,y)=>(r.openBlock(),r.createElementBlock("td",{key:y,class:r.normalizeClass([[g.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ot)}])},[r.renderSlot(m.$slots,`cell-${y}`,{row:f,prop:y},()=>[r.createTextVNode(r.toDisplayString(f[y]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",ja,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.loading")),1)])],8,Fa)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",Ya,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.noData")),1)])],8,Ha)])])):r.createCommentVNode("",!0)],2))}},Ua={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Wa=r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),Ka=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Za=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),qa=[Wa,Ka,Za];function Xa(t,e){return r.openBlock(),r.createElementBlock("svg",Ua,qa)}const Ja={render:Xa},Qa={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranlation:o}=it(),a=nt("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(Ja),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Fn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const Yn=Symbol("ErrorProviderContext"),Hn=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Fn(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(Yn,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},_e=()=>{const t=ts();return{onError:t.onError,reset:t.reset}},ts=()=>{const t=r.inject(Yn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},es={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=Hn();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},ns={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},rs={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Un=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},os=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Ko({hu:ns,en:rs},t.messages),{translate:n}=fn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function as(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const ss=Un(os,[["render",as]]),is=["src"],ls=["src","title"],yt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=Cr(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded",i.$attrs.class])},null,10,is)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title},null,10,ls))],64))}}),cs={style:{"text-align":"center"}},Te={__name:"LoadingIndicator",setup(t){const{t:e}=it();return(n,o)=>(r.openBlock(),r.createElementBlock("div",cs,r.toDisplayString(r.unref(e)("common.loading")),1))}};function us({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=rt}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const p=r.unref(t)-1,m=Array.from({length:s.value},(h,g)=>g+1),d=Math.floor(o/2);let f=Math.max(p-d,0);return f+o>=s.value&&(f=Math.max(s.value-o,0)),m.slice(f,f+o)}),l=p=>{const m=r.unref(t)+p;u(m)&&a(m)},c=p=>{u(p)&&a(p)},u=p=>p<=s.value&&p>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const ds={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},fs=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ms=[fs];function ps(t,e){return r.openBlock(),r.createElementBlock("svg",ds,ms)}const hs={render:ps},gs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ys=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),bs=[ys];function Ss(t,e){return r.openBlock(),r.createElementBlock("svg",gs,bs)}const ws={render:Ss},_s=["disabled"],Ts=["disabled"],ks={key:1,class:"is-disabled"},$s=["disabled","onClick"],Os={key:2,class:"is-disabled"},Es=[r.createElementVNode("span",null,"...",-1)],As=["disabled"],Ps=["disabled"],Ns={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=nt("paginator"),{page:a,pageCount:s,range:i,goTo:l,pageStep:c}=us({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:u=>e("change",u)});return(u,p)=>r.unref(s)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(o))},[r.createElementVNode("button",{type:"button",disabled:r.unref(a)===1,onClick:p[0]||(p[0]=m=>r.unref(c)(-1))},[r.renderSlot(u.$slots,"prev",{},()=>[r.createVNode(r.unref(hs),{class:"icon paginator-left"})])],8,_s),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(a)===1,onClick:p[1]||(p[1]=m=>r.unref(l)(1))},"1",8,Ts)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ks,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),m=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:m,class:r.normalizeClass({"is-active":m===r.unref(a)}),disabled:m===r.unref(a),onClick:d=>r.unref(l)(m)},r.toDisplayString(m),11,$s))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Os,Es)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[2]||(p[2]=m=>r.unref(l)(r.unref(s)))},r.toDisplayString(r.unref(s)),9,As)),r.createElementVNode("button",{type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[3]||(p[3]=r.withModifiers(m=>r.unref(c)(1),["prevent"]))},[r.renderSlot(u.$slots,"next",{},()=>[r.createVNode(r.unref(ws),{class:"icon paginator-left"})])],8,Ps)],2)):r.createCommentVNode("",!0)}},ke={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=nt("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",p="week",m="month",d="quarter",f="year",h="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var T=["th","st","nd","rd"],_=E%100;return"["+E+(T[(_-20)%10]||T[_]||T[0])+"]"}},A=function(E,T,_){var O=String(E);return!O||O.length>=T?E:""+Array(T+1-O.length).join(_)+E},x={s:A,z:function(E){var T=-E.utcOffset(),_=Math.abs(T),O=Math.floor(_/60),S=_%60;return(T<=0?"+":"-")+A(O,2,"0")+":"+A(S,2,"0")},m:function E(T,_){if(T.date()<_.date())return-E(_,T);var O=12*(_.year()-T.year())+(_.month()-T.month()),S=T.clone().add(O,m),P=_-S<0,v=T.clone().add(O+(P?-1:1),m);return+(-(O+(_-S)/(P?S-v:v-S))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:f,w:p,d:u,D:h,h:c,m:l,s:i,ms:s,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",B={};B[D]=$;var R=function(E){return E instanceof I},F=function E(T,_,O){var S;if(!T)return D;if(typeof T=="string"){var P=T.toLowerCase();B[P]&&(S=P),_&&(B[P]=_,S=P);var v=T.split("-");if(!S&&v.length>1)return E(v[0])}else{var M=T.name;B[M]=T,S=M}return!O&&S&&(D=S),S||!O&&D},L=function(E,T){if(R(E))return E.clone();var _=typeof T=="object"?T:{};return _.date=E,_.args=arguments,new I(_)},N=x;N.l=F,N.i=R,N.w=function(E,T){return L(E,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var I=function(){function E(_){this.$L=F(_.locale,null,!0),this.parse(_)}var T=E.prototype;return T.parse=function(_){this.$d=function(O){var S=O.date,P=O.utc;if(S===null)return new Date(NaN);if(N.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var v=S.match(y);if(v){var M=v[2]-1||0,j=(v[7]||"0").substring(0,3);return P?new Date(Date.UTC(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)):new Date(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)}}return new Date(S)}(_),this.$x=_.x||{},this.init()},T.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},T.$utils=function(){return N},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(_,O){var S=L(_);return this.startOf(O)<=S&&S<=this.endOf(O)},T.isAfter=function(_,O){return L(_)<this.startOf(O)},T.isBefore=function(_,O){return this.endOf(O)<L(_)},T.$g=function(_,O,S){return N.u(_)?this[O]:this.set(S,_)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(_,O){var S=this,P=!!N.u(O)||O,v=N.p(_),M=function($t,Z){var ft=N.w(S.$u?Date.UTC(S.$y,Z,$t):new Date(S.$y,Z,$t),S);return P?ft:ft.endOf(u)},j=function($t,Z){return N.w(S.toDate()[$t].apply(S.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(Z)),S)},G=this.$W,U=this.$M,dt=this.$D,at="set"+(this.$u?"UTC":"");switch(v){case f:return P?M(1,0):M(31,11);case m:return P?M(1,U):M(0,U+1);case p:var Bt=this.$locale().weekStart||0,It=(G<Bt?G+7:G)-Bt;return M(P?dt-It:dt+(6-It),U);case u:case h:return j(at+"Hours",0);case c:return j(at+"Minutes",1);case l:return j(at+"Seconds",2);case i:return j(at+"Milliseconds",3);default:return this.clone()}},T.endOf=function(_){return this.startOf(_,!1)},T.$set=function(_,O){var S,P=N.p(_),v="set"+(this.$u?"UTC":""),M=(S={},S[u]=v+"Date",S[h]=v+"Date",S[m]=v+"Month",S[f]=v+"FullYear",S[c]=v+"Hours",S[l]=v+"Minutes",S[i]=v+"Seconds",S[s]=v+"Milliseconds",S)[P],j=P===u?this.$D+(O-this.$W):O;if(P===m||P===f){var G=this.clone().set(h,1);G.$d[M](j),G.init(),this.$d=G.set(h,Math.min(this.$D,G.daysInMonth())).$d}else M&&this.$d[M](j);return this.init(),this},T.set=function(_,O){return this.clone().$set(_,O)},T.get=function(_){return this[N.p(_)]()},T.add=function(_,O){var S,P=this;_=Number(_);var v=N.p(O),M=function(U){var dt=L(P);return N.w(dt.date(dt.date()+Math.round(U*_)),P)};if(v===m)return this.set(m,this.$M+_);if(v===f)return this.set(f,this.$y+_);if(v===u)return M(1);if(v===p)return M(7);var j=(S={},S[l]=o,S[c]=a,S[i]=n,S)[v]||1,G=this.$d.getTime()+_*j;return N.w(G,this)},T.subtract=function(_,O){return this.add(-1*_,O)},T.format=function(_){var O=this,S=this.$locale();if(!this.isValid())return S.invalidDate||g;var P=_||"YYYY-MM-DDTHH:mm:ssZ",v=N.z(this),M=this.$H,j=this.$m,G=this.$M,U=S.weekdays,dt=S.months,at=function(Z,ft,ve,te){return Z&&(Z[ft]||Z(O,P))||ve[ft].slice(0,te)},Bt=function(Z){return N.s(M%12||12,Z,"0")},It=S.meridiem||function(Z,ft,ve){var te=Z<12?"AM":"PM";return ve?te.toLowerCase():te},$t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:N.s(G+1,2,"0"),MMM:at(S.monthsShort,G,dt,3),MMMM:at(dt,G),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:at(S.weekdaysMin,this.$W,U,2),ddd:at(S.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(M),HH:N.s(M,2,"0"),h:Bt(1),hh:Bt(2),a:It(M,j,!0),A:It(M,j,!1),m:String(j),mm:N.s(j,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:v};return P.replace(k,function(Z,ft){return ft||$t[Z]||v.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(_,O,S){var P,v=N.p(O),M=L(_),j=(M.utcOffset()-this.utcOffset())*o,G=this-M,U=N.m(this,M);return U=(P={},P[f]=U/12,P[m]=U,P[d]=U/3,P[p]=(G-j)/6048e5,P[u]=(G-j)/864e5,P[c]=G/a,P[l]=G/o,P[i]=G/n,P)[v]||G,S?U:N.a(U)},T.daysInMonth=function(){return this.endOf(m).$D},T.$locale=function(){return B[this.$L]},T.locale=function(_,O){if(!_)return this.$L;var S=this.clone(),P=F(_,O,!0);return P&&(S.$L=P),S},T.clone=function(){return N.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},E}(),H=I.prototype;return L.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",h]].forEach(function(E){H[E[1]]=function(T){return this.$g(T,E[0],E[1])}}),L.extend=function(E,T){return E.$i||(E(T,I,L),E.$i=!0),L},L.locale=F,L.isDayjs=R,L.unix=function(E){return L(1e3*E)},L.en=B[D],L.Ls=B,L.p={},L})})(Wn);var Kn=Wn.exports;const W=bt(Kn);var Zn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},c.utc=function(g){var y=l(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var p=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else p.call(this)};var m=c.utcOffset;c.utcOffset=function(g,y){var k=this.$utils().u;if(k(g))return this.$u?0:k(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(D){D===void 0&&(D="");var B=D.match(o);if(!B)return null;var R=(""+B[0]).match(a)||["-",0,0],F=R[0],L=60*+R[1]+ +R[2];return L===0?0:F==="+"?L:-L}(g),g===null))return this;var $=Math.abs(g)<=16?60*g:g,A=this;if(y)return A.$offset=$,A.$u=g===0,A;if(g!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add($+x,n)).$offset=$,A.$x.$localOffset=x}else A=this.utc();return A};var d=c.format;c.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,y)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var f=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=c.diff;c.diff=function(g,y,k){if(g&&this.$u===g.$u)return h.call(this,g,y,k);var $=this.local(),A=l(g).local();return h.call($,A,y,k)}}})})(Zn);var vs=Zn.exports;const xs=bt(vs);var qn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(d,f,h){h===void 0&&(h={});var g=new Date(d),y=function(k,$){$===void 0&&($={});var A=$.timeZoneName||"short",x=k+"|"+A,D=o[x];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:k,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:A}),o[x]=D),D}(f,h);return y.formatToParts(g)},u=function(d,f){for(var h=c(d,f),g=[],y=0;y<h.length;y+=1){var k=h[y],$=k.type,A=k.value,x=n[$];x>=0&&(g[x]=parseInt(A,10))}var D=g[3],B=D===24?0:D,R=g[0]+"-"+g[1]+"-"+g[2]+" "+B+":"+g[4]+":"+g[5]+":000",F=+d;return(i.utc(R).valueOf()-(F-=F%1e3))/6e4},p=s.prototype;p.tz=function(d,f){d===void 0&&(d=l);var h=this.utcOffset(),g=this.toDate(),y=g.toLocaleString("en-US",{timeZone:d}),k=Math.round((g-new Date(y))/1e3/60),$=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-k,!0);if(f){var A=$.utcOffset();$=$.add(h-A,"minute")}return $.$x.$timezone=d,$},p.offsetName=function(d){var f=this.$x.$timezone||i.tz.guess(),h=c(this.valueOf(),f,{timeZoneName:d}).find(function(g){return g.type.toLowerCase()==="timezonename"});return h&&h.value};var m=p.startOf;p.startOf=function(d,f){if(!this.$x||!this.$x.$timezone)return m.call(this,d,f);var h=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return m.call(h,d,f).tz(this.$x.$timezone,!0)},i.tz=function(d,f,h){var g=h&&f,y=h||f||l,k=u(+i(),y);if(typeof d!="string")return i(d).tz(y);var $=function(B,R,F){var L=B-60*R*1e3,N=u(L,F);if(R===N)return[L,R];var I=u(L-=60*(N-R)*1e3,F);return N===I?[L,N]:[B-60*Math.min(N,I)*1e3,Math.max(N,I)]}(i.utc(d,g).valueOf(),k,y),A=$[0],x=$[1],D=i(A).utcOffset(x);return D.$x.$timezone=y,D},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){l=d}}})})(qn);var Ds=qn.exports;const Ls=bt(Ds);var Xn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),p=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(p)}}})})(Xn);var Ms=Xn.exports;const Cs=bt(Ms);var Jn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(Jn);var Bs=Jn.exports;const Is=bt(Bs);var Qn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),p=a(i),m=(c=c||"()")[0]==="(",d=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(d?this.isBefore(p,l):!this.isAfter(p,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(d?this.isAfter(p,l):!this.isBefore(p,l))}}})})(Qn);var zs=Qn.exports;const Vs=bt(zs);var tr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,p=function(m,d){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,h,g){var y=g&&g.toUpperCase();return h||d[g]||n[g]||d[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,$,A){return $||A.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,p)}}})})(tr);var Rs=tr.exports;const Gs=bt(Rs);var js={exports:{}};(function(t,e){(function(n,o){t.exports=o(Kn)})(ut,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(js),W.extend(xs),W.extend(Ls),W.extend(Cs),W.extend(Gs),W.extend(Is),W.extend(Vs);const er=()=>W.tz.guess(),kt=(t="",e="",n="",o="hu")=>(n=n||W.tz.guess(),W(t).isValid()?W(t).tz(n).locale(o).format(e):""),Mt=(t="",e="",n="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const a=new Intl.DateTimeFormat(Fs(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},Fs=t=>wn.get(t),$e=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},nr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},rr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},or=(t,e="day")=>W().isSameOrBefore(W(t),e),Ys=(t,e,n)=>W(t).isBetween(e,W(n)),Hs=(t,e,n="month")=>W(t).isSame(e,n),Us=["onClick"],Ws={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,{t:o}=it(),a=nt("timezone-selector"),s=r.computed(()=>Mt(new Date,null,n.locale)),i=er(),l=r.computed(()=>Array.from(_n.values()).map(u=>({...u,isActive:Mt(new Date,n.currentZone,n.locale)===Mt(new Date,u.timezone,n.locale),zoneOffsetName:Mt(new Date,u.timezone,n.locale)}))),c=u=>e("change",u);return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(pn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=r.withModifiers(m=>c(r.unref(i)),["prevent"]))},r.toDisplayString(s.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,m=>(r.openBlock(),r.createElementBlock("a",{key:m.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":m.isActive}),onClick:r.withModifiers(d=>c(m.timezone),["prevent"])},r.toDisplayString(r.unref(o)(`common.${m.countryLabelKey}`))+" ("+r.toDisplayString(m.zoneOffsetName)+") ",11,Us))),128))],2))}},Oe=(t,e="",n={})=>{const o=r.ref(""),{t:a}=it(),s=r.computed(()=>{if(r.unref(e))try{const c=ar(r.unref(t),r.unref(e));return qo(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>pt(i,s.value)),error:o}},ar=(t,e="")=>{const n=pt(Kt,At(",",e)),o=mt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n};class Ee extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Ct={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Ks={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Zs={class:"is-portrait-image"},qs={class:"is-team-name-long"},Xs={class:"is-team-name-short"},Js={class:"is-team-name-long"},Qs={class:"is-team-name-short"},ti={class:"is-team-name-long"},ei={class:"is-team-name-short"},ni=["href"],ri={class:"is-team-name-long"},oi={class:"is-team-name-short"},ai=["href"],si={key:0,class:"is-text-dark"},ii=["href","target"],li={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),{onError:s}=_e(),{columns:i,error:l}=Oe(o,a,r.computed(()=>({offsetName:n.offsetName})));l.value&&s(new Ee(Ct.message,{...Ct.options,cause:{column:l.value}}));const c=u=>e("sort",u);return(u,p)=>(r.openBlock(),r.createBlock(ke,null,{default:r.withCtx(({el:m})=>[r.createVNode(we,{columns:r.unref(i),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:c},r.createSlots({"cell-index":r.withCtx(({row:d})=>[r.createElementVNode("span",{class:r.normalizeClass(d.indexClass)},r.toDisplayString(d.index),3)]),"cell-playerPortrait":r.withCtx(({row:d})=>[r.createElementVNode("div",Zs,[(r.openBlock(),r.createBlock(yt,{key:d.player.playerId,src:d.player.picture,"default-src":r.unref(yn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image",key:((f=d.team)==null?void 0:f.id)??d.id,src:(h=d.team)==null?void 0:h.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:(f=d.homeTeam)==null?void 0:f.id,src:(h=d.homeTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:(f=d.awayTeam)==null?void 0:f.id,src:(h=d.awayTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",qs,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",Xs,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",Js,r.toDisplayString((f=d.homeTeam)==null?void 0:f.longName),1),r.createElementVNode("span",Qs,r.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",ti,r.toDisplayString((f=d.awayTeam)==null?void 0:f.longName),1),r.createElementVNode("span",ei,r.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":r.withCtx(({row:d})=>{var f;return[r.createTextVNode(r.toDisplayString(((f=d.location)==null?void 0:f.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",si,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,ii))]),loading:r.withCtx(()=>[r.createVNode(Te)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:d})=>{var f,h,g;return[r.createElementVNode("a",{href:t.externalTeamResolver((f=d.team)==null?void 0:f.longName),target:"_blank"},[r.createElementVNode("span",ri,r.toDisplayString((h=d.team)==null?void 0:h.longName),1),r.createElementVNode("span",oi,r.toDisplayString((g=d.team)==null?void 0:g.shortName),1)],8,ni)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:d})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(d.id),target:"_blank"},r.toDisplayString(d.name),9,ai)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},sr={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},ci={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:C}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:C},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},ui={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},di={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shoots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shoots",direction:b}]},shootPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},fi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},mi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},pi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},hi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},gi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},yi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},bi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:C}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:C}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:C}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},ir=async(t,e,n)=>{const o=`${hn}${r.unref(t)}?${Si(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":wi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Si=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),wi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},_i=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(e),i=u=>or(u,"day");return br(n,()=>{if(!a)return;const u=Lo(Jo(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Ti=({options:t={},transform:e=a=>a,onError:n=rt,onSuccess:o=rt})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:p,isLoading:m,execute:d}=Ie(()=>ir(a,s,r.unref(i)).then(f=>e(f)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:p,isLoading:m,execute:d}};/*! *****************************************************************************
8
+ var MjszVbrElementsCore=function(w,r){"use strict";const nt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,xe={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=nt("base-input"),a=r.computed({get:()=>n.modelValue,set:s=>e("update:modelValue",s)});return(s,i)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),class:r.normalizeClass([r.unref(o),"is-select"])},[r.renderSlot(s.$slots,"default")],2)),[[r.vModelSelect,a.value]])}};function De(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():r.unref(t)}const zt=typeof window<"u",rt=()=>{},hr=gr();function gr(){var t;return zt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function ee(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function ne(t,e=!1){function n(m,{flush:d="sync",deep:f=!1,timeout:h,throwOnTimeout:g}={}){let y=null;const $=[new Promise(A=>{y=r.watch(t,x=>{m(x)!==e&&(y==null||y(),A(x))},{flush:d,deep:f,immediate:!0})})];return h!=null&&$.push(ee(h,g).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(m,d){if(!r.isRef(m))return n(x=>x===m,d);const{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:y}=d??{};let k=null;const A=[new Promise(x=>{k=r.watch([t,m],([D,B])=>{e!==(D===B)&&(k==null||k(),x(D))},{flush:f,deep:h,immediate:!0})})];return g!=null&&A.push(ee(g,y).then(()=>tt(t)).finally(()=>(k==null||k(),tt(t)))),Promise.race(A)}function a(m){return n(d=>!!d,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,d){return n(f=>{const h=Array.from(f);return h.includes(m)||h.includes(tt(m))},d)}function u(m){return p(1,m)}function p(m=1,d){let f=-1;return n(()=>(f+=1,f>=m),d)}return Array.isArray(tt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:p,get not(){return ne(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:p,get not(){return ne(t,!e)}}}function yr(t){return ne(t)}function br(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},tt(e))}return o&&(a.value=!0,zt&&c()),De(l),{isPending:r.readonly(a),start:c,stop:l}}function Sr(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n)}function wr(t,e,n){return r.watch(t,(o,a,s)=>{o&&e(o,a,s)},n)}function Ot(t){var e;const n=tt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Le=zt?window:void 0,_r=zt?window.document:void 0;function Vt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Le):[e,n,o,a]=t,!e)return rt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(p=>p()),s.length=0},l=(p,m,d,f)=>(p.addEventListener(m,d,f),()=>p.removeEventListener(m,d,f)),c=r.watch(()=>[Ot(e),tt(a)],([p,m])=>{i(),p&&s.push(...n.flatMap(d=>o.map(f=>l(p,d,f,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return De(u),u}let Me=!1;function Tr(t,e,n={}){const{window:o=Le,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;hr&&!Me&&(Me=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",rt)));let l=!0;const c=d=>a.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(h=>h===d.target||d.composedPath().includes(h));{const h=Ot(f);return h&&(d.target===h||d.composedPath().includes(h))}}),p=[Vt(o,"click",d=>{const f=Ot(t);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:s}),Vt(o,"pointerdown",d=>{const f=Ot(t);f&&(l=!d.composedPath().includes(f)&&!c(d))},{passive:!0}),i&&Vt(o,"blur",d=>{var f;const h=Ot(t);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&e(d)})].filter(Boolean);return()=>p.forEach(d=>d())}var kr=Object.defineProperty,$r=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,Be=(t,e,n)=>e in t?kr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pr=(t,e)=>{for(var n in e||(e={}))Er.call(e,n)&&Be(t,n,e[n]);if(Ce)for(var n of Ce(e))Ar.call(e,n)&&Be(t,n,e[n]);return t},Nr=(t,e)=>$r(t,Or(e));function Ie(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=rt,onSuccess:i=rt,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},p=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),d=r.ref(!1),f=r.shallowRef(void 0);async function h(k=0,...$){l&&(p.value=e),f.value=void 0,m.value=!1,d.value=!0,k>0&&await ee(k);const A=typeof t=="function"?t(...$):t;try{const x=await A;p.value=x,m.value=!0,i(x)}catch(x){if(f.value=x,s(x),u)throw x}finally{d.value=!1}return p.value}o&&h(a);const g={state:p,isReady:m,isLoading:d,error:f,execute:h};function y(){return new Promise((k,$)=>{yr(d).toBe(!1).then(()=>k(g)).catch($)})}return Nr(Pr({},g),{then(k,$){return y().then(k,$)}})}function vr({document:t=_r}={}){if(!t)return r.ref("visible");const e=r.ref(t.visibilityState);return Vt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var xr=Object.defineProperty,ze=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Ve=(t,e,n)=>e in t?xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mr=(t,e)=>{for(var n in e||(e={}))Dr.call(e,n)&&Ve(t,n,e[n]);if(ze)for(var n of ze(e))Lr.call(e,n)&&Ve(t,n,e[n]);return t};async function Cr(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),o.onload=()=>e(o),o.onerror=n})}function Br(t,e={}){const n=Ie(()=>Cr(tt(t)),void 0,Mr({resetOnExecute:!0},e));return r.watch(()=>tt(t),()=>n.execute(e.delay),{deep:!0}),n}function Re(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=br(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function z(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Y(t){return function e(n){return arguments.length===0||z(n)?e:t.apply(this,arguments)}}function V(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return z(n)?e:Y(function(a){return t(n,a)});default:return z(n)&&z(o)?e:z(n)?Y(function(a){return t(a,o)}):z(o)?Y(function(a){return t(n,a)}):t(n,o)}}}function Rt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,p){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,p,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function re(t,e,n){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!z(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,z(l)||(s-=1),i+=1}return s<=0?n.apply(this,o):Rt(s,re(t,o,n))}}var Gt=V(function(e,n){return e===1?Y(n):Rt(e,re(e,[],n))});function st(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return z(n)?e:V(function(s,i){return t(n,s,i)});case 2:return z(n)&&z(o)?e:z(n)?V(function(s,i){return t(s,o,i)}):z(o)?V(function(s,i){return t(n,s,i)}):Y(function(s){return t(n,o,s)});default:return z(n)&&z(o)&&z(a)?e:z(n)&&z(o)?V(function(s,i){return t(s,i,a)}):z(n)&&z(a)?V(function(s,i){return t(s,o,i)}):z(o)&&z(a)?V(function(s,i){return t(n,s,i)}):z(n)?Y(function(s){return t(s,o,a)}):z(o)?Y(function(s){return t(n,s,a)}):z(a)?Y(function(s){return t(n,o,s)}):t(n,o,a)}}}const jt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Ir(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Ft(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!jt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Ir(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function Ge(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const St={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function je(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function Fe(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function zr(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Vr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const oe=typeof Object.is=="function"?Object.is:Vr;var Ye=Object.prototype.toString,He=function(){return Ye.call(arguments)==="[object Arguments]"?function(e){return Ye.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Rr=!{toString:null}.propertyIsEnumerable("toString"),Ue=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],We=function(){return arguments.propertyIsEnumerable("length")}(),Gr=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},mt=Y(typeof Object.keys=="function"&&!We?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=We&&He(e);for(n in e)et(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Rr)for(o=Ue.length-1;o>=0;)n=Ue[o],et(n,e)&&!Gr(a,n)&&(a[a.length]=n),o-=1;return a}),ae=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Ke(t,e,n,o){var a=je(t),s=je(e);function i(l,c){return se(l,c,n.slice(),o.slice())}return!Fe(function(l,c){return!Fe(i,c,l)},s,a)}function se(t,e,n,o){if(oe(t,e))return!0;var a=ae(t);if(a!==ae(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&zr(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&oe(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!oe(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:Ke(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:Ke(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=mt(t);if(i.length!==mt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(et(u,e)&&se(e[u],t[u],l,c)))return!1;s-=1}return!0}var Yt=V(function(e,n){return se(e,n,[],[])});function jr(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Yt(t[n],e))return n;n+=1}return-1}function Ze(t,e){return jr(e,t,0)>=0}function Ht(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function ie(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Et=function(e){return(e<10?"0":"")+e},Fr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Et(e.getUTCMonth()+1)+"-"+Et(e.getUTCDate())+"T"+Et(e.getUTCHours())+":"+Et(e.getUTCMinutes())+":"+Et(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Yr(t){return function(){return!t.apply(this,arguments)}}function qe(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Hr(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Ut(t){return Object.prototype.toString.call(t)==="[object Object]"}var Ur=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Wr(t){return function(e){return new Ur(t,e)}}var Xe=V(Ft(["fantasy-land/filter","filter"],Wr,function(t,e){return Ut(e)?qe(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},mt(e)):Hr(t,e)})),Kr=V(function(e,n){return Xe(Yr(e),n)});function Je(t,e){var n=function(i){var l=e.concat([t]);return Ze(i,l)?"<Circular>":Je(i,l)},o=function(s,i){return Ht(function(l){return ie(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(n,t).join(", ")+"))";case"[object Array]":return"["+Ht(n,t).concat(o(t,Kr(function(s){return/^\d+$/.test(s)},mt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):ie(Fr(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":ie(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,mt(t)).join(", ")+"}"}}var le=Y(function(e){return Je(e,[])}),Zr=V(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=le(e),l=o(i,le(n));return l!==void 0&&l===i?e:n}),qr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),Xr=function(e){return function(n){return new qr(e,n)}},Jr=V(Ft(["fantasy-land/map","map"],Xr,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Gt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return qe(function(o,a){return o[a]=e(n[a]),o},{},mt(n));default:return Ht(e,n)}}));const pt=Jr,Qe=Number.isInteger||function(e){return e<<0===e};function Wt(t){return Object.prototype.toString.call(t)==="[object String]"}var tn=V(function(e,n){var o=e<0?n.length+e:e;return Wt(n)?n.charAt(o):n[o]}),Qr=V(function(e,n){if(n!=null)return Qe(e)?tn(e,n):n[e]});const wt=Qr;var to=V(function(e,n){return pt(wt(e),n)}),eo=Y(function(e){return jt(e)?!0:!e||typeof e!="object"||Wt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),en=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function no(t,e,n){return function(a,s,i){if(eo(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[en]!=null)return n(a,s,i[en]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ro(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var oo=V(function(e,n){return Rt(e.length,function(){return e.apply(n,arguments)})});function ao(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function so(t,e,n,o){return t["@@transducer/result"](n[o](oo(t["@@transducer/step"],t),e))}var nn=no(ro,so,ao),io=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function rn(t){return new io(t)}var lo=st(function(t,e,n){return nn(typeof t=="function"?rn(t):t,e,n)});const on=lo;var co=Y(function(e){return function(){return e}});const an=co;var uo=Y(function(e){return Gt(on(Zr,0,to("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})});const fo=uo;var mo=st(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});const ce=mo;function po(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function ho(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function ue(t,e,n){if(n||(n=new yo),go(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?ue(t[l],!0,n):t[l]);return s};switch(ae(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return ho(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function go(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var yo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){let n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const n=this.hash(e),o=this.map[n];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function bo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function de(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return jt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var So=st(de("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),wo=Y(de("tail",So(1,1/0)));const _o=wo;function fe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Rt(arguments[0].length,on(bo,arguments[0],_o(arguments)))}var To=Y(function(e){return Wt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const ko=To;function sn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return fe.apply(this,ko(arguments))}var $o=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(et(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,ue(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Oo(t,e,n){return function(o){return new $o(t,e,n,o)}}var Eo=re(4,[],Ft([],Oo,function(e,n,o,a){var s=rn(function(i,l){var c=o(l),u=e(et(c,i)?i[c]:ue(n,!1),l);return u&&u["@@transducer/reduced"]?Ge(i):(i[c]=u,i)});return nn(s,{},a)})),Ao=st(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});const Po=Ao;function No(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var vo=Y(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():jt(e)?[]:Wt(e)?"":Ut(e)?{}:He(e)?function(){return arguments}():No(e)?e.constructor.from(""):void 0}),xo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=Ge(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Do(t){return function(e){return new xo(t,e)}}var Lo=V(Ft([],Do,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1}));const Mo=Lo;var Co=V(de("groupBy",Eo(function(t,e){return t.push(e),t},[])));const Bo=Co;var Io=st(function(e,n,o){return Gt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const zo=Io;var Vo=V(Ze);const Ro=Vo;var Go=V(function(e,n){return Gt(e+1,function(){var o=arguments[e];if(o!=null&&po(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(le(o)+' does not have a method named "'+n+'"')})});const ln=Go;var jo=Y(function(e){return e!=null&&Yt(e,vo(e))});const Fo=jo;var Yo=V(function(e,n){return e.map(function(o){for(var a=n,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=Qe(i)?tn(i,a):a[i],s+=1}return a})}),Ho=V(function(e,n){return Yo([e],n)[0]});const cn=Ho;var Uo=st(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)et(s,n)&&(a[s]=et(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)et(s,o)&&!et(s,a)&&(a[s]=o[s]);return a}),Wo=st(function t(e,n,o){return Uo(function(a,s,i){return Ut(s)&&Ut(i)?t(e,s,i):e(a,s,i)},n,o)}),Ko=V(function(e,n){return Wo(function(o,a,s){return s},e,n)});const Zo=Ko;var qo=V(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o});const Xo=qo;var Jo=st(function(e,n,o){return e(wt(n,o))});const Qo=Jo;var ta=V(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const un=ta;var ea=ln(1,"split");const At=ea;var na=ln(0,"toLowerCase");const dn=na;var Pt=`
9
+ \v\f\r                 \u2028\u2029\uFEFF`,ra="​",oa=typeof String.prototype.trim=="function",aa=Y(!oa||Pt.trim()||!ra.trim()?function(e){var n=new RegExp("^["+Pt+"]["+Pt+"]*"),o=new RegExp("["+Pt+"]["+Pt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Kt=aa,fn=Symbol("I18nContext"),K=r.reactive({messages:{},locale:"",fallbackLocale:""}),mn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=n;const o=(c,u={})=>{const p=!Fo(u),m=pt(Kt,At(".",c));return r.computed(()=>{const f=pn(m);return p?ia(f,u):f}).value},a=c=>{const u=pt(Kt,At(".",c));return!!me(K.locale,u,K.messages)},s=c=>{K.locale=c},l={locale:r.computed({get(){return K.locale},set(c){K.locale=c}}),setLocale:s,translate:o,hasTranlation:a};return r.provide(fn,l),{translate:o}},it=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=sa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},sa=()=>{const t=r.inject(fn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},pn=(t=[])=>{let e=me(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=me(K.fallbackLocale,t,K.messages)),e||t.join(".")};function me(t,e,n){return cn([t,...e],n)}const ia=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},hn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=pt(Kt,At(".",t.path)),o=pn(n),a=At(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),gn="https://api.icehockey.hu/vbr",yn="https://www.jegkorongszovetseg.hu/event/game/",bn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",Sn="https://www.ersteliga.hu/stats/player/",wn="https://www.ersteliga.hu/stats/team/",ot="original",b="descend",C="ascend",_n=new Map().set("hu","hu-hu").set("en","hu-gb"),Tn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),la=1e3*60*5,kn=1e3,ca={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},ua=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),da=[ua];function fa(t,e){return r.openBlock(),r.createElementBlock("svg",ca,da)}const $n={render:fa},ma={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},pa=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ha=[pa];function ga(t,e){return r.openBlock(),r.createElementBlock("svg",ma,ha)}const ya={render:ga},ba={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Sa=r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),wa=[Sa];function _a(t,e){return r.openBlock(),r.createElementBlock("svg",ba,wa)}const Ta={render:_a};function Nt(t){return t.split("-")[1]}function pe(t){return t==="y"?"height":"width"}function ht(t){return t.split("-")[0]}function vt(t){return["top","bottom"].includes(ht(t))?"x":"y"}function On(t,e,n){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=vt(e),c=pe(l),u=o[c]/2-a[c]/2,p=l==="x";let m;switch(ht(e)){case"top":m={x:s,y:o.y-a.height};break;case"bottom":m={x:s,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:i};break;case"left":m={x:o.x-a.width,y:i};break;default:m={x:o.x,y:o.y}}switch(Nt(e)){case"start":m[l]-=u*(n&&p?-1:1);break;case"end":m[l]+=u*(n&&p?-1:1)}return m}const ka=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:p,y:m}=On(u,o,c),d=o,f={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:k}=l[g],{x:$,y:A,data:x,reset:D}=await k({x:p,y:m,initialPlacement:o,placement:d,strategy:a,middlewareData:f,rects:u,platform:i,elements:{reference:t,floating:e}});p=$??p,m=A??m,f={...f,[y]:{...f[y],...x}},D&&h<=50&&(h++,typeof D=="object"&&(D.placement&&(d=D.placement),D.rects&&(u=D.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):D.rects),{x:p,y:m}=On(u,d,c)),g=-1)}return{x:p,y:m,placement:d,strategy:a,middlewareData:f}};function En(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function An(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:d=!1,padding:f=0}=e,h=En(f),g=l[d?m==="floating"?"reference":"floating":m],y=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),k=m==="floating"?{...i.floating,x:o,y:a}:i.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement($))&&await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1},x=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:$,strategy:c}):k);return{top:(y.top-x.top+h.top)/A.y,bottom:(x.bottom-y.bottom+h.bottom)/A.y,left:(y.left-x.left+h.left)/A.x,right:(x.right-y.right+h.right)/A.x}}const $a=Math.min,Oa=Math.max;function he(t,e,n){return Oa(t,$a(e,n))}const Pn=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:c,elements:u}=e;if(n==null)return{};const p=En(o),m={x:a,y:s},d=vt(i),f=pe(d),h=await c.getDimensions(n),g=d==="y",y=g?"top":"left",k=g?"bottom":"right",$=g?"clientHeight":"clientWidth",A=l.reference[f]+l.reference[d]-m[d]-l.floating[f],x=m[d]-l.reference[d],D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n));let B=D?D[$]:0;B&&await(c.isElement==null?void 0:c.isElement(D))||(B=u.floating[$]||l.floating[f]);const R=A/2-x/2,F=p[y],L=B-h[f]-p[k],N=B/2-h[f]/2+R,I=he(F,N,L),H=Nt(i)!=null&&N!=I&&l.reference[f]/2-(N<F?p[y]:p[k])-h[f]/2<0;return{[d]:m[d]-(H?N<F?F-N:L-N:0),data:{[d]:I,centerOffset:N-I}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Ea={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(t){return t.replace(/left|right|bottom|top/g,e=>Ea[e])}function Aa(t,e,n){n===void 0&&(n=!1);const o=Nt(t),a=vt(t),s=pe(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=qt(i)),{main:i,cross:qt(i)}}const Pa={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,e=>Pa[e])}const Na=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=t,y=ht(o),k=ht(i)===i,$=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=m||(k||!h?[qt(i)]:function(I){const H=qt(I);return[ge(I),H,ge(H)]}(i));m||f==="none"||A.push(...function(I,H,E,T){const _=Nt(I);let O=function(S,P,v){const M=["left","right"],j=["right","left"],G=["top","bottom"],U=["bottom","top"];switch(S){case"top":case"bottom":return v?P?j:M:P?M:j;case"left":case"right":return P?G:U;default:return[]}}(ht(I),E==="start",T);return _&&(O=O.map(S=>S+"-"+_),H&&(O=O.concat(O.map(ge)))),O}(i,h,f,$));const x=[i,...A],D=await An(e,g),B=[];let R=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&B.push(D[y]),p){const{main:I,cross:H}=Aa(o,s,$);B.push(D[I],D[H])}if(R=[...R,{placement:o,overflows:B}],!B.every(I=>I<=0)){var F,L;const I=(((F=a.flip)==null?void 0:F.index)||0)+1,H=x[I];if(H)return{data:{index:I,overflows:R},reset:{placement:H}};let E=(L=R.filter(T=>T.overflows[0]<=0).sort((T,_)=>T.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!E)switch(d){case"bestFit":{var N;const T=(N=R.map(_=>[_.placement,_.overflows.filter(O=>O>0).reduce((O,S)=>O+S,0)]).sort((_,O)=>_[1]-O[1])[0])==null?void 0:N[0];T&&(E=T);break}case"initialPlacement":E=i}if(o!==E)return{reset:{placement:E}}}return{}}}},va=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:o}=e,a=await async function(s,i){const{placement:l,platform:c,elements:u}=s,p=await(c.isRTL==null?void 0:c.isRTL(u.floating)),m=ht(l),d=Nt(l),f=vt(l)==="x",h=["left","top"].includes(m)?-1:1,g=p&&f?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:k,crossAxis:$,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof A=="number"&&($=d==="end"?-1*A:A),f?{x:$*g,y:k*h}:{x:k*h,y:$*g}}(e,t);return{x:n+a.x,y:o+a.y,data:a}}}};function xa(t){return t==="x"?"y":"x"}const Da=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:k,y:$}=y;return{x:k,y:$}}},...c}=t,u={x:n,y:o},p=await An(e,c),m=vt(ht(a)),d=xa(m);let f=u[m],h=u[d];if(s){const y=m==="y"?"bottom":"right";f=he(f+p[m==="y"?"top":"left"],f,f-p[y])}if(i){const y=d==="y"?"bottom":"right";h=he(h+p[d==="y"?"top":"left"],h,h-p[y])}const g=l.fn({...e,[m]:f,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}};function X(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){return X(t).getComputedStyle(t)}function Nn(t){return t instanceof X(t).Node}function lt(t){return Nn(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function q(t){return t instanceof X(t).Element}function vn(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function La(t){return["table","td","th"].includes(lt(t))}function ye(t){const e=be(),n=J(t);return n.transform!=="none"||n.perspective!=="none"||!e&&!!n.backdropFilter&&n.backdropFilter!=="none"||!e&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function be(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Xt(t){return["html","body","#document"].includes(lt(t))}const xn=Math.min,Dt=Math.max,Jt=Math.round;function Dn(t){const e=J(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=Q(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=Jt(n)!==s||Jt(o)!==i;return l&&(n=s,o=i),{width:n,height:o,fallback:l}}function Ln(t){return q(t)?t:t.contextElement}const Mn={x:1,y:1};function _t(t){const e=Ln(t);if(!Q(e))return Mn;const n=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=Dn(e);let i=(s?Jt(n.width):n.width)/o,l=(s?Jt(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Cn={x:0,y:0};function Bn(t,e,n){var o,a;if(e===void 0&&(e=!0),!be())return Cn;const s=t?X(t):window;return!n||e&&n!==s?Cn:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function gt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Ln(t);let i=Mn;e&&(o?q(o)&&(i=_t(o)):i=_t(t));const l=Bn(s,n,o);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,p=a.width/i.x,m=a.height/i.y;if(s){const d=X(s),f=o&&q(o)?X(o):o;let h=d.frameElement;for(;h&&o&&f!==d;){const g=_t(h),y=h.getBoundingClientRect(),k=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(k.paddingLeft))*g.x,y.y+=(h.clientTop+parseFloat(k.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,m*=g.y,c+=y.x,u+=y.y,h=X(h).frameElement}}return Zt({width:p,height:m,x:c,y:u})}function ct(t){return((Nn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qt(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function In(t){return gt(ct(t)).left+Qt(t).scrollLeft}function Tt(t){if(lt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||vn(t)&&t.host||ct(t);return vn(e)?e.host:e}function zn(t){const e=Tt(t);return Xt(e)?e.ownerDocument.body:Q(e)&&xt(e)?e:zn(e)}function Lt(t,e){var n;e===void 0&&(e=[]);const o=zn(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),s=X(o);return a?e.concat(s,s.visualViewport||[],xt(o)?o:[]):e.concat(o,Lt(o))}function Vn(t,e,n){let o;if(e==="viewport")o=function(a,s){const i=X(a),l=ct(a),c=i.visualViewport;let u=l.clientWidth,p=l.clientHeight,m=0,d=0;if(c){u=c.width,p=c.height;const f=be();(!f||f&&s==="fixed")&&(m=c.offsetLeft,d=c.offsetTop)}return{width:u,height:p,x:m,y:d}}(t,n);else if(e==="document")o=function(a){const s=ct(a),i=Qt(a),l=a.ownerDocument.body,c=Dt(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),u=Dt(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let p=-i.scrollLeft+In(a);const m=-i.scrollTop;return J(l).direction==="rtl"&&(p+=Dt(s.clientWidth,l.clientWidth)-c),{width:c,height:u,x:p,y:m}}(ct(t));else if(q(e))o=function(a,s){const i=gt(a,!0,s==="fixed"),l=i.top+a.clientTop,c=i.left+a.clientLeft,u=Q(a)?_t(a):{x:1,y:1};return{width:a.clientWidth*u.x,height:a.clientHeight*u.y,x:c*u.x,y:l*u.y}}(e,n);else{const a=Bn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Zt(o)}function Rn(t,e){const n=Tt(t);return!(n===e||!q(n)||Xt(n))&&(J(n).position==="fixed"||Rn(n,e))}function Gn(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function jn(t,e){const n=X(t);if(!Q(t))return n;let o=Gn(t,e);for(;o&&La(o)&&J(o).position==="static";)o=Gn(o,e);return o&&(lt(o)==="html"||lt(o)==="body"&&J(o).position==="static"&&!ye(o))?n:o||function(a){let s=Tt(a);for(;Q(s)&&!Xt(s);){if(ye(s))return s;s=Tt(s)}return null}(t)||n}function Ma(t,e,n){const o=Q(e),a=ct(e),s=n==="fixed",i=gt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!s)if((lt(e)!=="body"||xt(a))&&(l=Qt(e)),Q(e)){const u=gt(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else a&&(c.x=In(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const Ca={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const s=n==="clippingAncestors"?function(u,p){const m=p.get(u);if(m)return m;let d=Lt(u).filter(y=>q(y)&&lt(y)!=="body"),f=null;const h=J(u).position==="fixed";let g=h?Tt(u):u;for(;q(g)&&!Xt(g);){const y=J(g),k=ye(g);k||y.position!=="fixed"||(f=null),(h?!k&&!f:!k&&y.position==="static"&&f&&["absolute","fixed"].includes(f.position)||xt(g)&&!k&&Rn(u,g))?d=d.filter($=>$!==g):f=y,g=Tt(g)}return p.set(u,d),d}(e,this._c):[].concat(n),i=[...s,o],l=i[0],c=i.reduce((u,p)=>{const m=Vn(e,p,a);return u.top=Dt(m.top,u.top),u.right=xn(m.right,u.right),u.bottom=xn(m.bottom,u.bottom),u.left=Dt(m.left,u.left),u},Vn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const a=Q(n),s=ct(n);if(n===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((lt(n)!=="body"||xt(s))&&(i=Qt(n)),Q(n))){const u=gt(n);l=_t(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+c.x,y:e.y*l.y-i.scrollTop*l.y+c.y}},isElement:q,getDimensions:function(t){return Dn(t)},getOffsetParent:jn,getDocumentElement:ct,getScale:_t,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const a=this.getOffsetParent||jn,s=this.getDimensions;return{reference:Ma(e,await a(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Ba(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,c=a||s?[...q(t)?Lt(t):t.contextElement?Lt(t.contextElement):[],...Lt(e)]:[];c.forEach(d=>{const f=!q(d)&&d.toString().includes("V");!a||l&&!f||d.addEventListener("scroll",n,{passive:!0}),s&&d.addEventListener("resize",n)});let u,p=null;i&&(p=new ResizeObserver(()=>{n()}),q(t)&&!l&&p.observe(t),q(t)||!t.contextElement||l||p.observe(t.contextElement),p.observe(e));let m=l?gt(t):null;return l&&function d(){const f=gt(t);!m||f.x===m.x&&f.y===m.y&&f.width===m.width&&f.height===m.height||n(),m=f,u=requestAnimationFrame(d)}(),n(),()=>{var d;c.forEach(f=>{a&&f.removeEventListener("scroll",n),s&&f.removeEventListener("resize",n)}),(d=p)==null||d.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const Ia=(t,e,n)=>{const o=new Map,a={platform:Ca,...n},s={...a.platform,_c:o};return ka(t,e,{...a,platform:s})},Fn=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function za({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),p=r.ref(null),m=r.ref(null),d=r.ref(n??"absolute"),f=r.ref(null),h=()=>{!s.value||!i.value||Ia(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,d.value=y.strategy,u.value=y.middlewareData.arrow.x,p.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:k})=>{k&&Fn(y,k),h()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return g();f.value=Ba(s.value,i.value,h,{})}},{flush:"post"});const g=()=>{var y;(y=f.value)==null||y.call(f),f.value=null};return{x:l,y:c,arrowX:u,arrowY:p,placement:m,reference:s,floating:i,strategy:d,update:h}}const Va=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?Pn({element:e.value,padding:n}).fn(o):{}:e?Pn({element:e,padding:n}).fn(o):{}}}},Ra=["data-placement"],Se={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:p,strategy:m}=za({placement:e.placement,middleware:[Na(),Da({padding:5}),va(e.offset),Va({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),d=()=>{e.disabled||n.value||(n.value=!0)},f=y=>{n.value&&y&&(n.value=!1)},h=y=>{u.value=y},g={mouseenter:d,mouseleave:f,focus:d,blur:f};return Tr(p,y=>{var k;(k=u.value)!=null&&k.contains(y.target)||f()}),(y,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:h,show:d,hide:f,events:g}),r.createElementVNode("div",{ref_key:"floating",ref:p,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:f},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,Ra)],64))}},Ga=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],ja={key:0},Fa=["colspan"],Ya={key:1},Ha=["colspan"],we={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=Re(o,{delay:kn}),{t:i}=it(),l=nt("table"),c=r.computed(()=>n.columns),u=r.computed(()=>Object.keys(n.columns).length),p=(m,d)=>{m.sortOrders&&e("sort",{target:d,orders:m.sortOrders})};return(m,d)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(l))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(f,h)=>(r.openBlock(),r.createBlock(Se,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:y,hide:k})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ot),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(C)}]),onMouseenter:y,onMouseleave:k,onFocus:y,onBlur:k,onClick:$=>p(f,h),onKeydown:[r.withKeys(r.withModifiers($=>p(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers($=>p(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(m.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref($n),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(ot)?(r.openBlock(),r.createBlock(r.unref($n),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(ya),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(C)?(r.openBlock(),r.createBlock(r.unref(Ta),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,Ga)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(g,y)=>(r.openBlock(),r.createElementBlock("td",{key:y,class:r.normalizeClass([[g.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ot)}])},[r.renderSlot(m.$slots,`cell-${y}`,{row:f,prop:y},()=>[r.createTextVNode(r.toDisplayString(f[y]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",ja,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.loading")),1)])],8,Fa)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",Ya,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.noData")),1)])],8,Ha)])])):r.createCommentVNode("",!0)],2))}},Ua={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Wa=r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),Ka=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Za=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),qa=[Wa,Ka,Za];function Xa(t,e){return r.openBlock(),r.createElementBlock("svg",Ua,qa)}const Ja={render:Xa},Qa={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranlation:o}=it(),a=nt("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(Ja),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Yn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const Hn=Symbol("ErrorProviderContext"),Un=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Yn(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(Hn,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},_e=()=>{const t=ts();return{onError:t.onError,reset:t.reset}},ts=()=>{const t=r.inject(Hn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},es={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=Un();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},ns={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},rs={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Wn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},os=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Zo({hu:ns,en:rs},t.messages),{translate:n}=mn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function as(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const ss=Wn(os,[["render",as]]),is=["src"],ls=["src","title"],yt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=Br(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded",i.$attrs.class])},null,10,is)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title},null,10,ls))],64))}}),cs={style:{"text-align":"center"}},Te={__name:"LoadingIndicator",setup(t){const{t:e}=it();return(n,o)=>(r.openBlock(),r.createElementBlock("div",cs,r.toDisplayString(r.unref(e)("common.loading")),1))}};function us({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=rt}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const p=r.unref(t)-1,m=Array.from({length:s.value},(h,g)=>g+1),d=Math.floor(o/2);let f=Math.max(p-d,0);return f+o>=s.value&&(f=Math.max(s.value-o,0)),m.slice(f,f+o)}),l=p=>{const m=r.unref(t)+p;u(m)&&a(m)},c=p=>{u(p)&&a(p)},u=p=>p<=s.value&&p>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const ds={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},fs=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ms=[fs];function ps(t,e){return r.openBlock(),r.createElementBlock("svg",ds,ms)}const hs={render:ps},gs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ys=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),bs=[ys];function Ss(t,e){return r.openBlock(),r.createElementBlock("svg",gs,bs)}const ws={render:Ss},_s=["disabled"],Ts=["disabled"],ks={key:1,class:"is-disabled"},$s=["disabled","onClick"],Os={key:2,class:"is-disabled"},Es=[r.createElementVNode("span",null,"...",-1)],As=["disabled"],Ps=["disabled"],Ns={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=nt("paginator"),{page:a,pageCount:s,range:i,goTo:l,pageStep:c}=us({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:u=>e("change",u)});return(u,p)=>r.unref(s)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(o))},[r.createElementVNode("button",{type:"button",disabled:r.unref(a)===1,onClick:p[0]||(p[0]=m=>r.unref(c)(-1))},[r.renderSlot(u.$slots,"prev",{},()=>[r.createVNode(r.unref(hs),{class:"icon paginator-left"})])],8,_s),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(a)===1,onClick:p[1]||(p[1]=m=>r.unref(l)(1))},"1",8,Ts)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ks,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),m=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:m,class:r.normalizeClass({"is-active":m===r.unref(a)}),disabled:m===r.unref(a),onClick:d=>r.unref(l)(m)},r.toDisplayString(m),11,$s))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Os,Es)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[2]||(p[2]=m=>r.unref(l)(r.unref(s)))},r.toDisplayString(r.unref(s)),9,As)),r.createElementVNode("button",{type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[3]||(p[3]=r.withModifiers(m=>r.unref(c)(1),["prevent"]))},[r.renderSlot(u.$slots,"next",{},()=>[r.createVNode(r.unref(ws),{class:"icon paginator-left"})])],8,Ps)],2)):r.createCommentVNode("",!0)}},ke={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=nt("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",p="week",m="month",d="quarter",f="year",h="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var T=["th","st","nd","rd"],_=E%100;return"["+E+(T[(_-20)%10]||T[_]||T[0])+"]"}},A=function(E,T,_){var O=String(E);return!O||O.length>=T?E:""+Array(T+1-O.length).join(_)+E},x={s:A,z:function(E){var T=-E.utcOffset(),_=Math.abs(T),O=Math.floor(_/60),S=_%60;return(T<=0?"+":"-")+A(O,2,"0")+":"+A(S,2,"0")},m:function E(T,_){if(T.date()<_.date())return-E(_,T);var O=12*(_.year()-T.year())+(_.month()-T.month()),S=T.clone().add(O,m),P=_-S<0,v=T.clone().add(O+(P?-1:1),m);return+(-(O+(_-S)/(P?S-v:v-S))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:f,w:p,d:u,D:h,h:c,m:l,s:i,ms:s,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",B={};B[D]=$;var R=function(E){return E instanceof I},F=function E(T,_,O){var S;if(!T)return D;if(typeof T=="string"){var P=T.toLowerCase();B[P]&&(S=P),_&&(B[P]=_,S=P);var v=T.split("-");if(!S&&v.length>1)return E(v[0])}else{var M=T.name;B[M]=T,S=M}return!O&&S&&(D=S),S||!O&&D},L=function(E,T){if(R(E))return E.clone();var _=typeof T=="object"?T:{};return _.date=E,_.args=arguments,new I(_)},N=x;N.l=F,N.i=R,N.w=function(E,T){return L(E,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var I=function(){function E(_){this.$L=F(_.locale,null,!0),this.parse(_)}var T=E.prototype;return T.parse=function(_){this.$d=function(O){var S=O.date,P=O.utc;if(S===null)return new Date(NaN);if(N.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var v=S.match(y);if(v){var M=v[2]-1||0,j=(v[7]||"0").substring(0,3);return P?new Date(Date.UTC(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)):new Date(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)}}return new Date(S)}(_),this.$x=_.x||{},this.init()},T.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},T.$utils=function(){return N},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(_,O){var S=L(_);return this.startOf(O)<=S&&S<=this.endOf(O)},T.isAfter=function(_,O){return L(_)<this.startOf(O)},T.isBefore=function(_,O){return this.endOf(O)<L(_)},T.$g=function(_,O,S){return N.u(_)?this[O]:this.set(S,_)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(_,O){var S=this,P=!!N.u(O)||O,v=N.p(_),M=function($t,Z){var ft=N.w(S.$u?Date.UTC(S.$y,Z,$t):new Date(S.$y,Z,$t),S);return P?ft:ft.endOf(u)},j=function($t,Z){return N.w(S.toDate()[$t].apply(S.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(Z)),S)},G=this.$W,U=this.$M,dt=this.$D,at="set"+(this.$u?"UTC":"");switch(v){case f:return P?M(1,0):M(31,11);case m:return P?M(1,U):M(0,U+1);case p:var Bt=this.$locale().weekStart||0,It=(G<Bt?G+7:G)-Bt;return M(P?dt-It:dt+(6-It),U);case u:case h:return j(at+"Hours",0);case c:return j(at+"Minutes",1);case l:return j(at+"Seconds",2);case i:return j(at+"Milliseconds",3);default:return this.clone()}},T.endOf=function(_){return this.startOf(_,!1)},T.$set=function(_,O){var S,P=N.p(_),v="set"+(this.$u?"UTC":""),M=(S={},S[u]=v+"Date",S[h]=v+"Date",S[m]=v+"Month",S[f]=v+"FullYear",S[c]=v+"Hours",S[l]=v+"Minutes",S[i]=v+"Seconds",S[s]=v+"Milliseconds",S)[P],j=P===u?this.$D+(O-this.$W):O;if(P===m||P===f){var G=this.clone().set(h,1);G.$d[M](j),G.init(),this.$d=G.set(h,Math.min(this.$D,G.daysInMonth())).$d}else M&&this.$d[M](j);return this.init(),this},T.set=function(_,O){return this.clone().$set(_,O)},T.get=function(_){return this[N.p(_)]()},T.add=function(_,O){var S,P=this;_=Number(_);var v=N.p(O),M=function(U){var dt=L(P);return N.w(dt.date(dt.date()+Math.round(U*_)),P)};if(v===m)return this.set(m,this.$M+_);if(v===f)return this.set(f,this.$y+_);if(v===u)return M(1);if(v===p)return M(7);var j=(S={},S[l]=o,S[c]=a,S[i]=n,S)[v]||1,G=this.$d.getTime()+_*j;return N.w(G,this)},T.subtract=function(_,O){return this.add(-1*_,O)},T.format=function(_){var O=this,S=this.$locale();if(!this.isValid())return S.invalidDate||g;var P=_||"YYYY-MM-DDTHH:mm:ssZ",v=N.z(this),M=this.$H,j=this.$m,G=this.$M,U=S.weekdays,dt=S.months,at=function(Z,ft,ve,te){return Z&&(Z[ft]||Z(O,P))||ve[ft].slice(0,te)},Bt=function(Z){return N.s(M%12||12,Z,"0")},It=S.meridiem||function(Z,ft,ve){var te=Z<12?"AM":"PM";return ve?te.toLowerCase():te},$t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:N.s(G+1,2,"0"),MMM:at(S.monthsShort,G,dt,3),MMMM:at(dt,G),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:at(S.weekdaysMin,this.$W,U,2),ddd:at(S.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(M),HH:N.s(M,2,"0"),h:Bt(1),hh:Bt(2),a:It(M,j,!0),A:It(M,j,!1),m:String(j),mm:N.s(j,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:v};return P.replace(k,function(Z,ft){return ft||$t[Z]||v.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(_,O,S){var P,v=N.p(O),M=L(_),j=(M.utcOffset()-this.utcOffset())*o,G=this-M,U=N.m(this,M);return U=(P={},P[f]=U/12,P[m]=U,P[d]=U/3,P[p]=(G-j)/6048e5,P[u]=(G-j)/864e5,P[c]=G/a,P[l]=G/o,P[i]=G/n,P)[v]||G,S?U:N.a(U)},T.daysInMonth=function(){return this.endOf(m).$D},T.$locale=function(){return B[this.$L]},T.locale=function(_,O){if(!_)return this.$L;var S=this.clone(),P=F(_,O,!0);return P&&(S.$L=P),S},T.clone=function(){return N.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},E}(),H=I.prototype;return L.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",h]].forEach(function(E){H[E[1]]=function(T){return this.$g(T,E[0],E[1])}}),L.extend=function(E,T){return E.$i||(E(T,I,L),E.$i=!0),L},L.locale=F,L.isDayjs=R,L.unix=function(E){return L(1e3*E)},L.en=B[D],L.Ls=B,L.p={},L})})(Kn);var Zn=Kn.exports;const W=bt(Zn);var qn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},c.utc=function(g){var y=l(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var p=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else p.call(this)};var m=c.utcOffset;c.utcOffset=function(g,y){var k=this.$utils().u;if(k(g))return this.$u?0:k(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(D){D===void 0&&(D="");var B=D.match(o);if(!B)return null;var R=(""+B[0]).match(a)||["-",0,0],F=R[0],L=60*+R[1]+ +R[2];return L===0?0:F==="+"?L:-L}(g),g===null))return this;var $=Math.abs(g)<=16?60*g:g,A=this;if(y)return A.$offset=$,A.$u=g===0,A;if(g!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add($+x,n)).$offset=$,A.$x.$localOffset=x}else A=this.utc();return A};var d=c.format;c.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,y)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var f=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=c.diff;c.diff=function(g,y,k){if(g&&this.$u===g.$u)return h.call(this,g,y,k);var $=this.local(),A=l(g).local();return h.call($,A,y,k)}}})})(qn);var vs=qn.exports;const xs=bt(vs);var Xn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(d,f,h){h===void 0&&(h={});var g=new Date(d),y=function(k,$){$===void 0&&($={});var A=$.timeZoneName||"short",x=k+"|"+A,D=o[x];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:k,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:A}),o[x]=D),D}(f,h);return y.formatToParts(g)},u=function(d,f){for(var h=c(d,f),g=[],y=0;y<h.length;y+=1){var k=h[y],$=k.type,A=k.value,x=n[$];x>=0&&(g[x]=parseInt(A,10))}var D=g[3],B=D===24?0:D,R=g[0]+"-"+g[1]+"-"+g[2]+" "+B+":"+g[4]+":"+g[5]+":000",F=+d;return(i.utc(R).valueOf()-(F-=F%1e3))/6e4},p=s.prototype;p.tz=function(d,f){d===void 0&&(d=l);var h=this.utcOffset(),g=this.toDate(),y=g.toLocaleString("en-US",{timeZone:d}),k=Math.round((g-new Date(y))/1e3/60),$=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-k,!0);if(f){var A=$.utcOffset();$=$.add(h-A,"minute")}return $.$x.$timezone=d,$},p.offsetName=function(d){var f=this.$x.$timezone||i.tz.guess(),h=c(this.valueOf(),f,{timeZoneName:d}).find(function(g){return g.type.toLowerCase()==="timezonename"});return h&&h.value};var m=p.startOf;p.startOf=function(d,f){if(!this.$x||!this.$x.$timezone)return m.call(this,d,f);var h=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return m.call(h,d,f).tz(this.$x.$timezone,!0)},i.tz=function(d,f,h){var g=h&&f,y=h||f||l,k=u(+i(),y);if(typeof d!="string")return i(d).tz(y);var $=function(B,R,F){var L=B-60*R*1e3,N=u(L,F);if(R===N)return[L,R];var I=u(L-=60*(N-R)*1e3,F);return N===I?[L,N]:[B-60*Math.min(N,I)*1e3,Math.max(N,I)]}(i.utc(d,g).valueOf(),k,y),A=$[0],x=$[1],D=i(A).utcOffset(x);return D.$x.$timezone=y,D},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){l=d}}})})(Xn);var Ds=Xn.exports;const Ls=bt(Ds);var Jn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),p=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(p)}}})})(Jn);var Ms=Jn.exports;const Cs=bt(Ms);var Qn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(Qn);var Bs=Qn.exports;const Is=bt(Bs);var tr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),p=a(i),m=(c=c||"()")[0]==="(",d=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(d?this.isBefore(p,l):!this.isAfter(p,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(d?this.isAfter(p,l):!this.isBefore(p,l))}}})})(tr);var zs=tr.exports;const Vs=bt(zs);var er={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(ut,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,p=function(m,d){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,h,g){var y=g&&g.toUpperCase();return h||d[g]||n[g]||d[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,$,A){return $||A.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,p)}}})})(er);var Rs=er.exports;const Gs=bt(Rs);var js={exports:{}};(function(t,e){(function(n,o){t.exports=o(Zn)})(ut,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(js),W.extend(xs),W.extend(Ls),W.extend(Cs),W.extend(Gs),W.extend(Is),W.extend(Vs);const nr=()=>W.tz.guess(),kt=(t="",e="",n="",o="hu")=>(n=n||W.tz.guess(),W(t).isValid()?W(t).tz(n).locale(o).format(e):""),Mt=(t="",e="",n="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const a=new Intl.DateTimeFormat(Fs(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},Fs=t=>_n.get(t),$e=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},rr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},or=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},ar=(t,e="day")=>W().isSameOrBefore(W(t),e),Ys=(t,e,n)=>W(t).isBetween(e,W(n)),Hs=(t,e,n="month")=>W(t).isSame(e,n),Us=["onClick"],Ws={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,{t:o}=it(),a=nt("timezone-selector"),s=r.computed(()=>Mt(new Date,null,n.locale)),i=nr(),l=r.computed(()=>Array.from(Tn.values()).map(u=>({...u,isActive:Mt(new Date,n.currentZone,n.locale)===Mt(new Date,u.timezone,n.locale),zoneOffsetName:Mt(new Date,u.timezone,n.locale)}))),c=u=>e("change",u);return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(hn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=r.withModifiers(m=>c(r.unref(i)),["prevent"]))},r.toDisplayString(s.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,m=>(r.openBlock(),r.createElementBlock("a",{key:m.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":m.isActive}),onClick:r.withModifiers(d=>c(m.timezone),["prevent"])},r.toDisplayString(r.unref(o)(`common.${m.countryLabelKey}`))+" ("+r.toDisplayString(m.zoneOffsetName)+") ",11,Us))),128))],2))}},Oe=(t,e="",n={})=>{const o=r.ref(""),{t:a}=it(),s=r.computed(()=>{if(r.unref(e))try{const c=sr(r.unref(t),r.unref(e));return Xo(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>pt(i,s.value)),error:o}},sr=(t,e="")=>{const n=pt(Kt,At(",",e)),o=mt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n};class Ee extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Ct={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Ks={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Zs={class:"is-portrait-image"},qs={class:"is-team-name-long"},Xs={class:"is-team-name-short"},Js={class:"is-team-name-long"},Qs={class:"is-team-name-short"},ti={class:"is-team-name-long"},ei={class:"is-team-name-short"},ni=["href"],ri={class:"is-team-name-long"},oi={class:"is-team-name-short"},ai=["href"],si={key:0,class:"is-text-dark"},ii=["href","target"],li={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),{onError:s}=_e(),{columns:i,error:l}=Oe(o,a,r.computed(()=>({offsetName:n.offsetName})));l.value&&s(new Ee(Ct.message,{...Ct.options,cause:{column:l.value}}));const c=u=>e("sort",u);return(u,p)=>(r.openBlock(),r.createBlock(ke,null,{default:r.withCtx(({el:m})=>[r.createVNode(we,{columns:r.unref(i),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:c},r.createSlots({"cell-index":r.withCtx(({row:d})=>[r.createElementVNode("span",{class:r.normalizeClass(d.indexClass)},r.toDisplayString(d.index),3)]),"cell-playerPortrait":r.withCtx(({row:d})=>[r.createElementVNode("div",Zs,[(r.openBlock(),r.createBlock(yt,{key:d.player.playerId,src:d.player.picture,"default-src":r.unref(bn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image",key:((f=d.team)==null?void 0:f.id)??d.id,src:(h=d.team)==null?void 0:h.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:(f=d.homeTeam)==null?void 0:f.id,src:(h=d.homeTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:(f=d.awayTeam)==null?void 0:f.id,src:(h=d.awayTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",qs,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",Xs,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",Js,r.toDisplayString((f=d.homeTeam)==null?void 0:f.longName),1),r.createElementVNode("span",Qs,r.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",ti,r.toDisplayString((f=d.awayTeam)==null?void 0:f.longName),1),r.createElementVNode("span",ei,r.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":r.withCtx(({row:d})=>{var f;return[r.createTextVNode(r.toDisplayString(((f=d.location)==null?void 0:f.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",si,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,ii))]),loading:r.withCtx(()=>[r.createVNode(Te)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:d})=>{var f,h,g;return[r.createElementVNode("a",{href:t.externalTeamResolver((f=d.team)==null?void 0:f.longName),target:"_blank"},[r.createElementVNode("span",ri,r.toDisplayString((h=d.team)==null?void 0:h.longName),1),r.createElementVNode("span",oi,r.toDisplayString((g=d.team)==null?void 0:g.shortName),1)],8,ni)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:d})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(d.id),target:"_blank"},r.toDisplayString(d.name),9,ai)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},ir={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},ci={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:C}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:C},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},ui={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},di={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shoots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shoots",direction:b}]},shootPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},fi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},mi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},pi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},hi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},gi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},yi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},bi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:C}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:C}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:C}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},lr=async(t,e,n)=>{const o=`${gn}${r.unref(t)}?${Si(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":wi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Si=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),wi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},_i=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(e),i=u=>ar(u,"day");return Sr(n,()=>{if(!a)return;const u=Mo(Qo(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Ti=({options:t={},transform:e=a=>a,onError:n=rt,onSuccess:o=rt})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:p,isLoading:m,execute:d}=Ie(()=>lr(a,s,r.unref(i)).then(f=>e(f)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:p,isLoading:m,execute:d}};/*! *****************************************************************************
10
10
  Copyright (c) Microsoft Corporation.
11
11
 
12
12
  Permission to use, copy, modify, and/or distribute this software for any
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(w,r){"use strict";const nt=t=>({}.VITE_CSS_CLAS
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */function lr(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var cr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(cr||(cr={}));var ki={type:"xstate.init"};function Ae(t){return t===void 0?[]:[].concat(t)}function ur(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function Pe(t){return function(e){return t===e}}function $i(t){return typeof t=="string"?{type:t}:t}function dr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Pe(t)}}function fr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Oi(t,e){e===void 0&&(e={});var n=lr(fr(Ae(t.states[t.initial].entry).map(function(i){return ur(i,e.actions)}),t.context,ki),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Pe(t.initial)},transition:function(i,l){var c,u,p=typeof i=="string"?{value:i,context:t.context}:i,m=p.value,d=p.context,f=$i(l),h=t.states[m];if(h.on){var g=Ae(h.on[f.type]);try{for(var y=function(S){var P=typeof Symbol=="function"&&Symbol.iterator,v=P&&S[P],M=0;if(v)return v.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),k=y.next();!k.done;k=y.next()){var $=k.value;if($===void 0)return dr(m,d);var A=typeof $=="string"?{target:$}:$,x=A.target,D=A.actions,B=D===void 0?[]:D,R=A.cond,F=R===void 0?function(){return!0}:R,L=x===void 0,N=x??m,I=t.states[N];if(F(d,f)){var H=lr(fr((L?Ae(B):[].concat(h.exit,B,I.entry).filter(function(S){return S})).map(function(S){return ur(S,s._options.actions)}),d,f),3),E=H[0],T=H[1],_=H[2],O=x??m;return{value:O,context:T,actions:E,changed:x!==m||E.length>0||_,matches:Pe(O)}}}}catch(S){c={error:S}}finally{try{k&&!k.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return dr(m,d)}};return s}const Ei=Oi({id:"sort",initial:ot,states:{[ot]:{on:{DIRECTION1:b,DIRECTION2:C}},[b]:{on:{DIRECTION1:C,DIRECTION2:ot}},[C]:{on:{DIRECTION1:ot,DIRECTION2:b}}}}),Ai=(t,e)=>{const n=e===C?"DIRECTION2":"DIRECTION1";return Ei.transition(t,n).value};function Pi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Ai(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Ni(t=!1,e=rt,n=rt){const o=Nr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const vi=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(i=>o?fe(cn(i),Yt(e)):fe(wt(i),na,Vo(e))),s=Xe(uo([...a]),this.result);this.isFiltered=!0,this.filteredRowsLength=s.length,this.result=s}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ot)return this;const n=Io(Yt(C),an(ce),an(Ao));return this.result=un(e.orders.map(o=>sn(n(o.direction),wt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:kt(o.gameDate,"L dddd",e,n),gameDateTime:kt(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=$e(n[o]):n),n)),this},groupByDays(){return this.result=Co(e=>kt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),xi=(t,...e)=>pt(sn(...e))(t),Di=t=>{var e;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`}}},Li=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},Mi=(t="",e="hu")=>n=>({...n,gameDateDate:kt(n.gameDate,"L dddd",t,e),gameDateTime:kt(n.gameDate,"HH:mm",t,e)}),Ci=t=>e=>({...e,gameResult:Yi(e,t)}),Bi=t=>e=>({...e,opponent:Fi(e,t)}),Ii=t=>e=>({...e,resultType:Hi(e)}),zi=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},Vi=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=$e(e[n]):e),e),Ri=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=rr(e[n]):e),e),Gi=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=nr(e[n])),e),ji=un([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),ce(wt("id")),ce(wt("gameId"))]);function Fi(t,e){var n,o,a;return((n=t==null?void 0:t.homeTeam)==null?void 0:n.id)===e?((o=t==null?void 0:t.awayTeam)==null?void 0:o.shortName)??"":`@ ${((a=t==null?void 0:t.homeTeam)==null?void 0:a.shortName)??""}`}function Yi(t,e){var a;let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return((a=t==null?void 0:t.awayTeam)==null?void 0:a.id)===e&&(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function Hi(t,e){const n=t.gameResult.split(":"),o=n[0]>n[1],a=n[0]<n[1];return o&&t.isOvertime?"OTW":o&&t.isShootout?"SOW":o?"W":a&&t.isOvertime?"OTL":a&&t.isShootout?"SOL":a?"L":"D"}const Ui=(t,e)=>{const n=Ne("gameResolver")||t;return typeof n=="function"?n(e):n?n+e:gn+e},Wi=(t,e)=>{const n=Ne("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(n?n+e:Sn+e)},Ki=(t,e)=>{const n=Ne("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(n?n+e:bn+e)},Ne=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Zi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},qi=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Xi=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Ji=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Qi=[qi,Xi,Ji];function tl(t,e){return r.openBlock(),r.createElementBlock("svg",Zi,Qi)}const el={render:tl},nl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},rl=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),ol=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),al=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),sl=[rl,ol,al];function il(t,e){return r.openBlock(),r.createElementBlock("svg",nl,sl)}const ll={render:il},cl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ul=r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),dl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),fl=[ul,dl];function ml(t,e){return r.openBlock(),r.createElementBlock("svg",cl,fl)}const pl={render:ml},hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},gl=r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),yl=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),bl=[gl,yl];function Sl(t,e){return r.openBlock(),r.createElementBlock("svg",hl,bl)}const wl={render:Sl},_l={class:"is-team-name-long"},Tl={class:"is-team-name-short"},kl={class:"is-team-name-long"},$l={class:"is-team-name-short"},Ol={key:0,class:"is-text-dark"},El=["href","target"],Al={key:0,class:"label"},Pl={key:1,class:"label"},Nl={key:2,class:"label"},vl={key:1},xl=["onClick","onFocus","onBlur"],Dl={class:"is-dropdown-menu"},Ll=["href","target"],Ml={key:0},Cl=["href"],Bl={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=_e(),{columns:a,error:s}=Oe(sr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Sr(s,()=>o(new Ee(Ct.message,{...Ct.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=it();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ke,null,{default:r.withCtx(({el:u})=>[r.createVNode(we,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",_l,r.toDisplayString(p.homeTeam.longName),1),r.createElementVNode("span",Tl,r.toDisplayString(p.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",kl,r.toDisplayString(p.awayTeam.longName),1),r.createElementVNode("span",$l,r.toDisplayString(p.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:p.homeTeam.id,src:p.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:p.awayTeam.id,src:p.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:p})=>[p.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Ol,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(p.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},r.toDisplayString(p.homeTeamScore)+":"+r.toDisplayString(p.awayTeamScore),11,El))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",Al,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",Pl,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",Nl,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:p})=>[p.broadcast?(r.openBlock(),r.createBlock(r.unref(el),{key:0})):(r.openBlock(),r.createElementBlock("span",vl))]),"cell-location":r.withCtx(({row:p})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=p.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:p})=>[r.createVNode(Se,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:d,hide:f})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(d,["stop"]),onFocus:d,onBlur:f},[r.createVNode(r.unref(ll))],40,xl)]),content:r.withCtx(()=>[r.createElementVNode("ul",Dl,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(p.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(pl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,Ll)]),p.video?(r.openBlock(),r.createElementBlock("li",Ml,[r.createElementVNode("a",{href:p.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(wl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Cl)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Te)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Il={class:"g-row"},zl=["value"],Vl={key:0},Rl=["onClick"],Gl={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,{t:o}=it(),a=r.computed({get(){return n.championshipId},set(i){e("onChangeSeason",i)}});function s(i){e("onChangeSection",i)}return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Il,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(nt)("label"))},r.toDisplayString(r.unref(o)("selection.season")),3),r.createVNode(xe,{id:"season",modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,c=>(r.openBlock(),r.createElementBlock("option",{key:c.championshipId,value:c.championshipId},r.toDisplayString(c.seasonName),9,zl))),128))]),_:1},8,["modelValue"])])]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Vl,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,c=>(r.openBlock(),r.createElementBlock("button",{key:c.phaseId,onClick:u=>s(c),class:r.normalizeClass([r.unref(nt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},r.toDisplayString(c.sectionName),11,Rl))),128))]))],64))}},jl={};function Fl(t,e){return r.openBlock(),r.createElementBlock("div",null," Test-8 ")}const Yl=Un(jl,[["render",Fl]]),Hl={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},mr={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Ul={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...mr},Wl=({modules:t=[],apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a},t.length===0)throw new Error("At least one module must be set");t.forEach(s=>{if(s.register)return s.register();s==null||s()})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=_n,w.BaseSelect=xe,w.COLUMNS_FIELD_PLAYERS=di,w.COLUMNS_FIELD_PLAYERS_PENALTY=fi,w.COLUMNS_GOALIES=mi,w.COLUMNS_SCHEDULE=sr,w.COLUMNS_SCORING_EFFICIENCY=bi,w.COLUMNS_STANDINGS_P_2=ui,w.COLUMNS_STANDINGS_P_3=ci,w.COLUMNS_TEAMS_FAIRPLAY=hi,w.COLUMNS_TEAMS_PENALTY_KILLING=gi,w.COLUMNS_TEAMS_POWERPLAY=yi,w.COLUMNS_TEAM_ATTENDANCE=pi,w.DEFAULT_EXTERNAL_BASE_URL=gn,w.DEFAULT_EXTERNAL_PLAYER_URL=bn,w.DEFAULT_EXTERNAL_TEAM_URL=Sn,w.DEFAULT_PORTRAIT_IMAGE_URL=yn,w.DataTable=we,w.ErrorNotice=Qa,w.ErrorProvider=es,w.FloatingPanel=Se,w.I18NProvider=ss,w.Image=yt,w.InvalidSeasonName=Ks,w.LAZY_LOADING_STATE_DELAY=Tn,w.LOCALE_FOR_LANG=wn,w.LoadingIndicator=Te,w.Paginator=Ns,w.REFRESH_DELAY=la,w.ResponsiveTable=ke,w.SORT_STATE_ASCEND=C,w.SORT_STATE_DESCEND=b,w.SORT_STATE_ORIGINAL=ot,w.ScheduleTable=Bl,w.SeasonSelector=Gl,w.StatisticsTable=li,w.Test=Yl,w.TimezoneSelector=Ws,w.UndefinedColumn=Ct,w.VBR_API_BASE_URL=hn,w.WidgetError=Ee,w.appendTo=jn,w.baseProps=Hl,w.convert=vi,w.convertMinToMinSec=rr,w.convertMinToSec=$e,w.convertSecToMin=nr,w.convertTimes=Vi,w.convertTimesMinToMinSec=Ri,w.convertTimesSecToMin=Gi,w.createConfig=Wl,w.createI18n=fn,w.externalGameLinkResolver=Ui,w.externalPlayerLinkResolver=Ki,w.externalTeamLinkResolver=Wi,w.fetchVBRData=ir,w.format=kt,w.gameDateTime=Mi,w.gameResult=Ci,w.getLocalTimezone=er,w.i18n=pn,w.isBetween=Ys,w.isSame=Hs,w.isSameOrBefore=or,w.offsetName=Mt,w.playerName=Di,w.playerStatsProps=Ul,w.rawConvert=xi,w.sortGames=ji,w.teamName=Li,w.teamOpponent=Bi,w.teamResultType=Ii,w.teamStatsProps=mr,w.toKebabCase=Fn,w.upperCase=zi,w.useColumns=Oe,w.useError=_e,w.useErrorProvider=Hn,w.useI18n=it,w.useLazyLoadingState=Re,w.useMainClass=nt,w.usePage=_i,w.useServices=Ti,w.useSort=Pi,w.useVisibilityChange=Ni,w.validateColumnsName=ar,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),w}({},Vue);
22
+ ***************************************************************************** */function cr(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var ur;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(ur||(ur={}));var ki={type:"xstate.init"};function Ae(t){return t===void 0?[]:[].concat(t)}function dr(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function Pe(t){return function(e){return t===e}}function $i(t){return typeof t=="string"?{type:t}:t}function fr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Pe(t)}}function mr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Oi(t,e){e===void 0&&(e={});var n=cr(mr(Ae(t.states[t.initial].entry).map(function(i){return dr(i,e.actions)}),t.context,ki),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Pe(t.initial)},transition:function(i,l){var c,u,p=typeof i=="string"?{value:i,context:t.context}:i,m=p.value,d=p.context,f=$i(l),h=t.states[m];if(h.on){var g=Ae(h.on[f.type]);try{for(var y=function(S){var P=typeof Symbol=="function"&&Symbol.iterator,v=P&&S[P],M=0;if(v)return v.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),k=y.next();!k.done;k=y.next()){var $=k.value;if($===void 0)return fr(m,d);var A=typeof $=="string"?{target:$}:$,x=A.target,D=A.actions,B=D===void 0?[]:D,R=A.cond,F=R===void 0?function(){return!0}:R,L=x===void 0,N=x??m,I=t.states[N];if(F(d,f)){var H=cr(mr((L?Ae(B):[].concat(h.exit,B,I.entry).filter(function(S){return S})).map(function(S){return dr(S,s._options.actions)}),d,f),3),E=H[0],T=H[1],_=H[2],O=x??m;return{value:O,context:T,actions:E,changed:x!==m||E.length>0||_,matches:Pe(O)}}}}catch(S){c={error:S}}finally{try{k&&!k.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return fr(m,d)}};return s}const Ei=Oi({id:"sort",initial:ot,states:{[ot]:{on:{DIRECTION1:b,DIRECTION2:C}},[b]:{on:{DIRECTION1:C,DIRECTION2:ot}},[C]:{on:{DIRECTION1:ot,DIRECTION2:b}}}}),Ai=(t,e)=>{const n=e===C?"DIRECTION2":"DIRECTION1";return Ei.transition(t,n).value};function Pi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Ai(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Ni(t=!1,e=rt,n=rt){const o=vr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const vi=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(i=>o?fe(cn(i),Yt(e)):fe(wt(i),dn,Ro(dn(e)))),s=Xe(fo([...a]),this.result);this.isFiltered=!0,this.filteredRowsLength=s.length,this.result=s}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ot)return this;const n=zo(Yt(C),an(ce),an(Po));return this.result=un(e.orders.map(o=>sn(n(o.direction),wt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:kt(o.gameDate,"L dddd",e,n),gameDateTime:kt(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=$e(n[o]):n),n)),this},groupByDays(){return this.result=Bo(e=>kt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),xi=(t,...e)=>pt(sn(...e))(t),Di=t=>{var e;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`}}},Li=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},Mi=(t="",e="hu")=>n=>({...n,gameDateDate:kt(n.gameDate,"L dddd",t,e),gameDateTime:kt(n.gameDate,"HH:mm",t,e)}),Ci=t=>e=>({...e,gameResult:Yi(e,t)}),Bi=t=>e=>({...e,opponent:Fi(e,t)}),Ii=t=>e=>({...e,resultType:Hi(e)}),zi=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},Vi=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=$e(e[n]):e),e),Ri=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=or(e[n]):e),e),Gi=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=rr(e[n])),e),ji=un([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),ce(wt("id")),ce(wt("gameId"))]);function Fi(t,e){var n,o,a;return((n=t==null?void 0:t.homeTeam)==null?void 0:n.id)===e?((o=t==null?void 0:t.awayTeam)==null?void 0:o.shortName)??"":`@ ${((a=t==null?void 0:t.homeTeam)==null?void 0:a.shortName)??""}`}function Yi(t,e){var a;let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return((a=t==null?void 0:t.awayTeam)==null?void 0:a.id)===e&&(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function Hi(t,e){const n=t.gameResult.split(":"),o=n[0]>n[1],a=n[0]<n[1];return o&&t.isOvertime?"OTW":o&&t.isShootout?"SOW":o?"W":a&&t.isOvertime?"OTL":a&&t.isShootout?"SOL":a?"L":"D"}const Ui=(t,e)=>{const n=Ne("gameResolver")||t;return typeof n=="function"?n(e):n?n+e:yn+e},Wi=(t,e)=>{const n=Ne("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(n?n+e:wn+e)},Ki=(t,e)=>{const n=Ne("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(n?n+e:Sn+e)},Ne=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Zi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},qi=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Xi=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Ji=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Qi=[qi,Xi,Ji];function tl(t,e){return r.openBlock(),r.createElementBlock("svg",Zi,Qi)}const el={render:tl},nl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},rl=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),ol=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),al=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),sl=[rl,ol,al];function il(t,e){return r.openBlock(),r.createElementBlock("svg",nl,sl)}const ll={render:il},cl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ul=r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),dl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),fl=[ul,dl];function ml(t,e){return r.openBlock(),r.createElementBlock("svg",cl,fl)}const pl={render:ml},hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},gl=r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),yl=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),bl=[gl,yl];function Sl(t,e){return r.openBlock(),r.createElementBlock("svg",hl,bl)}const wl={render:Sl},_l={class:"is-team-name-long"},Tl={class:"is-team-name-short"},kl={class:"is-team-name-long"},$l={class:"is-team-name-short"},Ol={key:0,class:"is-text-dark"},El=["href","target"],Al={key:0,class:"label"},Pl={key:1,class:"label"},Nl={key:2,class:"label"},vl={key:1},xl=["onClick","onFocus","onBlur"],Dl={class:"is-dropdown-menu"},Ll=["href","target"],Ml={key:0},Cl=["href"],Bl={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=_e(),{columns:a,error:s}=Oe(ir,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));wr(s,()=>o(new Ee(Ct.message,{...Ct.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=it();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ke,null,{default:r.withCtx(({el:u})=>[r.createVNode(we,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",_l,r.toDisplayString(p.homeTeam.longName),1),r.createElementVNode("span",Tl,r.toDisplayString(p.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",kl,r.toDisplayString(p.awayTeam.longName),1),r.createElementVNode("span",$l,r.toDisplayString(p.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:p.homeTeam.id,src:p.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(yt,{class:"is-logo-image is-right",key:p.awayTeam.id,src:p.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:p})=>[p.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Ol,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(p.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},r.toDisplayString(p.homeTeamScore)+":"+r.toDisplayString(p.awayTeamScore),11,El))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",Al,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",Pl,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",Nl,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:p})=>[p.broadcast?(r.openBlock(),r.createBlock(r.unref(el),{key:0})):(r.openBlock(),r.createElementBlock("span",vl))]),"cell-location":r.withCtx(({row:p})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=p.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:p})=>[r.createVNode(Se,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:d,hide:f})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(d,["stop"]),onFocus:d,onBlur:f},[r.createVNode(r.unref(ll))],40,xl)]),content:r.withCtx(()=>[r.createElementVNode("ul",Dl,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(p.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(pl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,Ll)]),p.video?(r.openBlock(),r.createElementBlock("li",Ml,[r.createElementVNode("a",{href:p.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(wl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Cl)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Te)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Il={class:"g-row"},zl=["value"],Vl={key:0},Rl=["onClick"],Gl={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,{t:o}=it(),a=r.computed({get(){return n.championshipId},set(i){e("onChangeSeason",i)}});function s(i){e("onChangeSection",i)}return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Il,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(nt)("label"))},r.toDisplayString(r.unref(o)("selection.season")),3),r.createVNode(xe,{id:"season",modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,c=>(r.openBlock(),r.createElementBlock("option",{key:c.championshipId,value:c.championshipId},r.toDisplayString(c.seasonName),9,zl))),128))]),_:1},8,["modelValue"])])]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Vl,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,c=>(r.openBlock(),r.createElementBlock("button",{key:c.phaseId,onClick:u=>s(c),class:r.normalizeClass([r.unref(nt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},r.toDisplayString(c.sectionName),11,Rl))),128))]))],64))}},jl={};function Fl(t,e){return r.openBlock(),r.createElementBlock("div",null," Test-8 ")}const Yl=Wn(jl,[["render",Fl]]),Hl={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},pr={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Ul={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...pr},Wl=({modules:t=[],apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a},t.length===0)throw new Error("At least one module must be set");t.forEach(s=>{if(s.register)return s.register();s==null||s()})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=Tn,w.BaseSelect=xe,w.COLUMNS_FIELD_PLAYERS=di,w.COLUMNS_FIELD_PLAYERS_PENALTY=fi,w.COLUMNS_GOALIES=mi,w.COLUMNS_SCHEDULE=ir,w.COLUMNS_SCORING_EFFICIENCY=bi,w.COLUMNS_STANDINGS_P_2=ui,w.COLUMNS_STANDINGS_P_3=ci,w.COLUMNS_TEAMS_FAIRPLAY=hi,w.COLUMNS_TEAMS_PENALTY_KILLING=gi,w.COLUMNS_TEAMS_POWERPLAY=yi,w.COLUMNS_TEAM_ATTENDANCE=pi,w.DEFAULT_EXTERNAL_BASE_URL=yn,w.DEFAULT_EXTERNAL_PLAYER_URL=Sn,w.DEFAULT_EXTERNAL_TEAM_URL=wn,w.DEFAULT_PORTRAIT_IMAGE_URL=bn,w.DataTable=we,w.ErrorNotice=Qa,w.ErrorProvider=es,w.FloatingPanel=Se,w.I18NProvider=ss,w.Image=yt,w.InvalidSeasonName=Ks,w.LAZY_LOADING_STATE_DELAY=kn,w.LOCALE_FOR_LANG=_n,w.LoadingIndicator=Te,w.Paginator=Ns,w.REFRESH_DELAY=la,w.ResponsiveTable=ke,w.SORT_STATE_ASCEND=C,w.SORT_STATE_DESCEND=b,w.SORT_STATE_ORIGINAL=ot,w.ScheduleTable=Bl,w.SeasonSelector=Gl,w.StatisticsTable=li,w.Test=Yl,w.TimezoneSelector=Ws,w.UndefinedColumn=Ct,w.VBR_API_BASE_URL=gn,w.WidgetError=Ee,w.appendTo=Fn,w.baseProps=Hl,w.convert=vi,w.convertMinToMinSec=or,w.convertMinToSec=$e,w.convertSecToMin=rr,w.convertTimes=Vi,w.convertTimesMinToMinSec=Ri,w.convertTimesSecToMin=Gi,w.createConfig=Wl,w.createI18n=mn,w.externalGameLinkResolver=Ui,w.externalPlayerLinkResolver=Ki,w.externalTeamLinkResolver=Wi,w.fetchVBRData=lr,w.format=kt,w.gameDateTime=Mi,w.gameResult=Ci,w.getLocalTimezone=nr,w.i18n=hn,w.isBetween=Ys,w.isSame=Hs,w.isSameOrBefore=ar,w.offsetName=Mt,w.playerName=Di,w.playerStatsProps=Ul,w.rawConvert=xi,w.sortGames=ji,w.teamName=Li,w.teamOpponent=Bi,w.teamResultType=Ii,w.teamStatsProps=pr,w.toKebabCase=Yn,w.upperCase=zi,w.useColumns=Oe,w.useError=_e,w.useErrorProvider=Un,w.useI18n=it,w.useLazyLoadingState=Re,w.useMainClass=nt,w.usePage=_i,w.useServices=Ti,w.useSort=Pi,w.useVisibilityChange=Ni,w.validateColumnsName=sr,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),w}({},Vue);