@mjsz-vbr-elements/core 2.3.6 → 2.3.8
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/{AdditionalStandingsText-BcHECtG0.js → AdditionalStandingsText-DbEQVH0C.js} +679 -666
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +19 -23
- package/dist/constants.js +1 -1
- package/dist/{convert-HKQt4kO3.js → convert-BEp1U263.js} +186 -213
- package/dist/{datetime-BD_lSSC2.js → datetime-C3O51pdW.js} +259 -265
- 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 +5 -5
- package/dist/{useAdditionalText-Ta-GUW7T.js → useAdditionalText-B4_ntvb_.js} +176 -172
- package/dist/utils.js +4 -4
- package/package.json +8 -8
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.8 - 21/05/2024, 10:10:54
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
var MjszVbrElementsCore=function(w,r){"use strict";var kr={VITE_VBR_API_URL:"https://api.icehockey.hu/vbr",VITE_VBR_API_KEY:"",VITE_USER_NODE_ENV:"production",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const st=t=>(kr.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Ue={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=st("base-input"),s=r.computed({get:()=>n.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:r.normalizeClass([r.unref(a),"is-select"])},[r.renderSlot(i.$slots,"default")],2)),[[r.vModelSelect,s.value]])}};function He(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function rt(t){return typeof t=="function"?t():r.unref(t)}const Ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ar=Object.prototype.toString,Or=t=>Ar.call(t)==="[object Object]",tt=()=>{},Er=Pr();function Pr(){var t,e;return Ht&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function xr(t,e){function n(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return n}const We=t=>t();function Nr(t=We){const e=r.ref(!0);function n(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:r.readonly(e),pause:n,resume:o,eventFilter:a}}function de(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function $r(t,e,n={}){const{eventFilter:o=We,...a}=n;return r.watch(t,xr(o,e),a)}function vr(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=Nr(o);return{stop:$r(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function fe(t,e=!1){function n(m,{flush:p="sync",deep:g=!1,timeout:f,throwOnTimeout:h}={}){let y=null;const O=[new Promise(E=>{y=r.watch(t,x=>{m(x)!==e&&(y==null||y(),E(x))},{flush:p,deep:g,immediate:!0})})];return f!=null&&O.push(de(f,h).then(()=>rt(t)).finally(()=>y==null?void 0:y())),Promise.race(O)}function o(m,p){if(!r.isRef(m))return n(x=>x===m,p);const{flush:g="sync",deep:f=!1,timeout:h,throwOnTimeout:y}=p??{};let S=null;const E=[new Promise(x=>{S=r.watch([t,m],([N,C])=>{e!==(N===C)&&(S==null||S(),x(N))},{flush:g,deep:f,immediate:!0})})];return h!=null&&E.push(de(h,y).then(()=>rt(t)).finally(()=>(S==null||S(),rt(t)))),Promise.race(E)}function a(m){return n(p=>!!p,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,p){return n(g=>{const f=Array.from(g);return f.includes(m)||f.includes(rt(m))},p)}function u(m){return d(1,m)}function d(m=1,p){let g=-1;return n(()=>(g+=1,g>=m),p)}return Array.isArray(rt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return fe(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:d,get not(){return fe(t,!e)}}}function Dr(t){return fe(t)}function Cr(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},rt(e))}return o&&(a.value=!0,Ht&&c()),He(l),{isPending:r.readonly(a),start:c,stop:l}}function Ke(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function Mr(t,e,n){return r.watch(t,(o,a,s)=>{o&&e(o,a,s)},n)}function Pt(t){var e;const n=rt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const qe=Ht?window:void 0,Lr=Ht?window.document:void 0;function Wt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=qe):[e,n,o,a]=t,!e)return tt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,m,p,g)=>(d.addEventListener(m,p,g),()=>d.removeEventListener(m,p,g)),c=r.watch(()=>[Pt(e),rt(a)],([d,m])=>{if(i(),!d)return;const p=Or(m)?{...m}:m;s.push(...n.flatMap(g=>o.map(f=>l(d,g,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return He(u),u}let Ze=!1;function Br(t,e,n={}){const{window:o=qe,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return tt;Er&&!Ze&&(Ze=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",tt)),o.document.documentElement.addEventListener("click",tt));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(f=>f===p.target||p.composedPath().includes(f));{const f=Pt(g);return f&&(p.target===f||p.composedPath().includes(f))}}),d=[Wt(o,"click",p=>{const g=Pt(t);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:s}),Wt(o,"pointerdown",p=>{const g=Pt(t);l=!c(p)&&!!(g&&!p.composedPath().includes(g))},{passive:!0}),i&&Wt(o,"blur",p=>{setTimeout(()=>{var g;const f=Pt(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&e(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function Xe(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=tt,onSuccess:i=tt,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},d=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),p=r.ref(!1),g=r.shallowRef(void 0);async function f(S=0,...O){l&&(d.value=e),g.value=void 0,m.value=!1,p.value=!0,S>0&&await de(S);const E=typeof t=="function"?t(...O):t;try{const x=await E;d.value=x,m.value=!0,i(x)}catch(x){if(g.value=x,s(x),u)throw x}finally{p.value=!1}return d.value}o&&f(a);const h={state:d,isReady:m,isLoading:p,error:g,execute:f};function y(){return new Promise((S,O)=>{Dr(p).toBe(!1).then(()=>S(h)).catch(O)})}return{...h,then(S,O){return y().then(S,O)}}}function Ir(t={}){const{document:e=Lr}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Wt(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}async function Rr(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:d}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),d&&(o.referrerPolicy=d),o.onload=()=>e(o),o.onerror=n})}function Vr(t,e={}){const n=Xe(()=>Rr(rt(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>rt(t),()=>n.execute(e.delay),{deep:!0}),n}function Je(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=Cr(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function V(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function G(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function R(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return V(n)?e:G(function(a){return t(n,a)});default:return V(n)&&V(o)?e:V(n)?G(function(a){return t(a,o)}):V(o)?G(function(a){return t(n,a)}):t(n,o)}}}function Kt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,d){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,d,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function me(t,e,n){return function(){for(var o=[],a=0,s=t,i=0,l=!1;i<e.length||a<arguments.length;){var c;i<e.length&&(!V(e[i])||a>=arguments.length)?c=e[i]:(c=arguments[a],a+=1),o[i]=c,V(c)?l=!0:s-=1,i+=1}return!l&&s<=0?n.apply(this,o):Kt(Math.max(0,s),me(t,o,n))}}var Ct=R(function(e,n){return e===1?G(n):Kt(e,me(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:R(function(s,i){return t(n,s,i)});case 2:return V(n)&&V(o)?e:V(n)?R(function(s,i){return t(s,o,i)}):V(o)?R(function(s,i){return t(n,s,i)}):G(function(s){return t(n,o,s)});default:return V(n)&&V(o)&&V(a)?e:V(n)&&V(o)?R(function(s,i){return t(s,i,a)}):V(n)&&V(a)?R(function(s,i){return t(s,o,i)}):V(o)&&V(a)?R(function(s,i){return t(n,s,i)}):V(n)?G(function(s){return t(s,o,a)}):V(o)?G(function(s){return t(n,s,a)}):V(a)?G(function(s){return t(n,o,s)}):t(n,o,a)}}}const Mt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function zr(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Lt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!Mt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(zr(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function pe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Qe(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function tn(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function Gr(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 jr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const he=typeof Object.is=="function"?Object.is:jr;var en=Object.prototype.toString,nn=function(){return en.call(arguments)==="[object Arguments]"?function(e){return en.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Fr=!{toString:null}.propertyIsEnumerable("toString"),rn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],on=function(){return arguments.propertyIsEnumerable("length")}(),Yr=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},bt=G(typeof Object.keys=="function"&&!on?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=on&&nn(e);for(n in e)et(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Fr)for(o=rn.length-1;o>=0;)n=rn[o],et(n,e)&&!Yr(a,n)&&(a[a.length]=n),o-=1;return a}),ge=G(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function an(t,e,n,o){var a=Qe(t),s=Qe(e);function i(l,c){return ye(l,c,n.slice(),o.slice())}return!tn(function(l,c){return!tn(i,c,l)},s,a)}function ye(t,e,n,o){if(he(t,e))return!0;var a=ge(t);if(a!==ge(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Gr(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&he(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!he(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:an(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:an(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=bt(t);if(i.length!==bt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(et(u,e)&&ye(e[u],t[u],l,c)))return!1;s-=1}return!0}var qt=R(function(e,n){return ye(e,n,[],[])});function Ur(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(qt(t[n],e))return n;n+=1}return-1}function sn(t,e){return Ur(e,t,0)>=0}function Zt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function be(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 Bt=function(e){return(e<10?"0":"")+e},Hr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Bt(e.getUTCMonth()+1)+"-"+Bt(e.getUTCDate())+"T"+Bt(e.getUTCHours())+":"+Bt(e.getUTCMinutes())+":"+Bt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Wr(t){return function(){return!t.apply(this,arguments)}}function ln(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Kr(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Xt(t){return Object.prototype.toString.call(t)==="[object Object]"}var qr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Zr(t){return function(e){return new qr(t,e)}}var Xr=R(Lt(["fantasy-land/filter","filter"],Zr,function(t,e){return Xt(e)?ln(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},bt(e)):Kr(t,e)}));const we=Xr;var Jr=R(function(e,n){return we(Wr(e),n)});const Qr=Jr;function cn(t,e){var n=function(i){var l=e.concat([t]);return sn(i,l)?"<Circular>":cn(i,l)},o=function(s,i){return Zt(function(l){return be(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Zt(n,t).join(", ")+"))";case"[object Array]":return"["+Zt(n,t).concat(o(t,Qr(function(s){return/^\d+$/.test(s)},bt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):be(Hr(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":be(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,bt(t)).join(", ")+"}"}}var Se=G(function(e){return cn(e,[])}),to=R(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=Se(e),l=o(i,Se(n));return l!==void 0&&l===i?e:n});const eo=to;var no=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),ro=function(e){return function(n){return new no(e,n)}},oo=R(Lt(["fantasy-land/map","map"],ro,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Ct(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return ln(function(o,a){return o[a]=e(n[a]),o},{},bt(n));default:return Zt(e,n)}}));const ft=oo,Jt=Number.isInteger||function(e){return e<<0===e};function Qt(t){return Object.prototype.toString.call(t)==="[object String]"}var un=R(function(e,n){var o=e<0?n.length+e:e;return Qt(n)?n.charAt(o):n[o]}),it=R(function(e,n){if(n!=null)return Jt(e)?un(e,n):n[e]}),ao=R(function(e,n){return ft(it(e),n)}),so=G(function(e){return Mt(e)?!0:!e||typeof e!="object"||Qt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),dn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function io(t,e,n){return function(a,s,i){if(so(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[dn]!=null)return n(a,s,i[dn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function lo(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var co=R(function(e,n){return Kt(e.length,function(){return e.apply(n,arguments)})});function uo(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function fo(t,e,n,o){return t["@@transducer/result"](n[o](co(t["@@transducer/step"],t),e))}var fn=io(lo,fo,uo),mo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function mn(t){return new mo(t)}var pn=X(function(t,e,n){return fn(typeof t=="function"?mn(t):t,e,n)}),hn=G(function(e){return function(){return e}}),po=G(function(e){return Ct(pn(eo,0,ao("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),Te=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});function ho(t,e,n){if(Jt(t)&&Mt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var go=G(function(e){return e==null}),yo=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!go(o)&&et(a,o)&&typeof o[a]=="object"?o[a]:Jt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return ho(a,n,o)}),bo=X(function(e,n,o){return yo([e],n,o)});function wo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function So(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 _e(t,e,n){if(n||(n=new _o),To(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?_e(t[l],!0,n):t[l]);return s};switch(ge(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return So(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 To(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var _o=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){let n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const n=this.hash(e),o=this.map[n];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function ko(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ke(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return Mt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Ao=X(ke("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),Oo=G(ke("tail",Ao(1,1/0)));function te(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Kt(arguments[0].length,pn(ko,arguments[0],Oo(arguments)))}var Eo=G(function(e){return Qt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function gn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return te.apply(this,Eo(arguments))}var Po=G(function(e){return Ct(e.length,e)}),xo=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(et(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,_e(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function No(t,e,n){return function(o){return new xo(t,e,n,o)}}var $o=me(4,[],Lt([],No,function(e,n,o,a){var s=mn(function(i,l){var c=o(l),u=e(et(c,i)?i[c]:_e(n,!1),l);return u&&u["@@transducer/reduced"]?pe(i):(i[c]=u,i)});return fn(s,{},a)})),vo=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});const Do=vo;function Co(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 Mo=G(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():Mt(e)?[]:Qt(e)?"":Xt(e)?{}:nn(e)?function(){return arguments}():Co(e)?e.constructor.from(""):void 0}),Lo=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=pe(this.xf["@@transducer/step"](e,n))),e},t}();function Bo(t){return function(e){return new Lo(t,e)}}var Io=R(Lt(["find"],Bo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),Ro=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=pe(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Vo(t){return function(e){return new Ro(t,e)}}var zo=R(Lt([],Vo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),Go=R(ke("groupBy",$o(function(t,e){return t.push(e),t},[]))),jo=X(function(e,n,o){return Ct(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const Fo=jo;var Yo=R(sn),yn=R(function(e,n){return Ct(e+1,function(){var o=arguments[e];if(o!=null&&wo(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Se(o)+' does not have a method named "'+n+'"')})}),Uo=G(function(e){return e!=null&&qt(e,Mo(e))}),Ho=R(function(e,n){return function(o){return function(a){return ft(function(s){return n(s,a)},o(e(a)))}}}),Wo=R(function(e,n){return e.map(function(o){for(var a=n,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=Jt(i)?un(i,a):a[i],s+=1}return a})}),Ae=R(function(e,n){return Wo([e],n)[0]}),Ko=G(function(e){return Ho(it(e),bo(e))}),qo=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)et(s,n)&&(a[s]=et(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)et(s,o)&&!et(s,a)&&(a[s]=o[s]);return a}),Zo=X(function t(e,n,o){return qo(function(a,s,i){return Xt(s)&&Xt(i)?t(e,s,i):e(a,s,i)},n,o)}),Xo=R(function(e,n){return Zo(function(o,a,s){return s},e,n)});const Jo=Xo;var Qo=R(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),bn=function(t){return{value:t,map:function(e){return bn(e(t))}}},ta=X(function(e,n,o){return e(function(a){return bn(n(a))})(o).value}),wn=X(function(e,n,o){return e(it(n,o))}),ea=X(function(e,n,o){return o.replace(e,n)}),na=R(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),ra=R(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const Sn=ra;var xt=yn(1,"split"),Tn=yn(0,"toLowerCase"),It=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,oa="",aa=typeof String.prototype.trim=="function",sa=G(!aa||It.trim()||!oa.trim()?function(e){var n=new RegExp("^["+It+"]["+It+"]*"),o=new RegExp("["+It+"]["+It+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const ee=sa,_n=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""}),kn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(c,u={})=>{const d=!Uo(u),m=ft(ee,xt(".",c));return r.computed(()=>{const g=An(m);return d?la(g,u):g}).value},a=c=>{const u=ft(ee,xt(".",c));return!!Oe(W.locale,u,W.messages)},s=c=>{W.locale=c},l={locale:r.computed({get(){return W.locale},set(c){W.locale=c}}),setLocale:s,translate:o,hasTranslation:a};return r.provide(_n,l),{translate:o}},ot=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=ia();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},ia=()=>{const t=r.inject(_n,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},An=(t=[])=>{let e=Oe(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Oe(W.fallbackLocale,t,W.messages)),e||t.join(".")};function Oe(t,e,n){return Ae([t,...e],n)}const la=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},On=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=ft(ee,xt(".",t.path)),o=An(n),a=xt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),En="https://api.icehockey.hu/vbr",Pn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",xn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",Nn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",$n="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",vn="https://api.icehockey.hu/static/api/flag",lt="original",b="descend",B="ascend",Dn=new Map().set("hu","hu-hu").set("en","hu-gb"),Cn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ca=1e3*60*5,Mn=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=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),fa=[da];function ma(t,e){return r.openBlock(),r.createElementBlock("svg",ua,[...fa])}const Ln={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=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ga=[ha];function ya(t,e){return r.openBlock(),r.createElementBlock("svg",pa,[...ga])}const ba={render:ya},wa={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Sa=r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),Ta=[Sa];function _a(t,e){return r.openBlock(),r.createElementBlock("svg",wa,[...Ta])}const ka={render:_a},Nt=Math.min,wt=Math.max,ne=Math.round,re=Math.floor,mt=t=>({x:t,y:t}),Aa={left:"right",right:"left",bottom:"top",top:"bottom"},Oa={start:"end",end:"start"};function Ee(t,e,n){return wt(t,Nt(e,n))}function Rt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function Vt(t){return t.split("-")[1]}function Bn(t){return t==="x"?"y":"x"}function Pe(t){return t==="y"?"height":"width"}function oe(t){return["top","bottom"].includes(St(t))?"y":"x"}function xe(t){return Bn(oe(t))}function Ea(t,e,n){n===void 0&&(n=!1);const o=Vt(t),a=xe(t),s=Pe(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=ae(i)),[i,ae(i)]}function Pa(t){const e=ae(t);return[Ne(t),e,Ne(e)]}function Ne(t){return t.replace(/start|end/g,e=>Oa[e])}function xa(t,e,n){const o=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:o:e?o:a;case"left":case"right":return e?s:i;default:return[]}}function Na(t,e,n,o){const a=Vt(t);let s=xa(St(t),n==="start",o);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map(Ne)))),s}function ae(t){return t.replace(/left|right|bottom|top/g,e=>Aa[e])}function $a(t){return{top:0,right:0,bottom:0,left:0,...t}}function In(t){return typeof t!="number"?$a(t):{top:t,right:t,bottom:t,left:t}}function se(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Rn(t,e,n){let{reference:o,floating:a}=t;const s=oe(e),i=xe(e),l=Pe(i),c=St(e),u=s==="y",d=o.x+o.width/2-a.width/2,m=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:m};break;case"left":g={x:o.x-a.width,y:m};break;default:g={x:o.x,y:o.y}}switch(Vt(e)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const va=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:m}=Rn(u,o,c),p=o,g={},f=0;for(let h=0;h<l.length;h++){const{name:y,fn:S}=l[h],{x:O,y:E,data:x,reset:N}=await S({x:d,y:m,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:u,platform:i,elements:{reference:t,floating:e}});d=O??d,m=E??m,g={...g,[y]:{...g[y],...x}},N&&f<=50&&(f++,typeof N=="object"&&(N.placement&&(p=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):N.rects),{x:d,y:m}=Rn(u,p,c)),h=-1)}return{x:d,y:m,placement:p,strategy:a,middlewareData:g}};async function Vn(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Rt(e,t),f=In(g),y=l[p?m==="floating"?"reference":"floating":m],S=se(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),O=m==="floating"?{...i.floating,x:o,y:a}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},N=se(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-N.top+f.top)/x.y,bottom:(N.bottom-S.bottom+f.bottom)/x.y,left:(S.left-N.left+f.left)/x.x,right:(N.right-S.right+f.right)/x.x}}const Da=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:a,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=Rt(t,e)||{};if(u==null)return{};const m=In(d),p={x:n,y:o},g=xe(a),f=Pe(g),h=await i.getDimensions(u),y=g==="y",S=y?"top":"left",O=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[g]-p[g]-s.floating[f],N=p[g]-s.reference[g],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let I=C?C[E]:0;(!I||!await(i.isElement==null?void 0:i.isElement(C)))&&(I=l.floating[E]||s.floating[f]);const z=x/2-N/2,F=I/2-h[f]/2-1,M=Nt(m[S],F),D=Nt(m[O],F),Y=M,nt=I-h[f]-D,P=I/2-h[f]/2+z,A=Ee(Y,P,nt),T=!c.arrow&&Vt(a)!=null&&P!==A&&s.reference[f]/2-(P<Y?M:D)-h[f]/2<0,_=T?P<Y?P-Y:P-nt:0;return{[g]:p[g]+_,data:{[g]:A,centerOffset:P-A-_,...T&&{alignmentOffset:_}},reset:T}}}),Ca=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:a,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...y}=Rt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=St(a),O=St(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(O||!h?[ae(l)]:Pa(l));!p&&f!=="none"&&x.push(...Na(l,h,f,E));const N=[l,...x],C=await Vn(e,y),I=[];let z=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&I.push(C[S]),m){const Y=Ea(a,i,E);I.push(C[Y[0]],C[Y[1]])}if(z=[...z,{placement:a,overflows:I}],!I.every(Y=>Y<=0)){var F,M;const Y=(((F=s.flip)==null?void 0:F.index)||0)+1,nt=N[Y];if(nt)return{data:{index:Y,overflows:z},reset:{placement:nt}};let P=(M=z.filter(A=>A.overflows[0]<=0).sort((A,T)=>A.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!P)switch(g){case"bestFit":{var D;const A=(D=z.map(T=>[T.placement,T.overflows.filter(_=>_>0).reduce((_,k)=>_+k,0)]).sort((T,_)=>T[1]-_[1])[0])==null?void 0:D[0];A&&(P=A);break}case"initialPlacement":P=l;break}if(a!==P)return{reset:{placement:P}}}return{}}}};async function Ma(t,e){const{placement:n,platform:o,elements:a}=t,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=St(n),l=Vt(n),c=oe(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&c?-1:1,m=Rt(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:f}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof f=="number"&&(g=l==="end"?f*-1:f),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const La=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:a,y:s,placement:i,middlewareData:l}=e,c=await Ma(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},Ba=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:S,y:O}=y;return{x:S,y:O}}},...c}=Rt(t,e),u={x:n,y:o},d=await Vn(e,c),m=oe(St(a)),p=Bn(m);let g=u[p],f=u[m];if(s){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",O=g+d[y],E=g-d[S];g=Ee(O,g,E)}if(i){const y=m==="y"?"top":"left",S=m==="y"?"bottom":"right",O=f+d[y],E=f-d[S];f=Ee(O,f,E)}const h=l.fn({...e,[p]:g,[m]:f});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function pt(t){return zn(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ct(t){var e;return(e=(zn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function zn(t){return t instanceof Node||t instanceof Z(t).Node}function ut(t){return t instanceof Element||t instanceof Z(t).Element}function at(t){return t instanceof HTMLElement||t instanceof Z(t).HTMLElement}function Gn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function zt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function Ia(t){return["table","td","th"].includes(pt(t))}function $e(t){const e=ve(),n=J(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ra(t){let e=$t(t);for(;at(e)&&!ie(e);){if($e(e))return e;e=$t(e)}return null}function ve(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ie(t){return["html","body","#document"].includes(pt(t))}function J(t){return Z(t).getComputedStyle(t)}function le(t){return ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $t(t){if(pt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Gn(t)&&t.host||ct(t);return Gn(e)?e.host:e}function jn(t){const e=$t(t);return ie(e)?t.ownerDocument?t.ownerDocument.body:t.body:at(e)&&zt(e)?e:jn(e)}function Gt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=jn(t),s=a===((o=t.ownerDocument)==null?void 0:o.body),i=Z(a);return s?e.concat(i,i.visualViewport||[],zt(a)?a:[],i.frameElement&&n?Gt(i.frameElement):[]):e.concat(a,Gt(a,[],n))}function Fn(t){const e=J(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=at(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=ne(n)!==s||ne(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function De(t){return ut(t)?t:t.contextElement}function vt(t){const e=De(t);if(!at(e))return mt(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:s}=Fn(e);let i=(s?ne(n.width):n.width)/o,l=(s?ne(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Va=mt(0);function Yn(t){const e=Z(t);return!ve()||!e.visualViewport?Va:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function za(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function Tt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=De(t);let i=mt(1);e&&(o?ut(o)&&(i=vt(o)):i=vt(t));const l=za(s,n,o)?Yn(s):mt(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,d=a.width/i.x,m=a.height/i.y;if(s){const p=Z(s),g=o&&ut(o)?Z(o):o;let f=p,h=f.frameElement;for(;h&&o&&g!==f;){const y=vt(h),S=h.getBoundingClientRect(),O=J(h),E=S.left+(h.clientLeft+parseFloat(O.paddingLeft))*y.x,x=S.top+(h.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,m*=y.y,c+=E,u+=x,f=Z(h),h=f.frameElement}}return se({width:d,height:m,x:c,y:u})}const Ga=[":popover-open",":modal"];function Un(t){return Ga.some(e=>{try{return t.matches(e)}catch{return!1}})}function ja(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const s=a==="fixed",i=ct(o),l=e?Un(e.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=mt(1);const d=mt(0),m=at(o);if((m||!m&&!s)&&((pt(o)!=="body"||zt(i))&&(c=le(o)),at(o))){const p=Tt(o);u=vt(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x,y:n.y*u.y-c.scrollTop*u.y+d.y}}function Fa(t){return Array.from(t.getClientRects())}function Hn(t){return Tt(ct(t)).left+le(t).scrollLeft}function Ya(t){const e=ct(t),n=le(t),o=t.ownerDocument.body,a=wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Hn(t);const l=-n.scrollTop;return J(o).direction==="rtl"&&(i+=wt(e.clientWidth,o.clientWidth)-a),{width:a,height:s,x:i,y:l}}function Ua(t,e){const n=Z(t),o=ct(t),a=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,c=0;if(a){s=a.width,i=a.height;const u=ve();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function Ha(t,e){const n=Tt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,s=at(t)?vt(t):mt(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=a*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function Wn(t,e,n){let o;if(e==="viewport")o=Ua(t,n);else if(e==="document")o=Ya(ct(t));else if(ut(e))o=Ha(e,n);else{const a=Yn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return se(o)}function Kn(t,e){const n=$t(t);return n===e||!ut(n)||ie(n)?!1:J(n).position==="fixed"||Kn(n,e)}function Wa(t,e){const n=e.get(t);if(n)return n;let o=Gt(t,[],!1).filter(l=>ut(l)&&pt(l)!=="body"),a=null;const s=J(t).position==="fixed";let i=s?$t(t):t;for(;ut(i)&&!ie(i);){const l=J(i),c=$e(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||zt(i)&&!c&&Kn(t,i))?o=o.filter(d=>d!==i):a=l,i=$t(i)}return e.set(t,o),o}function Ka(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const i=[...n==="clippingAncestors"?Wa(e,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,d)=>{const m=Wn(e,d,a);return u.top=wt(m.top,u.top),u.right=Nt(m.right,u.right),u.bottom=Nt(m.bottom,u.bottom),u.left=wt(m.left,u.left),u},Wn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qa(t){const{width:e,height:n}=Fn(t);return{width:e,height:n}}function Za(t,e,n){const o=at(e),a=ct(e),s=n==="fixed",i=Tt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=mt(0);if(o||!o&&!s)if((pt(e)!=="body"||zt(a))&&(l=le(e)),o){const m=Tt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&(c.x=Hn(a));const u=i.left+l.scrollLeft-c.x,d=i.top+l.scrollTop-c.y;return{x:u,y:d,width:i.width,height:i.height}}function qn(t,e){return!at(t)||J(t).position==="fixed"?null:e?e(t):t.offsetParent}function Zn(t,e){const n=Z(t);if(!at(t)||Un(t))return n;let o=qn(t,e);for(;o&&Ia(o)&&J(o).position==="static";)o=qn(o,e);return o&&(pt(o)==="html"||pt(o)==="body"&&J(o).position==="static"&&!$e(o))?n:o||Ra(t)||n}const Xa=async function(t){const e=this.getOffsetParent||Zn,n=this.getDimensions;return{reference:Za(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function Ja(t){return J(t).direction==="rtl"}const Qa={convertOffsetParentRelativeRectToViewportRelativeRect:ja,getDocumentElement:ct,getClippingRect:Ka,getOffsetParent:Zn,getElementRects:Xa,getClientRects:Fa,getDimensions:qa,getScale:vt,isElement:ut,isRTL:Ja};function ts(t,e){let n=null,o;const a=ct(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:m,height:p}=t.getBoundingClientRect();if(l||e(),!m||!p)return;const g=re(d),f=re(a.clientWidth-(u+m)),h=re(a.clientHeight-(d+p)),y=re(u),O={rootMargin:-g+"px "+-f+"px "+-h+"px "+-y+"px",threshold:wt(0,Nt(1,c))||1};let E=!0;function x(N){const C=N[0].intersectionRatio;if(C!==c){if(!E)return i();C?i(!1,C):o=setTimeout(()=>{i(!1,1e-7)},100)}E=!1}try{n=new IntersectionObserver(x,{...O,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,O)}n.observe(t)}return i(!0),s}function es(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=De(t),d=a||s?[...u?Gt(u):[],...Gt(e)]:[];d.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=u&&l?ts(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(e)})),n()}),u&&!c&&g.observe(u),g.observe(e));let f,h=c?Tt(t):null;c&&y();function y(){const S=Tt(t);h&&(S.x!==h.x||S.y!==h.y||S.width!==h.width||S.height!==h.height)&&n(),h=S,f=requestAnimationFrame(y)}return n(),()=>{var S;d.forEach(O=>{a&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),m==null||m(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(f)}}const ns=Ba,rs=Ca,Xn=Da,os=(t,e,n)=>{const o=new Map,a={platform:Qa,...n},s={...a.platform,_c:o};return va(t,e,{...a,platform:s})},Jn=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function as({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),d=r.ref(null),m=r.ref(null),p=r.ref(n??"absolute"),g=r.ref(null),f=()=>{!s.value||!i.value||os(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,d.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:S})=>{S&&Jn(y,S),f()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();g.value=es(s.value,i.value,f,{})}},{flush:"post"});const h=()=>{var y;(y=g.value)==null||y.call(g),g.value=null};return{x:l,y:c,arrowX:u,arrowY:d,placement:m,reference:s,floating:i,strategy:p,update:f}}const ss=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?Xn({element:e.value,padding:n}).fn(o):{}:e?Xn({element:e,padding:n}).fn(o):{}}}},is=["data-placement"],Ce={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:d,strategy:m}=as({placement:e.placement,middleware:[rs(),ns({padding:5}),La(e.offset),ss({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),p=()=>{e.disabled||n.value||(n.value=!0)},g=y=>{n.value&&y&&(n.value=!1)},f=y=>{u.value=y},h={mouseenter:p,mouseleave:g,focus:p,blur:g};return Br(d,y=>{var S;(S=u.value)!=null&&S.contains(y.target)||g()}),(y,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:f,show:p,hide:g,events:h}),r.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:g},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,is)],64))}},ls=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],cs={key:0},us=["colspan"],ds={key:1},fs=["colspan"],Me={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=Je(o,{delay:Mn}),i=e,{t:l}=ot(),c=st("table"),u=r.computed(()=>n.columns),d=r.computed(()=>Object.keys(n.columns).length),m=(p,g)=>{p.sortOrders&&i("sort",{target:g,orders:p.sortOrders})};return(p,g)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(c))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(f,h)=>(r.openBlock(),r.createBlock(Ce,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:y,show:S,hide:O})=>[r.createElementVNode("th",{ref_for:!0,ref:y,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(lt),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)}]),onMouseenter:S,onMouseleave:O,onFocus:S,onBlur:O,onClick:E=>m(f,h),onKeydown:[r.withKeys(r.withModifiers(E=>m(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(E=>m(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(p.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(Ln),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(lt)?(r.openBlock(),r.createBlock(r.unref(Ln),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(ba),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)?(r.openBlock(),r.createBlock(r.unref(ka),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,ls)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(y,S)=>(r.openBlock(),r.createElementBlock("td",{key:S,class:r.normalizeClass([[y.class],{"is-active":S===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(lt),"is-zero":f[S]==0}])},[r.renderSlot(p.$slots,`cell-${S}`,{row:f,prop:S},()=>[r.createTextVNode(r.toDisplayString(f[S]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",cs,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:d.value},[r.renderSlot(p.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,us)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",ds,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:d.value},[r.renderSlot(p.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,fs)])])):r.createCommentVNode("",!0)],2))}},ms={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"},ps=r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),hs=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),gs=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ys=[ps,hs,gs];function bs(t,e){return r.openBlock(),r.createElementBlock("svg",ms,[...ys])}const ws={render:bs},Ss={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=ot(),a=st("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(ws),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Qn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const _t=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return Ae(xt(".",o),e)})},tr=Symbol("ErrorProviderContext"),er=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Qn(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(tr,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},Le=()=>{const t=Ts();return{onError:t.onError,reset:t.reset}},Ts=()=>{const t=r.inject(tr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},_s={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=er();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},ks={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ó"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},As={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"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Os=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Es=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Jo({hu:ks,en:As},t.messages),{translate:n}=kn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Ps(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const xs=Os(Es,[["render",Ps]]),Ns=["src"],$s=["src","title"],kt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=Vr(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Ns)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title},null,10,$s))],64))}}),vs={style:{"text-align":"center"}},Be={__name:"LoadingIndicator",setup(t){const{t:e}=ot();return(n,o)=>(r.openBlock(),r.createElementBlock("div",vs,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Ds({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=tt}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const d=r.unref(t)-1,m=Array.from({length:s.value},(f,h)=>h+1),p=Math.floor(o/2);let g=Math.max(d-p,0);return g+o>=s.value&&(g=Math.max(s.value-o,0)),m.slice(g,g+o)}),l=d=>{const m=r.unref(t)+d;u(m)&&a(m)},c=d=>{u(d)&&a(d)},u=d=>d<=s.value&&d>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Cs={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"},Ms=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Ls=[Ms];function Bs(t,e){return r.openBlock(),r.createElementBlock("svg",Cs,[...Ls])}const Is={render:Bs},Rs={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"},Vs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),zs=[Vs];function Gs(t,e){return r.openBlock(),r.createElementBlock("svg",Rs,[...zs])}const js={render:Gs},Fs=["disabled"],Ys=["disabled"],Us={key:1,class:"is-disabled"},Hs=["disabled","onClick"],Ws={key:2,class:"is-disabled"},Ks=[r.createElementVNode("span",null,"...",-1)],qs=["disabled"],Zs=["disabled"],Xs={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,a=st("paginator"),{page:s,pageCount:i,range:l,goTo:c,pageStep:u}=Ds({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:d=>o("change",d)});return(d,m)=>r.unref(i)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(a))},[r.createElementVNode("button",{type:"button",disabled:r.unref(s)===1,onClick:m[0]||(m[0]=p=>r.unref(u)(-1))},[r.renderSlot(d.$slots,"prev",{},()=>[r.createVNode(r.unref(Is),{class:"icon paginator-left"})])],8,Fs),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(s)===1,onClick:m[1]||(m[1]=p=>r.unref(c)(1))},"1",8,Ys)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Us,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),p=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:p,class:r.normalizeClass({"is-active":p===r.unref(s)}),disabled:p===r.unref(s),onClick:g=>r.unref(c)(p)},r.toDisplayString(p),11,Hs))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Ws,Ks)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[2]||(m[2]=p=>r.unref(c)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,qs)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[3]||(m[3]=r.withModifiers(p=>r.unref(u)(1),["prevent"]))},[r.renderSlot(d.$slots,"next",{},()=>[r.createVNode(r.unref(js),{class:"icon paginator-left"})])],8,Zs)],2)):r.createCommentVNode("",!0)}},Ie={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=st("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ht(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",d="week",m="month",p="quarter",g="year",f="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+)?$/,S=/\[([^\]]+)]|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,O={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(P){var A=["th","st","nd","rd"],T=P%100;return"["+P+(A[(T-20)%10]||A[T]||A[0])+"]"}},E=function(P,A,T){var _=String(P);return!_||_.length>=A?P:""+Array(A+1-_.length).join(T)+P},x={s:E,z:function(P){var A=-P.utcOffset(),T=Math.abs(A),_=Math.floor(T/60),k=T%60;return(A<=0?"+":"-")+E(_,2,"0")+":"+E(k,2,"0")},m:function P(A,T){if(A.date()<T.date())return-P(T,A);var _=12*(T.year()-A.year())+(T.month()-A.month()),k=A.clone().add(_,m),v=T-k<0,$=A.clone().add(_+(v?-1:1),m);return+(-(_+(T-k)/(v?k-$:$-k))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:g,w:d,d:u,D:f,h:c,m:l,s:i,ms:s,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},N="en",C={};C[N]=O;var I="$isDayjsObject",z=function(P){return P instanceof Y||!(!P||!P[I])},F=function P(A,T,_){var k;if(!A)return N;if(typeof A=="string"){var v=A.toLowerCase();C[v]&&(k=v),T&&(C[v]=T,k=v);var $=A.split("-");if(!k&&$.length>1)return P($[0])}else{var L=A.name;C[L]=A,k=L}return!_&&k&&(N=k),k||!_&&N},M=function(P,A){if(z(P))return P.clone();var T=typeof A=="object"?A:{};return T.date=P,T.args=arguments,new Y(T)},D=x;D.l=F,D.i=z,D.w=function(P,A){return M(P,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var Y=function(){function P(T){this.$L=F(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[I]=!0}var A=P.prototype;return A.parse=function(T){this.$d=function(_){var k=_.date,v=_.utc;if(k===null)return new Date(NaN);if(D.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var $=k.match(y);if($){var L=$[2]-1||0,j=($[7]||"0").substring(0,3);return v?new Date(Date.UTC($[1],L,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],L,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(k)}(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return D},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(T,_){var k=M(T);return this.startOf(_)<=k&&k<=this.endOf(_)},A.isAfter=function(T,_){return M(T)<this.startOf(_)},A.isBefore=function(T,_){return this.endOf(_)<M(T)},A.$g=function(T,_,k){return D.u(T)?this[_]:this.set(k,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,_){var k=this,v=!!D.u(_)||_,$=D.p(T),L=function(Et,q){var gt=D.w(k.$u?Date.UTC(k.$y,q,Et):new Date(k.$y,q,Et),k);return v?gt:gt.endOf(u)},j=function(Et,q){return D.w(k.toDate()[Et].apply(k.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(q)),k)},H=this.$W,K=this.$M,Q=this.$D,Dt="set"+(this.$u?"UTC":"");switch($){case g:return v?L(1,0):L(31,11);case m:return v?L(1,K):L(0,K+1);case d:var Ot=this.$locale().weekStart||0,Yt=(H<Ot?H+7:H)-Ot;return L(v?Q-Yt:Q+(6-Yt),K);case u:case f:return j(Dt+"Hours",0);case c:return j(Dt+"Minutes",1);case l:return j(Dt+"Seconds",2);case i:return j(Dt+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,_){var k,v=D.p(T),$="set"+(this.$u?"UTC":""),L=(k={},k[u]=$+"Date",k[f]=$+"Date",k[m]=$+"Month",k[g]=$+"FullYear",k[c]=$+"Hours",k[l]=$+"Minutes",k[i]=$+"Seconds",k[s]=$+"Milliseconds",k)[v],j=v===u?this.$D+(_-this.$W):_;if(v===m||v===g){var H=this.clone().set(f,1);H.$d[L](j),H.init(),this.$d=H.set(f,Math.min(this.$D,H.daysInMonth())).$d}else L&&this.$d[L](j);return this.init(),this},A.set=function(T,_){return this.clone().$set(T,_)},A.get=function(T){return this[D.p(T)]()},A.add=function(T,_){var k,v=this;T=Number(T);var $=D.p(_),L=function(K){var Q=M(v);return D.w(Q.date(Q.date()+Math.round(K*T)),v)};if($===m)return this.set(m,this.$M+T);if($===g)return this.set(g,this.$y+T);if($===u)return L(1);if($===d)return L(7);var j=(k={},k[l]=o,k[c]=a,k[i]=n,k)[$]||1,H=this.$d.getTime()+T*j;return D.w(H,this)},A.subtract=function(T,_){return this.add(-1*T,_)},A.format=function(T){var _=this,k=this.$locale();if(!this.isValid())return k.invalidDate||h;var v=T||"YYYY-MM-DDTHH:mm:ssZ",$=D.z(this),L=this.$H,j=this.$m,H=this.$M,K=k.weekdays,Q=k.months,Dt=k.meridiem,Ot=function(q,gt,Ut,ue){return q&&(q[gt]||q(_,v))||Ut[gt].slice(0,ue)},Yt=function(q){return D.s(L%12||12,q,"0")},Et=Dt||function(q,gt,Ut){var ue=q<12?"AM":"PM";return Ut?ue.toLowerCase():ue};return v.replace(S,function(q,gt){return gt||function(Ut){switch(Ut){case"YY":return String(_.$y).slice(-2);case"YYYY":return D.s(_.$y,4,"0");case"M":return H+1;case"MM":return D.s(H+1,2,"0");case"MMM":return Ot(k.monthsShort,H,Q,3);case"MMMM":return Ot(Q,H);case"D":return _.$D;case"DD":return D.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Ot(k.weekdaysMin,_.$W,K,2);case"ddd":return Ot(k.weekdaysShort,_.$W,K,3);case"dddd":return K[_.$W];case"H":return String(L);case"HH":return D.s(L,2,"0");case"h":return Yt(1);case"hh":return Yt(2);case"a":return Et(L,j,!0);case"A":return Et(L,j,!1);case"m":return String(j);case"mm":return D.s(j,2,"0");case"s":return String(_.$s);case"ss":return D.s(_.$s,2,"0");case"SSS":return D.s(_.$ms,3,"0");case"Z":return $}return null}(q)||$.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,_,k){var v,$=this,L=D.p(_),j=M(T),H=(j.utcOffset()-this.utcOffset())*o,K=this-j,Q=function(){return D.m($,j)};switch(L){case g:v=Q()/12;break;case m:v=Q();break;case p:v=Q()/3;break;case d:v=(K-H)/6048e5;break;case u:v=(K-H)/864e5;break;case c:v=K/a;break;case l:v=K/o;break;case i:v=K/n;break;default:v=K}return k?v:D.a(v)},A.daysInMonth=function(){return this.endOf(m).$D},A.$locale=function(){return C[this.$L]},A.locale=function(T,_){if(!T)return this.$L;var k=this.clone(),v=F(T,_,!0);return v&&(k.$L=v),k},A.clone=function(){return D.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},P}(),nt=Y.prototype;return M.prototype=nt,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",g],["$D",f]].forEach(function(P){nt[P[1]]=function(A){return this.$g(A,P[0],P[1])}}),M.extend=function(P,A){return P.$i||(P(A,Y,M),P.$i=!0),M},M.locale=F,M.isDayjs=z,M.unix=function(P){return M(1e3*P)},M.en=C[N],M.Ls=C,M.p={},M})})(nr);var rr=nr.exports;const U=ht(rr);var or={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},c.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var d=c.init;c.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 d.call(this)};var m=c.utcOffset;c.utcOffset=function(h,y){var S=this.$utils().u;if(S(h))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof h=="string"&&(h=function(N){N===void 0&&(N="");var C=N.match(o);if(!C)return null;var I=(""+C[0]).match(a)||["-",0,0],z=I[0],F=60*+I[1]+ +I[2];return F===0?0:z==="+"?F:-F}(h),h===null))return this;var O=Math.abs(h)<=16?60*h:h,E=this;if(y)return E.$offset=O,E.$u=h===0,E;if(h!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(O+x,n)).$offset=O,E.$x.$localOffset=x}else E=this.utc();return E};var p=c.format;c.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},c.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var f=c.diff;c.diff=function(h,y,S){if(h&&this.$u===h.$u)return f.call(this,h,y,S);var O=this.local(),E=l(h).local();return f.call(O,E,y,S)}}})})(or);var Js=or.exports;const Qs=ht(Js);var ar={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(p,g,f){f===void 0&&(f={});var h=new Date(p),y=function(S,O){O===void 0&&(O={});var E=O.timeZoneName||"short",x=S+"|"+E,N=o[x];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[x]=N),N}(g,f);return y.formatToParts(h)},u=function(p,g){for(var f=c(p,g),h=[],y=0;y<f.length;y+=1){var S=f[y],O=S.type,E=S.value,x=n[O];x>=0&&(h[x]=parseInt(E,10))}var N=h[3],C=N===24?0:N,I=h[0]+"-"+h[1]+"-"+h[2]+" "+C+":"+h[4]+":"+h[5]+":000",z=+p;return(i.utc(I).valueOf()-(z-=z%1e3))/6e4},d=s.prototype;d.tz=function(p,g){p===void 0&&(p=l);var f=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),S=Math.round((h-new Date(y))/1e3/60),O=i(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-S,!0);if(g){var E=O.utcOffset();O=O.add(f-E,"minute")}return O.$x.$timezone=p,O},d.offsetName=function(p){var g=this.$x.$timezone||i.tz.guess(),f=c(this.valueOf(),g,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return f&&f.value};var m=d.startOf;d.startOf=function(p,g){if(!this.$x||!this.$x.$timezone)return m.call(this,p,g);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(f,p,g).tz(this.$x.$timezone,!0)},i.tz=function(p,g,f){var h=f&&g,y=f||g||l,S=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var O=function(C,I,z){var F=C-60*I*1e3,M=u(F,z);if(I===M)return[F,I];var D=u(F-=60*(M-I)*1e3,z);return M===D?[F,M]:[C-60*Math.min(M,D)*1e3,Math.max(M,D)]}(i.utc(p,h).valueOf(),S,y),E=O[0],x=O[1],N=i(E).utcOffset(x);return N.$x.$timezone=y,N},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(ar);var ti=ar.exports;const ei=ht(ti);var sr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(d)}}})})(sr);var ni=sr.exports;const ri=ht(ni);var ir={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(ir);var oi=ir.exports;const ai=ht(oi);var lr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),d=a(i),m=(c=c||"()")[0]==="(",p=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(lr);var si=lr.exports;const ii=ht(si);var cr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(m,p){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,f,h){var y=h&&h.toUpperCase();return f||p[h]||n[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,O,E){return O||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(cr);var li=cr.exports;const ci=ht(li);var ur={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,m,p){return s.fromToBase(u,d,m,p)}a.en.relativeTime=i,s.fromToBase=function(u,d,m,p,g){for(var f,h,y,S=m.$locale().relativeTime||i,O=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=O.length,x=0;x<E;x+=1){var N=O[x];N.d&&(f=p?a(u).diff(m,N.d,!0):m.diff(u,N.d,!0));var C=(n.rounding||Math.round)(Math.abs(f));if(y=f>0,C<=N.r||!N.r){C<=1&&x>0&&(N=O[x-1]);var I=S[N.l];g&&(C=g(""+C)),h=typeof I=="string"?I.replace("%d",C):I(C,d,N.l,y);break}}if(d)return h;var z=y?S.future:S.past;return typeof z=="function"?z(h):z.replace("%s",h)},s.to=function(u,d){return l(u,d,this,!0)},s.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(ur);var ui=ur.exports;const di=ht(ui);var fi={exports:{}};(function(t,e){(function(n,o){t.exports=o(rr)})(dt,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(fi),U.extend(Qs),U.extend(ei),U.extend(ri),U.extend(di),U.extend(ci),U.extend(ai),U.extend(ii);const dr=()=>U.tz.guess(),At=(t="",e="",n="",o="hu")=>(n=n||U.tz.guess(),U(t).isValid()?U(t).tz(n).locale(o).format(e):""),jt=(t="",e="",n="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(mi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},mi=t=>Dn.get(t),Re=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},fr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},mr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Ve=(t,e="day")=>U().isSameOrBefore(U(t),e),pi=(t,e,n)=>U(t).isBetween(e,U(n)),hi=(t,e,n="month")=>U(t).isSame(e,n),gi=(t,e="hu")=>U(t).locale(e).toNow(!0),yi=["onClick"],bi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,{t:a}=ot(),s=st("timezone-selector"),i=r.computed(()=>jt(new Date,null,n.locale)),l=dr(),c=r.computed(()=>Array.from(Cn.values()).map(d=>({...d,isActive:jt(new Date,n.currentZone,n.locale)===jt(new Date,d.timezone,n.locale),zoneOffsetName:jt(new Date,d.timezone,n.locale)}))),u=d=>o("change",d);return(d,m)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(s))},[r.createVNode(r.unref(On),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=r.withModifiers(p=>u(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,p=>(r.openBlock(),r.createElementBlock("a",{key:p.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":p.isActive}),onClick:r.withModifiers(g=>u(p.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${p.countryLabelKey}`))+" ("+r.toDisplayString(p.zoneOffsetName)+") ",11,yi))),128))],2))}},ze=(t,e="",n={})=>{const o=r.ref(""),{t:a}=ot(),s=r.computed(()=>{if(r.unref(e))try{const c=pr(r.unref(t),r.unref(e));return Qo(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>ft(i,s.value)),error:o}},pr=(t,e="")=>{const n=ft(ee,xt(",",e)),o=bt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},hr=async(t,e,n)=>{const o=`${En}${r.unref(t)}?${wi(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Si(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},wi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Si=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Ti=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>Ve(u,"day");return Ke(n,()=>{if(!a)return;const u=zo(wn(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},_i=({options:t={},transform:e=a=>a,onError:n=tt,onSuccess:o=tt})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:d,isLoading:m,execute:p}=Xe(()=>hr(a,s,r.unref(i)).then(g=>e(g)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:d,isLoading:m,execute:p}};/*! *****************************************************************************
|
|
8
|
+
var MjszVbrElementsCore=function(w,r){"use strict";var Ar={VITE_VBR_API_URL:"https://api.icehockey.hu/vbr",VITE_VBR_API_KEY:"",VITE_USER_NODE_ENV:"production",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const it=t=>(Ar.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,He={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=it("base-input"),s=r.computed({get:()=>n.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:r.normalizeClass([r.unref(a),"is-select"])},[r.renderSlot(i.$slots,"default")],2)),[[r.vModelSelect,s.value]])}};function We(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function rt(t){return typeof t=="function"?t():r.unref(t)}const Wt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Or=Object.prototype.toString,Er=t=>Or.call(t)==="[object Object]",Q=()=>{},Pr=xr();function xr(){var t,e;return Wt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Nr(t,e){function n(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return n}const Ke=t=>t();function vr(t=Ke){const e=r.ref(!0);function n(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:r.readonly(e),pause:n,resume:o,eventFilter:a}}function de(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function $r(t,e,n={}){const{eventFilter:o=Ke,...a}=n;return r.watch(t,Nr(o,e),a)}function Dr(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=vr(o);return{stop:$r(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function fe(t,e=!1){function n(m,{flush:p="sync",deep:g=!1,timeout:f,throwOnTimeout:h}={}){let y=null;const O=[new Promise(E=>{y=r.watch(t,x=>{m(x)!==e&&(y==null||y(),E(x))},{flush:p,deep:g,immediate:!0})})];return f!=null&&O.push(de(f,h).then(()=>rt(t)).finally(()=>y==null?void 0:y())),Promise.race(O)}function o(m,p){if(!r.isRef(m))return n(x=>x===m,p);const{flush:g="sync",deep:f=!1,timeout:h,throwOnTimeout:y}=p??{};let S=null;const E=[new Promise(x=>{S=r.watch([t,m],([N,C])=>{e!==(N===C)&&(S==null||S(),x(N))},{flush:g,deep:f,immediate:!0})})];return h!=null&&E.push(de(h,y).then(()=>rt(t)).finally(()=>(S==null||S(),rt(t)))),Promise.race(E)}function a(m){return n(p=>!!p,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,p){return n(g=>{const f=Array.from(g);return f.includes(m)||f.includes(rt(m))},p)}function u(m){return d(1,m)}function d(m=1,p){let g=-1;return n(()=>(g+=1,g>=m),p)}return Array.isArray(rt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return fe(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:d,get not(){return fe(t,!e)}}}function Cr(t){return fe(t)}function Mr(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},rt(e))}return o&&(a.value=!0,Wt&&c()),We(l),{isPending:r.readonly(a),start:c,stop:l}}function qe(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function Lr(t,e,n){const o=r.watch(t,(a,s,i)=>{a&&(n!=null&&n.once&&r.nextTick(()=>o()),e(a,s,i))},{...n,once:!1});return o}function Pt(t){var e;const n=rt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Ze=Wt?window:void 0,Br=Wt?window.document:void 0;function Kt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Ze):[e,n,o,a]=t,!e)return Q;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,m,p,g)=>(d.addEventListener(m,p,g),()=>d.removeEventListener(m,p,g)),c=r.watch(()=>[Pt(e),rt(a)],([d,m])=>{if(i(),!d)return;const p=Er(m)?{...m}:m;s.push(...n.flatMap(g=>o.map(f=>l(d,g,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return We(u),u}let Xe=!1;function Ir(t,e,n={}){const{window:o=Ze,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return Q;Pr&&!Xe&&(Xe=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",Q)),o.document.documentElement.addEventListener("click",Q));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(f=>f===p.target||p.composedPath().includes(f));{const f=Pt(g);return f&&(p.target===f||p.composedPath().includes(f))}}),d=[Kt(o,"click",p=>{const g=Pt(t);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:s}),Kt(o,"pointerdown",p=>{const g=Pt(t);l=!c(p)&&!!(g&&!p.composedPath().includes(g))},{passive:!0}),i&&Kt(o,"blur",p=>{setTimeout(()=>{var g;const f=Pt(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&e(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function Je(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=Q,onSuccess:i=Q,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},d=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),p=r.ref(!1),g=r.shallowRef(void 0);async function f(S=0,...O){l&&(d.value=e),g.value=void 0,m.value=!1,p.value=!0,S>0&&await de(S);const E=typeof t=="function"?t(...O):t;try{const x=await E;d.value=x,m.value=!0,i(x)}catch(x){if(g.value=x,s(x),u)throw x}finally{p.value=!1}return d.value}o&&f(a);const h={state:d,isReady:m,isLoading:p,error:g,execute:f};function y(){return new Promise((S,O)=>{Cr(p).toBe(!1).then(()=>S(h)).catch(O)})}return{...h,then(S,O){return y().then(S,O)}}}function Rr(t={}){const{document:e=Br}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Kt(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}async function Vr(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:d}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),d&&(o.referrerPolicy=d),o.onload=()=>e(o),o.onerror=n})}function zr(t,e={}){const n=Je(()=>Vr(rt(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>rt(t),()=>n.execute(e.delay),{deep:!0}),n}function Qe(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=Mr(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}const Gr={"@@functional/placeholder":!0};function V(t){return t===Gr}function G(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function R(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return V(n)?e:G(function(a){return t(n,a)});default:return V(n)&&V(o)?e:V(n)?G(function(a){return t(a,o)}):V(o)?G(function(a){return t(n,a)}):t(n,o)}}}function qt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,d){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,d,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function me(t,e,n){return function(){for(var o=[],a=0,s=t,i=0,l=!1;i<e.length||a<arguments.length;){var c;i<e.length&&(!V(e[i])||a>=arguments.length)?c=e[i]:(c=arguments[a],a+=1),o[i]=c,V(c)?l=!0:s-=1,i+=1}return!l&&s<=0?n.apply(this,o):qt(Math.max(0,s),me(t,o,n))}}var Mt=R(function(e,n){return e===1?G(n):qt(e,me(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:R(function(s,i){return t(n,s,i)});case 2:return V(n)&&V(o)?e:V(n)?R(function(s,i){return t(s,o,i)}):V(o)?R(function(s,i){return t(n,s,i)}):G(function(s){return t(n,o,s)});default:return V(n)&&V(o)&&V(a)?e:V(n)&&V(o)?R(function(s,i){return t(s,i,a)}):V(n)&&V(a)?R(function(s,i){return t(s,o,i)}):V(o)&&V(a)?R(function(s,i){return t(n,s,i)}):V(n)?G(function(s){return t(s,o,a)}):V(o)?G(function(s){return t(n,s,a)}):V(a)?G(function(s){return t(n,o,s)}):t(n,o,a)}}}const Lt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function jr(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Bt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!Lt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(jr(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function pe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function tn(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function en(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function Fr(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function tt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Yr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const he=typeof Object.is=="function"?Object.is:Yr;var nn=Object.prototype.toString,rn=function(){return nn.call(arguments)==="[object Arguments]"?function(e){return nn.call(e)==="[object Arguments]"}:function(e){return tt("callee",e)}}(),Ur=!{toString:null}.propertyIsEnumerable("toString"),on=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],an=function(){return arguments.propertyIsEnumerable("length")}(),Hr=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},bt=G(typeof Object.keys=="function"&&!an?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=an&&rn(e);for(n in e)tt(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Ur)for(o=on.length-1;o>=0;)n=on[o],tt(n,e)&&!Hr(a,n)&&(a[a.length]=n),o-=1;return a}),ge=G(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function sn(t,e,n,o){var a=tn(t),s=tn(e);function i(l,c){return ye(l,c,n.slice(),o.slice())}return!en(function(l,c){return!en(i,c,l)},s,a)}function ye(t,e,n,o){if(he(t,e))return!0;var a=ge(t);if(a!==ge(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Fr(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&he(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!he(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:sn(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:sn(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=bt(t);if(i.length!==bt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(tt(u,e)&&ye(e[u],t[u],l,c)))return!1;s-=1}return!0}var Zt=R(function(e,n){return ye(e,n,[],[])});function Wr(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Zt(t[n],e))return n;n+=1}return-1}function ln(t,e){return Wr(e,t,0)>=0}function Xt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function be(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 It=function(e){return(e<10?"0":"")+e},Kr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+It(e.getUTCMonth()+1)+"-"+It(e.getUTCDate())+"T"+It(e.getUTCHours())+":"+It(e.getUTCMinutes())+":"+It(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function qr(t){return function(){return!t.apply(this,arguments)}}function cn(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Zr(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Jt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Xr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Jr(t){return function(e){return new Xr(t,e)}}var we=R(Bt(["fantasy-land/filter","filter"],Jr,function(t,e){return Jt(e)?cn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},bt(e)):Zr(t,e)})),Qr=R(function(e,n){return we(qr(e),n)});function un(t,e){var n=function(i){var l=e.concat([t]);return ln(i,l)?"<Circular>":un(i,l)},o=function(s,i){return Xt(function(l){return be(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Xt(n,t).join(", ")+"))";case"[object Array]":return"["+Xt(n,t).concat(o(t,Qr(function(s){return/^\d+$/.test(s)},bt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):be(Kr(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":be(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,bt(t)).join(", ")+"}"}}var Se=G(function(e){return un(e,[])}),to=R(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=Se(e),l=o(i,Se(n));return l!==void 0&&l===i?e:n}),eo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),no=function(e){return function(n){return new eo(e,n)}},ft=R(Bt(["fantasy-land/map","map"],no,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Mt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return cn(function(o,a){return o[a]=e(n[a]),o},{},bt(n));default:return Xt(e,n)}}));const Qt=Number.isInteger||function(e){return e<<0===e};function te(t){return Object.prototype.toString.call(t)==="[object String]"}function dn(t,e){var n=t<0?e.length+t:t;return te(e)?e.charAt(n):e[n]}var lt=R(function(e,n){if(n!=null)return Qt(e)?dn(e,n):n[e]}),ro=R(function(e,n){return ft(lt(e),n)}),oo=G(function(e){return Lt(e)?!0:!e||typeof e!="object"||te(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),fn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ao(t,e,n){return function(a,s,i){if(oo(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[fn]!=null)return n(a,s,i[fn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function so(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var io=R(function(e,n){return qt(e.length,function(){return e.apply(n,arguments)})});function lo(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function co(t,e,n,o){return t["@@transducer/result"](n[o](io(t["@@transducer/step"],t),e))}var mn=ao(so,co,lo),uo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function pn(t){return new uo(t)}var hn=X(function(t,e,n){return mn(typeof t=="function"?pn(t):t,e,n)}),gn=G(function(e){return function(){return e}}),fo=G(function(e){return Mt(hn(to,0,ro("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),Te=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});function mo(t,e,n){if(Qt(t)&&Lt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var po=G(function(e){return e==null}),ho=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!po(o)&&tt(a,o)&&typeof o[a]=="object"?o[a]:Qt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return mo(a,n,o)}),go=X(function(e,n,o){return ho([e],n,o)});function yo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function bo(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 yn(t,e,n){if(n||(n=new So),wo(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=t[l]);return s};switch(ge(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return bo(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 wo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var So=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){var o=this.hash(e),a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){var n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(var n in this.map)for(var i=this.map[n],o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}return}var s=this.hash(e),i=this.map[s];if(i)for(var o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}},t}();function To(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function _e(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return Lt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var _o=X(_e("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),ko=G(_e("tail",_o(1,1/0)));function ee(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return qt(arguments[0].length,hn(To,arguments[0],ko(arguments)))}var Ao=G(function(e){return te(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function bn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ee.apply(this,Ao(arguments))}var Oo=G(function(e){return Mt(e.length,e)}),Eo=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(tt(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,yn(this.valueAcc)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Po(t,e,n){return function(o){return new Eo(t,e,n,o)}}var xo=me(4,[],Bt([],Po,function(e,n,o,a){var s=pn(function(i,l){var c=o(l),u=e(tt(c,i)?i[c]:yn(n),l);return u&&u["@@transducer/reduced"]?pe(i):(i[c]=u,i)});return mn(s,{},a)})),No=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});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 $o=G(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():Lt(e)?[]:te(e)?"":Jt(e)?{}:rn(e)?function(){return arguments}():vo(e)?e.constructor.from(""):void 0}),Do=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=pe(this.xf["@@transducer/step"](e,n))),e},t}();function Co(t){return function(e){return new Do(t,e)}}var Mo=R(Bt(["find"],Co,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),Lo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=pe(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Bo(t){return function(e){return new Lo(t,e)}}var Io=R(Bt([],Bo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),Ro=R(_e("groupBy",xo(function(t,e){return t.push(e),t},[]))),Vo=X(function(e,n,o){return Mt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})}),zo=R(ln),wn=R(function(e,n){return Mt(e+1,function(){var o=arguments[e];if(o!=null&&yo(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Se(o)+' does not have a method named "'+n+'"')})}),Go=G(function(e){return e!=null&&Zt(e,$o(e))}),jo=R(function(e,n){return function(o){return function(a){return ft(function(s){return n(s,a)},o(e(a)))}}});function Fo(t,e){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;var a=t[o];Qt(a)?n=dn(a,n):n=n[a]}return n}var Yo=G(function(e){return jo(lt(e),go(e))}),Uo=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)tt(s,n)&&(a[s]=tt(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)tt(s,o)&&!tt(s,a)&&(a[s]=o[s]);return a}),Ho=X(function t(e,n,o){return Uo(function(a,s,i){return Jt(s)&&Jt(i)?t(e,s,i):e(a,s,i)},n,o)}),Wo=R(function(e,n){return Ho(function(o,a,s){return s},e,n)}),Ko=R(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),Sn=function(t){return{value:t,map:function(e){return Sn(e(t))}}},qo=X(function(e,n,o){return e(function(a){return Sn(n(a))})(o).value}),ke=R(Fo),Tn=X(function(e,n,o){return e(lt(n,o))}),Zo=X(function(e,n,o){return o.replace(e,n)}),Xo=R(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),_n=R(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})}),xt=wn(1,"split"),kn=wn(0,"toLowerCase"),Rt=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,Jo="",Qo=typeof String.prototype.trim=="function",ne=G(!Qo||Rt.trim()||!Jo.trim()?function(e){var n=new RegExp("^["+Rt+"]["+Rt+"]*"),o=new RegExp("["+Rt+"]["+Rt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const An=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""}),On=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(c,u={})=>{const d=!Go(u),m=ft(ne,xt(".",c));return r.computed(()=>{const g=En(m);return d?ea(g,u):g}).value},a=c=>{const u=ft(ne,xt(".",c));return!!Ae(W.locale,u,W.messages)},s=c=>{W.locale=c},l={locale:r.computed({get(){return W.locale},set(c){W.locale=c}}),setLocale:s,translate:o,hasTranslation:a};return r.provide(An,l),{translate:o}},ot=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=ta();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},ta=()=>{const t=r.inject(An,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},En=(t=[])=>{let e=Ae(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Ae(W.fallbackLocale,t,W.messages)),e||t.join(".")};function Ae(t,e,n){return ke([t,...e],n)}const ea=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},Pn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=ft(ne,xt(".",t.path)),o=En(n),a=xt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),xn="https://api.icehockey.hu/vbr",Nn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",vn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",$n="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Dn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Cn="https://api.icehockey.hu/static/api/flag",ct="original",b="descend",B="ascend",Mn=new Map().set("hu","hu-hu").set("en","hu-gb"),Ln=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),na=1e3*60*5,Bn=1e3,ra={"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"},oa=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),aa=[oa];function sa(t,e){return r.openBlock(),r.createElementBlock("svg",ra,[...aa])}const In={render:sa},ia={"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"},la=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ca=[la];function ua(t,e){return r.openBlock(),r.createElementBlock("svg",ia,[...ca])}const da={render:ua},fa={"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"},ma=r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),pa=[ma];function ha(t,e){return r.openBlock(),r.createElementBlock("svg",fa,[...pa])}const ga={render:ha},Nt=Math.min,wt=Math.max,re=Math.round,oe=Math.floor,mt=t=>({x:t,y:t}),ya={left:"right",right:"left",bottom:"top",top:"bottom"},ba={start:"end",end:"start"};function Oe(t,e,n){return wt(t,Nt(e,n))}function Vt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function zt(t){return t.split("-")[1]}function Rn(t){return t==="x"?"y":"x"}function Ee(t){return t==="y"?"height":"width"}function ae(t){return["top","bottom"].includes(St(t))?"y":"x"}function Pe(t){return Rn(ae(t))}function wa(t,e,n){n===void 0&&(n=!1);const o=zt(t),a=Pe(t),s=Ee(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=se(i)),[i,se(i)]}function Sa(t){const e=se(t);return[xe(t),e,xe(e)]}function xe(t){return t.replace(/start|end/g,e=>ba[e])}function Ta(t,e,n){const o=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:o:e?o:a;case"left":case"right":return e?s:i;default:return[]}}function _a(t,e,n,o){const a=zt(t);let s=Ta(St(t),n==="start",o);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map(xe)))),s}function se(t){return t.replace(/left|right|bottom|top/g,e=>ya[e])}function ka(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vn(t){return typeof t!="number"?ka(t):{top:t,right:t,bottom:t,left:t}}function ie(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function zn(t,e,n){let{reference:o,floating:a}=t;const s=ae(e),i=Pe(e),l=Ee(i),c=St(e),u=s==="y",d=o.x+o.width/2-a.width/2,m=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:m};break;case"left":g={x:o.x-a.width,y:m};break;default:g={x:o.x,y:o.y}}switch(zt(e)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const Aa=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:m}=zn(u,o,c),p=o,g={},f=0;for(let h=0;h<l.length;h++){const{name:y,fn:S}=l[h],{x:O,y:E,data:x,reset:N}=await S({x:d,y:m,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:u,platform:i,elements:{reference:t,floating:e}});d=O??d,m=E??m,g={...g,[y]:{...g[y],...x}},N&&f<=50&&(f++,typeof N=="object"&&(N.placement&&(p=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):N.rects),{x:d,y:m}=zn(u,p,c)),h=-1)}return{x:d,y:m,placement:p,strategy:a,middlewareData:g}};async function Gn(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Vt(e,t),f=Vn(g),y=l[p?m==="floating"?"reference":"floating":m],S=ie(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),O=m==="floating"?{...i.floating,x:o,y:a}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},N=ie(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-N.top+f.top)/x.y,bottom:(N.bottom-S.bottom+f.bottom)/x.y,left:(S.left-N.left+f.left)/x.x,right:(N.right-S.right+f.right)/x.x}}const Oa=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:a,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=Vt(t,e)||{};if(u==null)return{};const m=Vn(d),p={x:n,y:o},g=Pe(a),f=Ee(g),h=await i.getDimensions(u),y=g==="y",S=y?"top":"left",O=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[g]-p[g]-s.floating[f],N=p[g]-s.reference[g],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let I=C?C[E]:0;(!I||!await(i.isElement==null?void 0:i.isElement(C)))&&(I=l.floating[E]||s.floating[f]);const z=x/2-N/2,F=I/2-h[f]/2-1,M=Nt(m[S],F),D=Nt(m[O],F),Y=M,nt=I-h[f]-D,P=I/2-h[f]/2+z,A=Oe(Y,P,nt),T=!c.arrow&&zt(a)!=null&&P!==A&&s.reference[f]/2-(P<Y?M:D)-h[f]/2<0,_=T?P<Y?P-Y:P-nt:0;return{[g]:p[g]+_,data:{[g]:A,centerOffset:P-A-_,...T&&{alignmentOffset:_}},reset:T}}}),Ea=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:a,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...y}=Vt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=St(a),O=St(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(O||!h?[se(l)]:Sa(l));!p&&f!=="none"&&x.push(..._a(l,h,f,E));const N=[l,...x],C=await Gn(e,y),I=[];let z=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&I.push(C[S]),m){const Y=wa(a,i,E);I.push(C[Y[0]],C[Y[1]])}if(z=[...z,{placement:a,overflows:I}],!I.every(Y=>Y<=0)){var F,M;const Y=(((F=s.flip)==null?void 0:F.index)||0)+1,nt=N[Y];if(nt)return{data:{index:Y,overflows:z},reset:{placement:nt}};let P=(M=z.filter(A=>A.overflows[0]<=0).sort((A,T)=>A.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!P)switch(g){case"bestFit":{var D;const A=(D=z.map(T=>[T.placement,T.overflows.filter(_=>_>0).reduce((_,k)=>_+k,0)]).sort((T,_)=>T[1]-_[1])[0])==null?void 0:D[0];A&&(P=A);break}case"initialPlacement":P=l;break}if(a!==P)return{reset:{placement:P}}}return{}}}};async function Pa(t,e){const{placement:n,platform:o,elements:a}=t,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=St(n),l=zt(n),c=ae(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&c?-1:1,m=Vt(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:f}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof f=="number"&&(g=l==="end"?f*-1:f),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const xa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:a,y:s,placement:i,middlewareData:l}=e,c=await Pa(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},Na=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:S,y:O}=y;return{x:S,y:O}}},...c}=Vt(t,e),u={x:n,y:o},d=await Gn(e,c),m=ae(St(a)),p=Rn(m);let g=u[p],f=u[m];if(s){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",O=g+d[y],E=g-d[S];g=Oe(O,g,E)}if(i){const y=m==="y"?"top":"left",S=m==="y"?"bottom":"right",O=f+d[y],E=f-d[S];f=Oe(O,f,E)}const h=l.fn({...e,[p]:g,[m]:f});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function vt(t){return jn(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ut(t){var e;return(e=(jn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function jn(t){return t instanceof Node||t instanceof Z(t).Node}function at(t){return t instanceof Element||t instanceof Z(t).Element}function st(t){return t instanceof HTMLElement||t instanceof Z(t).HTMLElement}function Fn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function Gt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function va(t){return["table","td","th"].includes(vt(t))}function Ne(t){const e=ve(),n=et(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function $a(t){let e=pt(t);for(;st(e)&&!$t(e);){if(Ne(e))return e;e=pt(e)}return null}function ve(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(t){return["html","body","#document"].includes(vt(t))}function et(t){return Z(t).getComputedStyle(t)}function le(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pt(t){if(vt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Fn(t)&&t.host||ut(t);return Fn(e)?e.host:e}function Yn(t){const e=pt(t);return $t(e)?t.ownerDocument?t.ownerDocument.body:t.body:st(e)&&Gt(e)?e:Yn(e)}function jt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Yn(t),s=a===((o=t.ownerDocument)==null?void 0:o.body),i=Z(a);return s?e.concat(i,i.visualViewport||[],Gt(a)?a:[],i.frameElement&&n?jt(i.frameElement):[]):e.concat(a,jt(a,[],n))}function Un(t){const e=et(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=st(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=re(n)!==s||re(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function $e(t){return at(t)?t:t.contextElement}function Dt(t){const e=$e(t);if(!st(e))return mt(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:s}=Un(e);let i=(s?re(n.width):n.width)/o,l=(s?re(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Da=mt(0);function Hn(t){const e=Z(t);return!ve()||!e.visualViewport?Da:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ca(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function Tt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=$e(t);let i=mt(1);e&&(o?at(o)&&(i=Dt(o)):i=Dt(t));const l=Ca(s,n,o)?Hn(s):mt(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,d=a.width/i.x,m=a.height/i.y;if(s){const p=Z(s),g=o&&at(o)?Z(o):o;let f=p,h=f.frameElement;for(;h&&o&&g!==f;){const y=Dt(h),S=h.getBoundingClientRect(),O=et(h),E=S.left+(h.clientLeft+parseFloat(O.paddingLeft))*y.x,x=S.top+(h.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,m*=y.y,c+=E,u+=x,f=Z(h),h=f.frameElement}}return ie({width:d,height:m,x:c,y:u})}const Ma=[":popover-open",":modal"];function De(t){return Ma.some(e=>{try{return t.matches(e)}catch{return!1}})}function La(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const s=a==="fixed",i=ut(o),l=e?De(e.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=mt(1);const d=mt(0),m=st(o);if((m||!m&&!s)&&((vt(o)!=="body"||Gt(i))&&(c=le(o)),st(o))){const p=Tt(o);u=Dt(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x,y:n.y*u.y-c.scrollTop*u.y+d.y}}function Ba(t){return Array.from(t.getClientRects())}function Wn(t){return Tt(ut(t)).left+le(t).scrollLeft}function Ia(t){const e=ut(t),n=le(t),o=t.ownerDocument.body,a=wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Wn(t);const l=-n.scrollTop;return et(o).direction==="rtl"&&(i+=wt(e.clientWidth,o.clientWidth)-a),{width:a,height:s,x:i,y:l}}function Ra(t,e){const n=Z(t),o=ut(t),a=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,c=0;if(a){s=a.width,i=a.height;const u=ve();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function Va(t,e){const n=Tt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,s=st(t)?Dt(t):mt(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=a*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function Kn(t,e,n){let o;if(e==="viewport")o=Ra(t,n);else if(e==="document")o=Ia(ut(t));else if(at(e))o=Va(e,n);else{const a=Hn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return ie(o)}function qn(t,e){const n=pt(t);return n===e||!at(n)||$t(n)?!1:et(n).position==="fixed"||qn(n,e)}function za(t,e){const n=e.get(t);if(n)return n;let o=jt(t,[],!1).filter(l=>at(l)&&vt(l)!=="body"),a=null;const s=et(t).position==="fixed";let i=s?pt(t):t;for(;at(i)&&!$t(i);){const l=et(i),c=Ne(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Gt(i)&&!c&&qn(t,i))?o=o.filter(d=>d!==i):a=l,i=pt(i)}return e.set(t,o),o}function Ga(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const i=[...n==="clippingAncestors"?De(e)?[]:za(e,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,d)=>{const m=Kn(e,d,a);return u.top=wt(m.top,u.top),u.right=Nt(m.right,u.right),u.bottom=Nt(m.bottom,u.bottom),u.left=wt(m.left,u.left),u},Kn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ja(t){const{width:e,height:n}=Un(t);return{width:e,height:n}}function Fa(t,e,n){const o=st(e),a=ut(e),s=n==="fixed",i=Tt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=mt(0);if(o||!o&&!s)if((vt(e)!=="body"||Gt(a))&&(l=le(e)),o){const m=Tt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&(c.x=Wn(a));const u=i.left+l.scrollLeft-c.x,d=i.top+l.scrollTop-c.y;return{x:u,y:d,width:i.width,height:i.height}}function Ce(t){return et(t).position==="static"}function Zn(t,e){return!st(t)||et(t).position==="fixed"?null:e?e(t):t.offsetParent}function Xn(t,e){const n=Z(t);if(De(t))return n;if(!st(t)){let a=pt(t);for(;a&&!$t(a);){if(at(a)&&!Ce(a))return a;a=pt(a)}return n}let o=Zn(t,e);for(;o&&va(o)&&Ce(o);)o=Zn(o,e);return o&&$t(o)&&Ce(o)&&!Ne(o)?n:o||$a(t)||n}const Ya=async function(t){const e=this.getOffsetParent||Xn,n=this.getDimensions,o=await n(t.floating);return{reference:Fa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ua(t){return et(t).direction==="rtl"}const Ha={convertOffsetParentRelativeRectToViewportRelativeRect:La,getDocumentElement:ut,getClippingRect:Ga,getOffsetParent:Xn,getElementRects:Ya,getClientRects:Ba,getDimensions:ja,getScale:Dt,isElement:at,isRTL:Ua};function Wa(t,e){let n=null,o;const a=ut(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:m,height:p}=t.getBoundingClientRect();if(l||e(),!m||!p)return;const g=oe(d),f=oe(a.clientWidth-(u+m)),h=oe(a.clientHeight-(d+p)),y=oe(u),O={rootMargin:-g+"px "+-f+"px "+-h+"px "+-y+"px",threshold:wt(0,Nt(1,c))||1};let E=!0;function x(N){const C=N[0].intersectionRatio;if(C!==c){if(!E)return i();C?i(!1,C):o=setTimeout(()=>{i(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(x,{...O,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,O)}n.observe(t)}return i(!0),s}function Ka(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=$e(t),d=a||s?[...u?jt(u):[],...jt(e)]:[];d.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=u&&l?Wa(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(e)})),n()}),u&&!c&&g.observe(u),g.observe(e));let f,h=c?Tt(t):null;c&&y();function y(){const S=Tt(t);h&&(S.x!==h.x||S.y!==h.y||S.width!==h.width||S.height!==h.height)&&n(),h=S,f=requestAnimationFrame(y)}return n(),()=>{var S;d.forEach(O=>{a&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),m==null||m(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(f)}}const qa=xa,Za=Na,Xa=Ea,Jn=Oa,Ja=(t,e,n)=>{const o=new Map,a={platform:Ha,...n},s={...a.platform,_c:o};return Aa(t,e,{...a,platform:s})},Qn=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function Qa({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),d=r.ref(null),m=r.ref(null),p=r.ref(n??"absolute"),g=r.ref(null),f=()=>{!s.value||!i.value||Ja(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,d.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:S})=>{S&&Qn(y,S),f()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();g.value=Ka(s.value,i.value,f,{})}},{flush:"post"});const h=()=>{var y;(y=g.value)==null||y.call(g),g.value=null};return{x:l,y:c,arrowX:u,arrowY:d,placement:m,reference:s,floating:i,strategy:p,update:f}}const ts=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?Jn({element:e.value,padding:n}).fn(o):{}:e?Jn({element:e,padding:n}).fn(o):{}}}},es=["data-placement"],Me={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:d,strategy:m}=Qa({placement:e.placement,middleware:[Xa(),Za({padding:5}),qa(e.offset),ts({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),p=()=>{e.disabled||n.value||(n.value=!0)},g=y=>{n.value&&y&&(n.value=!1)},f=y=>{u.value=y},h={mouseenter:p,mouseleave:g,focus:p,blur:g};return Ir(d,y=>{var S;(S=u.value)!=null&&S.contains(y.target)||g()}),(y,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:f,show:p,hide:g,events:h}),r.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:g},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,es)],64))}},ns=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],rs={key:0},os=["colspan"],as={key:1},ss=["colspan"],Le={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=Qe(o,{delay:Bn}),i=e,{t:l}=ot(),c=it("table"),u=r.computed(()=>n.columns),d=r.computed(()=>Object.keys(n.columns).length),m=(p,g)=>{p.sortOrders&&i("sort",{target:g,orders:p.sortOrders})};return(p,g)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(c))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(f,h)=>(r.openBlock(),r.createBlock(Me,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:y,show:S,hide:O})=>[r.createElementVNode("th",{ref_for:!0,ref:y,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ct),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)}]),onMouseenter:S,onMouseleave:O,onFocus:S,onBlur:O,onClick:E=>m(f,h),onKeydown:[r.withKeys(r.withModifiers(E=>m(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(E=>m(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(p.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(In),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(ct)?(r.openBlock(),r.createBlock(r.unref(In),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(da),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)?(r.openBlock(),r.createBlock(r.unref(ga),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,ns)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(y,S)=>(r.openBlock(),r.createElementBlock("td",{key:S,class:r.normalizeClass([[y.class],{"is-active":S===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ct),"is-zero":f[S]==0}])},[r.renderSlot(p.$slots,`cell-${S}`,{row:f,prop:S},()=>[r.createTextVNode(r.toDisplayString(f[S]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",rs,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:d.value},[r.renderSlot(p.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,os)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",as,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:d.value},[r.renderSlot(p.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,ss)])])):r.createCommentVNode("",!0)],2))}},is={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"},ls=r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),cs=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),us=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ds=[ls,cs,us];function fs(t,e){return r.openBlock(),r.createElementBlock("svg",is,[...ds])}const ms={render:fs},ps={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=ot(),a=it("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(ms),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function tr(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const _t=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return ke(xt(".",o),e)})},er=Symbol("ErrorProviderContext"),nr=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||tr(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(er,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},Be=()=>{const t=hs();return{onError:t.onError,reset:t.reset}},hs=()=>{const t=r.inject(er,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},gs={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=nr();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},ys={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ó"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},bs={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"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},ws=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Ss=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Wo({hu:ys,en:bs},t.messages),{translate:n}=On({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Ts(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const _s=ws(Ss,[["render",Ts]]),ks=["src"],As=["src","title"],kt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=zr(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,ks)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title},null,10,As))],64))}}),Os={style:{"text-align":"center"}},Ie={__name:"LoadingIndicator",setup(t){const{t:e}=ot();return(n,o)=>(r.openBlock(),r.createElementBlock("div",Os,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Es({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=Q}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const d=r.unref(t)-1,m=Array.from({length:s.value},(f,h)=>h+1),p=Math.floor(o/2);let g=Math.max(d-p,0);return g+o>=s.value&&(g=Math.max(s.value-o,0)),m.slice(g,g+o)}),l=d=>{const m=r.unref(t)+d;u(m)&&a(m)},c=d=>{u(d)&&a(d)},u=d=>d<=s.value&&d>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Ps={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"},xs=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Ns=[xs];function vs(t,e){return r.openBlock(),r.createElementBlock("svg",Ps,[...Ns])}const $s={render:vs},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"},Cs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Ms=[Cs];function Ls(t,e){return r.openBlock(),r.createElementBlock("svg",Ds,[...Ms])}const Bs={render:Ls},Is=["disabled"],Rs=["disabled"],Vs={key:1,class:"is-disabled"},zs=["disabled","onClick"],Gs={key:2,class:"is-disabled"},js=[r.createElementVNode("span",null,"...",-1)],Fs=["disabled"],Ys=["disabled"],Us={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,a=it("paginator"),{page:s,pageCount:i,range:l,goTo:c,pageStep:u}=Es({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:d=>o("change",d)});return(d,m)=>r.unref(i)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(a))},[r.createElementVNode("button",{type:"button",disabled:r.unref(s)===1,onClick:m[0]||(m[0]=p=>r.unref(u)(-1))},[r.renderSlot(d.$slots,"prev",{},()=>[r.createVNode(r.unref($s),{class:"icon paginator-left"})])],8,Is),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(s)===1,onClick:m[1]||(m[1]=p=>r.unref(c)(1))},"1",8,Rs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Vs,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),p=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:p,class:r.normalizeClass({"is-active":p===r.unref(s)}),disabled:p===r.unref(s),onClick:g=>r.unref(c)(p)},r.toDisplayString(p),11,zs))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Gs,js)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[2]||(m[2]=p=>r.unref(c)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,Fs)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[3]||(m[3]=r.withModifiers(p=>r.unref(u)(1),["prevent"]))},[r.renderSlot(d.$slots,"next",{},()=>[r.createVNode(r.unref(Bs),{class:"icon paginator-left"})])],8,Ys)],2)):r.createCommentVNode("",!0)}},Re={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=it("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ht(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",d="week",m="month",p="quarter",g="year",f="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+)?$/,S=/\[([^\]]+)]|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,O={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(P){var A=["th","st","nd","rd"],T=P%100;return"["+P+(A[(T-20)%10]||A[T]||A[0])+"]"}},E=function(P,A,T){var _=String(P);return!_||_.length>=A?P:""+Array(A+1-_.length).join(T)+P},x={s:E,z:function(P){var A=-P.utcOffset(),T=Math.abs(A),_=Math.floor(T/60),k=T%60;return(A<=0?"+":"-")+E(_,2,"0")+":"+E(k,2,"0")},m:function P(A,T){if(A.date()<T.date())return-P(T,A);var _=12*(T.year()-A.year())+(T.month()-A.month()),k=A.clone().add(_,m),$=T-k<0,v=A.clone().add(_+($?-1:1),m);return+(-(_+(T-k)/($?k-v:v-k))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:g,w:d,d:u,D:f,h:c,m:l,s:i,ms:s,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},N="en",C={};C[N]=O;var I="$isDayjsObject",z=function(P){return P instanceof Y||!(!P||!P[I])},F=function P(A,T,_){var k;if(!A)return N;if(typeof A=="string"){var $=A.toLowerCase();C[$]&&(k=$),T&&(C[$]=T,k=$);var v=A.split("-");if(!k&&v.length>1)return P(v[0])}else{var L=A.name;C[L]=A,k=L}return!_&&k&&(N=k),k||!_&&N},M=function(P,A){if(z(P))return P.clone();var T=typeof A=="object"?A:{};return T.date=P,T.args=arguments,new Y(T)},D=x;D.l=F,D.i=z,D.w=function(P,A){return M(P,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var Y=function(){function P(T){this.$L=F(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[I]=!0}var A=P.prototype;return A.parse=function(T){this.$d=function(_){var k=_.date,$=_.utc;if(k===null)return new Date(NaN);if(D.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var v=k.match(y);if(v){var L=v[2]-1||0,j=(v[7]||"0").substring(0,3);return $?new Date(Date.UTC(v[1],L,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)):new Date(v[1],L,v[3]||1,v[4]||0,v[5]||0,v[6]||0,j)}}return new Date(k)}(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return D},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(T,_){var k=M(T);return this.startOf(_)<=k&&k<=this.endOf(_)},A.isAfter=function(T,_){return M(T)<this.startOf(_)},A.isBefore=function(T,_){return this.endOf(_)<M(T)},A.$g=function(T,_,k){return D.u(T)?this[_]:this.set(k,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,_){var k=this,$=!!D.u(_)||_,v=D.p(T),L=function(Et,q){var gt=D.w(k.$u?Date.UTC(k.$y,q,Et):new Date(k.$y,q,Et),k);return $?gt:gt.endOf(u)},j=function(Et,q){return D.w(k.toDate()[Et].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(q)),k)},H=this.$W,K=this.$M,J=this.$D,Ct="set"+(this.$u?"UTC":"");switch(v){case g:return $?L(1,0):L(31,11);case m:return $?L(1,K):L(0,K+1);case d:var Ot=this.$locale().weekStart||0,Ut=(H<Ot?H+7:H)-Ot;return L($?J-Ut:J+(6-Ut),K);case u:case f:return j(Ct+"Hours",0);case c:return j(Ct+"Minutes",1);case l:return j(Ct+"Seconds",2);case i:return j(Ct+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,_){var k,$=D.p(T),v="set"+(this.$u?"UTC":""),L=(k={},k[u]=v+"Date",k[f]=v+"Date",k[m]=v+"Month",k[g]=v+"FullYear",k[c]=v+"Hours",k[l]=v+"Minutes",k[i]=v+"Seconds",k[s]=v+"Milliseconds",k)[$],j=$===u?this.$D+(_-this.$W):_;if($===m||$===g){var H=this.clone().set(f,1);H.$d[L](j),H.init(),this.$d=H.set(f,Math.min(this.$D,H.daysInMonth())).$d}else L&&this.$d[L](j);return this.init(),this},A.set=function(T,_){return this.clone().$set(T,_)},A.get=function(T){return this[D.p(T)]()},A.add=function(T,_){var k,$=this;T=Number(T);var v=D.p(_),L=function(K){var J=M($);return D.w(J.date(J.date()+Math.round(K*T)),$)};if(v===m)return this.set(m,this.$M+T);if(v===g)return this.set(g,this.$y+T);if(v===u)return L(1);if(v===d)return L(7);var j=(k={},k[l]=o,k[c]=a,k[i]=n,k)[v]||1,H=this.$d.getTime()+T*j;return D.w(H,this)},A.subtract=function(T,_){return this.add(-1*T,_)},A.format=function(T){var _=this,k=this.$locale();if(!this.isValid())return k.invalidDate||h;var $=T||"YYYY-MM-DDTHH:mm:ssZ",v=D.z(this),L=this.$H,j=this.$m,H=this.$M,K=k.weekdays,J=k.months,Ct=k.meridiem,Ot=function(q,gt,Ht,ue){return q&&(q[gt]||q(_,$))||Ht[gt].slice(0,ue)},Ut=function(q){return D.s(L%12||12,q,"0")},Et=Ct||function(q,gt,Ht){var ue=q<12?"AM":"PM";return Ht?ue.toLowerCase():ue};return $.replace(S,function(q,gt){return gt||function(Ht){switch(Ht){case"YY":return String(_.$y).slice(-2);case"YYYY":return D.s(_.$y,4,"0");case"M":return H+1;case"MM":return D.s(H+1,2,"0");case"MMM":return Ot(k.monthsShort,H,J,3);case"MMMM":return Ot(J,H);case"D":return _.$D;case"DD":return D.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Ot(k.weekdaysMin,_.$W,K,2);case"ddd":return Ot(k.weekdaysShort,_.$W,K,3);case"dddd":return K[_.$W];case"H":return String(L);case"HH":return D.s(L,2,"0");case"h":return Ut(1);case"hh":return Ut(2);case"a":return Et(L,j,!0);case"A":return Et(L,j,!1);case"m":return String(j);case"mm":return D.s(j,2,"0");case"s":return String(_.$s);case"ss":return D.s(_.$s,2,"0");case"SSS":return D.s(_.$ms,3,"0");case"Z":return v}return null}(q)||v.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,_,k){var $,v=this,L=D.p(_),j=M(T),H=(j.utcOffset()-this.utcOffset())*o,K=this-j,J=function(){return D.m(v,j)};switch(L){case g:$=J()/12;break;case m:$=J();break;case p:$=J()/3;break;case d:$=(K-H)/6048e5;break;case u:$=(K-H)/864e5;break;case c:$=K/a;break;case l:$=K/o;break;case i:$=K/n;break;default:$=K}return k?$:D.a($)},A.daysInMonth=function(){return this.endOf(m).$D},A.$locale=function(){return C[this.$L]},A.locale=function(T,_){if(!T)return this.$L;var k=this.clone(),$=F(T,_,!0);return $&&(k.$L=$),k},A.clone=function(){return D.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},P}(),nt=Y.prototype;return M.prototype=nt,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",g],["$D",f]].forEach(function(P){nt[P[1]]=function(A){return this.$g(A,P[0],P[1])}}),M.extend=function(P,A){return P.$i||(P(A,Y,M),P.$i=!0),M},M.locale=F,M.isDayjs=z,M.unix=function(P){return M(1e3*P)},M.en=C[N],M.Ls=C,M.p={},M})})(rr);var or=rr.exports;const U=ht(or);var ar={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},c.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var d=c.init;c.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 d.call(this)};var m=c.utcOffset;c.utcOffset=function(h,y){var S=this.$utils().u;if(S(h))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof h=="string"&&(h=function(N){N===void 0&&(N="");var C=N.match(o);if(!C)return null;var I=(""+C[0]).match(a)||["-",0,0],z=I[0],F=60*+I[1]+ +I[2];return F===0?0:z==="+"?F:-F}(h),h===null))return this;var O=Math.abs(h)<=16?60*h:h,E=this;if(y)return E.$offset=O,E.$u=h===0,E;if(h!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(O+x,n)).$offset=O,E.$x.$localOffset=x}else E=this.utc();return E};var p=c.format;c.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},c.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var f=c.diff;c.diff=function(h,y,S){if(h&&this.$u===h.$u)return f.call(this,h,y,S);var O=this.local(),E=l(h).local();return f.call(O,E,y,S)}}})})(ar);var Hs=ar.exports;const Ws=ht(Hs);var sr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(p,g,f){f===void 0&&(f={});var h=new Date(p),y=function(S,O){O===void 0&&(O={});var E=O.timeZoneName||"short",x=S+"|"+E,N=o[x];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[x]=N),N}(g,f);return y.formatToParts(h)},u=function(p,g){for(var f=c(p,g),h=[],y=0;y<f.length;y+=1){var S=f[y],O=S.type,E=S.value,x=n[O];x>=0&&(h[x]=parseInt(E,10))}var N=h[3],C=N===24?0:N,I=h[0]+"-"+h[1]+"-"+h[2]+" "+C+":"+h[4]+":"+h[5]+":000",z=+p;return(i.utc(I).valueOf()-(z-=z%1e3))/6e4},d=s.prototype;d.tz=function(p,g){p===void 0&&(p=l);var f=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),S=Math.round((h-new Date(y))/1e3/60),O=i(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-S,!0);if(g){var E=O.utcOffset();O=O.add(f-E,"minute")}return O.$x.$timezone=p,O},d.offsetName=function(p){var g=this.$x.$timezone||i.tz.guess(),f=c(this.valueOf(),g,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return f&&f.value};var m=d.startOf;d.startOf=function(p,g){if(!this.$x||!this.$x.$timezone)return m.call(this,p,g);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(f,p,g).tz(this.$x.$timezone,!0)},i.tz=function(p,g,f){var h=f&&g,y=f||g||l,S=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var O=function(C,I,z){var F=C-60*I*1e3,M=u(F,z);if(I===M)return[F,I];var D=u(F-=60*(M-I)*1e3,z);return M===D?[F,M]:[C-60*Math.min(M,D)*1e3,Math.max(M,D)]}(i.utc(p,h).valueOf(),S,y),E=O[0],x=O[1],N=i(E).utcOffset(x);return N.$x.$timezone=y,N},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(sr);var Ks=sr.exports;const qs=ht(Ks);var ir={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(d)}}})})(ir);var Zs=ir.exports;const Xs=ht(Zs);var lr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(lr);var Js=lr.exports;const Qs=ht(Js);var cr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),d=a(i),m=(c=c||"()")[0]==="(",p=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(cr);var ti=cr.exports;const ei=ht(ti);var ur={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(m,p){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,f,h){var y=h&&h.toUpperCase();return f||p[h]||n[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,O,E){return O||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(ur);var ni=ur.exports;const ri=ht(ni);var dr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(dt,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,m,p){return s.fromToBase(u,d,m,p)}a.en.relativeTime=i,s.fromToBase=function(u,d,m,p,g){for(var f,h,y,S=m.$locale().relativeTime||i,O=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=O.length,x=0;x<E;x+=1){var N=O[x];N.d&&(f=p?a(u).diff(m,N.d,!0):m.diff(u,N.d,!0));var C=(n.rounding||Math.round)(Math.abs(f));if(y=f>0,C<=N.r||!N.r){C<=1&&x>0&&(N=O[x-1]);var I=S[N.l];g&&(C=g(""+C)),h=typeof I=="string"?I.replace("%d",C):I(C,d,N.l,y);break}}if(d)return h;var z=y?S.future:S.past;return typeof z=="function"?z(h):z.replace("%s",h)},s.to=function(u,d){return l(u,d,this,!0)},s.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(dr);var oi=dr.exports;const ai=ht(oi);var si={exports:{}};(function(t,e){(function(n,o){t.exports=o(or)})(dt,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(si),U.extend(Ws),U.extend(qs),U.extend(Xs),U.extend(ai),U.extend(ri),U.extend(Qs),U.extend(ei);const fr=()=>U.tz.guess(),At=(t="",e="",n="",o="hu")=>(n=n||U.tz.guess(),U(t).isValid()?U(t).tz(n).locale(o).format(e):""),Ft=(t="",e="",n="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(ii(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},ii=t=>Mn.get(t),Ve=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},mr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},pr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},ze=(t,e="day")=>U().isSameOrBefore(U(t),e),li=(t,e,n)=>U(t).isBetween(e,U(n)),ci=(t,e,n="month")=>U(t).isSame(e,n),ui=(t,e="hu")=>U(t).locale(e).toNow(!0),di=["onClick"],fi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,{t:a}=ot(),s=it("timezone-selector"),i=r.computed(()=>Ft(new Date,null,n.locale)),l=fr(),c=r.computed(()=>Array.from(Ln.values()).map(d=>({...d,isActive:Ft(new Date,n.currentZone,n.locale)===Ft(new Date,d.timezone,n.locale),zoneOffsetName:Ft(new Date,d.timezone,n.locale)}))),u=d=>o("change",d);return(d,m)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(s))},[r.createVNode(r.unref(Pn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=r.withModifiers(p=>u(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,p=>(r.openBlock(),r.createElementBlock("a",{key:p.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":p.isActive}),onClick:r.withModifiers(g=>u(p.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${p.countryLabelKey}`))+" ("+r.toDisplayString(p.zoneOffsetName)+") ",11,di))),128))],2))}},Ge=(t,e="",n={})=>{const o=r.ref(""),{t:a}=ot(),s=r.computed(()=>{if(r.unref(e))try{const c=hr(r.unref(t),r.unref(e));return Ko(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>ft(i,s.value)),error:o}},hr=(t,e="")=>{const n=ft(ne,xt(",",e)),o=bt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},gr=async(t,e,n)=>{const o=`${xn}${r.unref(t)}?${mi(n)}`;return new Promise((a,s)=>{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 s(i);a(i.data)}).catch(i=>{s(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:"")},hi=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>ze(u,"day");return qe(n,()=>{if(!a)return;const u=Io(Tn(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},gi=({options:t={},transform:e=a=>a,onError:n=Q,onSuccess:o=Q})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:d,isLoading:m,execute:p}=Je(()=>gr(a,s,r.unref(i)).then(g=>e(g)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:d,isLoading:m,execute:p}};/*! *****************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
11
11
|
|
|
12
12
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(w,r){"use strict";var kr={VITE_VBR_API_URL:"htt
|
|
|
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 Ge(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var gr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(gr||(gr={}));var ki={type:"xstate.init"};function ce(t){return t===void 0?[]:[].concat(t)}function yr(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 je(t){return function(e){return t===e}}function Ai(t){return typeof t=="string"?{type:t}:t}function br(t,e){return{value:t,context:e,actions:[],changed:!1,matches:je(t)}}function wr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Oi(t,e){e===void 0&&(e={});var n=Ge(wr(ce(t.states[t.initial].entry).map(function(i){return yr(i,e.actions)}),t.context,ki),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:je(t.initial)},transition:function(i,l){var c,u,d=typeof i=="string"?{value:i,context:t.context}:i,m=d.value,p=d.context,g=Ai(l),f=t.states[m];if(f.on){var h=ce(f.on[g.type]);"*"in f.on&&h.push.apply(h,function(_,k,v){if(v||arguments.length===2)for(var $,L=0,j=k.length;L<j;L++)!$&&L in k||($||($=Array.prototype.slice.call(k,0,L)),$[L]=k[L]);return _.concat($||Array.prototype.slice.call(k))}([],Ge(ce(f.on["*"])),!1));try{for(var y=function(_){var k=typeof Symbol=="function"&&Symbol.iterator,v=k&&_[k],$=0;if(v)return v.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&$>=_.length&&(_=void 0),{value:_&&_[$++],done:!_}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),S=y.next();!S.done;S=y.next()){var O=S.value;if(O===void 0)return br(m,p);var E=typeof O=="string"?{target:O}:O,x=E.target,N=E.actions,C=N===void 0?[]:N,I=E.cond,z=I===void 0?function(){return!0}:I,F=x===void 0,M=x??m,D=t.states[M];if(z(p,g)){var Y=Ge(wr((F?ce(C):[].concat(f.exit,C,D.entry).filter(function(_){return _})).map(function(_){return yr(_,s._options.actions)}),p,g),3),nt=Y[0],P=Y[1],A=Y[2],T=x??m;return{value:T,context:P,actions:nt,changed:x!==m||nt.length>0||A,matches:je(T)}}}}catch(_){c={error:_}}finally{try{S&&!S.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return br(m,p)}};return s}const Ei=Oi({id:"sort",initial:lt,states:{[lt]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:lt}},[B]:{on:{DIRECTION1:lt,DIRECTION2:b}}}}),Pi=(t,e)=>{const n=e===B?"DIRECTION2":"DIRECTION1";return Ei.transition(t,n).value};function xi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Pi(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Ni(t=!1,e=tt,n=tt){const o=Ir();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const $i=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=c=>Ve(c,"day"),i=()=>{var g;if(l(),!r.unref(a))return;const c=Io(wn(s,"gameDate"))(r.unref(e));if(!c)return;const u=At(c.gameDate,"YYYY-MM-DD"),d=Pt(n).querySelector(`div[data-gamedate="${u}"]`);if(!d)return;const m=getComputedStyle(d).getPropertyValue("--vbr-widget-sticky-top-offset")||0,p=(((g=d.getBoundingClientRect())==null?void 0:g.top)??0)-r.unref(o)-parseFloat(m);window.scrollTo(0,p)},{stop:l}=vr(()=>({items:r.unref(e),element:r.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await r.nextTick(),i())})};function Sr(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const c=we(it(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const m=c.map(p=>({team:p.team.longName,points:Math.abs(it(e,p))})).map(p=>n(`additionalText.${e}.content`,p)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return Ke(t,i),r.watch(o,()=>i(r.unref(t))),{text:a,isVisible:s}}class Fe extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Ft={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},vi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Di={class:"is-portrait-image"},Ci={class:"is-team-name-long"},Mi={key:0},Li=[r.createElementVNode("sup",null,"*",-1)],Bi={class:"is-team-name-short"},Ii={key:0},Ri=[r.createElementVNode("sup",null,"*",-1)],Vi={class:"is-team-name-long"},zi={class:"is-team-name-short"},Gi={class:"is-team-name-long"},ji={class:"is-team-name-short"},Fi=["href"],Yi={class:"is-team-name-long"},Ui={class:"is-team-name-short"},Hi=["href"],Wi={key:0,class:"is-text-dark"},Ki=["href","target"],qi={key:0,class:"label"},Zi={key:1,class:"label"},Xi={key:2,class:"label"},Ji={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),s=e,{onError:i}=Le(),{t:l}=ot(),{columns:c,error:u}=ze(o,a,r.computed(()=>({offsetName:n.offsetName})));u.value&&i(new Fe(Ft.message,{...Ft.options,cause:{column:u.value}}));const d=m=>s("sort",m);return(m,p)=>(r.openBlock(),r.createBlock(Ie,null,{default:r.withCtx(({el:g})=>[r.createVNode(Me,{columns:r.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||g,onSort:d},r.createSlots({"cell-index":r.withCtx(({row:f})=>[r.createElementVNode("span",{class:r.normalizeClass(f.indexClass)},r.toDisplayString(f.index),3)]),"cell-playerPortrait":r.withCtx(({row:f})=>[r.createElementVNode("div",Di,[(r.openBlock(),r.createBlock(kt,{key:f.player.playerId,src:f.player.picture,"default-src":r.unref(xn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image",key:((h=f.team)==null?void 0:h.id)??f.id,src:(y=f.team)==null?void 0:y.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=f.homeTeam)==null?void 0:h.id,src:(y=f.homeTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=f.awayTeam)==null?void 0:h.id,src:(y=f.awayTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",Ci,[r.createTextVNode(r.toDisplayString((h=f.team)==null?void 0:h.longName)+" ",1),f.penaltyPoints?(r.openBlock(),r.createElementBlock("span",Mi,Li)):r.createCommentVNode("",!0)]),r.createElementVNode("span",Bi,[r.createTextVNode(r.toDisplayString((y=f.team)==null?void 0:y.shortName)+" ",1),f.penaltyPoints?(r.openBlock(),r.createElementBlock("span",Ii,Ri)):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",Vi,r.toDisplayString((h=f.homeTeam)==null?void 0:h.longName),1),r.createElementVNode("span",zi,r.toDisplayString((y=f.homeTeam)==null?void 0:y.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",Gi,r.toDisplayString((h=f.awayTeam)==null?void 0:h.longName),1),r.createElementVNode("span",ji,r.toDisplayString((y=f.awayTeam)==null?void 0:y.shortName),1)]}),"cell-location":r.withCtx(({row:f})=>{var h;return[r.createTextVNode(r.toDisplayString(((h=f.location)==null?void 0:h.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Wi,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(f),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},r.toDisplayString(f.homeTeamScore)+":"+r.toDisplayString(f.awayTeamScore),11,Ki))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",qi,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",Zi,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",Xi,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Be)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("a",{href:t.externalTeamResolver(f),target:"_blank"},[r.createElementVNode("span",Yi,r.toDisplayString((h=f.team)==null?void 0:h.longName),1),r.createElementVNode("span",Ui,r.toDisplayString((y=f.team)==null?void 0:y.shortName),1)],8,Fi)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:f})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(f),target:"_blank"},r.toDisplayString(f.name),9,Hi)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Tr={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:""}},Qi={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:B}]},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:B}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:B},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},tl={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:B}]},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:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},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}]}},el={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:B}]},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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},nl={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:B}]},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:B}]},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}]}},rl={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:B}]},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:B}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},ol={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:B}]},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}]}},al={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:B}]},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}]}},sl={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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},il={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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},ll={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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:B}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:B}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:B}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},cl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?te(Ae(l),qt(e)):te(it(l),Tn,Yo(Tn(e)))),s=Po(l=>l.name?ta(Ko("name"),ea(",",""),l):l),i=we(te(s,po([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===lt)return this;const n=Fo(qt(B),hn(Te),hn(Do));return this.result=Sn(e.orders.map(o=>gn(n(o.direction),it)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:At(o.gameDate,"L dddd",e,n),gameDateTime:At(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=Re(n[o]):n),n)),this},groupByDays(){return this.result=Go(e=>At(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),ul=(t,...e)=>ft(gn(...e))(t),dl=t=>{var e,n,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},fl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},ml=(t="",e="hu")=>n=>({...n,gameDateDate:At(n.gameDate,"L dddd",t,e),gameDateTime:At(n.gameDate,"HH:mm",t,e)}),pl=t=>e=>({...e,gameResult:Ol(e)}),hl=t=>({...t,opponent:Al(t)}),gl=t=>({...t,resultType:El(t)}),yl=t=>({...t,rowClasses:t.optional?"is-optional":""}),bl=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},wl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=Re(e[n]):e),e),Sl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=mr(e[n]):e),e),Tl=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=fr(e[n])),e),_l=Sn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Te(it("id")),Te(it("gameId"))]),kl=na((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function Al(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function Ol(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function El(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Pl=t=>t.map(e=>{var n,o;return{phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...((n=e.phaseType)==null?void 0:n.phaseTypeName)&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...((o=e.phaseSubType)==null?void 0:o.phaseSubTypeName)&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}}),xl=(t,e={})=>{const n=Ye("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Pn,e))},Nl=(t,e={})=>{const n=Ye("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||$n,e))},$l=(t,e={})=>{const n=Ye("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Nn,e))},vl=(t,e="1x1")=>`${vn}/flag:${t}-${e}.svg`,Ye=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Dl=()=>{window.scrollTo(0,0)},Cl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ml=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Ll=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Bl=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Il=[Ml,Ll,Bl];function Rl(t,e){return r.openBlock(),r.createElementBlock("svg",Cl,[...Il])}const Vl={render:Rl},zl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Gl=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),jl=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Fl=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Yl=[Gl,jl,Fl];function Ul(t,e){return r.openBlock(),r.createElementBlock("svg",zl,[...Yl])}const Hl={render:Ul},Wl={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"},Kl=r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),ql=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Zl=[Kl,ql];function Xl(t,e){return r.openBlock(),r.createElementBlock("svg",Wl,[...Zl])}const Jl={render:Xl},Ql={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"},tc=r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),ec=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),nc=[tc,ec];function rc(t,e){return r.openBlock(),r.createElementBlock("svg",Ql,[...nc])}const oc={render:rc},ac={class:"is-team-name-long"},sc={class:"is-team-name-short"},ic={class:"is-team-name-long"},lc={class:"is-team-name-short"},cc={key:0,class:"is-text-dark"},uc=["href","target"],dc={key:0,class:"label"},fc={key:1,class:"label"},mc={key:2,class:"label"},pc={key:1},hc=["onClick","onFocus","onBlur"],gc={class:"is-dropdown-menu"},yc=["href","target"],bc={key:0},wc=["href"],Sc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=Le(),{columns:a,error:s}=ze(Tr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Mr(s,()=>o(new Fe(Ft.message,{...Ft.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ot();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ie,null,{default:r.withCtx(({el:u})=>[r.createVNode(Me,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",ac,r.toDisplayString(d.homeTeam.longName),1),r.createElementVNode("span",sc,r.toDisplayString(d.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",ic,r.toDisplayString(d.awayTeam.longName),1),r.createElementVNode("span",lc,r.toDisplayString(d.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:d})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:d.homeTeam.id,src:d.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:d})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:d.awayTeam.id,src:d.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",cc,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,uc))]),"cell-gameResultType":r.withCtx(({row:d})=>[d.isOvertime?(r.openBlock(),r.createElementBlock("span",dc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),d.isShootout?(r.openBlock(),r.createElementBlock("span",fc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),d.seriesStandings?(r.openBlock(),r.createElementBlock("span",mc,r.toDisplayString(d.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:d})=>[d.broadcast?(r.openBlock(),r.createBlock(r.unref(Vl),{key:0})):(r.openBlock(),r.createElementBlock("span",pc))]),"cell-location":r.withCtx(({row:d})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=d.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:d})=>[r.createVNode(Ce,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:p,hide:g})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(p,["stop"]),onFocus:p,onBlur:g},[r.createVNode(r.unref(Hl))],40,hc)]),content:r.withCtx(()=>[r.createElementVNode("ul",gc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Jl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,yc)]),d.video?(r.openBlock(),r.createElementBlock("li",bc,[r.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(oc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,wc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Be)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Tc={class:"g-row g-gap-normal is-mb-5"},_c=["value"],kc={key:0},Ac=["onClick"],Oc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,o=e,{t:a}=ot(),s=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Tc,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(st)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(Ue,{id:"season",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,u=>(r.openBlock(),r.createElementBlock("option",{key:u.championshipId,value:u.championshipId},r.toDisplayString(u.seasonName),9,_c))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",kc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,u=>(r.openBlock(),r.createElementBlock("button",{key:u.phaseId,onClick:d=>i(u),class:r.normalizeClass([r.unref(st)("tab-button"),{"is-active":u.sectionId===t.sectionId}])},r.toDisplayString(u.sectionName),11,Ac))),128))]))],64))}},Ec=["textContent"],Pc={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=r.toRef(e,"rows"),{t:o,locale:a}=ot(),{isVisible:s,text:i}=Sr(n,e.additionalKey,o,a);return(l,c)=>r.unref(s)?(r.openBlock(),r.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:r.toDisplayString(r.unref(i))},null,8,Ec)):r.createCommentVNode("",!0)}},xc={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},Nc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},$c={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},vc={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},_r=({app:t=null,modules:e=[],apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},Dc={install:(t,e={})=>_r({app:t,...e})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=Cn,w.AdditionalStandingsText=Pc,w.BaseSelect=Ue,w.COLUMNS_FIELD_PLAYERS=el,w.COLUMNS_FIELD_PLAYERS_PENALTY=nl,w.COLUMNS_GOALIES=rl,w.COLUMNS_SCHEDULE=Tr,w.COLUMNS_SCORING_EFFICIENCY=ll,w.COLUMNS_STANDINGS_P_2=tl,w.COLUMNS_STANDINGS_P_3=Qi,w.COLUMNS_TEAMS_FAIRPLAY=al,w.COLUMNS_TEAMS_PENALTY_KILLING=sl,w.COLUMNS_TEAMS_POWERPLAY=il,w.COLUMNS_TEAM_ATTENDANCE=ol,w.DEFAULT_EXTERNAL_GAME_URL=Pn,w.DEFAULT_EXTERNAL_PLAYER_URL=Nn,w.DEFAULT_EXTERNAL_TEAM_URL=$n,w.DEFAULT_PORTRAIT_IMAGE_URL=xn,w.DataTable=Me,w.ErrorNotice=Ss,w.ErrorProvider=_s,w.FLAG_BASE_URL=vn,w.FloatingPanel=Ce,w.I18NProvider=xs,w.Image=kt,w.InvalidSeasonName=vi,w.LAZY_LOADING_STATE_DELAY=Mn,w.LOCALE_FOR_LANG=Dn,w.LoadingIndicator=Be,w.Paginator=Xs,w.REFRESH_DELAY=ca,w.ResponsiveTable=Ie,w.SORT_STATE_ASCEND=B,w.SORT_STATE_DESCEND=b,w.SORT_STATE_ORIGINAL=lt,w.ScheduleTable=Sc,w.SeasonSelector=Oc,w.StatisticsTable=Ji,w.TimezoneSelector=bi,w.UndefinedColumn=Ft,w.VBR_API_BASE_URL=En,w.WidgetError=Fe,w.appendTo=Jn,w.baseProps=xc,w.convert=cl,w.convertMinToMinSec=mr,w.convertMinToSec=Re,w.convertPhaseName=Pl,w.convertSecToMin=fr,w.convertTimes=wl,w.convertTimesMinToMinSec=Sl,w.convertTimesSecToMin=Tl,w.createConfig=_r,w.createI18n=kn,w.default=Dc,w.externalGameLinkResolver=xl,w.externalPlayerLinkResolver=$l,w.externalTeamLinkResolver=Nl,w.fetchVBRData=hr,w.flagResolver=vl,w.format=At,w.gameDateTime=ml,w.gameProps=vc,w.gameResult=pl,w.getLocalTimezone=dr,w.i18n=On,w.isBetween=pi,w.isSame=hi,w.isSameOrBefore=Ve,w.localeSort=kl,w.offsetName=jt,w.playerName=dl,w.playerStatsProps=$c,w.rawConvert=ul,w.scheduleOptionalRowClass=yl,w.scrollToTop=Dl,w.sortGames=_l,w.teamName=fl,w.teamOpponent=hl,w.teamResultType=gl,w.teamStatsProps=Nc,w.templateReplacer=_t,w.toKebabCase=Qn,w.upperCase=bl,w.useAdditionalText=Sr,w.useColumns=ze,w.useError=Le,w.useErrorProvider=er,w.useI18n=ot,w.useLazyLoadingState=Je,w.useMainClass=st,w.usePage=Ti,w.useScrollToGameDate=$i,w.useServices=_i,w.useSort=xi,w.useVisibilityChange=Ni,w.validateColumnsName=pr,w.yearToNow=gi,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),w}({},Vue);
|
|
22
|
+
***************************************************************************** */function je(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var yr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(yr||(yr={}));var yi={type:"xstate.init"};function ce(t){return t===void 0?[]:[].concat(t)}function br(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 Fe(t){return function(e){return t===e}}function bi(t){return typeof t=="string"?{type:t}:t}function wr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Fe(t)}}function Sr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function wi(t,e){e===void 0&&(e={});var n=je(Sr(ce(t.states[t.initial].entry).map(function(i){return br(i,e.actions)}),t.context,yi),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Fe(t.initial)},transition:function(i,l){var c,u,d=typeof i=="string"?{value:i,context:t.context}:i,m=d.value,p=d.context,g=bi(l),f=t.states[m];if(f.on){var h=ce(f.on[g.type]);"*"in f.on&&h.push.apply(h,function(_,k,$){if(arguments.length===2)for(var v,L=0,j=k.length;L<j;L++)!v&&L in k||(v||(v=Array.prototype.slice.call(k,0,L)),v[L]=k[L]);return _.concat(v||Array.prototype.slice.call(k))}([],je(ce(f.on["*"])),!1));try{for(var y=function(_){var k=typeof Symbol=="function"&&Symbol.iterator,$=k&&_[k],v=0;if($)return $.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&v>=_.length&&(_=void 0),{value:_&&_[v++],done:!_}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),S=y.next();!S.done;S=y.next()){var O=S.value;if(O===void 0)return wr(m,p);var E=typeof O=="string"?{target:O}:O,x=E.target,N=E.actions,C=N===void 0?[]:N,I=E.cond,z=I===void 0?function(){return!0}:I,F=x===void 0,M=x??m,D=t.states[M];if(z(p,g)){var Y=je(Sr((F?ce(C):[].concat(f.exit,C,D.entry).filter(function(_){return _})).map(function(_){return br(_,s._options.actions)}),p,g),3),nt=Y[0],P=Y[1],A=Y[2],T=x??m;return{value:T,context:P,actions:nt,changed:x!==m||nt.length>0||A,matches:Fe(T)}}}}catch(_){c={error:_}}finally{try{S&&!S.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return wr(m,p)}};return s}const Si=wi({id:"sort",initial:ct,states:{[ct]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:ct}},[B]:{on:{DIRECTION1:ct,DIRECTION2:b}}}}),Ti=(t,e)=>{const n=e===B?"DIRECTION2":"DIRECTION1";return Si.transition(t,n).value};function _i(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Ti(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function ki(t=!1,e=Q,n=Q){const o=Rr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Ai=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=c=>ze(c,"day"),i=()=>{var g;if(l(),!r.unref(a))return;const c=Mo(Tn(s,"gameDate"))(r.unref(e));if(!c)return;const u=At(c.gameDate,"YYYY-MM-DD"),d=Pt(n).querySelector(`div[data-gamedate="${u}"]`);if(!d)return;const m=getComputedStyle(d).getPropertyValue("--vbr-widget-sticky-top-offset")||0,p=(((g=d.getBoundingClientRect())==null?void 0:g.top)??0)-r.unref(o)-parseFloat(m);window.scrollTo(0,p)},{stop:l}=Dr(()=>({items:r.unref(e),element:r.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await r.nextTick(),i())})};function Tr(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const c=we(lt(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const m=c.map(p=>({team:p.team.longName,points:Math.abs(lt(e,p))})).map(p=>n(`additionalText.${e}.content`,p)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return qe(t,i),r.watch(o,()=>i(r.unref(t))),{text:a,isVisible:s}}class Ye extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Yt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Oi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ei={class:"is-portrait-image"},Pi={class:"is-team-name-long"},xi={key:0},Ni=[r.createElementVNode("sup",null,"*",-1)],vi={class:"is-team-name-short"},$i={key:0},Di=[r.createElementVNode("sup",null,"*",-1)],Ci={class:"is-team-name-long"},Mi={class:"is-team-name-short"},Li={class:"is-team-name-long"},Bi={class:"is-team-name-short"},Ii=["href"],Ri={class:"is-team-name-long"},Vi={class:"is-team-name-short"},zi=["href"],Gi={key:0,class:"is-text-dark"},ji=["href","target"],Fi={key:0,class:"label"},Yi={key:1,class:"label"},Ui={key:2,class:"label"},Hi={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),s=e,{onError:i}=Be(),{t:l}=ot(),{columns:c,error:u}=Ge(o,a,r.computed(()=>({offsetName:n.offsetName})));u.value&&i(new Ye(Yt.message,{...Yt.options,cause:{column:u.value}}));const d=m=>s("sort",m);return(m,p)=>(r.openBlock(),r.createBlock(Re,null,{default:r.withCtx(({el:g})=>[r.createVNode(Le,{columns:r.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||g,onSort:d},r.createSlots({"cell-index":r.withCtx(({row:f})=>[r.createElementVNode("span",{class:r.normalizeClass(f.indexClass)},r.toDisplayString(f.index),3)]),"cell-playerPortrait":r.withCtx(({row:f})=>[r.createElementVNode("div",Ei,[(r.openBlock(),r.createBlock(kt,{key:f.player.playerId,src:f.player.picture,"default-src":r.unref(vn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image",key:((h=f.team)==null?void 0:h.id)??f.id,src:(y=f.team)==null?void 0:y.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=f.homeTeam)==null?void 0:h.id,src:(y=f.homeTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=f.awayTeam)==null?void 0:h.id,src:(y=f.awayTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",Pi,[r.createTextVNode(r.toDisplayString((h=f.team)==null?void 0:h.longName)+" ",1),f.penaltyPoints?(r.openBlock(),r.createElementBlock("span",xi,Ni)):r.createCommentVNode("",!0)]),r.createElementVNode("span",vi,[r.createTextVNode(r.toDisplayString((y=f.team)==null?void 0:y.shortName)+" ",1),f.penaltyPoints?(r.openBlock(),r.createElementBlock("span",$i,Di)):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",Ci,r.toDisplayString((h=f.homeTeam)==null?void 0:h.longName),1),r.createElementVNode("span",Mi,r.toDisplayString((y=f.homeTeam)==null?void 0:y.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",Li,r.toDisplayString((h=f.awayTeam)==null?void 0:h.longName),1),r.createElementVNode("span",Bi,r.toDisplayString((y=f.awayTeam)==null?void 0:y.shortName),1)]}),"cell-location":r.withCtx(({row:f})=>{var h;return[r.createTextVNode(r.toDisplayString(((h=f.location)==null?void 0:h.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Gi,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(f),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},r.toDisplayString(f.homeTeamScore)+":"+r.toDisplayString(f.awayTeamScore),11,ji))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",Fi,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",Yi,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",Ui,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Ie)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("a",{href:t.externalTeamResolver(f),target:"_blank"},[r.createElementVNode("span",Ri,r.toDisplayString((h=f.team)==null?void 0:h.longName),1),r.createElementVNode("span",Vi,r.toDisplayString((y=f.team)==null?void 0:y.shortName),1)],8,Ii)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:f})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(f),target:"_blank"},r.toDisplayString(f.name),9,zi)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},_r={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:""}},Wi={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:B}]},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:B}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:B},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Ki={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:B}]},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:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},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}]}},qi={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:B}]},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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Zi={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:B}]},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:B}]},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}]}},Xi={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:B}]},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:B}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Ji={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:B}]},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}]}},Qi={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:B}]},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}]}},tl={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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},el={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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},nl={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:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:B}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:B}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:B}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},rl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?ee(ke(l),Zt(e)):ee(lt(l),kn,zo(kn(e)))),s=Oo(l=>l.name?qo(Yo("name"),Zo(",",""),l):l),i=we(ee(s,fo([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ct)return this;const n=Vo(Zt(B),gn(Te),gn(No));return this.result=_n(e.orders.map(o=>bn(n(o.direction),lt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:At(o.gameDate,"L dddd",e,n),gameDateTime:At(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=Ve(n[o]):n),n)),this},groupByDays(){return this.result=Ro(e=>At(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),ol=(t,...e)=>ft(bn(...e))(t),al=t=>{var e,n,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},sl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},il=(t="",e="hu")=>n=>({...n,gameDateDate:At(n.gameDate,"L dddd",t,e),gameDateTime:At(n.gameDate,"HH:mm",t,e)}),ll=t=>e=>({...e,gameResult:wl(e)}),cl=t=>({...t,opponent:bl(t)}),ul=t=>({...t,resultType:Sl(t)}),dl=t=>({...t,rowClasses:t.optional?"is-optional":""}),fl=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},ml=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=Ve(e[n]):e),e),pl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=pr(e[n]):e),e),hl=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=mr(e[n])),e),gl=_n([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Te(lt("id")),Te(lt("gameId"))]),yl=Xo((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function bl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function wl(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function Sl(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Tl=t=>t.map(e=>{var n,o;return{phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...((n=e.phaseType)==null?void 0:n.phaseTypeName)&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...((o=e.phaseSubType)==null?void 0:o.phaseSubTypeName)&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}}),_l=(t,e={})=>{const n=Ue("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Nn,e))},kl=(t,e={})=>{const n=Ue("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Dn,e))},Al=(t,e={})=>{const n=Ue("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||$n,e))},Ol=(t,e="1x1")=>`${Cn}/flag:${t}-${e}.svg`,Ue=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},El=()=>{window.scrollTo(0,0)},Pl={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"},xl=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Nl=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),vl=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),$l=[xl,Nl,vl];function Dl(t,e){return r.openBlock(),r.createElementBlock("svg",Pl,[...$l])}const Cl={render:Dl},Ml={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"},Ll=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Bl=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Il=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Rl=[Ll,Bl,Il];function Vl(t,e){return r.openBlock(),r.createElementBlock("svg",Ml,[...Rl])}const zl={render:Vl},Gl={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"},jl=r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),Fl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Yl=[jl,Fl];function Ul(t,e){return r.openBlock(),r.createElementBlock("svg",Gl,[...Yl])}const Hl={render:Ul},Wl={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"},Kl=r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),ql=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Zl=[Kl,ql];function Xl(t,e){return r.openBlock(),r.createElementBlock("svg",Wl,[...Zl])}const Jl={render:Xl},Ql={class:"is-team-name-long"},tc={class:"is-team-name-short"},ec={class:"is-team-name-long"},nc={class:"is-team-name-short"},rc={key:0,class:"is-text-dark"},oc=["href","target"],ac={key:0,class:"label"},sc={key:1,class:"label"},ic={key:2,class:"label"},lc={key:1},cc=["onClick","onFocus","onBlur"],uc={class:"is-dropdown-menu"},dc=["href","target"],fc={key:0},mc=["href"],pc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=Be(),{columns:a,error:s}=Ge(_r,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Lr(s,()=>o(new Ye(Yt.message,{...Yt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ot();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Re,null,{default:r.withCtx(({el:u})=>[r.createVNode(Le,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",Ql,r.toDisplayString(d.homeTeam.longName),1),r.createElementVNode("span",tc,r.toDisplayString(d.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",ec,r.toDisplayString(d.awayTeam.longName),1),r.createElementVNode("span",nc,r.toDisplayString(d.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:d})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:d.homeTeam.id,src:d.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:d})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:d.awayTeam.id,src:d.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",rc,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,oc))]),"cell-gameResultType":r.withCtx(({row:d})=>[d.isOvertime?(r.openBlock(),r.createElementBlock("span",ac,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),d.isShootout?(r.openBlock(),r.createElementBlock("span",sc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),d.seriesStandings?(r.openBlock(),r.createElementBlock("span",ic,r.toDisplayString(d.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:d})=>[d.broadcast?(r.openBlock(),r.createBlock(r.unref(Cl),{key:0})):(r.openBlock(),r.createElementBlock("span",lc))]),"cell-location":r.withCtx(({row:d})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=d.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:d})=>[r.createVNode(Me,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:p,hide:g})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(p,["stop"]),onFocus:p,onBlur:g},[r.createVNode(r.unref(zl))],40,cc)]),content:r.withCtx(()=>[r.createElementVNode("ul",uc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Hl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,dc)]),d.video?(r.openBlock(),r.createElementBlock("li",fc,[r.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Jl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,mc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Ie)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},hc={class:"g-row g-gap-normal is-mb-5"},gc=["value"],yc={key:0},bc=["onClick"],wc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,o=e,{t:a}=ot(),s=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",hc,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(it)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(He,{id:"season",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,u=>(r.openBlock(),r.createElementBlock("option",{key:u.championshipId,value:u.championshipId},r.toDisplayString(u.seasonName),9,gc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",yc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,u=>(r.openBlock(),r.createElementBlock("button",{key:u.phaseId,onClick:d=>i(u),class:r.normalizeClass([r.unref(it)("tab-button"),{"is-active":u.sectionId===t.sectionId}])},r.toDisplayString(u.sectionName),11,bc))),128))]))],64))}},Sc=["textContent"],Tc={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=r.toRef(e,"rows"),{t:o,locale:a}=ot(),{isVisible:s,text:i}=Tr(n,e.additionalKey,o,a);return(l,c)=>r.unref(s)?(r.openBlock(),r.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:r.toDisplayString(r.unref(i))},null,8,Sc)):r.createCommentVNode("",!0)}},_c={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},kc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Ac={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},Oc={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},kr=({app:t=null,modules:e=[],apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},Ec={install:(t,e={})=>kr({app:t,...e})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=Ln,w.AdditionalStandingsText=Tc,w.BaseSelect=He,w.COLUMNS_FIELD_PLAYERS=qi,w.COLUMNS_FIELD_PLAYERS_PENALTY=Zi,w.COLUMNS_GOALIES=Xi,w.COLUMNS_SCHEDULE=_r,w.COLUMNS_SCORING_EFFICIENCY=nl,w.COLUMNS_STANDINGS_P_2=Ki,w.COLUMNS_STANDINGS_P_3=Wi,w.COLUMNS_TEAMS_FAIRPLAY=Qi,w.COLUMNS_TEAMS_PENALTY_KILLING=tl,w.COLUMNS_TEAMS_POWERPLAY=el,w.COLUMNS_TEAM_ATTENDANCE=Ji,w.DEFAULT_EXTERNAL_GAME_URL=Nn,w.DEFAULT_EXTERNAL_PLAYER_URL=$n,w.DEFAULT_EXTERNAL_TEAM_URL=Dn,w.DEFAULT_PORTRAIT_IMAGE_URL=vn,w.DataTable=Le,w.ErrorNotice=ps,w.ErrorProvider=gs,w.FLAG_BASE_URL=Cn,w.FloatingPanel=Me,w.I18NProvider=_s,w.Image=kt,w.InvalidSeasonName=Oi,w.LAZY_LOADING_STATE_DELAY=Bn,w.LOCALE_FOR_LANG=Mn,w.LoadingIndicator=Ie,w.Paginator=Us,w.REFRESH_DELAY=na,w.ResponsiveTable=Re,w.SORT_STATE_ASCEND=B,w.SORT_STATE_DESCEND=b,w.SORT_STATE_ORIGINAL=ct,w.ScheduleTable=pc,w.SeasonSelector=wc,w.StatisticsTable=Hi,w.TimezoneSelector=fi,w.UndefinedColumn=Yt,w.VBR_API_BASE_URL=xn,w.WidgetError=Ye,w.appendTo=Qn,w.baseProps=_c,w.convert=rl,w.convertMinToMinSec=pr,w.convertMinToSec=Ve,w.convertPhaseName=Tl,w.convertSecToMin=mr,w.convertTimes=ml,w.convertTimesMinToMinSec=pl,w.convertTimesSecToMin=hl,w.createConfig=kr,w.createI18n=On,w.default=Ec,w.externalGameLinkResolver=_l,w.externalPlayerLinkResolver=Al,w.externalTeamLinkResolver=kl,w.fetchVBRData=gr,w.flagResolver=Ol,w.format=At,w.gameDateTime=il,w.gameProps=Oc,w.gameResult=ll,w.getLocalTimezone=fr,w.i18n=Pn,w.isBetween=li,w.isSame=ci,w.isSameOrBefore=ze,w.localeSort=yl,w.offsetName=Ft,w.playerName=al,w.playerStatsProps=Ac,w.rawConvert=ol,w.scheduleOptionalRowClass=dl,w.scrollToTop=El,w.sortGames=gl,w.teamName=sl,w.teamOpponent=cl,w.teamResultType=ul,w.teamStatsProps=kc,w.templateReplacer=_t,w.toKebabCase=tr,w.upperCase=fl,w.useAdditionalText=Tr,w.useColumns=Ge,w.useError=Be,w.useErrorProvider=nr,w.useI18n=ot,w.useLazyLoadingState=Qe,w.useMainClass=it,w.usePage=hi,w.useScrollToGameDate=Ai,w.useServices=gi,w.useSort=_i,w.useVisibilityChange=ki,w.validateColumnsName=hr,w.yearToNow=ui,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),w}({},Vue);
|