@mjsz-vbr-elements/core 2.1.0-beta.26 → 2.1.0-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +834 -786
- package/package.json +2 -2
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.1.0-beta.
|
|
3
|
+
* version: v2.1.0-beta.28 - 06/10/2023, 16:58:14
|
|
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(_,n){"use strict";const dt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,pn={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,o=dt("base-input"),s=n.computed({get:()=>r.modelValue,set:a=>e("update:modelValue",a)});return(a,i)=>n.withDirectives((n.openBlock(),n.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),class:n.normalizeClass([n.unref(o),"is-select"])},[n.renderSlot(a.$slots,"default")],2)),[[n.vModelSelect,s.value]])}};function Ne(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():n.unref(t)}const It=typeof window<"u",rt=()=>{},hn=gn();function gn(){var t;return It&&((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,r="Timeout"){return new Promise((o,s)=>{setTimeout(e?()=>s(r):o,t)})}function re(t,e=!1){function r(c,{flush:p="sync",deep:m=!1,timeout:g,throwOnTimeout:h}={}){let y=null;const A=[new Promise(P=>{y=n.watch(t,N=>{c(N)!==e&&(y==null||y(),P(N))},{flush:p,deep:m,immediate:!0})})];return g!=null&&A.push(ee(g,h).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race(A)}function o(c,p){if(!n.isRef(c))return r(N=>N===c,p);const{flush:m="sync",deep:g=!1,timeout:h,throwOnTimeout:y}=p??{};let $=null;const P=[new Promise(N=>{$=n.watch([t,c],([D,B])=>{e!==(D===B)&&($==null||$(),N(D))},{flush:m,deep:g,immediate:!0})})];return h!=null&&P.push(ee(h,y).then(()=>tt(t)).finally(()=>($==null||$(),tt(t)))),Promise.race(P)}function s(c){return r(p=>!!p,c)}function a(c){return o(null,c)}function i(c){return o(void 0,c)}function l(c){return r(Number.isNaN,c)}function d(c,p){return r(m=>{const g=Array.from(m);return g.includes(c)||g.includes(tt(c))},p)}function u(c){return f(1,c)}function f(c=1,p){let m=-1;return r(()=>(m+=1,m>=c),p)}return Array.isArray(tt(t))?{toMatch:r,toContains:d,changed:u,changedTimes:f,get not(){return re(t,!e)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:a,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:f,get not(){return re(t,!e)}}}function yn(t){return re(t)}function bn(t,e,r={}){const{immediate:o=!0}=r,s=n.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function l(){s.value=!1,i()}function d(...u){i(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,t(...u)},tt(e))}return o&&(s.value=!0,It&&d()),Ne(l),{isPending:n.readonly(s),start:d,stop:l}}function wn(t,e,r){const o=n.watch(t,(...s)=>(n.nextTick(()=>o()),e(...s)),r)}function Sn(t,e,r){return n.watch(t,(o,s,a)=>{o&&e(o,s,a)},r)}function Tt(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const De=It?window:void 0,_n=It?window.document:void 0;function zt(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=De):[e,r,o,s]=t,!e)return rt;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},l=(f,c,p,m)=>(f.addEventListener(c,p,m),()=>f.removeEventListener(c,p,m)),d=n.watch(()=>[Tt(e),tt(s)],([f,c])=>{i(),f&&a.push(...r.flatMap(p=>o.map(m=>l(f,p,m,c))))},{immediate:!0,flush:"post"}),u=()=>{d(),i()};return Ne(u),u}let Le=!1;function Tn(t,e,r={}){const{window:o=De,ignore:s=[],capture:a=!0,detectIframe:i=!1}=r;if(!o)return;hn&&!Le&&(Le=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",rt)));let l=!0;const d=p=>s.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(g=>g===p.target||p.composedPath().includes(g));{const g=Tt(m);return g&&(p.target===g||p.composedPath().includes(g))}}),f=[zt(o,"click",p=>{const m=Tt(t);if(!(!m||m===p.target||p.composedPath().includes(m))){if(p.detail===0&&(l=!d(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:a}),zt(o,"pointerdown",p=>{const m=Tt(t);m&&(l=!p.composedPath().includes(m)&&!d(p))},{passive:!0}),i&&zt(o,"blur",p=>{var m;const g=Tt(t);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(g!=null&&g.contains(o.document.activeElement))&&e(p)})].filter(Boolean);return()=>f.forEach(p=>p())}var $n=Object.defineProperty,An=Object.defineProperties,On=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Ce=(t,e,r)=>e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vn=(t,e)=>{for(var r in e||(e={}))kn.call(e,r)&&Ce(t,r,e[r]);if(Me)for(var r of Me(e))Pn.call(e,r)&&Ce(t,r,e[r]);return t},En=(t,e)=>An(t,On(e));function Be(t,e,r){const{immediate:o=!0,delay:s=0,onError:a=rt,onSuccess:i=rt,resetOnExecute:l=!0,shallow:d=!0,throwError:u}=r??{},f=d?n.shallowRef(e):n.ref(e),c=n.ref(!1),p=n.ref(!1),m=n.shallowRef(void 0);async function g($=0,...A){l&&(f.value=e),m.value=void 0,c.value=!1,p.value=!0,$>0&&await ee($);const P=typeof t=="function"?t(...A):t;try{const N=await P;f.value=N,c.value=!0,i(N)}catch(N){if(m.value=N,a(N),u)throw N}finally{p.value=!1}return f.value}o&&g(s);const h={state:f,isReady:c,isLoading:p,error:m,execute:g};function y(){return new Promise(($,A)=>{yn(p).toBe(!1).then(()=>$(h)).catch(A)})}return En(vn({},h),{then($,A){return y().then($,A)}})}function xn({document:t=_n}={}){if(!t)return n.ref("visible");const e=n.ref(t.visibilityState);return zt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Nn=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,ze=(t,e,r)=>e in t?Nn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mn=(t,e)=>{for(var r in e||(e={}))Dn.call(e,r)&&ze(t,r,e[r]);if(Ie)for(var r of Ie(e))Ln.call(e,r)&&ze(t,r,e[r]);return t};async function Cn(t){return new Promise((e,r)=>{const o=new Image,{src:s,srcset:a,sizes:i,class:l,loading:d,crossorigin:u}=t;o.src=s,a&&(o.srcset=a),i&&(o.sizes=i),l&&(o.className=l),d&&(o.loading=d),u&&(o.crossOrigin=u),o.onload=()=>e(o),o.onerror=r})}function Bn(t,e={}){const r=Be(()=>Cn(tt(t)),void 0,Mn({resetOnExecute:!0},e));return n.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function Ve(t=[],e={}){const{delay:r=0}=e,o=n.ref(!1),s=n.computed(()=>{const l=n.unref(t);return Array.isArray(l)?l.map(d=>n.unref(d)).some(Boolean):l}),{start:a,stop:i}=bn(()=>{o.value=!0},r);return n.watch(s,l=>{if(l)return a();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(r){return arguments.length===0||z(r)?e:t.apply(this,arguments)}}function V(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return z(r)?e:Y(function(s){return t(r,s)});default:return z(r)&&z(o)?e:z(r)?Y(function(s){return t(s,o)}):z(o)?Y(function(s){return t(r,s)}):t(r,o)}}}function Vt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,o){return e.apply(this,arguments)};case 3:return function(r,o,s){return e.apply(this,arguments)};case 4:return function(r,o,s,a){return e.apply(this,arguments)};case 5:return function(r,o,s,a,i){return e.apply(this,arguments)};case 6:return function(r,o,s,a,i,l){return e.apply(this,arguments)};case 7:return function(r,o,s,a,i,l,d){return e.apply(this,arguments)};case 8:return function(r,o,s,a,i,l,d,u){return e.apply(this,arguments)};case 9:return function(r,o,s,a,i,l,d,u,f){return e.apply(this,arguments)};case 10:return function(r,o,s,a,i,l,d,u,f,c){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ne(t,e,r){return function(){for(var o=[],s=0,a=t,i=0;i<e.length||s<arguments.length;){var l;i<e.length&&(!z(e[i])||s>=arguments.length)?l=e[i]:(l=arguments[s],s+=1),o[i]=l,z(l)||(a-=1),i+=1}return a<=0?r.apply(this,o):Vt(a,ne(t,o,r))}}var Rt=V(function(e,r){return e===1?Y(r):Vt(e,ne(e,[],r))});function at(t){return function e(r,o,s){switch(arguments.length){case 0:return e;case 1:return z(r)?e:V(function(a,i){return t(r,a,i)});case 2:return z(r)&&z(o)?e:z(r)?V(function(a,i){return t(a,o,i)}):z(o)?V(function(a,i){return t(r,a,i)}):Y(function(a){return t(r,o,a)});default:return z(r)&&z(o)&&z(s)?e:z(r)&&z(o)?V(function(a,i){return t(a,i,s)}):z(r)&&z(s)?V(function(a,i){return t(a,o,i)}):z(o)&&z(s)?V(function(a,i){return t(r,a,i)}):z(r)?Y(function(a){return t(a,o,s)}):z(o)?Y(function(a){return t(r,a,s)}):z(s)?Y(function(a){return t(r,o,a)}):t(r,o,s)}}}const Gt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function In(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function jt(t,e,r){return function(){if(arguments.length===0)return r();var o=arguments[arguments.length-1];if(!Gt(o)){for(var s=0;s<t.length;){if(typeof o[t[s]]=="function")return o[t[s]].apply(o,Array.prototype.slice.call(arguments,0,-1));s+=1}if(In(o)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(o)}}return r.apply(this,arguments)}}function Re(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const bt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ge(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function je(t,e,r){for(var o=0,s=r.length;o<s;){if(t(e,r[o]))return!0;o+=1}return!1}function zn(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 Vn(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const oe=typeof Object.is=="function"?Object.is:Vn;var Fe=Object.prototype.toString,Ye=function(){return Fe.call(arguments)==="[object Arguments]"?function(e){return Fe.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Rn=!{toString:null}.propertyIsEnumerable("toString"),He=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ue=function(){return arguments.propertyIsEnumerable("length")}(),Gn=function(e,r){for(var o=0;o<e.length;){if(e[o]===r)return!0;o+=1}return!1},ft=Y(typeof Object.keys=="function"&&!Ue?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,o,s=[],a=Ue&&Ye(e);for(r in e)et(r,e)&&(!a||r!=="length")&&(s[s.length]=r);if(Rn)for(o=He.length-1;o>=0;)r=He[o],et(r,e)&&!Gn(s,r)&&(s[s.length]=r),o-=1;return s}),ae=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function We(t,e,r,o){var s=Ge(t),a=Ge(e);function i(l,d){return se(l,d,r.slice(),o.slice())}return!je(function(l,d){return!je(i,d,l)},a,s)}function se(t,e,r,o){if(oe(t,e))return!0;var s=ae(t);if(s!==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(s){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&zn(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 a=r.length-1;a>=0;){if(r[a]===t)return o[a]===e;a-=1}switch(s){case"Map":return t.size!==e.size?!1:We(t.entries(),e.entries(),r.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:We(t.values(),e.values(),r.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=ft(t);if(i.length!==ft(e).length)return!1;var l=r.concat([t]),d=o.concat([e]);for(a=i.length-1;a>=0;){var u=i[a];if(!(et(u,e)&&se(e[u],t[u],l,d)))return!1;a-=1}return!0}var Ft=V(function(e,r){return se(e,r,[],[])});function jn(t,e,r){var o,s;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;r<t.length;){if(s=t[r],s===0&&1/s===o)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(s=t[r],typeof s=="number"&&s!==s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Ft(t[r],e))return r;r+=1}return-1}function Ke(t,e){return jn(e,t,0)>=0}function Yt(t,e){for(var r=0,o=e.length,s=Array(o);r<o;)s[r]=t(e[r]),r+=1;return s}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 $t=function(e){return(e<10?"0":"")+e},Fn=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+$t(e.getUTCMonth()+1)+"-"+$t(e.getUTCDate())+"T"+$t(e.getUTCHours())+":"+$t(e.getUTCMinutes())+":"+$t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Yn(t){return function(){return!t.apply(this,arguments)}}function Ze(t,e,r){for(var o=0,s=r.length;o<s;)e=t(e,r[o]),o+=1;return e}function Hn(t,e){for(var r=0,o=e.length,s=[];r<o;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}function Ht(t){return Object.prototype.toString.call(t)==="[object Object]"}var Un=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=bt.init,t.prototype["@@transducer/result"]=bt.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Wn(t){return function(e){return new Un(t,e)}}var qe=V(jt(["fantasy-land/filter","filter"],Wn,function(t,e){return Ht(e)?Ze(function(r,o){return t(e[o])&&(r[o]=e[o]),r},{},ft(e)):Hn(t,e)})),Kn=V(function(e,r){return qe(Yn(e),r)});function Xe(t,e){var r=function(i){var l=e.concat([t]);return Ke(i,l)?"<Circular>":Xe(i,l)},o=function(a,i){return Yt(function(l){return ie(l)+": "+r(a[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Yt(r,t).join(", ")+"))";case"[object Array]":return"["+Yt(r,t).concat(o(t,Kn(function(a){return/^\d+$/.test(a)},ft(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ie(Fn(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":ie(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var s=t.toString();if(s!=="[object Object]")return s}return"{"+o(t,ft(t)).join(", ")+"}"}}var le=Y(function(e){return Xe(e,[])}),Zn=V(function(e,r){if(e===r)return r;function o(d,u){if(d>u!=u>d)return u>d?u:d}var s=o(e,r);if(s!==void 0)return s;var a=o(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var i=le(e),l=o(i,le(r));return l!==void 0&&l===i?e:r}),qn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=bt.init,t.prototype["@@transducer/result"]=bt.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),Xn=function(e){return function(r){return new qn(e,r)}},Jn=V(jt(["fantasy-land/map","map"],Xn,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Rt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Ze(function(o,s){return o[s]=e(r[s]),o},{},ft(r));default:return Yt(e,r)}}));const mt=Jn,Je=Number.isInteger||function(e){return e<<0===e};function Ut(t){return Object.prototype.toString.call(t)==="[object String]"}var Qe=V(function(e,r){var o=e<0?r.length+e:e;return Ut(r)?r.charAt(o):r[o]}),Qn=V(function(e,r){if(r!=null)return Je(e)?Qe(e,r):r[e]});const At=Qn;var to=V(function(e,r){return mt(At(e),r)}),eo=Y(function(e){return Gt(e)?!0:!e||typeof e!="object"||Ut(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),tr=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ro(t,e,r){return function(s,a,i){if(eo(i))return t(s,a,i);if(i==null)return a;if(typeof i["fantasy-land/reduce"]=="function")return e(s,a,i,"fantasy-land/reduce");if(i[tr]!=null)return r(s,a,i[tr]());if(typeof i.next=="function")return r(s,a,i);if(typeof i.reduce=="function")return e(s,a,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function no(t,e,r){for(var o=0,s=r.length;o<s;){if(e=t["@@transducer/step"](e,r[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var oo=V(function(e,r){return Vt(e.length,function(){return e.apply(r,arguments)})});function ao(t,e,r){for(var o=r.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=r.next()}return t["@@transducer/result"](e)}function so(t,e,r,o){return t["@@transducer/result"](r[o](oo(t["@@transducer/step"],t),e))}var er=ro(no,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,r){return this.f(e,r)},t}();function rr(t){return new io(t)}var lo=at(function(t,e,r){return er(typeof t=="function"?rr(t):t,e,r)});const nr=lo;var co=Y(function(e){return function(){return e}});const or=co;var uo=Y(function(e){return Rt(nr(Zn,0,to("length",e)),function(){for(var r=0,o=e.length;r<o;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});const fo=uo;var mo=at(function(e,r,o){var s=e(r),a=e(o);return s<a?-1:s>a?1:0});const ar=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 ce(t,e,r){if(r||(r=new yo),go(t))return t;var o=function(a){var i=r.get(t);if(i)return i;r.set(t,a);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(a[l]=e?ce(t[l],!0,r):t[l]);return a};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,r){const o=this.hash(e);let s=this.map[o];s||(this.map[o]=s=[]),s.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var o in e)r.push(Object.prototype.toString.call(e[o]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const s in this.map){const a=this.map[s];for(let i=0;i<a.length;i+=1){const l=a[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),o=this.map[r];if(o)for(let s=0;s<o.length;s+=1){const a=o[s];if(a[0]===e)return a[1]}},t}();function bo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ue(t,e){return function(){var r=arguments.length;if(r===0)return e();var o=arguments[r-1];return Gt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}var wo=at(ue("slice",function(e,r,o){return Array.prototype.slice.call(o,e,r)})),So=Y(ue("tail",wo(1,1/0)));const _o=So;function de(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Vt(arguments[0].length,nr(bo,arguments[0],_o(arguments)))}var To=Y(function(e){return Ut(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const $o=To;function sr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return de.apply(this,$o(arguments))}var Ao=function(){function t(e,r,o,s){this.valueFn=e,this.valueAcc=r,this.keyFn=o,this.xf=s,this.inputs={}}return t.prototype["@@transducer/init"]=bt.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(et(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,ce(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),e},t}();function Oo(t,e,r){return function(o){return new Ao(t,e,r,o)}}var ko=ne(4,[],jt([],Oo,function(e,r,o,s){var a=rr(function(i,l){var d=o(l),u=e(et(d,i)?i[d]:ce(r,!1),l);return u&&u["@@transducer/reduced"]?Re(i):(i[d]=u,i)});return er(a,{},s)})),Po=at(function(e,r,o){var s=e(r),a=e(o);return s>a?-1:s<a?1:0});const vo=Po;function Eo(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 xo=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():Gt(e)?[]:Ut(e)?"":Ht(e)?{}:Ye(e)?function(){return arguments}():Eo(e)?e.constructor.from(""):void 0}),No=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=bt.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,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=Re(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Do(t){return function(e){return new No(t,e)}}var Lo=V(jt([],Do,function(e,r){for(var o=0,s=r.length;o<s;){if(e(r[o]))return o;o+=1}return-1}));const Mo=Lo;var Co=V(ue("groupBy",ko(function(t,e){return t.push(e),t},[])));const Bo=Co;var Io=at(function(e,r,o){return Rt(Math.max(e.length,r.length,o.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):o.apply(this,arguments)})});const zo=Io;var Vo=V(Ke);const Ro=Vo;var Go=V(function(e,r){return Rt(e+1,function(){var o=arguments[e];if(o!=null&&po(o[r]))return o[r].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(le(o)+' does not have a method named "'+r+'"')})});const ir=Go;var jo=Y(function(e){return e!=null&&Ft(e,xo(e))});const Fo=jo;var Yo=V(function(e,r){return e.map(function(o){for(var s=r,a=0,i;a<o.length;){if(s==null)return;i=o[a],s=Je(i)?Qe(i,s):s[i],a+=1}return s})}),Ho=V(function(e,r){return Yo([e],r)[0]});const lr=Ho;var Uo=at(function(e,r,o){var s={},a;r=r||{},o=o||{};for(a in r)et(a,r)&&(s[a]=et(a,o)?e(a,r[a],o[a]):r[a]);for(a in o)et(a,o)&&!et(a,s)&&(s[a]=o[a]);return s}),Wo=at(function t(e,r,o){return Uo(function(s,a,i){return Ht(a)&&Ht(i)?t(e,a,i):e(s,a,i)},r,o)}),Ko=V(function(e,r){return Wo(function(o,s,a){return a},e,r)});const Zo=Ko;var qo=V(function(e,r){for(var o={},s={},a=0,i=e.length;a<i;)s[e[a]]=1,a+=1;for(var l in r)s.hasOwnProperty(l)||(o[l]=r[l]);return o});const Xo=qo;var Jo=at(function(e,r,o){return e(At(r,o))});const Qo=Jo;var ta=V(function(e,r){return Array.prototype.slice.call(r,0).sort(function(o,s){for(var a=0,i=0;a===0&&i<e.length;)a=e[i](o,s),i+=1;return a})});const cr=ta;var ea=ir(1,"split");const Ot=ea;var ra=ir(0,"toLowerCase");const na=ra;var kt=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,oa="",aa=typeof String.prototype.trim=="function",sa=Y(!aa||kt.trim()||!oa.trim()?function(e){var r=new RegExp("^["+kt+"]["+kt+"]*"),o=new RegExp("["+kt+"]["+kt+"]*$");return e.replace(r,"").replace(o,"")}:function(e){return e.trim()});const Wt=sa,ur=Symbol("I18nContext"),K=n.reactive({messages:{},locale:"",fallbackLocale:""}),dr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const o=(d,u={})=>{const f=!Fo(u),c=mt(Wt,Ot(".",d));return n.computed(()=>{const m=fr(c);return f?la(m,u):m}).value},s=d=>{const u=mt(Wt,Ot(".",d));return!!fe(K.locale,u,K.messages)},a=d=>{K.locale=d},l={locale:n.computed({get(){return K.locale},set(d){K.locale=d}}),setLocale:a,translate:o,hasTranlation:s};return n.provide(ur,l),{translate:o}},pt=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=ia();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},ia=()=>{const t=n.inject(ur,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},fr=(t=[])=>{let e=fe(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=fe(K.fallbackLocale,t,K.messages)),e||t.join(".")};function fe(t,e,r){return lr([t,...e],r)}const la=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,o){return e[o]})},mr=n.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=mt(Wt,Ot(".",t.path)),o=fr(r),s=Ot(/{|}/,o),a=Object.keys(e).map(i=>{const l=s.indexOf(i);return l>-1&&(s[l]=e[i]()[0]),s});return()=>n.h(t.tag,a)}}),pr="https://api.icehockey.hu/vbr",hr="https://www.jegkorongszovetseg.hu/event/game/",gr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",yr="https://www.ersteliga.hu/stats/players#/player/",br="https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=",nt="original",b="descend",C="ascend",wr=new Map().set("hu","hu-hu").set("en","hu-gb"),Sr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ca=1e3*60*5,_r=1e3,ua={"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"},da=n.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),fa=[da];function ma(t,e){return n.openBlock(),n.createElementBlock("svg",ua,fa)}const Tr={render:ma},pa={"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"},ha=n.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),ga=[ha];function ya(t,e){return n.openBlock(),n.createElementBlock("svg",pa,ga)}const $r={render:ya};function Pt(t){return t.split("-")[1]}function me(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 Ar(t,e,r){let{reference:o,floating:s}=t;const a=o.x+o.width/2-s.width/2,i=o.y+o.height/2-s.height/2,l=vt(e),d=me(l),u=o[d]/2-s[d]/2,f=l==="x";let c;switch(ht(e)){case"top":c={x:a,y:o.y-s.height};break;case"bottom":c={x:a,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:i};break;case"left":c={x:o.x-s.width,y:i};break;default:c={x:o.x,y:o.y}}switch(Pt(e)){case"start":c[l]-=u*(r&&f?-1:1);break;case"end":c[l]+=u*(r&&f?-1:1)}return c}const ba=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:f,y:c}=Ar(u,o,d),p=o,m={},g=0;for(let h=0;h<l.length;h++){const{name:y,fn:$}=l[h],{x:A,y:P,data:N,reset:D}=await $({x:f,y:c,initialPlacement:o,placement:p,strategy:s,middlewareData:m,rects:u,platform:i,elements:{reference:t,floating:e}});f=A??f,c=P??c,m={...m,[y]:{...m[y],...N}},D&&g<=50&&(g++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(u=D.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):D.rects),{x:f,y:c}=Ar(u,p,d)),h=-1)}return{x:f,y:c,placement:p,strategy:s,middlewareData:m}};function Or(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 Kt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function kr(t,e){var r;e===void 0&&(e={});const{x:o,y:s,platform:a,rects:i,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:p=!1,padding:m=0}=e,g=Or(m),h=l[p?c==="floating"?"reference":"floating":c],y=Kt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:d})),$=c==="floating"?{...i.floating,x:o,y:s}:i.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),P=await(a.isElement==null?void 0:a.isElement(A))&&await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1},N=Kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:$,offsetParent:A,strategy:d}):$);return{top:(y.top-N.top+g.top)/P.y,bottom:(N.bottom-y.bottom+g.bottom)/P.y,left:(y.left-N.left+g.left)/P.x,right:(N.right-y.right+g.right)/P.x}}const wa=Math.min,Sa=Math.max;function pe(t,e,r){return Sa(t,wa(e,r))}const Pr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t||{},{x:s,y:a,placement:i,rects:l,platform:d,elements:u}=e;if(r==null)return{};const f=Or(o),c={x:s,y:a},p=vt(i),m=me(p),g=await d.getDimensions(r),h=p==="y",y=h?"top":"left",$=h?"bottom":"right",A=h?"clientHeight":"clientWidth",P=l.reference[m]+l.reference[p]-c[p]-l.floating[m],N=c[p]-l.reference[p],D=await(d.getOffsetParent==null?void 0:d.getOffsetParent(r));let B=D?D[A]:0;B&&await(d.isElement==null?void 0:d.isElement(D))||(B=u.floating[A]||l.floating[m]);const R=P/2-N/2,F=f[y],L=B-g[m]-f[$],E=B/2-g[m]/2+R,I=pe(F,E,L),H=Pt(i)!=null&&E!=I&&l.reference[m]/2-(E<F?f[y]:f[$])-g[m]/2<0;return{[p]:c[p]-(H?E<F?F-E:L-E:0),data:{[p]:I,centerOffset:E-I}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const _a={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(t){return t.replace(/left|right|bottom|top/g,e=>_a[e])}function Ta(t,e,r){r===void 0&&(r=!1);const o=Pt(t),s=vt(t),a=me(s);let i=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Zt(i)),{main:i,cross:Zt(i)}}const $a={start:"end",end:"start"};function he(t){return t.replace(/start|end/g,e=>$a[e])}const Aa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:d}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=t,y=ht(o),$=ht(i)===i,A=await(l.isRTL==null?void 0:l.isRTL(d.floating)),P=c||($||!g?[Zt(i)]:function(I){const H=Zt(I);return[he(I),H,he(H)]}(i));c||m==="none"||P.push(...function(I,H,k,T){const S=Pt(I);let O=function(w,v,x){const M=["left","right"],j=["right","left"],G=["top","bottom"],U=["bottom","top"];switch(w){case"top":case"bottom":return x?v?j:M:v?M:j;case"left":case"right":return v?G:U;default:return[]}}(ht(I),k==="start",T);return S&&(O=O.map(w=>w+"-"+S),H&&(O=O.concat(O.map(he)))),O}(i,g,m,A));const N=[i,...P],D=await kr(e,h),B=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&B.push(D[y]),f){const{main:I,cross:H}=Ta(o,a,A);B.push(D[I],D[H])}if(R=[...R,{placement:o,overflows:B}],!B.every(I=>I<=0)){var F,L;const I=(((F=s.flip)==null?void 0:F.index)||0)+1,H=N[I];if(H)return{data:{index:I,overflows:R},reset:{placement:H}};let k=(L=R.filter(T=>T.overflows[0]<=0).sort((T,S)=>T.overflows[1]-S.overflows[1])[0])==null?void 0:L.placement;if(!k)switch(p){case"bestFit":{var E;const T=(E=R.map(S=>[S.placement,S.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((S,O)=>S[1]-O[1])[0])==null?void 0:E[0];T&&(k=T);break}case"initialPlacement":k=i}if(o!==k)return{reset:{placement:k}}}return{}}}},Oa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,s=await async function(a,i){const{placement:l,platform:d,elements:u}=a,f=await(d.isRTL==null?void 0:d.isRTL(u.floating)),c=ht(l),p=Pt(l),m=vt(l)==="x",g=["left","top"].includes(c)?-1:1,h=f&&m?-1:1,y=typeof i=="function"?i(a):i;let{mainAxis:$,crossAxis:A,alignmentAxis:P}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof P=="number"&&(A=p==="end"?-1*P:P),m?{x:A*h,y:$*g}:{x:$*g,y:A*h}}(e,t);return{x:r+s.x,y:o+s.y,data:s}}}};function ka(t){return t==="x"?"y":"x"}const Pa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:$,y:A}=y;return{x:$,y:A}}},...d}=t,u={x:r,y:o},f=await kr(e,d),c=vt(ht(s)),p=ka(c);let m=u[c],g=u[p];if(a){const y=c==="y"?"bottom":"right";m=pe(m+f[c==="y"?"top":"left"],m,m-f[y])}if(i){const y=p==="y"?"bottom":"right";g=pe(g+f[p==="y"?"top":"left"],g,g-f[y])}const h=l.fn({...e,[c]:m,[p]:g});return{...h,data:{x:h.x-r,y:h.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 vr(t){return t instanceof X(t).Node}function st(t){return vr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function q(t){return t instanceof X(t).Element}function Er(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function Et(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function va(t){return["table","td","th"].includes(st(t))}function ge(t){const e=ye(),r=J(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function ye(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qt(t){return["html","body","#document"].includes(st(t))}const xr=Math.min,xt=Math.max,Xt=Math.round;function Nr(t){const e=J(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=Q(t),a=s?t.offsetWidth:r,i=s?t.offsetHeight:o,l=Xt(r)!==a||Xt(o)!==i;return l&&(r=a,o=i),{width:r,height:o,fallback:l}}function Dr(t){return q(t)?t:t.contextElement}const Lr={x:1,y:1};function wt(t){const e=Dr(t);if(!Q(e))return Lr;const r=e.getBoundingClientRect(),{width:o,height:s,fallback:a}=Nr(e);let i=(a?Xt(r.width):r.width)/o,l=(a?Xt(r.height):r.height)/s;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Mr={x:0,y:0};function Cr(t,e,r){var o,s;if(e===void 0&&(e=!0),!ye())return Mr;const a=t?X(t):window;return!r||e&&r!==a?Mr:{x:((o=a.visualViewport)==null?void 0:o.offsetLeft)||0,y:((s=a.visualViewport)==null?void 0:s.offsetTop)||0}}function gt(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=Dr(t);let i=Lr;e&&(o?q(o)&&(i=wt(o)):i=wt(t));const l=Cr(a,r,o);let d=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,f=s.width/i.x,c=s.height/i.y;if(a){const p=X(a),m=o&&q(o)?X(o):o;let g=p.frameElement;for(;g&&o&&m!==p;){const h=wt(g),y=g.getBoundingClientRect(),$=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat($.paddingLeft))*h.x,y.y+=(g.clientTop+parseFloat($.paddingTop))*h.y,d*=h.x,u*=h.y,f*=h.x,c*=h.y,d+=y.x,u+=y.y,g=X(g).frameElement}}return Kt({width:f,height:c,x:d,y:u})}function it(t){return((vr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jt(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Br(t){return gt(it(t)).left+Jt(t).scrollLeft}function St(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Er(t)&&t.host||it(t);return Er(e)?e.host:e}function Ir(t){const e=St(t);return qt(e)?e.ownerDocument.body:Q(e)&&Et(e)?e:Ir(e)}function Nt(t,e){var r;e===void 0&&(e=[]);const o=Ir(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),a=X(o);return s?e.concat(a,a.visualViewport||[],Et(o)?o:[]):e.concat(o,Nt(o))}function zr(t,e,r){let o;if(e==="viewport")o=function(s,a){const i=X(s),l=it(s),d=i.visualViewport;let u=l.clientWidth,f=l.clientHeight,c=0,p=0;if(d){u=d.width,f=d.height;const m=ye();(!m||m&&a==="fixed")&&(c=d.offsetLeft,p=d.offsetTop)}return{width:u,height:f,x:c,y:p}}(t,r);else if(e==="document")o=function(s){const a=it(s),i=Jt(s),l=s.ownerDocument.body,d=xt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=xt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+Br(s);const c=-i.scrollTop;return J(l).direction==="rtl"&&(f+=xt(a.clientWidth,l.clientWidth)-d),{width:d,height:u,x:f,y:c}}(it(t));else if(q(e))o=function(s,a){const i=gt(s,!0,a==="fixed"),l=i.top+s.clientTop,d=i.left+s.clientLeft,u=Q(s)?wt(s):{x:1,y:1};return{width:s.clientWidth*u.x,height:s.clientHeight*u.y,x:d*u.x,y:l*u.y}}(e,r);else{const s=Cr(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return Kt(o)}function Vr(t,e){const r=St(t);return!(r===e||!q(r)||qt(r))&&(J(r).position==="fixed"||Vr(r,e))}function Rr(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Gr(t,e){const r=X(t);if(!Q(t))return r;let o=Rr(t,e);for(;o&&va(o)&&J(o).position==="static";)o=Rr(o,e);return o&&(st(o)==="html"||st(o)==="body"&&J(o).position==="static"&&!ge(o))?r:o||function(s){let a=St(s);for(;Q(a)&&!qt(a);){if(ge(a))return a;a=St(a)}return null}(t)||r}function Ea(t,e,r){const o=Q(e),s=it(e),a=r==="fixed",i=gt(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&!a)if((st(e)!=="body"||Et(s))&&(l=Jt(e)),Q(e)){const u=gt(e,!0,a,e);d.x=u.x+e.clientLeft,d.y=u.y+e.clientTop}else s&&(d.x=Br(s));return{x:i.left+l.scrollLeft-d.x,y:i.top+l.scrollTop-d.y,width:i.width,height:i.height}}const xa={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const a=r==="clippingAncestors"?function(u,f){const c=f.get(u);if(c)return c;let p=Nt(u).filter(y=>q(y)&&st(y)!=="body"),m=null;const g=J(u).position==="fixed";let h=g?St(u):u;for(;q(h)&&!qt(h);){const y=J(h),$=ge(h);$||y.position!=="fixed"||(m=null),(g?!$&&!m:!$&&y.position==="static"&&m&&["absolute","fixed"].includes(m.position)||Et(h)&&!$&&Vr(u,h))?p=p.filter(A=>A!==h):m=y,h=St(h)}return f.set(u,p),p}(e,this._c):[].concat(r),i=[...a,o],l=i[0],d=i.reduce((u,f)=>{const c=zr(e,f,s);return u.top=xt(c.top,u.top),u.right=xr(c.right,u.right),u.bottom=xr(c.bottom,u.bottom),u.left=xt(c.left,u.left),u},zr(e,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Q(r),a=it(r);if(r===a)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const d={x:0,y:0};if((s||!s&&o!=="fixed")&&((st(r)!=="body"||Et(a))&&(i=Jt(r)),Q(r))){const u=gt(r);l=wt(r),d.x=u.x+r.clientLeft,d.y=u.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+d.x,y:e.y*l.y-i.scrollTop*l.y+d.y}},isElement:q,getDimensions:function(t){return Nr(t)},getOffsetParent:Gr,getDocumentElement:it,getScale:wt,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||Gr,a=this.getDimensions;return{reference:Ea(e,await s(r),o),floating:{x:0,y:0,...await a(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Na(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=o,d=s||a?[...q(t)?Nt(t):t.contextElement?Nt(t.contextElement):[],...Nt(e)]:[];d.forEach(p=>{const m=!q(p)&&p.toString().includes("V");!s||l&&!m||p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});let u,f=null;i&&(f=new ResizeObserver(()=>{r()}),q(t)&&!l&&f.observe(t),q(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(e));let c=l?gt(t):null;return l&&function p(){const m=gt(t);!c||m.x===c.x&&m.y===c.y&&m.width===c.width&&m.height===c.height||r(),c=m,u=requestAnimationFrame(p)}(),r(),()=>{var p;d.forEach(m=>{s&&m.removeEventListener("scroll",r),a&&m.removeEventListener("resize",r)}),(p=f)==null||p.disconnect(),f=null,l&&cancelAnimationFrame(u)}}const Da=(t,e,r)=>{const o=new Map,s={platform:xa,...r},a={...s.platform,_c:o};return ba(t,e,{...s,platform:a})},jr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function La({middleware:t,placement:e=null,strategy:r,append:o,enabled:s}){const a=n.ref(null),i=n.ref(null),l=n.ref(null),d=n.ref(null),u=n.ref(null),f=n.ref(null),c=n.ref(null),p=n.ref(r??"absolute"),m=n.ref(null),g=()=>{!a.value||!i.value||Da(a.value,i.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,d.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,f.value=y.middlewareData.arrow.y,c.value=y.placement})};n.watch(()=>({reference:n.unref(a),floating:n.unref(i),append:n.unref(o)}),({floating:y,append:$})=>{$&&jr(y,$),g()},{flush:"post"}),n.watch(s,y=>{if(!(!a.value||!i.value)){if(!y)return h();m.value=Na(a.value,i.value,g,{})}},{flush:"post"});const h=()=>{var y;(y=m.value)==null||y.call(m),m.value=null};return{x:l,y:d,arrowX:u,arrowY:f,placement:c,reference:a,floating:i,strategy:p,update:g}}const Ma=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(o){return n.isRef(e)?e.value!=null?Pr({element:e.value,padding:r}).fn(o):{}:e?Pr({element:e,padding:r}).fn(o):{}}}},Ca=["data-placement"],be={__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,r=n.ref(!1),o=n.ref(null),{x:s,y:a,arrowX:i,arrowY:l,placement:d,reference:u,floating:f,strategy:c}=La({placement:e.placement,middleware:[Aa(),Pa({padding:5}),Oa(e.offset),Ma({element:o,padding:5})],append:n.computed(()=>e.appendTo),enabled:r}),p=()=>{e.disabled||r.value||(r.value=!0)},m=y=>{r.value&&y&&(r.value=!1)},g=y=>{u.value=y},h={mouseenter:p,mouseleave:m,focus:p,blur:m};return Tn(f,y=>{var $;($=u.value)!=null&&$.contains(y.target)||m()}),(y,$)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(y.$slots,"default",{setRef:g,show:p,hide:m,events:h}),n.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":n.unref(d),style:n.normalizeStyle({position:n.unref(c),top:n.unref(a)?`${n.unref(a)}px`:"",left:n.unref(s)?`${n.unref(s)}px`:""})},[n.createVNode(n.Transition,{name:"transition-fade",mode:"out-in"},{default:n.withCtx(()=>[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["floating-content",[`is-${e.theme}`]])},[n.renderSlot(y.$slots,"content",{close:m},()=>[n.createTextVNode(n.toDisplayString(t.content),1)]),n.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:n.normalizeStyle({position:n.unref(c),top:n.unref(l)?`${n.unref(l)}px`:"",left:n.unref(i)?`${n.unref(i)}px`:""})},null,4)],2)):n.createCommentVNode("",!0)]),_:3})],12,Ca)],64))}},Ba=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ia={key:0},za=["colspan"],Va={key:1},Ra=["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 r=t,{isLoading:o,appendTo:s}=n.toRefs(r),a=Ve(o,{delay:_r}),{t:i}=pt(),l=dt("table"),d=n.computed(()=>r.columns),u=n.computed(()=>Object.keys(r.columns).length),f=(c,p)=>{c.sortOrders&&e("sort",{target:p,orders:c.sortOrders})};return(c,p)=>(n.openBlock(),n.createElementBlock("table",{class:n.normalizeClass(n.unref(l))},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(m,g)=>(n.openBlock(),n.createBlock(be,{key:g,placement:"top",content:m.tooltip,disabled:!m.tooltip,"append-to":n.unref(s)},{default:n.withCtx(({setRef:h,show:y,hide:$})=>[n.createElementVNode("th",{ref_for:!0,ref:h,class:n.normalizeClass([[m.class],{"is-active":g===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(nt),"is-sortable":m.sortOrders,"is-desc":g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b),"is-asc":g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(C)}]),onMouseenter:y,onMouseleave:$,onFocus:y,onBlur:$,onClick:A=>f(m,g),onKeydown:[n.withKeys(n.withModifiers(A=>f(m,g),["prevent"]),["space"]),n.withKeys(n.withModifiers(A=>f(m,g),["prevent"]),["enter"])],tabindex:m.sortOrders?0:-1,role:"button"},[n.renderSlot(c.$slots,`header-${g}`,{column:m},()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),m.sortOrders&&g!==t.sort.sortTarget?(n.openBlock(),n.createBlock(n.unref(Tr),{key:0,class:"is-icon-sort"})):n.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(nt)?(n.openBlock(),n.createBlock(n.unref(Tr),{key:1,class:"is-icon-sort"})):n.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b)?(n.openBlock(),n.createBlock(n.unref($r),{key:2,class:"is-icon-sort"})):n.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(C)?(n.openBlock(),n.createBlock(n.unref($r),{key:3,class:"is-icon-sort"})):n.createCommentVNode("",!0)],42,Ba)]),_:2},1032,["content","disabled","append-to"]))),128))])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rows,(m,g)=>(n.openBlock(),n.createElementBlock("tr",{key:g},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(h,y)=>(n.openBlock(),n.createElementBlock("td",{key:y,class:n.normalizeClass([[h.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(nt)}])},[n.renderSlot(c.$slots,`cell-${y}`,{row:m,prop:y},()=>[n.createTextVNode(n.toDisplayString(m[y]),1)])],2))),128))]))),128))]),n.unref(a)&&t.rows.length===0?(n.openBlock(),n.createElementBlock("tfoot",Ia,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:u.value},[n.renderSlot(c.$slots,"loading",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("common.loading")),1)])],8,za)])])):n.createCommentVNode("",!0),t.rows.length===0&&!n.unref(o)&&!n.unref(a)?(n.openBlock(),n.createElementBlock("tfoot",Va,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:u.value},[n.renderSlot(c.$slots,"empty",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("common.noData")),1)])],8,Ra)])])):n.createCommentVNode("",!0)],2))}},Ga={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"},ja=n.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),Fa=n.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Ya=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),Ha=[ja,Fa,Ya];function Ua(t,e){return n.openBlock(),n.createElementBlock("svg",Ga,Ha)}const Wa={render:Ua},Ka={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:o}=pt(),s=dt("error-notice"),a=n.computed(()=>{var i;return o(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(s))},[n.createVNode(n.unref(Wa),{class:"icon",width:"20",height:"20"}),n.createElementVNode("span",null,n.toDisplayString(a.value),1)],2))}};function Fr(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("-")}function Se(t,e,r){return(new Array(r+1).join(e)+t).slice(-r)}const Yr=Symbol("ErrorProviderContext"),Hr=()=>{const t=n.ref(""),e=n.ref({}),r=a=>{console.log({error:a}),t.value=a.message||a.error.message,e.value={message:a.message,key:a.key||Fr(a.message),cause:a.cause}},s={onError:r,reset:()=>{t.value="",e.value={}}};return n.provide(Yr,s),window.onerror=a=>{console.log("WINDOW_ONERROR:",a)},n.onErrorCaptured((a,i,l)=>{console.log("onErrorCaptured:",a,i,l)}),{hasError:n.computed(()=>t.value.length>0),message:t,error:e,onError:r}},_e=()=>{const t=Za();return{onError:t.onError,reset:t.reset}},Za=()=>{const t=n.inject(Yr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},qa={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:o}=Hr();return(s,a)=>n.renderSlot(s.$slots,"default",{message:n.unref(e),error:n.unref(o),hasError:n.unref(r)})}},Xa={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:"M",tooltip:"Mérkőzésszám"},wins:{short:"GY",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"GYH",tooltip:"Győzelem Hosszabbításban"},otl:{short:"VH",tooltip:"Vereség Hosszabbításban"},losses:{short:"V",tooltip:"Vereség"},goalFor:{short:"SZG",tooltip:"Szerzett Gól"},goalAgainst:{short:"KG",tooltip:"Kapott Gól"},goalDiff:{short:"GK",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:"L",tooltip:"Lövések"},sogPercent:{short:"L%",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:"M",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"LM",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:"KL",tooltip:"Kapott Lövés"},svs:{short:"VL",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"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{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"}}},Ja={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"},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:"PTS",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:"SOG",tooltip:"Shots on Goal"},sogPercent:{short:"SOG%",tooltip:"Shots on Goal Percent"},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"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{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"}}},Ur=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},Qa=n.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Zo({hu:Xa,en:Ja},t.messages),{translate:r}=dr({locale:n.computed(()=>t.locale),messages:e});return{translate:r}}});function ts(t,e,r,o,s,a){return n.renderSlot(t.$slots,"default",{t:t.translate})}const es=Ur(Qa,[["render",ts]]),rs=["src"],ns=["src","title"],Dt=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:r}=n.toRefs(e),o=n.ref({src:e.src}),{error:s,isReady:a}=Bn(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(s)&&n.unref(r)?(n.openBlock(),n.createElementBlock("img",{key:0,src:n.unref(r),class:n.normalizeClass(["is-loaded",i.$attrs.class])},null,10,rs)):n.createCommentVNode("",!0),n.unref(s)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:1,src:o.value.src,class:n.normalizeClass([i.$attrs.class,{"is-loaded":n.unref(a)}]),title:e.title},null,10,ns))],64))}}),os={style:{"text-align":"center"}},Te={__name:"LoadingIndicator",setup(t){const{t:e}=pt();return(r,o)=>(n.openBlock(),n.createElementBlock("div",os,n.toDisplayString(n.unref(e)("common.loading")),1))}};function as({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:o=5,update:s=rt}){const a=n.computed(()=>Math.ceil(n.unref(r)/e)),i=n.computed(()=>{const f=n.unref(t)-1,c=Array.from({length:a.value},(g,h)=>h+1),p=Math.floor(o/2);let m=Math.max(f-p,0);return m+o>=a.value&&(m=Math.max(a.value-o,0)),c.slice(m,m+o)}),l=f=>{const c=n.unref(t)+f;u(c)&&s(c)},d=f=>{u(f)&&s(f)},u=f=>f<=a.value&&f>0;return{page:t,range:i,pageCount:a,goTo:d,pageStep:l}}const ss={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"},is=n.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ls=[is];function cs(t,e){return n.openBlock(),n.createElementBlock("svg",ss,ls)}const us={render:cs},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=n.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),ms=[fs];function ps(t,e){return n.openBlock(),n.createElementBlock("svg",ds,ms)}const hs={render:ps},gs=["disabled"],ys=["disabled"],bs={key:1,class:"is-disabled"},ws=["disabled","onClick"],Ss={key:2,class:"is-disabled"},_s=[n.createElementVNode("span",null,"...",-1)],Ts=["disabled"],$s=["disabled"],As={__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 r=t,o=dt("paginator"),{page:s,pageCount:a,range:i,goTo:l,pageStep:d}=as({currentPage:n.computed(()=>r.page),totalItems:n.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:u=>e("change",u)});return(u,f)=>n.unref(a)>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o))},[n.createElementVNode("button",{type:"button",disabled:n.unref(s)===1,onClick:f[0]||(f[0]=c=>n.unref(d)(-1))},[n.renderSlot(u.$slots,"prev",{},()=>[n.createVNode(n.unref(us),{class:"icon paginator-left"})])],8,gs),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",disabled:n.unref(s)===1,onClick:f[1]||(f[1]=c=>n.unref(l)(1))},"1",8,ys)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",bs,"...")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),c=>(n.openBlock(),n.createElementBlock("button",{type:"button",key:c,class:n.normalizeClass({"is-active":c===n.unref(s)}),disabled:c===n.unref(s),onClick:p=>n.unref(l)(c)},n.toDisplayString(c),11,ws))),128)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Ss,_s)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:3,type:"button",disabled:n.unref(s)===n.unref(a),onClick:f[2]||(f[2]=c=>n.unref(l)(n.unref(a)))},n.toDisplayString(n.unref(a)),9,Ts)),n.createElementVNode("button",{type:"button",disabled:n.unref(s)===n.unref(a),onClick:f[3]||(f[3]=n.withModifiers(c=>n.unref(d)(1),["prevent"]))},[n.renderSlot(u.$slots,"next",{},()=>[n.createVNode(n.unref(hs),{class:"icon paginator-left"})])],8,$s)],2)):n.createCommentVNode("",!0)}},$e={__name:"ResponsiveTable",setup(t){const e=n.ref(null),r=dt("table-responsive");return(o,s)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"el",ref:e,class:n.normalizeClass(n.unref(r))},[n.renderSlot(o.$slots,"default",{el:e.value})],2))}};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r=1e3,o=6e4,s=36e5,a="millisecond",i="second",l="minute",d="hour",u="day",f="week",c="month",p="quarter",m="year",g="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,A={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(k){var T=["th","st","nd","rd"],S=k%100;return"["+k+(T[(S-20)%10]||T[S]||T[0])+"]"}},P=function(k,T,S){var O=String(k);return!O||O.length>=T?k:""+Array(T+1-O.length).join(S)+k},N={s:P,z:function(k){var T=-k.utcOffset(),S=Math.abs(T),O=Math.floor(S/60),w=S%60;return(T<=0?"+":"-")+P(O,2,"0")+":"+P(w,2,"0")},m:function k(T,S){if(T.date()<S.date())return-k(S,T);var O=12*(S.year()-T.year())+(S.month()-T.month()),w=T.clone().add(O,c),v=S-w<0,x=T.clone().add(O+(v?-1:1),c);return+(-(O+(S-w)/(v?w-x:x-w))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:c,y:m,w:f,d:u,D:g,h:d,m:l,s:i,ms:a,Q:p}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},D="en",B={};B[D]=A;var R=function(k){return k instanceof I},F=function k(T,S,O){var w;if(!T)return D;if(typeof T=="string"){var v=T.toLowerCase();B[v]&&(w=v),S&&(B[v]=S,w=v);var x=T.split("-");if(!w&&x.length>1)return k(x[0])}else{var M=T.name;B[M]=T,w=M}return!O&&w&&(D=w),w||!O&&D},L=function(k,T){if(R(k))return k.clone();var S=typeof T=="object"?T:{};return S.date=k,S.args=arguments,new I(S)},E=N;E.l=F,E.i=R,E.w=function(k,T){return L(k,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var I=function(){function k(S){this.$L=F(S.locale,null,!0),this.parse(S)}var T=k.prototype;return T.parse=function(S){this.$d=function(O){var w=O.date,v=O.utc;if(w===null)return new Date(NaN);if(E.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var x=w.match(y);if(x){var M=x[2]-1||0,j=(x[7]||"0").substring(0,3);return v?new Date(Date.UTC(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,j)):new Date(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,j)}}return new Date(w)}(S),this.$x=S.x||{},this.init()},T.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},T.$utils=function(){return E},T.isValid=function(){return this.$d.toString()!==h},T.isSame=function(S,O){var w=L(S);return this.startOf(O)<=w&&w<=this.endOf(O)},T.isAfter=function(S,O){return L(S)<this.startOf(O)},T.isBefore=function(S,O){return this.endOf(O)<L(S)},T.$g=function(S,O,w){return E.u(S)?this[O]:this.set(w,S)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(S,O){var w=this,v=!!E.u(O)||O,x=E.p(S),M=function(_t,Z){var ut=E.w(w.$u?Date.UTC(w.$y,Z,_t):new Date(w.$y,Z,_t),w);return v?ut:ut.endOf(u)},j=function(_t,Z){return E.w(w.toDate()[_t].apply(w.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(Z)),w)},G=this.$W,U=this.$M,ct=this.$D,ot="set"+(this.$u?"UTC":"");switch(x){case m:return v?M(1,0):M(31,11);case c:return v?M(1,U):M(0,U+1);case f:var Ct=this.$locale().weekStart||0,Bt=(G<Ct?G+7:G)-Ct;return M(v?ct-Bt:ct+(6-Bt),U);case u:case g:return j(ot+"Hours",0);case d:return j(ot+"Minutes",1);case l:return j(ot+"Seconds",2);case i:return j(ot+"Milliseconds",3);default:return this.clone()}},T.endOf=function(S){return this.startOf(S,!1)},T.$set=function(S,O){var w,v=E.p(S),x="set"+(this.$u?"UTC":""),M=(w={},w[u]=x+"Date",w[g]=x+"Date",w[c]=x+"Month",w[m]=x+"FullYear",w[d]=x+"Hours",w[l]=x+"Minutes",w[i]=x+"Seconds",w[a]=x+"Milliseconds",w)[v],j=v===u?this.$D+(O-this.$W):O;if(v===c||v===m){var G=this.clone().set(g,1);G.$d[M](j),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else M&&this.$d[M](j);return this.init(),this},T.set=function(S,O){return this.clone().$set(S,O)},T.get=function(S){return this[E.p(S)]()},T.add=function(S,O){var w,v=this;S=Number(S);var x=E.p(O),M=function(U){var ct=L(v);return E.w(ct.date(ct.date()+Math.round(U*S)),v)};if(x===c)return this.set(c,this.$M+S);if(x===m)return this.set(m,this.$y+S);if(x===u)return M(1);if(x===f)return M(7);var j=(w={},w[l]=o,w[d]=s,w[i]=r,w)[x]||1,G=this.$d.getTime()+S*j;return E.w(G,this)},T.subtract=function(S,O){return this.add(-1*S,O)},T.format=function(S){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||h;var v=S||"YYYY-MM-DDTHH:mm:ssZ",x=E.z(this),M=this.$H,j=this.$m,G=this.$M,U=w.weekdays,ct=w.months,ot=function(Z,ut,xe,te){return Z&&(Z[ut]||Z(O,v))||xe[ut].slice(0,te)},Ct=function(Z){return E.s(M%12||12,Z,"0")},Bt=w.meridiem||function(Z,ut,xe){var te=Z<12?"AM":"PM";return xe?te.toLowerCase():te},_t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:E.s(G+1,2,"0"),MMM:ot(w.monthsShort,G,ct,3),MMMM:ot(ct,G),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:ot(w.weekdaysMin,this.$W,U,2),ddd:ot(w.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(M),HH:E.s(M,2,"0"),h:Ct(1),hh:Ct(2),a:Bt(M,j,!0),A:Bt(M,j,!1),m:String(j),mm:E.s(j,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:x};return v.replace($,function(Z,ut){return ut||_t[Z]||x.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(S,O,w){var v,x=E.p(O),M=L(S),j=(M.utcOffset()-this.utcOffset())*o,G=this-M,U=E.m(this,M);return U=(v={},v[m]=U/12,v[c]=U,v[p]=U/3,v[f]=(G-j)/6048e5,v[u]=(G-j)/864e5,v[d]=G/s,v[l]=G/o,v[i]=G/r,v)[x]||G,w?U:E.a(U)},T.daysInMonth=function(){return this.endOf(c).$D},T.$locale=function(){return B[this.$L]},T.locale=function(S,O){if(!S)return this.$L;var w=this.clone(),v=F(S,O,!0);return v&&(w.$L=v),w},T.clone=function(){return E.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()},k}(),H=I.prototype;return L.prototype=H,[["$ms",a],["$s",i],["$m",l],["$H",d],["$W",u],["$M",c],["$y",m],["$D",g]].forEach(function(k){H[k[1]]=function(T){return this.$g(T,k[0],k[1])}}),L.extend=function(k,T){return k.$i||(k(T,I,L),k.$i=!0),L},L.locale=F,L.isDayjs=R,L.unix=function(k){return L(1e3*k)},L.en=B[D],L.Ls=B,L.p={},L})})(Wr);var Kr=Wr.exports;const W=yt(Kr);var Zr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(a,i,l){var d=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},d.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),r):y},d.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=d.parse;d.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var f=d.init;d.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var c=d.utcOffset;d.utcOffset=function(h,y){var $=this.$utils().u;if($(h))return this.$u?0:$(this.$offset)?c.call(this):this.$offset;if(typeof h=="string"&&(h=function(D){D===void 0&&(D="");var B=D.match(o);if(!B)return null;var R=(""+B[0]).match(s)||["-",0,0],F=R[0],L=60*+R[1]+ +R[2];return L===0?0:F==="+"?L:-L}(h),h===null))return this;var A=Math.abs(h)<=16?60*h:h,P=this;if(y)return P.$offset=A,P.$u=h===0,P;if(h!==0){var N=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add(A+N,r)).$offset=A,P.$x.$localOffset=N}else P=this.utc();return P};var p=d.format;d.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},d.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var m=d.toDate;d.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var g=d.diff;d.diff=function(h,y,$){if(h&&this.$u===h.$u)return g.call(this,h,y,$);var A=this.local(),P=l(h).local();return g.call(A,P,y,$)}}})})(Zr);var Os=Zr.exports;const ks=yt(Os);var qr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(s,a,i){var l,d=function(p,m,g){g===void 0&&(g={});var h=new Date(p),y=function($,A){A===void 0&&(A={});var P=A.timeZoneName||"short",N=$+"|"+P,D=o[N];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:$,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:P}),o[N]=D),D}(m,g);return y.formatToParts(h)},u=function(p,m){for(var g=d(p,m),h=[],y=0;y<g.length;y+=1){var $=g[y],A=$.type,P=$.value,N=r[A];N>=0&&(h[N]=parseInt(P,10))}var D=h[3],B=D===24?0:D,R=h[0]+"-"+h[1]+"-"+h[2]+" "+B+":"+h[4]+":"+h[5]+":000",F=+p;return(i.utc(R).valueOf()-(F-=F%1e3))/6e4},f=a.prototype;f.tz=function(p,m){p===void 0&&(p=l);var g=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),$=Math.round((h-new Date(y))/1e3/60),A=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-$,!0);if(m){var P=A.utcOffset();A=A.add(g-P,"minute")}return A.$x.$timezone=p,A},f.offsetName=function(p){var m=this.$x.$timezone||i.tz.guess(),g=d(this.valueOf(),m,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return g&&g.value};var c=f.startOf;f.startOf=function(p,m){if(!this.$x||!this.$x.$timezone)return c.call(this,p,m);var g=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(g,p,m).tz(this.$x.$timezone,!0)},i.tz=function(p,m,g){var h=g&&m,y=g||m||l,$=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var A=function(B,R,F){var L=B-60*R*1e3,E=u(L,F);if(R===E)return[L,R];var I=u(L-=60*(E-R)*1e3,F);return E===I?[L,E]:[B-60*Math.min(E,I)*1e3,Math.max(E,I)]}(i.utc(p,h).valueOf(),$,y),P=A[0],N=A[1],D=i(P).utcOffset(N);return D.$x.$timezone=y,D},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(qr);var Ps=qr.exports;const vs=yt(Ps);var Xr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){return function(r,o){var s=o.prototype,a=s.format;s.format=function(i){var l=this,d=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),f=(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(c){switch(c){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return d.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return d.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),c==="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 c}});return a.bind(this)(f)}}})})(Xr);var Es=Xr.exports;const xs=yt(Es);var Jr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){return function(r,o){o.prototype.isSameOrBefore=function(s,a){return this.isSame(s,a)||this.isBefore(s,a)}}})})(Jr);var Ns=Jr.exports;const Ds=yt(Ns);var Qr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){return function(r,o,s){o.prototype.isBetween=function(a,i,l,d){var u=s(a),f=s(i),c=(d=d||"()")[0]==="(",p=d[1]===")";return(c?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(f,l):!this.isAfter(f,l))||(c?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(f,l):!this.isBefore(f,l))}}})})(Qr);var Ls=Qr.exports;const Ms=yt(Ls);var tn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r={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,s,a){var i=s.prototype,l=i.format;a.en.formats=r,i.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(c,p){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,g,h){var y=h&&h.toUpperCase();return g||p[h]||r[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,A,P){return A||P.slice(1)})})}(d,u===void 0?{}:u);return l.call(this,f)}}})})(tn);var Cs=tn.exports;const Bs=yt(Cs);var Is={exports:{}};(function(t,e){(function(r,o){t.exports=o(Kr)})(lt,function(r){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var s=o(r),a={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,d,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,d,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,d,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,d,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,d,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,d,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,d,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,d,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,d,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,d,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,d,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 s.default.locale(a,null,!0),a})})(Is),W.extend(ks),W.extend(vs),W.extend(xs),W.extend(Bs),W.extend(Ds),W.extend(Ms);const en=()=>W.tz.guess(),Qt=(t="",e="",r="",o="hu")=>(r=r||W.tz.guess(),W(t).isValid()?W(t).tz(r).locale(o).format(e):""),Lt=(t="",e="",r="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const s=new Intl.DateTimeFormat(zs(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return s&&s.value},zs=t=>wr.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},rn=t=>{const e=~~(t/60),r=~~t%60;return Se(e,"0",2)+":"+Se(r,"0",2)},nn=(t,e="day")=>W().isSameOrBefore(W(t),e),Vs=(t,e,r)=>W(t).isBetween(e,W(r)),Rs=(t,e,r="month")=>W(t).isSame(e,r),Gs=["onClick"],js={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:o}=pt(),s=dt("timezone-selector"),a=n.computed(()=>Lt(new Date,null,r.locale)),i=en(),l=n.computed(()=>Array.from(Sr.values()).map(u=>({...u,isActive:Lt(new Date,r.currentZone,r.locale)===Lt(new Date,u.timezone,r.locale),zoneOffsetName:Lt(new Date,u.timezone,r.locale)}))),d=u=>e("change",u);return(u,f)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(s))},[n.createVNode(n.unref(mr),{path:"common.selectTimezone",tag:"span"},{timezone:n.withCtx(()=>[n.createElementVNode("a",{href:"#",onClick:f[0]||(f[0]=n.withModifiers(c=>d(n.unref(i)),["prevent"]))},n.toDisplayString(a.value),1)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,c=>(n.openBlock(),n.createElementBlock("a",{key:c.countryLabelKey,href:"#",class:n.normalizeClass({"is-active":c.isActive}),onClick:n.withModifiers(p=>d(c.timezone),["prevent"])},n.toDisplayString(n.unref(o)(`common.${c.countryLabelKey}`))+" ("+n.toDisplayString(c.zoneOffsetName)+") ",11,Gs))),128))],2))}},Oe=(t,e="",r={})=>{const o=n.ref(""),{t:s}=pt();if(e)try{const l=on(n.unref(t),e);t=Xo(l,n.unref(t))}catch(l){o.value=l}const a=l=>({...l,...l.label&&{label:s(l.label??"",n.unref(r))},...l.tooltip&&{tooltip:s(l.tooltip??"")}});return{columns:n.computed(()=>mt(a,n.unref(t))),error:o}},on=(t,e="")=>{const r=mt(Wt,Ot(",",e)),o=ft(t);if(r[0]==="")return resolve([]);const s=r.findIndex(a=>!o.includes(a));if(s>-1)throw r[s];return r};class ke extends Error{constructor(e,r={}){const{key:o,cause:s}=r;super(e),this.name="WidgetError",this.key=o,this.cause=s}}const Mt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Fs={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ys={class:"is-portrait-image"},Hs={class:"is-team-name-long"},Us={class:"is-team-name-short"},Ws=["href"],Ks={class:"is-team-name-long"},Zs={class:"is-team-name-short"},qs=["href"],Xs={__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:()=>{}},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:HTMLElement,default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{onError:o}=_e(),s=n.computed(()=>r.columns),{columns:a,error:i}=Oe(s,r.hideColumns);i.value&&o(new ke(Mt.message,{...Mt.options,cause:{column:i.value}}));const l=d=>e("sort",d);return(d,u)=>(n.openBlock(),n.createBlock($e,null,{default:n.withCtx(({el:f})=>[n.createVNode(we,{columns:n.unref(a),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||f,onSort:l},n.createSlots({"cell-index":n.withCtx(({row:c})=>[n.createElementVNode("span",{class:n.normalizeClass(c.indexClass)},n.toDisplayString(c.index),3)]),"cell-playerPortrait":n.withCtx(({row:c})=>[n.createElementVNode("div",Ys,[(n.openBlock(),n.createBlock(Dt,{key:c.id||c.playerId,src:c.playerPortrait,"default-src":n.unref(gr)},null,8,["src","default-src"]))])]),"cell-teamLogo":n.withCtx(({row:c})=>[(n.openBlock(),n.createBlock(Dt,{class:"is-logo-image",key:c.team.id||c.id,src:c.team.logo},null,8,["src"]))]),"cell-teamName":n.withCtx(({row:c})=>[n.createElementVNode("span",Hs,n.toDisplayString(c.team.longName),1),n.createElementVNode("span",Us,n.toDisplayString(c.team.shortName),1)]),loading:n.withCtx(()=>[n.createVNode(Te)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:n.withCtx(({row:c})=>[n.createElementVNode("a",{href:t.externalTeamResolver(c.team.longName),target:"_blank"},[n.createElementVNode("span",Ks,n.toDisplayString(c.team.longName),1),n.createElementVNode("span",Zs,n.toDisplayString(c.team.shortName),1)],8,Ws)]),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:n.withCtx(({row:c})=>[n.createElementVNode("a",{href:t.externalPlayerResolver(c.id),target:"_blank"},n.toDisplayString(c.name),9,qs)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},an={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:""}},Js={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}]},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}]}},Qs={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}]}},ti={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}]},g:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"g",direction:b},{target:"a",direction:b}]},a:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"a",direction:b},{target:"g",direction:b}]},point:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"point",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shoot:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shoot",direction:b}]},shootPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},ei={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}]}},ri={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}]},mip:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mipSec",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}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",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}]}},ni={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}]}},oi={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}]}},ai={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}]},dvgTime:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTimeSec",direction:b}]},dvgTimePP1:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1Sec",direction:b}]},dvgTimePP2:{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}]}},si={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}]},advTime:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTimeSec",direction:b}]},advTimePP1:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1Sec",direction:b}]},advTimePP2:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2Sec",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}]}},ii={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}]},m:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},plus:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"plus",direction:b}]},minus:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"minus",direction:C}]},gk:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gk",direction:b}]},GFGP:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"GFGP",direction:b}]},GAGP:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"GAGP",direction:C}]},Shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"Shots",direction:b}]},SA:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"SA",direction:C}]},ShotsGP:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"ShotsGP",direction:b}]},SAGP:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"SAGP",direction:C}]},GFShots:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"GFShots",direction:b}]}},sn=async(t,e,r)=>{const o=`${pr}${n.unref(t)}?${li(r)}`;return new Promise((s,a)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ci(e)}}).then(i=>i.json()).then(i=>{if(i.error)return a(i);s(i.data)}).catch(i=>{a(i)})})},li=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ci=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},ui=(t={})=>{const{initial:e=1,items:r=[],limit:o,auto:s=!1}=t,a=n.ref(e),i=u=>nn(u,"day");return wn(r,()=>{if(!s)return;const u=Mo(Qo(i,"gameDate"))(n.unref(r));a.value=u===-1?1:Math.floor(u/o)+1}),{page:a,change:u=>{a.value=u}}},di=({options:t={},transform:e=s=>s,onError:r=rt,onSuccess:o=rt})=>{const{path:s,apiKey:a,params:i}=t,{state:l,error:d,isLoading:u,execute:f}=Be(()=>sn(s,a,n.unref(i)).then(c=>e(c)),[],{immediate:!1,resetOnExecute:!1,onError:r,onSuccess:o});return{state:l,error:d,isLoading:u,execute:f}};/*! *****************************************************************************
|
|
8
|
+
var MjszVbrElementsCore=function(_,n){"use strict";const dt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,mn={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,o=dt("base-input"),s=n.computed({get:()=>r.modelValue,set:a=>e("update:modelValue",a)});return(a,i)=>n.withDirectives((n.openBlock(),n.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),class:n.normalizeClass([n.unref(o),"is-select"])},[n.renderSlot(a.$slots,"default")],2)),[[n.vModelSelect,s.value]])}};function Ne(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():n.unref(t)}const zt=typeof window<"u",rt=()=>{},pn=hn();function hn(){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,r="Timeout"){return new Promise((o,s)=>{setTimeout(e?()=>s(r):o,t)})}function re(t,e=!1){function r(c,{flush:p="sync",deep:m=!1,timeout:g,throwOnTimeout:h}={}){let y=null;const A=[new Promise(P=>{y=n.watch(t,N=>{c(N)!==e&&(y==null||y(),P(N))},{flush:p,deep:m,immediate:!0})})];return g!=null&&A.push(ee(g,h).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race(A)}function o(c,p){if(!n.isRef(c))return r(N=>N===c,p);const{flush:m="sync",deep:g=!1,timeout:h,throwOnTimeout:y}=p??{};let $=null;const P=[new Promise(N=>{$=n.watch([t,c],([L,B])=>{e!==(L===B)&&($==null||$(),N(L))},{flush:m,deep:g,immediate:!0})})];return h!=null&&P.push(ee(h,y).then(()=>tt(t)).finally(()=>($==null||$(),tt(t)))),Promise.race(P)}function s(c){return r(p=>!!p,c)}function a(c){return o(null,c)}function i(c){return o(void 0,c)}function l(c){return r(Number.isNaN,c)}function d(c,p){return r(m=>{const g=Array.from(m);return g.includes(c)||g.includes(tt(c))},p)}function u(c){return f(1,c)}function f(c=1,p){let m=-1;return r(()=>(m+=1,m>=c),p)}return Array.isArray(tt(t))?{toMatch:r,toContains:d,changed:u,changedTimes:f,get not(){return re(t,!e)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:a,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:f,get not(){return re(t,!e)}}}function gn(t){return re(t)}function yn(t,e,r={}){const{immediate:o=!0}=r,s=n.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function l(){s.value=!1,i()}function d(...u){i(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,t(...u)},tt(e))}return o&&(s.value=!0,zt&&d()),Ne(l),{isPending:n.readonly(s),start:d,stop:l}}function bn(t,e,r){const o=n.watch(t,(...s)=>(n.nextTick(()=>o()),e(...s)),r)}function wn(t,e,r){return n.watch(t,(o,s,a)=>{o&&e(o,s,a)},r)}function Tt(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Le=zt?window:void 0,Sn=zt?window.document:void 0;function It(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=Le):[e,r,o,s]=t,!e)return rt;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},l=(f,c,p,m)=>(f.addEventListener(c,p,m),()=>f.removeEventListener(c,p,m)),d=n.watch(()=>[Tt(e),tt(s)],([f,c])=>{i(),f&&a.push(...r.flatMap(p=>o.map(m=>l(f,p,m,c))))},{immediate:!0,flush:"post"}),u=()=>{d(),i()};return Ne(u),u}let De=!1;function _n(t,e,r={}){const{window:o=Le,ignore:s=[],capture:a=!0,detectIframe:i=!1}=r;if(!o)return;pn&&!De&&(De=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",rt)));let l=!0;const d=p=>s.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(g=>g===p.target||p.composedPath().includes(g));{const g=Tt(m);return g&&(p.target===g||p.composedPath().includes(g))}}),f=[It(o,"click",p=>{const m=Tt(t);if(!(!m||m===p.target||p.composedPath().includes(m))){if(p.detail===0&&(l=!d(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:a}),It(o,"pointerdown",p=>{const m=Tt(t);m&&(l=!p.composedPath().includes(m)&&!d(p))},{passive:!0}),i&&It(o,"blur",p=>{var m;const g=Tt(t);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(g!=null&&g.contains(o.document.activeElement))&&e(p)})].filter(Boolean);return()=>f.forEach(p=>p())}var Tn=Object.defineProperty,$n=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,Ce=(t,e,r)=>e in t?Tn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pn=(t,e)=>{for(var r in e||(e={}))On.call(e,r)&&Ce(t,r,e[r]);if(Me)for(var r of Me(e))kn.call(e,r)&&Ce(t,r,e[r]);return t},vn=(t,e)=>$n(t,An(e));function Be(t,e,r){const{immediate:o=!0,delay:s=0,onError:a=rt,onSuccess:i=rt,resetOnExecute:l=!0,shallow:d=!0,throwError:u}=r??{},f=d?n.shallowRef(e):n.ref(e),c=n.ref(!1),p=n.ref(!1),m=n.shallowRef(void 0);async function g($=0,...A){l&&(f.value=e),m.value=void 0,c.value=!1,p.value=!0,$>0&&await ee($);const P=typeof t=="function"?t(...A):t;try{const N=await P;f.value=N,c.value=!0,i(N)}catch(N){if(m.value=N,a(N),u)throw N}finally{p.value=!1}return f.value}o&&g(s);const h={state:f,isReady:c,isLoading:p,error:m,execute:g};function y(){return new Promise(($,A)=>{gn(p).toBe(!1).then(()=>$(h)).catch(A)})}return vn(Pn({},h),{then($,A){return y().then($,A)}})}function En({document:t=Sn}={}){if(!t)return n.ref("visible");const e=n.ref(t.visibilityState);return It(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var xn=Object.defineProperty,ze=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Ie=(t,e,r)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Dn=(t,e)=>{for(var r in e||(e={}))Nn.call(e,r)&&Ie(t,r,e[r]);if(ze)for(var r of ze(e))Ln.call(e,r)&&Ie(t,r,e[r]);return t};async function Mn(t){return new Promise((e,r)=>{const o=new Image,{src:s,srcset:a,sizes:i,class:l,loading:d,crossorigin:u}=t;o.src=s,a&&(o.srcset=a),i&&(o.sizes=i),l&&(o.className=l),d&&(o.loading=d),u&&(o.crossOrigin=u),o.onload=()=>e(o),o.onerror=r})}function Cn(t,e={}){const r=Be(()=>Mn(tt(t)),void 0,Dn({resetOnExecute:!0},e));return n.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function Ve(t=[],e={}){const{delay:r=0}=e,o=n.ref(!1),s=n.computed(()=>{const l=n.unref(t);return Array.isArray(l)?l.map(d=>n.unref(d)).some(Boolean):l}),{start:a,stop:i}=yn(()=>{o.value=!0},r);return n.watch(s,l=>{if(l)return a();i(),o.value=!1},{immediate:!0,deep:!0}),o}function I(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Y(t){return function e(r){return arguments.length===0||I(r)?e:t.apply(this,arguments)}}function V(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return I(r)?e:Y(function(s){return t(r,s)});default:return I(r)&&I(o)?e:I(r)?Y(function(s){return t(s,o)}):I(o)?Y(function(s){return t(r,s)}):t(r,o)}}}function Vt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,o){return e.apply(this,arguments)};case 3:return function(r,o,s){return e.apply(this,arguments)};case 4:return function(r,o,s,a){return e.apply(this,arguments)};case 5:return function(r,o,s,a,i){return e.apply(this,arguments)};case 6:return function(r,o,s,a,i,l){return e.apply(this,arguments)};case 7:return function(r,o,s,a,i,l,d){return e.apply(this,arguments)};case 8:return function(r,o,s,a,i,l,d,u){return e.apply(this,arguments)};case 9:return function(r,o,s,a,i,l,d,u,f){return e.apply(this,arguments)};case 10:return function(r,o,s,a,i,l,d,u,f,c){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ne(t,e,r){return function(){for(var o=[],s=0,a=t,i=0;i<e.length||s<arguments.length;){var l;i<e.length&&(!I(e[i])||s>=arguments.length)?l=e[i]:(l=arguments[s],s+=1),o[i]=l,I(l)||(a-=1),i+=1}return a<=0?r.apply(this,o):Vt(a,ne(t,o,r))}}var Rt=V(function(e,r){return e===1?Y(r):Vt(e,ne(e,[],r))});function at(t){return function e(r,o,s){switch(arguments.length){case 0:return e;case 1:return I(r)?e:V(function(a,i){return t(r,a,i)});case 2:return I(r)&&I(o)?e:I(r)?V(function(a,i){return t(a,o,i)}):I(o)?V(function(a,i){return t(r,a,i)}):Y(function(a){return t(r,o,a)});default:return I(r)&&I(o)&&I(s)?e:I(r)&&I(o)?V(function(a,i){return t(a,i,s)}):I(r)&&I(s)?V(function(a,i){return t(a,o,i)}):I(o)&&I(s)?V(function(a,i){return t(r,a,i)}):I(r)?Y(function(a){return t(a,o,s)}):I(o)?Y(function(a){return t(r,a,s)}):I(s)?Y(function(a){return t(r,o,a)}):t(r,o,s)}}}const Gt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Bn(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function jt(t,e,r){return function(){if(arguments.length===0)return r();var o=arguments[arguments.length-1];if(!Gt(o)){for(var s=0;s<t.length;){if(typeof o[t[s]]=="function")return o[t[s]].apply(o,Array.prototype.slice.call(arguments,0,-1));s+=1}if(Bn(o)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(o)}}return r.apply(this,arguments)}}function Re(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const bt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ge(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function je(t,e,r){for(var o=0,s=r.length;o<s;){if(t(e,r[o]))return!0;o+=1}return!1}function zn(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 In(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const oe=typeof Object.is=="function"?Object.is:In;var Fe=Object.prototype.toString,Ye=function(){return Fe.call(arguments)==="[object Arguments]"?function(e){return Fe.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Vn=!{toString:null}.propertyIsEnumerable("toString"),Ue=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],He=function(){return arguments.propertyIsEnumerable("length")}(),Rn=function(e,r){for(var o=0;o<e.length;){if(e[o]===r)return!0;o+=1}return!1},ft=Y(typeof Object.keys=="function"&&!He?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,o,s=[],a=He&&Ye(e);for(r in e)et(r,e)&&(!a||r!=="length")&&(s[s.length]=r);if(Vn)for(o=Ue.length-1;o>=0;)r=Ue[o],et(r,e)&&!Rn(s,r)&&(s[s.length]=r),o-=1;return s}),ae=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function We(t,e,r,o){var s=Ge(t),a=Ge(e);function i(l,d){return se(l,d,r.slice(),o.slice())}return!je(function(l,d){return!je(i,d,l)},a,s)}function se(t,e,r,o){if(oe(t,e))return!0;var s=ae(t);if(s!==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(s){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&zn(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 a=r.length-1;a>=0;){if(r[a]===t)return o[a]===e;a-=1}switch(s){case"Map":return t.size!==e.size?!1:We(t.entries(),e.entries(),r.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:We(t.values(),e.values(),r.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=ft(t);if(i.length!==ft(e).length)return!1;var l=r.concat([t]),d=o.concat([e]);for(a=i.length-1;a>=0;){var u=i[a];if(!(et(u,e)&&se(e[u],t[u],l,d)))return!1;a-=1}return!0}var Ft=V(function(e,r){return se(e,r,[],[])});function Gn(t,e,r){var o,s;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;r<t.length;){if(s=t[r],s===0&&1/s===o)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(s=t[r],typeof s=="number"&&s!==s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Ft(t[r],e))return r;r+=1}return-1}function Ke(t,e){return Gn(e,t,0)>=0}function Yt(t,e){for(var r=0,o=e.length,s=Array(o);r<o;)s[r]=t(e[r]),r+=1;return s}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 $t=function(e){return(e<10?"0":"")+e},jn=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+$t(e.getUTCMonth()+1)+"-"+$t(e.getUTCDate())+"T"+$t(e.getUTCHours())+":"+$t(e.getUTCMinutes())+":"+$t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Fn(t){return function(){return!t.apply(this,arguments)}}function Ze(t,e,r){for(var o=0,s=r.length;o<s;)e=t(e,r[o]),o+=1;return e}function Yn(t,e){for(var r=0,o=e.length,s=[];r<o;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}function Ut(t){return Object.prototype.toString.call(t)==="[object Object]"}var Un=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=bt.init,t.prototype["@@transducer/result"]=bt.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Hn(t){return function(e){return new Un(t,e)}}var qe=V(jt(["fantasy-land/filter","filter"],Hn,function(t,e){return Ut(e)?Ze(function(r,o){return t(e[o])&&(r[o]=e[o]),r},{},ft(e)):Yn(t,e)})),Wn=V(function(e,r){return qe(Fn(e),r)});function Xe(t,e){var r=function(i){var l=e.concat([t]);return Ke(i,l)?"<Circular>":Xe(i,l)},o=function(a,i){return Yt(function(l){return ie(l)+": "+r(a[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Yt(r,t).join(", ")+"))";case"[object Array]":return"["+Yt(r,t).concat(o(t,Wn(function(a){return/^\d+$/.test(a)},ft(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ie(jn(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":ie(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var s=t.toString();if(s!=="[object Object]")return s}return"{"+o(t,ft(t)).join(", ")+"}"}}var le=Y(function(e){return Xe(e,[])}),Kn=V(function(e,r){if(e===r)return r;function o(d,u){if(d>u!=u>d)return u>d?u:d}var s=o(e,r);if(s!==void 0)return s;var a=o(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var i=le(e),l=o(i,le(r));return l!==void 0&&l===i?e:r}),Zn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=bt.init,t.prototype["@@transducer/result"]=bt.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),qn=function(e){return function(r){return new Zn(e,r)}},Xn=V(jt(["fantasy-land/map","map"],qn,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Rt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Ze(function(o,s){return o[s]=e(r[s]),o},{},ft(r));default:return Yt(e,r)}}));const mt=Xn,Je=Number.isInteger||function(e){return e<<0===e};function Ht(t){return Object.prototype.toString.call(t)==="[object String]"}var Qe=V(function(e,r){var o=e<0?r.length+e:e;return Ht(r)?r.charAt(o):r[o]}),Jn=V(function(e,r){if(r!=null)return Je(e)?Qe(e,r):r[e]});const At=Jn;var Qn=V(function(e,r){return mt(At(e),r)}),to=Y(function(e){return Gt(e)?!0:!e||typeof e!="object"||Ht(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),tr=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function eo(t,e,r){return function(s,a,i){if(to(i))return t(s,a,i);if(i==null)return a;if(typeof i["fantasy-land/reduce"]=="function")return e(s,a,i,"fantasy-land/reduce");if(i[tr]!=null)return r(s,a,i[tr]());if(typeof i.next=="function")return r(s,a,i);if(typeof i.reduce=="function")return e(s,a,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ro(t,e,r){for(var o=0,s=r.length;o<s;){if(e=t["@@transducer/step"](e,r[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var no=V(function(e,r){return Vt(e.length,function(){return e.apply(r,arguments)})});function oo(t,e,r){for(var o=r.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=r.next()}return t["@@transducer/result"](e)}function ao(t,e,r,o){return t["@@transducer/result"](r[o](no(t["@@transducer/step"],t),e))}var er=eo(ro,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,r){return this.f(e,r)},t}();function rr(t){return new so(t)}var io=at(function(t,e,r){return er(typeof t=="function"?rr(t):t,e,r)});const nr=io;var lo=Y(function(e){return function(){return e}});const or=lo;var co=Y(function(e){return Rt(nr(Kn,0,Qn("length",e)),function(){for(var r=0,o=e.length;r<o;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});const uo=co;var fo=at(function(e,r,o){var s=e(r),a=e(o);return s<a?-1:s>a?1:0});const ar=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 ce(t,e,r){if(r||(r=new go),ho(t))return t;var o=function(a){var i=r.get(t);if(i)return i;r.set(t,a);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(a[l]=e?ce(t[l],!0,r):t[l]);return a};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,r){const o=this.hash(e);let s=this.map[o];s||(this.map[o]=s=[]),s.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var o in e)r.push(Object.prototype.toString.call(e[o]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const s in this.map){const a=this.map[s];for(let i=0;i<a.length;i+=1){const l=a[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),o=this.map[r];if(o)for(let s=0;s<o.length;s+=1){const a=o[s];if(a[0]===e)return a[1]}},t}();function yo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ue(t,e){return function(){var r=arguments.length;if(r===0)return e();var o=arguments[r-1];return Gt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}var bo=at(ue("slice",function(e,r,o){return Array.prototype.slice.call(o,e,r)})),wo=Y(ue("tail",bo(1,1/0)));const So=wo;function de(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Vt(arguments[0].length,nr(yo,arguments[0],So(arguments)))}var _o=Y(function(e){return Ht(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const To=_o;function sr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return de.apply(this,To(arguments))}var $o=function(){function t(e,r,o,s){this.valueFn=e,this.valueAcc=r,this.keyFn=o,this.xf=s,this.inputs={}}return t.prototype["@@transducer/init"]=bt.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(et(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,ce(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),e},t}();function Ao(t,e,r){return function(o){return new $o(t,e,r,o)}}var Oo=ne(4,[],jt([],Ao,function(e,r,o,s){var a=rr(function(i,l){var d=o(l),u=e(et(d,i)?i[d]:ce(r,!1),l);return u&&u["@@transducer/reduced"]?Re(i):(i[d]=u,i)});return er(a,{},s)})),ko=at(function(e,r,o){var s=e(r),a=e(o);return s>a?-1:s<a?1:0});const Po=ko;function vo(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 Eo=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():Gt(e)?[]:Ht(e)?"":Ut(e)?{}:Ye(e)?function(){return arguments}():vo(e)?e.constructor.from(""):void 0}),xo=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=bt.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,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=Re(this.xf["@@transducer/step"](e,this.idx))),e},t}();function No(t){return function(e){return new xo(t,e)}}var Lo=V(jt([],No,function(e,r){for(var o=0,s=r.length;o<s;){if(e(r[o]))return o;o+=1}return-1}));const Do=Lo;var Mo=V(ue("groupBy",Oo(function(t,e){return t.push(e),t},[])));const Co=Mo;var Bo=at(function(e,r,o){return Rt(Math.max(e.length,r.length,o.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):o.apply(this,arguments)})});const zo=Bo;var Io=V(Ke);const Vo=Io;var Ro=V(function(e,r){return Rt(e+1,function(){var o=arguments[e];if(o!=null&&mo(o[r]))return o[r].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(le(o)+' does not have a method named "'+r+'"')})});const ir=Ro;var Go=Y(function(e){return e!=null&&Ft(e,Eo(e))});const jo=Go;var Fo=V(function(e,r){return e.map(function(o){for(var s=r,a=0,i;a<o.length;){if(s==null)return;i=o[a],s=Je(i)?Qe(i,s):s[i],a+=1}return s})}),Yo=V(function(e,r){return Fo([e],r)[0]});const lr=Yo;var Uo=at(function(e,r,o){var s={},a;r=r||{},o=o||{};for(a in r)et(a,r)&&(s[a]=et(a,o)?e(a,r[a],o[a]):r[a]);for(a in o)et(a,o)&&!et(a,s)&&(s[a]=o[a]);return s}),Ho=at(function t(e,r,o){return Uo(function(s,a,i){return Ut(a)&&Ut(i)?t(e,a,i):e(s,a,i)},r,o)}),Wo=V(function(e,r){return Ho(function(o,s,a){return a},e,r)});const Ko=Wo;var Zo=V(function(e,r){for(var o={},s={},a=0,i=e.length;a<i;)s[e[a]]=1,a+=1;for(var l in r)s.hasOwnProperty(l)||(o[l]=r[l]);return o});const qo=Zo;var Xo=at(function(e,r,o){return e(At(r,o))});const Jo=Xo;var Qo=V(function(e,r){return Array.prototype.slice.call(r,0).sort(function(o,s){for(var a=0,i=0;a===0&&i<e.length;)a=e[i](o,s),i+=1;return a})});const cr=Qo;var ta=ir(1,"split");const Ot=ta;var ea=ir(0,"toLowerCase");const ra=ea;var kt=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,na="",oa=typeof String.prototype.trim=="function",aa=Y(!oa||kt.trim()||!na.trim()?function(e){var r=new RegExp("^["+kt+"]["+kt+"]*"),o=new RegExp("["+kt+"]["+kt+"]*$");return e.replace(r,"").replace(o,"")}:function(e){return e.trim()});const Wt=aa,ur=Symbol("I18nContext"),K=n.reactive({messages:{},locale:"",fallbackLocale:""}),dr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const o=(d,u={})=>{const f=!jo(u),c=mt(Wt,Ot(".",d));return n.computed(()=>{const m=fr(c);return f?ia(m,u):m}).value},s=d=>{const u=mt(Wt,Ot(".",d));return!!fe(K.locale,u,K.messages)},a=d=>{K.locale=d},l={locale:n.computed({get(){return K.locale},set(d){K.locale=d}}),setLocale:a,translate:o,hasTranlation:s};return n.provide(ur,l),{translate:o}},pt=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=n.inject(ur,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},fr=(t=[])=>{let e=fe(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=fe(K.fallbackLocale,t,K.messages)),e||t.join(".")};function fe(t,e,r){return lr([t,...e],r)}const ia=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,o){return e[o]})},mr=n.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=mt(Wt,Ot(".",t.path)),o=fr(r),s=Ot(/{|}/,o),a=Object.keys(e).map(i=>{const l=s.indexOf(i);return l>-1&&(s[l]=e[i]()[0]),s});return()=>n.h(t.tag,a)}}),pr="https://api.icehockey.hu/vbr",hr="https://www.jegkorongszovetseg.hu/event/game/",gr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",yr="https://www.ersteliga.hu/stats/players#/player/",br="https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=",nt="original",b="descend",C="ascend",wr=new Map().set("hu","hu-hu").set("en","hu-gb"),Sr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),la=1e3*60*5,_r=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=n.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 n.openBlock(),n.createElementBlock("svg",ca,da)}const Tr={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=n.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 n.openBlock(),n.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"},wa=n.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),Sa=[wa];function _a(t,e){return n.openBlock(),n.createElementBlock("svg",ba,Sa)}const Ta={render:_a};function Pt(t){return t.split("-")[1]}function me(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 $r(t,e,r){let{reference:o,floating:s}=t;const a=o.x+o.width/2-s.width/2,i=o.y+o.height/2-s.height/2,l=vt(e),d=me(l),u=o[d]/2-s[d]/2,f=l==="x";let c;switch(ht(e)){case"top":c={x:a,y:o.y-s.height};break;case"bottom":c={x:a,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:i};break;case"left":c={x:o.x-s.width,y:i};break;default:c={x:o.x,y:o.y}}switch(Pt(e)){case"start":c[l]-=u*(r&&f?-1:1);break;case"end":c[l]+=u*(r&&f?-1:1)}return c}const $a=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:f,y:c}=$r(u,o,d),p=o,m={},g=0;for(let h=0;h<l.length;h++){const{name:y,fn:$}=l[h],{x:A,y:P,data:N,reset:L}=await $({x:f,y:c,initialPlacement:o,placement:p,strategy:s,middlewareData:m,rects:u,platform:i,elements:{reference:t,floating:e}});f=A??f,c=P??c,m={...m,[y]:{...m[y],...N}},L&&g<=50&&(g++,typeof L=="object"&&(L.placement&&(p=L.placement),L.rects&&(u=L.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):L.rects),{x:f,y:c}=$r(u,p,d)),h=-1)}return{x:f,y:c,placement:p,strategy:s,middlewareData:m}};function Ar(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 Kt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Or(t,e){var r;e===void 0&&(e={});const{x:o,y:s,platform:a,rects:i,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:p=!1,padding:m=0}=e,g=Ar(m),h=l[p?c==="floating"?"reference":"floating":c],y=Kt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:d})),$=c==="floating"?{...i.floating,x:o,y:s}:i.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),P=await(a.isElement==null?void 0:a.isElement(A))&&await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1},N=Kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:$,offsetParent:A,strategy:d}):$);return{top:(y.top-N.top+g.top)/P.y,bottom:(N.bottom-y.bottom+g.bottom)/P.y,left:(y.left-N.left+g.left)/P.x,right:(N.right-y.right+g.right)/P.x}}const Aa=Math.min,Oa=Math.max;function pe(t,e,r){return Oa(t,Aa(e,r))}const kr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t||{},{x:s,y:a,placement:i,rects:l,platform:d,elements:u}=e;if(r==null)return{};const f=Ar(o),c={x:s,y:a},p=vt(i),m=me(p),g=await d.getDimensions(r),h=p==="y",y=h?"top":"left",$=h?"bottom":"right",A=h?"clientHeight":"clientWidth",P=l.reference[m]+l.reference[p]-c[p]-l.floating[m],N=c[p]-l.reference[p],L=await(d.getOffsetParent==null?void 0:d.getOffsetParent(r));let B=L?L[A]:0;B&&await(d.isElement==null?void 0:d.isElement(L))||(B=u.floating[A]||l.floating[m]);const R=P/2-N/2,F=f[y],D=B-g[m]-f[$],E=B/2-g[m]/2+R,z=pe(F,E,D),U=Pt(i)!=null&&E!=z&&l.reference[m]/2-(E<F?f[y]:f[$])-g[m]/2<0;return{[p]:c[p]-(U?E<F?F-E:D-E:0),data:{[p]:z,centerOffset:E-z}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const ka={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(t){return t.replace(/left|right|bottom|top/g,e=>ka[e])}function Pa(t,e,r){r===void 0&&(r=!1);const o=Pt(t),s=vt(t),a=me(s);let i=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Zt(i)),{main:i,cross:Zt(i)}}const va={start:"end",end:"start"};function he(t){return t.replace(/start|end/g,e=>va[e])}const Ea=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:d}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=t,y=ht(o),$=ht(i)===i,A=await(l.isRTL==null?void 0:l.isRTL(d.floating)),P=c||($||!g?[Zt(i)]:function(z){const U=Zt(z);return[he(z),U,he(U)]}(i));c||m==="none"||P.push(...function(z,U,k,T){const S=Pt(z);let O=function(w,v,x){const M=["left","right"],j=["right","left"],G=["top","bottom"],H=["bottom","top"];switch(w){case"top":case"bottom":return x?v?j:M:v?M:j;case"left":case"right":return v?G:H;default:return[]}}(ht(z),k==="start",T);return S&&(O=O.map(w=>w+"-"+S),U&&(O=O.concat(O.map(he)))),O}(i,g,m,A));const N=[i,...P],L=await Or(e,h),B=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&B.push(L[y]),f){const{main:z,cross:U}=Pa(o,a,A);B.push(L[z],L[U])}if(R=[...R,{placement:o,overflows:B}],!B.every(z=>z<=0)){var F,D;const z=(((F=s.flip)==null?void 0:F.index)||0)+1,U=N[z];if(U)return{data:{index:z,overflows:R},reset:{placement:U}};let k=(D=R.filter(T=>T.overflows[0]<=0).sort((T,S)=>T.overflows[1]-S.overflows[1])[0])==null?void 0:D.placement;if(!k)switch(p){case"bestFit":{var E;const T=(E=R.map(S=>[S.placement,S.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((S,O)=>S[1]-O[1])[0])==null?void 0:E[0];T&&(k=T);break}case"initialPlacement":k=i}if(o!==k)return{reset:{placement:k}}}return{}}}},xa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,s=await async function(a,i){const{placement:l,platform:d,elements:u}=a,f=await(d.isRTL==null?void 0:d.isRTL(u.floating)),c=ht(l),p=Pt(l),m=vt(l)==="x",g=["left","top"].includes(c)?-1:1,h=f&&m?-1:1,y=typeof i=="function"?i(a):i;let{mainAxis:$,crossAxis:A,alignmentAxis:P}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof P=="number"&&(A=p==="end"?-1*P:P),m?{x:A*h,y:$*g}:{x:$*g,y:A*h}}(e,t);return{x:r+s.x,y:o+s.y,data:s}}}};function Na(t){return t==="x"?"y":"x"}const La=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:$,y:A}=y;return{x:$,y:A}}},...d}=t,u={x:r,y:o},f=await Or(e,d),c=vt(ht(s)),p=Na(c);let m=u[c],g=u[p];if(a){const y=c==="y"?"bottom":"right";m=pe(m+f[c==="y"?"top":"left"],m,m-f[y])}if(i){const y=p==="y"?"bottom":"right";g=pe(g+f[p==="y"?"top":"left"],g,g-f[y])}const h=l.fn({...e,[c]:m,[p]:g});return{...h,data:{x:h.x-r,y:h.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 Pr(t){return t instanceof X(t).Node}function st(t){return Pr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function q(t){return t instanceof X(t).Element}function vr(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function Et(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function Da(t){return["table","td","th"].includes(st(t))}function ge(t){const e=ye(),r=J(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function ye(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qt(t){return["html","body","#document"].includes(st(t))}const Er=Math.min,xt=Math.max,Xt=Math.round;function xr(t){const e=J(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=Q(t),a=s?t.offsetWidth:r,i=s?t.offsetHeight:o,l=Xt(r)!==a||Xt(o)!==i;return l&&(r=a,o=i),{width:r,height:o,fallback:l}}function Nr(t){return q(t)?t:t.contextElement}const Lr={x:1,y:1};function wt(t){const e=Nr(t);if(!Q(e))return Lr;const r=e.getBoundingClientRect(),{width:o,height:s,fallback:a}=xr(e);let i=(a?Xt(r.width):r.width)/o,l=(a?Xt(r.height):r.height)/s;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Dr={x:0,y:0};function Mr(t,e,r){var o,s;if(e===void 0&&(e=!0),!ye())return Dr;const a=t?X(t):window;return!r||e&&r!==a?Dr:{x:((o=a.visualViewport)==null?void 0:o.offsetLeft)||0,y:((s=a.visualViewport)==null?void 0:s.offsetTop)||0}}function gt(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=Nr(t);let i=Lr;e&&(o?q(o)&&(i=wt(o)):i=wt(t));const l=Mr(a,r,o);let d=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,f=s.width/i.x,c=s.height/i.y;if(a){const p=X(a),m=o&&q(o)?X(o):o;let g=p.frameElement;for(;g&&o&&m!==p;){const h=wt(g),y=g.getBoundingClientRect(),$=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat($.paddingLeft))*h.x,y.y+=(g.clientTop+parseFloat($.paddingTop))*h.y,d*=h.x,u*=h.y,f*=h.x,c*=h.y,d+=y.x,u+=y.y,g=X(g).frameElement}}return Kt({width:f,height:c,x:d,y:u})}function it(t){return((Pr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jt(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Cr(t){return gt(it(t)).left+Jt(t).scrollLeft}function St(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||vr(t)&&t.host||it(t);return vr(e)?e.host:e}function Br(t){const e=St(t);return qt(e)?e.ownerDocument.body:Q(e)&&Et(e)?e:Br(e)}function Nt(t,e){var r;e===void 0&&(e=[]);const o=Br(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),a=X(o);return s?e.concat(a,a.visualViewport||[],Et(o)?o:[]):e.concat(o,Nt(o))}function zr(t,e,r){let o;if(e==="viewport")o=function(s,a){const i=X(s),l=it(s),d=i.visualViewport;let u=l.clientWidth,f=l.clientHeight,c=0,p=0;if(d){u=d.width,f=d.height;const m=ye();(!m||m&&a==="fixed")&&(c=d.offsetLeft,p=d.offsetTop)}return{width:u,height:f,x:c,y:p}}(t,r);else if(e==="document")o=function(s){const a=it(s),i=Jt(s),l=s.ownerDocument.body,d=xt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=xt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+Cr(s);const c=-i.scrollTop;return J(l).direction==="rtl"&&(f+=xt(a.clientWidth,l.clientWidth)-d),{width:d,height:u,x:f,y:c}}(it(t));else if(q(e))o=function(s,a){const i=gt(s,!0,a==="fixed"),l=i.top+s.clientTop,d=i.left+s.clientLeft,u=Q(s)?wt(s):{x:1,y:1};return{width:s.clientWidth*u.x,height:s.clientHeight*u.y,x:d*u.x,y:l*u.y}}(e,r);else{const s=Mr(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return Kt(o)}function Ir(t,e){const r=St(t);return!(r===e||!q(r)||qt(r))&&(J(r).position==="fixed"||Ir(r,e))}function Vr(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Rr(t,e){const r=X(t);if(!Q(t))return r;let o=Vr(t,e);for(;o&&Da(o)&&J(o).position==="static";)o=Vr(o,e);return o&&(st(o)==="html"||st(o)==="body"&&J(o).position==="static"&&!ge(o))?r:o||function(s){let a=St(s);for(;Q(a)&&!qt(a);){if(ge(a))return a;a=St(a)}return null}(t)||r}function Ma(t,e,r){const o=Q(e),s=it(e),a=r==="fixed",i=gt(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&!a)if((st(e)!=="body"||Et(s))&&(l=Jt(e)),Q(e)){const u=gt(e,!0,a,e);d.x=u.x+e.clientLeft,d.y=u.y+e.clientTop}else s&&(d.x=Cr(s));return{x:i.left+l.scrollLeft-d.x,y:i.top+l.scrollTop-d.y,width:i.width,height:i.height}}const Ca={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const a=r==="clippingAncestors"?function(u,f){const c=f.get(u);if(c)return c;let p=Nt(u).filter(y=>q(y)&&st(y)!=="body"),m=null;const g=J(u).position==="fixed";let h=g?St(u):u;for(;q(h)&&!qt(h);){const y=J(h),$=ge(h);$||y.position!=="fixed"||(m=null),(g?!$&&!m:!$&&y.position==="static"&&m&&["absolute","fixed"].includes(m.position)||Et(h)&&!$&&Ir(u,h))?p=p.filter(A=>A!==h):m=y,h=St(h)}return f.set(u,p),p}(e,this._c):[].concat(r),i=[...a,o],l=i[0],d=i.reduce((u,f)=>{const c=zr(e,f,s);return u.top=xt(c.top,u.top),u.right=Er(c.right,u.right),u.bottom=Er(c.bottom,u.bottom),u.left=xt(c.left,u.left),u},zr(e,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Q(r),a=it(r);if(r===a)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const d={x:0,y:0};if((s||!s&&o!=="fixed")&&((st(r)!=="body"||Et(a))&&(i=Jt(r)),Q(r))){const u=gt(r);l=wt(r),d.x=u.x+r.clientLeft,d.y=u.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+d.x,y:e.y*l.y-i.scrollTop*l.y+d.y}},isElement:q,getDimensions:function(t){return xr(t)},getOffsetParent:Rr,getDocumentElement:it,getScale:wt,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||Rr,a=this.getDimensions;return{reference:Ma(e,await s(r),o),floating:{x:0,y:0,...await a(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Ba(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=o,d=s||a?[...q(t)?Nt(t):t.contextElement?Nt(t.contextElement):[],...Nt(e)]:[];d.forEach(p=>{const m=!q(p)&&p.toString().includes("V");!s||l&&!m||p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});let u,f=null;i&&(f=new ResizeObserver(()=>{r()}),q(t)&&!l&&f.observe(t),q(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(e));let c=l?gt(t):null;return l&&function p(){const m=gt(t);!c||m.x===c.x&&m.y===c.y&&m.width===c.width&&m.height===c.height||r(),c=m,u=requestAnimationFrame(p)}(),r(),()=>{var p;d.forEach(m=>{s&&m.removeEventListener("scroll",r),a&&m.removeEventListener("resize",r)}),(p=f)==null||p.disconnect(),f=null,l&&cancelAnimationFrame(u)}}const za=(t,e,r)=>{const o=new Map,s={platform:Ca,...r},a={...s.platform,_c:o};return $a(t,e,{...s,platform:a})},Gr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function Ia({middleware:t,placement:e=null,strategy:r,append:o,enabled:s}){const a=n.ref(null),i=n.ref(null),l=n.ref(null),d=n.ref(null),u=n.ref(null),f=n.ref(null),c=n.ref(null),p=n.ref(r??"absolute"),m=n.ref(null),g=()=>{!a.value||!i.value||za(a.value,i.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,d.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,f.value=y.middlewareData.arrow.y,c.value=y.placement})};n.watch(()=>({reference:n.unref(a),floating:n.unref(i),append:n.unref(o)}),({floating:y,append:$})=>{$&&Gr(y,$),g()},{flush:"post"}),n.watch(s,y=>{if(!(!a.value||!i.value)){if(!y)return h();m.value=Ba(a.value,i.value,g,{})}},{flush:"post"});const h=()=>{var y;(y=m.value)==null||y.call(m),m.value=null};return{x:l,y:d,arrowX:u,arrowY:f,placement:c,reference:a,floating:i,strategy:p,update:g}}const Va=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(o){return n.isRef(e)?e.value!=null?kr({element:e.value,padding:r}).fn(o):{}:e?kr({element:e,padding:r}).fn(o):{}}}},Ra=["data-placement"],be={__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,r=n.ref(!1),o=n.ref(null),{x:s,y:a,arrowX:i,arrowY:l,placement:d,reference:u,floating:f,strategy:c}=Ia({placement:e.placement,middleware:[Ea(),La({padding:5}),xa(e.offset),Va({element:o,padding:5})],append:n.computed(()=>e.appendTo),enabled:r}),p=()=>{e.disabled||r.value||(r.value=!0)},m=y=>{r.value&&y&&(r.value=!1)},g=y=>{u.value=y},h={mouseenter:p,mouseleave:m,focus:p,blur:m};return _n(f,y=>{var $;($=u.value)!=null&&$.contains(y.target)||m()}),(y,$)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(y.$slots,"default",{setRef:g,show:p,hide:m,events:h}),n.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":n.unref(d),style:n.normalizeStyle({position:n.unref(c),top:n.unref(a)?`${n.unref(a)}px`:"",left:n.unref(s)?`${n.unref(s)}px`:""})},[n.createVNode(n.Transition,{name:"transition-fade",mode:"out-in"},{default:n.withCtx(()=>[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["floating-content",[`is-${e.theme}`]])},[n.renderSlot(y.$slots,"content",{close:m},()=>[n.createTextVNode(n.toDisplayString(t.content),1)]),n.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:n.normalizeStyle({position:n.unref(c),top:n.unref(l)?`${n.unref(l)}px`:"",left:n.unref(i)?`${n.unref(i)}px`:""})},null,4)],2)):n.createCommentVNode("",!0)]),_:3})],12,Ra)],64))}},Ga=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],ja={key:0},Fa=["colspan"],Ya={key:1},Ua=["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 r=t,{isLoading:o,appendTo:s}=n.toRefs(r),a=Ve(o,{delay:_r}),{t:i}=pt(),l=dt("table"),d=n.computed(()=>r.columns),u=n.computed(()=>Object.keys(r.columns).length),f=(c,p)=>{c.sortOrders&&e("sort",{target:p,orders:c.sortOrders})};return(c,p)=>(n.openBlock(),n.createElementBlock("table",{class:n.normalizeClass(n.unref(l))},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(m,g)=>(n.openBlock(),n.createBlock(be,{key:g,placement:"top",content:m.tooltip,disabled:!m.tooltip,"append-to":n.unref(s)},{default:n.withCtx(({setRef:h,show:y,hide:$})=>[n.createElementVNode("th",{ref_for:!0,ref:h,class:n.normalizeClass([[m.class],{"is-active":g===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(nt),"is-sortable":m.sortOrders,"is-desc":g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b),"is-asc":g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(C)}]),onMouseenter:y,onMouseleave:$,onFocus:y,onBlur:$,onClick:A=>f(m,g),onKeydown:[n.withKeys(n.withModifiers(A=>f(m,g),["prevent"]),["space"]),n.withKeys(n.withModifiers(A=>f(m,g),["prevent"]),["enter"])],tabindex:m.sortOrders?0:-1,role:"button"},[n.renderSlot(c.$slots,`header-${g}`,{column:m},()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),m.sortOrders&&g!==t.sort.sortTarget?(n.openBlock(),n.createBlock(n.unref(Tr),{key:0,class:"is-icon-sort"})):n.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(nt)?(n.openBlock(),n.createBlock(n.unref(Tr),{key:1,class:"is-icon-sort"})):n.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b)?(n.openBlock(),n.createBlock(n.unref(ya),{key:2,class:"is-icon-sort"})):n.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(C)?(n.openBlock(),n.createBlock(n.unref(Ta),{key:3,class:"is-icon-sort"})):n.createCommentVNode("",!0)],42,Ga)]),_:2},1032,["content","disabled","append-to"]))),128))])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rows,(m,g)=>(n.openBlock(),n.createElementBlock("tr",{key:g},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(h,y)=>(n.openBlock(),n.createElementBlock("td",{key:y,class:n.normalizeClass([[h.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(nt)}])},[n.renderSlot(c.$slots,`cell-${y}`,{row:m,prop:y},()=>[n.createTextVNode(n.toDisplayString(m[y]),1)])],2))),128))]))),128))]),n.unref(a)&&t.rows.length===0?(n.openBlock(),n.createElementBlock("tfoot",ja,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:u.value},[n.renderSlot(c.$slots,"loading",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("common.loading")),1)])],8,Fa)])])):n.createCommentVNode("",!0),t.rows.length===0&&!n.unref(o)&&!n.unref(a)?(n.openBlock(),n.createElementBlock("tfoot",Ya,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:u.value},[n.renderSlot(c.$slots,"empty",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("common.noData")),1)])],8,Ua)])])):n.createCommentVNode("",!0)],2))}},Ha={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=n.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=n.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Za=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),qa=[Wa,Ka,Za];function Xa(t,e){return n.openBlock(),n.createElementBlock("svg",Ha,qa)}const Ja={render:Xa},Qa={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:o}=pt(),s=dt("error-notice"),a=n.computed(()=>{var i;return o(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(s))},[n.createVNode(n.unref(Ja),{class:"icon",width:"20",height:"20"}),n.createElementVNode("span",null,n.toDisplayString(a.value),1)],2))}};function jr(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("-")}function Se(t,e,r){return(new Array(r+1).join(e)+t).slice(-r)}const Fr=Symbol("ErrorProviderContext"),Yr=()=>{const t=n.ref(""),e=n.ref({}),r=a=>{console.log({error:a}),t.value=a.message||a.error.message,e.value={message:a.message,key:a.key||jr(a.message),cause:a.cause}},s={onError:r,reset:()=>{t.value="",e.value={}}};return n.provide(Fr,s),window.onerror=a=>{console.log("WINDOW_ONERROR:",a)},n.onErrorCaptured((a,i,l)=>{console.log("onErrorCaptured:",a,i,l)}),{hasError:n.computed(()=>t.value.length>0),message:t,error:e,onError:r}},_e=()=>{const t=ts();return{onError:t.onError,reset:t.reset}},ts=()=>{const t=n.inject(Fr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},es={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:o}=Yr();return(s,a)=>n.renderSlot(s.$slots,"default",{message:n.unref(e),error:n.unref(o),hasError:n.unref(r)})}},rs={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:"M",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:"L",tooltip:"Lövések"},sogPercent:{short:"L%",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:"M",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"LM",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:"KL",tooltip:"Kapott Lövés"},svs:{short:"VL",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"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{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"}}},ns={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:"PTS",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:"SOG",tooltip:"Shots on Goal"},sogPercent:{short:"SOG%",tooltip:"Shots on Goal Percent"},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"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{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"}}},Ur=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},os=n.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Ko({hu:rs,en:ns},t.messages),{translate:r}=dr({locale:n.computed(()=>t.locale),messages:e});return{translate:r}}});function as(t,e,r,o,s,a){return n.renderSlot(t.$slots,"default",{t:t.translate})}const ss=Ur(os,[["render",as]]),is=["src"],ls=["src","title"],Lt=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:r}=n.toRefs(e),o=n.ref({src:e.src}),{error:s,isReady:a}=Cn(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(s)&&n.unref(r)?(n.openBlock(),n.createElementBlock("img",{key:0,src:n.unref(r),class:n.normalizeClass(["is-loaded",i.$attrs.class])},null,10,is)):n.createCommentVNode("",!0),n.unref(s)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:1,src:o.value.src,class:n.normalizeClass([i.$attrs.class,{"is-loaded":n.unref(a)}]),title:e.title},null,10,ls))],64))}}),cs={style:{"text-align":"center"}},Te={__name:"LoadingIndicator",setup(t){const{t:e}=pt();return(r,o)=>(n.openBlock(),n.createElementBlock("div",cs,n.toDisplayString(n.unref(e)("common.loading")),1))}};function us({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:o=5,update:s=rt}){const a=n.computed(()=>Math.ceil(n.unref(r)/e)),i=n.computed(()=>{const f=n.unref(t)-1,c=Array.from({length:a.value},(g,h)=>h+1),p=Math.floor(o/2);let m=Math.max(f-p,0);return m+o>=a.value&&(m=Math.max(a.value-o,0)),c.slice(m,m+o)}),l=f=>{const c=n.unref(t)+f;u(c)&&s(c)},d=f=>{u(f)&&s(f)},u=f=>f<=a.value&&f>0;return{page:t,range:i,pageCount:a,goTo:d,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=n.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ms=[fs];function ps(t,e){return n.openBlock(),n.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=n.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),bs=[ys];function ws(t,e){return n.openBlock(),n.createElementBlock("svg",gs,bs)}const Ss={render:ws},_s=["disabled"],Ts=["disabled"],$s={key:1,class:"is-disabled"},As=["disabled","onClick"],Os={key:2,class:"is-disabled"},ks=[n.createElementVNode("span",null,"...",-1)],Ps=["disabled"],vs=["disabled"],Es={__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 r=t,o=dt("paginator"),{page:s,pageCount:a,range:i,goTo:l,pageStep:d}=us({currentPage:n.computed(()=>r.page),totalItems:n.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:u=>e("change",u)});return(u,f)=>n.unref(a)>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o))},[n.createElementVNode("button",{type:"button",disabled:n.unref(s)===1,onClick:f[0]||(f[0]=c=>n.unref(d)(-1))},[n.renderSlot(u.$slots,"prev",{},()=>[n.createVNode(n.unref(hs),{class:"icon paginator-left"})])],8,_s),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",disabled:n.unref(s)===1,onClick:f[1]||(f[1]=c=>n.unref(l)(1))},"1",8,Ts)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",$s,"...")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),c=>(n.openBlock(),n.createElementBlock("button",{type:"button",key:c,class:n.normalizeClass({"is-active":c===n.unref(s)}),disabled:c===n.unref(s),onClick:p=>n.unref(l)(c)},n.toDisplayString(c),11,As))),128)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Os,ks)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:3,type:"button",disabled:n.unref(s)===n.unref(a),onClick:f[2]||(f[2]=c=>n.unref(l)(n.unref(a)))},n.toDisplayString(n.unref(a)),9,Ps)),n.createElementVNode("button",{type:"button",disabled:n.unref(s)===n.unref(a),onClick:f[3]||(f[3]=n.withModifiers(c=>n.unref(d)(1),["prevent"]))},[n.renderSlot(u.$slots,"next",{},()=>[n.createVNode(n.unref(Ss),{class:"icon paginator-left"})])],8,vs)],2)):n.createCommentVNode("",!0)}},$e={__name:"ResponsiveTable",setup(t){const e=n.ref(null),r=dt("table-responsive");return(o,s)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"el",ref:e,class:n.normalizeClass(n.unref(r))},[n.renderSlot(o.$slots,"default",{el:e.value})],2))}};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r=1e3,o=6e4,s=36e5,a="millisecond",i="second",l="minute",d="hour",u="day",f="week",c="month",p="quarter",m="year",g="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,A={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(k){var T=["th","st","nd","rd"],S=k%100;return"["+k+(T[(S-20)%10]||T[S]||T[0])+"]"}},P=function(k,T,S){var O=String(k);return!O||O.length>=T?k:""+Array(T+1-O.length).join(S)+k},N={s:P,z:function(k){var T=-k.utcOffset(),S=Math.abs(T),O=Math.floor(S/60),w=S%60;return(T<=0?"+":"-")+P(O,2,"0")+":"+P(w,2,"0")},m:function k(T,S){if(T.date()<S.date())return-k(S,T);var O=12*(S.year()-T.year())+(S.month()-T.month()),w=T.clone().add(O,c),v=S-w<0,x=T.clone().add(O+(v?-1:1),c);return+(-(O+(S-w)/(v?w-x:x-w))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:c,y:m,w:f,d:u,D:g,h:d,m:l,s:i,ms:a,Q:p}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},L="en",B={};B[L]=A;var R=function(k){return k instanceof z},F=function k(T,S,O){var w;if(!T)return L;if(typeof T=="string"){var v=T.toLowerCase();B[v]&&(w=v),S&&(B[v]=S,w=v);var x=T.split("-");if(!w&&x.length>1)return k(x[0])}else{var M=T.name;B[M]=T,w=M}return!O&&w&&(L=w),w||!O&&L},D=function(k,T){if(R(k))return k.clone();var S=typeof T=="object"?T:{};return S.date=k,S.args=arguments,new z(S)},E=N;E.l=F,E.i=R,E.w=function(k,T){return D(k,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var z=function(){function k(S){this.$L=F(S.locale,null,!0),this.parse(S)}var T=k.prototype;return T.parse=function(S){this.$d=function(O){var w=O.date,v=O.utc;if(w===null)return new Date(NaN);if(E.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var x=w.match(y);if(x){var M=x[2]-1||0,j=(x[7]||"0").substring(0,3);return v?new Date(Date.UTC(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,j)):new Date(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,j)}}return new Date(w)}(S),this.$x=S.x||{},this.init()},T.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},T.$utils=function(){return E},T.isValid=function(){return this.$d.toString()!==h},T.isSame=function(S,O){var w=D(S);return this.startOf(O)<=w&&w<=this.endOf(O)},T.isAfter=function(S,O){return D(S)<this.startOf(O)},T.isBefore=function(S,O){return this.endOf(O)<D(S)},T.$g=function(S,O,w){return E.u(S)?this[O]:this.set(w,S)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(S,O){var w=this,v=!!E.u(O)||O,x=E.p(S),M=function(_t,Z){var ut=E.w(w.$u?Date.UTC(w.$y,Z,_t):new Date(w.$y,Z,_t),w);return v?ut:ut.endOf(u)},j=function(_t,Z){return E.w(w.toDate()[_t].apply(w.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(Z)),w)},G=this.$W,H=this.$M,ct=this.$D,ot="set"+(this.$u?"UTC":"");switch(x){case m:return v?M(1,0):M(31,11);case c:return v?M(1,H):M(0,H+1);case f:var Ct=this.$locale().weekStart||0,Bt=(G<Ct?G+7:G)-Ct;return M(v?ct-Bt:ct+(6-Bt),H);case u:case g:return j(ot+"Hours",0);case d:return j(ot+"Minutes",1);case l:return j(ot+"Seconds",2);case i:return j(ot+"Milliseconds",3);default:return this.clone()}},T.endOf=function(S){return this.startOf(S,!1)},T.$set=function(S,O){var w,v=E.p(S),x="set"+(this.$u?"UTC":""),M=(w={},w[u]=x+"Date",w[g]=x+"Date",w[c]=x+"Month",w[m]=x+"FullYear",w[d]=x+"Hours",w[l]=x+"Minutes",w[i]=x+"Seconds",w[a]=x+"Milliseconds",w)[v],j=v===u?this.$D+(O-this.$W):O;if(v===c||v===m){var G=this.clone().set(g,1);G.$d[M](j),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else M&&this.$d[M](j);return this.init(),this},T.set=function(S,O){return this.clone().$set(S,O)},T.get=function(S){return this[E.p(S)]()},T.add=function(S,O){var w,v=this;S=Number(S);var x=E.p(O),M=function(H){var ct=D(v);return E.w(ct.date(ct.date()+Math.round(H*S)),v)};if(x===c)return this.set(c,this.$M+S);if(x===m)return this.set(m,this.$y+S);if(x===u)return M(1);if(x===f)return M(7);var j=(w={},w[l]=o,w[d]=s,w[i]=r,w)[x]||1,G=this.$d.getTime()+S*j;return E.w(G,this)},T.subtract=function(S,O){return this.add(-1*S,O)},T.format=function(S){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||h;var v=S||"YYYY-MM-DDTHH:mm:ssZ",x=E.z(this),M=this.$H,j=this.$m,G=this.$M,H=w.weekdays,ct=w.months,ot=function(Z,ut,xe,te){return Z&&(Z[ut]||Z(O,v))||xe[ut].slice(0,te)},Ct=function(Z){return E.s(M%12||12,Z,"0")},Bt=w.meridiem||function(Z,ut,xe){var te=Z<12?"AM":"PM";return xe?te.toLowerCase():te},_t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:E.s(G+1,2,"0"),MMM:ot(w.monthsShort,G,ct,3),MMMM:ot(ct,G),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:ot(w.weekdaysMin,this.$W,H,2),ddd:ot(w.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(M),HH:E.s(M,2,"0"),h:Ct(1),hh:Ct(2),a:Bt(M,j,!0),A:Bt(M,j,!1),m:String(j),mm:E.s(j,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:x};return v.replace($,function(Z,ut){return ut||_t[Z]||x.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(S,O,w){var v,x=E.p(O),M=D(S),j=(M.utcOffset()-this.utcOffset())*o,G=this-M,H=E.m(this,M);return H=(v={},v[m]=H/12,v[c]=H,v[p]=H/3,v[f]=(G-j)/6048e5,v[u]=(G-j)/864e5,v[d]=G/s,v[l]=G/o,v[i]=G/r,v)[x]||G,w?H:E.a(H)},T.daysInMonth=function(){return this.endOf(c).$D},T.$locale=function(){return B[this.$L]},T.locale=function(S,O){if(!S)return this.$L;var w=this.clone(),v=F(S,O,!0);return v&&(w.$L=v),w},T.clone=function(){return E.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()},k}(),U=z.prototype;return D.prototype=U,[["$ms",a],["$s",i],["$m",l],["$H",d],["$W",u],["$M",c],["$y",m],["$D",g]].forEach(function(k){U[k[1]]=function(T){return this.$g(T,k[0],k[1])}}),D.extend=function(k,T){return k.$i||(k(T,z,D),k.$i=!0),D},D.locale=F,D.isDayjs=R,D.unix=function(k){return D(1e3*k)},D.en=B[L],D.Ls=B,D.p={},D})})(Hr);var Wr=Hr.exports;const W=yt(Wr);var Kr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(a,i,l){var d=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},d.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),r):y},d.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=d.parse;d.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var f=d.init;d.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var c=d.utcOffset;d.utcOffset=function(h,y){var $=this.$utils().u;if($(h))return this.$u?0:$(this.$offset)?c.call(this):this.$offset;if(typeof h=="string"&&(h=function(L){L===void 0&&(L="");var B=L.match(o);if(!B)return null;var R=(""+B[0]).match(s)||["-",0,0],F=R[0],D=60*+R[1]+ +R[2];return D===0?0:F==="+"?D:-D}(h),h===null))return this;var A=Math.abs(h)<=16?60*h:h,P=this;if(y)return P.$offset=A,P.$u=h===0,P;if(h!==0){var N=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add(A+N,r)).$offset=A,P.$x.$localOffset=N}else P=this.utc();return P};var p=d.format;d.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},d.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var m=d.toDate;d.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var g=d.diff;d.diff=function(h,y,$){if(h&&this.$u===h.$u)return g.call(this,h,y,$);var A=this.local(),P=l(h).local();return g.call(A,P,y,$)}}})})(Kr);var xs=Kr.exports;const Ns=yt(xs);var Zr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(s,a,i){var l,d=function(p,m,g){g===void 0&&(g={});var h=new Date(p),y=function($,A){A===void 0&&(A={});var P=A.timeZoneName||"short",N=$+"|"+P,L=o[N];return L||(L=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:$,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:P}),o[N]=L),L}(m,g);return y.formatToParts(h)},u=function(p,m){for(var g=d(p,m),h=[],y=0;y<g.length;y+=1){var $=g[y],A=$.type,P=$.value,N=r[A];N>=0&&(h[N]=parseInt(P,10))}var L=h[3],B=L===24?0:L,R=h[0]+"-"+h[1]+"-"+h[2]+" "+B+":"+h[4]+":"+h[5]+":000",F=+p;return(i.utc(R).valueOf()-(F-=F%1e3))/6e4},f=a.prototype;f.tz=function(p,m){p===void 0&&(p=l);var g=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),$=Math.round((h-new Date(y))/1e3/60),A=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-$,!0);if(m){var P=A.utcOffset();A=A.add(g-P,"minute")}return A.$x.$timezone=p,A},f.offsetName=function(p){var m=this.$x.$timezone||i.tz.guess(),g=d(this.valueOf(),m,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return g&&g.value};var c=f.startOf;f.startOf=function(p,m){if(!this.$x||!this.$x.$timezone)return c.call(this,p,m);var g=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(g,p,m).tz(this.$x.$timezone,!0)},i.tz=function(p,m,g){var h=g&&m,y=g||m||l,$=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var A=function(B,R,F){var D=B-60*R*1e3,E=u(D,F);if(R===E)return[D,R];var z=u(D-=60*(E-R)*1e3,F);return E===z?[D,E]:[B-60*Math.min(E,z)*1e3,Math.max(E,z)]}(i.utc(p,h).valueOf(),$,y),P=A[0],N=A[1],L=i(P).utcOffset(N);return L.$x.$timezone=y,L},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(Zr);var Ls=Zr.exports;const Ds=yt(Ls);var qr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){return function(r,o){var s=o.prototype,a=s.format;s.format=function(i){var l=this,d=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),f=(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(c){switch(c){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return d.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return d.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),c==="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 c}});return a.bind(this)(f)}}})})(qr);var Ms=qr.exports;const Cs=yt(Ms);var Xr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){return function(r,o){o.prototype.isSameOrBefore=function(s,a){return this.isSame(s,a)||this.isBefore(s,a)}}})})(Xr);var Bs=Xr.exports;const zs=yt(Bs);var Jr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){return function(r,o,s){o.prototype.isBetween=function(a,i,l,d){var u=s(a),f=s(i),c=(d=d||"()")[0]==="(",p=d[1]===")";return(c?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(f,l):!this.isAfter(f,l))||(c?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(f,l):!this.isBefore(f,l))}}})})(Jr);var Is=Jr.exports;const Vs=yt(Is);var Qr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(lt,function(){var r={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,s,a){var i=s.prototype,l=i.format;a.en.formats=r,i.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(c,p){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,g,h){var y=h&&h.toUpperCase();return g||p[h]||r[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,A,P){return A||P.slice(1)})})}(d,u===void 0?{}:u);return l.call(this,f)}}})})(Qr);var Rs=Qr.exports;const Gs=yt(Rs);var js={exports:{}};(function(t,e){(function(r,o){t.exports=o(Wr)})(lt,function(r){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var s=o(r),a={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,d,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,d,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,d,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,d,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,d,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,d,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,d,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,d,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,d,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,d,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,d,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 s.default.locale(a,null,!0),a})})(js),W.extend(Ns),W.extend(Ds),W.extend(Cs),W.extend(Gs),W.extend(zs),W.extend(Vs);const tn=()=>W.tz.guess(),Qt=(t="",e="",r="",o="hu")=>(r=r||W.tz.guess(),W(t).isValid()?W(t).tz(r).locale(o).format(e):""),Dt=(t="",e="",r="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const s=new Intl.DateTimeFormat(Fs(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return s&&s.value},Fs=t=>wr.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},en=t=>{const e=~~(t/60),r=~~t%60;return Se(e,"0",2)+":"+Se(r,"0",2)},rn=(t,e="day")=>W().isSameOrBefore(W(t),e),Ys=(t,e,r)=>W(t).isBetween(e,W(r)),Us=(t,e,r="month")=>W(t).isSame(e,r),Hs=["onClick"],Ws={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:o}=pt(),s=dt("timezone-selector"),a=n.computed(()=>Dt(new Date,null,r.locale)),i=tn(),l=n.computed(()=>Array.from(Sr.values()).map(u=>({...u,isActive:Dt(new Date,r.currentZone,r.locale)===Dt(new Date,u.timezone,r.locale),zoneOffsetName:Dt(new Date,u.timezone,r.locale)}))),d=u=>e("change",u);return(u,f)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(s))},[n.createVNode(n.unref(mr),{path:"common.selectTimezone",tag:"span"},{timezone:n.withCtx(()=>[n.createElementVNode("a",{href:"#",onClick:f[0]||(f[0]=n.withModifiers(c=>d(n.unref(i)),["prevent"]))},n.toDisplayString(a.value),1)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,c=>(n.openBlock(),n.createElementBlock("a",{key:c.countryLabelKey,href:"#",class:n.normalizeClass({"is-active":c.isActive}),onClick:n.withModifiers(p=>d(c.timezone),["prevent"])},n.toDisplayString(n.unref(o)(`common.${c.countryLabelKey}`))+" ("+n.toDisplayString(c.zoneOffsetName)+") ",11,Hs))),128))],2))}},Oe=(t,e="",r={})=>{const o=n.ref(""),{t:s}=pt();if(e)try{const l=nn(n.unref(t),e);t=qo(l,n.unref(t))}catch(l){o.value=l}const a=l=>({...l,...l.label&&{label:s(l.label??"",n.unref(r))},...l.tooltip&&{tooltip:s(l.tooltip??"")}});return{columns:n.computed(()=>mt(a,n.unref(t))),error:o}},nn=(t,e="")=>{const r=mt(Wt,Ot(",",e)),o=ft(t);if(r[0]==="")return resolve([]);const s=r.findIndex(a=>!o.includes(a));if(s>-1)throw r[s];return r};class ke extends Error{constructor(e,r={}){const{key:o,cause:s}=r;super(e),this.name="WidgetError",this.key=o,this.cause=s}}const Mt={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=["href"],Qs={class:"is-team-name-long"},ti={class:"is-team-name-short"},ei=["href"],ri={__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:()=>{}},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:HTMLElement,default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{onError:o}=_e(),s=n.computed(()=>r.columns),{columns:a,error:i}=Oe(s,r.hideColumns);i.value&&o(new ke(Mt.message,{...Mt.options,cause:{column:i.value}}));const l=d=>e("sort",d);return(d,u)=>(n.openBlock(),n.createBlock($e,null,{default:n.withCtx(({el:f})=>[n.createVNode(we,{columns:n.unref(a),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||f,onSort:l},n.createSlots({"cell-index":n.withCtx(({row:c})=>[n.createElementVNode("span",{class:n.normalizeClass(c.indexClass)},n.toDisplayString(c.index),3)]),"cell-playerPortrait":n.withCtx(({row:c})=>[n.createElementVNode("div",Zs,[(n.openBlock(),n.createBlock(Lt,{key:c.id||c.playerId,src:c.playerPortrait,"default-src":n.unref(gr)},null,8,["src","default-src"]))])]),"cell-teamLogo":n.withCtx(({row:c})=>[(n.openBlock(),n.createBlock(Lt,{class:"is-logo-image",key:c.team.id||c.id,src:c.team.logo},null,8,["src"]))]),"cell-teamName":n.withCtx(({row:c})=>[n.createElementVNode("span",qs,n.toDisplayString(c.team.longName),1),n.createElementVNode("span",Xs,n.toDisplayString(c.team.shortName),1)]),loading:n.withCtx(()=>[n.createVNode(Te)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:n.withCtx(({row:c})=>[n.createElementVNode("a",{href:t.externalTeamResolver(c.team.longName),target:"_blank"},[n.createElementVNode("span",Qs,n.toDisplayString(c.team.longName),1),n.createElementVNode("span",ti,n.toDisplayString(c.team.shortName),1)],8,Js)]),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:n.withCtx(({row:c})=>[n.createElementVNode("a",{href:t.externalPlayerResolver(c.id),target:"_blank"},n.toDisplayString(c.name),9,ei)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},on={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:""}},ni={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:"gd",direction:b},{target:"gf",direction:b}]}},oi={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}]}},ai={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}]},g:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"g",direction:b},{target:"a",direction:b}]},a:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"a",direction:b},{target:"g",direction:b}]},point:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"point",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shoot:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shoot",direction:b}]},shootPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},si={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}]}},ii={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}]},mip:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mipSec",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}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",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}]}},li={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}]}},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}]},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}]}},ui={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}]},dvgTime:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTimeSec",direction:b}]},dvgTimePP1:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1Sec",direction:b}]},dvgTimePP2:{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}]}},di={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}]},advTime:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTimeSec",direction:b}]},advTimePP1:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1Sec",direction:b}]},advTimePP2:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2Sec",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}]}},fi={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}]},m:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},plus:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"plus",direction:b}]},minus:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"minus",direction:C}]},gk:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gk",direction:b}]},GFGP:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"GFGP",direction:b}]},GAGP:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"GAGP",direction:C}]},Shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"Shots",direction:b}]},SA:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"SA",direction:C}]},ShotsGP:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"ShotsGP",direction:b}]},SAGP:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"SAGP",direction:C}]},GFShots:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"GFShots",direction:b}]}},an=async(t,e,r)=>{const o=`${pr}${n.unref(t)}?${mi(r)}`;return new Promise((s,a)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":pi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return a(i);s(i.data)}).catch(i=>{a(i)})})},mi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),pi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},hi=(t={})=>{const{initial:e=1,items:r=[],limit:o,auto:s=!1}=t,a=n.ref(e),i=u=>rn(u,"day");return bn(r,()=>{if(!s)return;const u=Do(Jo(i,"gameDate"))(n.unref(r));a.value=u===-1?1:Math.floor(u/o)+1}),{page:a,change:u=>{a.value=u}}},gi=({options:t={},transform:e=s=>s,onError:r=rt,onSuccess:o=rt})=>{const{path:s,apiKey:a,params:i}=t,{state:l,error:d,isLoading:u,execute:f}=Be(()=>an(s,a,n.unref(i)).then(c=>e(c)),[],{immediate:!1,resetOnExecute:!1,onError:r,onSuccess:o});return{state:l,error:d,isLoading:u,execute:f}};/*! *****************************************************************************
|
|
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(_,n){"use strict";const dt=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 ln(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o,s,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}var cn;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(cn||(cn={}));var fi={type:"xstate.init"};function Pe(t){return t===void 0?[]:[].concat(t)}function un(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 ve(t){return function(e){return t===e}}function mi(t){return typeof t=="string"?{type:t}:t}function dn(t,e){return{value:t,context:e,actions:[],changed:!1,matches:ve(t)}}function fn(t,e,r){var o=e,s=!1;return[t.filter(function(a){if(a.type==="xstate.assign"){s=!0;var i=Object.assign({},o);return typeof a.assignment=="function"?i=a.assignment(o,r):Object.keys(a.assignment).forEach(function(l){i[l]=typeof a.assignment[l]=="function"?a.assignment[l](o,r):a.assignment[l]}),o=i,!1}return!0}),o,s]}function pi(t,e){e===void 0&&(e={});var r=ln(fn(Pe(t.states[t.initial].entry).map(function(i){return un(i,e.actions)}),t.context,fi),2),o=r[0],s=r[1],a={config:t,_options:e,initialState:{value:t.initial,actions:o,context:s,matches:ve(t.initial)},transition:function(i,l){var d,u,f=typeof i=="string"?{value:i,context:t.context}:i,c=f.value,p=f.context,m=mi(l),g=t.states[c];if(g.on){var h=Pe(g.on[m.type]);try{for(var y=function(w){var v=typeof Symbol=="function"&&Symbol.iterator,x=v&&w[v],M=0;if(x)return x.call(w);if(w&&typeof w.length=="number")return{next:function(){return w&&M>=w.length&&(w=void 0),{value:w&&w[M++],done:!w}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),$=y.next();!$.done;$=y.next()){var A=$.value;if(A===void 0)return dn(c,p);var P=typeof A=="string"?{target:A}:A,N=P.target,D=P.actions,B=D===void 0?[]:D,R=P.cond,F=R===void 0?function(){return!0}:R,L=N===void 0,E=N??c,I=t.states[E];if(F(p,m)){var H=ln(fn((L?Pe(B):[].concat(g.exit,B,I.entry).filter(function(w){return w})).map(function(w){return un(w,a._options.actions)}),p,m),3),k=H[0],T=H[1],S=H[2],O=N??c;return{value:O,context:T,actions:k,changed:N!==c||k.length>0||S,matches:ve(O)}}}}catch(w){d={error:w}}finally{try{$&&!$.done&&(u=y.return)&&u.call(y)}finally{if(d)throw d.error}}}return dn(c,p)}};return a}const hi=pi({id:"sort",initial:nt,states:{[nt]:{on:{DIRECTION1:b,DIRECTION2:C}},[b]:{on:{DIRECTION1:C,DIRECTION2:nt}},[C]:{on:{DIRECTION1:nt,DIRECTION2:b}}}}),gi=(t,e)=>{const r=e===C?"DIRECTION2":"DIRECTION1";return hi.transition(t,r).value};function yi(t={}){const{sortTarget:e=null,orders:r=[]}=t,o=n.reactive({sortTarget:e,orders:r});return{sort:o,change:({target:a,orders:i})=>{if(o.sortTarget!==a){o.sortTarget=a,o.orders=i;return}const l=i.map((d,u)=>({...d,direction:gi(o.orders[u].direction,d.direction)}));o.sortTarget=a,o.orders=l}}}function bi(t=!1,e=rt,r=rt){const o=xn();n.watch(o,s=>{if(n.unref(t)){if(s==="visible")return e();r()}})}const wi=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,r=[],o=!1){if(e){const s=r.map(i=>o?de(lr(i),Ft(e)):de(At(i),na,Ro(e))),a=qe(fo([...s]),this.result);this.isFiltered=!0,this.filteredRowsLength=a.length,this.result=a}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===nt)return this;const r=zo(Ft(C),or(ar),or(vo));return this.result=cr(e.orders.map(o=>sr(r(o.direction),At)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,o,s)=>{const a=r[r.length-1]||[],i=e&&a[e]===o[e];return o.index=i?a.index:s+1,o.indexClass=i?"is-duplicated":null,r.push(o),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){e=Number(e),r=Number(r);const o=(e-1)*r,s=o+r;return this.result=this.result.slice(o,s),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},schedule(e="",r="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Qt(o.gameDate,"L dddd",e,r),gameDateTime:Qt(o.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(o=>r[o]?r[`${o}Sec`]=Ae(r[o]):r),r)),this},groupByDays(){return this.result=Bo(e=>Qt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Si=(t,...e)=>mt(sr(...e))(t),_i=t=>({...t,...t.lastName&&{name:`${t.lastName} ${t.firstName}`}}),Ti=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},$i=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=Ae(e[r]):e),e),Ai=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=rn(e[r])),e),Oi=cr([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),ar(At("id"))]),ki=(t,e)=>{const r=Ee("gameResolver")||t;return typeof r=="function"?r(e):r?r+e:hr+e},Pi=(t,e)=>{const r=Ee("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:br+e)},vi=(t,e)=>{const r=Ee("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:yr+e)},Ee=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Ei={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"},xi=n.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Ni=n.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Di=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Li=[xi,Ni,Di];function Mi(t,e){return n.openBlock(),n.createElementBlock("svg",Ei,Li)}const Ci={render:Mi},Bi={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"},Ii=n.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),zi=n.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Vi=n.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Ri=[Ii,zi,Vi];function Gi(t,e){return n.openBlock(),n.createElementBlock("svg",Bi,Ri)}const ji={render:Gi},Fi={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"},Yi=n.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),Hi=n.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Ui=[Yi,Hi];function Wi(t,e){return n.openBlock(),n.createElementBlock("svg",Fi,Ui)}const Ki={render:Wi},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=n.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),Xi=n.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Ji=[qi,Xi];function Qi(t,e){return n.openBlock(),n.createElementBlock("svg",Zi,Ji)}const tl={render:Qi},el={class:"is-team-name-long"},rl={class:"is-team-name-short"},nl={class:"is-team-name-long"},ol={class:"is-team-name-short"},al={key:0,class:"is-text-dark"},sl=["href","target"],il={key:0,class:"label"},ll={key:1,class:"label"},cl={key:2,class:"label"},ul={key:1},dl=["onClick","onFocus","onBlur"],fl={class:"is-dropdown-menu"},ml=["href","target"],pl={key:0},hl=["href"],gl={__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,r=n.ref(null),{onError:o}=_e(),{columns:s,error:a}=Oe(an,e.hideColumns,n.computed(()=>({offsetName:e.offsetName})));Sn(a,()=>o(new ke(Mt.message,{...Mt.options,cause:{column:a.value}})),{immediate:!0});const{t:i}=pt();return(l,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode($e,null,{default:n.withCtx(({el:u})=>[n.createVNode(we,{columns:n.unref(s),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||u},{"cell-homeTeamName":n.withCtx(({row:f})=>[n.createElementVNode("span",el,n.toDisplayString(f.homeTeam.longName),1),n.createElementVNode("span",rl,n.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":n.withCtx(({row:f})=>[n.createElementVNode("span",nl,n.toDisplayString(f.awayTeam.longName),1),n.createElementVNode("span",ol,n.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":n.withCtx(({row:f})=>[(n.openBlock(),n.createBlock(Dt,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":n.withCtx(({row:f})=>[(n.openBlock(),n.createBlock(Dt,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":n.withCtx(({row:f})=>[f.gameStatus===0?(n.openBlock(),n.createElementBlock("span",al,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},n.toDisplayString(f.homeTeamScore)+":"+n.toDisplayString(f.awayTeamScore),11,sl))]),"cell-gameResultType":n.withCtx(({row:f})=>[f.isOvertime?(n.openBlock(),n.createElementBlock("span",il,n.toDisplayString(n.unref(i)("common.overtimeShort")),1)):n.createCommentVNode("",!0),f.isShootout?(n.openBlock(),n.createElementBlock("span",ll,n.toDisplayString(n.unref(i)("common.shootoutShort")),1)):n.createCommentVNode("",!0),f.seriesStandings?(n.openBlock(),n.createElementBlock("span",cl,n.toDisplayString(f.seriesStandings),1)):n.createCommentVNode("",!0)]),"cell-broadcast":n.withCtx(({row:f})=>[f.broadcast?(n.openBlock(),n.createBlock(n.unref(Ci),{key:0})):(n.openBlock(),n.createElementBlock("span",ul))]),"cell-location":n.withCtx(({row:f})=>{var c;return[n.createTextVNode(n.toDisplayString(((c=f.location)==null?void 0:c.locationName)??""),1)]}),"cell-more":n.withCtx(({row:f})=>[n.createVNode(be,{offset:2,placement:"left",theme:"content","append-to":u},{default:n.withCtx(({setRef:c,show:p,hide:m})=>[n.createElementVNode("button",{ref:c,onClick:n.withModifiers(p,["stop"]),onFocus:p,onBlur:m},[n.createVNode(n.unref(ji))],40,dl)]),content:n.withCtx(()=>[n.createElementVNode("ul",fl,[n.createElementVNode("li",null,[n.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[n.createVNode(n.unref(Ki),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.report")),1)],8,ml)]),f.video?(n.openBlock(),n.createElementBlock("li",pl,[n.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[n.createVNode(n.unref(tl),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.video")),1)],8,hl)])):n.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:n.withCtx(()=>[n.createVNode(Te)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),n.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},null,512)],64))}},yl={};function bl(t,e){return n.openBlock(),n.createElementBlock("div",null," Test-8 ")}const wl=Ur(yl,[["render",bl]]),Sl={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},mn={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},_l={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...mn},Tl=({modules:t=[],apiKey:e,gameResolver:r,teamResolver:o,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:r,teamResolver:o,playerResolver:s},t.length===0)throw new Error("At least one module must be set");t.forEach(a=>{if(a.register)return a.register();a==null||a()})};return _.AVAILABLE_TIMEZONES_BY_COUNTRY=Sr,_.BaseSelect=pn,_.COLUMNS_FIELD_PLAYERS=ti,_.COLUMNS_FIELD_PLAYERS_PENALTY=ei,_.COLUMNS_GOALIES=ri,_.COLUMNS_SCHEDULE=an,_.COLUMNS_SCORING_EFFICIENCY=ii,_.COLUMNS_STANDINGS_P_2=Qs,_.COLUMNS_STANDINGS_P_3=Js,_.COLUMNS_TEAMS_FAIRPLAY=oi,_.COLUMNS_TEAMS_PENALTY_KILLING=ai,_.COLUMNS_TEAMS_POWERPLAY=si,_.COLUMNS_TEAM_ATTENDANCE=ni,_.DEFAULT_EXTERNAL_BASE_URL=hr,_.DEFAULT_EXTERNAL_PLAYER_URL=yr,_.DEFAULT_EXTERNAL_TEAM_URL=br,_.DEFAULT_PORTRAIT_IMAGE_URL=gr,_.DataTable=we,_.ErrorNotice=Ka,_.ErrorProvider=qa,_.FloatingPanel=be,_.I18NProvider=es,_.Image=Dt,_.InvalidSeasonName=Fs,_.LAZY_LOADING_STATE_DELAY=_r,_.LOCALE_FOR_LANG=wr,_.LoadingIndicator=Te,_.Paginator=As,_.REFRESH_DELAY=ca,_.ResponsiveTable=$e,_.SORT_STATE_ASCEND=C,_.SORT_STATE_DESCEND=b,_.SORT_STATE_ORIGINAL=nt,_.ScheduleTable=gl,_.StatisticsTable=Xs,_.Test=wl,_.TimezoneSelector=js,_.UndefinedColumn=Mt,_.VBR_API_BASE_URL=pr,_.WidgetError=ke,_.appendTo=jr,_.baseProps=Sl,_.convert=wi,_.convertMinToSec=Ae,_.convertSecToMin=rn,_.convertTimes=$i,_.convertTimesSecToMin=Ai,_.createConfig=Tl,_.createI18n=dr,_.externalGameLinkResolver=ki,_.externalPlayerLinkResolver=vi,_.externalTeamLinkResolver=Pi,_.fetchVBRData=sn,_.format=Qt,_.getLocalTimezone=en,_.i18n=mr,_.isBetween=Vs,_.isSame=Rs,_.isSameOrBefore=nn,_.offsetName=Lt,_.playerName=_i,_.playerStatsProps=_l,_.rawConvert=Si,_.sortGames=Oi,_.stringPadLeft=Se,_.teamStatsProps=mn,_.toKebabCase=Fr,_.upperCase=Ti,_.useColumns=Oe,_.useError=_e,_.useErrorProvider=Hr,_.useI18n=pt,_.useLazyLoadingState=Ve,_.useMainClass=dt,_.usePage=ui,_.useServices=di,_.useSort=yi,_.useVisibilityChange=bi,_.validateColumnsName=on,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),_}({},Vue);
|
|
22
|
+
***************************************************************************** */function sn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o,s,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}var ln;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(ln||(ln={}));var yi={type:"xstate.init"};function Pe(t){return t===void 0?[]:[].concat(t)}function cn(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 ve(t){return function(e){return t===e}}function bi(t){return typeof t=="string"?{type:t}:t}function un(t,e){return{value:t,context:e,actions:[],changed:!1,matches:ve(t)}}function dn(t,e,r){var o=e,s=!1;return[t.filter(function(a){if(a.type==="xstate.assign"){s=!0;var i=Object.assign({},o);return typeof a.assignment=="function"?i=a.assignment(o,r):Object.keys(a.assignment).forEach(function(l){i[l]=typeof a.assignment[l]=="function"?a.assignment[l](o,r):a.assignment[l]}),o=i,!1}return!0}),o,s]}function wi(t,e){e===void 0&&(e={});var r=sn(dn(Pe(t.states[t.initial].entry).map(function(i){return cn(i,e.actions)}),t.context,yi),2),o=r[0],s=r[1],a={config:t,_options:e,initialState:{value:t.initial,actions:o,context:s,matches:ve(t.initial)},transition:function(i,l){var d,u,f=typeof i=="string"?{value:i,context:t.context}:i,c=f.value,p=f.context,m=bi(l),g=t.states[c];if(g.on){var h=Pe(g.on[m.type]);try{for(var y=function(w){var v=typeof Symbol=="function"&&Symbol.iterator,x=v&&w[v],M=0;if(x)return x.call(w);if(w&&typeof w.length=="number")return{next:function(){return w&&M>=w.length&&(w=void 0),{value:w&&w[M++],done:!w}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),$=y.next();!$.done;$=y.next()){var A=$.value;if(A===void 0)return un(c,p);var P=typeof A=="string"?{target:A}:A,N=P.target,L=P.actions,B=L===void 0?[]:L,R=P.cond,F=R===void 0?function(){return!0}:R,D=N===void 0,E=N??c,z=t.states[E];if(F(p,m)){var U=sn(dn((D?Pe(B):[].concat(g.exit,B,z.entry).filter(function(w){return w})).map(function(w){return cn(w,a._options.actions)}),p,m),3),k=U[0],T=U[1],S=U[2],O=N??c;return{value:O,context:T,actions:k,changed:N!==c||k.length>0||S,matches:ve(O)}}}}catch(w){d={error:w}}finally{try{$&&!$.done&&(u=y.return)&&u.call(y)}finally{if(d)throw d.error}}}return un(c,p)}};return a}const Si=wi({id:"sort",initial:nt,states:{[nt]:{on:{DIRECTION1:b,DIRECTION2:C}},[b]:{on:{DIRECTION1:C,DIRECTION2:nt}},[C]:{on:{DIRECTION1:nt,DIRECTION2:b}}}}),_i=(t,e)=>{const r=e===C?"DIRECTION2":"DIRECTION1";return Si.transition(t,r).value};function Ti(t={}){const{sortTarget:e=null,orders:r=[]}=t,o=n.reactive({sortTarget:e,orders:r});return{sort:o,change:({target:a,orders:i})=>{if(o.sortTarget!==a){o.sortTarget=a,o.orders=i;return}const l=i.map((d,u)=>({...d,direction:_i(o.orders[u].direction,d.direction)}));o.sortTarget=a,o.orders=l}}}function $i(t=!1,e=rt,r=rt){const o=En();n.watch(o,s=>{if(n.unref(t)){if(s==="visible")return e();r()}})}const Ai=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,r=[],o=!1){if(e){const s=r.map(i=>o?de(lr(i),Ft(e)):de(At(i),ra,Vo(e))),a=qe(uo([...s]),this.result);this.isFiltered=!0,this.filteredRowsLength=a.length,this.result=a}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===nt)return this;const r=zo(Ft(C),or(ar),or(Po));return this.result=cr(e.orders.map(o=>sr(r(o.direction),At)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,o,s)=>{const a=r[r.length-1]||[],i=e&&a[e]===o[e];return o.index=i?a.index:s+1,o.indexClass=i?"is-duplicated":null,r.push(o),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){e=Number(e),r=Number(r);const o=(e-1)*r,s=o+r;return this.result=this.result.slice(o,s),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},schedule(e="",r="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Qt(o.gameDate,"L dddd",e,r),gameDateTime:Qt(o.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(o=>r[o]?r[`${o}Sec`]=Ae(r[o]):r),r)),this},groupByDays(){return this.result=Co(e=>Qt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Oi=(t,...e)=>mt(sr(...e))(t),ki=t=>({...t,...t.lastName&&{name:`${t.lastName} ${t.firstName}`}}),Pi=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},vi=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=Ae(e[r]):e),e),Ei=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=en(e[r])),e),xi=cr([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),ar(At("id"))]),Ni=(t,e)=>{const r=Ee("gameResolver")||t;return typeof r=="function"?r(e):r?r+e:hr+e},Li=(t,e)=>{const r=Ee("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:br+e)},Di=(t,e)=>{const r=Ee("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:yr+e)},Ee=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Mi={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"},Ci=n.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Bi=n.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),zi=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Ii=[Ci,Bi,zi];function Vi(t,e){return n.openBlock(),n.createElementBlock("svg",Mi,Ii)}const Ri={render:Vi},Gi={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"},ji=n.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Fi=n.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Yi=n.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Ui=[ji,Fi,Yi];function Hi(t,e){return n.openBlock(),n.createElementBlock("svg",Gi,Ui)}const Wi={render:Hi},Ki={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"},Zi=n.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),qi=n.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Xi=[Zi,qi];function Ji(t,e){return n.openBlock(),n.createElementBlock("svg",Ki,Xi)}const Qi={render:Ji},tl={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"},el=n.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),rl=n.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),nl=[el,rl];function ol(t,e){return n.openBlock(),n.createElementBlock("svg",tl,nl)}const al={render:ol},sl={class:"is-team-name-long"},il={class:"is-team-name-short"},ll={class:"is-team-name-long"},cl={class:"is-team-name-short"},ul={key:0,class:"is-text-dark"},dl=["href","target"],fl={key:0,class:"label"},ml={key:1,class:"label"},pl={key:2,class:"label"},hl={key:1},gl=["onClick","onFocus","onBlur"],yl={class:"is-dropdown-menu"},bl=["href","target"],wl={key:0},Sl=["href"],_l={__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,r=n.ref(null),{onError:o}=_e(),{columns:s,error:a}=Oe(on,e.hideColumns,n.computed(()=>({offsetName:e.offsetName})));wn(a,()=>o(new ke(Mt.message,{...Mt.options,cause:{column:a.value}})),{immediate:!0});const{t:i}=pt();return(l,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode($e,null,{default:n.withCtx(({el:u})=>[n.createVNode(we,{columns:n.unref(s),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||u},{"cell-homeTeamName":n.withCtx(({row:f})=>[n.createElementVNode("span",sl,n.toDisplayString(f.homeTeam.longName),1),n.createElementVNode("span",il,n.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":n.withCtx(({row:f})=>[n.createElementVNode("span",ll,n.toDisplayString(f.awayTeam.longName),1),n.createElementVNode("span",cl,n.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":n.withCtx(({row:f})=>[(n.openBlock(),n.createBlock(Lt,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":n.withCtx(({row:f})=>[(n.openBlock(),n.createBlock(Lt,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":n.withCtx(({row:f})=>[f.gameStatus===0?(n.openBlock(),n.createElementBlock("span",ul,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},n.toDisplayString(f.homeTeamScore)+":"+n.toDisplayString(f.awayTeamScore),11,dl))]),"cell-gameResultType":n.withCtx(({row:f})=>[f.isOvertime?(n.openBlock(),n.createElementBlock("span",fl,n.toDisplayString(n.unref(i)("common.overtimeShort")),1)):n.createCommentVNode("",!0),f.isShootout?(n.openBlock(),n.createElementBlock("span",ml,n.toDisplayString(n.unref(i)("common.shootoutShort")),1)):n.createCommentVNode("",!0),f.seriesStandings?(n.openBlock(),n.createElementBlock("span",pl,n.toDisplayString(f.seriesStandings),1)):n.createCommentVNode("",!0)]),"cell-broadcast":n.withCtx(({row:f})=>[f.broadcast?(n.openBlock(),n.createBlock(n.unref(Ri),{key:0})):(n.openBlock(),n.createElementBlock("span",hl))]),"cell-location":n.withCtx(({row:f})=>{var c;return[n.createTextVNode(n.toDisplayString(((c=f.location)==null?void 0:c.locationName)??""),1)]}),"cell-more":n.withCtx(({row:f})=>[n.createVNode(be,{offset:2,placement:"left",theme:"content","append-to":u},{default:n.withCtx(({setRef:c,show:p,hide:m})=>[n.createElementVNode("button",{ref:c,onClick:n.withModifiers(p,["stop"]),onFocus:p,onBlur:m},[n.createVNode(n.unref(Wi))],40,gl)]),content:n.withCtx(()=>[n.createElementVNode("ul",yl,[n.createElementVNode("li",null,[n.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[n.createVNode(n.unref(Qi),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.report")),1)],8,bl)]),f.video?(n.openBlock(),n.createElementBlock("li",wl,[n.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[n.createVNode(n.unref(al),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.video")),1)],8,Sl)])):n.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:n.withCtx(()=>[n.createVNode(Te)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),n.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},null,512)],64))}},Tl={};function $l(t,e){return n.openBlock(),n.createElementBlock("div",null," Test-8 ")}const Al=Ur(Tl,[["render",$l]]),Ol={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},fn={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},kl={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...fn},Pl=({modules:t=[],apiKey:e,gameResolver:r,teamResolver:o,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:r,teamResolver:o,playerResolver:s},t.length===0)throw new Error("At least one module must be set");t.forEach(a=>{if(a.register)return a.register();a==null||a()})};return _.AVAILABLE_TIMEZONES_BY_COUNTRY=Sr,_.BaseSelect=mn,_.COLUMNS_FIELD_PLAYERS=ai,_.COLUMNS_FIELD_PLAYERS_PENALTY=si,_.COLUMNS_GOALIES=ii,_.COLUMNS_SCHEDULE=on,_.COLUMNS_SCORING_EFFICIENCY=fi,_.COLUMNS_STANDINGS_P_2=oi,_.COLUMNS_STANDINGS_P_3=ni,_.COLUMNS_TEAMS_FAIRPLAY=ci,_.COLUMNS_TEAMS_PENALTY_KILLING=ui,_.COLUMNS_TEAMS_POWERPLAY=di,_.COLUMNS_TEAM_ATTENDANCE=li,_.DEFAULT_EXTERNAL_BASE_URL=hr,_.DEFAULT_EXTERNAL_PLAYER_URL=yr,_.DEFAULT_EXTERNAL_TEAM_URL=br,_.DEFAULT_PORTRAIT_IMAGE_URL=gr,_.DataTable=we,_.ErrorNotice=Qa,_.ErrorProvider=es,_.FloatingPanel=be,_.I18NProvider=ss,_.Image=Lt,_.InvalidSeasonName=Ks,_.LAZY_LOADING_STATE_DELAY=_r,_.LOCALE_FOR_LANG=wr,_.LoadingIndicator=Te,_.Paginator=Es,_.REFRESH_DELAY=la,_.ResponsiveTable=$e,_.SORT_STATE_ASCEND=C,_.SORT_STATE_DESCEND=b,_.SORT_STATE_ORIGINAL=nt,_.ScheduleTable=_l,_.StatisticsTable=ri,_.Test=Al,_.TimezoneSelector=Ws,_.UndefinedColumn=Mt,_.VBR_API_BASE_URL=pr,_.WidgetError=ke,_.appendTo=Gr,_.baseProps=Ol,_.convert=Ai,_.convertMinToSec=Ae,_.convertSecToMin=en,_.convertTimes=vi,_.convertTimesSecToMin=Ei,_.createConfig=Pl,_.createI18n=dr,_.externalGameLinkResolver=Ni,_.externalPlayerLinkResolver=Di,_.externalTeamLinkResolver=Li,_.fetchVBRData=an,_.format=Qt,_.getLocalTimezone=tn,_.i18n=mr,_.isBetween=Ys,_.isSame=Us,_.isSameOrBefore=rn,_.offsetName=Dt,_.playerName=ki,_.playerStatsProps=kl,_.rawConvert=Oi,_.sortGames=xi,_.stringPadLeft=Se,_.teamStatsProps=fn,_.toKebabCase=jr,_.upperCase=Pi,_.useColumns=Oe,_.useError=_e,_.useErrorProvider=Yr,_.useI18n=pt,_.useLazyLoadingState=Ve,_.useMainClass=dt,_.usePage=hi,_.useServices=gi,_.useSort=Ti,_.useVisibilityChange=$i,_.validateColumnsName=nn,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),_}({},Vue);
|