@everymatrix/casino-tournaments-controller 1.65.2 → 1.66.0
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/components/{CasinoTournamentsController-BXeJ6peR.js → CasinoTournamentsController-2bTwgvFF.js} +7 -7
- package/components/{CasinoTournamentsController-B0OzPCku.js → CasinoTournamentsController-BULZ_y4b.js} +7 -7
- package/components/{CasinoTournamentsController-BWrEQTp7.cjs → CasinoTournamentsController-CYyTUNIz.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-Cqy5NLeZ.js → CasinoTournamentsFilterController-CoqpuR3P.js} +1 -1
- package/components/{CasinoTournamentsFilterController-CRbcIdR8.js → CasinoTournamentsFilterController-DXDkdo0S.js} +1 -1
- package/components/{CasinoTournamentsFilterController-CwPoNf3E.cjs → CasinoTournamentsFilterController-DjLEXDTC.cjs} +1 -1
- package/components/{CasinoTournamentsListController-DSmX3w4z.js → CasinoTournamentsListController-DT6zQNpY.js} +2 -2
- package/components/{CasinoTournamentsListController-F1noSUOm.cjs → CasinoTournamentsListController-DWgmnfOc.cjs} +2 -2
- package/components/{CasinoTournamentsListController-BWO5gGZc.js → CasinoTournamentsListController-DuHpRjLq.js} +2 -2
- package/components/CasinoTournamentsThumbnail-BWfbNcYT.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-CtmmnGnQ.js → CasinoTournamentsThumbnail-CueG5cos.js} +132 -126
- package/components/{CasinoTournamentsThumbnail-DozFqlDO.js → CasinoTournamentsThumbnail-lBi843NX.js} +132 -126
- package/components/{CasinoTournamentsThumbnailController-DGnfCZVH.js → CasinoTournamentsThumbnailController-CBp3ylH6.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-BoCcPw0R.cjs → CasinoTournamentsThumbnailController-CE8cLaj5.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CBplV0eU.js → CasinoTournamentsThumbnailController-eBnrMpwv.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-Bxwt9SDq.js → CasinoTournamentsThumbnailDuration-B87YJ1nA.js} +11 -11
- package/components/{CasinoTournamentsThumbnailDuration-CsDvrHv5.js → CasinoTournamentsThumbnailDuration-CEChJpk4.js} +11 -11
- package/components/{CasinoTournamentsThumbnailDuration-CVw8hY88.cjs → CasinoTournamentsThumbnailDuration-DYI4yj5n.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DT65cqlv.js → CasinoTournamentsThumbnailGamesSlider-DODIM4Fk.js} +21 -21
- package/components/{CasinoTournamentsThumbnailGamesSlider-DZw8vFWh.cjs → CasinoTournamentsThumbnailGamesSlider-DWAgOpLA.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CGTo4T10.js → CasinoTournamentsThumbnailGamesSlider-LtmE1Ho2.js} +21 -21
- package/components/{CasinoTournamentsThumbnailPrizes-DY5e6Uyd.cjs → CasinoTournamentsThumbnailPrizes-BpQPVoHy.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Bsqu7QI0.js → CasinoTournamentsThumbnailPrizes-CWqeOB0q.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-KvarqmH6.js → CasinoTournamentsThumbnailPrizes-DBsFGpAH.js} +1 -1
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-Bsp-5WN-.cjs +0 -4
|
@@ -4853,7 +4853,7 @@ if (typeof window != "undefined") {
|
|
|
4853
4853
|
}
|
|
4854
4854
|
};
|
|
4855
4855
|
};
|
|
4856
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-
|
|
4856
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-CoqpuR3P.js").then(({ default: t }) => {
|
|
4857
4857
|
!customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
|
|
4858
4858
|
});
|
|
4859
4859
|
}
|
|
@@ -4869,7 +4869,7 @@ if (typeof window != "undefined") {
|
|
|
4869
4869
|
}
|
|
4870
4870
|
};
|
|
4871
4871
|
};
|
|
4872
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-
|
|
4872
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DT6zQNpY.js").then(({ default: t }) => {
|
|
4873
4873
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
|
|
4874
4874
|
});
|
|
4875
4875
|
}
|
|
@@ -5673,11 +5673,11 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5673
5673
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5674
5674
|
export {
|
|
5675
5675
|
hs as $,
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5676
|
+
Ze as A,
|
|
5677
|
+
As as B,
|
|
5678
|
+
lt as C,
|
|
5679
|
+
Ss as D,
|
|
5680
|
+
At as E,
|
|
5681
5681
|
fs as F,
|
|
5682
5682
|
Os as G,
|
|
5683
5683
|
Cs as H,
|
|
@@ -4816,7 +4816,7 @@ if (typeof window < "u") {
|
|
|
4816
4816
|
}
|
|
4817
4817
|
};
|
|
4818
4818
|
};
|
|
4819
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-
|
|
4819
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-DXDkdo0S.js").then(({ default: t }) => {
|
|
4820
4820
|
!customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
|
|
4821
4821
|
});
|
|
4822
4822
|
}
|
|
@@ -4832,7 +4832,7 @@ if (typeof window < "u") {
|
|
|
4832
4832
|
}
|
|
4833
4833
|
};
|
|
4834
4834
|
};
|
|
4835
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-
|
|
4835
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DuHpRjLq.js").then(({ default: t }) => {
|
|
4836
4836
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
|
|
4837
4837
|
});
|
|
4838
4838
|
}
|
|
@@ -5632,11 +5632,11 @@ class cs extends Wn {
|
|
|
5632
5632
|
zn(cs, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
|
|
5633
5633
|
export {
|
|
5634
5634
|
Yo as $,
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5635
|
+
We as A,
|
|
5636
|
+
ps as B,
|
|
5637
|
+
at as C,
|
|
5638
|
+
ds as D,
|
|
5639
|
+
Tt as E,
|
|
5640
5640
|
Ko as F,
|
|
5641
5641
|
gs as G,
|
|
5642
5642
|
ys as H,
|
|
@@ -21,7 +21,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
21
21
|
* https://github.com/Yaffle/EventSource/
|
|
22
22
|
*/(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,s=r.XDomainRequest,a=r.ActiveXObject,l=r.EventSource,u=r.document,c=r.Promise,d=r.fetch,m=r.Response,E=r.TextDecoder,B=r.TextEncoder,P=r.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(h){u.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(h){function b(){}return b.prototype=h,new b}),Date.now||(Date.now=function(){return new Date().getTime()}),P==null){var re=d;d=function(h,b){var g=b.signal;return re(h,{headers:b.headers,credentials:b.credentials,cache:b.cache}).then(function(p){var y=p.body.getReader();return g._reader=y,g._aborted&&g._reader.cancel(),{status:p.status,statusText:p.statusText,headers:p.headers,body:{getReader:function(){return y}}}})},P=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function pe(){this.bitsNeeded=0,this.codePoint=0}pe.prototype.decode=function(h){function b(O,I,_){if(_===1)return O>=128>>I&&O<<I<=2047;if(_===2)return O>=2048>>I&&O<<I<=55295||O>=57344>>I&&O<<I<=65535;if(_===3)return O>=65536>>I&&O<<I<=1114111;throw new Error}function g(O,I){if(O===6*1)return I>>6>15?3:I>31?2:1;if(O===6*2)return I>15?3:2;if(O===6*3)return 3;throw new Error}for(var p=65533,y="",v=this.bitsNeeded,w=this.codePoint,M=0;M<h.length;M+=1){var T=h[M];v!==0&&(T<128||T>191||!b(w<<6|T&63,v-6,g(v,w)))&&(v=0,w=p,y+=String.fromCharCode(w)),v===0?(T>=0&&T<=127?(v=0,w=T):T>=192&&T<=223?(v=6*1,w=T&31):T>=224&&T<=239?(v=6*2,w=T&15):T>=240&&T<=247?(v=6*3,w=T&7):(v=0,w=p),v!==0&&!b(w,v,g(v,w))&&(v=0,w=p)):(v-=6,w=w<<6|T&63),v===0&&(w<=65535?y+=String.fromCharCode(w):(y+=String.fromCharCode(55296+(w-65535-1>>10)),y+=String.fromCharCode(56320+(w-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=w,y};var ie=function(){try{return new E().decode(new B().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(E==null||B==null||!ie())&&(E=pe);var N=function(){};function $(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=N,this.onload=N,this.onerror=N,this.onreadystatechange=N,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=N}$.prototype.open=function(h,b){this._abort(!0);var g=this,p=this._xhr,y=1,v=0;this._abort=function(_){g._sendTimeout!==0&&(i(g._sendTimeout),g._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,p.onload=N,p.onerror=N,p.onabort=N,p.onprogress=N,p.onreadystatechange=N,p.abort(),v!==0&&(i(v),v=0),_||(g.readyState=4,g.onabort(null),g.onreadystatechange())),y=0};var w=function(){if(y===1){var _=0,f="",S=void 0;if("contentType"in p)_=200,f="OK",S=p.contentType;else try{_=p.status,f=p.statusText,S=p.getResponseHeader("Content-Type")}catch(L){_=0,f="",S=void 0}_!==0&&(y=2,g.readyState=2,g.status=_,g.statusText=f,g._contentType=S,g.onreadystatechange())}},M=function(){if(w(),y===2||y===3){y=3;var _="";try{_=p.responseText}catch(f){}g.readyState=3,g.responseText=_,g.onprogress()}},T=function(_,f){if((f==null||f.preventDefault==null)&&(f={preventDefault:N}),M(),y===1||y===2||y===3){if(y=4,v!==0&&(i(v),v=0),g.readyState=4,_==="load")g.onload(f);else if(_==="error")g.onerror(f);else if(_==="abort")g.onabort(f);else throw new TypeError;g.onreadystatechange()}},O=function(_){p!=null&&(p.readyState===4?(!("onload"in p)||!("onerror"in p)||!("onabort"in p))&&T(p.responseText===""?"error":"load",_):p.readyState===3?"onprogress"in p||M():p.readyState===2&&w())},I=function(){v=n(function(){I()},500),p.readyState===3&&M()};"onload"in p&&(p.onload=function(_){T("load",_)}),"onerror"in p&&(p.onerror=function(_){T("error",_)}),"onabort"in p&&(p.onabort=function(_){T("abort",_)}),"onprogress"in p&&(p.onprogress=M),"onreadystatechange"in p&&(p.onreadystatechange=function(_){O(_)}),("contentType"in p||!("ontimeout"in o.prototype))&&(b+=(b.indexOf("?")===-1?"?":"&")+"padding=true"),p.open(h,b,!0),"readyState"in p&&(v=n(function(){I()},0))},$.prototype.abort=function(){this._abort(!1)},$.prototype.getResponseHeader=function(h){return this._contentType},$.prototype.setRequestHeader=function(h,b){var g=this._xhr;"setRequestHeader"in g&&g.setRequestHeader(h,b)},$.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},$.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var h=this;h._sendTimeout=n(function(){h._sendTimeout=0,h.send()},4);return}var b=this._xhr;"withCredentials"in b&&(b.withCredentials=this.withCredentials);try{b.send(void 0)}catch(g){throw g}};function Z(h){return h.replace(/[A-Z]/g,function(b){return String.fromCharCode(b.charCodeAt(0)+32)})}function fe(h){for(var b=Object.create(null),g=h.split(`\r
|
|
23
23
|
`),p=0;p<g.length;p+=1){var y=g[p],v=y.split(": "),w=v.shift(),M=v.join(": ");b[Z(w)]=M}this._map=b}fe.prototype.get=function(h){return this._map[Z(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function ge(){}ge.prototype.open=function(h,b,g,p,y,v,w){h.open("GET",y);var M=0;h.onprogress=function(){var O=h.responseText,I=O.slice(M);M+=I.length,g(I)},h.onerror=function(O){O.preventDefault(),p(new Error("NetworkError"))},h.onload=function(){p(null)},h.onabort=function(){p(null)},h.onreadystatechange=function(){if(h.readyState===o.HEADERS_RECEIVED){var O=h.status,I=h.statusText,_=h.getResponseHeader("Content-Type"),f=h.getAllResponseHeaders();b(O,I,_,new fe(f))}},h.withCredentials=v;for(var T in w)Object.prototype.hasOwnProperty.call(w,T)&&h.setRequestHeader(T,w[T]);return h.send(),h};function De(h){this._headers=h}De.prototype.get=function(h){return this._headers.get(h)};function Oe(){}Oe.prototype.open=function(h,b,g,p,y,v,w){var M=null,T=new P,O=T.signal,I=new E;return d(y,{headers:w,credentials:v?"include":"same-origin",signal:O,cache:"no-store"}).then(function(_){return M=_.body.getReader(),b(_.status,_.statusText,_.headers.get("Content-Type"),new De(_.headers)),new c(function(f,S){var L=function(){M.read().then(function(C){if(C.done)f(void 0);else{var k=I.decode(C.value,{stream:!0});g(k),L()}}).catch(function(C){S(C)})};L()})}).catch(function(_){if(_.name!=="AbortError")return _}).then(function(_){p(_)}),{abort:function(){M!=null&&M.cancel(),T.abort()}}};function me(){this._listeners=Object.create(null)}function Be(h){n(function(){throw h},0)}me.prototype.dispatchEvent=function(h){h.target=this;var b=this._listeners[h.type];if(b!=null)for(var g=b.length,p=0;p<g;p+=1){var y=b[p];try{typeof y.handleEvent=="function"?y.handleEvent(h):y.call(this,h)}catch(v){Be(v)}}},me.prototype.addEventListener=function(h,b){h=String(h);var g=this._listeners,p=g[h];p==null&&(p=[],g[h]=p);for(var y=!1,v=0;v<p.length;v+=1)p[v]===b&&(y=!0);y||p.push(b)},me.prototype.removeEventListener=function(h,b){h=String(h);var g=this._listeners,p=g[h];if(p!=null){for(var y=[],v=0;v<p.length;v+=1)p[v]!==b&&y.push(p[v]);y.length===0?delete g[h]:g[h]=y}};function ne(h){this.type=h,this.target=void 0}function ct(h,b){ne.call(this,h),this.data=b.data,this.lastEventId=b.lastEventId}ct.prototype=Object.create(ne.prototype);function Ce(h,b){ne.call(this,h),this.status=b.status,this.statusText=b.statusText,this.headers=b.headers}Ce.prototype=Object.create(ne.prototype);function Ke(h,b){ne.call(this,h),this.error=b.error}Ke.prototype=Object.create(ne.prototype);var Ie=-1,W=0,ce=1,ve=2,oe=-1,se=0,_e=1,et=2,be=3,tt=/^text\/event\-stream(;.*)?$/i,dt=1e3,Dt=18e6,rt=function(h,b){var g=h==null?b:parseInt(h,10);return g!==g&&(g=b),Fe(g)},Fe=function(h){return Math.min(Math.max(h,dt),Dt)},Se=function(h,b,g){try{typeof b=="function"&&b.call(h,g)}catch(p){Be(p)}};function J(h,b){me.call(this),b=b||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,pt(this,h,b)}function Ft(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Ut=d!=null&&m!=null&&"body"in m.prototype;function pt(h,b,g){b=String(b);var p=!!g.withCredentials,y=g.lastEventIdQueryParameterName||"lastEventId",v=Fe(1e3),w=rt(g.heartbeatTimeout,45e3),M="",T=v,O=!1,I=0,_=g.headers||{},f=g.Transport,S=Ut&&f==null?void 0:new $(f!=null?new f:Ft()),L=f!=null&&typeof f!="string"?new f:S==null?new Oe:new ge,C=void 0,k=0,q=Ie,Ae="",nt="",G="",mt="",Q=se,Gt=0,Le=0,Un=function(V,j,ae,ue){if(q===W)if(V===200&&ae!=null&&tt.test(ae)){q=ce,O=Date.now(),T=v,h.readyState=ce;var Y=new Ce("open",{status:V,statusText:j,headers:ue});h.dispatchEvent(Y),Se(h,h.onopen,Y)}else{var z="";V!==200?(j&&(j=j.replace(/\s+/g," ")),z="EventSource's response has a status "+V+" "+j+" that is not 200. Aborting the connection."):z="EventSource's response has a Content-Type specifying an unsupported type: "+(ae==null?"-":ae.replace(/\s+/g," "))+". Aborting the connection.",jt();var Y=new Ce("error",{status:V,statusText:j,headers:ue});h.dispatchEvent(Y),Se(h,h.onerror,Y),console.error(z)}},Gn=function(V){if(q===ce){for(var j=-1,ae=0;ae<V.length;ae+=1){var ue=V.charCodeAt(ae);(ue===10||ue===13)&&(j=ae)}var Y=(j!==-1?mt:"")+V.slice(0,j+1);mt=(j===-1?mt:"")+V.slice(j+1),V!==""&&(O=Date.now(),I+=V.length);for(var z=0;z<Y.length;z+=1){var ue=Y.charCodeAt(z);if(Q===oe&&ue===10)Q=se;else if(Q===oe&&(Q=se),ue===13||ue===10){if(Q!==se){Q===_e&&(Le=z+1);var Ee=Y.slice(Gt,Le-1),xe=Y.slice(Le+(Le<z&&Y.charCodeAt(Le)===32?1:0),z);Ee==="data"?(Ae+=`
|
|
24
|
-
`,Ae+=xe):Ee==="id"?nt=xe:Ee==="event"?G=xe:Ee==="retry"?(v=rt(xe,v),T=v):Ee==="heartbeatTimeout"&&(w=rt(xe,w),k!==0&&(i(k),k=n(function(){it()},w)))}if(Q===se){if(Ae!==""){M=nt,G===""&&(G="message");var Ge=new ct(G,{data:Ae.slice(1),lastEventId:nt});if(h.dispatchEvent(Ge),G==="open"?Se(h,h.onopen,Ge):G==="message"?Se(h,h.onmessage,Ge):G==="error"&&Se(h,h.onerror,Ge),q===ve)return}Ae="",G=""}Q=ue===13?oe:se}else Q===se&&(Gt=z,Q=_e),Q===_e?ue===58&&(Le=z+1,Q=et):Q===et&&(Q=be)}}},yr=function(V){if(q===ce||q===W){q=Ie,k!==0&&(i(k),k=0),k=n(function(){it()},T),T=Fe(Math.min(v*16,T*2)),h.readyState=W;var j=new Ke("error",{error:V});h.dispatchEvent(j),Se(h,h.onerror,j),V!=null&&console.error(V)}},jt=function(){q=ve,C!=null&&(C.abort(),C=void 0),k!==0&&(i(k),k=0),h.readyState=ve},it=function(){if(k=0,q!==Ie){if(!O&&C!=null)yr(new Error("No activity within "+w+" milliseconds. "+(q===W?"No response received.":I+" chars received.")+" Reconnecting.")),C!=null&&(C.abort(),C=void 0);else{var V=Math.max((O||Date.now())+w-Date.now(),1);O=!1,k=n(function(){it()},V)}return}O=!1,I=0,k=n(function(){it()},w),q=W,Ae="",G="",nt=M,mt="",Gt=0,Le=0,Q=se;var j=b;if(b.slice(0,5)!=="data:"&&b.slice(0,5)!=="blob:"&&M!==""){var ae=b.indexOf("?");j=ae===-1?b:b.slice(0,ae+1)+b.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(xe,Ge){return Ge===y?"":xe}),j+=(b.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(M)}var ue=h.withCredentials,Y={};Y.Accept="text/event-stream";var z=h.headers;if(z!=null)for(var Ee in z)Object.prototype.hasOwnProperty.call(z,Ee)&&(Y[Ee]=z[Ee]);try{C=L.open(S,Un,Gn,yr,j,ue,Y)}catch(xe){throw jt(),xe}};h.url=b,h.readyState=W,h.withCredentials=p,h.headers=_,h._close=jt,it()}J.prototype=Object.create(me.prototype),J.prototype.CONNECTING=W,J.prototype.OPEN=ce,J.prototype.CLOSED=ve,J.prototype.close=function(){this._close()},J.CONNECTING=W,J.OPEN=ce,J.CLOSED=ve,J.prototype.withCredentials=void 0;var Ue=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Ue=J),function(h){{var b=h(t);b!==void 0&&(e.exports=b)}}(function(h){h.EventSourcePolyfill=J,h.NativeEventSource=l,h.EventSource=Ue})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ii:globalThis)})(pr,pr.exports);var xs=pr.exports;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsFilterController-
|
|
24
|
+
`,Ae+=xe):Ee==="id"?nt=xe:Ee==="event"?G=xe:Ee==="retry"?(v=rt(xe,v),T=v):Ee==="heartbeatTimeout"&&(w=rt(xe,w),k!==0&&(i(k),k=n(function(){it()},w)))}if(Q===se){if(Ae!==""){M=nt,G===""&&(G="message");var Ge=new ct(G,{data:Ae.slice(1),lastEventId:nt});if(h.dispatchEvent(Ge),G==="open"?Se(h,h.onopen,Ge):G==="message"?Se(h,h.onmessage,Ge):G==="error"&&Se(h,h.onerror,Ge),q===ve)return}Ae="",G=""}Q=ue===13?oe:se}else Q===se&&(Gt=z,Q=_e),Q===_e?ue===58&&(Le=z+1,Q=et):Q===et&&(Q=be)}}},yr=function(V){if(q===ce||q===W){q=Ie,k!==0&&(i(k),k=0),k=n(function(){it()},T),T=Fe(Math.min(v*16,T*2)),h.readyState=W;var j=new Ke("error",{error:V});h.dispatchEvent(j),Se(h,h.onerror,j),V!=null&&console.error(V)}},jt=function(){q=ve,C!=null&&(C.abort(),C=void 0),k!==0&&(i(k),k=0),h.readyState=ve},it=function(){if(k=0,q!==Ie){if(!O&&C!=null)yr(new Error("No activity within "+w+" milliseconds. "+(q===W?"No response received.":I+" chars received.")+" Reconnecting.")),C!=null&&(C.abort(),C=void 0);else{var V=Math.max((O||Date.now())+w-Date.now(),1);O=!1,k=n(function(){it()},V)}return}O=!1,I=0,k=n(function(){it()},w),q=W,Ae="",G="",nt=M,mt="",Gt=0,Le=0,Q=se;var j=b;if(b.slice(0,5)!=="data:"&&b.slice(0,5)!=="blob:"&&M!==""){var ae=b.indexOf("?");j=ae===-1?b:b.slice(0,ae+1)+b.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(xe,Ge){return Ge===y?"":xe}),j+=(b.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(M)}var ue=h.withCredentials,Y={};Y.Accept="text/event-stream";var z=h.headers;if(z!=null)for(var Ee in z)Object.prototype.hasOwnProperty.call(z,Ee)&&(Y[Ee]=z[Ee]);try{C=L.open(S,Un,Gn,yr,j,ue,Y)}catch(xe){throw jt(),xe}};h.url=b,h.readyState=W,h.withCredentials=p,h.headers=_,h._close=jt,it()}J.prototype=Object.create(me.prototype),J.prototype.CONNECTING=W,J.prototype.OPEN=ce,J.prototype.CLOSED=ve,J.prototype.close=function(){this._close()},J.CONNECTING=W,J.OPEN=ce,J.CLOSED=ve,J.prototype.withCredentials=void 0;var Ue=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Ue=J),function(h){{var b=h(t);b!==void 0&&(e.exports=b)}}(function(h){h.EventSourcePolyfill=J,h.NativeEventSource=l,h.EventSource=Ue})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ii:globalThis)})(pr,pr.exports);var xs=pr.exports;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsFilterController-DjLEXDTC.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-filter-controller")&&customElements.define("casino-tournaments-filter-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsListController-DWgmnfOc.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",t.element)})}const Wr=e=>e.length>0&&e!="false";function ws(e){Kr(e,"svelte-v0e19m","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}")}function Ts(e){let t,r,n,i,o,s,a=e[19]&&qr(e);function l(m,E){return m[20]==0?Hs:As}let u=l(e),c=u(e),d=!e[21]&&Zr(e);return{c(){t=X("div"),r=X("div"),n=X("div"),a&&a.c(),i=Tt(),o=X("div"),c.c(),s=Tt(),d&&d.c(),U(n,"class","FirstRow"),U(n,"part","FirstRow"),U(o,"class","SecondRow"),U(o,"part","SecondRow"),U(r,"class","Tournaments"),U(r,"part","Tournaments"),U(t,"class","TournamentsWrapper"),U(t,"part","TournamentsWrapper")},m(m,E){he(m,t,E),ee(t,r),ee(r,n),a&&a.m(n,null),ee(r,i),ee(r,o),c.m(o,null),ee(r,s),d&&d.m(r,null)},p(m,E){m[19]?a?a.p(m,E):(a=qr(m),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u===(u=l(m))&&c?c.p(m,E):(c.d(1),c=u(m),c&&(c.c(),c.m(o,null))),m[21]?d&&(d.d(1),d=null):d?d.p(m,E):(d=Zr(m),d.c(),d.m(r,null))},d(m){m&&te(t),a&&a.d(),c.d(),d&&d.d()}}}function Ss(e){let t,r=e[22]("500")+"",n,i,o,s;return{c(){t=X("p"),n=Pe(r),i=Tt(),o=X("p"),s=Pe(e[17])},m(a,l){he(a,t,l),ee(t,n),he(a,i,l),he(a,o,l),ee(o,s)},p(a,l){l[0]&4194304&&r!==(r=a[22]("500")+"")&&Xe(n,r),l[0]&131072&&Xe(s,a[17])},d(a){a&&(te(t),te(i),te(o))}}}function qr(e){let t;return{c(){t=X("casino-tournaments-filter-controller"),x(t,"clientstyling",e[13]),x(t,"clientstylingurl",e[14]),x(t,"translationurl",e[4]),x(t,"filters",Cs),x(t,"activefilters",e[6]),x(t,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(r,n){he(r,t,n)},p(r,n){n[0]&8192&&x(t,"clientstyling",r[13]),n[0]&16384&&x(t,"clientstylingurl",r[14]),n[0]&16&&x(t,"translationurl",r[4]),n[0]&64&&x(t,"activefilters",r[6])},d(r){r&&te(t)}}}function As(e){let t;return{c(){t=X("casino-tournaments-list-controller"),x(t,"clientstyling",e[13]),x(t,"clientstylingurl",e[14]),x(t,"translationurl",e[4]),x(t,"userid",e[1]),x(t,"numberoftournaments",e[5]),x(t,"loginurl",e[9]),x(t,"loginevent",e[7]),x(t,"registerurl",e[10]),x(t,"registerevent",e[8]),x(t,"lang",e[3]),x(t,"currency",e[11]),x(t,"keepbrowsercontext",e[12]),x(t,"session",e[0]),x(t,"endpoint",e[2]),x(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
|
|
25
25
|
TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
|
|
26
26
|
TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
|
|
27
27
|
TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`)},m(r,n){he(r,t,n)},p(r,n){n[0]&8192&&x(t,"clientstyling",r[13]),n[0]&16384&&x(t,"clientstylingurl",r[14]),n[0]&16&&x(t,"translationurl",r[4]),n[0]&2&&x(t,"userid",r[1]),n[0]&32&&x(t,"numberoftournaments",r[5]),n[0]&512&&x(t,"loginurl",r[9]),n[0]&128&&x(t,"loginevent",r[7]),n[0]&1024&&x(t,"registerurl",r[10]),n[0]&256&&x(t,"registerevent",r[8]),n[0]&8&&x(t,"lang",r[3]),n[0]&2048&&x(t,"currency",r[11]),n[0]&4096&&x(t,"keepbrowsercontext",r[12]),n[0]&1&&x(t,"session",r[0]),n[0]&4&&x(t,"endpoint",r[2])},d(r){r&&te(t)}}}function Hs(e){let t;function r(o,s){return o[18]?Os:Ps}let n=r(e),i=n(e);return{c(){i.c(),t=en()},m(o,s){i.m(o,s),he(o,t,s)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&te(t),i.d(o)}}}function Ps(e){let t,r=e[22]("noTournaments")+"",n;return{c(){t=X("p"),n=Pe(r),U(t,"class","NoTournaments"),U(t,"part","NoTournaments")},m(i,o){he(i,t,o),ee(t,n)},p(i,o){o[0]&4194304&&r!==(r=i[22]("noTournaments")+"")&&Xe(n,r)},d(i){i&&te(t)}}}function Os(e){let t,r=e[22]("loading")+"",n;return{c(){t=X("p"),n=Pe(r),U(t,"class","LoadingMessage"),U(t,"part","LoadingMessage")},m(i,o){he(i,t,o),ee(t,n)},p(i,o){o[0]&4194304&&r!==(r=i[22]("loading")+"")&&Xe(n,r)},d(i){i&&te(t)}}}function Zr(e){let t,r,n,i=e[22]("showMore")+"",o,s,a;return{c(){t=X("div"),r=X("div"),n=X("button"),o=Pe(i),U(n,"class","ShowMoreButton"),U(n,"part","ShowMoreButton"),U(n,"title","Show More"),U(r,"class","CenterButton"),U(r,"part","CenterButton"),U(t,"class","ThirdRow"),U(t,"part","ThirdRow")},m(l,u){he(l,t,u),ee(t,r),ee(r,n),ee(n,o),s||(a=St(n,"click",e[32]),s=!0)},p(l,u){u[0]&4194304&&i!==(i=l[22]("showMore")+"")&&Xe(o,i)},d(l){l&&te(t),s=!1,a()}}}function Bs(e){let t;function r(o,s){return o[16]?Ss:Ts}let n=r(e),i=n(e);return{c(){t=X("div"),i.c()},m(o,s){he(o,t,s),i.m(t,null),e[33](t)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t,null)))},i:le,o:le,d(o){o&&te(t),i.d(),e[33](null)}}}let Cs="All,Scheduled,Ongoing,Finished";function Is(e,t,r){let n;Yr(e,Rn,f=>r(22,n=f));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{lang:a="en"}=t,{translationurl:l=""}=t,{numberoftournaments:u="6"}=t,{showmorestep:c="2"}=t,{filters:d="All"}=t,{loginevent:m=""}=t,{registerevent:E=""}=t,{loginurl:B=""}=t,{registerurl:P=""}=t,{currency:re="EUR"}=t,{keepbrowsercontext:pe="false"}=t,{sorttype:ie=""}=t,{sortorder:N=""}=t,{starttimeafter:$=""}=t,{showanonymoustournaments:Z="true"}=t,{clientstyling:fe=""}=t,{clientstylingurl:ge=""}=t,{delaybeforeload:De=1e3}=t,Oe=!1,me="",Be=!1,ne="",ct=window.navigator.userAgent,Ce=!0,Ke=!1,Ie=!1,W,ce=0,ve=!1,oe=6,se=!0,_e=[],et,be,tt=!1,dt;Es({withLocale:"en",translations:{}});const Dt=()=>{fetch(l).then(S=>S.json()).then(S=>{dt=S,Object.keys(S).forEach(L=>{Qt(L,S[L])})}).catch(S=>{console.log(S)})},rt=f=>{f&&Object.keys(f).forEach(S=>{Qt(S,f[S])})};Object.keys(zr).forEach(f=>{Qt(f,zr[f])});const Fe=f=>{f.data&&f.data.type==="UserSessionID"&&(Be=!0,r(30,ne=f.data.session),f.data.userid,J(s,0,oe)),f.data&&f.data.type==="TournamentsFiltersSelected"&&(_e=f.data.filters,J(s,0,oe)),f.data&&f.data.type==="TournamentThumbnailMounted"&&rt(dt)},Se=f=>f=="Scheduled"?"Unstarted":f=="Ongoing"?"Running":"Closing|Closed",J=(f,S,L)=>Ne(this,null,function*(){r(18,Ce=!0),r(20,ce=0);const C=yield pt(f,S,L);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:C.items},window.location.href)},50),r(18,Ce=!1)}),Ft=(f,S,L)=>Ne(this,null,function*(){const C=yield pt(f,S,L);window.postMessage({type:"TournamentListShowMore",tournamentList:C.items},window.location.href)}),Ut=()=>{const f=new Date;return $?f.setDate(f.getDate()-Number($)):f.setMonth(f.getMonth()-1),f.toISOString().substring(0,10)},pt=(f,S,L)=>Ne(this,null,function*(){let C=new URL(`${f}/v1/tournaments`),k=new Headers;C.searchParams.append("pagination",`offset=${S},limit=${L}`),C.searchParams.append("sortField","StartTime"),C.searchParams.append("sortOrder",N||"desc"),C.searchParams.append("language",a);const q={StartTimeAfter:Ut()};!Wr(i)&&Z==="false"&&(q.tags="no-role-set"),_e.length>0&&_e[0]!="All"&&(q.state=_e.map(G=>Se(G)).join("|"));const Ae=Object.keys(q).map(G=>`${G}=${q[G]}`).join(",");return C.searchParams.append("filter",Ae),C.searchParams.append("platform",Dn(ct)),ie&&C.searchParams.append("sortType",ie),Be&&k.append("X-SessionID",ne),fetch(C,{method:"GET",headers:k,cache:"no-cache"}).then(G=>G.json()).then(G=>(et=C.searchParams.toString(),r(20,ce=G.total),oe>=ce?r(21,se=!0):r(21,se=!1),Ie||h(),G))}),Ue=f=>{if(f.type!="message")return;let S=f.data;if(S)try{let L=JSON.parse(S);if(!L||!L.item)return;let C=L.item;L.messageType=="TournamentUpdate"&&window.postMessage({type:"UpdateTournamentView",tournamentData:C},window.location.href),L.messageType=="TournamentRemove"&&window.postMessage({type:"TournamentList",tournamentList:L.items},window.location.href)}catch(L){console.error(L)}},h=()=>{Ie=!0,setTimeout(()=>{Ie=!1},1e3),be&&(be.removeEventListener("message",Ue),be.close());let f=`${s}/v1/tournaments/updates?${et}`;be=new xs.EventSourcePolyfill(f,{headers:{accept:"text/event-stream","X-SessionId":i}}),typeof be!="undefined"&&be.addEventListener("message",Ue)},b=()=>Ne(this,null,function*(){let f=oe;const S=parseInt(c,10);oe+=S,window.postMessage({type:"TournamentsPagination",offset:0,limit:oe},window.location.href),yield Ft(s,f,S),oe>=ce&&r(21,se=!0)}),g=()=>(s||(r(17,me="Endpoint is missing! Please provide a valid endpointURL."),r(16,Oe=!0),console.error(me)),(!a||a.length!=2)&&(r(17,me="Language is missing! Please provide a valid language (alpha2code)"),r(16,Oe=!0),console.error(me)),Oe),p=()=>{if(!ve)return!1;g()||(oe=parseInt(u,10),Xr(a),J(s,0,oe))},y=()=>{Xr(a)},v=()=>{_e=d.split(","),r(19,Ke=!0)},w=()=>{Wr(i)?(Be=!0,r(30,ne=i)):(Be=!1,r(30,ne=""))},M=()=>Ne(this,null,function*(){tt||(tt=!0,yield p(),tt=!1)}),T=()=>{let f=document.createElement("style");f.innerHTML=fe,W.appendChild(f)},O=()=>{let f=new URL(ge),S=document.createElement("style");fetch(f.href).then(L=>L.text()).then(L=>{S.innerHTML=L,setTimeout(()=>{W.appendChild(S)},1),setTimeout(()=>{},500)})};tn(()=>(setTimeout(()=>{r(31,ve=!0)},De),window.addEventListener("message",Fe,!1),()=>{window.removeEventListener("message",Fe),be&&(be.removeEventListener("message",Ue),be.close())}));const I=()=>b();function _(f){At[f?"unshift":"push"](()=>{W=f,r(15,W)})}return e.$$set=f=>{"session"in f&&r(0,i=f.session),"userid"in f&&r(1,o=f.userid),"endpoint"in f&&r(2,s=f.endpoint),"lang"in f&&r(3,a=f.lang),"translationurl"in f&&r(4,l=f.translationurl),"numberoftournaments"in f&&r(5,u=f.numberoftournaments),"showmorestep"in f&&r(24,c=f.showmorestep),"filters"in f&&r(6,d=f.filters),"loginevent"in f&&r(7,m=f.loginevent),"registerevent"in f&&r(8,E=f.registerevent),"loginurl"in f&&r(9,B=f.loginurl),"registerurl"in f&&r(10,P=f.registerurl),"currency"in f&&r(11,re=f.currency),"keepbrowsercontext"in f&&r(12,pe=f.keepbrowsercontext),"sorttype"in f&&r(25,ie=f.sorttype),"sortorder"in f&&r(26,N=f.sortorder),"starttimeafter"in f&&r(27,$=f.starttimeafter),"showanonymoustournaments"in f&&r(28,Z=f.showanonymoustournaments),"clientstyling"in f&&r(13,fe=f.clientstyling),"clientstylingurl"in f&&r(14,ge=f.clientstylingurl),"delaybeforeload"in f&&r(29,De=f.delaybeforeload)},e.$$.update=()=>{e.$$.dirty[0]&40960&&W&&fe&&T(),e.$$.dirty[0]&49152&&W&&ge&&O(),e.$$.dirty[0]&2,e.$$.dirty[0]&64&&d&&v(),e.$$.dirty[0]&8&&a&&y(),e.$$.dirty[0]&16&&l&&Dt(),e.$$.dirty[1]&1&&ve&&p(),e.$$.dirty[0]&1&&(i===""||i)&&w(),e.$$.dirty[0]&1073741824&&(ne===""||ne)&&M(),e.$$.dirty[0]&285212716&&s&&u&&c&&a&&Z&&M()},[i,o,s,a,l,u,d,m,E,B,P,re,pe,fe,ge,W,Oe,me,Ce,Ke,ce,se,n,b,c,ie,N,$,Z,De,ne,ve,I,_]}class Fn extends sn{constructor(t){super(),rn(this,t,Is,Bs,mr,{session:0,userid:1,endpoint:2,lang:3,translationurl:4,numberoftournaments:5,showmorestep:24,filters:6,loginevent:7,registerevent:8,loginurl:9,registerurl:10,currency:11,keepbrowsercontext:12,sorttype:25,sortorder:26,starttimeafter:27,showanonymoustournaments:28,clientstyling:13,clientstylingurl:14,delaybeforeload:29},ws,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),R()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),R()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),R()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),R()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),R()}get numberoftournaments(){return this.$$.ctx[5]}set numberoftournaments(t){this.$$set({numberoftournaments:t}),R()}get showmorestep(){return this.$$.ctx[24]}set showmorestep(t){this.$$set({showmorestep:t}),R()}get filters(){return this.$$.ctx[6]}set filters(t){this.$$set({filters:t}),R()}get loginevent(){return this.$$.ctx[7]}set loginevent(t){this.$$set({loginevent:t}),R()}get registerevent(){return this.$$.ctx[8]}set registerevent(t){this.$$set({registerevent:t}),R()}get loginurl(){return this.$$.ctx[9]}set loginurl(t){this.$$set({loginurl:t}),R()}get registerurl(){return this.$$.ctx[10]}set registerurl(t){this.$$set({registerurl:t}),R()}get currency(){return this.$$.ctx[11]}set currency(t){this.$$set({currency:t}),R()}get keepbrowsercontext(){return this.$$.ctx[12]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),R()}get sorttype(){return this.$$.ctx[25]}set sorttype(t){this.$$set({sorttype:t}),R()}get sortorder(){return this.$$.ctx[26]}set sortorder(t){this.$$set({sortorder:t}),R()}get starttimeafter(){return this.$$.ctx[27]}set starttimeafter(t){this.$$set({starttimeafter:t}),R()}get showanonymoustournaments(){return this.$$.ctx[28]}set showanonymoustournaments(t){this.$$set({showanonymoustournaments:t}),R()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}get delaybeforeload(){return this.$$.ctx[29]}set delaybeforeload(t){this.$$set({delaybeforeload:t}),R()}}on(Fn,{session:{},userid:{},endpoint:{},lang:{},translationurl:{},numberoftournaments:{},showmorestep:{},filters:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},sorttype:{},sortorder:{},starttimeafter:{},showanonymoustournaments:{},clientstyling:{},clientstylingurl:{},delaybeforeload:{}},[],[],!0);const Ls=Object.freeze(Object.defineProperty({__proto__:null,default:Fn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Me;exports.$format=Rn;exports.$locale=Te;exports.CasinoTournamentsController_ce=Ls;exports.SvelteComponent=sn;exports.action_destroyer=qn;exports.addMessages=gr;exports.add_iframe_resize_listener=ri;exports.add_render_callback=Ht;exports.append=ee;exports.append_styles=Kr;exports.attr=U;exports.binding_callbacks=At;exports.component_subscribe=Yr;exports.create_custom_element=on;exports.destroy_each=Qn;exports.detach=te;exports.element=X;exports.empty=en;exports.ensure_array_like=ci;exports.flush=R;exports.getDevice=Dn;exports.init=rn;exports.insert=he;exports.isMobile=_s;exports.is_function=ht;exports.listen=St;exports.noop=le;exports.onMount=tn;exports.run_all=Je;exports.safe_not_equal=mr;exports.set_custom_element_data=x;exports.set_data=Xe;exports.set_style=ei;exports.space=Tt;exports.src_url_equal=zn;exports.svg_element=Yn;exports.text=Pe;exports.toggle_class=ni;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as X, S as Y, i as x, s as $, f as z, b as ee, n as L, d as k, c as T, e as S, g as u, h as C, j as le, k as I, l as te, m as B, o as F, t as E, p as N, q as ie, r as ne, u as P, v as se, $ as oe } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as X, S as Y, i as x, s as $, f as z, b as ee, n as L, d as k, c as T, e as S, g as u, h as C, j as le, k as I, l as te, m as B, o as F, t as E, p as N, q as ie, r as ne, u as P, v as se, $ as oe } from "./CasinoTournamentsController-2bTwgvFF.js";
|
|
2
2
|
function U(e, l) {
|
|
3
3
|
X(e, l);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as X, S as Y, i as x, f as z, s as $, c as ee, b as le, n as L, d as k, e as T, g as S, h as u, j as C, k as te, l as I, m as ie, o as B, p as F, t as E, q as N, r as ne, u as se, v as P, $ as oe } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as X, S as Y, i as x, f as z, s as $, c as ee, b as le, n as L, d as k, e as T, g as S, h as u, j as C, k as te, l as I, m as ie, o as B, p as F, t as E, q as N, r as ne, u as se, v as P, $ as oe } from "./CasinoTournamentsController-BULZ_y4b.js";
|
|
2
2
|
function U(e, l) {
|
|
3
3
|
X(e, l);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-BWrEQTp7.cjs");function T(t,l){e.addMessages(t,l)}const A={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"},"en-us":{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"}};function H(t){e.append_styles(t,"svelte-szp116","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emw--color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emw--color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);cursor:pointer}.FiltersController{color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}")}function N(t,l,i){const n=t.slice();return n[22]=l[i],n[24]=i,n}function S(t){let l,i,n=t[4]("tournaments")+"",s,F,M,b=e.ensure_array_like(t[1]),a=[];for(let o=0;o<b.length;o+=1)a[o]=L(N(t,b,o));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),F=e.text(":"),M=e.space();for(let o=0;o<a.length;o+=1)a[o].c();e.attr(i,"class","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(o,_){e.insert(o,l,_),e.append(l,i),e.append(i,s),e.append(i,F),e.append(l,M);for(let u=0;u<a.length;u+=1)a[u]&&a[u].m(l,null)},p(o,_){if(_&16&&n!==(n=o[4]("tournaments")+"")&&e.set_data(s,n),_&126){b=e.ensure_array_like(o[1]);let u;for(u=0;u<b.length;u+=1){const f=N(o,b,u);a[u]?a[u].p(f,_):(a[u]=L(f),a[u].c(),a[u].m(l,null))}for(;u<a.length;u+=1)a[u].d(1);a.length=b.length}},d(o){o&&e.detach(l),e.destroy_each(a,o)}}}function E(t){let l,i;return{c(){l=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","16"),e.attr(l,"height","16"),e.attr(l,"fill","currentColor"),e.attr(l,"class","bi bi-check"),e.attr(l,"part","bi bi-check"),e.attr(l,"viewBox","0 0 16 16")},m(n,s){e.insert(n,l,s),e.append(l,i)},d(n){n&&e.detach(l)}}}function z(t){let l=t[4]("scheduled")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("scheduled")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function O(t){let l=t[4]("ongoing")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("ongoing")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function B(t){let l=t[4]("finished")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("finished")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function j(t){let l=t[4]("all")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("all")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function L(t){let l,i,n,s,F,M,b,a,o,_,u,f,c=(t[2][t[24]]==1||t[3]&&t[24]==0)&&E(),g=t[22]=="Scheduled"&&z(t),m=t[22]=="Ongoing"&&O(t),h=t[22]=="Finished"&&B(t),p=t[22]=="All"&&j(t);function k(){return t[12](t[22],t[24])}return{c(){l=e.element("li"),i=e.element("button"),c&&c.c(),n=e.space(),s=e.element("div"),g&&g.c(),F=e.space(),m&&m.c(),M=e.space(),h&&h.c(),b=e.space(),p&&p.c(),_=e.space(),e.attr(s,"class","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(s,"part","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"class",a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,C){e.insert(v,l,C),e.append(l,i),c&&c.m(i,null),e.append(i,n),e.append(i,s),g&&g.m(s,null),e.append(s,F),m&&m.m(s,null),e.append(s,M),h&&h.m(s,null),e.append(s,b),p&&p.m(s,null),e.append(l,_),u||(f=e.listen(l,"click",k),u=!0)},p(v,C){t=v,t[2][t[24]]==1||t[3]&&t[24]==0?c||(c=E(),c.c(),c.m(i,n)):c&&(c.d(1),c=null),t[22]=="Scheduled"?g?g.p(t,C):(g=z(t),g.c(),g.m(s,F)):g&&(g.d(1),g=null),t[22]=="Ongoing"?m?m.p(t,C):(m=O(t),m.c(),m.m(s,M)):m&&(m.d(1),m=null),t[22]=="Finished"?h?h.p(t,C):(h=B(t),h.c(),h.m(s,b)):h&&(h.d(1),h=null),t[22]=="All"?p?p.p(t,C):(p=j(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),C&12&&a!==(a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",a),C&12&&o!==(o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",o)},d(v){v&&e.detach(l),c&&c.d(),g&&g.d(),m&&m.d(),h&&h.d(),p&&p.d(),u=!1,f()}}}function R(t){let l,i=t[1].length>0&&S(t);return{c(){l=e.element("div"),i&&i.c(),e.attr(l,"class","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(n,s){e.insert(n,l,s),i&&i.m(l,null),t[13](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=S(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(n){n&&e.detach(l),i&&i.d(),t[13](null)}}}function q(t,l,i){let n;e.component_subscribe(t,e.$format,r=>i(4,n=r));let{filters:s=""}=l,{activefilters:F=""}=l,{translationurl:M=""}=l,{clientstyling:b=""}=l,{clientstylingurl:a=""}=l,o,_=[],u=0,f=new Array(100),c=!0,g=window.navigator.userAgent;const m=()=>{fetch(M).then(d=>d.json()).then(d=>{Object.keys(d).forEach(y=>{T(y,d[y])})}).catch(d=>{console.log(d)})};Object.keys(A).forEach(r=>{T(r,A[r])});const h=(r,d)=>{if(d==0)i(3,c=!0),i(2,f=new Array(u)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,c=!1),f[d]==1?(i(2,f[d]=0,f),f.indexOf(1)==-1&&i(3,c=!0)):i(2,f[d]=1,f),f.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let y=[];for(let w=0;w<_.length;w++)f[w]==1&&y.push(_[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:y},window.location.href)}},p=()=>{i(1,_=s.split(",")),u=_.length},k=()=>{let r=F.split(",");i(2,f=new Array(u)),r.indexOf("All")!=-1?i(3,c=!0):(i(3,c=!1),r.forEach(d=>{let y=_.indexOf(d);y>0&&i(2,f[y]=1,f)}))},v=()=>{let r=document.createElement("style");r.innerHTML=b,o.appendChild(r)},C=()=>{let r=new URL(a),d=document.createElement("style");fetch(r.href).then(y=>y.text()).then(y=>{d.innerHTML=y,setTimeout(()=>{o.appendChild(d)},1),setTimeout(()=>{},500)})},I=(r,d)=>h(r,d);function U(r){e.binding_callbacks[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"filters"in r&&i(7,s=r.filters),"activefilters"in r&&i(8,F=r.activefilters),"translationurl"in r&&i(9,M=r.translationurl),"clientstyling"in r&&i(10,b=r.clientstyling),"clientstylingurl"in r&&i(11,a=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1025&&o&&b&&v(),t.$$.dirty&2049&&o&&a&&C(),t.$$.dirty&512&&M&&m(),t.$$.dirty&128&&s&&p(),t.$$.dirty&256&&F&&k()},[o,_,f,c,n,g,h,s,F,M,b,a,I,U]}class P extends e.SvelteComponent{constructor(l){super(),e.init(this,l,q,R,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},H)}get filters(){return this.$$.ctx[7]}set filters(l){this.$$set({filters:l}),e.flush()}get activefilters(){return this.$$.ctx[8]}set activefilters(l){this.$$set({activefilters:l}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}}e.create_custom_element(P,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CYyTUNIz.cjs");function T(t,l){e.addMessages(t,l)}const A={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"},"en-us":{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"}};function H(t){e.append_styles(t,"svelte-szp116","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emw--color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emw--color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);cursor:pointer}.FiltersController{color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}")}function N(t,l,i){const n=t.slice();return n[22]=l[i],n[24]=i,n}function S(t){let l,i,n=t[4]("tournaments")+"",s,F,M,b=e.ensure_array_like(t[1]),a=[];for(let o=0;o<b.length;o+=1)a[o]=L(N(t,b,o));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),F=e.text(":"),M=e.space();for(let o=0;o<a.length;o+=1)a[o].c();e.attr(i,"class","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(o,_){e.insert(o,l,_),e.append(l,i),e.append(i,s),e.append(i,F),e.append(l,M);for(let u=0;u<a.length;u+=1)a[u]&&a[u].m(l,null)},p(o,_){if(_&16&&n!==(n=o[4]("tournaments")+"")&&e.set_data(s,n),_&126){b=e.ensure_array_like(o[1]);let u;for(u=0;u<b.length;u+=1){const f=N(o,b,u);a[u]?a[u].p(f,_):(a[u]=L(f),a[u].c(),a[u].m(l,null))}for(;u<a.length;u+=1)a[u].d(1);a.length=b.length}},d(o){o&&e.detach(l),e.destroy_each(a,o)}}}function E(t){let l,i;return{c(){l=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","16"),e.attr(l,"height","16"),e.attr(l,"fill","currentColor"),e.attr(l,"class","bi bi-check"),e.attr(l,"part","bi bi-check"),e.attr(l,"viewBox","0 0 16 16")},m(n,s){e.insert(n,l,s),e.append(l,i)},d(n){n&&e.detach(l)}}}function z(t){let l=t[4]("scheduled")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("scheduled")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function O(t){let l=t[4]("ongoing")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("ongoing")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function B(t){let l=t[4]("finished")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("finished")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function j(t){let l=t[4]("all")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("all")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function L(t){let l,i,n,s,F,M,b,a,o,_,u,f,c=(t[2][t[24]]==1||t[3]&&t[24]==0)&&E(),g=t[22]=="Scheduled"&&z(t),m=t[22]=="Ongoing"&&O(t),h=t[22]=="Finished"&&B(t),p=t[22]=="All"&&j(t);function k(){return t[12](t[22],t[24])}return{c(){l=e.element("li"),i=e.element("button"),c&&c.c(),n=e.space(),s=e.element("div"),g&&g.c(),F=e.space(),m&&m.c(),M=e.space(),h&&h.c(),b=e.space(),p&&p.c(),_=e.space(),e.attr(s,"class","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(s,"part","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"class",a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,C){e.insert(v,l,C),e.append(l,i),c&&c.m(i,null),e.append(i,n),e.append(i,s),g&&g.m(s,null),e.append(s,F),m&&m.m(s,null),e.append(s,M),h&&h.m(s,null),e.append(s,b),p&&p.m(s,null),e.append(l,_),u||(f=e.listen(l,"click",k),u=!0)},p(v,C){t=v,t[2][t[24]]==1||t[3]&&t[24]==0?c||(c=E(),c.c(),c.m(i,n)):c&&(c.d(1),c=null),t[22]=="Scheduled"?g?g.p(t,C):(g=z(t),g.c(),g.m(s,F)):g&&(g.d(1),g=null),t[22]=="Ongoing"?m?m.p(t,C):(m=O(t),m.c(),m.m(s,M)):m&&(m.d(1),m=null),t[22]=="Finished"?h?h.p(t,C):(h=B(t),h.c(),h.m(s,b)):h&&(h.d(1),h=null),t[22]=="All"?p?p.p(t,C):(p=j(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),C&12&&a!==(a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",a),C&12&&o!==(o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",o)},d(v){v&&e.detach(l),c&&c.d(),g&&g.d(),m&&m.d(),h&&h.d(),p&&p.d(),u=!1,f()}}}function R(t){let l,i=t[1].length>0&&S(t);return{c(){l=e.element("div"),i&&i.c(),e.attr(l,"class","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(n,s){e.insert(n,l,s),i&&i.m(l,null),t[13](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=S(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(n){n&&e.detach(l),i&&i.d(),t[13](null)}}}function q(t,l,i){let n;e.component_subscribe(t,e.$format,r=>i(4,n=r));let{filters:s=""}=l,{activefilters:F=""}=l,{translationurl:M=""}=l,{clientstyling:b=""}=l,{clientstylingurl:a=""}=l,o,_=[],u=0,f=new Array(100),c=!0,g=window.navigator.userAgent;const m=()=>{fetch(M).then(d=>d.json()).then(d=>{Object.keys(d).forEach(y=>{T(y,d[y])})}).catch(d=>{console.log(d)})};Object.keys(A).forEach(r=>{T(r,A[r])});const h=(r,d)=>{if(d==0)i(3,c=!0),i(2,f=new Array(u)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,c=!1),f[d]==1?(i(2,f[d]=0,f),f.indexOf(1)==-1&&i(3,c=!0)):i(2,f[d]=1,f),f.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let y=[];for(let w=0;w<_.length;w++)f[w]==1&&y.push(_[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:y},window.location.href)}},p=()=>{i(1,_=s.split(",")),u=_.length},k=()=>{let r=F.split(",");i(2,f=new Array(u)),r.indexOf("All")!=-1?i(3,c=!0):(i(3,c=!1),r.forEach(d=>{let y=_.indexOf(d);y>0&&i(2,f[y]=1,f)}))},v=()=>{let r=document.createElement("style");r.innerHTML=b,o.appendChild(r)},C=()=>{let r=new URL(a),d=document.createElement("style");fetch(r.href).then(y=>y.text()).then(y=>{d.innerHTML=y,setTimeout(()=>{o.appendChild(d)},1),setTimeout(()=>{},500)})},I=(r,d)=>h(r,d);function U(r){e.binding_callbacks[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"filters"in r&&i(7,s=r.filters),"activefilters"in r&&i(8,F=r.activefilters),"translationurl"in r&&i(9,M=r.translationurl),"clientstyling"in r&&i(10,b=r.clientstyling),"clientstylingurl"in r&&i(11,a=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1025&&o&&b&&v(),t.$$.dirty&2049&&o&&a&&C(),t.$$.dirty&512&&M&&m(),t.$$.dirty&128&&s&&p(),t.$$.dirty&256&&F&&k()},[o,_,f,c,n,g,h,s,F,M,b,a,I,U]}class P extends e.SvelteComponent{constructor(l){super(),e.init(this,l,q,R,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},H)}get filters(){return this.$$.ctx[7]}set filters(l){this.$$set({filters:l}),e.flush()}get activefilters(){return this.$$.ctx[8]}set activefilters(l){this.$$set({activefilters:l}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}}e.create_custom_element(P,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=P;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Ks, S as $s, i as er, s as tr, f as R, b as sr, n as At, d as Ze, c as Be, e as wt, g as Gt, j as rr, w as nr, k as Vt, l as ir, x as ar, q as or, y, m as lr, o as ur, t as dr, v as hr, $ as fr } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as Ks, S as $s, i as er, s as tr, f as R, b as sr, n as At, d as Ze, c as Be, e as wt, g as Gt, j as rr, w as nr, k as Vt, l as ir, x as ar, q as or, y, m as lr, o as ur, t as dr, v as hr, $ as fr } from "./CasinoTournamentsController-2bTwgvFF.js";
|
|
2
2
|
function cr(e) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -2573,7 +2573,7 @@ if (typeof window != "undefined") {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
};
|
|
2575
2575
|
};
|
|
2576
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-
|
|
2576
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-eBnrMpwv.js").then(
|
|
2577
2577
|
({ default: t }) => {
|
|
2578
2578
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
2579
2579
|
"casino-tournaments-thumbnail-controller",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./CasinoTournamentsController-CYyTUNIz.cjs");function Zs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
2
2
|
//! version : 2.29.4
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
@@ -7,7 +7,7 @@ var qt;function d(){return qt.apply(null,arguments)}function Bs(e){qt=e}function
|
|
|
7
7
|
[`+a+"] ";for(i in arguments[0])w(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];r.push(n)}Qt(e+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
9
|
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Et={};function Xt(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),Et[e]||(Qt(t),Et[e]=!0)}d.suppressDeprecationWarnings=!1;d.deprecationHandler=null;function J(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Js(e){var t,s;for(s in e)w(e,s)&&(t=e[s],J(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ut(e,t){var s=ne({},e),r;for(r in t)w(t,r)&&(de(e[r])&&de(t[r])?(s[r]={},ne(s[r],e[r]),ne(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)w(e,r)&&!w(t,r)&&de(e[r])&&(s[r]=ne({},s[r]));return s}function wt(e){e!=null&&this.set(e)}var dt;Object.keys?dt=Object.keys:dt=function(e){var t,s=[];for(t in e)w(e,t)&&s.push(t);return s};var Qs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Xs(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return J(r)?r.call(t,s):r}function B(e,t,s){var r=""+Math.abs(e),n=t-r.length,a=e>=0;return(a?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var St=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,at={},_e={};function f(e,t,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),e&&(_e[e]=n),t&&(_e[t[0]]=function(){return B(n.apply(this,arguments),t[1],t[2])}),s&&(_e[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Ks(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $s(e){var t=e.match(St),s,r;for(s=0,r=t.length;s<r;s++)_e[t[s]]?t[s]=_e[t[s]]:t[s]=Ks(t[s]);return function(n){var a="",i;for(i=0;i<r;i++)a+=J(t[i])?t[i].call(n,e):t[i];return a}}function Ce(e,t){return e.isValid()?(t=Kt(t,e.localeData()),at[t]=at[t]||$s(t),at[t](e)):e.localeData().invalidDate()}function Kt(e,t){var s=5;function r(n){return t.longDateFormat(n)||n}for(Fe.lastIndex=0;s>=0&&Fe.test(e);)e=e.replace(Fe,r),Fe.lastIndex=0,s-=1;return e}var er={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"};function tr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(St).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var sr="Invalid date";function rr(){return this._invalidDate}var nr="%d",ar=/\d{1,2}/;function ir(e){return this._ordinal.replace("%d",e)}var or={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function lr(e,t,s,r){var n=this._relativeTime[s];return J(n)?n(e,t,s,r):n.replace(/%d/i,e)}function ur(e,t){var s=this._relativeTime[e>0?"future":"past"];return J(s)?s(t):s.replace(/%s/i,t)}var De={};function x(e,t){var s=e.toLowerCase();De[s]=De[s+"s"]=De[t]=e}function I(e){return typeof e=="string"?De[e]||De[e.toLowerCase()]:void 0}function kt(e){var t={},s,r;for(r in e)w(e,r)&&(s=I(r),s&&(t[s]=e[r]));return t}var $t={};function P(e,t){$t[e]=t}function dr(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:$t[s]});return t.sort(function(r,n){return r.priority-n.priority}),t}function Ze(e){return e%4===0&&e%100!==0||e%400===0}function L(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function y(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=L(t)),s}function we(e,t){return function(s){return s!=null?(es(this,e,s),d.updateOffset(this,t),this):Ue(this,e)}}function Ue(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function es(e,t,s){e.isValid()&&!isNaN(s)&&(t==="FullYear"&&Ze(e.year())&&e.month()===1&&e.date()===29?(s=y(s),e._d["set"+(e._isUTC?"UTC":"")+t](s,e.month(),Ke(s,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](s))}function hr(e){return e=I(e),J(this[e])?this[e]():this}function fr(e,t){if(typeof e=="object"){e=kt(e);var s=dr(e),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](e[s[r].unit])}else if(e=I(e),J(this[e]))return this[e](t);return this}var ts=/\d/,W=/\d\d/,ss=/\d{3}/,Mt=/\d{4}/,Be=/[+-]?\d{6}/,v=/\d\d?/,rs=/\d\d\d\d?/,ns=/\d\d\d\d\d\d?/,qe=/\d{1,3}/,Dt=/\d{1,4}/,Je=/[+-]?\d{1,6}/,Se=/\d+/,Qe=/[+-]?\d+/,cr=/Z|[+-]\d\d:?\d\d/gi,Xe=/Z|[+-]\d\d(?::?\d\d)?/gi,mr=/[+-]?\d+(\.\d{1,3})?/,xe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,He;He={};function h(e,t,s){He[e]=J(t)?t:function(r,n){return r&&s?s:t}}function _r(e,t){return w(He,e)?He[e](t._strict,t._locale):new RegExp(yr(e))}function yr(e){return R(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,n,a){return s||r||n||a}))}function R(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function M(e,t){var s,r=t,n;for(typeof e=="string"&&(e=[e]),te(t)&&(r=function(a,i){i[t]=y(a)}),n=e.length,s=0;s<n;s++)ht[e[s]]=r}function Pe(e,t){M(e,function(s,r,n,a){n._w=n._w||{},t(s,n._w,n,a)})}function gr(e,t,s){t!=null&&w(ht,e)&&ht[e](t,s._a,s,e)}var b=0,K=1,Z=2,O=3,H=4,$=5,ue=6,wr=7,Sr=8;function kr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=kr(t,12);return e+=(t-s)/12,s===1?Ze(e)?29:28:31-s%7%2}f("M",["MM",2],"Mo",function(){return this.month()+1});f("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});f("MMMM",0,0,function(e){return this.localeData().months(this,e)});x("month","M");P("month",8);h("M",v);h("MM",v,W);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});M(["M","MM"],function(e,t){t[K]=y(e)-1});M(["MMM","MMMM"],function(e,t,s,r){var n=s._locale.monthsParse(e,r,s._strict);n!=null?t[K]=n:_(s).invalidMonth=e});var Mr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),as="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),is=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Dr=xe,vr=xe;function pr(e,t){return e?A(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||is).test(t)?"format":"standalone"][e.month()]:A(this._months)?this._months:this._months.standalone}function Yr(e,t){return e?A(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[is.test(t)?"format":"standalone"][e.month()]:A(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Or(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=q([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return s?t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null):(n=Y.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:(n=Y.call(this._longMonthsParse,i),n!==-1?n:null)):(n=Y.call(this._longMonthsParse,i),n!==-1?n:(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null))}function Tr(e,t,s){var r,n,a;if(this._monthsParseExact)return Or.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=q([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function os(e,t){var s;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=y(t);else if(t=e.localeData().monthsParse(t),!te(t))return e}return s=Math.min(e.date(),Ke(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,s),e}function ls(e){return e!=null?(os(this,e),d.updateOffset(this,!0),this):Ue(this,"Month")}function br(){return Ke(this.year(),this.month())}function xr(e){return this._monthsParseExact?(w(this,"_monthsRegex")||us.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Dr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Pr(e){return this._monthsParseExact?(w(this,"_monthsRegex")||us.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=vr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function us(){function e(i,u){return u.length-i.length}var t=[],s=[],r=[],n,a;for(n=0;n<12;n++)a=q([2e3,n]),t.push(this.monthsShort(a,"")),s.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(t.sort(e),s.sort(e),r.sort(e),n=0;n<12;n++)t[n]=R(t[n]),s[n]=R(s[n]);for(n=0;n<24;n++)r[n]=R(r[n]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}f("Y",0,0,function(){var e=this.year();return e<=9999?B(e,4):"+"+e});f(0,["YY",2],0,function(){return this.year()%100});f(0,["YYYY",4],0,"year");f(0,["YYYYY",5],0,"year");f(0,["YYYYYY",6,!0],0,"year");x("year","y");P("year",1);h("Y",Qe);h("YY",v,W);h("YYYY",Dt,Mt);h("YYYYY",Je,Be);h("YYYYYY",Je,Be);M(["YYYYY","YYYYYY"],b);M("YYYY",function(e,t){t[b]=e.length===2?d.parseTwoDigitYear(e):y(e)});M("YY",function(e,t){t[b]=d.parseTwoDigitYear(e)});M("Y",function(e,t){t[b]=parseInt(e,10)});function ve(e){return Ze(e)?366:365}d.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var ds=we("FullYear",!0);function Nr(){return Ze(this.year())}function Rr(e,t,s,r,n,a,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,n,a,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,n,a,i),u}function pe(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ae(e,t,s){var r=7+t-s,n=(7+pe(e,0,r).getUTCDay()-t)%7;return-n+r-1}function hs(e,t,s,r,n){var a=(7+s-r)%7,i=Ae(e,r,n),u=1+7*(t-1)+a+i,m,k;return u<=0?(m=e-1,k=ve(m)+u):u>ve(e)?(m=e+1,k=u-ve(e)):(m=e,k=u),{year:m,dayOfYear:k}}function Ye(e,t,s){var r=Ae(e.year(),t,s),n=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+ee(i,t,s)):n>ee(e.year(),t,s)?(a=n-ee(e.year(),t,s),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function ee(e,t,s){var r=Ae(e,t,s),n=Ae(e+1,t,s);return(ve(e)-r+n)/7}f("w",["ww",2],"wo","week");f("W",["WW",2],"Wo","isoWeek");x("week","w");x("isoWeek","W");P("week",5);P("isoWeek",5);h("w",v);h("ww",v,W);h("W",v);h("WW",v,W);Pe(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=y(e)});function Wr(e){return Ye(e,this._week.dow,this._week.doy).week}var Fr={dow:0,doy:6};function Lr(){return this._week.dow}function Cr(){return this._week.doy}function Ir(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Er(e){var t=Ye(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}f("d",0,"do","day");f("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});f("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});f("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});f("e",0,0,"weekday");f("E",0,0,"isoWeekday");x("day","d");x("weekday","e");x("isoWeekday","E");P("day",11);P("weekday",11);P("isoWeekday",11);h("d",v);h("e",v);h("E",v);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});Pe(["dd","ddd","dddd"],function(e,t,s,r){var n=s._locale.weekdaysParse(e,r,s._strict);n!=null?t.d=n:_(s).invalidWeekday=e});Pe(["d","e","E"],function(e,t,s,r){t[r]=y(e)});function Ur(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Hr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function vt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ar="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vr=xe,jr=xe,zr=xe;function Zr(e,t){var s=A(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?vt(s,this._week.dow):e?s[e.day()]:s}function Br(e){return e===!0?vt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qr(e){return e===!0?vt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Jr(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=q([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return s?t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1||(n=Y.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=Y.call(this._minWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function Qr(e,t,s){var r,n,a;if(this._weekdaysParseExact)return Jr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=q([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Xr(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Ur(e,this.localeData()),this.add(e-t,"d")):t}function Kr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function $r(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Hr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function en(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||pt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Vr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function tn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||pt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||pt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pt(){function e(T,F){return F.length-T.length}var t=[],s=[],r=[],n=[],a,i,u,m,k;for(a=0;a<7;a++)i=q([2e3,1]).day(a),u=R(this.weekdaysMin(i,"")),m=R(this.weekdaysShort(i,"")),k=R(this.weekdays(i,"")),t.push(u),s.push(m),r.push(k),n.push(u),n.push(m),n.push(k);t.sort(e),s.sort(e),r.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Yt(){return this.hours()%12||12}function rn(){return this.hours()||24}f("H",["HH",2],0,"hour");f("h",["hh",2],0,Yt);f("k",["kk",2],0,rn);f("hmm",0,0,function(){return""+Yt.apply(this)+B(this.minutes(),2)});f("hmmss",0,0,function(){return""+Yt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)});f("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)});f("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)});function cs(e,t){f(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}cs("a",!0);cs("A",!1);x("hour","h");P("hour",13);function ms(e,t){return t._meridiemParse}h("a",ms);h("A",ms);h("H",v);h("h",v);h("k",v);h("HH",v,W);h("hh",v,W);h("kk",v,W);h("hmm",rs);h("hmmss",ns);h("Hmm",rs);h("Hmmss",ns);M(["H","HH"],O);M(["k","kk"],function(e,t,s){var r=y(e);t[O]=r===24?0:r});M(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});M(["h","hh"],function(e,t,s){t[O]=y(e),_(s).bigHour=!0});M("hmm",function(e,t,s){var r=e.length-2;t[O]=y(e.substr(0,r)),t[H]=y(e.substr(r)),_(s).bigHour=!0});M("hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[O]=y(e.substr(0,r)),t[H]=y(e.substr(r,2)),t[$]=y(e.substr(n)),_(s).bigHour=!0});M("Hmm",function(e,t,s){var r=e.length-2;t[O]=y(e.substr(0,r)),t[H]=y(e.substr(r))});M("Hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[O]=y(e.substr(0,r)),t[H]=y(e.substr(r,2)),t[$]=y(e.substr(n))});function nn(e){return(e+"").toLowerCase().charAt(0)==="p"}var an=/[ap]\.?m?\.?/i,on=we("Hours",!0);function ln(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var _s={calendar:Qs,longDateFormat:er,invalidDate:sr,ordinal:nr,dayOfMonthOrdinalParse:ar,relativeTime:or,months:Mr,monthsShort:as,week:Fr,weekdays:Ar,weekdaysMin:Gr,weekdaysShort:fs,meridiemParse:an},p={},ke={},Oe;function un(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Ut(e){return e&&e.toLowerCase().replace("_","-")}function dn(e){for(var t=0,s,r,n,a;t<e.length;){for(a=Ut(e[t]).split("-"),s=a.length,r=Ut(e[t+1]),r=r?r.split("-"):null;s>0;){if(n=$e(a.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&un(a,r)>=s-1)break;s--}t++}return Oe}function hn(e){return e.match("^[^/\\\\]*$")!=null}function $e(e){var t=null,s;if(p[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&hn(e))try{t=Oe._abbr,s=Zs,s("./locale/"+e),ie(t)}catch(r){p[e]=null}return p[e]}function ie(e,t){var s;return e&&(N(t)?s=se(e):s=Ot(e,t),s?Oe=s:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Oe._abbr}function Ot(e,t){if(t!==null){var s,r=_s;if(t.abbr=e,p[e]!=null)Xt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=p[e]._config;else if(t.parentLocale!=null)if(p[t.parentLocale]!=null)r=p[t.parentLocale]._config;else if(s=$e(t.parentLocale),s!=null)r=s._config;else return ke[t.parentLocale]||(ke[t.parentLocale]=[]),ke[t.parentLocale].push({name:e,config:t}),null;return p[e]=new wt(ut(r,t)),ke[e]&&ke[e].forEach(function(n){Ot(n.name,n.config)}),ie(e),p[e]}else return delete p[e],null}function fn(e,t){if(t!=null){var s,r,n=_s;p[e]!=null&&p[e].parentLocale!=null?p[e].set(ut(p[e]._config,t)):(r=$e(e),r!=null&&(n=r._config),t=ut(n,t),r==null&&(t.abbr=e),s=new wt(t),s.parentLocale=p[e],p[e]=s),ie(e)}else p[e]!=null&&(p[e].parentLocale!=null?(p[e]=p[e].parentLocale,e===ie()&&ie(e)):p[e]!=null&&delete p[e]);return p[e]}function se(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Oe;if(!A(e)){if(t=$e(e),t)return t;e=[e]}return dn(e)}function cn(){return dt(p)}function Tt(e){var t,s=e._a;return s&&_(e).overflow===-2&&(t=s[K]<0||s[K]>11?K:s[Z]<1||s[Z]>Ke(s[b],s[K])?Z:s[O]<0||s[O]>24||s[O]===24&&(s[H]!==0||s[$]!==0||s[ue]!==0)?O:s[H]<0||s[H]>59?H:s[$]<0||s[$]>59?$:s[ue]<0||s[ue]>999?ue:-1,_(e)._overflowDayOfYear&&(t<b||t>Z)&&(t=Z),_(e)._overflowWeeks&&t===-1&&(t=wr),_(e)._overflowWeekday&&t===-1&&(t=Sr),_(e).overflow=t),e}var mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yn=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],it=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gn=/^\/?Date\((-?\d+)/i,wn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ys(e){var t,s,r=e._i,n=mn.exec(r)||_n.exec(r),a,i,u,m,k=Le.length,T=it.length;if(n){for(_(e).iso=!0,t=0,s=k;t<s;t++)if(Le[t][1].exec(n[1])){i=Le[t][0],a=Le[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,s=T;t<s;t++)if(it[t][1].exec(n[3])){u=(n[2]||" ")+it[t][0];break}if(u==null){e._isValid=!1;return}}if(!a&&u!=null){e._isValid=!1;return}if(n[4])if(yn.exec(n[4]))m="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(m||""),xt(e)}else e._isValid=!1}function kn(e,t,s,r,n,a){var i=[Mn(e),as.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Mn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Dn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vn(e,t,s){if(e){var r=fs.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(r!==n)return _(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function pn(e,t,s){if(e)return Sn[e];if(t)return 0;var r=parseInt(s,10),n=r%100,a=(r-n)/100;return a*60+n}function gs(e){var t=wn.exec(Dn(e._i)),s;if(t){if(s=kn(t[4],t[3],t[2],t[5],t[6],t[7]),!vn(t[1],s,e))return;e._a=s,e._tzm=pn(t[8],t[9],t[10]),e._d=pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Yn(e){var t=gn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ys(e),e._isValid===!1)delete e._isValid;else return;if(gs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ce(e,t,s){return e!=null?e:t!=null?t:s}function On(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function bt(e){var t,s,r=[],n,a,i;if(!e._d){for(n=On(e),e._w&&e._a[Z]==null&&e._a[K]==null&&Tn(e),e._dayOfYear!=null&&(i=ce(e._a[b],n[b]),(e._dayOfYear>ve(i)||e._dayOfYear===0)&&(_(e)._overflowDayOfYear=!0),s=pe(i,0,e._dayOfYear),e._a[K]=s.getUTCMonth(),e._a[Z]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[H]===0&&e._a[$]===0&&e._a[ue]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?pe:Rr).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==a&&(_(e).weekdayMismatch=!0)}}function Tn(e){var t,s,r,n,a,i,u,m,k;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,s=ce(t.GG,e._a[b],Ye(D(),1,4).year),r=ce(t.W,1),n=ce(t.E,1),(n<1||n>7)&&(m=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,k=Ye(D(),a,i),s=ce(t.gg,e._a[b],k.year),r=ce(t.w,k.week),t.d!=null?(n=t.d,(n<0||n>6)&&(m=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(m=!0)):n=a),r<1||r>ee(s,a,i)?_(e)._overflowWeeks=!0:m!=null?_(e)._overflowWeekday=!0:(u=hs(s,r,n,a,i),e._a[b]=u.year,e._dayOfYear=u.dayOfYear)}d.ISO_8601=function(){};d.RFC_2822=function(){};function xt(e){if(e._f===d.ISO_8601){ys(e);return}if(e._f===d.RFC_2822){gs(e);return}e._a=[],_(e).empty=!0;var t=""+e._i,s,r,n,a,i,u=t.length,m=0,k,T;for(n=Kt(e._f,e._locale).match(St)||[],T=n.length,s=0;s<T;s++)a=n[s],r=(t.match(_r(a,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&_(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),m+=r.length),_e[a]?(r?_(e).empty=!1:_(e).unusedTokens.push(a),gr(a,r,e)):e._strict&&!r&&_(e).unusedTokens.push(a);_(e).charsLeftOver=u-m,t.length>0&&_(e).unusedInput.push(t),e._a[O]<=12&&_(e).bigHour===!0&&e._a[O]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[O]=bn(e._locale,e._a[O],e._meridiem),k=_(e).era,k!==null&&(e._a[b]=e._locale.erasConvertYear(k,e._a[b])),bt(e),Tt(e)}function bn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function xn(e){var t,s,r,n,a,i,u=!1,m=e._f.length;if(m===0){_(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<m;n++)a=0,i=!1,t=gt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],xt(t),yt(t)&&(i=!0),a+=_(t).charsLeftOver,a+=_(t).unusedTokens.length*10,_(t).score=a,u?a<r&&(r=a,s=t):(r==null||a<r||i)&&(r=a,s=t,i&&(u=!0));ne(e,s||t)}function Pn(e){if(!e._d){var t=kt(e._i),s=t.day===void 0?t.date:t.day;e._a=Jt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),bt(e)}}function Nn(e){var t=new be(Tt(ws(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ws(e){var t=e._i,s=e._f;return e._locale=e._locale||se(e._l),t===null||s===void 0&&t===""?ze({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),G(t)?new be(Tt(t)):(Te(t)?e._d=t:A(s)?xn(e):s?xt(e):Rn(e),yt(e)||(e._d=null),e))}function Rn(e){var t=e._i;N(t)?e._d=new Date(d.now()):Te(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Yn(e):A(t)?(e._a=Jt(t.slice(0),function(s){return parseInt(s,10)}),bt(e)):de(t)?Pn(e):te(t)?e._d=new Date(t):d.createFromInputFallback(e)}function Ss(e,t,s,r,n){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(de(e)&&_t(e)||A(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=s,a._i=e,a._f=t,a._strict=r,Nn(a)}function D(e,t,s,r){return Ss(e,t,s,r,!1)}var Wn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ze()}),Fn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ze()});function ks(e,t){var s,r;if(t.length===1&&A(t[0])&&(t=t[0]),!t.length)return D();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function Ln(){var e=[].slice.call(arguments,0);return ks("isBefore",e)}function Cn(){var e=[].slice.call(arguments,0);return ks("isAfter",e)}var In=function(){return Date.now?Date.now():+new Date},Me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function En(e){var t,s=!1,r,n=Me.length;for(t in e)if(w(e,t)&&!(Y.call(Me,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<n;++r)if(e[Me[r]]){if(s)return!1;parseFloat(e[Me[r]])!==y(e[Me[r]])&&(s=!0)}return!0}function Un(){return this._isValid}function Hn(){return V(NaN)}function et(e){var t=kt(e),s=t.year||0,r=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,m=t.minute||0,k=t.second||0,T=t.millisecond||0;this._isValid=En(t),this._milliseconds=+T+k*1e3+m*6e4+u*1e3*60*60,this._days=+i+a*7,this._months=+n+r*3+s*12,this._data={},this._locale=se(),this._bubble()}function Ie(e){return e instanceof et}function ft(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function An(e,t,s){var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<r;i++)y(e[i])!==y(t[i])&&a++;return a+n}function Ms(e,t){f(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+B(~~(s/60),2)+t+B(~~s%60,2)})}Ms("Z",":");Ms("ZZ","");h("Z",Xe);h("ZZ",Xe);M(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=Pt(Xe,e)});var Gn=/([\+\-]|\d\d)/gi;function Pt(e,t){var s=(t||"").match(e),r,n,a;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(Gn)||["-",0,0],a=+(n[1]*60)+y(n[2]),a===0?0:n[0]==="+"?a:-a)}function Nt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(G(e)||Te(e)?e.valueOf():D(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),d.updateOffset(s,!1),s):D(e).local()}function ct(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function Vn(e,t,s){var r=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Pt(Xe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(n=ct(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?ps(this,V(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:ct(this)}function jn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function zn(e){return this.utcOffset(0,e)}function Zn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ct(this),"m")),this}function Bn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Pt(cr,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qn(e){return this.isValid()?(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Jn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qn(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return gt(e,this),e=ws(e),e._a?(t=e._isUTC?q(e._a):D(e._a),this._isDSTShifted=this.isValid()&&An(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Xn(){return this.isValid()?!this._isUTC:!1}function Kn(){return this.isValid()?this._isUTC:!1}function Ds(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $n=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ea=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function V(e,t){var s=e,r=null,n,a,i;return Ie(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:te(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=$n.exec(e))?(n=r[1]==="-"?-1:1,s={y:0,d:y(r[Z])*n,h:y(r[O])*n,m:y(r[H])*n,s:y(r[$])*n,ms:y(ft(r[ue]*1e3))*n}):(r=ea.exec(e))?(n=r[1]==="-"?-1:1,s={y:le(r[2],n),M:le(r[3],n),w:le(r[4],n),d:le(r[5],n),h:le(r[6],n),m:le(r[7],n),s:le(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=ta(D(s.from),D(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),a=new et(s),Ie(e)&&w(e,"_locale")&&(a._locale=e._locale),Ie(e)&&w(e,"_isValid")&&(a._isValid=e._isValid),a}V.fn=et.prototype;V.invalid=Hn;function le(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Ht(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function ta(e,t){var s;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?s=Ht(e,t):(s=Ht(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function vs(e,t){return function(s,r){var n,a;return r!==null&&!isNaN(+r)&&(Xt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=s,s=r,r=a),n=V(s,r),ps(this,n,e),this}}function ps(e,t,s,r){var n=t._milliseconds,a=ft(t._days),i=ft(t._months);e.isValid()&&(r=r==null?!0:r,i&&os(e,Ue(e,"Month")+i*s),a&&es(e,"Date",Ue(e,"Date")+a*s),n&&e._d.setTime(e._d.valueOf()+n*s),r&&d.updateOffset(e,a||i))}var sa=vs(1,"add"),ra=vs(-1,"subtract");function Ys(e){return typeof e=="string"||e instanceof String}function na(e){return G(e)||Te(e)||Ys(e)||te(e)||ia(e)||aa(e)||e===null||e===void 0}function aa(e){var t=de(e)&&!_t(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=r.length;for(n=0;n<i;n+=1)a=r[n],s=s||w(e,a);return t&&s}function ia(e){var t=A(e),s=!1;return t&&(s=e.filter(function(r){return!te(r)&&Ys(e)}).length===0),t&&s}function oa(e){var t=de(e)&&!_t(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<r.length;n+=1)a=r[n],s=s||w(e,a);return t&&s}function la(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function ua(e,t){arguments.length===1&&(arguments[0]?na(arguments[0])?(e=arguments[0],t=void 0):oa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||D(),r=Nt(s,this).startOf("day"),n=d.calendarFormat(this,r)||"sameElse",a=t&&(J(t[n])?t[n].call(this,s):t[n]);return this.format(a||this.localeData().calendar(n,this,D(s)))}function da(){return new be(this)}function ha(e,t){var s=G(e)?e:D(e);return this.isValid()&&s.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function fa(e,t){var s=G(e)?e:D(e);return this.isValid()&&s.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function ca(e,t,s,r){var n=G(e)?e:D(e),a=G(t)?t:D(t);return this.isValid()&&n.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(a,s):!this.isAfter(a,s))):!1}function ma(e,t){var s=G(e)?e:D(e),r;return this.isValid()&&s.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function _a(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ya(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ga(e,t,s){var r,n,a;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,t=I(t),t){case"year":a=Ee(this,r)/12;break;case"month":a=Ee(this,r);break;case"quarter":a=Ee(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-n)/864e5;break;case"week":a=(this-r-n)/6048e5;break;default:a=this-r}return s?a:L(a)}function Ee(e,t){if(e.date()<t.date())return-Ee(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),n,a;return t-r<0?(n=e.clone().add(s-1,"months"),a=(t-r)/(r-n)):(n=e.clone().add(s+1,"months"),a=(t-r)/(n-r)),-(s+a)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function wa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Sa(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ce(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):J(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ce(s,"Z")):Ce(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ka(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(s+r+n+a)}function Ma(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Ce(this,e);return this.localeData().postformat(t)}function Da(e,t){return this.isValid()&&(G(e)&&e.isValid()||D(e).isValid())?V({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function va(e){return this.from(D(),e)}function pa(e,t){return this.isValid()&&(G(e)&&e.isValid()||D(e).isValid())?V({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ya(e){return this.to(D(),e)}function Os(e){var t;return e===void 0?this._locale._abbr:(t=se(e),t!=null&&(this._locale=t),this)}var Ts=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function bs(){return this._locale}var Ge=1e3,ye=60*Ge,Ve=60*ye,xs=(365*400+97)*24*Ve;function ge(e,t){return(e%t+t)%t}function Ps(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-xs:new Date(e,t,s).valueOf()}function Ns(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-xs:Date.UTC(e,t,s)}function Oa(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ns:Ps,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ge(t+(this._isUTC?0:this.utcOffset()*ye),Ve);break;case"minute":t=this._d.valueOf(),t-=ge(t,ye);break;case"second":t=this._d.valueOf(),t-=ge(t,Ge);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Ta(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ns:Ps,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ve-ge(t+(this._isUTC?0:this.utcOffset()*ye),Ve)-1;break;case"minute":t=this._d.valueOf(),t+=ye-ge(t,ye)-1;break;case"second":t=this._d.valueOf(),t+=Ge-ge(t,Ge)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function ba(){return this._d.valueOf()-(this._offset||0)*6e4}function xa(){return Math.floor(this.valueOf()/1e3)}function Pa(){return new Date(this.valueOf())}function Na(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ra(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Wa(){return this.isValid()?this.toISOString():null}function Fa(){return yt(this)}function La(){return ne({},_(this))}function Ca(){return _(this).overflow}function Ia(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}f("N",0,0,"eraAbbr");f("NN",0,0,"eraAbbr");f("NNN",0,0,"eraAbbr");f("NNNN",0,0,"eraName");f("NNNNN",0,0,"eraNarrow");f("y",["y",1],"yo","eraYear");f("y",["yy",2],0,"eraYear");f("y",["yyy",3],0,"eraYear");f("y",["yyyy",4],0,"eraYear");h("N",Rt);h("NN",Rt);h("NNN",Rt);h("NNNN",qa);h("NNNNN",Ja);M(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var n=s._locale.erasParse(e,r,s._strict);n?_(s).era=n:_(s).invalidEra=e});h("y",Se);h("yy",Se);h("yyy",Se);h("yyyy",Se);h("yo",Qa);M(["y","yy","yyy","yyyy"],b);M(["yo"],function(e,t,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[b]=s._locale.eraYearOrdinalParse(e,n):t[b]=parseInt(e,10)});function Ea(e,t){var s,r,n,a=this._eras||se("en")._eras;for(s=0,r=a.length;s<r;++s){switch(typeof a[s].since){case"string":n=d(a[s].since).startOf("day"),a[s].since=n.valueOf();break}switch(typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":n=d(a[s].until).startOf("day").valueOf(),a[s].until=n.valueOf();break}}return a}function Ua(e,t,s){var r,n,a=this.eras(),i,u,m;for(e=e.toUpperCase(),r=0,n=a.length;r<n;++r)if(i=a[r].name.toUpperCase(),u=a[r].abbr.toUpperCase(),m=a[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(m===e)return a[r];break}else if([i,u,m].indexOf(e)>=0)return a[r]}function Ha(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function Aa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Ga(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Va(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function ja(){var e,t,s,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=n[e].since<=n[e].until?1:-1,r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return(this.year()-d(n[e].since).year())*s+n[e].offset;return this.year()}function za(e){return w(this,"_erasNameRegex")||Wt.call(this),e?this._erasNameRegex:this._erasRegex}function Za(e){return w(this,"_erasAbbrRegex")||Wt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ba(e){return w(this,"_erasNarrowRegex")||Wt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rt(e,t){return t.erasAbbrRegex(e)}function qa(e,t){return t.erasNameRegex(e)}function Ja(e,t){return t.erasNarrowRegex(e)}function Qa(e,t){return t._eraYearOrdinalRegex||Se}function Wt(){var e=[],t=[],s=[],r=[],n,a,i=this.eras();for(n=0,a=i.length;n<a;++n)t.push(R(i[n].name)),e.push(R(i[n].abbr)),s.push(R(i[n].narrow)),r.push(R(i[n].name)),r.push(R(i[n].abbr)),r.push(R(i[n].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}f(0,["gg",2],0,function(){return this.weekYear()%100});f(0,["GG",2],0,function(){return this.isoWeekYear()%100});function tt(e,t){f(0,[e,e.length],0,t)}tt("gggg","weekYear");tt("ggggg","weekYear");tt("GGGG","isoWeekYear");tt("GGGGG","isoWeekYear");x("weekYear","gg");x("isoWeekYear","GG");P("weekYear",1);P("isoWeekYear",1);h("G",Qe);h("g",Qe);h("GG",v,W);h("gg",v,W);h("GGGG",Dt,Mt);h("gggg",Dt,Mt);h("GGGGG",Je,Be);h("ggggg",Je,Be);Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=y(e)});Pe(["gg","GG"],function(e,t,s,r){t[r]=d.parseTwoDigitYear(e)});function Xa(e){return Rs.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ka(e){return Rs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $a(){return ee(this.year(),1,4)}function ei(){return ee(this.isoWeekYear(),1,4)}function ti(){var e=this.localeData()._week;return ee(this.year(),e.dow,e.doy)}function si(){var e=this.localeData()._week;return ee(this.weekYear(),e.dow,e.doy)}function Rs(e,t,s,r,n){var a;return e==null?Ye(this,r,n).year:(a=ee(e,r,n),t>a&&(t=a),ri.call(this,e,t,s,r,n))}function ri(e,t,s,r,n){var a=hs(e,t,s,r,n),i=pe(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}f("Q",0,"Qo","quarter");x("quarter","Q");P("quarter",7);h("Q",ts);M("Q",function(e,t){t[K]=(y(e)-1)*3});function ni(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}f("D",["DD",2],"Do","date");x("date","D");P("date",9);h("D",v);h("DD",v,W);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});M(["D","DD"],Z);M("Do",function(e,t){t[Z]=y(e.match(v)[0])});var Ws=we("Date",!0);f("DDD",["DDDD",3],"DDDo","dayOfYear");x("dayOfYear","DDD");P("dayOfYear",4);h("DDD",qe);h("DDDD",ss);M(["DDD","DDDD"],function(e,t,s){s._dayOfYear=y(e)});function ai(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}f("m",["mm",2],0,"minute");x("minute","m");P("minute",14);h("m",v);h("mm",v,W);M(["m","mm"],H);var ii=we("Minutes",!1);f("s",["ss",2],0,"second");x("second","s");P("second",15);h("s",v);h("ss",v,W);M(["s","ss"],$);var oi=we("Seconds",!1);f("S",0,0,function(){return~~(this.millisecond()/100)});f(0,["SS",2],0,function(){return~~(this.millisecond()/10)});f(0,["SSS",3],0,"millisecond");f(0,["SSSS",4],0,function(){return this.millisecond()*10});f(0,["SSSSS",5],0,function(){return this.millisecond()*100});f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});x("millisecond","ms");P("millisecond",16);h("S",qe,ts);h("SS",qe,W);h("SSS",qe,ss);var ae,Fs;for(ae="SSSS";ae.length<=9;ae+="S")h(ae,Se);function li(e,t){t[ue]=y(("0."+e)*1e3)}for(ae="S";ae.length<=9;ae+="S")M(ae,li);Fs=we("Milliseconds",!1);f("z",0,0,"zoneAbbr");f("zz",0,0,"zoneName");function ui(){return this._isUTC?"UTC":""}function di(){return this._isUTC?"Coordinated Universal Time":""}var o=be.prototype;o.add=sa;o.calendar=ua;o.clone=da;o.diff=ga;o.endOf=Ta;o.format=Ma;o.from=Da;o.fromNow=va;o.to=pa;o.toNow=Ya;o.get=hr;o.invalidAt=Ca;o.isAfter=ha;o.isBefore=fa;o.isBetween=ca;o.isSame=ma;o.isSameOrAfter=_a;o.isSameOrBefore=ya;o.isValid=Fa;o.lang=Ts;o.locale=Os;o.localeData=bs;o.max=Fn;o.min=Wn;o.parsingFlags=La;o.set=fr;o.startOf=Oa;o.subtract=ra;o.toArray=Na;o.toObject=Ra;o.toDate=Pa;o.toISOString=Sa;o.inspect=ka;typeof Symbol!="undefined"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=Wa;o.toString=wa;o.unix=xa;o.valueOf=ba;o.creationData=Ia;o.eraName=Aa;o.eraNarrow=Ga;o.eraAbbr=Va;o.eraYear=ja;o.year=ds;o.isLeapYear=Nr;o.weekYear=Xa;o.isoWeekYear=Ka;o.quarter=o.quarters=ni;o.month=ls;o.daysInMonth=br;o.week=o.weeks=Ir;o.isoWeek=o.isoWeeks=Er;o.weeksInYear=ti;o.weeksInWeekYear=si;o.isoWeeksInYear=$a;o.isoWeeksInISOWeekYear=ei;o.date=Ws;o.day=o.days=Xr;o.weekday=Kr;o.isoWeekday=$r;o.dayOfYear=ai;o.hour=o.hours=on;o.minute=o.minutes=ii;o.second=o.seconds=oi;o.millisecond=o.milliseconds=Fs;o.utcOffset=Vn;o.utc=zn;o.local=Zn;o.parseZone=Bn;o.hasAlignedHourOffset=qn;o.isDST=Jn;o.isLocal=Xn;o.isUtcOffset=Kn;o.isUtc=Ds;o.isUTC=Ds;o.zoneAbbr=ui;o.zoneName=di;o.dates=C("dates accessor is deprecated. Use date instead.",Ws);o.months=C("months accessor is deprecated. Use month instead",ls);o.years=C("years accessor is deprecated. Use year instead",ds);o.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jn);o.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qn);function hi(e){return D(e*1e3)}function fi(){return D.apply(null,arguments).parseZone()}function Ls(e){return e}var S=wt.prototype;S.calendar=Xs;S.longDateFormat=tr;S.invalidDate=rr;S.ordinal=ir;S.preparse=Ls;S.postformat=Ls;S.relativeTime=lr;S.pastFuture=ur;S.set=Js;S.eras=Ea;S.erasParse=Ua;S.erasConvertYear=Ha;S.erasAbbrRegex=Za;S.erasNameRegex=za;S.erasNarrowRegex=Ba;S.months=pr;S.monthsShort=Yr;S.monthsParse=Tr;S.monthsRegex=Pr;S.monthsShortRegex=xr;S.week=Wr;S.firstDayOfYear=Cr;S.firstDayOfWeek=Lr;S.weekdays=Zr;S.weekdaysMin=qr;S.weekdaysShort=Br;S.weekdaysParse=Qr;S.weekdaysRegex=en;S.weekdaysShortRegex=tn;S.weekdaysMinRegex=sn;S.isPM=nn;S.meridiem=ln;function je(e,t,s,r){var n=se(),a=q().set(r,t);return n[s](a,e)}function Cs(e,t,s){if(te(e)&&(t=e,e=void 0),e=e||"",t!=null)return je(e,t,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=je(e,r,s,"month");return n}function Ft(e,t,s,r){typeof e=="boolean"?(te(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,te(t)&&(s=t,t=void 0),t=t||"");var n=se(),a=e?n._week.dow:0,i,u=[];if(s!=null)return je(t,(s+a)%7,r,"day");for(i=0;i<7;i++)u[i]=je(t,(i+a)%7,r,"day");return u}function ci(e,t){return Cs(e,t,"months")}function mi(e,t){return Cs(e,t,"monthsShort")}function _i(e,t,s){return Ft(e,t,s,"weekdays")}function yi(e,t,s){return Ft(e,t,s,"weekdaysShort")}function gi(e,t,s){return Ft(e,t,s,"weekdaysMin")}ie("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});d.lang=C("moment.lang is deprecated. Use moment.locale instead.",ie);d.langData=C("moment.langData is deprecated. Use moment.localeData instead.",se);var Q=Math.abs;function wi(){var e=this._data;return this._milliseconds=Q(this._milliseconds),this._days=Q(this._days),this._months=Q(this._months),e.milliseconds=Q(e.milliseconds),e.seconds=Q(e.seconds),e.minutes=Q(e.minutes),e.hours=Q(e.hours),e.months=Q(e.months),e.years=Q(e.years),this}function Is(e,t,s,r){var n=V(t,s);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function Si(e,t){return Is(this,e,t,1)}function ki(e,t){return Is(this,e,t,-1)}function At(e){return e<0?Math.floor(e):Math.ceil(e)}function Mi(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,n,a,i,u,m;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=At(mt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,n=L(e/1e3),r.seconds=n%60,a=L(n/60),r.minutes=a%60,i=L(a/60),r.hours=i%24,t+=L(i/24),m=L(Es(t)),s+=m,t-=At(mt(m)),u=L(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Es(e){return e*4800/146097}function mt(e){return e*146097/4800}function Di(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=I(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Es(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(mt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function vi(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+y(this._months/12)*31536e6:NaN}function re(e){return function(){return this.as(e)}}var pi=re("ms"),Yi=re("s"),Oi=re("m"),Ti=re("h"),bi=re("d"),xi=re("w"),Pi=re("M"),Ni=re("Q"),Ri=re("y");function Wi(){return V(this)}function Fi(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function he(e){return function(){return this.isValid()?this._data[e]:NaN}}var Li=he("milliseconds"),Ci=he("seconds"),Ii=he("minutes"),Ei=he("hours"),Ui=he("days"),Hi=he("months"),Ai=he("years");function Gi(){return L(this.days()/7)}var X=Math.round,me={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vi(e,t,s,r,n){return n.relativeTime(t||1,!!s,e,r)}function ji(e,t,s,r){var n=V(e).abs(),a=X(n.as("s")),i=X(n.as("m")),u=X(n.as("h")),m=X(n.as("d")),k=X(n.as("M")),T=X(n.as("w")),F=X(n.as("y")),E=a<=s.ss&&["s",a]||a<s.s&&["ss",a]||i<=1&&["m"]||i<s.m&&["mm",i]||u<=1&&["h"]||u<s.h&&["hh",u]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(E=E||T<=1&&["w"]||T<s.w&&["ww",T]),E=E||k<=1&&["M"]||k<s.M&&["MM",k]||F<=1&&["y"]||["yy",F],E[2]=t,E[3]=+e>0,E[4]=r,Vi.apply(null,E)}function zi(e){return e===void 0?X:typeof e=="function"?(X=e,!0):!1}function Zi(e,t){return me[e]===void 0?!1:t===void 0?me[e]:(me[e]=t,e==="s"&&(me.ss=t-1),!0)}function Bi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=me,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},me,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),n=this.localeData(),a=ji(this,!s,r,n),s&&(a=n.pastFuture(+this,a)),n.postformat(a)}var ot=Math.abs;function fe(e){return(e>0)-(e<0)||+e}function st(){if(!this.isValid())return this.localeData().invalidDate();var e=ot(this._milliseconds)/1e3,t=ot(this._days),s=ot(this._months),r,n,a,i,u=this.asSeconds(),m,k,T,F;return u?(r=L(e/60),n=L(r/60),e%=60,r%=60,a=L(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=u<0?"-":"",k=fe(this._months)!==fe(u)?"-":"",T=fe(this._days)!==fe(u)?"-":"",F=fe(this._milliseconds)!==fe(u)?"-":"",m+"P"+(a?k+a+"Y":"")+(s?k+s+"M":"")+(t?T+t+"D":"")+(n||r||e?"T":"")+(n?F+n+"H":"")+(r?F+r+"M":"")+(e?F+i+"S":"")):"P0D"}var g=et.prototype;g.isValid=Un;g.abs=wi;g.add=Si;g.subtract=ki;g.as=Di;g.asMilliseconds=pi;g.asSeconds=Yi;g.asMinutes=Oi;g.asHours=Ti;g.asDays=bi;g.asWeeks=xi;g.asMonths=Pi;g.asQuarters=Ni;g.asYears=Ri;g.valueOf=vi;g._bubble=Mi;g.clone=Wi;g.get=Fi;g.milliseconds=Li;g.seconds=Ci;g.minutes=Ii;g.hours=Ei;g.days=Ui;g.weeks=Gi;g.months=Hi;g.years=Ai;g.humanize=Bi;g.toISOString=st;g.toString=st;g.toJSON=st;g.locale=Os;g.localeData=bs;g.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",st);g.lang=Ts;f("X",0,0,"unix");f("x",0,0,"valueOf");h("x",Qe);h("X",mr);M("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});M("x",function(e,t,s){s._d=new Date(y(e))});//! moment.js
|
|
10
|
-
d.version="2.29.4";Bs(D);d.fn=o;d.min=Ln;d.max=Cn;d.now=In;d.utc=q;d.unix=hi;d.months=ci;d.isDate=Te;d.locale=ie;d.invalid=ze;d.duration=V;d.isMoment=G;d.weekdays=_i;d.parseZone=fi;d.localeData=se;d.isDuration=Ie;d.monthsShort=mi;d.weekdaysMin=gi;d.defineLocale=Ot;d.updateLocale=fn;d.locales=cn;d.weekdaysShort=yi;d.normalizeUnits=I;d.relativeTimeRounding=zi;d.relativeTimeThreshold=Zi;d.calendarFormat=la;d.prototype=o;d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Gt(e,t){l.addMessages(e,t)}const Vt={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."},"en-us":{nothing:"Nothing to show here."}};if(typeof window!="undefined"){let e=function(t){return function(...s){try{return t.apply(this,s)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-
|
|
10
|
+
d.version="2.29.4";Bs(D);d.fn=o;d.min=Ln;d.max=Cn;d.now=In;d.utc=q;d.unix=hi;d.months=ci;d.isDate=Te;d.locale=ie;d.invalid=ze;d.duration=V;d.isMoment=G;d.weekdays=_i;d.parseZone=fi;d.localeData=se;d.isDuration=Ie;d.monthsShort=mi;d.weekdaysMin=gi;d.defineLocale=Ot;d.updateLocale=fn;d.locales=cn;d.weekdaysShort=yi;d.normalizeUnits=I;d.relativeTimeRounding=zi;d.relativeTimeThreshold=Zi;d.calendarFormat=la;d.prototype=o;d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Gt(e,t){l.addMessages(e,t)}const Vt={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."},"en-us":{nothing:"Nothing to show here."}};if(typeof window!="undefined"){let e=function(t){return function(...s){try{return t.apply(this,s)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-CE8cLaj5.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function qi(e){l.append_styles(e,"svelte-gkejaq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function jt(e,t,s){const r=e.slice();return r[29]=t[s],r[31]=s,r}function zt(e){let t,s=l.ensure_array_like(e[15]),r=[];for(let a=0;a<s.length;a+=1)r[a]=Bt(jt(e,s,a));let n=null;return s.length||(n=Zt(e)),{c(){for(let a=0;a<r.length;a+=1)r[a].c();t=l.empty(),n&&n.c()},m(a,i){for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(a,i);l.insert(a,t,i),n&&n.m(a,i)},p(a,i){if(i[0]&106495){s=l.ensure_array_like(a[15]);let u;for(u=0;u<s.length;u+=1){const m=jt(a,s,u);r[u]?r[u].p(m,i):(r[u]=Bt(m),r[u].c(),r[u].m(t.parentNode,t))}for(;u<r.length;u+=1)r[u].d(1);r.length=s.length,!s.length&&n?n.p(a,i):s.length?n&&(n.d(1),n=null):(n=Zt(a),n.c(),n.m(t.parentNode,t))}},d(a){a&&l.detach(t),l.destroy_each(r,a),n&&n.d(a)}}}function Zt(e){let t,s=e[16]("nothing")+"",r;return{c(){t=l.element("p"),r=l.text(s)},m(n,a){l.insert(n,t,a),l.append(t,r)},p(n,a){a[0]&65536&&s!==(s=n[16]("nothing")+"")&&l.set_data(r,s)},d(n){n&&l.detach(t)}}}function Bt(e){let t,s,r,n;return{c(){t=l.element("casino-tournaments-thumbnail-controller"),l.set_custom_element_data(t,"touridx",e[31]+1),l.set_custom_element_data(t,"userid",e[1]),l.set_custom_element_data(t,"showdetails","true"),l.set_custom_element_data(t,"showslider","false"),l.set_custom_element_data(t,"tournamenturl",s=e[29].href),l.set_custom_element_data(t,"maxwidth",r=e[15].length<=2),l.set_custom_element_data(t,"loginurl",e[5]),l.set_custom_element_data(t,"loginevent",e[3]),l.set_custom_element_data(t,"registerurl",e[6]),l.set_custom_element_data(t,"tournamentinfo",n=e[29]),l.set_custom_element_data(t,"registerevent",e[4]),l.set_custom_element_data(t,"clientstyling",e[10]),l.set_custom_element_data(t,"clientstylingurl",e[11]),l.set_custom_element_data(t,"translationurl",e[12]),l.set_custom_element_data(t,"lang",e[8]),l.set_custom_element_data(t,"currency",e[7]),l.set_custom_element_data(t,"keepbrowsercontext",e[9]),l.set_custom_element_data(t,"session",e[0]),l.set_custom_element_data(t,"endpoint",e[2]),l.set_custom_element_data(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
|
|
11
11
|
TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
|
|
12
12
|
TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
|
|
13
13
|
TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`)},m(a,i){l.insert(a,t,i)},p(a,i){i[0]&2&&l.set_custom_element_data(t,"userid",a[1]),i[0]&32768&&s!==(s=a[29].href)&&l.set_custom_element_data(t,"tournamenturl",s),i[0]&32768&&r!==(r=a[15].length<=2)&&l.set_custom_element_data(t,"maxwidth",r),i[0]&32&&l.set_custom_element_data(t,"loginurl",a[5]),i[0]&8&&l.set_custom_element_data(t,"loginevent",a[3]),i[0]&64&&l.set_custom_element_data(t,"registerurl",a[6]),i[0]&32768&&n!==(n=a[29])&&l.set_custom_element_data(t,"tournamentinfo",n),i[0]&16&&l.set_custom_element_data(t,"registerevent",a[4]),i[0]&1024&&l.set_custom_element_data(t,"clientstyling",a[10]),i[0]&2048&&l.set_custom_element_data(t,"clientstylingurl",a[11]),i[0]&4096&&l.set_custom_element_data(t,"translationurl",a[12]),i[0]&256&&l.set_custom_element_data(t,"lang",a[8]),i[0]&128&&l.set_custom_element_data(t,"currency",a[7]),i[0]&512&&l.set_custom_element_data(t,"keepbrowsercontext",a[9]),i[0]&1&&l.set_custom_element_data(t,"session",a[0]),i[0]&4&&l.set_custom_element_data(t,"endpoint",a[2])},d(a){a&&l.detach(t)}}}function Ji(e){let t,s=!e[14]&&zt(e);return{c(){t=l.element("div"),s&&s.c(),l.attr(t,"class","TournamentList"),l.attr(t,"part","TournamentList")},m(r,n){l.insert(r,t,n),s&&s.m(t,null),e[17](t)},p(r,n){r[14]?s&&(s.d(1),s=null):s?s.p(r,n):(s=zt(r),s.c(),s.m(t,null))},i:l.noop,o:l.noop,d(r){r&&l.detach(t),s&&s.d(),e[17](null)}}}function Qi(e,t,s){let r;l.component_subscribe(e,l.$format,c=>s(16,r=c));let{session:n=""}=t,{userid:a=""}=t,{endpoint:i=""}=t,{loginevent:u=""}=t,{registerevent:m=""}=t,{loginurl:k=""}=t,{registerurl:T=""}=t,{currency:F=""}=t,{lang:E="en"}=t,{keepbrowsercontext:Lt="false"}=t,{clientstyling:Ne=""}=t,{clientstylingurl:Re=""}=t,{translationurl:We=""}=t,oe,rt=!1;d();let U="";const Hs=()=>{fetch(We).then(j=>j.json()).then(j=>{Object.keys(j).forEach(z=>{Gt(z,j[z])})}).catch(j=>{console.log(j)})};Object.keys(Vt).forEach(c=>{Gt(c,Vt[c])});const Ct=c=>{if(c.data&&c.data.type=="TournamentList"&&(s(15,U=[]),s(14,rt=!0),s(15,U=c.data.tournamentList),setTimeout(()=>{s(14,rt=!1)},10)),c.data&&c.data.type=="TournamentListShowMore"&&s(15,U=[...U,...c.data.tournamentList]),c.data.type=="UpdateTournamentView"){if(!U)return;U.filter(z=>z.id==c.data.tournamentData.id).length==0&&(U.pop(),s(15,U=[c.data.tournamentData,...U]),setTimeout(()=>{U.forEach((z,zs)=>{window.postMessage({type:`UpdateSingleTournament_${zs+1}`,tournamentData:z},window.location.href)})},100))}c.data&&c.data.type=="UserSessionID"&&c.data.session},As=()=>{n.length>0&&n!="false"},Gs=()=>{let c=document.createElement("style");c.innerHTML=Ne,oe.appendChild(c)},Vs=()=>{let c=new URL(Re),j=document.createElement("style");fetch(c.href).then(z=>z.text()).then(z=>{j.innerHTML=z,setTimeout(()=>{oe.appendChild(j)},1),setTimeout(()=>{},500)})};l.onMount(()=>(window.addEventListener("message",Ct,!0),()=>{window.removeEventListener("message",Ct,!0)}));function js(c){l.binding_callbacks[c?"unshift":"push"](()=>{oe=c,s(13,oe)})}return e.$$set=c=>{"session"in c&&s(0,n=c.session),"userid"in c&&s(1,a=c.userid),"endpoint"in c&&s(2,i=c.endpoint),"loginevent"in c&&s(3,u=c.loginevent),"registerevent"in c&&s(4,m=c.registerevent),"loginurl"in c&&s(5,k=c.loginurl),"registerurl"in c&&s(6,T=c.registerurl),"currency"in c&&s(7,F=c.currency),"lang"in c&&s(8,E=c.lang),"keepbrowsercontext"in c&&s(9,Lt=c.keepbrowsercontext),"clientstyling"in c&&s(10,Ne=c.clientstyling),"clientstylingurl"in c&&s(11,Re=c.clientstylingurl),"translationurl"in c&&s(12,We=c.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&9216&&oe&&Ne&&Gs(),e.$$.dirty[0]&10240&&oe&&Re&&Vs(),e.$$.dirty[0]&4096&&We&&Hs(),e.$$.dirty[0]&1&&n&&As(),e.$$.dirty[0]&2},[n,a,i,u,m,k,T,F,E,Lt,Ne,Re,We,oe,rt,U,r,js]}class Us extends l.SvelteComponent{constructor(t){super(),l.init(this,t,Qi,Ji,l.safe_not_equal,{session:0,userid:1,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12},qi,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),l.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),l.flush()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),l.flush()}get loginevent(){return this.$$.ctx[3]}set loginevent(t){this.$$set({loginevent:t}),l.flush()}get registerevent(){return this.$$.ctx[4]}set registerevent(t){this.$$set({registerevent:t}),l.flush()}get loginurl(){return this.$$.ctx[5]}set loginurl(t){this.$$set({loginurl:t}),l.flush()}get registerurl(){return this.$$.ctx[6]}set registerurl(t){this.$$set({registerurl:t}),l.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),l.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),l.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),l.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),l.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),l.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),l.flush()}}l.create_custom_element(Us,{session:{},userid:{},endpoint:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Us;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Ks, S as $s, i as er, s as tr, f as R, b as sr, n as At, d as Ze, e as Be, g as wt, h as Gt, k as rr, w as nr, l as Vt, m as ir, x as ar, r as or, y, o as lr, p as ur, t as dr, c as hr, $ as fr } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as Ks, S as $s, i as er, s as tr, f as R, b as sr, n as At, d as Ze, e as Be, g as wt, h as Gt, k as rr, w as nr, l as Vt, m as ir, x as ar, r as or, y, o as lr, p as ur, t as dr, c as hr, $ as fr } from "./CasinoTournamentsController-BULZ_y4b.js";
|
|
2
2
|
function cr(e) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -2573,7 +2573,7 @@ if (typeof window < "u") {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
};
|
|
2575
2575
|
};
|
|
2576
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-
|
|
2576
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-CBp3ylH6.js").then(
|
|
2577
2577
|
({ default: t }) => {
|
|
2578
2578
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
2579
2579
|
"casino-tournaments-thumbnail-controller",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CYyTUNIz.cjs");require("../stencil/ui-skeleton-se83zfWh.cjs");require("../stencil/ui-image-DE8MJHCZ.cjs");function ie({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function W(a,t){e.addMessages(a,t)}function ae(a){e.$locale.set(a)}const L={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function ne(a){e.append_styles(a,"svelte-1bncdcr",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function E(a){let t,i,r;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),r=e.element("div"),r.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(r,"class","Details"),e.attr(r,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,r,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(r))}}}function P(a){let t,i,r,n,l,d,m,o,c=a[0]&&B(a),h=a[7]=="true"&&U(a);function v(u,f){return u[4]?se:re}let _=v(a),k=_(a),b=a[2]&&q(a),g=a[12]&&K(a);return{c(){c&&c.c(),t=e.space(),h&&h.c(),i=e.space(),k.c(),r=e.space(),n=e.element("div"),l=e.element("div"),d=e.text(a[1]),m=e.space(),b&&b.c(),o=e.space(),g&&g.c(),e.attr(l,"class","Title"),e.attr(l,"part","Title"),e.attr(n,"class","Details"),e.attr(n,"part","Details")},m(u,f){c&&c.m(u,f),e.insert(u,t,f),h&&h.m(u,f),e.insert(u,i,f),k.m(u,f),e.insert(u,r,f),e.insert(u,n,f),e.append(n,l),e.append(l,d),e.append(n,m),b&&b.m(n,null),e.append(n,o),g&&g.m(n,null)},p(u,f){u[0]?c?c.p(u,f):(c=B(u),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),u[7]=="true"?h?h.p(u,f):(h=U(u),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),_===(_=v(u))&&k?k.p(u,f):(k.d(1),k=_(u),k&&(k.c(),k.m(r.parentNode,r))),f[0]&2&&e.set_data(d,u[1]),u[2]?b?b.p(u,f):(b=q(u),b.c(),b.m(n,o)):b&&(b.d(1),b=null),u[12]?g?g.p(u,f):(g=K(u),g.c(),g.m(n,null)):g&&(g.d(1),g=null)},d(u){u&&(e.detach(t),e.detach(i),e.detach(r),e.detach(n)),c&&c.d(u),h&&h.d(u),k.d(u),b&&b.d(),g&&g.d()}}}function B(a){let t,i,r,n,l,d;return{c(){t=e.element("div"),i=e.text(a[13]),e.attr(t,"class",r="Status "+a[15]),e.attr(t,"part",n="Status "+a[15])},m(m,o){e.insert(m,t,o),e.append(t,i),l||(d=e.action_destroyer(a[18].call(null,t)),l=!0)},p(m,o){o[0]&8192&&e.set_data(i,m[13]),o[0]&32768&&r!==(r="Status "+m[15])&&e.attr(t,"class",r),o[0]&32768&&n!==(n="Status "+m[15])&&e.attr(t,"part",n)},d(m){m&&e.detach(t),l=!1,d()}}}function U(a){let t,i=a[5]&&G(a);return{c(){i&&i.c(),t=e.empty()},m(r,n){i&&i.m(r,n),e.insert(r,t,n)},p(r,n){r[5]?i?i.p(r,n):(i=G(r),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(r){r&&e.detach(t),i&&i.d(r)}}}function G(a){let t,i=a[16]("enrolled")+"",r;return{c(){t=e.element("div"),r=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(n,l){e.insert(n,t,l),e.append(t,r)},p(n,l){l[0]&65536&&i!==(i=n[16]("enrolled")+"")&&e.set_data(r,i)},d(n){n&&e.detach(t)}}}function re(a){let t,i,r,n,l,d,m;return{c(){t=e.element("div"),i=e.element("ui-image"),e.src_url_equal(i.src,r="https://i.stack.imgur.com/y9DpT.jpg")||e.set_custom_element_data(i,"src",r),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(o,c){e.insert(o,t,c),e.append(t,i),d||(m=e.action_destroyer(a[18].call(null,t)),d=!0)},p(o,c){c[0]&1&&n!==(n="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),c[0]&1&&l!==(l="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(o){o&&e.detach(t),d=!1,m()}}}function se(a){let t,i,r,n,l,d,m;return{c(){t=e.element("div"),i=e.element("ui-image"),e.set_custom_element_data(i,"class","UIImage"),e.src_url_equal(i.src,r=a[4])||e.set_custom_element_data(i,"src",r),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(o,c){e.insert(o,t,c),e.append(t,i),d||(m=e.action_destroyer(a[18].call(null,t)),d=!0)},p(o,c){c[0]&16&&!e.src_url_equal(i.src,r=o[4])&&e.set_custom_element_data(i,"src",r),c[0]&1&&n!==(n="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),c[0]&1&&l!==(l="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(o){o&&e.detach(t),d=!1,m()}}}function q(a){let t,i,r,n,l;return{c(){t=e.element("div"),i=e.text(a[11]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(d,m){e.insert(d,t,m),e.append(t,i),n||(l=e.action_destroyer(r=a[17].call(null,t,a[2])),n=!0)},p(d,m){m[0]&2048&&e.set_data(i,d[11]),r&&e.is_function(r.update)&&m[0]&4&&r.update.call(null,d[2])},d(d){d&&e.detach(t),n=!1,l()}}}function K(a){let t,i,r=a[16]("scoreCriteria")+"",n,l,d,m,o,c=a[16]("minbet")+"",h,v,_,k,b,g,u,f=a[16]("seegames")+"",M,J,y,C=a[16]("here")+"",D,T,w,R;return{c(){t=e.element("div"),i=e.element("p"),n=e.text(r),l=e.text(`:
|
|
2
|
+
|
|
3
|
+
`),d=e.element("span"),m=e.text(a[14]),o=e.text(`
|
|
4
|
+
(`),h=e.text(c),v=e.space(),_=e.text(a[6]),k=e.text(")"),b=e.space(),g=e.element("div"),u=e.element("p"),M=e.text(f),J=e.space(),y=e.element("a"),D=e.text(C),e.attr(d,"part","ScoreCriteriaSpan"),e.attr(i,"part","ScoreCriteriaP"),e.attr(t,"class","ScoreCriteria"),e.attr(t,"part","ScoreCriteria"),e.attr(y,"part","GamesAnchor"),e.attr(y,"href",a[8]),e.attr(y,"target",T=a[9]==="true"?"_self":"_blank"),e.attr(u,"part","GamesP"),e.attr(g,"class","Games"),e.attr(g,"part","Games")},m(p,S){e.insert(p,t,S),e.append(t,i),e.append(i,n),e.append(i,l),e.append(i,d),e.append(d,m),e.append(i,o),e.append(i,h),e.append(i,v),e.append(i,_),e.append(i,k),e.insert(p,b,S),e.insert(p,g,S),e.append(g,u),e.append(u,M),e.append(u,J),e.append(u,y),e.append(y,D),w||(R=[e.action_destroyer(a[19].call(null,d)),e.listen(y,"click",a[28])],w=!0)},p(p,S){S[0]&65536&&r!==(r=p[16]("scoreCriteria")+"")&&e.set_data(n,r),S[0]&16384&&e.set_data(m,p[14]),S[0]&65536&&c!==(c=p[16]("minbet")+"")&&e.set_data(h,c),S[0]&64&&e.set_data(_,p[6]),S[0]&65536&&f!==(f=p[16]("seegames")+"")&&e.set_data(M,f),S[0]&65536&&C!==(C=p[16]("here")+"")&&e.set_data(D,C),S[0]&256&&e.attr(y,"href",p[8]),S[0]&512&&T!==(T=p[9]==="true"?"_self":"_blank")&&e.attr(y,"target",T)},d(p){p&&(e.detach(t),e.detach(b),e.detach(g)),w=!1,e.run_all(R)}}}function le(a){let t,i,r,n=a[1]==="undefined"&&E(),l=a[1]!=="undefined"&&P(a);return{c(){t=e.element("div"),n&&n.c(),i=e.space(),l&&l.c(),e.attr(t,"class",r=`Thumbnail ${a[1]==="undefined"?"Loading":""}`),e.attr(t,"part","Thumbnail")},m(d,m){e.insert(d,t,m),n&&n.m(t,null),e.append(t,i),l&&l.m(t,null),a[29](t)},p(d,m){d[1]==="undefined"?n||(n=E(),n.c(),n.m(t,i)):n&&(n.d(1),n=null),d[1]!=="undefined"?l?l.p(d,m):(l=P(d),l.c(),l.m(t,null)):l&&(l.d(1),l=null),m[0]&2&&r!==(r=`Thumbnail ${d[1]==="undefined"?"Loading":""}`)&&e.attr(t,"class",r)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),n&&n.d(),l&&l.d(),a[29](null)}}}function oe(a,t,i){let r;e.component_subscribe(a,e.$format,s=>i(16,r=s));let{session:n=""}=t,{userid:l=""}=t,{title:d=""}=t,{startdate:m=""}=t,{status:o=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:v=""}=t,{scorecriteria:_=""}=t,{minbetcount:k=""}=t,{showenrolled:b="false"}=t,{gameurl:g=""}=t,{lang:u="en"}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:M=""}=t,{clientstylingurl:J=""}=t,{translationurl:y=""}=t,C,D="",T=!1,w="",R="",p="";ie({withLocale:"en",translations:{}});const S=()=>{fetch(y).then(s=>s.json()).then(s=>{Object.keys(s).forEach(A=>{W(A,s[A])}),m&&z()}).catch(s=>{console.log(s)})};Object.keys(L).forEach(s=>{W(s,L[s])});const N=s=>{s.data&&(s.data&&s.data.type=="SessionID"&&i(12,T=!0),s.data.type==`TournamentStatus_${c}`&&i(0,o=s.data.status))},x=()=>{const s={month:"long"};let A=new Date(m),I=new Intl.DateTimeFormat("en",s).format(A),$=A.getDate(),ee=A.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const te=()=>r(o==="Running"?"startedAt":"startingAt");i(11,D=`${$} `+r(`${I}`)+", "+te()+` ${ee}`)},F=()=>{o=="Unstarted"&&(i(13,w=r("scheduled")),i(15,p="StatusUnstarted")),o=="Running"&&(i(13,w=r("ongoing")),i(15,p="StatusRunning")),(o=="Closed"||o=="Closing")&&i(13,w=r("finished")),o=="Closed"&&i(15,p="StatusClosed"),o=="Closing"&&i(15,p="StatusClosing")},j=()=>{_=="BetCount"&&i(14,R=r("betCount")),_=="MaxWinStakeRatio"&&i(14,R=r("maxWinStakeRatio")),_=="WinStakeRatio"&&i(14,R=r("winStakeRatio")),_=="Stake"&&i(14,R=r("stake"))},O=(s,A)=>{window.postMessage({type:"tournamentGamesClicked",tourId:A},window.location.href)},V=()=>{n.length>0&&n!="false"?i(12,T=!0):i(12,T=!1)},Y=()=>{let s=document.createElement("style");s.innerHTML=M,C.appendChild(s)},Z=()=>{let s=new URL(J),A=document.createElement("style");fetch(s.href).then(I=>I.text()).then(I=>{A.innerHTML=I,setTimeout(()=>{C.appendChild(A)},1),setTimeout(()=>{},500)})};e.onMount(()=>(setTimeout(()=>z(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N)}));const z=()=>{ae(u),j(),F(),m&&x()},Q=()=>O();function X(s){e.binding_callbacks[s?"unshift":"push"](()=>{C=s,i(10,C)})}return a.$$set=s=>{"session"in s&&i(21,n=s.session),"userid"in s&&i(22,l=s.userid),"title"in s&&i(1,d=s.title),"startdate"in s&&i(2,m=s.startdate),"status"in s&&i(0,o=s.status),"tourid"in s&&i(3,c=s.tourid),"thumbnail"in s&&i(4,h=s.thumbnail),"userenrolled"in s&&i(5,v=s.userenrolled),"scorecriteria"in s&&i(23,_=s.scorecriteria),"minbetcount"in s&&i(6,k=s.minbetcount),"showenrolled"in s&&i(7,b=s.showenrolled),"gameurl"in s&&i(8,g=s.gameurl),"lang"in s&&i(24,u=s.lang),"keepbrowsercontext"in s&&i(9,f=s.keepbrowsercontext),"clientstyling"in s&&i(25,M=s.clientstyling),"clientstylingurl"in s&&i(26,J=s.clientstylingurl),"translationurl"in s&&i(27,y=s.translationurl)},a.$$.update=()=>{a.$$.dirty[0]&33555456&&C&&M&&Y(),a.$$.dirty[0]&67109888&&C&&J&&Z(),a.$$.dirty[0]&134217728&&y&&S(),a.$$.dirty[0]&2097152&&n&&V(),a.$$.dirty[0]&1&&o&&F(),a.$$.dirty[0]&16777218&&d&&u&&z(),a.$$.dirty[0]&4&&m&&x(),a.$$.dirty[0]&8388608&&_&&j()},[o,d,m,c,h,v,k,b,g,f,C,D,T,w,R,p,r,x,F,j,O,n,l,_,u,M,J,y,Q,X]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,le,e.safe_not_equal,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},ne,[-1,-1])}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(H,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=H;
|