@mjsz-vbr-elements/core 2.2.7 → 2.3.1
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-B3vGuQ_r.js +3026 -0
- package/dist/columns.js +1 -1
- package/dist/components.js +17 -23
- package/dist/composables.js +4 -4
- package/dist/constants.js +1 -1
- package/dist/{convert-E2kZRWM3.js → convert-W8NizgmI.js} +87 -89
- package/dist/datetime-BD_lSSC2.js +1230 -0
- 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 +738 -0
- package/dist/utils.js +4 -4
- package/package.json +11 -11
- package/dist/AdditionalStandingsText-KDfNU6wm.js +0 -2539
- package/dist/datetime--bMmvxSM.js +0 -1143
- package/dist/useAdditionalText-EldMke4U.js +0 -763
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.3.1 - 06/03/2024, 21:34:53
|
|
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(_,r){"use strict";var Er={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 ot=t=>(Er.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Ve={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=ot("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]=u=>s.value=u),class:r.normalizeClass([r.unref(a),"is-select"])},[r.renderSlot(i.$slots,"default")],2)),[[r.vModelSelect,s.value]])}};function ze(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function nt(t){return typeof t=="function"?t():r.unref(t)}const jt=typeof window<"u",at=()=>{},Ar=vr();function vr(){var t;return jt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(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 Re=t=>t();function Nr(t=Re){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 ae(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function se(t,e=!1){function n(m,{flush:d="sync",deep:g=!1,timeout:p,throwOnTimeout:h}={}){let y=null;const $=[new Promise(P=>{y=r.watch(t,v=>{m(v)!==e&&(y==null||y(),P(v))},{flush:d,deep:g,immediate:!0})})];return p!=null&&$.push(ae(p,h).then(()=>nt(t)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(m,d){if(!r.isRef(m))return n(v=>v===m,d);const{flush:g="sync",deep:p=!1,timeout:h,throwOnTimeout:y}=d??{};let T=null;const P=[new Promise(v=>{T=r.watch([t,m],([A,M])=>{e!==(A===M)&&(T==null||T(),v(A))},{flush:g,deep:p,immediate:!0})})];return h!=null&&P.push(ae(h,y).then(()=>nt(t)).finally(()=>(T==null||T(),nt(t)))),Promise.race(P)}function a(m){return n(d=>!!d,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function u(m,d){return n(g=>{const p=Array.from(g);return p.includes(m)||p.includes(nt(m))},d)}function c(m){return f(1,m)}function f(m=1,d){let g=-1;return n(()=>(g+=1,g>=m),d)}return Array.isArray(nt(t))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return se(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:c,changedTimes:f,get not(){return se(t,!e)}}}function Dr(t){return se(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 u(...c){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...c)},nt(e))}return o&&(a.value=!0,jt&&u()),ze(l),{isPending:r.readonly(a),start:u,stop:l}}var Ge=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Br=(t,e)=>{var n={};for(var o in t)Cr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Ge)for(var o of Ge(t))e.indexOf(o)<0&&Lr.call(t,o)&&(n[o]=t[o]);return n};function Ir(t,e,n={}){const o=n,{eventFilter:a=Re}=o,s=Br(o,["eventFilter"]);return r.watch(t,xr(a,e),s)}function je(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n)}var Vr=Object.defineProperty,zr=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ue=(t,e,n)=>e in t?Vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gr=(t,e)=>{for(var n in e||(e={}))Fe.call(e,n)&&Ue(t,n,e[n]);if(Ft)for(var n of Ft(e))Ye.call(e,n)&&Ue(t,n,e[n]);return t},jr=(t,e)=>zr(t,Rr(e)),Fr=(t,e)=>{var n={};for(var o in t)Fe.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Ft)for(var o of Ft(t))e.indexOf(o)<0&&Ye.call(t,o)&&(n[o]=t[o]);return n};function Yr(t,e,n={}){const o=n,{eventFilter:a}=o,s=Fr(o,["eventFilter"]),{eventFilter:i,pause:l,resume:u,isActive:c}=Nr(a);return{stop:Ir(t,e,jr(Gr({},s),{eventFilter:i})),pause:l,resume:u,isActive:c}}function Ur(t,e,n){return r.watch(t,(o,a,s)=>{o&&e(o,a,s)},n)}function Ot(t){var e;const n=nt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const He=jt?window:void 0,Hr=jt?window.document:void 0;function Yt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=He):[e,n,o,a]=t,!e)return at;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,m,d,g)=>(f.addEventListener(m,d,g),()=>f.removeEventListener(m,d,g)),u=r.watch(()=>[Ot(e),nt(a)],([f,m])=>{i(),f&&s.push(...n.flatMap(d=>o.map(g=>l(f,d,g,m))))},{immediate:!0,flush:"post"}),c=()=>{u(),i()};return ze(c),c}let We=!1;function Wr(t,e,n={}){const{window:o=He,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;Ar&&!We&&(We=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",at)));let l=!0;const u=d=>a.some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Ot(g);return p&&(d.target===p||d.composedPath().includes(p))}}),f=[Yt(o,"click",d=>{const g=Ot(t);if(!(!g||g===d.target||d.composedPath().includes(g))){if(d.detail===0&&(l=!u(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:s}),Yt(o,"pointerdown",d=>{const g=Ot(t);g&&(l=!d.composedPath().includes(g)&&!u(d))},{passive:!0}),i&&Yt(o,"blur",d=>{var g;const p=Ot(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&e(d)})].filter(Boolean);return()=>f.forEach(d=>d())}var Kr=Object.defineProperty,qr=Object.defineProperties,Zr=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,qe=(t,e,n)=>e in t?Kr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qr=(t,e)=>{for(var n in e||(e={}))Xr.call(e,n)&&qe(t,n,e[n]);if(Ke)for(var n of Ke(e))Jr.call(e,n)&&qe(t,n,e[n]);return t},to=(t,e)=>qr(t,Zr(e));function Ze(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=at,onSuccess:i=at,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=n??{},f=u?r.shallowRef(e):r.ref(e),m=r.ref(!1),d=r.ref(!1),g=r.shallowRef(void 0);async function p(T=0,...$){l&&(f.value=e),g.value=void 0,m.value=!1,d.value=!0,T>0&&await ae(T);const P=typeof t=="function"?t(...$):t;try{const v=await P;f.value=v,m.value=!0,i(v)}catch(v){if(g.value=v,s(v),c)throw v}finally{d.value=!1}return f.value}o&&p(a);const h={state:f,isReady:m,isLoading:d,error:g,execute:p};function y(){return new Promise((T,$)=>{Dr(d).toBe(!1).then(()=>T(h)).catch($)})}return to(Qr({},h),{then(T,$){return y().then(T,$)}})}function eo({document:t=Hr}={}){if(!t)return r.ref("visible");const e=r.ref(t.visibilityState);return Yt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var no=Object.defineProperty,Xe=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable,Je=(t,e,n)=>e in t?no(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ao=(t,e)=>{for(var n in e||(e={}))ro.call(e,n)&&Je(t,n,e[n]);if(Xe)for(var n of Xe(e))oo.call(e,n)&&Je(t,n,e[n]);return t};async function so(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:u,crossorigin:c}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),u&&(o.loading=u),c&&(o.crossOrigin=c),o.onload=()=>e(o),o.onerror=n})}function io(t,e={}){const n=Ze(()=>so(nt(t)),void 0,ao({resetOnExecute:!0},e));return r.watch(()=>nt(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(u=>r.unref(u)).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}function G(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(n){return arguments.length===0||G(n)?e:t.apply(this,arguments)}}function V(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return G(n)?e:j(function(a){return t(n,a)});default:return G(n)&&G(o)?e:G(n)?j(function(a){return t(a,o)}):G(o)?j(function(a){return t(n,a)}):t(n,o)}}}function Ut(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,u){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,u,c){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,u,c,f){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,u,c,f,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 ie(t,e,n){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!G(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,G(l)||(s-=1),i+=1}return s<=0?n.apply(this,o):Ut(s,ie(t,o,n))}}var At=V(function(e,n){return e===1?j(n):Ut(e,ie(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return G(n)?e:V(function(s,i){return t(n,s,i)});case 2:return G(n)&&G(o)?e:G(n)?V(function(s,i){return t(s,o,i)}):G(o)?V(function(s,i){return t(n,s,i)}):j(function(s){return t(n,o,s)});default:return G(n)&&G(o)&&G(a)?e:G(n)&&G(o)?V(function(s,i){return t(s,i,a)}):G(n)&&G(a)?V(function(s,i){return t(s,o,i)}):G(o)&&G(a)?V(function(s,i){return t(n,s,i)}):G(n)?j(function(s){return t(s,o,a)}):G(o)?j(function(s){return t(n,s,a)}):G(a)?j(function(s){return t(n,o,s)}):t(n,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function lo(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function xt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!vt(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(lo(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function le(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const gt={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 co(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Q(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function uo(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ce=typeof Object.is=="function"?Object.is:uo;var nn=Object.prototype.toString,rn=function(){return nn.call(arguments)==="[object Arguments]"?function(e){return nn.call(e)==="[object Arguments]"}:function(e){return Q("callee",e)}}(),fo=!{toString:null}.propertyIsEnumerable("toString"),on=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],an=function(){return arguments.propertyIsEnumerable("length")}(),mo=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},yt=j(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)Q(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(fo)for(o=on.length-1;o>=0;)n=on[o],Q(n,e)&&!mo(a,n)&&(a[a.length]=n),o-=1;return a}),ue=j(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,u){return de(l,u,n.slice(),o.slice())}return!en(function(l,u){return!en(i,u,l)},s,a)}function de(t,e,n,o){if(ce(t,e))return!0;var a=ue(t);if(a!==ue(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"&&co(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&ce(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!ce(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=yt(t);if(i.length!==yt(e).length)return!1;var l=n.concat([t]),u=o.concat([e]);for(s=i.length-1;s>=0;){var c=i[s];if(!(Q(c,e)&&de(e[c],t[c],l,u)))return!1;s-=1}return!0}var Ht=V(function(e,n){return de(e,n,[],[])});function po(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(Ht(t[n],e))return n;n+=1}return-1}function ln(t,e){return po(e,t,0)>=0}function Wt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function fe(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 Nt=function(e){return(e<10?"0":"")+e},ho=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Nt(e.getUTCMonth()+1)+"-"+Nt(e.getUTCDate())+"T"+Nt(e.getUTCHours())+":"+Nt(e.getUTCMinutes())+":"+Nt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function go(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 yo(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 Kt(t){return Object.prototype.toString.call(t)==="[object Object]"}var bo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=gt.init,t.prototype["@@transducer/result"]=gt.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function _o(t){return function(e){return new bo(t,e)}}var me=V(xt(["fantasy-land/filter","filter"],_o,function(t,e){return Kt(e)?cn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},yt(e)):yo(t,e)})),So=V(function(e,n){return me(go(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 Wt(function(l){return fe(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Wt(n,t).join(", ")+"))";case"[object Array]":return"["+Wt(n,t).concat(o(t,So(function(s){return/^\d+$/.test(s)},yt(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):fe(ho(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())+")":fe(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,yt(t)).join(", ")+"}"}}var pe=j(function(e){return un(e,[])}),wo=V(function(e,n){if(e===n)return n;function o(u,c){if(u>c!=c>u)return c>u?c:u}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=pe(e),l=o(i,pe(n));return l!==void 0&&l===i?e:n}),To=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=gt.init,t.prototype["@@transducer/result"]=gt.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),Oo=function(e){return function(n){return new To(e,n)}},$o=V(xt(["fantasy-land/map","map"],Oo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return At(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},{},yt(n));default:return Wt(e,n)}}));const ut=$o,qt=Number.isInteger||function(e){return e<<0===e};function Zt(t){return Object.prototype.toString.call(t)==="[object String]"}var dn=V(function(e,n){var o=e<0?n.length+e:e;return Zt(n)?n.charAt(o):n[o]}),st=V(function(e,n){if(n!=null)return qt(e)?dn(e,n):n[e]}),ko=V(function(e,n){return ut(st(e),n)}),Po=j(function(e){return vt(e)?!0:!e||typeof e!="object"||Zt(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 Eo(t,e,n){return function(a,s,i){if(Po(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 Ao(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 vo=V(function(e,n){return Ut(e.length,function(){return e.apply(n,arguments)})});function xo(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 No(t,e,n,o){return t["@@transducer/result"](n[o](vo(t["@@transducer/step"],t),e))}var mn=Eo(Ao,No,xo),Do=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 Do(t)}var Mo=X(function(t,e,n){return mn(typeof t=="function"?pn(t):t,e,n)});const hn=Mo;var gn=j(function(e){return function(){return e}}),Co=j(function(e){return At(hn(wo,0,ko("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),he=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});function Lo(t,e,n){if(qt(t)&&vt(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 Bo=j(function(e){return e==null}),Io=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!Bo(o)&&Q(a,o)&&typeof o[a]=="object"?o[a]:qt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return Lo(a,n,o)}),Vo=X(function(e,n,o){return Io([e],n,o)});function zo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Ro(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 ge(t,e,n){if(n||(n=new jo),Go(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?ge(t[l],!0,n):t[l]);return s};switch(ue(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return Ro(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function Go(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var jo=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 Fo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ye(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Yo=X(ye("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),Uo=j(ye("tail",Yo(1,1/0)));const Ho=Uo;function Xt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ut(arguments[0].length,hn(Fo,arguments[0],Ho(arguments)))}var Wo=j(function(e){return Zt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const Ko=Wo;function yn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Xt.apply(this,Ko(arguments))}var qo=j(function(e){return At(e.length,e)}),Zo=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"]=gt.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(Q(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,ge(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Xo(t,e,n){return function(o){return new Zo(t,e,n,o)}}var Jo=ie(4,[],xt([],Xo,function(e,n,o,a){var s=pn(function(i,l){var u=o(l),c=e(Q(u,i)?i[u]:ge(n,!1),l);return c&&c["@@transducer/reduced"]?le(i):(i[u]=c,i)});return mn(s,{},a)})),Qo=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});const ta=Qo;function ea(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 na=j(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():vt(e)?[]:Zt(e)?"":Kt(e)?{}:rn(e)?function(){return arguments}():ea(e)?e.constructor.from(""):void 0}),ra=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=gt.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=le(this.xf["@@transducer/step"](e,n))),e},t}();function oa(t){return function(e){return new ra(t,e)}}var aa=V(xt(["find"],oa,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),sa=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=gt.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=le(this.xf["@@transducer/step"](e,this.idx))),e},t}();function ia(t){return function(e){return new sa(t,e)}}var la=V(xt([],ia,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),ca=V(ye("groupBy",Jo(function(t,e){return t.push(e),t},[]))),ua=X(function(e,n,o){return At(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const da=ua;var fa=V(ln),bn=V(function(e,n){return At(e+1,function(){var o=arguments[e];if(o!=null&&zo(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(pe(o)+' does not have a method named "'+n+'"')})}),ma=j(function(e){return e!=null&&Ht(e,na(e))}),pa=V(function(e,n){return function(o){return function(a){return ut(function(s){return n(s,a)},o(e(a)))}}}),ha=V(function(e,n){return e.map(function(o){for(var a=n,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=qt(i)?dn(i,a):a[i],s+=1}return a})}),be=V(function(e,n){return ha([e],n)[0]}),ga=j(function(e){return pa(st(e),Vo(e))}),ya=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)Q(s,n)&&(a[s]=Q(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)Q(s,o)&&!Q(s,a)&&(a[s]=o[s]);return a}),ba=X(function t(e,n,o){return ya(function(a,s,i){return Kt(s)&&Kt(i)?t(e,s,i):e(a,s,i)},n,o)}),_a=V(function(e,n){return ba(function(o,a,s){return s},e,n)});const Sa=_a;var wa=V(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),_n=function(t){return{value:t,map:function(e){return _n(e(t))}}},Ta=X(function(e,n,o){return e(function(a){return _n(n(a))})(o).value}),Sn=X(function(e,n,o){return e(st(n,o))}),Oa=X(function(e,n,o){return o.replace(e,n)}),$a=V(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),ka=V(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const wn=ka;var $t=bn(1,"split"),Tn=bn(0,"toLowerCase"),Dt=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,Pa="",Ea=typeof String.prototype.trim=="function",Aa=j(!Ea||Dt.trim()||!Pa.trim()?function(e){var n=new RegExp("^["+Dt+"]["+Dt+"]*"),o=new RegExp("["+Dt+"]["+Dt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Jt=Aa,On=Symbol("I18nContext"),K=r.reactive({messages:{},locale:"",fallbackLocale:""}),$n=({messages:t={},locale:e="",fallbackLocale:n=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=n;const o=(u,c={})=>{const f=!ma(c),m=ut(Jt,$t(".",u));return r.computed(()=>{const g=kn(m);return f?xa(g,c):g}).value},a=u=>{const c=ut(Jt,$t(".",u));return!!_e(K.locale,c,K.messages)},s=u=>{K.locale=u},l={locale:r.computed({get(){return K.locale},set(u){K.locale=u}}),setLocale:s,translate:o,hasTranslation:a};return r.provide(On,l),{translate:o}},rt=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=va();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},va=()=>{const t=r.inject(On,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},kn=(t=[])=>{let e=_e(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=_e(K.fallbackLocale,t,K.messages)),e||t.join(".")};function _e(t,e,n){return be([t,...e],n)}const xa=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=ut(Jt,$t(".",t.path)),o=kn(n),a=$t(/{|}/,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",An="https://www.jegkorongszovetseg.hu/event/game/{gameId}",vn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",xn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Nn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Dn="https://api.icehockey.hu/static/api/flag",it="original",b="descend",B="ascend",Mn=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"}),Na=1e3*60*5,Ln=1e3,Da={"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"},Ma=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),Ca=[Ma];function La(t,e){return r.openBlock(),r.createElementBlock("svg",Da,Ca)}const Bn={render:La},Ba={"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"},Ia=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),Va=[Ia];function za(t,e){return r.openBlock(),r.createElementBlock("svg",Ba,Va)}const Ra={render:za},Ga={"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"},ja=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),Fa=[ja];function Ya(t,e){return r.openBlock(),r.createElementBlock("svg",Ga,Fa)}const Ua={render:Ya};function Mt(t){return t.split("-")[1]}function Se(t){return t==="y"?"height":"width"}function bt(t){return t.split("-")[0]}function Ct(t){return["top","bottom"].includes(bt(t))?"x":"y"}function In(t,e,n){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=Ct(e),u=Se(l),c=o[u]/2-a[u]/2,f=l==="x";let m;switch(bt(e)){case"top":m={x:s,y:o.y-a.height};break;case"bottom":m={x:s,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:i};break;case"left":m={x:o.x-a.width,y:i};break;default:m={x:o.x,y:o.y}}switch(Mt(e)){case"start":m[l]-=c*(n&&f?-1:1);break;case"end":m[l]+=c*(n&&f?-1:1)}return m}const Ha=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:f,y:m}=In(c,o,u),d=o,g={},p=0;for(let h=0;h<l.length;h++){const{name:y,fn:T}=l[h],{x:$,y:P,data:v,reset:A}=await T({x:f,y:m,initialPlacement:o,placement:d,strategy:a,middlewareData:g,rects:c,platform:i,elements:{reference:t,floating:e}});f=$??f,m=P??m,g={...g,[y]:{...g[y],...v}},A&&p<=50&&(p++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(c=A.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):A.rects),{x:f,y:m}=In(c,d,u)),h=-1)}return{x:f,y:m,placement:d,strategy:a,middlewareData:g}};function Vn(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Qt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function zn(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:d=!1,padding:g=0}=e,p=Vn(g),h=l[d?m==="floating"?"reference":"floating":m],y=Qt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:u})),T=m==="floating"?{...i.floating,x:o,y:a}:i.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement($))&&await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1},v=Qt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:$,strategy:u}):T);return{top:(y.top-v.top+p.top)/P.y,bottom:(v.bottom-y.bottom+p.bottom)/P.y,left:(y.left-v.left+p.left)/P.x,right:(v.right-y.right+p.right)/P.x}}const Wa=Math.min,Ka=Math.max;function we(t,e,n){return Ka(t,Wa(e,n))}const Rn=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:u,elements:c}=e;if(n==null)return{};const f=Vn(o),m={x:a,y:s},d=Ct(i),g=Se(d),p=await u.getDimensions(n),h=d==="y",y=h?"top":"left",T=h?"bottom":"right",$=h?"clientHeight":"clientWidth",P=l.reference[g]+l.reference[d]-m[d]-l.floating[g],v=m[d]-l.reference[d],A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(n));let M=A?A[$]:0;M&&await(u.isElement==null?void 0:u.isElement(A))||(M=c.floating[$]||l.floating[g]);const I=P/2-v/2,R=f[y],C=M-p[g]-f[T],N=M/2-p[g]/2+I,z=we(R,N,C),H=Mt(i)!=null&&N!=z&&l.reference[g]/2-(N<R?f[y]:f[T])-p[g]/2<0;return{[d]:m[d]-(H?N<R?R-N:C-N:0),data:{[d]:z,centerOffset:N-z}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const qa={left:"right",right:"left",bottom:"top",top:"bottom"};function te(t){return t.replace(/left|right|bottom|top/g,e=>qa[e])}function Za(t,e,n){n===void 0&&(n=!1);const o=Mt(t),a=Ct(t),s=Se(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=te(i)),{main:i,cross:te(i)}}const Xa={start:"end",end:"start"};function Te(t){return t.replace(/start|end/g,e=>Xa[e])}const Ja=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...h}=t,y=bt(o),T=bt(i)===i,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=m||(T||!p?[te(i)]:function(z){const H=te(z);return[Te(z),H,Te(H)]}(i));m||g==="none"||P.push(...function(z,H,E,O){const w=Mt(z);let k=function(S,x,D){const L=["left","right"],Y=["right","left"],F=["top","bottom"],W=["bottom","top"];switch(S){case"top":case"bottom":return D?x?Y:L:x?L:Y;case"left":case"right":return x?F:W;default:return[]}}(bt(z),E==="start",O);return w&&(k=k.map(S=>S+"-"+w),H&&(k=k.concat(k.map(Te)))),k}(i,p,g,$));const v=[i,...P],A=await zn(e,h),M=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&M.push(A[y]),f){const{main:z,cross:H}=Za(o,s,$);M.push(A[z],A[H])}if(I=[...I,{placement:o,overflows:M}],!M.every(z=>z<=0)){var R,C;const z=(((R=a.flip)==null?void 0:R.index)||0)+1,H=v[z];if(H)return{data:{index:z,overflows:I},reset:{placement:H}};let E=(C=I.filter(O=>O.overflows[0]<=0).sort((O,w)=>O.overflows[1]-w.overflows[1])[0])==null?void 0:C.placement;if(!E)switch(d){case"bestFit":{var N;const O=(N=I.map(w=>[w.placement,w.overflows.filter(k=>k>0).reduce((k,S)=>k+S,0)]).sort((w,k)=>w[1]-k[1])[0])==null?void 0:N[0];O&&(E=O);break}case"initialPlacement":E=i}if(o!==E)return{reset:{placement:E}}}return{}}}},Qa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:o}=e,a=await async function(s,i){const{placement:l,platform:u,elements:c}=s,f=await(u.isRTL==null?void 0:u.isRTL(c.floating)),m=bt(l),d=Mt(l),g=Ct(l)==="x",p=["left","top"].includes(m)?-1:1,h=f&&g?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:T,crossAxis:$,alignmentAxis:P}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof P=="number"&&($=d==="end"?-1*P:P),g?{x:$*h,y:T*p}:{x:T*p,y:$*h}}(e,t);return{x:n+a.x,y:o+a.y,data:a}}}};function ts(t){return t==="x"?"y":"x"}const es=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:T,y:$}=y;return{x:T,y:$}}},...u}=t,c={x:n,y:o},f=await zn(e,u),m=Ct(bt(a)),d=ts(m);let g=c[m],p=c[d];if(s){const y=m==="y"?"bottom":"right";g=we(g+f[m==="y"?"top":"left"],g,g-f[y])}if(i){const y=d==="y"?"bottom":"right";p=we(p+f[d==="y"?"top":"left"],p,p-f[y])}const h=l.fn({...e,[m]:g,[d]:p});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function J(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){return J(t).getComputedStyle(t)}function Gn(t){return t instanceof J(t).Node}function dt(t){return Gn(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function Z(t){return t instanceof J(t).Element}function jn(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Lt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function ns(t){return["table","td","th"].includes(dt(t))}function Oe(t){const e=$e(),n=tt(t);return n.transform!=="none"||n.perspective!=="none"||!e&&!!n.backdropFilter&&n.backdropFilter!=="none"||!e&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function $e(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ee(t){return["html","body","#document"].includes(dt(t))}const Fn=Math.min,Bt=Math.max,ne=Math.round;function Yn(t){const e=tt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=et(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,fallback:l}}function Un(t){return Z(t)?t:t.contextElement}const Hn={x:1,y:1};function kt(t){const e=Un(t);if(!et(e))return Hn;const n=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=Yn(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 Wn={x:0,y:0};function Kn(t,e,n){var o,a;if(e===void 0&&(e=!0),!$e())return Wn;const s=t?J(t):window;return!n||e&&n!==s?Wn:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function _t(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Un(t);let i=Hn;e&&(o?Z(o)&&(i=kt(o)):i=kt(t));const l=Kn(s,n,o);let u=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,f=a.width/i.x,m=a.height/i.y;if(s){const d=J(s),g=o&&Z(o)?J(o):o;let p=d.frameElement;for(;p&&o&&g!==d;){const h=kt(p),y=p.getBoundingClientRect(),T=getComputedStyle(p);y.x+=(p.clientLeft+parseFloat(T.paddingLeft))*h.x,y.y+=(p.clientTop+parseFloat(T.paddingTop))*h.y,u*=h.x,c*=h.y,f*=h.x,m*=h.y,u+=y.x,c+=y.y,p=J(p).frameElement}}return Qt({width:f,height:m,x:u,y:c})}function ft(t){return((Gn(t)?t.ownerDocument:t.document)||window.document).documentElement}function re(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qn(t){return _t(ft(t)).left+re(t).scrollLeft}function Pt(t){if(dt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jn(t)&&t.host||ft(t);return jn(e)?e.host:e}function Zn(t){const e=Pt(t);return ee(e)?e.ownerDocument.body:et(e)&&Lt(e)?e:Zn(e)}function It(t,e){var n;e===void 0&&(e=[]);const o=Zn(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Lt(o)?o:[]):e.concat(o,It(o))}function Xn(t,e,n){let o;if(e==="viewport")o=function(a,s){const i=J(a),l=ft(a),u=i.visualViewport;let c=l.clientWidth,f=l.clientHeight,m=0,d=0;if(u){c=u.width,f=u.height;const g=$e();(!g||g&&s==="fixed")&&(m=u.offsetLeft,d=u.offsetTop)}return{width:c,height:f,x:m,y:d}}(t,n);else if(e==="document")o=function(a){const s=ft(a),i=re(a),l=a.ownerDocument.body,u=Bt(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),c=Bt(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+qn(a);const m=-i.scrollTop;return tt(l).direction==="rtl"&&(f+=Bt(s.clientWidth,l.clientWidth)-u),{width:u,height:c,x:f,y:m}}(ft(t));else if(Z(e))o=function(a,s){const i=_t(a,!0,s==="fixed"),l=i.top+a.clientTop,u=i.left+a.clientLeft,c=et(a)?kt(a):{x:1,y:1};return{width:a.clientWidth*c.x,height:a.clientHeight*c.y,x:u*c.x,y:l*c.y}}(e,n);else{const a=Kn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Qt(o)}function Jn(t,e){const n=Pt(t);return!(n===e||!Z(n)||ee(n))&&(tt(n).position==="fixed"||Jn(n,e))}function Qn(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function tr(t,e){const n=J(t);if(!et(t))return n;let o=Qn(t,e);for(;o&&ns(o)&&tt(o).position==="static";)o=Qn(o,e);return o&&(dt(o)==="html"||dt(o)==="body"&&tt(o).position==="static"&&!Oe(o))?n:o||function(a){let s=Pt(a);for(;et(s)&&!ee(s);){if(Oe(s))return s;s=Pt(s)}return null}(t)||n}function rs(t,e,n){const o=et(e),a=ft(e),s=n==="fixed",i=_t(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(o||!o&&!s)if((dt(e)!=="body"||Lt(a))&&(l=re(e)),et(e)){const c=_t(e,!0,s,e);u.x=c.x+e.clientLeft,u.y=c.y+e.clientTop}else a&&(u.x=qn(a));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}const os={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const s=n==="clippingAncestors"?function(c,f){const m=f.get(c);if(m)return m;let d=It(c).filter(y=>Z(y)&&dt(y)!=="body"),g=null;const p=tt(c).position==="fixed";let h=p?Pt(c):c;for(;Z(h)&&!ee(h);){const y=tt(h),T=Oe(h);T||y.position!=="fixed"||(g=null),(p?!T&&!g:!T&&y.position==="static"&&g&&["absolute","fixed"].includes(g.position)||Lt(h)&&!T&&Jn(c,h))?d=d.filter($=>$!==h):g=y,h=Pt(h)}return f.set(c,d),d}(e,this._c):[].concat(n),i=[...s,o],l=i[0],u=i.reduce((c,f)=>{const m=Xn(e,f,a);return c.top=Bt(m.top,c.top),c.right=Fn(m.right,c.right),c.bottom=Fn(m.bottom,c.bottom),c.left=Bt(m.left,c.left),c},Xn(e,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const a=et(n),s=ft(n);if(n===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((a||!a&&o!=="fixed")&&((dt(n)!=="body"||Lt(s))&&(i=re(n)),et(n))){const c=_t(n);l=kt(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+u.x,y:e.y*l.y-i.scrollTop*l.y+u.y}},isElement:Z,getDimensions:function(t){return Yn(t)},getOffsetParent:tr,getDocumentElement:ft,getScale:kt,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const a=this.getOffsetParent||tr,s=this.getDimensions;return{reference:rs(e,await a(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>tt(t).direction==="rtl"};function as(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,u=a||s?[...Z(t)?It(t):t.contextElement?It(t.contextElement):[],...It(e)]:[];u.forEach(d=>{const g=!Z(d)&&d.toString().includes("V");!a||l&&!g||d.addEventListener("scroll",n,{passive:!0}),s&&d.addEventListener("resize",n)});let c,f=null;i&&(f=new ResizeObserver(()=>{n()}),Z(t)&&!l&&f.observe(t),Z(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(e));let m=l?_t(t):null;return l&&function d(){const g=_t(t);!m||g.x===m.x&&g.y===m.y&&g.width===m.width&&g.height===m.height||n(),m=g,c=requestAnimationFrame(d)}(),n(),()=>{var d;u.forEach(g=>{a&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),(d=f)==null||d.disconnect(),f=null,l&&cancelAnimationFrame(c)}}const ss=(t,e,n)=>{const o=new Map,a={platform:os,...n},s={...a.platform,_c:o};return Ha(t,e,{...a,platform:s})},er=(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 is({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),u=r.ref(null),c=r.ref(null),f=r.ref(null),m=r.ref(null),d=r.ref(n??"absolute"),g=r.ref(null),p=()=>{!s.value||!i.value||ss(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,u.value=y.y,d.value=y.strategy,c.value=y.middlewareData.arrow.x,f.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:T})=>{T&&er(y,T),p()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();g.value=as(s.value,i.value,p,{})}},{flush:"post"});const h=()=>{var y;(y=g.value)==null||y.call(g),g.value=null};return{x:l,y:u,arrowX:c,arrowY:f,placement:m,reference:s,floating:i,strategy:d,update:p}}const ls=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?Rn({element:e.value,padding:n}).fn(o):{}:e?Rn({element:e,padding:n}).fn(o):{}}}},cs=["data-placement"],ke={__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:u,reference:c,floating:f,strategy:m}=is({placement:e.placement,middleware:[Ja(),es({padding:5}),Qa(e.offset),ls({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),d=()=>{e.disabled||n.value||(n.value=!0)},g=y=>{n.value&&y&&(n.value=!1)},p=y=>{c.value=y},h={mouseenter:d,mouseleave:g,focus:d,blur:g};return Wr(f,y=>{var T;(T=c.value)!=null&&T.contains(y.target)||g()}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:p,show:d,hide:g,events:h}),r.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":r.unref(u),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,cs)],64))}},us=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],ds={key:0},fs=["colspan"],ms={key:1},ps=["colspan"],Pe={__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:Ln}),i=e,{t:l}=rt(),u=ot("table"),c=r.computed(()=>n.columns),f=r.computed(()=>Object.keys(n.columns).length),m=(d,g)=>{d.sortOrders&&i("sort",{target:g,orders:d.sortOrders})};return(d,g)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(u))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(p,h)=>(r.openBlock(),r.createBlock(ke,{key:h,placement:"top",content:p.tooltip,disabled:!p.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:y,show:T,hide:$})=>[r.createElementVNode("th",{ref_for:!0,ref:y,class:r.normalizeClass([[p.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(it),"is-sortable":p.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:T,onMouseleave:$,onFocus:T,onBlur:$,onClick:P=>m(p,h),onKeydown:[r.withKeys(r.withModifiers(P=>m(p,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(P=>m(p,h),["prevent"]),["enter"])],tabindex:p.sortOrders?0:-1,role:"button"},[r.renderSlot(d.$slots,`header-${h}`,{column:p},()=>[r.createTextVNode(r.toDisplayString(p.label),1)]),p.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(Bn),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(it)?(r.openBlock(),r.createBlock(r.unref(Bn),{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(Ra),{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(Ua),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,us)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(p,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(p.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(y,T)=>(r.openBlock(),r.createElementBlock("td",{key:T,class:r.normalizeClass([[y.class],{"is-active":T===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(it),"is-zero":p[T]==0}])},[r.renderSlot(d.$slots,`cell-${T}`,{row:p,prop:T},()=>[r.createTextVNode(r.toDisplayString(p[T]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",ds,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(d.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,fs)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",ms,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(d.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,ps)])])):r.createCommentVNode("",!0)],2))}},hs={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"},gs=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),ys=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),bs=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),_s=[gs,ys,bs];function Ss(t,e){return r.openBlock(),r.createElementBlock("svg",hs,_s)}const ws={render:Ss},Ts={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=rt(),a=ot("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 nr(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 St=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return be($t(".",o),e)})},rr=Symbol("ErrorProviderContext"),or=()=>{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||nr(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(rr,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}},Ee=()=>{const t=Os();return{onError:t.onError,reset:t.reset}},Os=()=>{const t=r.inject(rr,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}=or();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"}}},Ps={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"}}},Es=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},As=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Sa({hu:ks,en:Ps},t.messages),{translate:n}=$n({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function vs(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const xs=Es(As,[["render",vs]]),Ns=["src"],Ds=["src","title"],wt=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}=io(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,Ds))],64))}}),Ms={style:{"text-align":"center"}},Ae={__name:"LoadingIndicator",setup(t){const{t:e}=rt();return(n,o)=>(r.openBlock(),r.createElementBlock("div",Ms,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Cs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=at}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const f=r.unref(t)-1,m=Array.from({length:s.value},(p,h)=>h+1),d=Math.floor(o/2);let g=Math.max(f-d,0);return g+o>=s.value&&(g=Math.max(s.value-o,0)),m.slice(g,g+o)}),l=f=>{const m=r.unref(t)+f;c(m)&&a(m)},u=f=>{c(f)&&a(f)},c=f=>f<=s.value&&f>0;return{page:t,range:i,pageCount:s,goTo:u,pageStep:l}}const Ls={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"},Bs=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Is=[Bs];function Vs(t,e){return r.openBlock(),r.createElementBlock("svg",Ls,Is)}const zs={render:Vs},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"},Gs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),js=[Gs];function Fs(t,e){return r.openBlock(),r.createElementBlock("svg",Rs,js)}const Ys={render:Fs},Us=["disabled"],Hs=["disabled"],Ws={key:1,class:"is-disabled"},Ks=["disabled","onClick"],qs={key:2,class:"is-disabled"},Zs=[r.createElementVNode("span",null,"...",-1)],Xs=["disabled"],Js=["disabled"],Qs={__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=ot("paginator"),{page:s,pageCount:i,range:l,goTo:u,pageStep:c}=Cs({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:f=>o("change",f)});return(f,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]=d=>r.unref(c)(-1))},[r.renderSlot(f.$slots,"prev",{},()=>[r.createVNode(r.unref(zs),{class:"icon paginator-left"})])],8,Us),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(s)===1,onClick:m[1]||(m[1]=d=>r.unref(u)(1))},"1",8,Hs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Ws,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),d=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:d,class:r.normalizeClass({"is-active":d===r.unref(s)}),disabled:d===r.unref(s),onClick:g=>r.unref(u)(d)},r.toDisplayString(d),11,Ks))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",qs,Zs)),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]=d=>r.unref(u)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,Xs)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[3]||(m[3]=r.withModifiers(d=>r.unref(c)(1),["prevent"]))},[r.renderSlot(f.$slots,"next",{},()=>[r.createVNode(r.unref(Ys),{class:"icon paginator-left"})])],8,Js)],2)):r.createCommentVNode("",!0)}},ve={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=ot("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 lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ar={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",u="hour",c="day",f="week",m="month",d="quarter",g="year",p="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+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var O=["th","st","nd","rd"],w=E%100;return"["+E+(O[(w-20)%10]||O[w]||O[0])+"]"}},P=function(E,O,w){var k=String(E);return!k||k.length>=O?E:""+Array(O+1-k.length).join(w)+E},v={s:P,z:function(E){var O=-E.utcOffset(),w=Math.abs(O),k=Math.floor(w/60),S=w%60;return(O<=0?"+":"-")+P(k,2,"0")+":"+P(S,2,"0")},m:function E(O,w){if(O.date()<w.date())return-E(w,O);var k=12*(w.year()-O.year())+(w.month()-O.month()),S=O.clone().add(k,m),x=w-S<0,D=O.clone().add(k+(x?-1:1),m);return+(-(k+(w-S)/(x?S-D:D-S))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:g,w:f,d:c,D:p,h:u,m:l,s:i,ms:s,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},A="en",M={};M[A]=$;var I=function(E){return E instanceof z},R=function E(O,w,k){var S;if(!O)return A;if(typeof O=="string"){var x=O.toLowerCase();M[x]&&(S=x),w&&(M[x]=w,S=x);var D=O.split("-");if(!S&&D.length>1)return E(D[0])}else{var L=O.name;M[L]=O,S=L}return!k&&S&&(A=S),S||!k&&A},C=function(E,O){if(I(E))return E.clone();var w=typeof O=="object"?O:{};return w.date=E,w.args=arguments,new z(w)},N=v;N.l=R,N.i=I,N.w=function(E,O){return C(E,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var z=function(){function E(w){this.$L=R(w.locale,null,!0),this.parse(w)}var O=E.prototype;return O.parse=function(w){this.$d=function(k){var S=k.date,x=k.utc;if(S===null)return new Date(NaN);if(N.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var D=S.match(y);if(D){var L=D[2]-1||0,Y=(D[7]||"0").substring(0,3);return x?new Date(Date.UTC(D[1],L,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)):new Date(D[1],L,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)}}return new Date(S)}(w),this.$x=w.x||{},this.init()},O.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},O.$utils=function(){return N},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(w,k){var S=C(w);return this.startOf(k)<=S&&S<=this.endOf(k)},O.isAfter=function(w,k){return C(w)<this.startOf(k)},O.isBefore=function(w,k){return this.endOf(k)<C(w)},O.$g=function(w,k,S){return N.u(w)?this[k]:this.set(S,w)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(w,k){var S=this,x=!!N.u(k)||k,D=N.p(w),L=function(Et,q){var ht=N.w(S.$u?Date.UTC(S.$y,q,Et):new Date(S.$y,q,Et),S);return x?ht:ht.endOf(c)},Y=function(Et,q){return N.w(S.toDate()[Et].apply(S.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(q)),S)},F=this.$W,W=this.$M,pt=this.$D,ct="set"+(this.$u?"UTC":"");switch(D){case g:return x?L(1,0):L(31,11);case m:return x?L(1,W):L(0,W+1);case f:var Rt=this.$locale().weekStart||0,Gt=(F<Rt?F+7:F)-Rt;return L(x?pt-Gt:pt+(6-Gt),W);case c:case p:return Y(ct+"Hours",0);case u:return Y(ct+"Minutes",1);case l:return Y(ct+"Seconds",2);case i:return Y(ct+"Milliseconds",3);default:return this.clone()}},O.endOf=function(w){return this.startOf(w,!1)},O.$set=function(w,k){var S,x=N.p(w),D="set"+(this.$u?"UTC":""),L=(S={},S[c]=D+"Date",S[p]=D+"Date",S[m]=D+"Month",S[g]=D+"FullYear",S[u]=D+"Hours",S[l]=D+"Minutes",S[i]=D+"Seconds",S[s]=D+"Milliseconds",S)[x],Y=x===c?this.$D+(k-this.$W):k;if(x===m||x===g){var F=this.clone().set(p,1);F.$d[L](Y),F.init(),this.$d=F.set(p,Math.min(this.$D,F.daysInMonth())).$d}else L&&this.$d[L](Y);return this.init(),this},O.set=function(w,k){return this.clone().$set(w,k)},O.get=function(w){return this[N.p(w)]()},O.add=function(w,k){var S,x=this;w=Number(w);var D=N.p(k),L=function(W){var pt=C(x);return N.w(pt.date(pt.date()+Math.round(W*w)),x)};if(D===m)return this.set(m,this.$M+w);if(D===g)return this.set(g,this.$y+w);if(D===c)return L(1);if(D===f)return L(7);var Y=(S={},S[l]=o,S[u]=a,S[i]=n,S)[D]||1,F=this.$d.getTime()+w*Y;return N.w(F,this)},O.subtract=function(w,k){return this.add(-1*w,k)},O.format=function(w){var k=this,S=this.$locale();if(!this.isValid())return S.invalidDate||h;var x=w||"YYYY-MM-DDTHH:mm:ssZ",D=N.z(this),L=this.$H,Y=this.$m,F=this.$M,W=S.weekdays,pt=S.months,ct=function(q,ht,Ie,oe){return q&&(q[ht]||q(k,x))||Ie[ht].slice(0,oe)},Rt=function(q){return N.s(L%12||12,q,"0")},Gt=S.meridiem||function(q,ht,Ie){var oe=q<12?"AM":"PM";return Ie?oe.toLowerCase():oe},Et={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:N.s(F+1,2,"0"),MMM:ct(S.monthsShort,F,pt,3),MMMM:ct(pt,F),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:ct(S.weekdaysMin,this.$W,W,2),ddd:ct(S.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(L),HH:N.s(L,2,"0"),h:Rt(1),hh:Rt(2),a:Gt(L,Y,!0),A:Gt(L,Y,!1),m:String(Y),mm:N.s(Y,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:D};return x.replace(T,function(q,ht){return ht||Et[q]||D.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(w,k,S){var x,D=N.p(k),L=C(w),Y=(L.utcOffset()-this.utcOffset())*o,F=this-L,W=N.m(this,L);return W=(x={},x[g]=W/12,x[m]=W,x[d]=W/3,x[f]=(F-Y)/6048e5,x[c]=(F-Y)/864e5,x[u]=F/a,x[l]=F/o,x[i]=F/n,x)[D]||F,S?W:N.a(W)},O.daysInMonth=function(){return this.endOf(m).$D},O.$locale=function(){return M[this.$L]},O.locale=function(w,k){if(!w)return this.$L;var S=this.clone(),x=R(w,k,!0);return x&&(S.$L=x),S},O.clone=function(){return N.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},E}(),H=z.prototype;return C.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",u],["$W",c],["$M",m],["$y",g],["$D",p]].forEach(function(E){H[E[1]]=function(O){return this.$g(O,E[0],E[1])}}),C.extend=function(E,O){return E.$i||(E(O,z,C),E.$i=!0),C},C.locale=R,C.isDayjs=I,C.unix=function(E){return C(1e3*E)},C.en=M[A],C.Ls=M,C.p={},C})})(ar);var sr=ar.exports;const U=mt(sr);var ir={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var u=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},u.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),n):y},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var f=u.init;u.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var m=u.utcOffset;u.utcOffset=function(h,y){var T=this.$utils().u;if(T(h))return this.$u?0:T(this.$offset)?m.call(this):this.$offset;if(typeof h=="string"&&(h=function(A){A===void 0&&(A="");var M=A.match(o);if(!M)return null;var I=(""+M[0]).match(a)||["-",0,0],R=I[0],C=60*+I[1]+ +I[2];return C===0?0:R==="+"?C:-C}(h),h===null))return this;var $=Math.abs(h)<=16?60*h:h,P=this;if(y)return P.$offset=$,P.$u=h===0,P;if(h!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add($+v,n)).$offset=$,P.$x.$localOffset=v}else P=this.utc();return P};var d=u.format;u.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,y)},u.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var g=u.toDate;u.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var p=u.diff;u.diff=function(h,y,T){if(h&&this.$u===h.$u)return p.call(this,h,y,T);var $=this.local(),P=l(h).local();return p.call($,P,y,T)}}})})(ir);var ti=ir.exports;const ei=mt(ti);var lr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,u=function(d,g,p){p===void 0&&(p={});var h=new Date(d),y=function(T,$){$===void 0&&($={});var P=$.timeZoneName||"short",v=T+"|"+P,A=o[v];return A||(A=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:P}),o[v]=A),A}(g,p);return y.formatToParts(h)},c=function(d,g){for(var p=u(d,g),h=[],y=0;y<p.length;y+=1){var T=p[y],$=T.type,P=T.value,v=n[$];v>=0&&(h[v]=parseInt(P,10))}var A=h[3],M=A===24?0:A,I=h[0]+"-"+h[1]+"-"+h[2]+" "+M+":"+h[4]+":"+h[5]+":000",R=+d;return(i.utc(I).valueOf()-(R-=R%1e3))/6e4},f=s.prototype;f.tz=function(d,g){d===void 0&&(d=l);var p=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:d}),T=Math.round((h-new Date(y))/1e3/60),$=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-T,!0);if(g){var P=$.utcOffset();$=$.add(p-P,"minute")}return $.$x.$timezone=d,$},f.offsetName=function(d){var g=this.$x.$timezone||i.tz.guess(),p=u(this.valueOf(),g,{timeZoneName:d}).find(function(h){return h.type.toLowerCase()==="timezonename"});return p&&p.value};var m=f.startOf;f.startOf=function(d,g){if(!this.$x||!this.$x.$timezone)return m.call(this,d,g);var p=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return m.call(p,d,g).tz(this.$x.$timezone,!0)},i.tz=function(d,g,p){var h=p&&g,y=p||g||l,T=c(+i(),y);if(typeof d!="string")return i(d).tz(y);var $=function(M,I,R){var C=M-60*I*1e3,N=c(C,R);if(I===N)return[C,I];var z=c(C-=60*(N-I)*1e3,R);return N===z?[C,N]:[M-60*Math.min(N,z)*1e3,Math.max(N,z)]}(i.utc(d,h).valueOf(),T,y),P=$[0],v=$[1],A=i(P).utcOffset(v);return A.$x.$timezone=y,A},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){l=d}}})})(lr);var ni=lr.exports;const ri=mt(ni);var cr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.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)(f)}}})})(cr);var oi=cr.exports;const ai=mt(oi);var ur={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(ur);var si=ur.exports;const ii=mt(si);var dr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,u){var c=a(s),f=a(i),m=(u=u||"()")[0]==="(",d=u[1]===")";return(m?this.isAfter(c,l):!this.isBefore(c,l))&&(d?this.isBefore(f,l):!this.isAfter(f,l))||(m?this.isBefore(c,l):!this.isAfter(c,l))&&(d?this.isAfter(f,l):!this.isBefore(f,l))}}})})(dr);var li=dr.exports;const ci=mt(li);var fr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,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(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,f=function(m,d){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,p,h){var y=h&&h.toUpperCase();return p||d[h]||n[h]||d[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,$,P){return $||P.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,f)}}})})(fr);var ui=fr.exports;const di=mt(ui);var mr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(lt,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(c,f,m,d){return s.fromToBase(c,f,m,d)}a.en.relativeTime=i,s.fromToBase=function(c,f,m,d,g){for(var p,h,y,T=m.$locale().relativeTime||i,$=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"}],P=$.length,v=0;v<P;v+=1){var A=$[v];A.d&&(p=d?a(c).diff(m,A.d,!0):m.diff(c,A.d,!0));var M=(n.rounding||Math.round)(Math.abs(p));if(y=p>0,M<=A.r||!A.r){M<=1&&v>0&&(A=$[v-1]);var I=T[A.l];g&&(M=g(""+M)),h=typeof I=="string"?I.replace("%d",M):I(M,f,A.l,y);break}}if(f)return h;var R=y?T.future:T.past;return typeof R=="function"?R(h):R.replace("%s",h)},s.to=function(c,f){return l(c,f,this,!0)},s.from=function(c,f){return l(c,f,this)};var u=function(c){return c.$u?a.utc():a()};s.toNow=function(c){return this.to(u(this),c)},s.fromNow=function(c){return this.from(u(this),c)}}})})(mr);var fi=mr.exports;const mi=mt(fi);var pi={exports:{}};(function(t,e){(function(n,o){t.exports=o(sr)})(lt,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,u,c){return"néhány másodperc"+(c||l?"":"e")},m:function(i,l,u,c){return"egy perc"+(c||l?"":"e")},mm:function(i,l,u,c){return i+" perc"+(c||l?"":"e")},h:function(i,l,u,c){return"egy "+(c||l?"óra":"órája")},hh:function(i,l,u,c){return i+" "+(c||l?"óra":"órája")},d:function(i,l,u,c){return"egy "+(c||l?"nap":"napja")},dd:function(i,l,u,c){return i+" "+(c||l?"nap":"napja")},M:function(i,l,u,c){return"egy "+(c||l?"hónap":"hónapja")},MM:function(i,l,u,c){return i+" "+(c||l?"hónap":"hónapja")},y:function(i,l,u,c){return"egy "+(c||l?"év":"éve")},yy:function(i,l,u,c){return i+" "+(c||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})})(pi),U.extend(ei),U.extend(ri),U.extend(ai),U.extend(mi),U.extend(di),U.extend(ii),U.extend(ci);const pr=()=>U.tz.guess(),Tt=(t="",e="",n="",o="hu")=>(n=n||U.tz.guess(),U(t).isValid()?U(t).tz(n).locale(o).format(e):""),Vt=(t="",e="",n="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(hi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},hi=t=>Mn.get(t),xe=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},hr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},gr=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(":")},Ne=(t,e="day")=>U().isSameOrBefore(U(t),e),gi=(t,e,n)=>U(t).isBetween(e,U(n)),yi=(t,e,n="month")=>U(t).isSame(e,n),bi=(t,e="hu")=>U(t).locale(e).toNow(!0),_i=["onClick"],Si={__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}=rt(),s=ot("timezone-selector"),i=r.computed(()=>Vt(new Date,null,n.locale)),l=pr(),u=r.computed(()=>Array.from(Cn.values()).map(f=>({...f,isActive:Vt(new Date,n.currentZone,n.locale)===Vt(new Date,f.timezone,n.locale),zoneOffsetName:Vt(new Date,f.timezone,n.locale)}))),c=f=>o("change",f);return(f,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(d=>c(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,d=>(r.openBlock(),r.createElementBlock("a",{key:d.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":d.isActive}),onClick:r.withModifiers(g=>c(d.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${d.countryLabelKey}`))+" ("+r.toDisplayString(d.zoneOffsetName)+") ",11,_i))),128))],2))}},De=(t,e="",n={})=>{const o=r.ref(""),{t:a}=rt(),s=r.computed(()=>{if(r.unref(e))try{const u=yr(r.unref(t),r.unref(e));return wa(u,r.unref(t))}catch(u){o.value=u}return r.unref(t)}),i=u=>({...u,...u.label&&{label:a(u.label??"",r.unref(n))},...u.tooltip&&{tooltip:a(u.tooltip??"")}});return{columns:r.computed(()=>ut(i,s.value)),error:o}},yr=(t,e="")=>{const n=ut(Jt,$t(",",e)),o=yt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},br=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":Ti(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("&"),Ti=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Oi=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=c=>Ne(c,"day");return je(n,()=>{if(!a)return;const c=la(Sn(i,"gameDate"))(r.unref(n));s.value=c===-1?1:Math.floor(c/o)+1}),{page:s,change:c=>{s.value=c}}},$i=({options:t={},transform:e=a=>a,onError:n=at,onSuccess:o=at})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:u=!1}=t,{state:c,error:f,isLoading:m,execute:d}=Ze(()=>br(a,s,r.unref(i)).then(g=>e(g)),[],{immediate:u,resetOnExecute:l,onError:n,onSuccess:o});return{state:c,error:f,isLoading:m,execute:d}};/*! *****************************************************************************
|
|
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 $r(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 Nr(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}=$r(o);return{stop:Nr(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],([$,C])=>{e!==($===C)&&(S==null||S(),x($))},{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 $o(t,e,n){return function(o){return new xo(t,e,n,o)}}var No=me(4,[],Lt([],$o,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",No(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",$n="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Nn="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},$t=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,$t(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[$e(t),e,$e(e)]}function $e(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 $a(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($e)))),s}function ae(t){return t.replace(/left|right|bottom|top/g,e=>Aa[e])}function Na(t){return{top:0,right:0,bottom:0,left:0,...t}}function In(t){return typeof t!="number"?Na(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:$}=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}},$&&f<=50&&(f++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(u=$.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):$.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},$=se(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-$.top+f.top)/x.y,bottom:($.bottom-S.bottom+f.bottom)/x.y,left:(S.left-$.left+f.left)/x.x,right:($.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],$=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-$/2,F=I/2-h[f]/2-1,M=$t(m[S],F),D=$t(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(...$a(l,h,f,E));const $=[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=$[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 Ne(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=Nt(t);for(;at(e)&&!ie(e);){if(Ne(e))return e;e=Nt(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 Nt(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=Nt(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=Nt(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?Nt(t):t;for(;ut(i)&&!ie(i);){const l=J(i),c=Ne(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=Nt(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=$t(m.right,u.right),u.bottom=$t(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"&&!Ne(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,$t(1,c))||1};let E=!0;function x($){const C=$[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]]),$s=["src"],Ns=["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,$s)):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,Ns))],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,N=A.clone().add(_+(v?-1:1),m);return+(-(_+(T-k)/(v?k-N:N-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}},$="en",C={};C[$]=O;var I="$isDayjsObject",z=function(P){return P instanceof Y||!(!P||!P[I])},F=function P(A,T,_){var k;if(!A)return $;if(typeof A=="string"){var v=A.toLowerCase();C[v]&&(k=v),T&&(C[v]=T,k=v);var N=A.split("-");if(!k&&N.length>1)return P(N[0])}else{var L=A.name;C[L]=A,k=L}return!_&&k&&($=k),k||!_&&$},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 N=k.match(y);if(N){var L=N[2]-1||0,j=(N[7]||"0").substring(0,3);return v?new Date(Date.UTC(N[1],L,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)):new Date(N[1],L,N[3]||1,N[4]||0,N[5]||0,N[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(_)||_,N=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(N){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),N="set"+(this.$u?"UTC":""),L=(k={},k[u]=N+"Date",k[f]=N+"Date",k[m]=N+"Month",k[g]=N+"FullYear",k[c]=N+"Hours",k[l]=N+"Minutes",k[i]=N+"Seconds",k[s]=N+"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 N=D.p(_),L=function(K){var Q=M(v);return D.w(Q.date(Q.date()+Math.round(K*T)),v)};if(N===m)return this.set(m,this.$M+T);if(N===g)return this.set(g,this.$y+T);if(N===u)return L(1);if(N===d)return L(7);var j=(k={},k[l]=o,k[c]=a,k[i]=n,k)[N]||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",N=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 N}return null}(q)||N.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,_,k){var v,N=this,L=D.p(_),j=M(T),H=(j.utcOffset()-this.utcOffset())*o,K=this-j,Q=function(){return D.m(N,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[$],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($){$===void 0&&($="");var C=$.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,$=o[x];return $||($=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]=$),$}(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 $=h[3],C=$===24?0:$,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],$=i(E).utcOffset(x);return $.$x.$timezone=y,$},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 $=O[x];$.d&&(f=p?a(u).diff(m,$.d,!0):m.diff(u,$.d,!0));var C=(n.rounding||Math.round)(Math.abs(f));if(y=f>0,C<=$.r||!$.r){C<=1&&x>0&&($=O[x-1]);var I=S[$.l];g&&(C=g(""+C)),h=typeof I=="string"?I.replace("%d",C):I(C,d,$.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}};/*! *****************************************************************************
|
|
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(_,r){"use strict";var Er={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 _r(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 Sr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Sr||(Sr={}));var ki={type:"xstate.init"};function Me(t){return t===void 0?[]:[].concat(t)}function wr(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 Ce(t){return function(e){return t===e}}function Pi(t){return typeof t=="string"?{type:t}:t}function Tr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Ce(t)}}function Or(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 Ei(t,e){e===void 0&&(e={});var n=_r(Or(Me(t.states[t.initial].entry).map(function(i){return wr(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:Ce(t.initial)},transition:function(i,l){var u,c,f=typeof i=="string"?{value:i,context:t.context}:i,m=f.value,d=f.context,g=Pi(l),p=t.states[m];if(p.on){var h=Me(p.on[g.type]);try{for(var y=function(S){var x=typeof Symbol=="function"&&Symbol.iterator,D=x&&S[x],L=0;if(D)return D.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&L>=S.length&&(S=void 0),{value:S&&S[L++],done:!S}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),T=y.next();!T.done;T=y.next()){var $=T.value;if($===void 0)return Tr(m,d);var P=typeof $=="string"?{target:$}:$,v=P.target,A=P.actions,M=A===void 0?[]:A,I=P.cond,R=I===void 0?function(){return!0}:I,C=v===void 0,N=v??m,z=t.states[N];if(R(d,g)){var H=_r(Or((C?Me(M):[].concat(p.exit,M,z.entry).filter(function(S){return S})).map(function(S){return wr(S,s._options.actions)}),d,g),3),E=H[0],O=H[1],w=H[2],k=v??m;return{value:k,context:O,actions:E,changed:v!==m||E.length>0||w,matches:Ce(k)}}}}catch(S){u={error:S}}finally{try{T&&!T.done&&(c=y.return)&&c.call(y)}finally{if(u)throw u.error}}}return Tr(m,d)}};return s}const Ai=Ei({id:"sort",initial:it,states:{[it]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:it}},[B]:{on:{DIRECTION1:it,DIRECTION2:b}}}}),vi=(t,e)=>{const n=e===B?"DIRECTION2":"DIRECTION1";return Ai.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((u,c)=>({...u,direction:vi(o.orders[c].direction,u.direction)}));o.sortTarget=s,o.orders=l}}}function Ni(t=!1,e=at,n=at){const o=eo();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Di=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=u=>Ne(u,"day"),i=()=>{var g;if(l(),!r.unref(a))return;const u=aa(Sn(s,"gameDate"))(r.unref(e));if(!u)return;const c=Tt(u.gameDate,"YYYY-MM-DD"),f=Ot(n).querySelector(`div[data-gamedate="${c}"]`);if(!f)return;const m=getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset")||0,d=(((g=f.getBoundingClientRect())==null?void 0:g.top)??0)-r.unref(o)-parseFloat(m);window.scrollTo(0,d)},{stop:l}=Yr(()=>({items:r.unref(e),element:r.unref(n)}),async({items:u,element:c})=>{u.length===0||!c||(await r.nextTick(),i())})};function $r(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const u=me(st(e),l),c=u.length>0;if(s.value=c,!c)return a.value="";const m=u.map(d=>({team:d.team.longName,points:Math.abs(st(e,d))})).map(d=>n(`additionalText.${e}.content`,d)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return je(t,i),r.watch(o,()=>i(r.unref(t))),{text:a,isVisible:s}}class Le extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const zt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Mi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ci={class:"is-portrait-image"},Li={class:"is-team-name-long"},Bi={key:0},Ii=[r.createElementVNode("sup",null,"*",-1)],Vi={class:"is-team-name-short"},zi={key:0},Ri=[r.createElementVNode("sup",null,"*",-1)],Gi={class:"is-team-name-long"},ji={class:"is-team-name-short"},Fi={class:"is-team-name-long"},Yi={class:"is-team-name-short"},Ui=["href"],Hi={class:"is-team-name-long"},Wi={class:"is-team-name-short"},Ki=["href"],qi={key:0,class:"is-text-dark"},Zi=["href","target"],Xi={key:0,class:"label"},Ji={key:1,class:"label"},Qi={key:2,class:"label"},tl={__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}=Ee(),{t:l}=rt(),{columns:u,error:c}=De(o,a,r.computed(()=>({offsetName:n.offsetName})));c.value&&i(new Le(zt.message,{...zt.options,cause:{column:c.value}}));const f=m=>s("sort",m);return(m,d)=>(r.openBlock(),r.createBlock(ve,null,{default:r.withCtx(({el:g})=>[r.createVNode(Pe,{columns:r.unref(u),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||g,onSort:f},r.createSlots({"cell-index":r.withCtx(({row:p})=>[r.createElementVNode("span",{class:r.normalizeClass(p.indexClass)},r.toDisplayString(p.index),3)]),"cell-playerPortrait":r.withCtx(({row:p})=>[r.createElementVNode("div",Ci,[(r.openBlock(),r.createBlock(wt,{key:p.player.playerId,src:p.player.picture,"default-src":r.unref(vn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:p})=>{var h,y;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image",key:((h=p.team)==null?void 0:h.id)??p.id,src:(y=p.team)==null?void 0:y.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:p})=>{var h,y;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:(h=p.homeTeam)==null?void 0:h.id,src:(y=p.homeTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:p})=>{var h,y;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:(h=p.awayTeam)==null?void 0:h.id,src:(y=p.awayTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:p})=>{var h,y;return[r.createElementVNode("span",Li,[r.createTextVNode(r.toDisplayString((h=p.team)==null?void 0:h.longName)+" ",1),p.penaltyPoints?(r.openBlock(),r.createElementBlock("span",Bi,Ii)):r.createCommentVNode("",!0)]),r.createElementVNode("span",Vi,[r.createTextVNode(r.toDisplayString((y=p.team)==null?void 0:y.shortName)+" ",1),p.penaltyPoints?(r.openBlock(),r.createElementBlock("span",zi,Ri)):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:p})=>{var h,y;return[r.createElementVNode("span",Gi,r.toDisplayString((h=p.homeTeam)==null?void 0:h.longName),1),r.createElementVNode("span",ji,r.toDisplayString((y=p.homeTeam)==null?void 0:y.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:p})=>{var h,y;return[r.createElementVNode("span",Fi,r.toDisplayString((h=p.awayTeam)==null?void 0:h.longName),1),r.createElementVNode("span",Yi,r.toDisplayString((y=p.awayTeam)==null?void 0:y.shortName),1)]}),"cell-location":r.withCtx(({row:p})=>{var h;return[r.createTextVNode(r.toDisplayString(((h=p.location)==null?void 0:h.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:p})=>[p.gameStatus===0?(r.openBlock(),r.createElementBlock("span",qi,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(p),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},r.toDisplayString(p.homeTeamScore)+":"+r.toDisplayString(p.awayTeamScore),11,Zi))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",Xi,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",Ji,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",Qi,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Ae)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:p})=>{var h,y;return[r.createElementVNode("a",{href:t.externalTeamResolver(p),target:"_blank"},[r.createElementVNode("span",Hi,r.toDisplayString((h=p.team)==null?void 0:h.longName),1),r.createElementVNode("span",Wi,r.toDisplayString((y=p.team)==null?void 0:y.shortName),1)],8,Ui)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:p})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(p),target:"_blank"},r.toDisplayString(p.name),9,Ki)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},kr={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:""}},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}]},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}]}},nl={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}]}},rl={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}]}},ol={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}]}},al={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}]}},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}]},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}]}},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}]},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}]}},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}]},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}]}},cl={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}]}},ul={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}]}},dl=(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?Xt(be(l),Ht(e)):Xt(st(l),Tn,fa(Tn(e)))),s=qo(l=>l.name?Ta(ga("name"),Oa(",",""),l):l),i=me(Xt(s,Co([...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===it)return this;const n=da(Ht(B),gn(he),gn(ta));return this.result=wn(e.orders.map(o=>yn(n(o.direction),st)(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:Tt(o.gameDate,"L dddd",e,n),gameDateTime:Tt(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`]=xe(n[o]):n),n)),this},groupByDays(){return this.result=ca(e=>Tt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),fl=(t,...e)=>ut(yn(...e))(t),ml=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}`}}},pl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},hl=(t="",e="hu")=>n=>({...n,gameDateDate:Tt(n.gameDate,"L dddd",t,e),gameDateTime:Tt(n.gameDate,"HH:mm",t,e)}),gl=t=>e=>({...e,gameResult:El(e)}),yl=t=>({...t,opponent:Pl(t)}),bl=t=>({...t,resultType:Al(t)}),_l=t=>({...t,rowClasses:t.optional?"is-optional":""}),Sl=(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`]=xe(e[n]):e),e),Tl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=gr(e[n]):e),e),Ol=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=hr(e[n])),e),$l=wn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),he(st("id")),he(st("gameId"))]),kl=$a((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function Pl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function El(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 Al(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 vl=(t,e={})=>{const n=Be("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||An,e))},xl=(t,e={})=>{const n=Be("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||Nn,e))},Nl=(t,e={})=>{const n=Be("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||xn,e))},Dl=(t,e="1x1")=>`${Dn}/flag:${t}-${e}.svg`,Be=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Ml=()=>{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"},Ll=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Bl=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Il=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Vl=[Ll,Bl,Il];function zl(t,e){return r.openBlock(),r.createElementBlock("svg",Cl,Vl)}const Rl={render:zl},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("circle",{cx:"12",cy:"12",r:"1"},null,-1),Fl=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Yl=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Ul=[jl,Fl,Yl];function Hl(t,e){return r.openBlock(),r.createElementBlock("svg",Gl,Ul)}const Wl={render:Hl},Kl={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"},ql=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),Zl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Xl=[ql,Zl];function Jl(t,e){return r.openBlock(),r.createElementBlock("svg",Kl,Xl)}const Ql={render:Jl},tc={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"},ec=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),nc=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),rc=[ec,nc];function oc(t,e){return r.openBlock(),r.createElementBlock("svg",tc,rc)}const ac={render:oc},sc={class:"is-team-name-long"},ic={class:"is-team-name-short"},lc={class:"is-team-name-long"},cc={class:"is-team-name-short"},uc={key:0,class:"is-text-dark"},dc=["href","target"],fc={key:0,class:"label"},mc={key:1,class:"label"},pc={key:2,class:"label"},hc={key:1},gc=["onClick","onFocus","onBlur"],yc={class:"is-dropdown-menu"},bc=["href","target"],_c={key:0},Sc=["href"],wc={__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}=Ee(),{columns:a,error:s}=De(kr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Ur(s,()=>o(new Le(zt.message,{...zt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=rt();return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ve,null,{default:r.withCtx(({el:c})=>[r.createVNode(Pe,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||c},{"cell-homeTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",sc,r.toDisplayString(f.homeTeam.longName),1),r.createElementVNode("span",ic,r.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",lc,r.toDisplayString(f.awayTeam.longName),1),r.createElementVNode("span",cc,r.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",uc,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),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,dc))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",fc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",mc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",pc,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:f})=>[f.broadcast?(r.openBlock(),r.createBlock(r.unref(Rl),{key:0})):(r.openBlock(),r.createElementBlock("span",hc))]),"cell-location":r.withCtx(({row:f})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=f.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:f})=>[r.createVNode(ke,{offset:2,placement:"left",theme:"content","append-to":c},{default:r.withCtx(({setRef:m,show:d,hide:g})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(d,["stop"]),onFocus:d,onBlur:g},[r.createVNode(r.unref(Wl))],40,gc)]),content:r.withCtx(()=>[r.createElementVNode("ul",yc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Ql),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,bc)]),f.video?(r.openBlock(),r.createElementBlock("li",_c,[r.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(ac),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Sc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Ae)]),_: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"},Oc=["value"],$c={key:0},kc=["onClick"],Pc={__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}=rt(),s=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,u)=>(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(ot)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(Ve,{id:"season",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,c=>(r.openBlock(),r.createElementBlock("option",{key:c.championshipId,value:c.championshipId},r.toDisplayString(c.seasonName),9,Oc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$c,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,c=>(r.openBlock(),r.createElementBlock("button",{key:c.phaseId,onClick:f=>i(c),class:r.normalizeClass([r.unref(ot)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},r.toDisplayString(c.sectionName),11,kc))),128))]))],64))}},Ec=["textContent"],Ac={__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}=rt(),{isVisible:s,text:i}=$r(n,e.additionalKey,o,a);return(l,u)=>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)}},vc={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:""}},xc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Nc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},Dc={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},Pr=({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()})},Mc={install:(t,e={})=>Pr({app:t,...e})};return _.AVAILABLE_TIMEZONES_BY_COUNTRY=Cn,_.AdditionalStandingsText=Ac,_.BaseSelect=Ve,_.COLUMNS_FIELD_PLAYERS=rl,_.COLUMNS_FIELD_PLAYERS_PENALTY=ol,_.COLUMNS_GOALIES=al,_.COLUMNS_SCHEDULE=kr,_.COLUMNS_SCORING_EFFICIENCY=ul,_.COLUMNS_STANDINGS_P_2=nl,_.COLUMNS_STANDINGS_P_3=el,_.COLUMNS_TEAMS_FAIRPLAY=il,_.COLUMNS_TEAMS_PENALTY_KILLING=ll,_.COLUMNS_TEAMS_POWERPLAY=cl,_.COLUMNS_TEAM_ATTENDANCE=sl,_.DEFAULT_EXTERNAL_GAME_URL=An,_.DEFAULT_EXTERNAL_PLAYER_URL=xn,_.DEFAULT_EXTERNAL_TEAM_URL=Nn,_.DEFAULT_PORTRAIT_IMAGE_URL=vn,_.DataTable=Pe,_.ErrorNotice=Ts,_.ErrorProvider=$s,_.FLAG_BASE_URL=Dn,_.FloatingPanel=ke,_.I18NProvider=xs,_.Image=wt,_.InvalidSeasonName=Mi,_.LAZY_LOADING_STATE_DELAY=Ln,_.LOCALE_FOR_LANG=Mn,_.LoadingIndicator=Ae,_.Paginator=Qs,_.REFRESH_DELAY=Na,_.ResponsiveTable=ve,_.SORT_STATE_ASCEND=B,_.SORT_STATE_DESCEND=b,_.SORT_STATE_ORIGINAL=it,_.ScheduleTable=wc,_.SeasonSelector=Pc,_.StatisticsTable=tl,_.TimezoneSelector=Si,_.UndefinedColumn=zt,_.VBR_API_BASE_URL=En,_.WidgetError=Le,_.appendTo=er,_.baseProps=vc,_.convert=dl,_.convertMinToMinSec=gr,_.convertMinToSec=xe,_.convertSecToMin=hr,_.convertTimes=wl,_.convertTimesMinToMinSec=Tl,_.convertTimesSecToMin=Ol,_.createConfig=Pr,_.createI18n=$n,_.default=Mc,_.externalGameLinkResolver=vl,_.externalPlayerLinkResolver=Nl,_.externalTeamLinkResolver=xl,_.fetchVBRData=br,_.flagResolver=Dl,_.format=Tt,_.gameDateTime=hl,_.gameProps=Dc,_.gameResult=gl,_.getLocalTimezone=pr,_.i18n=Pn,_.isBetween=gi,_.isSame=yi,_.isSameOrBefore=Ne,_.localeSort=kl,_.offsetName=Vt,_.playerName=ml,_.playerStatsProps=Nc,_.rawConvert=fl,_.scheduleOptionalRowClass=_l,_.scrollToTop=Ml,_.sortGames=$l,_.teamName=pl,_.teamOpponent=yl,_.teamResultType=bl,_.teamStatsProps=xc,_.templateReplacer=St,_.toKebabCase=nr,_.upperCase=Sl,_.useAdditionalText=$r,_.useColumns=De,_.useError=Ee,_.useErrorProvider=or,_.useI18n=rt,_.useLazyLoadingState=Qe,_.useMainClass=ot,_.usePage=Oi,_.useScrollToGameDate=Di,_.useServices=$i,_.useSort=xi,_.useVisibilityChange=Ni,_.validateColumnsName=yr,_.yearToNow=bi,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),_}({},Vue);
|
|
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 N,L=0,j=k.length;L<j;L++)!N&&L in k||(N||(N=Array.prototype.slice.call(k,0,L)),N[L]=k[L]);return _.concat(N||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],N=0;if(v)return v.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&N>=_.length&&(_=void 0),{value:_&&_[N++],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,$=E.actions,C=$===void 0?[]:$,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 $i(t=!1,e=tt,n=tt){const o=Ir();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Ni=(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,e={})=>{const n=Ye("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Pn,e))},xl=(t,e={})=>{const n=Ye("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Nn,e))},$l=(t,e={})=>{const n=Ye("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||$n,e))},Nl=(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]},vl=()=>{window.scrollTo(0,0)},Dl={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"},Cl=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),Ml=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Ll=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Bl=[Cl,Ml,Ll];function Il(t,e){return r.openBlock(),r.createElementBlock("svg",Dl,[...Bl])}const Rl={render:Il},Vl={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"},zl=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Gl=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),jl=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Fl=[zl,Gl,jl];function Yl(t,e){return r.openBlock(),r.createElementBlock("svg",Vl,[...Fl])}const Ul={render:Yl},Hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Wl=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),Kl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),ql=[Wl,Kl];function Zl(t,e){return r.openBlock(),r.createElementBlock("svg",Hl,[...ql])}const Xl={render:Zl},Jl={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"},Ql=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),tc=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),ec=[Ql,tc];function nc(t,e){return r.openBlock(),r.createElementBlock("svg",Jl,[...ec])}const rc={render:nc},oc={class:"is-team-name-long"},ac={class:"is-team-name-short"},sc={class:"is-team-name-long"},ic={class:"is-team-name-short"},lc={key:0,class:"is-text-dark"},cc=["href","target"],uc={key:0,class:"label"},dc={key:1,class:"label"},fc={key:2,class:"label"},mc={key:1},pc=["onClick","onFocus","onBlur"],hc={class:"is-dropdown-menu"},gc=["href","target"],yc={key:0},bc=["href"],wc={__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",oc,r.toDisplayString(d.homeTeam.longName),1),r.createElementVNode("span",ac,r.toDisplayString(d.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",sc,r.toDisplayString(d.awayTeam.longName),1),r.createElementVNode("span",ic,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",lc,"-:-")):(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,cc))]),"cell-gameResultType":r.withCtx(({row:d})=>[d.isOvertime?(r.openBlock(),r.createElementBlock("span",uc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),d.isShootout?(r.openBlock(),r.createElementBlock("span",dc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),d.seriesStandings?(r.openBlock(),r.createElementBlock("span",fc,r.toDisplayString(d.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:d})=>[d.broadcast?(r.openBlock(),r.createBlock(r.unref(Rl),{key:0})):(r.openBlock(),r.createElementBlock("span",mc))]),"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(Ul))],40,pc)]),content:r.withCtx(()=>[r.createElementVNode("ul",hc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Xl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,gc)]),d.video?(r.openBlock(),r.createElementBlock("li",yc,[r.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(rc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,bc)])):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))}},Sc={class:"g-row g-gap-normal is-mb-5"},Tc=["value"],_c={key:0},kc=["onClick"],Ac={__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",Sc,[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,Tc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",_c,[(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,kc))),128))]))],64))}},Oc=["textContent"],Ec={__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,Oc)):r.createCommentVNode("",!0)}},Pc={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:""}},xc={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}},Nc={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()})},vc={install:(t,e={})=>_r({app:t,...e})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=Cn,w.AdditionalStandingsText=Ec,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=$n,w.DEFAULT_EXTERNAL_TEAM_URL=Nn,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=wc,w.SeasonSelector=Ac,w.StatisticsTable=Ji,w.TimezoneSelector=bi,w.UndefinedColumn=Ft,w.VBR_API_BASE_URL=En,w.WidgetError=Fe,w.appendTo=Jn,w.baseProps=Pc,w.convert=cl,w.convertMinToMinSec=mr,w.convertMinToSec=Re,w.convertSecToMin=fr,w.convertTimes=wl,w.convertTimesMinToMinSec=Sl,w.convertTimesSecToMin=Tl,w.createConfig=_r,w.createI18n=kn,w.default=vc,w.externalGameLinkResolver=Pl,w.externalPlayerLinkResolver=$l,w.externalTeamLinkResolver=xl,w.fetchVBRData=hr,w.flagResolver=Nl,w.format=At,w.gameDateTime=ml,w.gameProps=Nc,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=vl,w.sortGames=_l,w.teamName=fl,w.teamOpponent=hl,w.teamResultType=gl,w.teamStatsProps=xc,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=Ni,w.useServices=_i,w.useSort=xi,w.useVisibilityChange=$i,w.validateColumnsName=pr,w.yearToNow=gi,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),w}({},Vue);
|