@everymatrix/casino-tournaments-customize-page-controller 1.16.1 → 1.17.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/dist/casino-tournaments-customize-page-controller.js +441 -439
- package/dist/casino-tournaments-customize-page-controller.js.map +1 -1
- package/index.html +0 -1
- package/package.json +2 -2
- package/src/CasinoTournamentsCellHandler.ts +5 -0
- package/src/CasinoTournamentsCustomizePageController.svelte +9 -0
- package/src/Cells/TranslateTextCell.svelte +31 -0
- package/src/Cells/translations.js +26 -25
- package/src/config/layout.js +8 -0
- package/src/Cells/Comonent.svelte +0 -338
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e,t){
|
|
2
2
|
// @ts-ignore
|
|
3
|
-
for(const
|
|
3
|
+
for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function i(e){e.forEach(n)}function o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,l;function u(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function d(e,t,n){e.$$.on_destroy.push(c(t,n))}function h(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function f(t){return t&&o(t.destroy)?t.destroy:e}function m(e,t){e.appendChild(t)}function p(e,t,n){e.insertBefore(t,n||null)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function b(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function y(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function v(){return C(" ")}function T(){return C("")}function x(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function _(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function k(e,t){t=""+t,e.data!==t&&(e.data=t)}function S(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function P(e,t,n){e.classList[n?"add":"remove"](t)}function E(e){const t={};for(const n of e)t[n.name]=n.value;return t}function $(e,t){return new e(t)}function L(e){l=e}function D(){if(!l)throw new Error("Function called outside component initialization");return l}
|
|
4
4
|
/**
|
|
5
5
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
6
6
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
@@ -47,37 +47,37 @@ for(let e=0;e<B.length;e+=1){const t=B[e];H.has(t)||(
|
|
|
47
47
|
H.add(t),t())}B.length=0}while(R.length);for(;F.length;)F.pop()();z=!1,H.clear(),L(e)}function Y(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}
|
|
48
48
|
/**
|
|
49
49
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
50
|
-
*/const j=new Set;let G,V;function W(){G={r:0,c:[],p:G}}function q(){G.r||i(G.c),G=G.p}function J(e,t){e&&e.i&&(j.delete(e),e.i(t))}function Z(e,t,r
|
|
50
|
+
*/const j=new Set;let G,V;function W(){G={r:0,c:[],p:G}}function q(){G.r||i(G.c),G=G.p}function J(e,t){e&&e.i&&(j.delete(e),e.i(t))}function Z(e,t,n,r){if(e&&e.o){if(j.has(e))return;j.add(e),G.c.push((()=>{j.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function K(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(r[e]=1);for(const e in s)i[e]||(n[e]=s[e],i[e]=1);e[o]=s}else for(const e in a)i[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function X(e){return"object"==typeof e&&null!==e?e:{}}function Q(e){e&&e.c()}function ee(e,t,r,a){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,r),a||
|
|
51
51
|
// onMount happens before the initial afterUpdate
|
|
52
|
-
N((()=>{const t=e.$$.on_mount.map(
|
|
52
|
+
N((()=>{const t=e.$$.on_mount.map(n).filter(o);
|
|
53
53
|
// if the component was destroyed immediately
|
|
54
54
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
55
55
|
// the destructured on_destroy may still reference to the old array
|
|
56
56
|
e.$$.on_destroy?e.$$.on_destroy.push(...t):
|
|
57
57
|
// Edge case - component was destroyed immediately,
|
|
58
58
|
// most likely as a result of a binding initialising
|
|
59
|
-
i(t),e.$$.on_mount=[]})),l.forEach(N)}function te(e,t){const
|
|
59
|
+
i(t),e.$$.on_mount=[]})),l.forEach(N)}function te(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];B.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),B=t}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
60
60
|
// TODO null out other refs, including component.$$ (but need to
|
|
61
61
|
// preserve final state?)
|
|
62
|
-
|
|
62
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function ne(e,t){-1===e.$$.dirty[0]&&(R.push(e),z||(z=!0,O.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function re(t,n,o,a,s,u,c,d=[-1]){const h=l;L(t);const f=t.$$={fragment:null,ctx:[],
|
|
63
63
|
// state
|
|
64
|
-
props:u,update:e,not_equal:s,bound:
|
|
64
|
+
props:u,update:e,not_equal:s,bound:r(),
|
|
65
65
|
// lifecycle
|
|
66
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(
|
|
66
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(h?h.$$.context:[])),
|
|
67
67
|
// everything else
|
|
68
|
-
callbacks:
|
|
68
|
+
callbacks:r(),dirty:d,skip_bound:!1,root:n.target||h.$$.root};c&&c(f.root);let m=!1;if(f.ctx=o?o(t,n.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return f.ctx&&s(f.ctx[e],f.ctx[e]=i)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](i),m&&ne(t,e)),n})):[],f.update(),m=!0,i(f.before_update),
|
|
69
69
|
// `false` as a special case of no DOM component
|
|
70
|
-
f.fragment=!!a&&a(f.ctx),
|
|
70
|
+
f.fragment=!!a&&a(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);
|
|
71
71
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
72
72
|
f.fragment&&f.fragment.l(e),e.forEach(g)}else
|
|
73
73
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
74
|
-
f.fragment&&f.fragment.c();
|
|
74
|
+
f.fragment&&f.fragment.c();n.intro&&J(t.$$.fragment),ee(t,n.target,n.anchor,n.customElement),I()}L(h)}"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(n).filter(o);
|
|
75
75
|
// @ts-ignore todo: improve typings
|
|
76
76
|
for(const e in this.$$.slotted)
|
|
77
77
|
// @ts-ignore todo: improve typings
|
|
78
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,
|
|
78
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){te(this,1),this.$destroy=e}$on(t,n){
|
|
79
79
|
// TODO should this delegate to addEventListener?
|
|
80
|
-
if(!o(
|
|
80
|
+
if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const ie=[];
|
|
81
81
|
/**
|
|
82
82
|
* Creates a `Readable` store that allows reading by subscription.
|
|
83
83
|
* @param value initial value
|
|
@@ -88,20 +88,20 @@ if(!o(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
88
88
|
* @param {*=}value initial value
|
|
89
89
|
* @param {StartStopNotifier=} start
|
|
90
90
|
*/
|
|
91
|
-
function oe(t,
|
|
92
|
-
const e=!ie.length;for(const e of i)e[1](),ie.push(e,t);if(e){for(let e=0;e<ie.length;e+=2)ie[e][0](ie[e+1]);ie.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return i.add(l),1===i.size&&(n
|
|
91
|
+
function oe(t,n=e){let r;const i=new Set;function o(e){if(a(t,e)&&(t=e,r)){// store is ready
|
|
92
|
+
const e=!ie.length;for(const e of i)e[1](),ie.push(e,t);if(e){for(let e=0;e<ie.length;e+=2)ie[e][0](ie[e+1]);ie.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return i.add(l),1===i.size&&(r=n(o)||e),a(t),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function ae(t,n,r){const a=!Array.isArray(t),s=a?[t]:t,l=n.length<2;return u=t=>{let r=!1;const u=[];let d=0,h=e;const f=()=>{if(d)return;h();const r=n(a?u[0]:u,t);l?t(r):h=o(r)?r:e},m=s.map(((e,t)=>c(e,(e=>{u[t]=e,d&=~(1<<t),r&&f()}),(()=>{d|=1<<t}))));return r=!0,f(),function(){i(m),h(),
|
|
93
93
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
94
94
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
95
95
|
// invoke this derived store.
|
|
96
|
-
|
|
96
|
+
r=!1}},{subscribe:oe(r,u).subscribe};var u}var se=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===le}(e)}
|
|
97
97
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
98
|
-
(e)};var le="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ue(e,t){return!1!==t.clone&&t.isMergeableObject(e)?me((
|
|
98
|
+
(e)};var le="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ue(e,t){return!1!==t.clone&&t.isMergeableObject(e)?me((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function ce(e,t,n){return e.concat(t).map((function(e){return ue(e,n)}))}function de(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function he(e,t){try{return t in e}catch(e){return!1}}
|
|
99
99
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
100
|
-
function fe(e,t,
|
|
101
|
-
})(e,i)||(he(e,i)&&
|
|
100
|
+
function fe(e,t,n){var r={};return n.isMergeableObject(e)&&de(e).forEach((function(t){r[t]=ue(e[t],n)})),de(t).forEach((function(i){(function(e,t){return he(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
101
|
+
})(e,i)||(he(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return me;var n=t.customMerge(e);return"function"==typeof n?n:me}(i,n)(e[i],t[i],n):r[i]=ue(t[i],n))})),r}function me(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ce,n.isMergeableObject=n.isMergeableObject||se,
|
|
102
102
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
103
103
|
// implementations can use it. The caller may not replace it.
|
|
104
|
-
|
|
104
|
+
n.cloneUnlessOtherwiseSpecified=ue;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):fe(e,t,n):ue(t,n)}me.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return me(e,n,t)}),{})};var pe=me,ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ge(e,t)};function be(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ge(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ye,we,Ce,ve=function(){return ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ve.apply(this,arguments)};function Te(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
|
|
105
105
|
/**
|
|
106
106
|
* Type Guards
|
|
107
107
|
*/
|
|
@@ -216,33 +216,33 @@ e[e.tag=8]="tag"}(we||(we={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
216
216
|
* @public
|
|
217
217
|
* @param skeleton skeleton string
|
|
218
218
|
*/
|
|
219
|
-
function Fe(e){var t={};return e.replace(Be,(function(e){var
|
|
219
|
+
function Fe(e){var t={};return e.replace(Be,(function(e){var n=e.length;switch(e[0]){
|
|
220
220
|
// Era
|
|
221
|
-
case"G":t.era=4===
|
|
221
|
+
case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
|
|
222
222
|
// Year
|
|
223
|
-
case"y":t.year=2===
|
|
223
|
+
case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
224
224
|
// Quarter
|
|
225
225
|
case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
226
226
|
// Month
|
|
227
|
-
case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][
|
|
227
|
+
case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;
|
|
228
228
|
// Week
|
|
229
|
-
case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][
|
|
229
|
+
case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
230
230
|
// Weekday
|
|
231
|
-
case"E":t.weekday=4===
|
|
231
|
+
case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;
|
|
232
232
|
// Period
|
|
233
233
|
case"a":// AM, PM
|
|
234
234
|
t.hour12=!0;break;case"b":// am, pm, noon, midnight
|
|
235
235
|
case"B":// flexible day periods
|
|
236
236
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
237
237
|
// Hour
|
|
238
|
-
case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][
|
|
238
|
+
case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
239
239
|
// Minute
|
|
240
|
-
case"m":t.minute=["numeric","2-digit"][
|
|
240
|
+
case"m":t.minute=["numeric","2-digit"][n-1];break;
|
|
241
241
|
// Second
|
|
242
|
-
case"s":t.second=["numeric","2-digit"][
|
|
242
|
+
case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
243
243
|
// Zone
|
|
244
244
|
case"z":// 1..3, 4: specific non-location format
|
|
245
|
-
t.timeZoneName=
|
|
245
|
+
t.timeZoneName=n<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
|
|
246
246
|
case"O":// 1, 4: miliseconds in day short, long
|
|
247
247
|
case"v":// 1, 4: generic non-location format
|
|
248
248
|
case"V":// 1, 2, 3, 4: time zone ID or city
|
|
@@ -250,26 +250,26 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
250
250
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
251
251
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
252
252
|
// @generated from regex-gen.ts
|
|
253
|
-
var Oe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ze=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ne=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,Ue=/^(0+)$/;function Ie(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ne,(function(e,r
|
|
253
|
+
var Oe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ze=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ne=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,Ue=/^(0+)$/;function Ie(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ne,(function(e,n,r){
|
|
254
254
|
// @@@ case
|
|
255
|
-
return"string"!=typeof
|
|
255
|
+
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Ye(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function je(e){
|
|
256
256
|
// Engineering
|
|
257
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var
|
|
257
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ue.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ge(e){var t=Ye(e);return t||{}}
|
|
258
258
|
/**
|
|
259
259
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
260
|
-
*/function Ve(e){for(var t={},
|
|
260
|
+
*/function Ve(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ve(ve(ve({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ve(ve({},e),Ge(t))}),{}));continue;case"engineering":t=ve(ve(ve({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ve(ve({},e),Ge(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
261
261
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
262
262
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
263
263
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
264
|
-
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(He,(function(e,r,
|
|
264
|
+
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(He,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
265
265
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
266
266
|
if(Ue.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(ze.test(i.stem)){
|
|
267
267
|
// Precision
|
|
268
268
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
269
269
|
// precision-integer case
|
|
270
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ze,(function(e,r,
|
|
270
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ze,(function(e,n,r,i,o,a){
|
|
271
271
|
// .000* case (before ICU67 it was .000+)
|
|
272
|
-
return"*"===
|
|
272
|
+
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
|
|
273
273
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
274
274
|
"w"===o?t=ve(ve({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ve(ve({},t),Ie(o)))}
|
|
275
275
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
@@ -297,10 +297,10 @@ e.hourCycles.length&&(
|
|
|
297
297
|
// @ts-ignore
|
|
298
298
|
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
299
299
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
300
|
-
var r
|
|
300
|
+
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(qe[n||""]||qe[r||""]||qe["".concat(r,"-001")]||qe["001"])[0]}var Ze=new RegExp("^".concat(Ae.source,"*")),Ke=new RegExp("".concat(Ae.source,"*$"));function Xe(e,t){return{start:e,end:t}}
|
|
301
301
|
// #region Ponyfills
|
|
302
302
|
// Consolidate these variables up top for easier toggling during debugging
|
|
303
|
-
var Qe=!!String.prototype.startsWith,et=!!String.fromCodePoint,tt=!!Object.fromEntries,
|
|
303
|
+
var Qe=!!String.prototype.startsWith,et=!!String.fromCodePoint,tt=!!Object.fromEntries,nt=!!String.prototype.codePointAt,rt=!!String.prototype.trimStart,it=!!String.prototype.trimEnd,ot=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},at=!0;try{
|
|
304
304
|
/**
|
|
305
305
|
* legacy Edge or Xbox One browser
|
|
306
306
|
* Unicode flag support: supported
|
|
@@ -308,14 +308,14 @@ var Qe=!!String.prototype.startsWith,et=!!String.fromCodePoint,tt=!!Object.fromE
|
|
|
308
308
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
309
309
|
*/
|
|
310
310
|
at="a"===(null===(We=mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===We?void 0:We[0])}catch(e){at=!1}var st,lt=Qe?// Native
|
|
311
|
-
function(e,t,
|
|
312
|
-
function(e,t,
|
|
313
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r
|
|
311
|
+
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
|
312
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},ut=et?String.fromCodePoint:// IE11
|
|
313
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},ct=
|
|
314
314
|
// native
|
|
315
315
|
tt?Object.fromEntries:// Ponyfill
|
|
316
|
-
function(e){for(var t={},
|
|
316
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},dt=nt?// Native
|
|
317
317
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
318
|
-
function(e,t){var
|
|
318
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},ht=rt?// Native
|
|
319
319
|
function(e){return e.trimStart()}:// Ponyfill
|
|
320
320
|
function(e){return e.replace(Ze,"")},ft=it?// Native
|
|
321
321
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
@@ -325,9 +325,9 @@ function mt(e,t){return new RegExp(e,t)}
|
|
|
325
325
|
// #endregion
|
|
326
326
|
if(at){
|
|
327
327
|
// Native
|
|
328
|
-
var pt=mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");st=function(e,t){var
|
|
328
|
+
var pt=mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");st=function(e,t){var n;return pt.lastIndex=t,null!==(n=pt.exec(e)[1])&&void 0!==n?n:""}}else
|
|
329
329
|
// IE11
|
|
330
|
-
st=function(e,t){for(var
|
|
330
|
+
st=function(e,t){for(var n=[];;){var r=dt(e,t);if(void 0===r||yt(r)||wt(r))break;n.push(r),t+=r>=65536?2:1}return ut.apply(void 0,n)};var gt=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ye.UNMATCHED_CLOSING_TAG,Xe(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&bt(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:we.pound,location:Xe(a,this.clonePosition())})}}}return{val:r,err:null}},
|
|
331
331
|
/**
|
|
332
332
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
333
333
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -346,17 +346,17 @@ st=function(e,t){for(var r=[];;){var n=dt(e,t);if(void 0===n||yt(n)||wt(n))break
|
|
|
346
346
|
* NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
|
|
347
347
|
* since other tag-based engines like React allow it
|
|
348
348
|
*/
|
|
349
|
-
e.prototype.parseTag=function(e,t){var
|
|
350
|
-
var
|
|
349
|
+
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
|
350
|
+
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
351
351
|
// Self closing tag
|
|
352
|
-
return{val:{type:we.literal,value:"<".concat(
|
|
352
|
+
return{val:{type:we.literal,value:"<".concat(r,"/>"),location:Xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();
|
|
353
353
|
// Expecting a close tag
|
|
354
|
-
if(this.bumpIf("</")){if(this.isEOF()||!bt(this.char()))return this.error(ye.INVALID_TAG,Xe(a,this.clonePosition()));var s=this.clonePosition();return
|
|
354
|
+
if(this.bumpIf("</")){if(this.isEOF()||!bt(this.char()))return this.error(ye.INVALID_TAG,Xe(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(ye.UNMATCHED_CLOSING_TAG,Xe(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:we.tag,value:r,children:o,location:Xe(n,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,Xe(a,this.clonePosition())))}return this.error(ye.UNCLOSED_TAG,Xe(n,this.clonePosition()))}return this.error(ye.INVALID_TAG,Xe(n,this.clonePosition()))},
|
|
355
355
|
/**
|
|
356
356
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
357
357
|
*/
|
|
358
358
|
e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
|
|
359
|
-
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var
|
|
359
|
+
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=Xe(n,this.clonePosition());return{val:{type:we.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(bt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
360
360
|
/** See `parseTag` function docs. */},
|
|
361
361
|
/**
|
|
362
362
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -374,27 +374,27 @@ case 123:case 60:case 62:case 125:break;case 35:// '#'
|
|
|
374
374
|
if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();// apostrophe
|
|
375
375
|
var t=[this.char()];// escaped char
|
|
376
376
|
// read chars until the optional closing apostrophe is found
|
|
377
|
-
for(this.bump();!this.isEOF();){var
|
|
377
|
+
for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'` */!==this.peek()){
|
|
378
378
|
// Optional closing apostrophe.
|
|
379
379
|
this.bump();break}t.push(39),
|
|
380
380
|
// Bump one more time because we need to skip 2 characters.
|
|
381
|
-
this.bump()}else t.push(
|
|
382
|
-
this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(
|
|
381
|
+
this.bump()}else t.push(n);this.bump()}return ut.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),ut(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
|
|
382
|
+
this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(ye.EMPTY_ARGUMENT,Xe(n,this.clonePosition()));
|
|
383
383
|
// argument name
|
|
384
|
-
var
|
|
384
|
+
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ye.MALFORMED_ARGUMENT,Xe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(n,this.clonePosition()));switch(this.char()){
|
|
385
385
|
// Simple argument: `{name}`
|
|
386
386
|
case 125/* `}` */:// `}`
|
|
387
387
|
return this.bump(),{val:{type:we.argument,
|
|
388
388
|
// value does not include the opening and closing braces.
|
|
389
|
-
value:
|
|
389
|
+
value:r,location:Xe(n,this.clonePosition())},err:null};
|
|
390
390
|
// Argument with options: `{name, format, ...}`
|
|
391
391
|
case 44/* `,` */:return this.bump(),// `,`
|
|
392
|
-
this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(
|
|
392
|
+
this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(ye.MALFORMED_ARGUMENT,Xe(n,this.clonePosition()))}},
|
|
393
393
|
/**
|
|
394
394
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
395
395
|
* an identifier character. Return an empty string otherwise.
|
|
396
396
|
*/
|
|
397
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),
|
|
397
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=st(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Xe(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();
|
|
398
398
|
// Parse this range:
|
|
399
399
|
// {name, type, style}
|
|
400
400
|
// ^---^
|
|
@@ -404,17 +404,17 @@ return this.error(ye.EXPECT_ARGUMENT_TYPE,Xe(o,s));case"number":case"date":case"
|
|
|
404
404
|
// Parse this range:
|
|
405
405
|
// {name, number, style}
|
|
406
406
|
// ^-------^
|
|
407
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=ft(b.val)).length)return this.error(ye.EXPECT_ARGUMENT_STYLE,Xe(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Xe(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(
|
|
407
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=ft(b.val)).length)return this.error(ye.EXPECT_ARGUMENT_STYLE,Xe(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Xe(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var c=Xe(r,this.clonePosition());
|
|
408
408
|
// Extract style or skeleton
|
|
409
409
|
if(l&<(null==l?void 0:l.style,"::",0)){
|
|
410
410
|
// Skeleton starts with `::`.
|
|
411
|
-
var d=ht(l.style.slice(2));if("number"===a)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:we.number,value:
|
|
411
|
+
var d=ht(l.style.slice(2));if("number"===a)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:we.number,value:n,location:c,style:b.val},err:null};if(0===d.length)return this.error(ye.EXPECT_DATE_TIME_SKELETON,c);var h=d;
|
|
412
412
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
413
413
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
414
414
|
// for unsupported patterns.
|
|
415
|
-
this.locale&&(h=function(e,t){for(var
|
|
415
|
+
this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=Je(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(d,this.locale));var f={type:Ce.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Fe(h):{}};return{val:{type:"date"===a?we.date:we.time,value:n,location:c,style:f},err:null}}
|
|
416
416
|
// Regular style or no style.
|
|
417
|
-
return{val:{type:"number"===a?we.number:"date"===a?we.date:we.time,value:
|
|
417
|
+
return{val:{type:"number"===a?we.number:"date"===a?we.date:we.time,value:n,location:c,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
418
418
|
// Parse this range:
|
|
419
419
|
// {name, plural, options}
|
|
420
420
|
// ^---------^
|
|
@@ -427,7 +427,7 @@ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
427
427
|
// ^--^
|
|
428
428
|
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xe(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
|
|
429
429
|
// Parse another identifier for option parsing
|
|
430
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=b.val}var y,w=this.tryParsePluralOrSelectOptions(e,a,t,p);if(w.err)return w;if((y=this.tryParseArgumentClose(
|
|
430
|
+
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=b.val}var y,w=this.tryParsePluralOrSelectOptions(e,a,t,p);if(w.err)return w;if((y=this.tryParseArgumentClose(r)).err)return y;var C=Xe(r,this.clonePosition());return"select"===a?{val:{type:we.select,value:n,options:ct(w.val),location:C},err:null}:{val:{type:we.plural,value:n,options:ct(w.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:C},err:null};default:return this.error(ye.INVALID_ARGUMENT_TYPE,Xe(o,s))}},e.prototype.tryParseArgumentClose=function(e){
|
|
431
431
|
// Parse: {value, number, ::currency/GBP }
|
|
432
432
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
433
433
|
/**
|
|
@@ -436,9 +436,9 @@ return this.isEOF()||125/* `}` */!==this.char()?this.error(ye.EXPECT_ARGUMENT_CL
|
|
|
436
436
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
437
437
|
// Treat apostrophe as quoting but include it in the style part.
|
|
438
438
|
// Find the end of the quoted literal text.
|
|
439
|
-
this.bump();var
|
|
439
|
+
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xe(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
440
440
|
// Parse the skeleton
|
|
441
|
-
for(var t=[],
|
|
441
|
+
for(var t=[],n=0,r=e.split(Oe).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(ye.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ce.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ve(n):{}},err:null}},
|
|
442
442
|
/**
|
|
443
443
|
* @param nesting_level The current nesting level of messages.
|
|
444
444
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -449,11 +449,11 @@ for(var t=[],r=0,n=e.split(Oe).filter((function(e){return e.length>0}));r<n.leng
|
|
|
449
449
|
* between a pair of opening and closing tags. The nested message will not parse beyond
|
|
450
450
|
* the closing tag boundary.
|
|
451
451
|
*/
|
|
452
|
-
e.prototype.tryParsePluralOrSelectOptions=function(e,t,r
|
|
452
|
+
e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
453
453
|
// Parse:
|
|
454
454
|
// one {one apple}
|
|
455
455
|
// ^--^
|
|
456
|
-
for(var i,o=!1,a=[],s=new Set,l=
|
|
456
|
+
for(var i,o=!1,a=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
457
457
|
// Try parse `={number}` selector
|
|
458
458
|
var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=Xe(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
|
459
459
|
// Duplicate selector clauses
|
|
@@ -461,11 +461,11 @@ if(s.has(l))return this.error("select"===t?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR
|
|
|
461
461
|
// Parse:
|
|
462
462
|
// one {one apple}
|
|
463
463
|
// ^----------^
|
|
464
|
-
this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xe(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,
|
|
464
|
+
this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xe(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([l,{value:f.val,location:Xe(h,this.clonePosition())}]),
|
|
465
465
|
// Keep track of the existing selectors
|
|
466
466
|
s.add(l),
|
|
467
467
|
// Prep next selector clause.
|
|
468
|
-
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ye.MISSING_OTHER_CLAUSE,Xe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var
|
|
468
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ye.MISSING_OTHER_CLAUSE,Xe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48/* `0` */&&a<=57/* `9` */))break;i=!0,o=10*o+(a-48),this.bump()}var s=Xe(r,this.clonePosition());return i?ot(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
469
469
|
// This is much faster than `Object.assign` or spread.
|
|
470
470
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
471
471
|
/**
|
|
@@ -488,7 +488,7 @@ e.prototype.bumpIf=function(e){if(lt(this.message,e,this.offset())){for(var t=0;
|
|
|
488
488
|
* Bump the parser until the pattern character is found and return `true`.
|
|
489
489
|
* Otherwise bump to the end of the file and return `false`.
|
|
490
490
|
*/
|
|
491
|
-
e.prototype.bumpUntil=function(e){var t=this.offset(),
|
|
491
|
+
e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},
|
|
492
492
|
/**
|
|
493
493
|
* Bump the parser to the target offset.
|
|
494
494
|
* If target offset is beyond the end of the input, bump the parser to the end of the input.
|
|
@@ -500,7 +500,7 @@ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yt(this.char());)this.bump(
|
|
|
500
500
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
501
501
|
* If the input has been exhausted, then this returns null.
|
|
502
502
|
*/
|
|
503
|
-
e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),
|
|
503
|
+
e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();
|
|
504
504
|
/**
|
|
505
505
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
506
506
|
* @param codepoint
|
|
@@ -514,19 +514,19 @@ function yt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||
|
|
|
514
514
|
/**
|
|
515
515
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
516
516
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
517
|
-
*/function wt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ct(e){e.forEach((function(e){if(delete e.location,Ee(e)||$e(e))for(var t in e.options)delete e.options[t].location,Ct(e.options[t].value);else ke(e)&&Me(e.style)||(Se(e)||Pe(e))&&Re(e.style)?delete e.style.location:De(e)&&Ct(e.children)}))}function vt(e,t){void 0===t&&(t={}),t=ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var
|
|
517
|
+
*/function wt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ct(e){e.forEach((function(e){if(delete e.location,Ee(e)||$e(e))for(var t in e.options)delete e.options[t].location,Ct(e.options[t].value);else ke(e)&&Me(e.style)||(Se(e)||Pe(e))&&Re(e.style)?delete e.style.location:De(e)&&Ct(e.children)}))}function vt(e,t){void 0===t&&(t={}),t=ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new gt(e,t).parse();if(n.err){var r=SyntaxError(ye[n.err.kind]);
|
|
518
518
|
// @ts-expect-error Assign to error object
|
|
519
|
-
throw
|
|
519
|
+
throw r.location=n.err.location,
|
|
520
520
|
// @ts-expect-error Assign to error object
|
|
521
|
-
|
|
521
|
+
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Ct(n.val),n.val}
|
|
522
522
|
|
|
523
523
|
// Main
|
|
524
524
|
|
|
525
|
-
function Tt(e,t){var
|
|
525
|
+
function Tt(e,t){var n=t&&t.cache?t.cache:Lt,r=t&&t.serializer?t.serializer:Pt;return(t&&t.strategy?t.strategy:St)(e,{cache:n,serializer:r})}
|
|
526
526
|
|
|
527
527
|
// Strategy
|
|
528
528
|
|
|
529
|
-
function xt(e,t,r
|
|
529
|
+
function xt(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function _t(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function kt(e,t,n,r,i){return n.bind(t,e,r,i)}function St(e,t){return kt(e,this,1===e.length?xt:_t,t.cache.create(),t.serializer)}
|
|
530
530
|
// Serializer
|
|
531
531
|
var Pt=function(){return JSON.stringify(arguments)};
|
|
532
532
|
|
|
@@ -540,9 +540,9 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
540
540
|
// When value supplied is invalid
|
|
541
541
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
542
542
|
// When we need specific Intl API but it's not available
|
|
543
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}($t||($t={}));var Mt,Rt=/** @class */function(e){function t(t,r
|
|
543
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}($t||($t={}));var Mt,Rt=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return be(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),At=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return be(t,e),t}(Rt),Bt=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),$t.INVALID_VALUE,r)||this}return be(t,e),t}(Rt),Ft=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),$t.MISSING_VALUE,n)||this}return be(t,e),t}(Rt);function Ot(e){return"function"==typeof e}
|
|
544
544
|
// TODO(skeleton): add skeleton support
|
|
545
|
-
function zt(e,t,r,
|
|
545
|
+
function zt(e,t,n,r,i,o,
|
|
546
546
|
// For debugging
|
|
547
547
|
a){
|
|
548
548
|
// Hot path for straight simple msg translations
|
|
@@ -551,41 +551,41 @@ if(1===e.length&&xe(e[0]))return[{type:Mt.literal,value:e[0].value}];for(var s=[
|
|
|
551
551
|
if(xe(c))s.push({type:Mt.literal,value:c.value});else
|
|
552
552
|
// TODO: should this part be literal type?
|
|
553
553
|
// Replace `#` in plural rules with the actual numeric value.
|
|
554
|
-
if(Le(c))"number"==typeof o&&s.push({type:Mt.literal,value:
|
|
554
|
+
if(Le(c))"number"==typeof o&&s.push({type:Mt.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;
|
|
555
555
|
// Enforce that all required values are provided by the caller.
|
|
556
556
|
if(!i||!(d in i))throw new Ft(d,a);var h=i[d];if(_e(c))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Mt.literal:Mt.object,value:h});else
|
|
557
557
|
// Recursively format plural and select parts' option — which can be a
|
|
558
558
|
// nested pattern structure. The choosing of the option to use is
|
|
559
559
|
// abstracted-by and delegated-to the part helper object.
|
|
560
|
-
if(Se(c)){var f="string"==typeof c.style?
|
|
560
|
+
if(Se(c)){var f="string"==typeof c.style?r.date[c.style]:Re(c.style)?c.style.parsedOptions:void 0;s.push({type:Mt.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(Pe(c)){f="string"==typeof c.style?r.time[c.style]:Re(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:Mt.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(ke(c)){(f="string"==typeof c.style?r.number[c.style]:Me(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Mt.literal,value:n.getNumberFormat(t,f).format(h)})}else{if(De(c)){var m=c.children,p=c.value,g=i[p];if(!Ot(g))throw new Bt(p,"function",a);var b=g(zt(m,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map((function(e){return{type:"string"==typeof e?Mt.literal:Mt.object,value:e}})))}if(Ee(c)){if(!(y=c.options[h]||c.options.other))throw new At(c.value,h,Object.keys(c.options),a);s.push.apply(s,zt(y.value,t,n,r,i))}else if($e(c)){var y;if(!(y=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Rt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$t.MISSING_INTL_API,a);var w=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));y=c.options[w]||c.options.other}if(!y)throw new At(c.value,h,Object.keys(c.options),a);s.push.apply(s,zt(y.value,t,n,r,i,h-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Mt.literal&&t.type===Mt.literal?n.value+=t.value:e.push(t),e}),[])}(s)}
|
|
561
561
|
/*
|
|
562
562
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
563
563
|
Copyrights licensed under the New BSD License.
|
|
564
564
|
See the accompanying LICENSE file for terms.
|
|
565
565
|
*/
|
|
566
566
|
// -- MessageFormat --------------------------------------------------------
|
|
567
|
-
function Nt(e,t){return t?Object.keys(e).reduce((function(r
|
|
567
|
+
function Nt(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?ve(ve(ve({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=ve(ve({},i[t]),o[t]||{}),e}),{})):i),n}),ve({},e)):e}function Ht(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Mt||(Mt={}));var Ut=/** @class */function(){function e(t,n,r,i){var o,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);
|
|
568
568
|
// Hot path for straight simple msg translations
|
|
569
|
-
if(1===t.length)return t[0].value;var
|
|
569
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Mt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return zt(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},
|
|
570
570
|
// Defined first because it's used to build the format pattern.
|
|
571
|
-
this.locales=
|
|
571
|
+
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
572
572
|
// Parse string messages into an AST.
|
|
573
573
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
574
574
|
// Creates a new object with the specified `formats` merged with the default
|
|
575
575
|
// formats.
|
|
576
|
-
this.formats=Nt(e.formats,
|
|
576
|
+
this.formats=Nt(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Tt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Te([void 0],t,!1)))}),{cache:Ht(o.number),strategy:Dt.variadic}),getDateTimeFormat:Tt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Te([void 0],t,!1)))}),{cache:Ht(o.dateTime),strategy:Dt.variadic}),getPluralRules:Tt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Te([void 0],t,!1)))}),{cache:Ht(o.pluralRules),strategy:Dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=vt,
|
|
577
577
|
// Default format options used as the prototype of the `formats` provided to the
|
|
578
578
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
579
579
|
// and Intl.DateTimeFormat instances.
|
|
580
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const It={},Yt=(e,t,
|
|
580
|
+
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const It={},Yt=(e,t,n)=>n?(t in It||(It[t]={}),e in It[t]||(It[t][e]=n),n):n,jt=(e,t)=>{if(null==t)return;if(t in It&&e in It[t])return It[t][e];const n=Tn(t);for(let r=0;r<n.length;r++){const i=qt(n[r],e);if(i)return Yt(e,t,i)}};let Gt;const Vt=oe({});function Wt(e){return e in Gt}function qt(e,t){if(!Wt(e))return null;const n=function(e){return Gt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Jt(e,...t){delete It[e],Vt.update((n=>(n[e]=pe.all([n[e]||{},...t]),n)))}ae([Vt],(([e])=>Object.keys(e))),Vt.subscribe((e=>Gt=e));const Zt={};function Kt(e){return Zt[e]}function Xt(e){return null!=e&&Tn(e).some((e=>{var t;return null==(t=Kt(e))?void 0:t.size}))}function Qt(e,t){const n=Promise.all(t.map((t=>(function(e,t){Zt[e].delete(t),0===Zt[e].size&&delete Zt[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Jt(e,...t)))}const en={};function tn(e){if(!Xt(e))return e in en?en[e]:Promise.resolve();const t=function(e){return Tn(e).map((e=>{const t=Kt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return en[e]=Promise.all(t.map((([e,t])=>Qt(e,t)))).then((()=>{if(Xt(e))return tn(e);delete en[e]})),en[e]}var nn=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,an=(e,t)=>{var n={};for(var r in e)rn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nn)for(var r of nn(e))t.indexOf(r)<0&&on.call(e,r)&&(n[r]=e[r]);return n};function sn({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Tn(e).join('", "')}".${Xt(xn())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const ln={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function un(){return ln}function cn(e){const t=e,{formats:n}=t,r=an(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Ut.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,null==r.handleMissingMessage?r.handleMissingMessage=sn:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ln,r,{initialLocale:i}),n&&("number"in n&&Object.assign(ln.formats.number,n.number),"date"in n&&Object.assign(ln.formats.date,n.date),"time"in n&&Object.assign(ln.formats.time,n.time)),_n.set(i)}const dn=oe(!1);var hn=Object.defineProperty,fn=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,yn=(e,t,n)=>t in e?hn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let wn;const Cn=oe(null);function vn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Tn(e,t=un().fallbackLocale){const n=vn(e);return t?[...new Set([...n,...vn(t)])]:n}function xn(){return null!=wn?wn:void 0}Cn.subscribe((e=>{wn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const _n=(kn=((e,t)=>{for(var n in t||(t={}))gn.call(t,n)&&yn(e,n,t[n]);if(pn)for(var n of pn(t))bn.call(t,n)&&yn(e,n,t[n]);return e})({},Cn),fn(kn,mn({set:e=>{if(e&&function(e){if(null==e)return;const t=Tn(e);for(let e=0;e<t.length;e++){const n=t[e];if(Wt(n))return n}}(e)&&Xt(e)){const{loadingDelay:t}=un();let n;return"undefined"!=typeof window&&null!=xn()&&t?n=window.setTimeout((()=>dn.set(!0)),t):dn.set(!0),tn(e).then((()=>{Cn.set(e)})).finally((()=>{clearTimeout(n),dn.set(!1)}))}return Cn.set(e)}})));var kn;const Sn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var Pn=Object.defineProperty,En=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Dn=(e,t,n)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t)=>{for(var n in t||(t={}))$n.call(t,n)&&Dn(e,n,t[n]);if(En)for(var n of En(t))Ln.call(t,n)&&Dn(e,n,t[n]);return e},Rn=(e,t)=>{var n={};for(var r in e)$n.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&En)for(var r of En(e))t.indexOf(r)<0&&Ln.call(e,r)&&(n[r]=e[r]);return n};const An=(e,t)=>{const{formats:n}=un();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bn=Sn((e=>{var t=e,{locale:n,format:r}=t,i=Rn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=An("number",r)),new Intl.NumberFormat(n,i)})),Fn=Sn((e=>{var t=e,{locale:n,format:r}=t,i=Rn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=An("date",r):0===Object.keys(i).length&&(i=An("date","short")),new Intl.DateTimeFormat(n,i)})),On=Sn((e=>{var t=e,{locale:n,format:r}=t,i=Rn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=An("time",r):0===Object.keys(i).length&&(i=An("time","short")),new Intl.DateTimeFormat(n,i)})),zn=Sn((
|
|
581
581
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
582
|
-
(e,t=
|
|
582
|
+
(e,t=xn())=>new Ut(e,t,un().formats,{ignoreTag:un().ignoreTag}))),Nn=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=xn(),default:u}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=jt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=un()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!s)return c;let d=c;try{d=zn(c,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Hn=(e,t)=>((e={})=>{var t=e,{locale:n=xn()}=t,r=Rn(t,["locale"]);return On(Mn({locale:n},r))})(t).format(e),Un=(e,t)=>((e={})=>{var t=e,{locale:n=xn()}=t,r=Rn(t,["locale"]);return Fn(Mn({locale:n},r))})(t).format(e),In=(e,t)=>((e={})=>{var t=e,{locale:n=xn()}=t,r=Rn(t,["locale"]);return Bn(Mn({locale:n},r))})(t).format(e),Yn=(e,t=xn())=>jt(e,t),jn=ae([_n,Vt],(()=>Nn));ae([_n],(()=>Hn)),ae([_n],(()=>Un)),ae([_n],(()=>In)),ae([_n,Vt],(()=>Yn));
|
|
583
583
|
/* eslint-disable no-prototype-builtins */
|
|
584
|
-
var
|
|
584
|
+
var Gn="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
585
585
|
// eslint-disable-next-line no-undef
|
|
586
|
-
"undefined"!=typeof global&&global||{},
|
|
586
|
+
"undefined"!=typeof global&&global||{},Vn="URLSearchParams"in Gn,Wn="Symbol"in Gn&&"iterator"in Symbol,qn="FileReader"in Gn&&"Blob"in Gn&&function(){try{return new Blob,!0}catch(e){return!1}}(),Jn="FormData"in Gn,Zn="ArrayBuffer"in Gn;if(Zn)var Kn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Xn=ArrayBuffer.isView||function(e){return e&&Kn.indexOf(Object.prototype.toString.call(e))>-1};function Qn(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function er(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
587
587
|
// Build a destructive iterator for the value list
|
|
588
|
-
function
|
|
588
|
+
function tr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Wn&&(t[Symbol.iterator]=function(){return t}),t}function nr(e){this.map={},e instanceof nr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function rr(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ir(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function or(e){var t=new FileReader,n=ir(t);return t.readAsArrayBuffer(e),n}function ar(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function sr(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
589
589
|
/*
|
|
590
590
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
591
591
|
provide useful test harness features such as flush. However, on
|
|
@@ -597,24 +597,24 @@ function en(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
|
597
597
|
_initBody is called.
|
|
598
598
|
*/
|
|
599
599
|
// eslint-disable-next-line no-self-assign
|
|
600
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:
|
|
600
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:qn&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Jn&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Vn&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Zn&&qn&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ar(e.buffer),
|
|
601
601
|
// IE 10-11 can't handle a DataView body.
|
|
602
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
|
602
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):Zn&&(ArrayBuffer.prototype.isPrototypeOf(e)||Xn(e))?this._bodyArrayBuffer=ar(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Vn&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},qn&&(this.blob=function(){var e=rr(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=rr(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(qn)return this.blob().then(or);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=rr(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=ir(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Jn&&(this.formData=function(){return this.text().then(cr)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
603
603
|
// HTTP methods whose capitalization should be normalized
|
|
604
|
-
|
|
604
|
+
nr.prototype.append=function(e,t){e=Qn(e),t=er(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},nr.prototype.delete=function(e){delete this.map[Qn(e)]},nr.prototype.get=function(e){return e=Qn(e),this.has(e)?this.map[e]:null},nr.prototype.has=function(e){return this.map.hasOwnProperty(Qn(e))},nr.prototype.set=function(e,t){this.map[Qn(e)]=er(t)},nr.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},nr.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),tr(e)},nr.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),tr(e)},nr.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),tr(e)},Wn&&(nr.prototype[Symbol.iterator]=nr.prototype.entries);var lr=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ur(e,t){if(!(this instanceof ur))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof ur){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new nr(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new nr(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),lr.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Gn)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
|
605
605
|
// Search for a '_' parameter in the query string
|
|
606
606
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
607
607
|
// If it already exists then set the value with the current time
|
|
608
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
|
608
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function cr(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function dr(e,t){if(!(this instanceof dr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new nr(t.headers),this.url=t.url||"",this._initBody(e)}ur.prototype.clone=function(){return new ur(this,{body:this._bodyInit})},sr.call(ur.prototype),sr.call(dr.prototype),dr.prototype.clone=function(){return new dr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new nr(this.headers),url:this.url})},dr.error=function(){var e=new dr(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var hr=[301,302,303,307,308];dr.redirect=function(e,t){if(-1===hr.indexOf(t))throw new RangeError("Invalid status code");return new dr(null,{status:t,headers:{location:e}})};var fr=Gn.DOMException;try{new fr}catch(e){(fr=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),fr.prototype.constructor=fr}function mr(e,t){return new Promise((function(n,r){var i=new ur(e,t);if(i.signal&&i.signal.aborted)return r(new fr("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}if(o.onload=function(){var e,t,r={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new nr,
|
|
609
609
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
610
610
|
// https://github.com/github/fetch/issues/748
|
|
611
611
|
// https://github.com/zloirock/core-js/issues/751
|
|
612
|
-
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var
|
|
612
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};
|
|
613
613
|
// This check if specifically for when a user fetches a file locally from the file system
|
|
614
614
|
// Only if the status is out of a normal range
|
|
615
|
-
i.url.startsWith("file://")&&(o.status<200||o.status>599)?
|
|
615
|
+
i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var a="response"in o?o.response:o.responseText;setTimeout((function(){n(new dr(a,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new fr("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&Gn.location.href?Gn.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(qn?o.responseType="blob":Zn&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof nr||Gn.Headers&&t.headers instanceof Gn.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(Qn(e)),o.setRequestHeader(e,er(t.headers[e]))})),i.headers.forEach((function(e,t){-1===s.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){
|
|
616
616
|
// DONE (success or failure)
|
|
617
|
-
4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
|
617
|
+
4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}mr.polyfill=!0,Gn.fetch||(Gn.fetch=mr,Gn.Headers=nr,Gn.Request=ur,Gn.Response=dr);var pr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gr(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return br(null==t&&n.path)}},n.exports),n.exports}function br(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
618
618
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
619
619
|
// on the global object (window or self)
|
|
620
620
|
|
|
@@ -635,7 +635,7 @@ self.fetch.bind(self);
|
|
|
635
635
|
PERFORMANCE OF THIS SOFTWARE.
|
|
636
636
|
***************************************************************************** */
|
|
637
637
|
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
638
|
-
var yn=function(e,t){return yn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},yn(e,t)};function wn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Cn(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vn(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function Tn(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function xn(e){return"function"==typeof e}function _n(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var kn=_n((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Sn(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Pn=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Cn(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(xn(l))try{l()}catch(e){i=e instanceof kn?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=Cn(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{Ln(h)}catch(e){i=null!=i?i:[],e instanceof kn?i=Tn(Tn([],vn(i)),vn(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new kn(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ln(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Sn(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&Sn(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),En=Pn.EMPTY;function $n(e){return e instanceof Pn||e&&"closed"in e&&xn(e.remove)&&xn(e.add)&&xn(e.unsubscribe)}function Ln(e){xn(e)?e():e.unsubscribe()}var Dn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Mn={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Mn.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Tn([e,t],vn(r))):setTimeout.apply(void 0,Tn([e,t],vn(r)))},clearTimeout:function(e){var t=Mn.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Rn(){}var An=null;function Bn(e){if(Dn.useDeprecatedSynchronousErrorHandling){var t=!An;if(t&&(An={errorThrown:!1,error:null}),e(),t){var r=An,n=r.errorThrown,i=r.error;if(An=null,n)throw i}}else e()}var Fn=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,$n(t)&&t.add(r)):r.destination=In,r}return wn(t,e),t.create=function(e,t,r){return new Hn(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Pn),On=Function.prototype.bind;function zn(e,t){return On.call(e,t)}var Nn=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Un(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Un(e)}else Un(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Un(e)}},e}(),Hn=function(e){function t(t,r,n){var i,o,a=e.call(this)||this;xn(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&Dn.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&zn(t.next,o),error:t.error&&zn(t.error,o),complete:t.complete&&zn(t.complete,o)}):i=t;return a.destination=new Nn(i),a}return wn(t,e),t}(Fn);function Un(e){var t;t=e,Mn.setTimeout((function(){throw t}))}var In={closed:!0,next:Rn,error:function(e){throw e},complete:Rn},Yn="function"==typeof Symbol&&Symbol.observable||"@@observable";function jn(e){return e}var Gn=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Fn||function(e){return e&&xn(e.next)&&xn(e.error)&&xn(e.complete)}(n)&&$n(n)?e:new Hn(e,t,r);return Bn((function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Vn(t))((function(t,n){var i=new Hn({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Yn]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?jn:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Vn(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Vn(e){var t;return null!==(t=null!=e?e:Dn.Promise)&&void 0!==t?t:Promise}var Wn=_n((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),qn=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return wn(t,e),t.prototype.lift=function(e){var t=new Jn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Wn},t.prototype.next=function(e){var t=this;Bn((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=Cn(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Bn((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Bn((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?En:(this.currentObservers=null,o.push(e),new Pn((function(){t.currentObservers=null,Sn(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new Gn;return e.source=this,e},t.create=function(e,t){return new Jn(e,t)},t}(Gn),Jn=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return wn(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:En},t}(qn),Zn={now:function(){return(Zn.delegate||Date).now()},delegate:void 0},Kn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Zn);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return wn(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var a=r.now(),s=0,l=1;l<n.length&&n[l]<=a;l+=2)s=l;s&&n.splice(0,s+1)}},t}(qn);let Xn=[],Qn={};window.emWidgets={topic:(e,t=0)=>{if(-1==Xn.indexOf(e)){let r=new Kn(t);Qn[e]=r,Xn.push(e)}return Qn[e]}};
|
|
638
|
+
var yr=function(e,t){return yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},yr(e,t)};function wr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}yr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Cr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Tr(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function xr(e){return"function"==typeof e}function _r(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var kr=_r((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Sr(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Pr=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Cr(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(xr(l))try{l()}catch(e){i=e instanceof kr?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=Cr(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{Lr(h)}catch(e){i=null!=i?i:[],e instanceof kr?i=Tr(Tr([],vr(i)),vr(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new kr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Lr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Sr(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Sr(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Er=Pr.EMPTY;function $r(e){return e instanceof Pr||e&&"closed"in e&&xr(e.remove)&&xr(e.add)&&xr(e.unsubscribe)}function Lr(e){xr(e)?e():e.unsubscribe()}var Dr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Mr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Mr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Tr([e,t],vr(n))):setTimeout.apply(void 0,Tr([e,t],vr(n)))},clearTimeout:function(e){var t=Mr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Rr(){}var Ar=null;function Br(e){if(Dr.useDeprecatedSynchronousErrorHandling){var t=!Ar;if(t&&(Ar={errorThrown:!1,error:null}),e(),t){var n=Ar,r=n.errorThrown,i=n.error;if(Ar=null,r)throw i}}else e()}var Fr=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,$r(t)&&t.add(n)):n.destination=Ir,n}return wr(t,e),t.create=function(e,t,n){return new Hr(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Pr),Or=Function.prototype.bind;function zr(e,t){return Or.call(e,t)}var Nr=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ur(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ur(e)}else Ur(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ur(e)}},e}(),Hr=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;xr(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Dr.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&zr(t.next,o),error:t.error&&zr(t.error,o),complete:t.complete&&zr(t.complete,o)}):i=t;return a.destination=new Nr(i),a}return wr(t,e),t}(Fr);function Ur(e){var t;t=e,Mr.setTimeout((function(){throw t}))}var Ir={closed:!0,next:Rr,error:function(e){throw e},complete:Rr},Yr="function"==typeof Symbol&&Symbol.observable||"@@observable";function jr(e){return e}var Gr=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Fr||function(e){return e&&xr(e.next)&&xr(e.error)&&xr(e.complete)}(r)&&$r(r)?e:new Hr(e,t,n);return Br((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Vr(t))((function(t,r){var i=new Hr({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Yr]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?jr:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Vr(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Vr(e){var t;return null!==(t=null!=e?e:Dr.Promise)&&void 0!==t?t:Promise}var Wr=_r((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),qr=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return wr(t,e),t.prototype.lift=function(e){var t=new Jr(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Wr},t.prototype.next=function(e){var t=this;Br((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=Cr(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Br((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Br((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Er:(this.currentObservers=null,o.push(e),new Pr((function(){t.currentObservers=null,Sr(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Gr;return e.source=this,e},t.create=function(e,t){return new Jr(e,t)},t}(Gr),Jr=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return wr(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Er},t}(qr),Zr={now:function(){return(Zr.delegate||Date).now()},delegate:void 0},Kr=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Zr);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return wr(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,l=1;l<r.length&&r[l]<=a;l+=2)s=l;s&&r.splice(0,s+1)}},t}(qr);let Xr=[],Qr={};window.emWidgets={topic:(e,t=0)=>{if(-1==Xr.indexOf(e)){let n=new Kr(t);Qr[e]=n,Xr.push(e)}return Qr[e]}};
|
|
639
639
|
/**
|
|
640
640
|
* @name isMobile
|
|
641
641
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
@@ -648,7 +648,7 @@ const ei=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackbe
|
|
|
648
648
|
* @description A method that returns the type of the device
|
|
649
649
|
* @param {String} userAgent window.navigator.userAgent
|
|
650
650
|
* @returns {String} Android/iPhone/iPad/PC
|
|
651
|
-
*/var
|
|
651
|
+
*/var ni=gr((function(e,t){
|
|
652
652
|
/** @license
|
|
653
653
|
* eventsource.js
|
|
654
654
|
* Available under MIT License (MIT)
|
|
@@ -656,7 +656,7 @@ const ei=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackbe
|
|
|
656
656
|
*/
|
|
657
657
|
/*jslint indent: 2, vars: true, plusplus: true */
|
|
658
658
|
/*global setTimeout, clearTimeout */
|
|
659
|
-
!function(
|
|
659
|
+
!function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,u=n.document,c=n.Promise,d=n.fetch,h=n.Response,f=n.TextDecoder,m=n.TextEncoder,p=n.AbortController;
|
|
660
660
|
// see #118 (Promise#finally with polyfilled Promise)
|
|
661
661
|
// see #123 (data URLs crash Edge)
|
|
662
662
|
// see #125 (CSP violations)
|
|
@@ -664,25 +664,25 @@ const ei=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackbe
|
|
|
664
664
|
// => No way to polyfill Promise#finally
|
|
665
665
|
if("undefined"==typeof window||void 0===u||"readyState"in u||null!=u.body||(// Firefox 2
|
|
666
666
|
u.readyState="loading",window.addEventListener("load",(function(e){u.readyState="complete"}),!1)),null==o&&null!=s&&(// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
|
|
667
|
-
o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var g=d;d=function(e,t){var
|
|
667
|
+
o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var g=d;d=function(e,t){var n=t.signal;return g(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,i="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==o&&(l<128||l>191||!t(a<<6|63&l,o-6,n(o,a)))&&(o=0,a=r,i+=String.fromCharCode(a)),0===o?(l>=0&&l<=127?(o=0,a=l):l>=192&&l<=223?(o=6,a=31&l):l>=224&&l<=239?(o=12,a=15&l):l>=240&&l<=247?(o=18,a=7&l):(o=0,a=r),0===o||t(a,o,n(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&l),0===o&&(a<=65535?i+=String.fromCharCode(a):(i+=String.fromCharCode(55296+(a-65535-1>>10)),i+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,i};
|
|
668
668
|
// IE, Edge
|
|
669
669
|
null!=f&&null!=m&&function(){try{return"test"===(new f).decode((new m).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(f=b);var y=function(){};function w(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=y}function C(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function v(e){for(
|
|
670
670
|
// Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example
|
|
671
|
-
var t=Object.create(null),
|
|
671
|
+
var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),a=i.join(": ");t[C(o)]=a}this._map=t}function T(){}function x(e){this._headers=e}function _(){}function k(){this._listeners=Object.create(null)}function S(e){r((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function E(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function $(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function L(e,t){P.call(this,e),this.error=t.error}w.prototype.open=function(e,t){this._abort(!0);var n=this,a=this._xhr,s=1,l=0;this._abort=function(e){0!==n._sendTimeout&&(i(n._sendTimeout),n._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=y,a.onerror=y,a.onabort=y,a.onprogress=y,a.onreadystatechange=y,
|
|
672
672
|
// IE 8 - 9: XDomainRequest#abort() does not fire any event
|
|
673
673
|
// Opera < 10: XMLHttpRequest#abort() does not fire any event
|
|
674
|
-
a.abort(),0!==l&&(i(l),l=0),e||(
|
|
674
|
+
a.abort(),0!==l&&(i(l),l=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0};var u=function(){if(1===s){
|
|
675
675
|
//state = 2;
|
|
676
|
-
var e=0,t="",
|
|
676
|
+
var e=0,t="",r=void 0;if("contentType"in a)e=200,t="OK",r=a.contentType;else try{e=a.status,t=a.statusText,r=a.getResponseHeader("Content-Type")}catch(n){
|
|
677
677
|
// IE < 10 throws exception for `xhr.status` when xhr.readyState === 2 || xhr.readyState === 3
|
|
678
678
|
// Opera < 11 throws exception for `xhr.status` when xhr.readyState === 2
|
|
679
679
|
// https://bugs.webkit.org/show_bug.cgi?id=29121
|
|
680
|
-
e=0,t="",
|
|
680
|
+
e=0,t="",r=void 0}0!==e&&(s=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=r,n.onreadystatechange())}},c=function(){if(u(),2===s||3===s){s=3;var e="";try{e=a.responseText}catch(e){
|
|
681
681
|
// IE 8 - 9 with XMLHttpRequest
|
|
682
|
-
}
|
|
682
|
+
}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:y}),
|
|
683
683
|
// Firefox 52 fires "readystatechange" (xhr.readyState === 4) without final "readystatechange" (xhr.readyState === 3)
|
|
684
684
|
// IE 8 fires "onload" without "onprogress"
|
|
685
|
-
c(),1===s||2===s||3===s){if(s=4,0!==l&&(i(l),l=0),
|
|
685
|
+
c(),1===s||2===s||3===s){if(s=4,0!==l&&(i(l),l=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},h=function(){l=r((function(){h()}),500),3===a.readyState&&c()};
|
|
686
686
|
// XDomainRequest#abort removes onprogress, onerror, onload
|
|
687
687
|
"onload"in a&&(a.onload=function(e){d("load",e)}),"onerror"in a&&(a.onerror=function(e){d("error",e)}),
|
|
688
688
|
// improper fix to match Firefox behaviour, but it is better than just ignore abort
|
|
@@ -703,7 +703,7 @@ c(),1===s||2===s||3===s){if(s=4,0!==l&&(i(l),l=0),r.readyState=4,"load"===e)r.on
|
|
|
703
703
|
c():2===a.readyState&&u())}(e)}),!("contentType"in a)&&"ontimeout"in o.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(
|
|
704
704
|
// workaround for Opera 12 issue with "progress" events
|
|
705
705
|
// #91 (XMLHttpRequest onprogress not fired for streaming response in Edge 14-15-?)
|
|
706
|
-
l=
|
|
706
|
+
l=r((function(){h()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(e){return this._contentType},w.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},w.prototype.getAllResponseHeaders=function(){
|
|
707
707
|
// XMLHttpRequest#getAllResponseHeaders returns null for CORS requests in Firefox 3.6.28
|
|
708
708
|
return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){
|
|
709
709
|
// loading indicator in Safari < ? (6), Chrome < 14, Firefox
|
|
@@ -714,287 +714,287 @@ if("ontimeout"in o.prototype&&("sendAsBinary"in o.prototype||"mozAnon"in o.proto
|
|
|
714
714
|
// xhr.send(); throws "Not enough arguments" in Firefox 3.0
|
|
715
715
|
e.send(void 0)}catch(e){
|
|
716
716
|
// Safari 5.1.7, Opera 12
|
|
717
|
-
throw e}}else{var t=this;t._sendTimeout=
|
|
718
|
-
o.HEADERS_RECEIVED=2),T.prototype.open=function(e,t,r,
|
|
717
|
+
throw e}}else{var t=this;t._sendTimeout=r((function(){t._sendTimeout=0,t.send()}),4)}},v.prototype.get=function(e){return this._map[C(e)]},null!=o&&null==o.HEADERS_RECEIVED&&(// IE < 9, Firefox 3.6
|
|
718
|
+
o.HEADERS_RECEIVED=2),T.prototype.open=function(e,t,n,r,i,a,s){e.open("GET",i);var l=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(l);l+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===o.HEADERS_RECEIVED){var n=e.status,r=e.statusText,i=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(n,r,i,new v(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u]);return e.send(),e},x.prototype.get=function(e){return this._headers.get(e)},_.prototype.open=function(e,t,n,r,i,o,a){var s=null,l=new p,u=l.signal,h=new f;return d(i,{headers:a,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){
|
|
719
719
|
// see https://github.com/promises-aplus/promises-spec/issues/179
|
|
720
|
-
return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new x(e.headers)),new c((function(e,t){var
|
|
720
|
+
return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new x(e.headers)),new c((function(e,t){var r=function(){s.read().then((function(t){if(t.done)
|
|
721
721
|
//Note: bytes in textDecoder are ignored
|
|
722
|
-
e(void 0);else{var i=h.decode(t.value,{stream:!0});
|
|
722
|
+
e(void 0);else{var i=h.decode(t.value,{stream:!0});n(i),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},k.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){S(e)}}},k.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(r=[],n[e]=r);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},k.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},E.prototype=Object.create(P.prototype),$.prototype=Object.create(P.prototype),L.prototype=Object.create(P.prototype);var D=-1,M=0,R=1,A=2,B=-1,F=0,O=1,z=2,N=3,H=/^text\/event\-stream(;.*)?$/i,U=function(e,t){var n=null==e?t:parseInt(e,10);return n!=n&&(n=t),I(n)},I=function(e){return Math.min(Math.max(e,1e3),18e6)},Y=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){S(e)}};function j(e,t){k.call(this),t=t||{},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,function(e,t,n){t=String(t);var s=Boolean(n.withCredentials),l=n.lastEventIdQueryParameterName||"lastEventId",u=I(1e3),c=U(n.heartbeatTimeout,45e3),d="",h=u,f=!1,m=0,p=n.headers||{},g=n.Transport,b=G&&null==g?void 0:new w(null!=g?new g:null!=o&&"withCredentials"in o.prototype||null==a?new o:new a),y=null!=g&&"string"!=typeof g?new g:null==b?new _:new T,C=void 0,v=0,x=D,k="",S="",P="",j="",V=F,W=0,q=0,J=function(t,n,r,i){if(x===M)if(200===t&&null!=r&&H.test(r)){x=R,f=Date.now(),h=u,e.readyState=R;var o=new $("open",{status:t,statusText:n,headers:i});e.dispatchEvent(o),Y(e,e.onopen,o)}else{var a="";200!==t?(n&&(n=n.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",X();o=new $("error",{status:t,statusText:n,headers:i});e.dispatchEvent(o),Y(e,e.onerror,o),console.error(a)}},Z=function(t){if(x===R){for(var n=-1,o=0;o<t.length;o+=1){(l=t.charCodeAt(o))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(n=o)}var a=(-1!==n?j:"")+t.slice(0,n+1);j=(-1===n?j:"")+t.slice(n+1),""!==t&&(f=Date.now(),m+=t.length);for(var s=0;s<a.length;s+=1){var l=a.charCodeAt(s);if(V===B&&l==="\n".charCodeAt(0))V=F;else if(V===B&&(V=F),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(V!==F){V===O&&(q=s+1);var p=a.slice(W,q-1),g=a.slice(q+(q<s&&a.charCodeAt(q)===" ".charCodeAt(0)?1:0),s);"data"===p?(k+="\n",k+=g):"id"===p?S=g:"event"===p?P=g:"retry"===p?(u=U(g,u),h=u):"heartbeatTimeout"===p&&(c=U(g,c),0!==v&&(i(v),v=r((function(){Q()}),c)))}if(V===F){if(""!==k){d=S,""===P&&(P="message");var b=new E(P,{data:k.slice(1),lastEventId:S});if(e.dispatchEvent(b),"open"===P?Y(e,e.onopen,b):"message"===P?Y(e,e.onmessage,b):"error"===P&&Y(e,e.onerror,b),x===A)return}k="",P=""}V=l==="\r".charCodeAt(0)?B:F}else V===F&&(W=s,V=O),V===O?l===":".charCodeAt(0)&&(q=s+1,V=z):V===z&&(V=N)}}},K=function(t){if(x===R||x===M){x=D,0!==v&&(i(v),v=0),v=r((function(){Q()}),h),h=I(Math.min(16*u,2*h)),e.readyState=M;var n=new L("error",{error:t});e.dispatchEvent(n),Y(e,e.onerror,n),null!=t&&console.error(t)}},X=function(){x=A,null!=C&&(C.abort(),C=void 0),0!==v&&(i(v),v=0),e.readyState=A},Q=function(){if(v=0,x===D){f=!1,m=0,v=r((function(){Q()}),c),x=M,k="",P="",S=d,j="",W=0,q=0,V=F;
|
|
723
723
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=428916
|
|
724
724
|
// Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
|
|
725
|
-
var
|
|
725
|
+
var n=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==d){
|
|
726
726
|
// Remove the lastEventId parameter if it's already part of the request URL.
|
|
727
|
-
var i=t.indexOf("?");
|
|
727
|
+
var i=t.indexOf("?");n=-1===i?t:t.slice(0,i+1)+t.slice(i+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===l?"":e})),
|
|
728
728
|
// Append the current lastEventId to the request URL.
|
|
729
|
-
|
|
729
|
+
n+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(d)}var o=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);try{C=y.open(b,J,Z,K,n,o,a)}catch(e){throw X(),e}}else if(f||null==C){var h=Math.max((f||Date.now())+c-Date.now(),1);f=!1,v=r((function(){Q()}),h)}else K(new Error("No activity within "+c+" milliseconds. "+(x===M?"No response received.":m+" chars received.")+" Reconnecting.")),null!=C&&(C.abort(),C=void 0)};e.url=t,e.readyState=M,e.withCredentials=s,e.headers=p,e._close=X,Q()}(this,e,t)}var G=null!=d&&null!=h&&"body"in h.prototype;j.prototype=Object.create(k.prototype),j.prototype.CONNECTING=M,j.prototype.OPEN=R,j.prototype.CLOSED=A,j.prototype.close=function(){this._close()},j.CONNECTING=M,j.OPEN=R,j.CLOSED=A,j.prototype.withCredentials=void 0;var V,W=l;null==o||null!=l&&"withCredentials"in l.prototype||(
|
|
730
730
|
// Why replace a native EventSource ?
|
|
731
731
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=444328
|
|
732
732
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=831392
|
|
733
733
|
// https://code.google.com/p/chromium/issues/detail?id=260144
|
|
734
734
|
// https://code.google.com/p/chromium/issues/detail?id=225654
|
|
735
735
|
// ...
|
|
736
|
-
W=j),V=function(e){e.EventSourcePolyfill=j,e.NativeEventSource=l,e.EventSource=W}(t),void 0!==V&&(e.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:
|
|
737
|
-
/* src/Cells/Cell.svelte generated by Svelte v3.59.2 */function
|
|
736
|
+
W=j),V=function(e){e.EventSourcePolyfill=j,e.NativeEventSource=l,e.EventSource=W}(t),void 0!==V&&(e.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:pr:globalThis)}));
|
|
737
|
+
/* src/Cells/Cell.svelte generated by Svelte v3.59.2 */function ri(t){let n;return{c(){n=y("slot"),this.c=e,_(n,"name",/*slotname*/t[0])},m(e,t){p(e,n,t)},p(e,[t]){/*slotname*/1&t&&_(n,"name",/*slotname*/e[0])},i:e,o:e,d(e){e&&g(n)}}}function ii(e,t,n){let{slotname:r=""}=t;return e.$$set=e=>{"slotname"in e&&n(0,r=e.slotname)},[r]}class oi extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},ii,ri,a,{slotname:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["slotname"]}get slotname(){return this.$$.ctx[0]}set slotname(e){this.$$set({slotname:e}),I()}}
|
|
738
738
|
/* src/Cells/ThumbnailCell.svelte generated by Svelte v3.59.2 */
|
|
739
|
-
function ai(t){let r,
|
|
739
|
+
function ai(t){let n,r,i,o,a,s;return{c(){n=y("div"),r=y("div"),this.c=e,_(r,"class",i="CardImg "+(/*status*/"Closing"==t[1]||/*status*/"Closed"==t[1]?"CardImgFinished":"")),_(r,"part",o="CardImg "+(/*status*/"Closing"==t[1]||/*status*/"Closed"==t[1]?"CardImgFinished":"")),S(r,"background-image","url('"+(/*thumbnail*/t[0]?/*thumbnail*/t[0]:"https://i.stack.imgur.com/y9DpT.jpg")+"')"),_(n,"class","Thumbnail"),_(n,"part","Thumbnail")},m(e,i){p(e,n,i),m(n,r),a||(s=f(/*matchStatus*/t[2].call(null,r)),a=!0)},p(e,[t]){/*status*/2&t&&i!==(i="CardImg "+(/*status*/"Closing"==e[1]||/*status*/"Closed"==e[1]?"CardImgFinished":""))&&_(r,"class",i),/*status*/2&t&&o!==(o="CardImg "+(/*status*/"Closing"==e[1]||/*status*/"Closed"==e[1]?"CardImgFinished":""))&&_(r,"part",o),/*thumbnail*/1&t&&S(r,"background-image","url('"+(/*thumbnail*/e[0]?/*thumbnail*/e[0]:"https://i.stack.imgur.com/y9DpT.jpg")+"')")},i:e,o:e,d(e){e&&g(n),a=!1,s()}}}function si(e,t,n){let{thumbnail:r=""}=t,{status:i=""}=t;return M((()=>{})),e.$$set=e=>{"thumbnail"in e&&n(0,r=e.thumbnail),"status"in e&&n(1,i=e.status)},[r,i,()=>{}]}customElements.define("slot-cell",oi);class li extends V{constructor(e){super();const t=document.createElement("style");t.textContent=':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"}',this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},si,ai,a,{thumbnail:0,status:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["thumbnail","status"]}get thumbnail(){return this.$$.ctx[0]}set thumbnail(e){this.$$set({thumbnail:e}),I()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),I()}}
|
|
740
740
|
/* src/Cells/TitleTextCell.svelte generated by Svelte v3.59.2 */
|
|
741
|
-
function ui(e){let t,r,
|
|
742
|
-
return e[2]?ci:di}let u=l(e),c=u(e);return{c(){t=y("div"),
|
|
741
|
+
function ui(e){let t,n,r,i,o,a,s;function l(e,t){/*collapsed*/
|
|
742
|
+
return e[2]?ci:di}let u=l(e),c=u(e);return{c(){t=y("div"),n=y("p"),r=C(/*title*/e[1]),i=v(),o=y("div"),c.c(),_(n,"class","Title"),_(n,"part","Title"),_(o,"class","CollapseButtonDetails"),_(o,"part","CollapseButtonDetails"),_(t,"class","DetailsTitle"),_(t,"part","DetailsTitle")},m(l,u){p(l,t,u),m(t,n),m(n,r),m(t,i),m(t,o),c.m(o,null),a||(s=x(o,"click",/*click_handler*/e[5]),a=!0)},p(e,t){/*title*/2&t&&k(r,/*title*/e[1]),u!==(u=l(e))&&(c.d(1),c=u(e),c&&(c.c(),c.m(o,null)))},d(e){e&&g(t),c.d(),a=!1,s()}}}
|
|
743
743
|
// (24:8) {:else}
|
|
744
|
-
function ci(e){let t,
|
|
744
|
+
function ci(e){let t,n;return{c(){t=w("svg"),n=w("path"),_(n,"d","M6 9l6 6 6-6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,r){p(e,t,r),m(t,n)},d(e){e&&g(t)}}}
|
|
745
745
|
// (20:8) {#if !collapsed}
|
|
746
|
-
function di(e){let t,
|
|
746
|
+
function di(e){let t,n;return{c(){t=w("svg"),n=w("path"),_(n,"d","M18 15l-6-6-6 6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,r){p(e,t,r),m(t,n)},d(e){e&&g(t)}}}
|
|
747
747
|
// (33:2) {#if text && !collapsed}
|
|
748
|
-
function hi(e){let t,r,n,i;return{c(){t=y("div"),_(t,"class","DetailsContent sc"),_(t,"part","DetailsContent")},m(o,a){p(o,t,a),n||(i=f(r=/*setContent*/e[4].call(null,t,/*text*/e[0])),n=!0)},p(e,t){r&&o(r.update)&&/*text*/1&t&&r.update.call(null,/*text*/e[0])},d(e){e&&g(t),n=!1,i()}}}function fi(t){let r,n,i=/*title*/t[1]&&ui(t),o=/*text*/t[0]&&!/*collapsed*/t[2]&&hi(t);return{c(){r=y("div"),i&&i.c(),n=v(),o&&o.c(),this.c=e,_(r,"class","DetailsCard"),_(r,"part","DetailsCard")},m(e,t){p(e,r,t),i&&i.m(r,null),m(r,n),o&&o.m(r,null)},p(e,[t]){/*title*/e[1]?i?i.p(e,t):(i=ui(e),i.c(),i.m(r,n)):i&&(i.d(1),i=null),/*text*/e[0]&&!/*collapsed*/e[2]?o?o.p(e,t):(o=hi(e),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&g(r),i&&i.d(),o&&o.d()}}}function mi(e,t,r){let{text:n=""}=t,{title:i=""}=t,o=!1;const a=()=>{r(2,o=!o)};return e.$$set=e=>{"text"in e&&r(0,n=e.text),"title"in e&&r(1,i=e.title)},[n,i,o,a,(e,t)=>{let r=document.createElement("div");r.innerHTML=t,e.append(r)},()=>a()]}customElements.define("thumbnail-cell",li);class pi extends V{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:1px solid var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-color-contrast, #07072A)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},mi,fi,a,{text:0,title:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["text","title"]}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),I()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),I()}}function gi(e,t){Jt(e,t)}function bi(e){xr.set(e)}customElements.define("title-text-cell",pi);const yi={en:{tournamentsThumbnail:{startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}"}},el:{tournamentsThumbnail:{startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}"}},"zh-hk":{tournamentsThumbnail:{startingAtWithTime:"開始於 {startTime}",startedAtWithTime:"Started {startTime}"}}},wi={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},"zh-hk":{tournamentsPage:{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限"}},fr:{tournamentsPage:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité"}},ro:{tournamentsPage:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat"}},tr:{tournamentsPage:{loading:"Yükleniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",mostRounds:"MostRounds",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"limitsiz"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},es:{tournamentsPage:{loading:"cargando, por favor espere…",back:"Volver",previous:"Anterior",next:"Siguiente",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",mostRounds:"LaMayoríaDeLasRondas",activePeriod:"Desde {startdate} hasta {enddate}",forwardCasino:"Vea los juegos de casino incluidos",forwardSports:"Vea los deportes incluidos",forwardMyTournaments:"Vea Mis Torneos",leaderBoard:"Marcador",rules:"Reglas",games:"Juegos",unlimited:"sin límite"}},hu:{tournamentsPage:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan"}},pt:{tournamentsPage:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado"}}},Ci={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}},vi={en:{gamesSlider:{playNow:"Play now"}},"zh-hk":{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}},Ti={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},"zh-hk":{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},xi={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Count",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize",UnqualifiedTips:"The minimum number of bets has not been reached. Check tournament rules.",me:"Me"}},"zh-hk":{tournamentsTable:{leaderboard:"排行榜",score:"分數",betcounts:"投注次數",winstakeratio:"勝率",qualified:"合格的",nowinners:"暫時沒有贏家。 成為他們中的一員!",Rank:"秩",Player:"播放器",Points:"積分",Prize:"獎",UnqualifiedTips:"未达到最低投注数。检查比赛规则。",me:"我"}},fr:{tournamentsTable:{leaderboard:"Tableau des leaders",score:"Score",betcounts:"Le pari compte",winstakeratio:"Indice du gain d'une mise",qualified:"Qualifié",nowinners:"Aucun gagnant pour l'instant, soyez l'un d'entre eux",Rank:"Rang",Player:"Joueur",Points:"Points",Prize:"Prix",UnqualifiedTips:"Le nombre de mises minimum n'est pas terminé. Vérifiez les règles.",me:"Me"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Număr Pariuri",winstakeratio:"Raport de câștig",qualified:"Calificat",nowinners:"Nu există câștigători pentru moment. Fii unul dintre ei!",Rank:"Clasament",Player:"Jucător",Points:"Puncte",Prize:"Premiu",UnqualifiedTips:"Numărul minim de pariuri nu a fost atins. Verificați regulile.",me:"Eu"}},hu:{tournamentsTable:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Bet Counts",winstakeratio:"Fogadás számít",qualified:"Képzett",nowinners:"Egyelőre nincs nyertes. Legyen az egyikük!",Rank:"Rang",Player:"Játékos",Points:"Pontok",Prize:"Díj",UnqualifiedTips:"A minimális fogadási értéket nem érte el. Kérjük ellenőrizze a szabályokat.",me:"Én"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Sıra",Player:"Oyuncu",Points:"Puan",Prize:"Ödül",UnqualifiedTips:"Minimum bahis sayısına ulaşılmadı. Turnuva kurallarını kontrol ediniz.",me:"Ben"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Κατάταξη",Player:"Όνομα",Points:"Πόντοι",Prize:"Έπαθλο",UnqualifiedTips:"Ο ελάχιστος αριθμός στοιχημάτων δεν έχει επιτευχθεί. Ελέγξτε τους κανόνες του τουρνουά.",me:"Εγώ"}},es:{tournamentsTable:{leaderboard:"Marcador",score:"Puntuación",betcounts:"Apuesta cuenta",winstakeratio:"RatioDeGanancia",qualified:"Calificado",nowinners:"No hay ganadores por el momento. ¡Sé uno de ellos!",Rank:"Rango",Player:"Jugador",Points:"Puntos",Prize:"Premio",UnqualifiedTips:"No se ha completado el recuento mínimo de apuestas. Compruebe las reglas.",me:"Yo"}},hu:{tournamentsTable:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Fogadás beleszámít",winstakeratio:"WinstakeRatio",qualified:"Kvalifikált",nowinners:"Még nincs nyertes. Legyen Ön az egyik!",Rank:"Rangsor",Player:"Játékos",Points:"Pontszám",Prize:"Nyeremény",UnqualifiedTips:"Minimális tét nincs elérve. Ellenőrizze a szabályokat.",me:"Én"}},pt:{tournamentsTable:{leaderboard:"Entre os melhores",score:"Pontuação",betcounts:"Contagens de Apostas",winstakeratio:"Rácio de Vitórias",qualified:"Qualificado",nowinners:"Sem vencedores por enquanto. Seja um deles!",Rank:"Classificação",Player:"Jogador",Points:"Pontos",Prize:"Prêmio",UnqualifiedTips:"Contagem mínima de apostas não concluída. Confira Regras.",me:"Me"}}},_i={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}},ki={en:{tournamentsThumbnail:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{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",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:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",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ă",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:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",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"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{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",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:{tournamentsThumbnail:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};
|
|
748
|
+
function hi(e){let t,n,r,i;return{c(){t=y("div"),_(t,"class","DetailsContent sc"),_(t,"part","DetailsContent")},m(o,a){p(o,t,a),r||(i=f(n=/*setContent*/e[4].call(null,t,/*text*/e[0])),r=!0)},p(e,t){n&&o(n.update)&&/*text*/1&t&&n.update.call(null,/*text*/e[0])},d(e){e&&g(t),r=!1,i()}}}function fi(t){let n,r,i=/*title*/t[1]&&ui(t),o=/*text*/t[0]&&!/*collapsed*/t[2]&&hi(t);return{c(){n=y("div"),i&&i.c(),r=v(),o&&o.c(),this.c=e,_(n,"class","DetailsCard"),_(n,"part","DetailsCard")},m(e,t){p(e,n,t),i&&i.m(n,null),m(n,r),o&&o.m(n,null)},p(e,[t]){/*title*/e[1]?i?i.p(e,t):(i=ui(e),i.c(),i.m(n,r)):i&&(i.d(1),i=null),/*text*/e[0]&&!/*collapsed*/e[2]?o?o.p(e,t):(o=hi(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&g(n),i&&i.d(),o&&o.d()}}}function mi(e,t,n){let{text:r=""}=t,{title:i=""}=t,o=!1;const a=()=>{n(2,o=!o)};return e.$$set=e=>{"text"in e&&n(0,r=e.text),"title"in e&&n(1,i=e.title)},[r,i,o,a,(e,t)=>{let n=document.createElement("div");n.innerHTML=t,e.append(n)},()=>a()]}customElements.define("thumbnail-cell",li);class pi extends V{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:1px solid var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-color-contrast, #07072A)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},mi,fi,a,{text:0,title:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["text","title"]}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),I()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),I()}}function gi(e,t){Jt(e,t)}function bi(e){_n.set(e)}customElements.define("title-text-cell",pi);const yi={en:{tournamentsThumbnail:{startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}"}},el:{tournamentsThumbnail:{startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}"}},"zh-hk":{tournamentsThumbnail:{startingAtWithTime:"開始於 {startTime}",startedAtWithTime:"Started {startTime}"}}},wi={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited",participantingGames:"Participanting games"}},"zh-hk":{tournamentsPage:{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限",participantingGames:"Participanting games"}},fr:{tournamentsPage:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité",participantingGames:"Participanting games"}},ro:{tournamentsPage:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat",participantingGames:"Jocuri participante"}},tr:{tournamentsPage:{loading:"Yükleniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",mostRounds:"MostRounds",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"limitsiz",participantingGames:"Participanting games"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited",participantingGames:"Participanting games"}},es:{tournamentsPage:{loading:"cargando, por favor espere…",back:"Volver",previous:"Anterior",next:"Siguiente",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",mostRounds:"LaMayoríaDeLasRondas",activePeriod:"Desde {startdate} hasta {enddate}",forwardCasino:"Vea los juegos de casino incluidos",forwardSports:"Vea los deportes incluidos",forwardMyTournaments:"Vea Mis Torneos",leaderBoard:"Marcador",rules:"Reglas",games:"Juegos",unlimited:"sin límite",participantingGames:"Participanting games"}},hu:{tournamentsPage:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan",participantingGames:"Participanting games"}},pt:{tournamentsPage:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado",participantingGames:"Participanting games"}}},Ci={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}},vi={en:{gamesSlider:{playNow:"Play now",participantingGames:"Participanting games"}},"zh-hk":{gamesSlider:{playNow:"现在播放",participantingGames:"Participanting games"}},fr:{gamesSlider:{playNow:"Joue maintenant",participantingGames:"Participanting games"}},ro:{gamesSlider:{playNow:"Joaca acum",participantingGames:"Participanting games"}},tr:{gamesSlider:{playNow:"Şimdi oyna",participantingGames:"Participanting games"}},el:{gamesSlider:{playNow:"Παίξε τώρα",participantingGames:"Participanting games"}},es:{gamesSlider:{playNow:"Reproducir ahora",participantingGames:"Participanting games"}},pt:{gamesSlider:{playNow:"Jogue agora",participantingGames:"Participanting games"}}},Ti={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},"zh-hk":{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},xi={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Count",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize",UnqualifiedTips:"The minimum number of bets has not been reached. Check tournament rules.",me:"Me"}},"zh-hk":{tournamentsTable:{leaderboard:"排行榜",score:"分數",betcounts:"投注次數",winstakeratio:"勝率",qualified:"合格的",nowinners:"暫時沒有贏家。 成為他們中的一員!",Rank:"秩",Player:"播放器",Points:"積分",Prize:"獎",UnqualifiedTips:"未达到最低投注数。检查比赛规则。",me:"我"}},fr:{tournamentsTable:{leaderboard:"Tableau des leaders",score:"Score",betcounts:"Le pari compte",winstakeratio:"Indice du gain d'une mise",qualified:"Qualifié",nowinners:"Aucun gagnant pour l'instant, soyez l'un d'entre eux",Rank:"Rang",Player:"Joueur",Points:"Points",Prize:"Prix",UnqualifiedTips:"Le nombre de mises minimum n'est pas terminé. Vérifiez les règles.",me:"Me"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Număr Pariuri",winstakeratio:"Raport de câștig",qualified:"Calificat",nowinners:"Nu există câștigători pentru moment. Fii unul dintre ei!",Rank:"Clasament",Player:"Jucător",Points:"Puncte",Prize:"Premiu",UnqualifiedTips:"Numărul minim de pariuri nu a fost atins. Verificați regulile.",me:"Eu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Sıra",Player:"Oyuncu",Points:"Puan",Prize:"Ödül",UnqualifiedTips:"Minimum bahis sayısına ulaşılmadı. Turnuva kurallarını kontrol ediniz.",me:"Ben"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Κατάταξη",Player:"Όνομα",Points:"Πόντοι",Prize:"Έπαθλο",UnqualifiedTips:"Ο ελάχιστος αριθμός στοιχημάτων δεν έχει επιτευχθεί. Ελέγξτε τους κανόνες του τουρνουά.",me:"Εγώ"}},es:{tournamentsTable:{leaderboard:"Marcador",score:"Puntuación",betcounts:"Apuesta cuenta",winstakeratio:"RatioDeGanancia",qualified:"Calificado",nowinners:"No hay ganadores por el momento. ¡Sé uno de ellos!",Rank:"Rango",Player:"Jugador",Points:"Puntos",Prize:"Premio",UnqualifiedTips:"No se ha completado el recuento mínimo de apuestas. Compruebe las reglas.",me:"Yo"}},hu:{tournamentsTable:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Fogadás beleszámít",winstakeratio:"WinstakeRatio",qualified:"Kvalifikált",nowinners:"Még nincs nyertes. Legyen Ön az egyik!",Rank:"Rangsor",Player:"Játékos",Points:"Pontszám",Prize:"Nyeremény",UnqualifiedTips:"Minimális tét nincs elérve. Ellenőrizze a szabályokat.",me:"Én"}},pt:{tournamentsTable:{leaderboard:"Entre os melhores",score:"Pontuação",betcounts:"Contagens de Apostas",winstakeratio:"Rácio de Vitórias",qualified:"Qualificado",nowinners:"Sem vencedores por enquanto. Seja um deles!",Rank:"Classificação",Player:"Jogador",Points:"Pontos",Prize:"Prêmio",UnqualifiedTips:"Contagem mínima de apostas não concluída. Confira Regras.",me:"Me"}}},_i={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}},ki={en:{tournamentsThumbnail:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{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",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:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",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ă",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:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",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"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{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",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:{tournamentsThumbnail:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};
|
|
749
749
|
/* src/Cells/ScoreCriteriaCell.svelte generated by Svelte v3.59.2 */
|
|
750
|
-
function Si(t){let r,
|
|
750
|
+
function Si(t){let n,r,i,o,a,s,l,u,c,d,h,b,w,T=/*$_*/t[2]("tournamentsThumbnail.scoreCriteria")+"",x=/*$_*/t[2]("tournamentsThumbnail.minbet")+"";return{c(){n=y("div"),r=y("p"),i=C(T),o=C(":\n "),a=y("span"),s=C(/*showScoreCriteria*/t[1]),l=C("\n ("),u=C(x),c=v(),d=C(/*minbetcount*/t[0]),h=C(")"),this.c=e,_(a,"part","ScoreCriteriaSpan"),_(r,"part","ScoreCriteriaP"),_(n,"class","ScoreCriteria"),_(n,"part","ScoreCriteria")},m(e,g){p(e,n,g),m(n,r),m(r,i),m(r,o),m(r,a),m(a,s),m(r,l),m(r,u),m(r,c),m(r,d),m(r,h),b||(w=f(/*matchScoreCriteria*/t[3].call(null,a)),b=!0)},p(e,[t]){/*$_*/4&t&&T!==(T=/*$_*/e[2]("tournamentsThumbnail.scoreCriteria")+"")&&k(i,T),/*showScoreCriteria*/2&t&&k(s,/*showScoreCriteria*/e[1]),/*$_*/4&t&&x!==(x=/*$_*/e[2]("tournamentsThumbnail.minbet")+"")&&k(u,x),/*minbetcount*/1&t&&k(d,/*minbetcount*/e[0])},i:e,o:e,d(e){e&&g(n),b=!1,w()}}}function Pi(e,t,n){let r;d(e,jn,(e=>n(2,r=e)));let{scorecriteria:i=""}=t,{lang:o="en"}=t,{minbetcount:a}=t;Object.keys(ki).forEach((e=>{gi(e,ki[e])})),cn({fallbackLocale:"en",initialLocale:"en"});let s="";const l=()=>{"BetCount"==i&&n(1,s=r("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==i&&n(1,s=r("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==i&&n(1,s=r("tournamentsThumbnail.winStakeRatio"))};return M((()=>{})),e.$$set=e=>{"scorecriteria"in e&&n(4,i=e.scorecriteria),"lang"in e&&n(5,o=e.lang),"minbetcount"in e&&n(0,a=e.minbetcount)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&o&&(bi(o),l()),/*scorecriteria*/16&e.$$.dirty&&i&&l()},[a,s,r,l,i,o]}class Ei extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Pi,Si,a,{scorecriteria:4,lang:5,minbetcount:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["scorecriteria","lang","minbetcount"]}get scorecriteria(){return this.$$.ctx[4]}set scorecriteria(e){this.$$set({scorecriteria:e}),I()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),I()}get minbetcount(){return this.$$.ctx[0]}set minbetcount(e){this.$$set({minbetcount:e}),I()}}
|
|
751
751
|
/* src/Cells/JoinButtonCell.svelte generated by Svelte v3.59.2 */
|
|
752
|
-
function $i(e){let t,r,
|
|
752
|
+
function $i(e){let t,n,r,i,o=/*$_*/e[10]("tournamentsThController.details")+"";return{c(){t=y("button"),n=C(o),_(t,"class","DetailsLargeButton"),_(t,"part","DetailsLargeButton")},m(o,a){p(o,t,a),m(t,n),r||(i=x(t,"click",/*click_handler_4*/e[34]),r=!0)},p(e,t){/*$_*/1024&t[0]&&o!==(o=/*$_*/e[10]("tournamentsThController.details")+"")&&k(n,o)},d(e){e&&g(t),r=!1,i()}}}
|
|
753
753
|
// (172:4) {#if status != 'Closed' && status != 'Closing'}
|
|
754
|
-
function Li(e){let t,r
|
|
755
|
-
return"true"==e[0]?Ai:/*bonuscode*/e[3]?Ri:void 0}let o=i(e),a=o&&o(e);return{c(){
|
|
754
|
+
function Li(e){let t,n,r=/*showdetails*/"true"==e[2]&&Mi(e);function i(e,t){/*userenrolled*/
|
|
755
|
+
return"true"==e[0]?Ai:/*bonuscode*/e[3]?Ri:void 0}let o=i(e),a=o&&o(e);return{c(){r&&r.c(),t=v(),a&&a.c(),n=T()},m(e,i){r&&r.m(e,i),p(e,t,i),a&&a.m(e,i),p(e,n,i)},p(e,s){/*showdetails*/"true"==e[2]?r?r.p(e,s):(r=Mi(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o===(o=i(e))&&a?a.p(e,s):(a&&a.d(1),a=o&&o(e),a&&(a.c(),a.m(n.parentNode,n)))},d(e){r&&r.d(e),e&&g(t),a&&a.d(e),e&&g(n)}}}
|
|
756
756
|
// (168:2) {#if !isLoggedIn}
|
|
757
|
-
function Di(e){let t,r,
|
|
757
|
+
function Di(e){let t,n,r,o,a,s,l,u=/*$_*/e[10]("tournamentsThController.login")+"",c=/*$_*/e[10]("tournamentsThController.register")+"";return{c(){t=y("button"),n=C(u),r=v(),o=y("button"),a=C(c),_(t,"class","LoginButton"),_(t,"part","LoginButton"),_(o,"class","RegisterButton"),_(o,"part","RegisterButton")},m(i,u){p(i,t,u),m(t,n),p(i,r,u),p(i,o,u),m(o,a),s||(l=[x(t,"click",/*click_handler*/e[30]),x(o,"click",/*click_handler_1*/e[31])],s=!0)},p(e,t){/*$_*/1024&t[0]&&u!==(u=/*$_*/e[10]("tournamentsThController.login")+"")&&k(n,u),/*$_*/1024&t[0]&&c!==(c=/*$_*/e[10]("tournamentsThController.register")+"")&&k(a,c)},d(e){e&&g(t),e&&g(r),e&&g(o),s=!1,i(l)}}}
|
|
758
758
|
// (173:6) {#if showdetails == 'true'}
|
|
759
|
-
function Mi(e){let t,r,
|
|
759
|
+
function Mi(e){let t,n,r,i,o=/*$_*/e[10]("tournamentsThController.details")+"";return{c(){t=y("button"),n=C(o),_(t,"class","DetailsButton"),_(t,"part","DetailsButton")},m(o,a){p(o,t,a),m(t,n),r||(i=x(t,"click",/*click_handler_2*/e[32]),r=!0)},p(e,t){/*$_*/1024&t[0]&&o!==(o=/*$_*/e[10]("tournamentsThController.details")+"")&&k(n,o)},d(e){e&&g(t),r=!1,i()}}}
|
|
760
760
|
// (180:26)
|
|
761
|
-
function Ri(e){let t,r,
|
|
762
|
-
return 1==e[6]?Fi:Bi}let s=a(e),l=s(e);return{c(){t=y("button"),l.c(),_(t,"class",
|
|
761
|
+
function Ri(e){let t,n,r,i,o;function a(e,t){/*joinButtonLoading*/
|
|
762
|
+
return 1==e[6]?Fi:Bi}let s=a(e),l=s(e);return{c(){t=y("button"),l.c(),_(t,"class",n="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":"")),_(t,"part",r="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":"")),t.disabled=/*errorJoin*/e[7]},m(n,r){p(n,t,r),l.m(t,null),i||(o=x(t,"click",/*click_handler_3*/e[33]),i=!0)},p(e,i){s===(s=a(e))&&l?l.p(e,i):(l.d(1),l=s(e),l&&(l.c(),l.m(t,null))),/*fullsize*/16&i[0]&&n!==(n="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":""))&&_(t,"class",n),/*fullsize*/16&i[0]&&r!==(r="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":""))&&_(t,"part",r),/*errorJoin*/128&i[0]&&(t.disabled=/*errorJoin*/e[7])},d(e){e&&g(t),l.d(),i=!1,o()}}}
|
|
763
763
|
// (176:6) {#if userenrolled == 'true'}
|
|
764
|
-
function Ai(e){let t,
|
|
764
|
+
function Ai(e){let t,n=/*showdetails*/"true"==e[2]&&Oi(e);return{c(){n&&n.c(),t=T()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,r){/*showdetails*/"true"==e[2]?n?n.p(e,r):(n=Oi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&g(t)}}}
|
|
765
765
|
// (186:10) {:else}
|
|
766
|
-
function Bi(e){let t,r,
|
|
766
|
+
function Bi(e){let t,n,r,i,o,a,s,l,u,c=/*$_*/e[10]("tournamentsThController.join")+"";return{c(){t=y("span"),n=C(c),r=v(),i=w("svg"),o=w("defs"),a=w("style"),s=C(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=w("g"),u=w("path"),_(t,"part","JoinButtonSpan"),_(t,"class","JoinButtonSpan"),_(u,"class","a"),_(u,"part","a JoinButtonSvgA"),_(u,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),_(u,"transform","translate(26 26) rotate(180)"),_(l,"transform","translate(26 26) rotate(180)"),_(i,"part","JoinButtonSvg"),_(i,"class","JoinButtonSvg"),_(i,"xmlns","http://www.w3.org/2000/svg"),_(i,"width","26"),_(i,"height","26"),_(i,"viewBox","0 0 26 26")},m(e,c){p(e,t,c),m(t,n),p(e,r,c),p(e,i,c),m(i,o),m(o,a),m(a,s),m(i,l),m(l,u)},p(e,t){/*$_*/1024&t[0]&&c!==(c=/*$_*/e[10]("tournamentsThController.join")+"")&&k(n,c)},d(e){e&&g(t),e&&g(r),e&&g(i)}}}
|
|
767
767
|
// (182:10) {#if joinButtonLoading == true}
|
|
768
|
-
function Fi(t){let r
|
|
768
|
+
function Fi(t){let n,r;return{c(){n=w("svg"),r=w("circle"),_(r,"class","circle"),_(r,"part","circle"),_(r,"cx","20"),_(r,"cy","20"),_(r,"r","18"),_(n,"class","spinner"),_(n,"part","spinner")},m(e,t){p(e,n,t),m(n,r)},p:e,d(e){e&&g(n)}}}
|
|
769
769
|
// (177:8) {#if showdetails == 'true'}
|
|
770
|
-
function Oi(e){let t,r
|
|
770
|
+
function Oi(e){let t,n,r=/*$_*/e[10]("tournamentsThController.enrolled")+"";return{c(){t=y("button"),n=C(r),_(t,"class","EnrolledButton"),_(t,"part","EnrolledButton"),t.disabled=!0},m(e,r){p(e,t,r),m(t,n)},p(e,t){/*$_*/1024&t[0]&&r!==(r=/*$_*/e[10]("tournamentsThController.enrolled")+"")&&k(n,r)},d(e){e&&g(t)}}}
|
|
771
771
|
// (199:0) {#if errorJoin || errorJoinConcurrently}
|
|
772
|
-
function zi(e){let t,r,
|
|
773
|
-
return e[5]?"Closed"!=status&&"Closing"!=status?Li:/*showdetails*/"true"==e[2]?$i:void 0:Di}let a=o(t),s=a&&a(t),l=/*errorJoin*/(t[7]||/*errorJoinConcurrently*/t[9])&&zi(t);return{c(){
|
|
772
|
+
function zi(e){let t,n,r,i,o=/*$_*/e[10]("tournamentsThController.joinerror")+"";return{c(){t=y("span"),n=C(o),r=v(),i=C(/*errorJoinText*/e[8]),_(t,"class","ErrorText"),_(t,"part","ErrorText")},m(e,o){p(e,t,o),m(t,n),m(t,r),m(t,i)},p(e,t){/*$_*/1024&t[0]&&o!==(o=/*$_*/e[10]("tournamentsThController.joinerror")+"")&&k(n,o),/*errorJoinText*/256&t[0]&&k(i,/*errorJoinText*/e[8])},d(e){e&&g(t)}}}function Ni(t){let n,r,i;function o(e,t){/*isLoggedIn*/
|
|
773
|
+
return e[5]?"Closed"!=status&&"Closing"!=status?Li:/*showdetails*/"true"==e[2]?$i:void 0:Di}let a=o(t),s=a&&a(t),l=/*errorJoin*/(t[7]||/*errorJoinConcurrently*/t[9])&&zi(t);return{c(){n=y("div"),s&&s.c(),r=v(),l&&l.c(),i=T(),this.c=e,_(n,"class","TournamentButtons"),_(n,"part","TournamentButtons")},m(e,t){p(e,n,t),s&&s.m(n,null),p(e,r,t),l&&l.m(e,t),p(e,i,t)},p(e,t){a===(a=o(e))&&s?s.p(e,t):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(n,null))),/*errorJoin*/e[7]||/*errorJoinConcurrently*/e[9]?l?l.p(e,t):(l=zi(e),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i:e,o:e,d(e){e&&g(n),s&&s.d(),e&&g(r),l&&l.d(e),e&&g(i)}}}function Hi(e,t,n){let r;d(e,jn,(e=>n(10,r=e)));let{session:i=""}=t,{userid:o=""}=t,{tourid:a=""}=t,{tournamenturl:s=""}=t,{endpoint:l=""}=t,{showdetails:u=""}=t,{showslider:c=""}=t,{userenrolled:h=""}=t,{showenrolled:f=""}=t,{maxwidth:m=""}=t,{showleaderboard:p=""}=t,{lang:g=""}=t,{loginevent:b=""}=t,{registerevent:y=""}=t,{loginurl:w=""}=t,{registerurl:C=""}=t,{currency:v=""}=t,{bonuscode:T=""}=t,{keepbrowsercontext:x="false"}=t,_="";Object.keys(Ti).forEach((e=>{gi(e,Ti[e])})),cn({fallbackLocale:"en",initialLocale:"en"});let k=!1,S="",P=window.navigator.userAgent,E=!1,$=!1,L="There was an error while trying to join the tournament",D=!1;const R=()=>{b&&window.postMessage({type:b,transition:"Login"},window.location.href),w&&(window.location=w)},A=()=>{y&&window.postMessage({type:y,transition:"Register"},window.location.href),C&&(window.location=C)},B=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},F=async(e,t)=>{var r;n(7,$=!1),n(9,D=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),n(6,E=!0);let o=new URL(`${l}/bonus/claim`),s=new Headers,u={};o.searchParams.append("language",g),o.searchParams.append("platform",ti(P)),s.append("Content-Type","application/json"),s.append("X-SessionID",S),t&&(u={language:g,bonusCode:t,currency:v});let c={method:"PUT",headers:s,body:JSON.stringify(u)};const d=()=>{n(6,E=!1),n(0,h="true"),window.postMessage({type:"TournamentUserEnrolled",userenrolled:h},window.location.href)},f=e=>{n(6,E=!1),e&&n(8,L=e),n(7,$=!0)},m=await(async()=>{let e;try{e=await fetch(o,c),e=await e.json()}catch(e){f()}return e})();if(m)if(1==m.success)d();else if(m.errorMessage.match("VersionMismatchException")){let e;e=await fetch(`${l}/tournaments/${a}`,{headers:{"X-SessionID":i}}),e=await e.json(),(null===(r=null==e?void 0:e.item)||void 0===r?void 0:r.playerEnrolled)?d():(f(m.errorMessage),n(9,D=!0),n(7,$=!1))}else f(m.errorMessage)},O=e=>{e.data&&"UserSessionID"==e.data.type&&(n(5,k=!0),S=e.data.session)};M((()=>(n(4,_=!("true"!=p)),window.addEventListener("message",O),()=>{window.removeEventListener("message",O)})));return e.$$set=e=>{"session"in e&&n(15,i=e.session),"userid"in e&&n(16,o=e.userid),"tourid"in e&&n(1,a=e.tourid),"tournamenturl"in e&&n(17,s=e.tournamenturl),"endpoint"in e&&n(18,l=e.endpoint),"showdetails"in e&&n(2,u=e.showdetails),"showslider"in e&&n(19,c=e.showslider),"userenrolled"in e&&n(0,h=e.userenrolled),"showenrolled"in e&&n(20,f=e.showenrolled),"maxwidth"in e&&n(21,m=e.maxwidth),"showleaderboard"in e&&n(22,p=e.showleaderboard),"lang"in e&&n(23,g=e.lang),"loginevent"in e&&n(24,b=e.loginevent),"registerevent"in e&&n(25,y=e.registerevent),"loginurl"in e&&n(26,w=e.loginurl),"registerurl"in e&&n(27,C=e.registerurl),"currency"in e&&n(28,v=e.currency),"bonuscode"in e&&n(3,T=e.bonuscode),"keepbrowsercontext"in e&&n(29,x=e.keepbrowsercontext)},e.$$.update=()=>{/*session*/32768&e.$$.dirty[0]&&i&&(i.length>0&&"false"!=i?(S=i,n(5,k=!0)):n(5,k=!1)),/*lang*/8388608&e.$$.dirty[0]&&g&&bi(g)},[h,a,u,T,_,k,E,$,L,D,r,R,A,B,F,i,o,s,l,c,f,m,p,g,b,y,w,C,v,x,()=>R(),()=>A(),()=>B(a),()=>F(a,T),()=>B(a)]}customElements.define("score-criteria-cell",Ei);class Ui extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Hi,Ni,a,{session:15,userid:16,tourid:1,tournamenturl:17,endpoint:18,showdetails:2,showslider:19,userenrolled:0,showenrolled:20,maxwidth:21,showleaderboard:22,lang:23,loginevent:24,registerevent:25,loginurl:26,registerurl:27,currency:28,bonuscode:3,keepbrowsercontext:29},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["session","userid","tourid","tournamenturl","endpoint","showdetails","showslider","userenrolled","showenrolled","maxwidth","showleaderboard","lang","loginevent","registerevent","loginurl","registerurl","currency","bonuscode","keepbrowsercontext"]}get session(){return this.$$.ctx[15]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[16]}set userid(e){this.$$set({userid:e}),I()}get tourid(){return this.$$.ctx[1]}set tourid(e){this.$$set({tourid:e}),I()}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),I()}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),I()}get showdetails(){return this.$$.ctx[2]}set showdetails(e){this.$$set({showdetails:e}),I()}get showslider(){return this.$$.ctx[19]}set showslider(e){this.$$set({showslider:e}),I()}get userenrolled(){return this.$$.ctx[0]}set userenrolled(e){this.$$set({userenrolled:e}),I()}get showenrolled(){return this.$$.ctx[20]}set showenrolled(e){this.$$set({showenrolled:e}),I()}get maxwidth(){return this.$$.ctx[21]}set maxwidth(e){this.$$set({maxwidth:e}),I()}get showleaderboard(){return this.$$.ctx[22]}set showleaderboard(e){this.$$set({showleaderboard:e}),I()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),I()}get loginevent(){return this.$$.ctx[24]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[25]}set registerevent(e){this.$$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[26]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[27]}set registerurl(e){this.$$set({registerurl:e}),I()}get currency(){return this.$$.ctx[28]}set currency(e){this.$$set({currency:e}),I()}get bonuscode(){return this.$$.ctx[3]}set bonuscode(e){this.$$set({bonuscode:e}),I()}get keepbrowsercontext(){return this.$$.ctx[29]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),I()}}
|
|
774
774
|
/* src/Cells/StatusTag.svelte generated by Svelte v3.59.2 */
|
|
775
|
-
function Ii(e){let t,r,
|
|
775
|
+
function Ii(e){let t,n,r,i,o,a;return{c(){t=y("div"),n=C(/*shownStatus*/e[1]),_(t,"class",r="Status "+/*statusClass*/e[2]+" TagContent"),_(t,"part",i="Status "+/*statusClass*/e[2]+" TagContent")},m(r,i){p(r,t,i),m(t,n),o||(a=f(/*matchStatus*/e[3].call(null,t)),o=!0)},p(e,o){/*shownStatus*/2&o&&k(n,/*shownStatus*/e[1]),/*statusClass*/4&o&&r!==(r="Status "+/*statusClass*/e[2]+" TagContent")&&_(t,"class",r),/*statusClass*/4&o&&i!==(i="Status "+/*statusClass*/e[2]+" TagContent")&&_(t,"part",i)},d(e){e&&g(t),o=!1,a()}}}function Yi(t){let n,r=/*status*/t[0]&&Ii(t);return{c(){r&&r.c(),n=T(),this.c=e},m(e,t){r&&r.m(e,t),p(e,n,t)},p(e,[t]){/*status*/e[0]?r?r.p(e,t):(r=Ii(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:e,o:e,d(e){r&&r.d(e),e&&g(n)}}}function ji(e,t,n){let r;d(e,jn,(e=>n(6,r=e)));let{lang:i="en"}=t,{status:o=""}=t;Object.keys(ki).forEach((e=>{gi(e,ki[e])})),cn({fallbackLocale:"en",initialLocale:"en"});let a="",s="";const l=()=>{"Unstarted"==o&&(n(1,a=r("tournamentsThumbnail.scheduled")),n(2,s="StatusUnstarted")),"Running"==o&&(n(1,a=r("tournamentsThumbnail.ongoing")),n(2,s="StatusRunning")),"Closed"!=o&&"Closing"!=o||n(1,a=r("tournamentsThumbnail.finished")),"Closed"==o&&n(2,s="StatusClosed"),"Closing"==o&&n(2,s="StatusClosing")};let u=!1;return M((()=>{n(5,u=!0)})),e.$$set=e=>{"lang"in e&&n(4,i=e.lang),"status"in e&&n(0,o=e.status)},e.$$.update=()=>{/*isMounted, lang, status*/49&e.$$.dirty&&u&&i&&o&&(bi(i),l())},[o,a,s,l,i,u]}customElements.define("tournament-join-button-cell",Ui);class Gi extends V{constructor(e){super();const t=document.createElement("style");t.textContent=".Status{color:greenyellow}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},ji,Yi,a,{lang:4,status:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["lang","status"]}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),I()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),I()}}
|
|
776
776
|
/* src/Cells/UserEnrollTag.svelte generated by Svelte v3.59.2 */
|
|
777
|
-
function Vi(e){let t,
|
|
777
|
+
function Vi(e){let t,n=/*userenrolled*/e[0]&&Wi(e);return{c(){n&&n.c(),t=T()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,r){/*userenrolled*/e[0]?n?n.p(e,r):(n=Wi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&g(t)}}}
|
|
778
778
|
// (32:4) {#if userenrolled}
|
|
779
|
-
function Wi(e){let t,r
|
|
779
|
+
function Wi(e){let t,n,r=/*$_*/e[2]("tournamentsThumbnail.enrolled")+"";return{c(){t=y("div"),n=C(r),_(t,"class","Enrolled TagContent"),_(t,"part","Enrolled TagContent")},m(e,r){p(e,t,r),m(t,n)},p(e,t){/*$_*/4&t&&r!==(r=/*$_*/e[2]("tournamentsThumbnail.enrolled")+"")&&k(n,r)},d(e){e&&g(t)}}}function qi(t){let n,r=/*showenrolled*/"true"==t[1]&&Vi(t);return{c(){r&&r.c(),n=T(),this.c=e},m(e,t){r&&r.m(e,t),p(e,n,t)},p(e,[t]){/*showenrolled*/"true"==e[1]?r?r.p(e,t):(r=Vi(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:e,o:e,d(e){r&&r.d(e),e&&g(n)}}}function Ji(e,t,n){let r;d(e,jn,(e=>n(2,r=e)));let{lang:i="en"}=t,{showenrolled:o=""}=t,{userenrolled:a}=t;Object.keys(ki).forEach((e=>{gi(e,ki[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const s=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&n(0,a=e.data.userenrolled)};return M((()=>(window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}))),e.$$set=e=>{"lang"in e&&n(3,i=e.lang),"showenrolled"in e&&n(1,o=e.showenrolled),"userenrolled"in e&&n(0,a=e.userenrolled)},e.$$.update=()=>{/*lang*/8&e.$$.dirty&&i&&bi(i)},[a,o,r,i]}customElements.define("status-cell",Gi);class Zi extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ji,qi,a,{lang:3,showenrolled:1,userenrolled:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["lang","showenrolled","userenrolled"]}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),I()}get showenrolled(){return this.$$.ctx[1]}set showenrolled(e){this.$$set({showenrolled:e}),I()}get userenrolled(){return this.$$.ctx[0]}set userenrolled(e){this.$$set({userenrolled:e}),I()}}
|
|
780
780
|
/* src/Cells/DurationCell.svelte generated by Svelte v3.59.2 */
|
|
781
|
-
function Ki(e){let t,r,
|
|
781
|
+
function Ki(e){let t,n,r,i,o,a,s,l,u,c,d,h;function b(e,t){/*status*/
|
|
782
782
|
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?eo:/*tournamentUntilStartDays*/e[4]>0?Qi:Xi}let w=b(e),T=w(e);function x(e,t){/*status*/
|
|
783
|
-
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?
|
|
783
|
+
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?ro:/*tournamentUntilStartDays*/e[4]>0?no:/*tournamentLeftDays*/e[3]>0?to:void 0}let S=x(e),P=S&&S(e);return{c(){t=y("div"),n=y("div"),r=C(/*startDateAsString*/e[6]),i=v(),o=y("div"),a=C(/*endDateAsString*/e[7]),s=v(),l=y("div"),u=y("div"),T.c(),c=v(),P&&P.c(),_(n,"class","StartDate"),_(n,"part","StartDate"),_(o,"class","EndDate"),_(o,"part","EndDate"),_(t,"class","TournamentDates"),_(t,"part","TournamentDates"),_(u,"class","ProgressBar"),_(u,"part","ProgressBar"),_(l,"class","ProgressBarWrapper"),_(l,"part","ProgressBarWrapper")},m(g,b){p(g,t,b),m(t,n),m(n,r),m(t,i),m(t,o),m(o,a),p(g,s,b),p(g,l,b),m(l,u),T.m(u,null),m(u,c),P&&P.m(u,null),d||(h=f(/*getDuration*/e[10].call(null,l)),d=!0)},p(e,t){/*startDateAsString*/64&t&&k(r,/*startDateAsString*/e[6]),/*endDateAsString*/128&t&&k(a,/*endDateAsString*/e[7]),w===(w=b(e))&&T?T.p(e,t):(T.d(1),T=w(e),T&&(T.c(),T.m(u,c))),S===(S=x(e))&&P?P.p(e,t):(P&&P.d(1),P=S&&S(e),P&&(P.c(),P.m(u,null)))},d(e){e&&g(t),e&&g(s),e&&g(l),T.d(),P&&P.d(),d=!1,h()}}}
|
|
784
784
|
// (97:10) {:else}
|
|
785
|
-
function Xi(e){let t;return{c(){t=y("div"),_(t,"class","ProgressBarFill"),_(t,"part","ProgressBarFill"),S(t,"width",/*getProgress*/e[8]()+"%")},m(e,
|
|
785
|
+
function Xi(e){let t;return{c(){t=y("div"),_(t,"class","ProgressBarFill"),_(t,"part","ProgressBarFill"),S(t,"width",/*getProgress*/e[8]()+"%")},m(e,n){p(e,t,n)},p(e,n){/*getProgress*/256&n&&S(t,"width",/*getProgress*/e[8]()+"%")},d(e){e&&g(t)}}}
|
|
786
786
|
// (95:10) {#if tournamentUntilStartDays > 0}
|
|
787
|
-
function Qi(t){let
|
|
787
|
+
function Qi(t){let n;return{c(){n=y("div"),_(n,"class","ProgressBarFillStarting"),_(n,"part","ProgressBarFillStarting")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
788
788
|
// (92:8) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
789
|
-
function eo(t){let
|
|
789
|
+
function eo(t){let n;return{c(){n=y("div"),_(n,"class","ProgressBarFillEnd"),_(n,"part","ProgressBarFillEnd")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
790
790
|
// (109:12) {#if tournamentLeftDays > 0}
|
|
791
|
-
function to(e){let t,r,
|
|
791
|
+
function to(e){let t,n,r,i,o=/*$_*/e[9]("tournamentsDuration.left")+"";return{c(){t=y("div"),n=C(/*showRemain*/e[5]),r=v(),i=C(o),_(t,"class","Remaining"),_(t,"part","Remaining")},m(e,o){p(e,t,o),m(t,n),m(t,r),m(t,i)},p(e,t){/*showRemain*/32&t&&k(n,/*showRemain*/e[5]),/*$_*/512&t&&o!==(o=/*$_*/e[9]("tournamentsDuration.left")+"")&&k(i,o)},d(e){e&&g(t)}}}
|
|
792
792
|
// (104:10) {#if tournamentUntilStartDays > 0}
|
|
793
|
-
function
|
|
793
|
+
function no(e){let t,n,r,i,o=/*$_*/e[9]("tournamentsDuration.starting")+"",a=/*getTextByDiff*/e[11](/*tournamentUntilStartDays*/e[4])+"";return{c(){t=y("div"),n=C(o),r=v(),i=C(a),_(t,"class","Remaining"),_(t,"part","Remaining")},m(e,o){p(e,t,o),m(t,n),m(t,r),m(t,i)},p(e,t){/*$_*/512&t&&o!==(o=/*$_*/e[9]("tournamentsDuration.starting")+"")&&k(n,o),/*tournamentUntilStartDays*/16&t&&a!==(a=/*getTextByDiff*/e[11](/*tournamentUntilStartDays*/e[4])+"")&&k(i,a)},d(e){e&&g(t)}}}
|
|
794
794
|
// (101:8) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
795
|
-
function
|
|
795
|
+
function ro(e){let t,n,r=/*$_*/e[9]("tournamentsDuration.finished")+"";return{c(){t=y("div"),n=C(r),_(t,"class","Finished"),_(t,"part","Finished")},m(e,r){p(e,t,r),m(t,n)},p(e,t){/*$_*/512&t&&r!==(r=/*$_*/e[9]("tournamentsDuration.finished")+"")&&k(n,r)},d(e){e&&g(t)}}}function io(t){let n,r=/*startdate*/t[0]&&/*enddate*/t[1]&&Ki(t);return{c(){n=y("div"),r&&r.c(),this.c=e,_(n,"class","TournamentDuration"),_(n,"part","TournamentDuration")},m(e,t){p(e,n,t),r&&r.m(n,null)},p(e,[t]){/*startdate*/e[0]&&/*enddate*/e[1]?r?r.p(e,t):(r=Ki(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:e,o:e,d(e){e&&g(n),r&&r.d()}}}function oo(e,t,n){let r,i;d(e,jn,(e=>n(9,i=e)));let{startdate:o=""}=t,{enddate:a=""}=t,{status:s=""}=t,{lang:l="en"}=t,u="",c="",h="",f="",m="";Object.keys(Ci).forEach((e=>{gi(e,Ci[e])}));const p=e=>new Date(e).getTime(),g=(e,t)=>(p(t)-p(e))/6e4,b=()=>{const e=new Date;n(3,u=g(e,a)),n(4,c=g(e,o)),n(5,h=C(u))},y=e=>{if(!e)return;let t=new Date(e),n=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${n}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${t.getUTCFullYear()}`},w=()=>{n(6,f=y(o)),n(7,m=y(a))},C=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map((e=>(e=>{const t=Math.floor(e);return t<10?`0${t}`:`${t}`})(e))).join(":")}return Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return M((()=>{const e=setInterval((()=>{o&&a&&b()}),1e3);return()=>clearInterval(e)})),e.$$set=e=>{"startdate"in e&&n(0,o=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,s=e.status),"lang"in e&&n(12,l=e.lang)},e.$$.update=()=>{/*tournamentLeftDays, startdate, enddate*/11&e.$$.dirty&&n(8,r=()=>{if(u<=0)return 100;const e=g(o,a),t=100/e;return Math.floor((e-u)*t)}),/*startdate, enddate, tournamentLeftDays*/11&e.$$.dirty&&o&&a&&w()&&b()&&C(u),/*lang*/4096&e.$$.dirty&&l&&b()&&bi(l),/*lang, tournamentLeftDays*/4104&e.$$.dirty&&l&&C(u),/*lang*/4096&e.$$.dirty&&l&&w()},[o,a,s,u,c,h,f,m,r,i,b,C,l]}customElements.define("user-enroll-tag",Zi);class ao extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},oo,io,a,{startdate:0,enddate:1,status:2,lang:12},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),I()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),I()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),I()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),I()}}
|
|
796
796
|
/* src/Cells/SeeGamesLine.svelte generated by Svelte v3.59.2 */
|
|
797
|
-
function so(t){let r,n,i,o,a,s,l,u,c,d=/*$_*/t[3]("tournamentsThumbnail.seegames")+"",h=/*$_*/t[3]("tournamentsThumbnail.here")+"";return{c(){r=y("div"),n=y("p"),i=C(d),o=v(),a=y("a"),s=C(h),this.c=e,_(a,"part","GamesAnchor"),_(a,"class","GamesAnchor"),_(a,"href",/*gameurl*/t[0]),_(a,"target",l=/*keepbrowsercontext*/"true"===t[2]?"_self":"_blank"),_(n,"part","GamesP"),_(r,"class","Games"),_(r,"part","Games")},m(e,l){p(e,r,l),m(r,n),m(n,i),m(n,o),m(n,a),m(a,s),u||(c=x(a,"click",/*click_handler*/t[6]),u=!0)},p(e,[t]){/*$_*/8&t&&d!==(d=/*$_*/e[3]("tournamentsThumbnail.seegames")+"")&&k(i,d),/*$_*/8&t&&h!==(h=/*$_*/e[3]("tournamentsThumbnail.here")+"")&&k(s,h),/*gameurl*/1&t&&_(a,"href",/*gameurl*/e[0]),/*keepbrowsercontext*/4&t&&l!==(l=/*keepbrowsercontext*/"true"===e[2]?"_self":"_blank")&&_(a,"target",l)},i:e,o:e,d(e){e&&g(r),u=!1,c()}}}function lo(e,t,r){let n;d(e,Yr,(e=>r(3,n=e)));let{gameurl:i=""}=t,{lang:o="en"}=t,{tourid:a=""}=t,{keepbrowsercontext:s="false"}=t;Object.keys(ki).forEach((e=>{gi(e,ki[e])})),ur({fallbackLocale:"en",initialLocale:"en"});const l=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return e.$$set=e=>{"gameurl"in e&&r(0,i=e.gameurl),"lang"in e&&r(5,o=e.lang),"tourid"in e&&r(1,a=e.tourid),"keepbrowsercontext"in e&&r(2,s=e.keepbrowsercontext)},[i,a,s,n,l,o,()=>l()]}customElements.define("duration-cell",ao);class uo extends V{constructor(e){super(),ne(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},lo,so,a,{gameurl:0,lang:5,tourid:1,keepbrowsercontext:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["gameurl","lang","tourid","keepbrowsercontext"]}get gameurl(){return this.$$.ctx[0]}set gameurl(e){this.$$set({gameurl:e}),I()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),I()}get tourid(){return this.$$.ctx[1]}set tourid(e){this.$$set({tourid:e}),I()}get keepbrowsercontext(){return this.$$.ctx[2]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),I()}}customElements.define("see-games-line",uo);var co="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3552_59823)'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M7.497 7.374L8.673 7.066V11H9.646V6.016L7.497 6.471V7.374Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3552_59823'%3e%3crect width='18' height='18' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ho="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M7.14 11H11.081V10.083H9.03L10.304 8.879C10.5093 8.69233 10.675 8.48467 10.801 8.256C10.927 8.02733 10.99 7.78233 10.99 7.521C10.99 7.34367 10.9527 7.16633 10.878 6.989C10.808 6.81167 10.6983 6.65067 10.549 6.506C10.4043 6.35667 10.22 6.23767 9.996 6.149C9.77667 6.05567 9.52 6.009 9.226 6.009C8.82933 6.009 8.49333 6.093 8.218 6.261C7.94733 6.42433 7.742 6.646 7.602 6.926C7.462 7.206 7.392 7.521 7.392 7.871H8.372C8.372 7.675 8.40467 7.50233 8.47 7.353C8.54 7.20367 8.63567 7.08933 8.757 7.01C8.883 6.926 9.03233 6.884 9.205 6.884C9.32633 6.884 9.43367 6.905 9.527 6.947C9.62033 6.98433 9.69967 7.03567 9.765 7.101C9.83033 7.16633 9.87933 7.241 9.912 7.325C9.94467 7.409 9.961 7.49533 9.961 7.584C9.961 7.71 9.93767 7.83133 9.891 7.948C9.84433 8.06467 9.77667 8.18133 9.688 8.298C9.59933 8.41467 9.492 8.54067 9.366 8.676L7.14 11Z' fill='white'/%3e%3c/svg%3e",fo="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3552_59855)'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M8.876 8.613C9.24467 8.613 9.57367 8.564 9.863 8.466C10.1523 8.368 10.381 8.22567 10.549 8.039C10.717 7.84767 10.801 7.619 10.801 7.353C10.801 7.10567 10.738 6.88167 10.612 6.681C10.486 6.48033 10.3017 6.31933 10.059 6.198C9.821 6.07667 9.53167 6.016 9.191 6.016C8.869 6.016 8.58667 6.079 8.344 6.205C8.10133 6.331 7.91 6.50367 7.77 6.723C7.63467 6.93767 7.567 7.185 7.567 7.465H8.498C8.498 7.283 8.56333 7.13367 8.694 7.017C8.82933 6.89567 8.995 6.835 9.191 6.835C9.331 6.835 9.44533 6.85833 9.534 6.905C9.62267 6.95167 9.69033 7.01933 9.737 7.108C9.78367 7.19667 9.807 7.29933 9.807 7.416C9.807 7.50933 9.78367 7.60033 9.737 7.689C9.695 7.773 9.63433 7.85 9.555 7.92C9.47567 7.98533 9.37767 8.03667 9.261 8.074C9.149 8.11133 9.02067 8.13 8.876 8.13V8.613ZM9.149 11.098C9.513 11.098 9.828 11.0397 10.094 10.923C10.3647 10.8017 10.5723 10.6337 10.717 10.419C10.8663 10.2043 10.941 9.957 10.941 9.677C10.941 9.42967 10.8897 9.21967 10.787 9.047C10.6843 8.86967 10.5397 8.725 10.353 8.613C10.1663 8.49633 9.947 8.41233 9.695 8.361C9.44767 8.30967 9.17467 8.284 8.876 8.284V8.816C9.04867 8.816 9.20033 8.83467 9.331 8.872C9.46633 8.90467 9.57833 8.95367 9.667 9.019C9.76033 9.08433 9.83033 9.166 9.877 9.264C9.92367 9.35733 9.947 9.46 9.947 9.572C9.947 9.726 9.91433 9.85433 9.849 9.957C9.78367 10.0597 9.69267 10.139 9.576 10.195C9.464 10.2463 9.331 10.272 9.177 10.272C9.02767 10.272 8.89 10.244 8.764 10.188C8.638 10.1273 8.53767 10.041 8.463 9.929C8.38833 9.817 8.351 9.68167 8.351 9.523H7.357C7.357 9.733 7.399 9.93367 7.483 10.125C7.567 10.3117 7.686 10.4797 7.84 10.629C7.994 10.7737 8.18067 10.888 8.4 10.972C8.61933 11.056 8.869 11.098 9.149 11.098Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3552_59855'%3e%3crect width='18' height='18' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
797
|
+
function so(t){let n,r,i,o,a,s,l,u,c,d=/*$_*/t[3]("tournamentsThumbnail.seegames")+"",h=/*$_*/t[3]("tournamentsThumbnail.here")+"";return{c(){n=y("div"),r=y("p"),i=C(d),o=v(),a=y("a"),s=C(h),this.c=e,_(a,"part","GamesAnchor"),_(a,"class","GamesAnchor"),_(a,"href",/*gameurl*/t[0]),_(a,"target",l=/*keepbrowsercontext*/"true"===t[2]?"_self":"_blank"),_(r,"part","GamesP"),_(n,"class","Games"),_(n,"part","Games")},m(e,l){p(e,n,l),m(n,r),m(r,i),m(r,o),m(r,a),m(a,s),u||(c=x(a,"click",/*click_handler*/t[6]),u=!0)},p(e,[t]){/*$_*/8&t&&d!==(d=/*$_*/e[3]("tournamentsThumbnail.seegames")+"")&&k(i,d),/*$_*/8&t&&h!==(h=/*$_*/e[3]("tournamentsThumbnail.here")+"")&&k(s,h),/*gameurl*/1&t&&_(a,"href",/*gameurl*/e[0]),/*keepbrowsercontext*/4&t&&l!==(l=/*keepbrowsercontext*/"true"===e[2]?"_self":"_blank")&&_(a,"target",l)},i:e,o:e,d(e){e&&g(n),u=!1,c()}}}function lo(e,t,n){let r;d(e,jn,(e=>n(3,r=e)));let{gameurl:i=""}=t,{lang:o="en"}=t,{tourid:a=""}=t,{keepbrowsercontext:s="false"}=t;Object.keys(ki).forEach((e=>{gi(e,ki[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const l=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return e.$$set=e=>{"gameurl"in e&&n(0,i=e.gameurl),"lang"in e&&n(5,o=e.lang),"tourid"in e&&n(1,a=e.tourid),"keepbrowsercontext"in e&&n(2,s=e.keepbrowsercontext)},[i,a,s,r,l,o,()=>l()]}customElements.define("duration-cell",ao);class uo extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},lo,so,a,{gameurl:0,lang:5,tourid:1,keepbrowsercontext:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["gameurl","lang","tourid","keepbrowsercontext"]}get gameurl(){return this.$$.ctx[0]}set gameurl(e){this.$$set({gameurl:e}),I()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),I()}get tourid(){return this.$$.ctx[1]}set tourid(e){this.$$set({tourid:e}),I()}get keepbrowsercontext(){return this.$$.ctx[2]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),I()}}customElements.define("see-games-line",uo);var co="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3552_59823)'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M7.497 7.374L8.673 7.066V11H9.646V6.016L7.497 6.471V7.374Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3552_59823'%3e%3crect width='18' height='18' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ho="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M7.14 11H11.081V10.083H9.03L10.304 8.879C10.5093 8.69233 10.675 8.48467 10.801 8.256C10.927 8.02733 10.99 7.78233 10.99 7.521C10.99 7.34367 10.9527 7.16633 10.878 6.989C10.808 6.81167 10.6983 6.65067 10.549 6.506C10.4043 6.35667 10.22 6.23767 9.996 6.149C9.77667 6.05567 9.52 6.009 9.226 6.009C8.82933 6.009 8.49333 6.093 8.218 6.261C7.94733 6.42433 7.742 6.646 7.602 6.926C7.462 7.206 7.392 7.521 7.392 7.871H8.372C8.372 7.675 8.40467 7.50233 8.47 7.353C8.54 7.20367 8.63567 7.08933 8.757 7.01C8.883 6.926 9.03233 6.884 9.205 6.884C9.32633 6.884 9.43367 6.905 9.527 6.947C9.62033 6.98433 9.69967 7.03567 9.765 7.101C9.83033 7.16633 9.87933 7.241 9.912 7.325C9.94467 7.409 9.961 7.49533 9.961 7.584C9.961 7.71 9.93767 7.83133 9.891 7.948C9.84433 8.06467 9.77667 8.18133 9.688 8.298C9.59933 8.41467 9.492 8.54067 9.366 8.676L7.14 11Z' fill='white'/%3e%3c/svg%3e",fo="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3552_59855)'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M8.876 8.613C9.24467 8.613 9.57367 8.564 9.863 8.466C10.1523 8.368 10.381 8.22567 10.549 8.039C10.717 7.84767 10.801 7.619 10.801 7.353C10.801 7.10567 10.738 6.88167 10.612 6.681C10.486 6.48033 10.3017 6.31933 10.059 6.198C9.821 6.07667 9.53167 6.016 9.191 6.016C8.869 6.016 8.58667 6.079 8.344 6.205C8.10133 6.331 7.91 6.50367 7.77 6.723C7.63467 6.93767 7.567 7.185 7.567 7.465H8.498C8.498 7.283 8.56333 7.13367 8.694 7.017C8.82933 6.89567 8.995 6.835 9.191 6.835C9.331 6.835 9.44533 6.85833 9.534 6.905C9.62267 6.95167 9.69033 7.01933 9.737 7.108C9.78367 7.19667 9.807 7.29933 9.807 7.416C9.807 7.50933 9.78367 7.60033 9.737 7.689C9.695 7.773 9.63433 7.85 9.555 7.92C9.47567 7.98533 9.37767 8.03667 9.261 8.074C9.149 8.11133 9.02067 8.13 8.876 8.13V8.613ZM9.149 11.098C9.513 11.098 9.828 11.0397 10.094 10.923C10.3647 10.8017 10.5723 10.6337 10.717 10.419C10.8663 10.2043 10.941 9.957 10.941 9.677C10.941 9.42967 10.8897 9.21967 10.787 9.047C10.6843 8.86967 10.5397 8.725 10.353 8.613C10.1663 8.49633 9.947 8.41233 9.695 8.361C9.44767 8.30967 9.17467 8.284 8.876 8.284V8.816C9.04867 8.816 9.20033 8.83467 9.331 8.872C9.46633 8.90467 9.57833 8.95367 9.667 9.019C9.76033 9.08433 9.83033 9.166 9.877 9.264C9.92367 9.35733 9.947 9.46 9.947 9.572C9.947 9.726 9.91433 9.85433 9.849 9.957C9.78367 10.0597 9.69267 10.139 9.576 10.195C9.464 10.2463 9.331 10.272 9.177 10.272C9.02767 10.272 8.89 10.244 8.764 10.188C8.638 10.1273 8.53767 10.041 8.463 9.929C8.38833 9.817 8.351 9.68167 8.351 9.523H7.357C7.357 9.733 7.399 9.93367 7.483 10.125C7.567 10.3117 7.686 10.4797 7.84 10.629C7.994 10.7737 8.18067 10.888 8.4 10.972C8.61933 11.056 8.869 11.098 9.149 11.098Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3552_59855'%3e%3crect width='18' height='18' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
798
798
|
/* src/Cells/PrizesCell.svelte generated by Svelte v3.59.2 */
|
|
799
|
-
function mo(e,t,
|
|
799
|
+
function mo(e,t,n){const r=e.slice();return r[15]=t[n],r[17]=n,r}function po(e,t,n){const r=e.slice();return r[12]=t[n],r}function go(e,t,n){const r=e.slice();return r[15]=t[n],r[17]=n,r}
|
|
800
800
|
// (110:2) {#if prizes}
|
|
801
|
-
function bo(e){let t;function
|
|
802
|
-
return e[2].expandAll?wo:yo}let n
|
|
801
|
+
function bo(e){let t;function n(e,t){/*cellsetting*/
|
|
802
|
+
return e[2].expandAll?wo:yo}let r=n(e),i=r(e);return{c(){i.c(),t=T()},m(e,n){i.m(e,n),p(e,t,n)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
|
|
803
803
|
// (134:4) {:else }
|
|
804
|
-
function yo(e){let t,
|
|
804
|
+
function yo(e){let t,n=/*prizes*/e[0],r=[];for(let t=0;t<n.length;t+=1)r[t]=vo(mo(e,n,t));let i=null;return n.length||(i=Co(e)),{c(){t=y("div");for(let e=0;e<r.length;e+=1)r[e].c();i&&i.c(),_(t,"class","Prizes"),_(t,"part","Prizes")},m(e,n){p(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null);i&&i.m(t,null)},p(e,o){if(/*prizes, $_*/33&o){let a;for(n=/*prizes*/e[0],a=0;a<n.length;a+=1){const i=mo(e,n,a);r[a]?r[a].p(i,o):(r[a]=vo(i),r[a].c(),r[a].m(t,null))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length,!n.length&&i?i.p(e,o):n.length?i&&(i.d(1),i=null):(i=Co(e),i.c(),i.m(t,null))}},d(e){e&&g(t),b(r,e),i&&i.d()}}}
|
|
805
805
|
// (111:4) {#if cellsetting.expandAll}
|
|
806
|
-
function wo(e){let t,
|
|
806
|
+
function wo(e){let t,n=/*prizesInList*/e[3],r=[];for(let t=0;t<n.length;t+=1)r[t]=ko(po(e,n,t));return{c(){t=y("div");for(let e=0;e<r.length;e+=1)r[e].c();_(t,"class","Prizes"),_(t,"part","Prizes")},m(e,n){p(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*prizesInList, $_, rankImgs, showrankasimage*/58&i){let o;for(n=/*prizesInList*/e[3],o=0;o<n.length;o+=1){const a=po(e,n,o);r[o]?r[o].p(a,i):(r[o]=ko(a),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&g(t),b(r,e)}}}
|
|
807
807
|
// (149:8) {:else}
|
|
808
|
-
function Co(e){let t,r
|
|
808
|
+
function Co(e){let t,n,r=/*$_*/e[5]("tournamentsPrizes.noprizes")+"";return{c(){t=y("p"),n=C(r)},m(e,r){p(e,t,r),m(t,n)},p(e,t){/*$_*/32&t&&r!==(r=/*$_*/e[5]("tournamentsPrizes.noprizes")+"")&&k(n,r)},d(e){e&&g(t)}}}
|
|
809
809
|
// (136:8) {#each prizes as prize, index}
|
|
810
|
-
function vo(e){let t,r,
|
|
810
|
+
function vo(e){let t,n,r,i,o,a,s,l,u,c,d=/*prize*/(e[15].count>1?`${/*prize*/e[15].rank}~${/*prize*/e[15].rank+/*prize*/e[15].count-1}`/*prize*/:e[15].rank)+"",h=/*$_*/e[5]("tournamentsPrizes.place")+"",f=/*prize*/e[15].name+"";return{c(){t=y("div"),n=y("p"),r=y("span"),i=C(d),o=v(),a=y("span"),s=C(h),l=C(": "),u=C(f),c=v(),_(r,"class","PrizeRank"),_(r,"part","PrizeRank"),_(a,"class","PrizeName"),_(a,"part","PrizeName"),_(n,"class","PrizeText"),_(n,"part","PrizeText"),_(t,"class","Prize Prize"+/*index*/e[17]),_(t,"part","Prize Prize"+/*index*/e[17])},m(e,d){p(e,t,d),m(t,n),m(n,r),m(r,i),m(n,o),m(n,a),m(a,s),m(a,l),m(a,u),m(t,c)},p(e,t){/*prizes*/1&t&&d!==(d=/*prize*/(e[15].count>1?`${/*prize*/e[15].rank}~${/*prize*/e[15].rank+/*prize*/e[15].count-1}`/*prize*/:e[15].rank)+"")&&k(i,d),/*$_*/32&t&&h!==(h=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(s,h),/*prizes*/1&t&&f!==(f=/*prize*/e[15].name+"")&&k(u,f)},d(e){e&&g(t)}}}
|
|
811
811
|
// (122:20) {:else}
|
|
812
|
-
function To(e){let t,r,
|
|
812
|
+
function To(e){let t,n,r,i,o=/*prize*/e[15].rank+"",a=/*$_*/e[5]("tournamentsPrizes.place")+"";return{c(){t=y("span"),n=C(o),r=v(),i=C(a),_(t,"class","PrizeRank"),_(t,"part","PrizeRank")},m(e,o){p(e,t,o),m(t,n),m(t,r),m(t,i)},p(e,t){/*prizesInList*/8&t&&o!==(o=/*prize*/e[15].rank+"")&&k(n,o),/*$_*/32&t&&a!==(a=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(i,a)},d(e){e&&g(t)}}}
|
|
813
813
|
// (118:18) {#if prize.rank < 4 && showrankasimage == 'true'}
|
|
814
|
-
function xo(e){let t,r,
|
|
814
|
+
function xo(e){let t,n,r,i,o,a,s=/*$_*/e[5]("tournamentsPrizes.place")+"";return{c(){t=y("div"),n=y("img"),i=v(),o=y("span"),a=C(s),_(n,"alt","prize"),u(n.src,r=/*rankImgs*/e[4][/*prize*/e[15].rank])||_(n,"src",r),_(t,"class","PrizeRank"),_(t,"part","PrizeRank")},m(e,r){p(e,t,r),m(t,n),m(t,i),m(t,o),m(o,a)},p(e,t){/*rankImgs, prizesInList*/24&t&&!u(n.src,r=/*rankImgs*/e[4][/*prize*/e[15].rank])&&_(n,"src",r),/*$_*/32&t&&s!==(s=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(a,s)},d(e){e&&g(t)}}}
|
|
815
815
|
// (115:12) {#each colPrizes as prize, index}
|
|
816
|
-
function _o(e){let t,r,
|
|
817
|
-
return e[15].rank<4&&/*showrankasimage*/"true"==e[1]?xo:To}let c=u(e),d=c(e);return{c(){t=y("div"),
|
|
816
|
+
function _o(e){let t,n,r,i,o,a,s,l=/*prize*/e[15].name+"";function u(e,t){/*prize*/
|
|
817
|
+
return e[15].rank<4&&/*showrankasimage*/"true"==e[1]?xo:To}let c=u(e),d=c(e);return{c(){t=y("div"),n=y("p"),d.c(),r=v(),i=y("span"),o=C(l),_(i,"class","PrizeName"),_(i,"part","PrizeName"),_(n,"class","PrizeText"),_(n,"part","PrizeText"),_(t,"class",a="Prize Prize"+(/*prize*/e[15].rank-1)),_(t,"part",s="Prize Prize"+(/*prize*/e[15].rank-1))},m(e,a){p(e,t,a),m(t,n),d.m(n,null),m(n,r),m(n,i),m(i,o)},p(e,i){c===(c=u(e))&&d?d.p(e,i):(d.d(1),d=c(e),d&&(d.c(),d.m(n,r))),/*prizesInList*/8&i&&l!==(l=/*prize*/e[15].name+"")&&k(o,l),/*prizesInList*/8&i&&a!==(a="Prize Prize"+(/*prize*/e[15].rank-1))&&_(t,"class",a),/*prizesInList*/8&i&&s!==(s="Prize Prize"+(/*prize*/e[15].rank-1))&&_(t,"part",s)},d(e){e&&g(t),d.d()}}}
|
|
818
818
|
// (113:8) {#each prizesInList as colPrizes}
|
|
819
|
-
function ko(e){let t,r,
|
|
819
|
+
function ko(e){let t,n,r,i=/*colPrizes*/e[12],o=[];for(let t=0;t<i.length;t+=1)o[t]=_o(go(e,i,t));return{c(){t=y("div");for(let e=0;e<o.length;e+=1)o[e].c();n=v(),_(t,"class",r="ColPrizes col-"+/*prizesInList*/e[3].length)},m(e,r){p(e,t,r);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,null);m(t,n)},p(e,a){if(/*prizesInList, $_, rankImgs, showrankasimage*/58&a){let r;for(i=/*colPrizes*/e[12],r=0;r<i.length;r+=1){const s=go(e,i,r);o[r]?o[r].p(s,a):(o[r]=_o(s),o[r].c(),o[r].m(t,n))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}/*prizesInList*/8&a&&r!==(r="ColPrizes col-"+/*prizesInList*/e[3].length)&&_(t,"class",r)},d(e){e&&g(t),b(o,e)}}}function So(t){let n,r,i,o,a,s,l,u,c,d=/*$_*/t[5]("tournamentsPrizes.prizes")+"",h=/*prizes*/t[0]&&bo(t);return{c(){n=y("div"),r=y("div"),i=y("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',o=v(),a=y("span"),a.innerHTML='<slot name="prizeIcon"></slot>',s=v(),l=y("p"),u=C(d),c=v(),h&&h.c(),this.c=e,_(i,"class","TournamentPrizesIconWrapper"),_(i,"part","TournamentPrizesIconWrapper"),_(a,"class","TournamentPrizesIconWrapper"),_(a,"part","TournamentPrizesIconSlot"),_(l,"class","PrizesTitle"),_(l,"part","PrizesTitle"),_(r,"class","TournamentPrizesIconSection"),_(r,"part","TournamentPrizesIconSection"),_(n,"class","TournamentPrizes"),_(n,"part","TournamentPrizes")},m(e,t){p(e,n,t),m(n,r),m(r,i),m(r,o),m(r,a),m(r,s),m(r,l),m(l,u),m(n,c),h&&h.m(n,null)},p(e,[t]){/*$_*/32&t&&d!==(d=/*$_*/e[5]("tournamentsPrizes.prizes")+"")&&k(u,d),/*prizes*/e[0]?h?h.p(e,t):(h=bo(e),h.c(),h.m(n,null)):h&&(h.d(1),h=null)},i:e,o:e,d(e){e&&g(n),h&&h.d()}}}function Po(e,t,n){let r;d(e,jn,(e=>n(5,r=e)));let{prizes:i}=t,{lang:o=""}=t,{showrankasimage:a="false"}=t,{cellsetting:s={expandAll:!0,listType:1,rowPerCol:8,maxCol:3}}=t;
|
|
820
820
|
//let prizes:any = undefined;
|
|
821
|
-
Object.keys(_i).forEach((e=>{gi(e,_i[e])})),
|
|
821
|
+
Object.keys(_i).forEach((e=>{gi(e,_i[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const l=e=>{};
|
|
822
822
|
/*if (e.data && e.data.type == `TournamentPrizes_${tourid}`) {
|
|
823
823
|
prizes = e.data.prizes;
|
|
824
824
|
}*/
|
|
825
|
-
let u=[];let c=[];return M((()=>(
|
|
825
|
+
let u=[];let c=[];return M((()=>(n(4,c=[co,co,ho,fo]),window.addEventListener("message",l,!1),()=>{window.removeEventListener("message",l)}))),e.$$set=e=>{"prizes"in e&&n(0,i=e.prizes),"lang"in e&&n(6,o=e.lang),"showrankasimage"in e&&n(1,a=e.showrankasimage),"cellsetting"in e&&n(2,s=e.cellsetting)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&o&&bi(o),/*cellsetting, prizes*/5&e.$$.dirty&&s&&i&&(()=>{if(!s.expandAll)return;n(3,u=[[]]);let e=()=>{let e=[];return i.forEach((t=>{if(1==t.count)e.push(t);else{let n=parseInt(t.rank),r=t.name;for(let i=0;i<t.count;i++){let t={rank:n+i,name:r,count:1};e.push(t)}}})),e};if(1==s.listType){let t=e(),n=t.length,r=s.rowPerCol||8,i=s.maxCol;n>=r*i&&(r=Math.ceil(n/i)),n<=r&&(r=Math.ceil(n/i)),t.forEach(((e,t)=>{let n=Math.floor(t/r);u.length<n+1&&u.push([]),u[n].push(e)}))}else n(3,u[0]=e(),u)})()},[i,a,s,u,c,r,o]}class Eo extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Po,So,a,{prizes:0,lang:6,showrankasimage:1,cellsetting:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["prizes","lang","showrankasimage","cellsetting"]}get prizes(){return this.$$.ctx[0]}set prizes(e){this.$$set({prizes:e}),I()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),I()}get showrankasimage(){return this.$$.ctx[1]}set showrankasimage(e){this.$$set({showrankasimage:e}),I()}get cellsetting(){return this.$$.ctx[2]}set cellsetting(e){this.$$set({cellsetting:e}),I()}}
|
|
826
826
|
/* src/Cells/GamesCell.svelte generated by Svelte v3.59.2 */
|
|
827
|
-
function $o(e,t,
|
|
827
|
+
function $o(e,t,n){const r=e.slice();return r[42]=t[n],r[44]=n,r}
|
|
828
828
|
// (135:2) {#if sliderGames}
|
|
829
|
-
function Lo(e){let t,r,
|
|
830
|
-
/*div1_binding*/e[25](o),p(i,a,c),p(i,s,c),l||(u=[x(t,"click",/*click_handler*/e[21]),x(s,"click",/*click_handler_2*/e[26])],l=!0)},p(e,
|
|
829
|
+
function Lo(e){let t,n,r,o,a,s,l,u,c=/*sliderGames*/e[2],d=[];for(let t=0;t<c.length;t+=1)d[t]=Do($o(e,c,t));return{c(){t=y("div"),t.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',n=v(),r=y("main"),o=y("div");for(let e=0;e<d.length;e+=1)d[e].c();a=v(),s=y("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',_(t,"class","SliderNavButton"),_(t,"part","SliderNavButton"),P(t,"disabled",/*atStart*/e[7]),_(o,"class","items"),_(o,"part","items"),S(o,"transform","translateX("+/*offset*/e[0]+"px)"),_(r,"class","main"),_(s,"class","SliderNavButton"),_(s,"part","SliderNavButton"),P(s,"disabled",/*atEnd*/e[6])},m(i,c){p(i,t,c),p(i,n,c),p(i,r,c),m(r,o);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(o,null);
|
|
830
|
+
/*div1_binding*/e[25](o),p(i,a,c),p(i,s,c),l||(u=[x(t,"click",/*click_handler*/e[21]),x(s,"click",/*click_handler_2*/e[26])],l=!0)},p(e,n){if(/*atStart*/128&n[0]&&P(t,"disabled",/*atStart*/e[7]),/*gameClicked, sliderGames, enter, leave, hover, hoverIndex, $_*/5916&n[0]){let t;for(c=/*sliderGames*/e[2],t=0;t<c.length;t+=1){const r=$o(e,c,t);d[t]?d[t].p(r,n):(d[t]=Do(r),d[t].c(),d[t].m(o,null))}for(;t<d.length;t+=1)d[t].d(1);d.length=c.length}/*offset*/1&n[0]&&S(o,"transform","translateX("+/*offset*/e[0]+"px)"),/*atEnd*/64&n[0]&&P(s,"disabled",/*atEnd*/e[6])},d(o){o&&g(t),o&&g(n),o&&g(r),b(d,o),
|
|
831
831
|
/*div1_binding*/e[25](null),o&&g(a),o&&g(s),l=!1,i(u)}}}
|
|
832
832
|
// (143:8) {#each sliderGames as game, i}
|
|
833
|
-
function Do(e){let t,r,
|
|
833
|
+
function Do(e){let t,n,r,o,a,s,l,c,d,h,f,b,w,T=/*$_*/e[8]("gamesSlider.playNow")+"";function S(){/*click_handler_1*/
|
|
834
834
|
return e[22](/*game*/e[42])}function P(){/*mouseenter_handler*/
|
|
835
|
-
return e[23](/*i*/e[44])}return{c(){t=y("div"),
|
|
836
|
-
/*div_binding*/,t[27](
|
|
837
|
-
/*div_binding*/,t[27](null)}}}customElements.define("prizes-cell",Eo);function Ro(e,t,
|
|
835
|
+
return e[23](/*i*/e[44])}return{c(){t=y("div"),n=y("span"),r=C(T),s=v(),l=y("img"),f=v(),_(n,"class",o="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":"")),_(n,"part",a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":"")),_(l,"class","GameThumbnail"),_(l,"part","GameThumbnail"),u(l.src,c=/*game*/e[42].thumbnail)||_(l,"src",c),_(l,"width","132px"),_(l,"height","100px"),_(l,"alt",d=/*game*/e[42].name),_(l,"title",h=/*game*/e[42].name),_(t,"class","item"),_(t,"part","item")},m(i,o){p(i,t,o),m(t,n),m(n,r),m(t,s),m(t,l),m(t,f),b||(w=[x(t,"click",S),x(t,"mouseenter",P),x(t,"mouseleave",/*mouseleave_handler*/e[24])],b=!0)},p(t,i){e=t,/*$_*/256&i[0]&&T!==(T=/*$_*/e[8]("gamesSlider.playNow")+"")&&k(r,T),/*hover, hoverIndex*/24&i[0]&&o!==(o="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(n,"class",o),/*hover, hoverIndex*/24&i[0]&&a!==(a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(n,"part",a),/*sliderGames*/4&i[0]&&!u(l.src,c=/*game*/e[42].thumbnail)&&_(l,"src",c),/*sliderGames*/4&i[0]&&d!==(d=/*game*/e[42].name)&&_(l,"alt",d),/*sliderGames*/4&i[0]&&h!==(h=/*game*/e[42].name)&&_(l,"title",h)},d(e){e&&g(t),b=!1,i(w)}}}function Mo(t){let n,r=/*sliderGames*/t[2]&&Lo(t);return{c(){n=y("div"),r&&r.c(),this.c=e,_(n,"class","TournamentsGamesSlider"),_(n,"part","TournamentsGamesSlider")},m(e,i){p(e,n,i),r&&r.m(n,null)
|
|
836
|
+
/*div_binding*/,t[27](n)},p(e,t){/*sliderGames*/e[2]?r?r.p(e,t):(r=Lo(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:e,o:e,d(e){e&&g(n),r&&r.d()
|
|
837
|
+
/*div_binding*/,t[27](null)}}}customElements.define("prizes-cell",Eo);function Ro(e,t,n){let r,i,o;d(e,jn,(e=>n(8,o=e)));let a,s,l,u,{pagfactor:c="175"}=t,{lang:h=""}=t,{session:f=""}=t,{tourid:m=""}=t,{endpoint:p=""}=t,g=window.navigator.userAgent,b=0,y=null,w=null,C=!1,v=0,T=[],x=[];Object.keys(vi).forEach((e=>{gi(e,vi[e])}));const _=e=>{n(3,C=!0),n(4,l=e)},k=()=>{n(3,C=!1),n(4,l=-1)},S=e=>{const t=(e=>e.touches||e.originalEvent.touches)(e)[0];y=t.clientX,w=t.clientY},P=e=>{if(!y||!w)return;let t=e.touches[0].clientX,n=e.touches[0].clientY,r=y-t,i=w-n;Math.abs(r)>Math.abs(i)&&E(r>0?1:-1),y=null,w=null},E=e=>{e>0&&!i?(n(0,b-=a),n(0,b=b<v?v:b)):e<0&&!r&&(n(0,b+=a),n(0,b=b>0?0:b))},$=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};let L=!1;M((()=>(n(20,L=!0),a=parseInt("3",10)*parseInt(c,10),()=>{s.removeEventListener("touchstart",S),s.removeEventListener("touchmove",P)})));return e.$$set=e=>{"pagfactor"in e&&n(13,c=e.pagfactor),"lang"in e&&n(14,h=e.lang),"session"in e&&n(15,f=e.session),"tourid"in e&&n(16,m=e.tourid),"endpoint"in e&&n(17,p=e.endpoint)},e.$$.update=()=>{/*offset*/1&e.$$.dirty[0]&&n(7,r=0===b),/*offset, gamesElementWidth*/262145&e.$$.dirty[0]&&n(6,i=b<=v),/*slider*/2&e.$$.dirty[0]&&s&&(s.addEventListener("touchstart",S,{passive:!0}),s.addEventListener("touchmove",P,{passive:!0})),/*games*/524288&e.$$.dirty[0]&&x&&(n(2,T=x.items),x.total),/*sliderGames*/4&e.$$.dirty[0]&&T&&T.length&&setTimeout((()=>{n(18,v=-1*(u.scrollWidth-u.clientWidth)),n(13,c=new String(u.scrollWidth/T.length)),a=parseInt("3",10)*parseFloat(c,2).toFixed(2)}),1e3),/*isMounted, endpoint, session, tourid*/1277952&e.$$.dirty[0]&&L&&p&&f&&m&&((e,t)=>{let r=new URL(e+`/tournaments/${t}`),i=new Headers({"X-SessionId":f});r.searchParams.append("platform",ti(g)),r.searchParams.append("language",h),r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=30,offset=${b})`),r.searchParams.append("fields","games(id,name,thumbnail)");let o={method:"GET",headers:i};fetch(r.href,o).then((e=>e.json())).then((e=>{n(19,x=e.item.games),n(19,x=Object.assign({},x))}))})(p,m)},n(0,b=0),[b,s,T,C,l,u,i,r,o,_,k,E,$,c,h,f,m,p,v,x,L,()=>E(-1),e=>$(e),e=>_(e),()=>k(),function(e){A[e?"unshift":"push"]((()=>{u=e,n(5,u)}))},()=>E(1),function(e){A[e?"unshift":"push"]((()=>{s=e,n(1,s)}))}]}class Ao extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ro,Mo,a,{pagfactor:13,lang:14,session:15,tourid:16,endpoint:17},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["pagfactor","lang","session","tourid","endpoint"]}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),I()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),I()}get session(){return this.$$.ctx[15]}set session(e){this.$$set({session:e}),I()}get tourid(){return this.$$.ctx[16]}set tourid(e){this.$$set({tourid:e}),I()}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),I()}}
|
|
838
838
|
/* src/Cells/TermsAndConditionsCell.svelte generated by Svelte v3.59.2 */
|
|
839
|
-
function Bo(t){return{c(){this.c=e},m:e,p:e,i:e,o:e,d:e}}customElements.define("games-cell",Ao);class Fo extends V{constructor(e){super(),
|
|
839
|
+
function Bo(t){return{c(){this.c=e},m:e,p:e,i:e,o:e,d:e}}customElements.define("games-cell",Ao);class Fo extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},null,Bo,a,{},null),e&&e.target&&p(e.target,this,e.anchor)}}
|
|
840
840
|
/* src/Cells/DescriptionCell.svelte generated by Svelte v3.59.2 */
|
|
841
|
-
function Oo(e,t,
|
|
841
|
+
function Oo(e,t,n){const r=e.slice();return r[2]=t[n],r}
|
|
842
842
|
// (15:2) {:else }
|
|
843
|
-
function zo(t){let
|
|
843
|
+
function zo(t){let n;return{c(){n=C(" ")},m(e,t){p(e,n,t)},p:e,i:e,o:e,d(e){e&&g(n)}}}
|
|
844
844
|
// (9:0) {#if tournamentdescription && tournamentdescription.length > 0}
|
|
845
|
-
function No(e){let t,r
|
|
845
|
+
function No(e){let t,n,r=/*tournamentdescription*/e[0],i=[];for(let t=0;t<r.length;t+=1)i[t]=Ho(Oo(e,r,t));const o=e=>Z(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);p(e,t,r),n=!0},p(e,n){if(/*tournamentdescription*/1&n){let a;for(r=/*tournamentdescription*/e[0],a=0;a<r.length;a+=1){const o=Oo(e,r,a);i[a]?(i[a].p(o,n),J(i[a],1)):(i[a]=Ho(o),i[a].c(),J(i[a],1),i[a].m(t.parentNode,t))}for(W(),a=r.length;a<i.length;a+=1)o(a);q()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)J(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)Z(i[e]);n=!1},d(e){b(i,e),e&&g(t)}}}
|
|
846
846
|
// (10:2) {#each tournamentdescription as desc}
|
|
847
|
-
function Ho(e){let t,
|
|
848
|
-
return e[0]&&/*tournamentdescription*/e[0].length>0?0:1}return
|
|
847
|
+
function Ho(e){let t,n;return t=new pi({props:{title:/*desc*/e[2].title,text:/*desc*/e[2].description,exportparts:"DetailsCard, DetailsTitle, Title, CollapseButtonDetails, DetailsContent"}}),{c(){Q(t.$$.fragment)},m(e,r){ee(t,e,r),n=!0},p(e,n){const r={};/*tournamentdescription*/1&n&&(r.title=/*desc*/e[2].title),/*tournamentdescription*/1&n&&(r.text=/*desc*/e[2].description),t.$set(r)},i(e){n||(J(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){te(t,e)}}}function Uo(t){let n,r,i,o;const a=[No,zo],s=[];function l(e,t){/*tournamentdescription*/
|
|
848
|
+
return e[0]&&/*tournamentdescription*/e[0].length>0?0:1}return n=l(t),r=s[n]=a[n](t),{c(){r.c(),i=T(),this.c=e},m(e,t){s[n].m(e,t),p(e,i,t),o=!0},p(e,[t]){let o=n;n=l(e),n===o?s[n].p(e,t):(W(),Z(s[o],1,1,(()=>{s[o]=null})),q(),r=s[n],r?r.p(e,t):(r=s[n]=a[n](e),r.c()),J(r,1),r.m(i.parentNode,i))},i(e){o||(J(r),o=!0)},o(e){Z(r),o=!1},d(e){s[n].d(e),e&&g(i)}}}function Io(e,t,n){let{tournamentdescription:r}=t;return e.$$set=e=>{"tournamentdescription"in e&&n(0,r=e.tournamentdescription)},e.$$.update=()=>{/*tournamentdescription*/1&e.$$.dirty&&r&&n(0,r)},[r]}customElements.define("tm-cell",Fo);class Yo extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Io,Uo,a,{tournamentdescription:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["tournamentdescription"]}get tournamentdescription(){return this.$$.ctx[0]}set tournamentdescription(e){this.$$set({tournamentdescription:e}),I()}}customElements.define("description-cell",Yo);var jo="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",Go="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";
|
|
849
849
|
/* src/Cells/LeaderboardCell.svelte generated by Svelte v3.59.2 */
|
|
850
|
-
function Vo(e,t,
|
|
850
|
+
function Vo(e,t,n){const r=e.slice();return r[74]=t[n],r}function Wo(e,t,n){const r=e.slice();return r[71]=t[n],r}function qo(e,t,n){const r=e.slice();return r[74]=t[n],r[80]=n,r}function Jo(e,t,n){const r=e.slice();return r[71]=t[n],r}function Zo(e,t,n){const r=e.slice();return r[74]=t[n],r}
|
|
851
851
|
// (565:2) {:else}
|
|
852
|
-
function Ko(e){let t,r,
|
|
852
|
+
function Ko(e){let t,n,r,i,o,a,s,l,u,c=/*$_*/e[15]("tournamentsTable.nowinners")+"",d=/*columns*/e[4],h=[];for(let t=0;t<d.length;t+=1)h[t]=na(Vo(e,d,t));return{c(){t=y("div"),n=y("table"),r=y("thead"),i=y("tr");for(let e=0;e<h.length;e+=1)h[e].c();o=v(),a=y("tbody"),s=y("tr"),l=y("td"),u=C(c),_(i,"part","LeftTableTr"),_(r,"part","LeftTableThead"),_(r,"class","LeftTableThead"),_(l,"colspan",/*tooltipColSpan*/e[9]),_(l,"part","LeftTableTd"),_(s,"part","LeftTableTr"),_(a,"part","LeftTableTbody"),_(a,"class","LeftTableTbody"),_(n,"class","LeftTable"),_(n,"part","LeftTable"),_(t,"class","TournamentsTable"),_(t,"part","TournamentsTable"),S(t,"display",/*isLoading*/e[10]?"none":"")},m(e,c){p(e,t,c),m(t,n),m(n,r),m(r,i);for(let e=0;e<h.length;e+=1)h[e]&&h[e].m(i,null);m(n,o),m(n,a),m(a,s),m(s,l),m(l,u)},p(e,n){if(/*sort, sortBy, columns, $_, sortable*/172050&n[0]){let t;for(d=/*columns*/e[4],t=0;t<d.length;t+=1){const r=Vo(e,d,t);h[t]?h[t].p(r,n):(h[t]=na(r),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}/*$_*/32768&n[0]&&c!==(c=/*$_*/e[15]("tournamentsTable.nowinners")+"")&&k(u,c),/*tooltipColSpan*/512&n[0]&&_(l,"colspan",/*tooltipColSpan*/e[9]),/*isLoading*/1024&n[0]&&S(t,"display",/*isLoading*/e[10]?"none":"")},d(e){e&&g(t),b(h,e)}}}
|
|
853
853
|
// (559:2) {#if isMobile(userAgent) == true}
|
|
854
|
-
function Xo(e){let t,
|
|
854
|
+
function Xo(e){let t,n=/*showTable*/e[6]&&!/*isLoading*/e[10]&&ra(e);return{c(){n&&n.c(),t=T()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,r){/*showTable*/e[6]&&!/*isLoading*/e[10]?n?n.p(e,r):(n=ra(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&g(t)}}}
|
|
855
855
|
// (362:0) {#if !isLoading && (data.length > 0 || firstRowData)}
|
|
856
|
-
function Qo(e){let t;let
|
|
856
|
+
function Qo(e){let t;let n=function(e,t){return 1==ei(/*userAgent*/e[16])?oa:ia}(e),r=n(e);return{c(){r.c(),t=T()},m(e,n){r.m(e,n),p(e,t,n)},p(e,t){r.p(e,t)},d(e){r.d(e),e&&g(t)}}}
|
|
857
857
|
// (576:14) {:else}
|
|
858
|
-
function ea(e){let t,r
|
|
858
|
+
function ea(e){let t,n,r=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";return{c(){t=y("p"),n=C(r),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableP")},m(e,r){p(e,t,r),m(t,n)},p(e,i){/*$_, columns*/32784&i[0]&&r!==(r=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(n,r),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t)}}}
|
|
859
859
|
// (572:14) {#if sortable == 'true'}
|
|
860
|
-
function ta(e){let t,r,
|
|
861
|
-
return e[38](/*column*/e[74])}return{c(){t=y("button"),
|
|
860
|
+
function ta(e){let t,n,r,i,o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";function a(){/*click_handler_3*/
|
|
861
|
+
return e[38](/*column*/e[74])}return{c(){t=y("button"),n=C(o),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableButton")},m(e,o){p(e,t,o),m(t,n),r||(i=x(t,"click",a),r=!0)},p(r,i){e=r,/*$_, columns*/32784&i[0]&&o!==(o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(n,o),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t),r=!1,i()}}}
|
|
862
862
|
// (570:10) {#each columns as column}
|
|
863
|
-
function
|
|
864
|
-
return"true"==e[1]?ta:ea}let i=
|
|
863
|
+
function na(e){let t,n;function r(e,t){/*sortable*/
|
|
864
|
+
return"true"==e[1]?ta:ea}let i=r(e),o=i(e);return{c(){t=y("th"),o.c(),n=v(),_(t,"part","LeftTableTh")},m(e,r){p(e,t,r),o.m(t,null),m(t,n)},p(e,a){i===(i=r(e))&&o?o.p(e,a):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n)))},d(e){e&&g(t),o.d()}}}
|
|
865
865
|
// (560:4) {#if showTable && !isLoading}
|
|
866
|
-
function
|
|
866
|
+
function ra(e){let t,n,r,i,o=/*$_*/e[15]("tournamentsTable.nowinners")+"";return{c(){t=y("div"),n=y("div"),r=y("p"),i=C(o),_(n,"class","TableUser"),_(n,"part","TableUser"),_(t,"class","TableContent"),_(t,"part","TableContent")},m(e,o){p(e,t,o),m(t,n),m(n,r),m(r,i)},p(e,t){/*$_*/32768&t[0]&&o!==(o=/*$_*/e[15]("tournamentsTable.nowinners")+"")&&k(i,o)},d(e){e&&g(t)}}}
|
|
867
867
|
// (423:2) {:else}
|
|
868
|
-
function ia(e){let t,r,
|
|
869
|
-
return e[6]?_a:xa}let S=k(e),P=S(e);return{c(){t=y("div"),
|
|
868
|
+
function ia(e){let t,n,r,i,o,a,s,l,u,c,d,h,f=/*columns*/e[4],w=[];for(let t=0;t<f.length;t+=1)w[t]=la(qo(e,f,t));let C=/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]&&ua(e),T=/*showTable*/e[6]&&pa(e);function k(e,t){/*showTable*/
|
|
869
|
+
return e[6]?_a:xa}let S=k(e),P=S(e);return{c(){t=y("div"),n=y("table"),r=y("thead"),i=y("tr");for(let e=0;e<w.length;e+=1)w[e].c();o=v(),a=y("tbody"),C&&C.c(),s=v(),T&&T.c(),l=v(),u=y("div"),c=y("div"),P.c(),_(i,"part","LeftTableTr"),_(i,"class","LeftTableTr"),_(r,"part","LeftTableThead"),_(r,"class","LeftTableThead"),_(a,"part","LeftTableTbody"),_(a,"class","LeftTableTbody"),_(n,"class","LeftTable"),_(n,"part","LeftTable"),_(c,"class","CollapseButton"),_(c,"part","CollapseButton"),_(u,"class","RightButton"),_(u,"part","RightButton"),_(t,"class","TournamentsTable"),_(t,"part","TournamentsTable")},m(f,g){p(f,t,g),m(t,n),m(n,r),m(r,i);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(i,null);m(n,o),m(n,a),C&&C.m(a,null),m(a,s),T&&T.m(a,null),m(t,l),m(t,u),m(u,c),P.m(c,null),d||(h=x(c,"click",/*click_handler_2*/e[37]),d=!0)},p(e,t){if(/*sort, sortBy, columns, $_, sortable*/172050&t[0]){let n;for(f=/*columns*/e[4],n=0;n<f.length;n+=1){const r=qo(e,f,n);w[n]?w[n].p(r,t):(w[n]=la(r),w[n].c(),w[n].m(i,null))}for(;n<w.length;n+=1)w[n].d(1);w.length=f.length}/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]?C?C.p(e,t):(C=ua(e),C.c(),C.m(a,s)):C&&(C.d(1),C=null),/*showTable*/e[6]?T?T.p(e,t):(T=pa(e),T.c(),T.m(a,null)):T&&(T.d(1),T=null),S!==(S=k(e))&&(P.d(1),P=S(e),P&&(P.c(),P.m(c,null)))},d(e){e&&g(t),b(w,e),C&&C.d(),T&&T.d(),P.d(),d=!1,h()}}}
|
|
870
870
|
// (363:2) {#if isMobile(userAgent) == true}
|
|
871
|
-
function oa(e){let t,r,
|
|
871
|
+
function oa(e){let t,n,r,i,o=/*columns*/e[4],a=[];for(let t=0;t<o.length;t+=1)a[t]=Pa(Zo(e,o,t));let s=/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]&&Ea(e),l=/*showTable*/e[6]&&Ma(e);return{c(){t=y("div"),n=y("div");for(let e=0;e<a.length;e+=1)a[e].c();r=v(),s&&s.c(),i=v(),l&&l.c(),_(n,"class","TableUser TableHeadRow"),_(n,"part","TableUser TableHeadRow"),_(t,"class","TableContent"),_(t,"part","TableContent")},m(e,o){p(e,t,o),m(t,n);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null);m(t,r),s&&s.m(t,null),m(t,i),l&&l.m(t,null)},p(e,r){if(/*columns, sort, sortBy, $_, sortable*/172050&r[0]){let t;for(o=/*columns*/e[4],t=0;t<o.length;t+=1){const i=Zo(e,o,t);a[t]?a[t].p(i,r):(a[t]=Pa(i),a[t].c(),a[t].m(n,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=o.length}/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]?s?s.p(e,r):(s=Ea(e),s.c(),s.m(t,i)):s&&(s.d(1),s=null),/*showTable*/e[6]?l?l.p(e,r):(l=Ma(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&g(t),b(a,e),s&&s.d(),l&&l.d()}}}
|
|
872
872
|
// (434:14) {:else}
|
|
873
|
-
function aa(e){let t,r
|
|
873
|
+
function aa(e){let t,n,r=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";return{c(){t=y("p"),n=C(r),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableP"),_(t,"class","LeftTableP")},m(e,r){p(e,t,r),m(t,n)},p(e,i){/*$_, columns*/32784&i[0]&&r!==(r=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(n,r),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t)}}}
|
|
874
874
|
// (430:14) {#if sortable == 'true'}
|
|
875
|
-
function sa(e){let t,r,
|
|
876
|
-
return e[36](/*column*/e[74])}return{c(){t=y("button"),
|
|
875
|
+
function sa(e){let t,n,r,i,o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";function a(){/*click_handler_1*/
|
|
876
|
+
return e[36](/*column*/e[74])}return{c(){t=y("button"),n=C(o),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableButton")},m(e,o){p(e,t,o),m(t,n),r||(i=x(t,"click",a),r=!0)},p(r,i){e=r,/*$_, columns*/32784&i[0]&&o!==(o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(n,o),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t),r=!1,i()}}}
|
|
877
877
|
// (428:10) {#each columns as column, index}
|
|
878
|
-
function la(e){let t,
|
|
879
|
-
return"true"==e[1]?sa:aa}let i=
|
|
878
|
+
function la(e){let t,n;function r(e,t){/*sortable*/
|
|
879
|
+
return"true"==e[1]?sa:aa}let i=r(e),o=i(e);return{c(){t=y("th"),o.c(),n=v(),_(t,"part","LeftTableTh LeftTableTh_"+/*index*/e[80]),_(t,"class","LeftTableTh")},m(e,r){p(e,t,r),o.m(t,null),m(t,n)},p(e,a){i===(i=r(e))&&o?o.p(e,a):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n)))},d(e){e&&g(t),o.d()}}}
|
|
880
880
|
// (442:8) {#if firstrow == 'true' && firstRowData}
|
|
881
|
-
function ua(e){let t,r,
|
|
881
|
+
function ua(e){let t,n,r,i,o,a,s,l,c,d,h,f,b,w,x,S,P,E,$,L,D,M,R,A,B,F,O,z,N,H,U,I,Y=/*firstRowData*/e[5].Player+"",j=/*firstRowData*/e[5].Points+"";function G(e,t){/*firstRowData*/
|
|
882
882
|
return e[5].Rank<4&&/*showrankasimage*/"true"==e[2]?da:ca}let V=G(e),W=V(e);function q(e,t){/*firstRowData*/
|
|
883
|
-
return e[5].Prize?fa:ha}let J=q(e),Z=J(e),K=/*firstRowData*/e[5].Unqualified&&ma(e);return{c(){t=y("tr"),
|
|
883
|
+
return e[5].Prize?fa:ha}let J=q(e),Z=J(e),K=/*firstRowData*/e[5].Unqualified&&ma(e);return{c(){t=y("tr"),n=y("td"),r=y("div"),i=y("strong"),W.c(),o=v(),a=y("div"),s=y("img"),d=v(),h=y("img"),S=v(),P=y("td"),E=y("div"),$=C(Y),L=v(),D=y("td"),M=y("div"),R=C(j),A=v(),B=y("td"),F=y("div"),Z.c(),U=v(),K&&K.c(),I=T(),u(s.src,l=jo)||_(s,"src",l),_(s,"alt","UpArrow"),_(s,"part","Rank_Arror_UP"),_(s,"class",c="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden")),u(h.src,f=Go)||_(h,"src",f),_(h,"alt","DownArrow"),_(h,"part","Rank_Arror_Down"),_(h,"class",b="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden")),_(a,"class",w="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(a,"part",x="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(i,"class","RankCol"),_(i,"part","RankCol"),_(r,"part","TableCellContent"),_(r,"class","TableCellContent CellContent"),_(n,"part","LeftTableTd RankFirstRow"),_(n,"class","LeftTableTd"),_(E,"part","TableCellContent"),_(E,"class","TableCellContent CellContent"),_(P,"part","LeftTableTd"),_(P,"class","LeftTableTd"),_(M,"class","Flex CellContent"),_(M,"part","Flex"),_(D,"part","LeftTableTd"),_(D,"class","LeftTableTd"),_(F,"class","PrizeCell CellContent"),_(F,"part","PrizeCell"),_(B,"class",O="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(B,"part",z="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(t,"class",N="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":"")),_(t,"part",H="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,n),m(n,r),m(r,i),W.m(i,null),m(i,o),m(i,a),m(a,s),m(a,d),m(a,h),m(t,S),m(t,P),m(P,E),m(E,$),m(t,L),m(t,D),m(D,M),m(M,R),m(t,A),m(t,B),m(B,F),Z.m(F,null),p(e,U,l),K&&K.m(e,l),p(e,I,l)},p(e,n){V===(V=G(e))&&W?W.p(e,n):(W.d(1),W=V(e),W&&(W.c(),W.m(i,o))),/*isUserPositionChanged, isUserPositionUp*/384&n[0]&&c!==(c="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(s,"class",c),/*isUserPositionChanged, isUserPositionUp*/384&n[0]&&b!==(b="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(h,"class",b),/*isUserPositionChanged*/128&n[0]&&w!==(w="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(a,"class",w),/*isUserPositionChanged*/128&n[0]&&x!==(x="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(a,"part",x),/*firstRowData*/32&n[0]&&Y!==(Y=/*firstRowData*/e[5].Player+"")&&k($,Y),/*firstRowData*/32&n[0]&&j!==(j=/*firstRowData*/e[5].Points+"")&&k(R,j),J===(J=q(e))&&Z?Z.p(e,n):(Z.d(1),Z=J(e),Z&&(Z.c(),Z.m(F,null))),/*firstRowData*/32&n[0]&&O!==(O="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(B,"class",O),/*firstRowData*/32&n[0]&&z!==(z="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(B,"part",z),/*firstRowData*/32&n[0]&&N!==(N="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"class",N),/*firstRowData*/32&n[0]&&H!==(H="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"part",H),/*firstRowData*/e[5].Unqualified?K?K.p(e,n):(K=ma(e),K.c(),K.m(I.parentNode,I)):K&&(K.d(1),K=null)},d(e){e&&g(t),W.d(),Z.d(),e&&g(U),K&&K.d(e),e&&g(I)}}}
|
|
884
884
|
// (449:16) {:else}
|
|
885
|
-
function ca(e){let t,r,
|
|
885
|
+
function ca(e){let t,n,r,i=/*firstRowData*/e[5].Rank+"";return{c(){t=y("em"),n=C("#"),r=C(i),_(t,"part","LeftTableTdEm")},m(e,i){p(e,t,i),m(t,n),m(t,r)},p(e,t){/*firstRowData*/32&t[0]&&i!==(i=/*firstRowData*/e[5].Rank+"")&&k(r,i)},d(e){e&&g(t)}}}
|
|
886
886
|
// (447:16) {#if firstRowData.Rank < 4 && showrankasimage=='true'}
|
|
887
|
-
function da(e){let t,
|
|
887
|
+
function da(e){let t,n;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,n=/*rankImgs*/e[12][/*firstRowData*/e[5].Rank])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs, firstRowData*/4128&r[0]&&!u(t.src,n=/*rankImgs*/e[12][/*firstRowData*/e[5].Rank])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
888
888
|
// (469:16) {:else}
|
|
889
|
-
function ha(t){let
|
|
889
|
+
function ha(t){let n;return{c(){n=C("-")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
890
890
|
// (467:16) {#if firstRowData.Prize}
|
|
891
|
-
function fa(e){let t,
|
|
891
|
+
function fa(e){let t,n=/*firstRowData*/e[5].Prize+"";return{c(){t=C(n)},m(e,n){p(e,t,n)},p(e,r){/*firstRowData*/32&r[0]&&n!==(n=/*firstRowData*/e[5].Prize+"")&&k(t,n)},d(e){e&&g(t)}}}
|
|
892
892
|
// (475:10) {#if firstRowData.Unqualified}
|
|
893
|
-
function ma(e){let t,r,
|
|
893
|
+
function ma(e){let t,n,r,i,o,a,s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("tr"),n=y("td"),r=w("svg"),i=w("path"),o=v(),a=C(s),_(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(r,"class","ExclamationMark"),_(r,"part","ExclamationMark"),_(r,"width","10"),_(r,"height","10"),_(r,"viewBox","0 0 10 10"),_(r,"fill","none"),_(r,"xmlns","http://www.w3.org/2000/svg"),_(n,"colspan",/*tooltipColSpan*/e[9]),_(n,"part","LeftTableTd"),_(n,"class","LeftTableTd"),_(t,"class","TooltipsRow"),_(t,"part","TooltipsRow")},m(e,s){p(e,t,s),m(t,n),m(n,r),m(r,i),m(n,o),m(n,a)},p(e,t){/*$_*/32768&t[0]&&s!==(s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,s),/*tooltipColSpan*/512&t[0]&&_(n,"colspan",/*tooltipColSpan*/e[9])},d(e){e&&g(t)}}}
|
|
894
894
|
// (486:8) {#if showTable}
|
|
895
|
-
function pa(e){let t,
|
|
895
|
+
function pa(e){let t,n=/*display*/e[14],r=[];for(let t=0;t<n.length;t+=1)r[t]=Ta(Wo(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=T()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);p(e,t,n)},p(e,i){if(/*display, tooltipColSpan, $_, _fractiondigit, isUserPositionChanged, isUserPositionUp, rankImgs, showrankasimage*/56196&i[0]){let o;for(n=/*display*/e[14],o=0;o<n.length;o+=1){const a=Wo(e,n,o);r[o]?r[o].p(a,i):(r[o]=Ta(a),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){b(r,e),e&&g(t)}}}
|
|
896
896
|
// (496:22) {:else}
|
|
897
|
-
function ga(e){let t,r
|
|
897
|
+
function ga(e){let t,n,r=/*row*/e[71].Rank+"";return{c(){t=C("#"),n=C(r)},m(e,r){p(e,t,r),p(e,n,r)},p(e,t){/*display*/16384&t[0]&&r!==(r=/*row*/e[71].Rank+"")&&k(n,r)},d(e){e&&g(t),e&&g(n)}}}
|
|
898
898
|
// (494:22) {#if row.Rank < 4 && showrankasimage=='true'}
|
|
899
|
-
function ba(e){let t,
|
|
899
|
+
function ba(e){let t,n;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,n=/*rankImgs*/e[12][/*row*/e[71].Rank])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs, display*/20480&r[0]&&!u(t.src,n=/*rankImgs*/e[12][/*row*/e[71].Rank])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
900
900
|
// (500:24) {#if row.isCurrentUser}
|
|
901
|
-
function ya(e){let t,r,
|
|
901
|
+
function ya(e){let t,n,r,i,o,a,s;return{c(){t=y("img"),i=v(),o=y("img"),u(t.src,n=jo)||_(t,"src",n),_(t,"alt","UpArrow"),_(t,"part","Rank_Arror_UP"),_(t,"class",r="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden")),u(o.src,a=Go)||_(o,"src",a),_(o,"alt","DownArrow"),_(o,"part","Rank_Arror_Down"),_(o,"class",s="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden"))},m(e,n){p(e,t,n),p(e,i,n),p(e,o,n)},p(e,n){/*isUserPositionChanged, isUserPositionUp*/384&n[0]&&r!==(r="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(t,"class",r),/*isUserPositionChanged, isUserPositionUp*/384&n[0]&&s!==(s="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(o,"class",s)},d(e){e&&g(t),e&&g(i),e&&g(o)}}}
|
|
902
902
|
// (523:18) {:else}
|
|
903
|
-
function wa(t){let
|
|
903
|
+
function wa(t){let n;return{c(){n=C("-")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
904
904
|
// (521:18) {#if row.Prize}
|
|
905
|
-
function Ca(e){let t,
|
|
905
|
+
function Ca(e){let t,n=/*row*/e[71].Prize+"";return{c(){t=C(n)},m(e,n){p(e,t,n)},p(e,r){/*display*/16384&r[0]&&n!==(n=/*row*/e[71].Prize+"")&&k(t,n)},d(e){e&&g(t)}}}
|
|
906
906
|
// (529:12) {#if row.Unqualified && row.isCurrentUser}
|
|
907
|
-
function va(e){let t,r,
|
|
907
|
+
function va(e){let t,n,r,i,o,a,s,l,u=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("tr"),n=y("td"),r=w("svg"),i=w("path"),o=v(),a=C(u),s=v(),_(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(r,"class","ExclamationMark"),_(r,"part","ExclamationMark"),_(r,"width","10"),_(r,"height","10"),_(r,"viewBox","0 0 10 10"),_(r,"fill","none"),_(r,"xmlns","http://www.w3.org/2000/svg"),_(n,"colspan",/*tooltipColSpan*/e[9]),_(n,"part","LeftTableTd"),_(n,"class","LeftTableTd"),_(t,"class",l="TooltipsRow Rank"+/*row*/e[71].Rank+"Tr CurrentUserTr"),_(t,"part","TooltipsRow")},m(e,l){p(e,t,l),m(t,n),m(n,r),m(r,i),m(n,o),m(n,a),m(t,s)},p(e,r){/*$_*/32768&r[0]&&u!==(u=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,u),/*tooltipColSpan*/512&r[0]&&_(n,"colspan",/*tooltipColSpan*/e[9]),/*display*/16384&r[0]&&l!==(l="TooltipsRow Rank"+/*row*/e[71].Rank+"Tr CurrentUserTr")&&_(t,"class",l)},d(e){e&&g(t)}}}
|
|
908
908
|
// (487:10) {#each display as row}
|
|
909
|
-
function Ta(e){let t,r,
|
|
909
|
+
function Ta(e){let t,n,r,i,o,a,s,l,u,c,d,h,f,b,w,x,S,P,E,$,L,D,M,R,A,B,F,O,z=/*row*/e[71].Player+"",N=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"";function H(e,t){/*row*/
|
|
910
910
|
return e[71].Rank<4&&/*showrankasimage*/"true"==e[2]?ba:ga}let U=H(e),I=U(e),Y=/*row*/e[71].isCurrentUser&&ya(e);function j(e,t){/*row*/
|
|
911
|
-
return e[71].Prize?Ca:wa}let G=j(e),V=G(e),W=/*row*/e[71].Unqualified&&/*row*/e[71].isCurrentUser&&va(e);return{c(){t=y("tr"),
|
|
911
|
+
return e[71].Prize?Ca:wa}let G=j(e),V=G(e),W=/*row*/e[71].Unqualified&&/*row*/e[71].isCurrentUser&&va(e);return{c(){t=y("tr"),n=y("td"),r=y("div"),i=y("strong"),o=y("em"),I.c(),a=v(),s=y("div"),Y&&Y.c(),d=v(),h=y("td"),f=y("div"),b=C(z),w=v(),x=y("td"),S=y("div"),P=y("div"),E=C(N),$=v(),L=y("td"),D=y("div"),V.c(),F=v(),W&&W.c(),O=T(),_(s,"class",l="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(s,"part",u="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(o,"part","LeftTableTdEm"),_(i,"class","RankCol"),_(i,"part","RankCol"),_(r,"part","TableCellContent"),_(r,"class","Table CellContent"),_(n,"part",c="LeftTableTd Rank-"+/*row*/e[71].Rank),_(n,"class","LeftTableTd"),_(f,"part","PlayerCellContent"),_(f,"class","Player CellContent"),_(h,"part","LeftTableTd"),_(h,"class","LeftTableTd"),_(P,"class","Flex ScoreUp"),_(P,"part","Flex ScoreUp"),_(S,"part","ScoreCellContent"),_(S,"class","Score CellContent"),_(x,"part","LeftTableTd"),_(x,"class","LeftTableTd"),_(D,"part","PrizeCellContent"),_(D,"class","Prize CellContent "),_(L,"class",M="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified")),_(L,"part",R="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified")),_(t,"class",A="LeftTableTr Rank"+/*row*/e[71].Rank+"Tr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":"")),_(t,"part",B="LeftTableTr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,n),m(n,r),m(r,i),m(i,o),I.m(o,null),m(o,a),m(o,s),Y&&Y.m(s,null),m(t,d),m(t,h),m(h,f),m(f,b),m(t,w),m(t,x),m(x,S),m(S,P),m(P,E),m(t,$),m(t,L),m(L,D),V.m(D,null),p(e,F,l),W&&W.m(e,l),p(e,O,l)},p(e,r){U===(U=H(e))&&I?I.p(e,r):(I.d(1),I=U(e),I&&(I.c(),I.m(o,a))),/*row*/e[71].isCurrentUser?Y?Y.p(e,r):(Y=ya(e),Y.c(),Y.m(s,null)):Y&&(Y.d(1),Y=null),/*isUserPositionChanged*/128&r[0]&&l!==(l="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(s,"class",l),/*isUserPositionChanged*/128&r[0]&&u!==(u="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(s,"part",u),/*display*/16384&r[0]&&c!==(c="LeftTableTd Rank-"+/*row*/e[71].Rank)&&_(n,"part",c),/*display*/16384&r[0]&&z!==(z=/*row*/e[71].Player+"")&&k(b,z),/*display, _fractiondigit*/18432&r[0]&&N!==(N=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"")&&k(E,N),G===(G=j(e))&&V?V.p(e,r):(V.d(1),V=G(e),V&&(V.c(),V.m(D,null))),/*display*/16384&r[0]&&M!==(M="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(L,"class",M),/*display*/16384&r[0]&&R!==(R="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(L,"part",R),/*display*/16384&r[0]&&A!==(A="LeftTableTr Rank"+/*row*/e[71].Rank+"Tr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"class",A),/*display*/16384&r[0]&&B!==(B="LeftTableTr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"part",B),/*row*/e[71].Unqualified&&/*row*/e[71].isCurrentUser?W?W.p(e,r):(W=va(e),W.c(),W.m(O.parentNode,O)):W&&(W.d(1),W=null)},d(e){e&&g(t),I.d(),Y&&Y.d(),V.d(),e&&g(F),W&&W.d(e),e&&g(O)}}}
|
|
912
912
|
// (549:10) {:else}
|
|
913
|
-
function xa(e){let t,
|
|
913
|
+
function xa(e){let t,n;return{c(){t=w("svg"),n=w("path"),_(n,"d","M6 9l6 6 6-6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,r){p(e,t,r),m(t,n)},d(e){e&&g(t)}}}
|
|
914
914
|
// (545:10) {#if showTable}
|
|
915
|
-
function _a(e){let t,
|
|
915
|
+
function _a(e){let t,n;return{c(){t=w("svg"),n=w("path"),_(n,"d","M18 15l-6-6-6 6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,r){p(e,t,r),m(t,n)},d(e){e&&g(t)}}}
|
|
916
916
|
// (372:12) {:else}
|
|
917
|
-
function ka(e){let t,r
|
|
917
|
+
function ka(e){let t,n,r=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";return{c(){t=y("p"),n=C(r),_(t,"data-sort",/*sort*/e[13])},m(e,r){p(e,t,r),m(t,n)},p(e,i){/*$_, columns*/32784&i[0]&&r!==(r=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(n,r),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t)}}}
|
|
918
918
|
// (368:12) {#if sortable == 'true'}
|
|
919
|
-
function Sa(e){let t,r,
|
|
920
|
-
return e[35](/*column*/e[74])}return{c(){t=y("button"),
|
|
919
|
+
function Sa(e){let t,n,r,i,o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";function a(){/*click_handler*/
|
|
920
|
+
return e[35](/*column*/e[74])}return{c(){t=y("button"),n=C(o),_(t,"data-sort",/*sort*/e[13])},m(e,o){p(e,t,o),m(t,n),r||(i=x(t,"click",a),r=!0)},p(r,i){e=r,/*$_, columns*/32784&i[0]&&o!==(o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(n,o),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t),r=!1,i()}}}
|
|
921
921
|
// (366:8) {#each columns as column}
|
|
922
|
-
function Pa(e){let t,r,
|
|
923
|
-
return"true"==e[1]?Sa:ka}let a=o(e),s=a(e);return{c(){t=y("div"),s.c(),
|
|
922
|
+
function Pa(e){let t,n,r,i;function o(e,t){/*sortable*/
|
|
923
|
+
return"true"==e[1]?Sa:ka}let a=o(e),s=a(e);return{c(){t=y("div"),s.c(),n=v(),_(t,"class",r="TableCell Table"+/*column*/e[74]),_(t,"part",i="TableCell Table"+/*column*/e[74])},m(e,r){p(e,t,r),s.m(t,null),m(t,n)},p(e,l){a===(a=o(e))&&s?s.p(e,l):(s.d(1),s=a(e),s&&(s.c(),s.m(t,n))),/*columns*/16&l[0]&&r!==(r="TableCell Table"+/*column*/e[74])&&_(t,"class",r),/*columns*/16&l[0]&&i!==(i="TableCell Table"+/*column*/e[74])&&_(t,"part",i)},d(e){e&&g(t),s.d()}}}
|
|
924
924
|
// (378:6) {#if firstrow == 'true' && firstRowData}
|
|
925
|
-
function Ea(e){let t,r,
|
|
926
|
-
return e[5].Prize?La:$a}let L=$(e),D=L(e),M=/*firstRowData*/e[5].Unqualified&&Da(e);return{c(){t=y("div"),
|
|
925
|
+
function Ea(e){let t,n,r,i,o,a,s,l,u,c,d,h,f,b,w,x,S=/*firstRowData*/e[5].Rank+"",P=/*firstRowData*/e[5].Player+"",E=/*firstRowData*/e[5].Points+"";function $(e,t){/*firstRowData*/
|
|
926
|
+
return e[5].Prize?La:$a}let L=$(e),D=L(e),M=/*firstRowData*/e[5].Unqualified&&Da(e);return{c(){t=y("div"),n=y("div"),r=C(S),a=v(),s=y("div"),l=C(P),u=v(),c=y("div"),d=C(E),h=v(),D.c(),w=v(),M&&M.c(),x=T(),_(n,"class",i="TableCell TableRank "+(/*firstRowData*/e[5].Prize?"Qualified":"")),_(n,"part",o="TableCell TableRank RankFirstRow "+(/*firstRowData*/e[5].Prize?"Qualified":"")),_(s,"class","TableCell TablePlayer"),_(s,"part","TableCell TablePlayer"),_(c,"class","TableCell TablePoints"),_(c,"part","TableCell TablePoints"),_(t,"class",f="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":"")),_(t,"part",b="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))},m(e,i){p(e,t,i),m(t,n),m(n,r),m(t,a),m(t,s),m(s,l),m(t,u),m(t,c),m(c,d),m(t,h),D.m(t,null),p(e,w,i),M&&M.m(e,i),p(e,x,i)},p(e,a){/*firstRowData*/32&a[0]&&S!==(S=/*firstRowData*/e[5].Rank+"")&&k(r,S),/*firstRowData*/32&a[0]&&i!==(i="TableCell TableRank "+(/*firstRowData*/e[5].Prize?"Qualified":""))&&_(n,"class",i),/*firstRowData*/32&a[0]&&o!==(o="TableCell TableRank RankFirstRow "+(/*firstRowData*/e[5].Prize?"Qualified":""))&&_(n,"part",o),/*firstRowData*/32&a[0]&&P!==(P=/*firstRowData*/e[5].Player+"")&&k(l,P),/*firstRowData*/32&a[0]&&E!==(E=/*firstRowData*/e[5].Points+"")&&k(d,E),L===(L=$(e))&&D?D.p(e,a):(D.d(1),D=L(e),D&&(D.c(),D.m(t,null))),/*firstRowData*/32&a[0]&&f!==(f="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"class",f),/*firstRowData*/32&a[0]&&b!==(b="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"part",b),/*firstRowData*/e[5].Unqualified?M?M.p(e,a):(M=Da(e),M.c(),M.m(x.parentNode,x)):M&&(M.d(1),M=null)},d(e){e&&g(t),D.d(),e&&g(w),M&&M.d(e),e&&g(x)}}}
|
|
927
927
|
// (387:10) {:else}
|
|
928
|
-
function $a(t){let
|
|
928
|
+
function $a(t){let n;return{c(){n=y("div"),n.textContent="-",_(n,"class","TableCell TablePrize"),_(n,"part","TableCell TablePrize")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
929
929
|
// (385:10) {#if firstRowData.Prize}
|
|
930
|
-
function La(e){let t,r,
|
|
930
|
+
function La(e){let t,n,r,i,o=/*firstRowData*/e[5].Prize+"";return{c(){t=y("div"),n=C(o),_(t,"class",r="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(t,"part",i="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))},m(e,r){p(e,t,r),m(t,n)},p(e,a){/*firstRowData*/32&a[0]&&o!==(o=/*firstRowData*/e[5].Prize+"")&&k(n,o),/*firstRowData*/32&a[0]&&r!==(r="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(t,"class",r),/*firstRowData*/32&a[0]&&i!==(i="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(t,"part",i)},d(e){e&&g(t)}}}
|
|
931
931
|
// (391:8) {#if firstRowData.Unqualified}
|
|
932
|
-
function Da(e){let t,r,
|
|
932
|
+
function Da(e){let t,n,r,i,o,a,s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("div"),n=w("svg"),r=w("path"),i=v(),o=y("em"),a=C(s),_(r,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(n,"class","ExclamationMark"),_(n,"part","ExclamationMark"),_(n,"width","10"),_(n,"height","10"),_(n,"viewBox","0 0 10 10"),_(n,"fill","none"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(o,"part","TableUserTooltipsEm"),_(t,"class","TableUserTooltips"),_(t,"part","TableUserTooltips")},m(e,s){p(e,t,s),m(t,n),m(n,r),m(t,i),m(t,o),m(o,a)},p(e,t){/*$_*/32768&t[0]&&s!==(s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,s)},d(e){e&&g(t)}}}
|
|
933
933
|
// (400:6) {#if showTable}
|
|
934
|
-
function Ma(e){let t,
|
|
934
|
+
function Ma(e){let t,n=/*display*/e[14],r=[];for(let t=0;t<n.length;t+=1)r[t]=Fa(Jo(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=T()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);p(e,t,n)},p(e,i){if(/*display, $_, _fractiondigit*/51200&i[0]){let o;for(n=/*display*/e[14],o=0;o<n.length;o+=1){const a=Jo(e,n,o);r[o]?r[o].p(a,i):(r[o]=Fa(a),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){b(r,e),e&&g(t)}}}
|
|
935
935
|
// (408:12) {:else}
|
|
936
|
-
function Ra(t){let
|
|
936
|
+
function Ra(t){let n;return{c(){n=y("div"),n.textContent="-",_(n,"class","TableCell TablePrize"),_(n,"part","TableCell TablePrize")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
937
937
|
// (406:12) {#if row.Prize}
|
|
938
|
-
function Aa(e){let t,r,
|
|
938
|
+
function Aa(e){let t,n,r,i,o=/*row*/e[71].Prize+"";return{c(){t=y("div"),n=C(o),_(t,"class",r="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified")),_(t,"part",i="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified"))},m(e,r){p(e,t,r),m(t,n)},p(e,a){/*display*/16384&a[0]&&o!==(o=/*row*/e[71].Prize+"")&&k(n,o),/*display*/16384&a[0]&&r!==(r="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(t,"class",r),/*display*/16384&a[0]&&i!==(i="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(t,"part",i)},d(e){e&&g(t)}}}
|
|
939
939
|
// (412:10) {#if row.isCurrentUser && row.Unqualified}
|
|
940
|
-
function Ba(e){let t,r,
|
|
940
|
+
function Ba(e){let t,n,r,i,o,a,s,l,u,c=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("div"),n=w("svg"),r=w("path"),i=v(),o=y("em"),a=C(c),s=v(),_(r,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(n,"class","ExclamationMark"),_(n,"part","ExclamationMark"),_(n,"width","10"),_(n,"height","10"),_(n,"viewBox","0 0 10 10"),_(n,"fill","none"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(o,"part","TableUserTooltipsEm"),_(t,"class",l="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":"")),_(t,"part",u="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,n),m(n,r),m(t,i),m(t,o),m(o,a),m(t,s)},p(e,n){/*$_*/32768&n[0]&&c!==(c=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,c),/*display*/16384&n[0]&&l!==(l="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"class",l),/*display*/16384&n[0]&&u!==(u="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"part",u)},d(e){e&&g(t)}}}
|
|
941
941
|
// (401:8) {#each display as row}
|
|
942
|
-
function Fa(e){let t,r,
|
|
943
|
-
return e[71].Prize?Aa:Ra}let L=$(e),D=L(e),M=/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified&&Ba(e);return{c(){t=y("div"),
|
|
942
|
+
function Fa(e){let t,n,r,i,o,a,s,l,u,c,d,h,f,b,w,x,S=/*row*/e[71].Rank+"",P=/*row*/e[71].Player+"",E=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"";function $(e,t){/*row*/
|
|
943
|
+
return e[71].Prize?Aa:Ra}let L=$(e),D=L(e),M=/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified&&Ba(e);return{c(){t=y("div"),n=y("div"),r=C(S),a=v(),s=y("div"),l=C(P),u=v(),c=y("div"),d=C(E),h=v(),D.c(),w=v(),M&&M.c(),x=T(),_(n,"class",i="TableCell TableRank "+(/*row*/e[71].Prize?"Qualified":"")),_(n,"part",o="TableCell Rank-"+/*row*/e[71].Rank+" TableRank "+(/*row*/e[71].Prize?"Qualified":"")),_(s,"class","TableCell TablePlayer"),_(s,"part","TableCell TablePlayer"),_(c,"class","TableCell TablePoints"),_(c,"part","TableCell TablePoints"),_(t,"class",f="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":"")),_(t,"part",b="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":""))},m(e,i){p(e,t,i),m(t,n),m(n,r),m(t,a),m(t,s),m(s,l),m(t,u),m(t,c),m(c,d),m(t,h),D.m(t,null),p(e,w,i),M&&M.m(e,i),p(e,x,i)},p(e,a){/*display*/16384&a[0]&&S!==(S=/*row*/e[71].Rank+"")&&k(r,S),/*display*/16384&a[0]&&i!==(i="TableCell TableRank "+(/*row*/e[71].Prize?"Qualified":""))&&_(n,"class",i),/*display*/16384&a[0]&&o!==(o="TableCell Rank-"+/*row*/e[71].Rank+" TableRank "+(/*row*/e[71].Prize?"Qualified":""))&&_(n,"part",o),/*display*/16384&a[0]&&P!==(P=/*row*/e[71].Player+"")&&k(l,P),/*display, _fractiondigit*/18432&a[0]&&E!==(E=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"")&&k(d,E),L===(L=$(e))&&D?D.p(e,a):(D.d(1),D=L(e),D&&(D.c(),D.m(t,null))),/*display*/16384&a[0]&&f!==(f="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":""))&&_(t,"class",f),/*display*/16384&a[0]&&b!==(b="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":""))&&_(t,"part",b),/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?M?M.p(e,a):(M=Ba(e),M.c(),M.m(x.parentNode,x)):M&&(M.d(1),M=null)},d(e){e&&g(t),D.d(),e&&g(w),M&&M.d(e),e&&g(x)}}}function Oa(t){let n,r;function i(e,t){return!/*isLoading*/e[10]&&(/*data*/e[3].length>0||/*firstRowData*/e[5])?Qo:(null==n&&(n=!(1!=ei(/*userAgent*/e[16]))),n?Xo:Ko)}let o=i(t),a=o(t);return{c(){a.c(),r=T(),this.c=e},m(e,t){a.m(e,t),p(e,r,t)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r.parentNode,r)))},i:e,o:e,d(e){a.d(e),e&&g(r)}}}function za(e,t,n){let r,i,o;d(e,jn,(e=>n(15,o=e)));let a,s,l,u,c,h,{sortable:f=!1}=t,{firstrow:m=!0}=t,{lang:p="en"}=t,{scorefractiondigit:g="2"}=t,{session:b=""}=t,{userid:y=""}=t,{tourid:w=""}=t,{endpoint:C=""}=t,{tablelimit:v="30"}=t,{namemask:T=""}=t,{showunqualifiedplayer:x="true"}=t,{mobiletablelimit:_="15"}=t,{updatetableintime:k="true"}=t,{minscore:S=""}=t,{showrankasimage:P="true"}=t,{cellsetting:E={firstrow:!0}}=t,$=[],L=[],D=null,R=null,A={},B=!0,F=window.navigator.userAgent,O=!1,z=!1,N=!1,H={},U=!1,I="",Y=!0,j=2;Object.keys(xi).forEach((e=>{gi(e,xi[e])}));
|
|
944
944
|
// @TODO this must be configurable
|
|
945
|
-
const G=["Rank","Player","Points","Prize"],V=e=>({Rank:"false"==x?e.rankWithoutUnqualified:e.rank,Player:e.userID==I?"me":e.shortName,Points:e.score,Prize:e.prizeName,Unqualified:e.unqualified,BetCount:e.betCount,userID:e.userID}),W=()=>{b.length>0&&"false"!=b&&(I=y),a=null,
|
|
945
|
+
const G=["Rank","Player","Points","Prize"],V=e=>({Rank:"false"==x?e.rankWithoutUnqualified:e.rank,Player:e.userID==I?"me":e.shortName,Points:e.score,Prize:e.prizeName,Unqualified:e.unqualified,BetCount:e.betCount,userID:e.userID}),W=()=>{b.length>0&&"false"!=b&&(I=y),a=null,n(10,Y=!1)};
|
|
946
946
|
// data for current user
|
|
947
|
-
let q,J;const Z=e=>{a?(
|
|
947
|
+
let q,J;const Z=e=>{a?(n(7,O=a!=e),
|
|
948
948
|
// when (position changed) or (position not changed but still in 2.5s)
|
|
949
|
-
|
|
950
|
-
setTimeout((function(){J=(new Date).getTime(),(J-q)/1e3>4&&
|
|
949
|
+
n(8,z=a>e),O&&(q=(new Date).getTime(),//reset time1, make sure userrank change more than once during 5mins
|
|
950
|
+
setTimeout((function(){J=(new Date).getTime(),(J-q)/1e3>4&&n(7,O=!1),a=e}),5e3))):a=e},K=e=>{if(e.data&&"CasinoTableData"===e.data.type&&(n(3,L=e.data.tableData),n(14,r=L)),e.data&&"CasinoTableColumns"===e.data.type&&(n(4,$=e.data.tableColumns),n(9,s=$.length||4)),
|
|
951
951
|
// set view after current user row defined.
|
|
952
952
|
e.data&&"CasinoTableCurrentUserData"===e.data.type&&L&&(L.forEach((t=>{t.userID==e.data.tableData.userID&&(t.isCurrentUser=!0,
|
|
953
953
|
//clear first row data when update
|
|
954
|
-
a||(a=e.data.tableData.Rank),A?(Z(e.data.tableData.Rank),
|
|
954
|
+
a||(a=e.data.tableData.Rank),A?(Z(e.data.tableData.Rank),n(5,A=null)):Z(e.data.tableData.Rank))})),n(14,r=L)),m&&e.data&&"CasinoTableFirstRowData"===e.data.type){let t=e.data.tableData;if(!A)return n(5,A=e.data.tableData),void(a=A.Rank);A&&A.UserID==t.UserID&&(Z(t.Rank),n(5,A=e.data.tableData))}
|
|
955
955
|
// CasinoTableDataUpdate
|
|
956
956
|
if(e.data&&"CasinoTableDataUpdate"===e.data.type&&e.data.tableData){let t=e.data.tableData;
|
|
957
957
|
//check data type before foreach
|
|
958
|
-
if(!(L instanceof Array))return;L.forEach((function(e,
|
|
959
|
-
window.postMessage({type:`TournamentRankInfo_${w}`,rankInfo:{rank:o,overallRank:c,prize:U?H.Prize||"-":A.Prize||"-"}},window.location.href),h=o),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:H},window.location.href)}catch(e){console.error(e)}},
|
|
958
|
+
if(!(L instanceof Array))return;L.forEach((function(e,r){let i=((e,t)=>t.find((t=>t.Rank==e)))(e.Rank,t);i&&n(3,L[r]=i,L)}))}},X=e=>{const t=e===D,r="ASC"===R,i=t&&!r;n(32,D=i?null:e),n(33,R=i?null:t&&r?"DESC":"ASC")},Q=()=>{n(6,B=!B)},ee=e=>{U=!1;let t=[];return e&&e.length>0&&e.forEach((e=>{let n=V(e);e.userID==I&&(H=n,U=!0),t.push(n)})),t},te=e=>Object.assign(Object.assign({},V(e)),!0===e.unqualified?{Rank:e.rank}:{}),ne=e=>{if(console.log(e),e.data&&"message"==e.type)try{let t=e.data,r=JSON.parse(t);if(!r||!r.items)return;let i=ee(r.items);window.postMessage({type:"CasinoTableData",tableData:i},window.location.href),U=i.filter((e=>e.userID=I)).length>0,N=r.item&&!U,N&&(n(5,A=te(r.item)),A&&window.postMessage({type:"CasinoTableFirstRowData",tableData:A},window.location.href));let o=U?H.Rank:A.Rank;o==h&&c==r.items.length||(c=r.items.length,//new player joined and spined
|
|
959
|
+
window.postMessage({type:`TournamentRankInfo_${w}`,rankInfo:{rank:o,overallRank:c,prize:U?H.Prize||"-":A.Prize||"-"}},window.location.href),h=o),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:H},window.location.href)}catch(e){console.error(e)}},re=(e,t)=>{let r=new URL(e+`/tournaments/${t}/leaderboard`),i=new Headers;r.searchParams.append("language",p);let o=`includeUnqualifiedPlayer=${x}`;if(o=T?`${o},shortNameMask=${T}`:o,o=S?`${o},minscore=${S}`:o,r.searchParams.append("filter",o),b){let e=1==ei(F)?_:v;r.searchParams.append("pagination",`offset=0,limit=${e}`),i.append("X-SessionId",b)}r.searchParams.append("platform",ti(F));let a={method:"GET",headers:i};n(10,Y=!0),n(5,A=null),fetch(r,a).then((e=>e.json())).then((e=>{n(10,Y=!1),l=ee(e.items),e.item&&!U&&(N=!0,n(5,A=te(e.item))),n(6,B=!0),h=U?H.Rank:A?A.Rank:0,c=e.total,
|
|
960
960
|
// @TODO data is not iterable error fix
|
|
961
|
-
window.postMessage({type:"CasinoTableData",tableData:l},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:G},window.location.href),N&&window.postMessage({type:"CasinoTableFirstRowData",tableData:A},window.location.href),"true"===k&&((e,t)=>{let
|
|
961
|
+
window.postMessage({type:"CasinoTableData",tableData:l},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:G},window.location.href),N&&window.postMessage({type:"CasinoTableFirstRowData",tableData:A},window.location.href),"true"===k&&((e,t)=>{let n=`${C}/tournaments/${e}/leaderboard/updates?HeartBeat=false&${t.toString()}`;u&&(u.removeEventListener("message",ne),u.close()),u=new ni.EventSourcePolyfill(n,{headers:{accept:"text/event-stream","X-SessionId":b}}),void 0!==u&&u.addEventListener("message",ne)})(t,r.searchParams),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:H},window.location.href)}))};let ie=[],oe=!1;M((()=>(n(12,ie=[co,co,ho,fo]),n(0,m=!E||E.firstrow),W(),
|
|
962
962
|
//loadData();
|
|
963
963
|
//console.log('getContext',getContext('userid') ) ;
|
|
964
|
-
|
|
964
|
+
n(34,oe=!0),window.addEventListener("message",K),()=>{window.removeEventListener("message",K)})));return e.$$set=e=>{"sortable"in e&&n(1,f=e.sortable),"firstrow"in e&&n(0,m=e.firstrow),"lang"in e&&n(19,p=e.lang),"scorefractiondigit"in e&&n(20,g=e.scorefractiondigit),"session"in e&&n(21,b=e.session),"userid"in e&&n(22,y=e.userid),"tourid"in e&&n(23,w=e.tourid),"endpoint"in e&&n(24,C=e.endpoint),"tablelimit"in e&&n(25,v=e.tablelimit),"namemask"in e&&n(26,T=e.namemask),"showunqualifiedplayer"in e&&n(27,x=e.showunqualifiedplayer),"mobiletablelimit"in e&&n(28,_=e.mobiletablelimit),"updatetableintime"in e&&n(29,k=e.updatetableintime),"minscore"in e&&n(30,S=e.minscore),"showrankasimage"in e&&n(2,P=e.showrankasimage),"cellsetting"in e&&n(31,E=e.cellsetting)},e.$$.update=()=>{/*data*/8&e.$$.dirty[0]|/*sortColumn, sortDirection*/6&e.$$.dirty[1]&&n(14,r=D&&R?(()=>{let e=[];if(L&&(e=[...L]),!L.length)return L;const t=typeof L[0][D.toLowerCase()];return e.sort(((e,t)=>{const n=t.toLowerCase();return"string"===e?(e,t)=>e[n].localeCompare(t[n]):"number"===e||"object"===e?(e,t)=>e[n]-t[n]:void 0})(t,D)),"ASC"===R?e:e.reverse()})():[...L]),/*sortColumn, sortDirection*/6&e.$$.dirty[1]&&n(13,i=null===D?R:null),/*scorefractiondigit*/1048576&e.$$.dirty[0]&&n(11,j=Number(g)),/*session*/2097152&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&oe&&b&&W(),/*lang, userid, session, tourid, showunqualifiedplayer, tablelimit*/182976512&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&p&&y&&b&&w&&x&&v&&oe&&re(C,w)},[m,f,P,L,$,A,B,O,z,s,Y,j,ie,i,r,o,F,X,Q,p,g,b,y,w,C,v,T,x,_,k,S,E,D,R,oe,e=>X(e),e=>X(e),()=>Q(),e=>X(e)]}class Na extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},za,Oa,a,{sortable:1,firstrow:0,lang:19,scorefractiondigit:20,session:21,userid:22,tourid:23,endpoint:24,tablelimit:25,namemask:26,showunqualifiedplayer:27,mobiletablelimit:28,updatetableintime:29,minscore:30,showrankasimage:2,cellsetting:31},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["sortable","firstrow","lang","scorefractiondigit","session","userid","tourid","endpoint","tablelimit","namemask","showunqualifiedplayer","mobiletablelimit","updatetableintime","minscore","showrankasimage","cellsetting"]}get sortable(){return this.$$.ctx[1]}set sortable(e){this.$$set({sortable:e}),I()}get firstrow(){return this.$$.ctx[0]}set firstrow(e){this.$$set({firstrow:e}),I()}get lang(){return this.$$.ctx[19]}set lang(e){this.$$set({lang:e}),I()}get scorefractiondigit(){return this.$$.ctx[20]}set scorefractiondigit(e){this.$$set({scorefractiondigit:e}),I()}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),I()}get tourid(){return this.$$.ctx[23]}set tourid(e){this.$$set({tourid:e}),I()}get endpoint(){return this.$$.ctx[24]}set endpoint(e){this.$$set({endpoint:e}),I()}get tablelimit(){return this.$$.ctx[25]}set tablelimit(e){this.$$set({tablelimit:e}),I()}get namemask(){return this.$$.ctx[26]}set namemask(e){this.$$set({namemask:e}),I()}get showunqualifiedplayer(){return this.$$.ctx[27]}set showunqualifiedplayer(e){this.$$set({showunqualifiedplayer:e}),I()}get mobiletablelimit(){return this.$$.ctx[28]}set mobiletablelimit(e){this.$$set({mobiletablelimit:e}),I()}get updatetableintime(){return this.$$.ctx[29]}set updatetableintime(e){this.$$set({updatetableintime:e}),I()}get minscore(){return this.$$.ctx[30]}set minscore(e){this.$$set({minscore:e}),I()}get showrankasimage(){return this.$$.ctx[2]}set showrankasimage(e){this.$$set({showrankasimage:e}),I()}get cellsetting(){return this.$$.ctx[31]}set cellsetting(e){this.$$set({cellsetting:e}),I()}}
|
|
965
965
|
/* src/Cells/TitleCell.svelte generated by Svelte v3.59.2 */
|
|
966
|
-
function Ha(t){let r
|
|
966
|
+
function Ha(t){let n,r;return{c(){n=y("p"),r=C(/*title*/t[0]),this.c=e,_(n,"class","Title"),_(n,"part","Title")},m(e,t){p(e,n,t),m(n,r)},p(e,[t]){/*title*/1&t&&k(r,/*title*/e[0])},i:e,o:e,d(e){e&&g(n)}}}function Ua(e,t,n){let{lang:r="en"}=t,{title:i=""}=t;Object.keys(yi).forEach((e=>{gi(e,yi[e])})),cn({fallbackLocale:"en",initialLocale:"en"});return e.$$set=e=>{"lang"in e&&n(1,r=e.lang),"title"in e&&n(0,i=e.title)},e.$$.update=()=>{/*lang*/2&e.$$.dirty&&r&&bi(r)},[i,r]}customElements.define("leaderboard-cell",Na);class Ia extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ua,Ha,a,{lang:1,title:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["lang","title"]}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),I()}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),I()}}customElements.define("title-cell",Ia);var Ya=gr((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
967
967
|
// This is done to register the method called with moment()
|
|
968
968
|
// without creating circular dependencies.
|
|
969
969
|
function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){
|
|
970
970
|
// IE8 will treat undefined and null as object if it wasn't for
|
|
971
971
|
// input != null
|
|
972
|
-
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var r
|
|
972
|
+
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return qn(e,t,n,r,!0).utc()}function p(){
|
|
973
973
|
// We need to deep clone this object.
|
|
974
|
-
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function b(e){if(null==e._isValid){var t=g(e),n
|
|
974
|
+
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function b(e){if(null==e._isValid){var t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=m(NaN);return null!=e?f(g(t),e):g(t).userInvalidated=!0,t}
|
|
975
975
|
// Plugins that add properties should also add the key here (null value),
|
|
976
976
|
// so we can properly clone ourselves.
|
|
977
|
-
|
|
977
|
+
n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=r.momentProperties=[],C=!1;function v(e,t){var n,r,i,o=w.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)u(i=t[r=w[n]])||(e[r]=i);return e}
|
|
978
978
|
// Moment prototype object
|
|
979
979
|
function T(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
980
980
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
981
981
|
// objects.
|
|
982
|
-
!1===C&&(C=!0,
|
|
982
|
+
!1===C&&(C=!0,r.updateOffset(this),C=!1)}function x(e){return e instanceof T||null!=e&&null!=e._isAMomentObject}function _(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,a,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}_(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,P={};function E(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),P[e]||(_(t),P[e]=!0)}function $(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,n;for(n in e)s(e,n)&&($(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
983
983
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
984
984
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
985
985
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
986
|
-
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var r
|
|
986
|
+
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(
|
|
987
987
|
// make sure changes to properties don't modify parent config
|
|
988
|
-
n
|
|
988
|
+
r[n]=f({},r[n]));return r}function M(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return $(r)?r.call(t,n):r}function B(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},N={};
|
|
989
989
|
// token: 'M'
|
|
990
990
|
// padded: ['MM', 2]
|
|
991
991
|
// ordinal: 'Mo'
|
|
992
992
|
// callback: function () { this.month() + 1 }
|
|
993
|
-
function H(e,t,r
|
|
993
|
+
function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var t,n,r=e.match(F);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=$(r[i])?r[i].call(t,e):r[i];return o}}
|
|
994
994
|
// format date using native date object
|
|
995
|
-
function Y(e,t){return e.isValid()?(t=j(t,e.localeData()),z[t]=z[t]||I(t),z[t](e)):e.localeData().invalidDate()}function j(e,t){var
|
|
995
|
+
function Y(e,t){return e.isValid()?(t=j(t,e.localeData()),z[t]=z[t]||I(t),z[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,n-=1;return e}var G={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 V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var W="Invalid date";function q(){return this._invalidDate}var J="%d",Z=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var X={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 Q(e,t,n,r){var i=this._relativeTime[n];return $(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return $(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function de(e,t){return function(n){return null!=n?(fe(this,e,n),r.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
|
996
996
|
// MOMENTS
|
|
997
|
-
function me(e){return $(this[e=
|
|
997
|
+
function me(e){return $(this[e=re(e)])?this[e]():this}function pe(e,t){if("object"==typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if($(this[e=re(e)]))return this[e](t);return this}var ge,be=/\d/,// 0 - 9
|
|
998
998
|
ye=/\d\d/,// 00 - 99
|
|
999
999
|
we=/\d{3}/,// 000 - 999
|
|
1000
1000
|
Ce=/\d{4}/,// 0000 - 9999
|
|
@@ -1012,83 +1012,83 @@ De=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
|
1012
1012
|
Me=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
1013
1013
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
1014
1014
|
// includes scottish gaelic two word and hyphenated months
|
|
1015
|
-
Re=/[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;function Ae(e,t,
|
|
1015
|
+
Re=/[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;function Ae(e,t,n){ge[e]=$(t)?t:function(e,r){return e&&n?n:t}}function Be(e,t){return s(ge,e)?ge[e](t._strict,t._locale):new RegExp(Fe(e))}
|
|
1016
1016
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
1017
|
-
function Fe(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,
|
|
1017
|
+
function Fe(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var ze={};function Ne(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)ze[e[n]]=i}function He(e,t){Ne(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&s(ze,e)&&ze[e](t,n._a,n,e)}var Ie,Ye=0,je=1,Ge=2,Ve=3,We=4,qe=5,Je=6,Ze=7,Ke=8;function Xe(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Xe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
|
1018
1018
|
// FORMATTING
|
|
1019
1019
|
Ie=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
1020
1020
|
// I know
|
|
1021
1021
|
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
|
|
1022
1022
|
// ALIASES
|
|
1023
|
-
|
|
1023
|
+
ne("month","M"),
|
|
1024
1024
|
// PRIORITY
|
|
1025
1025
|
ae("month",8),
|
|
1026
1026
|
// PARSING
|
|
1027
|
-
Ae("M",Te),Ae("MM",Te,ye),Ae("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ae("MMMM",(function(e,t){return t.monthsRegex(e)})),Ne(["M","MM"],(function(e,t){t[je]=ce(e)-1})),Ne(["MMM","MMMM"],(function(e,t,r
|
|
1027
|
+
Ae("M",Te),Ae("MM",Te,ye),Ae("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ae("MMMM",(function(e,t){return t.monthsRegex(e)})),Ne(["M","MM"],(function(e,t){t[je]=ce(e)-1})),Ne(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
|
1028
1028
|
// if we didn't find a month name, mark the date as invalid.
|
|
1029
|
-
null!=i?t[je]=i:g(
|
|
1029
|
+
null!=i?t[je]=i:g(n).invalidMonth=e}));
|
|
1030
1030
|
// LOCALES
|
|
1031
|
-
var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
|
1031
|
+
var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Re,it=Re;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
1032
1032
|
// this is not used
|
|
1033
|
-
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],
|
|
1033
|
+
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ie.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ie.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ie.call(this._shortMonthsParse,a))||-1!==(i=Ie.call(this._longMonthsParse,a))?i:null:-1!==(i=Ie.call(this._longMonthsParse,a))||-1!==(i=Ie.call(this._shortMonthsParse,a))?i:null}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return st.call(this,e,t,n);
|
|
1034
1034
|
// TODO: add sorting
|
|
1035
1035
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
1036
1036
|
// see sorting in computeMonthsParse
|
|
1037
|
-
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),
|
|
1037
|
+
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){
|
|
1038
1038
|
// test the regex
|
|
1039
1039
|
if(
|
|
1040
1040
|
// make the regex if we don't have it already
|
|
1041
|
-
i=m([2e3,
|
|
1041
|
+
i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}
|
|
1042
1042
|
// MOMENTS
|
|
1043
|
-
function ut(e,t){var
|
|
1043
|
+
function ut(e,t){var n;if(!e.isValid())
|
|
1044
1044
|
// No op
|
|
1045
1045
|
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else
|
|
1046
1046
|
// TODO: Another silent failure?
|
|
1047
|
-
if(!c(t=e.localeData().monthsParse(t)))return e;return
|
|
1047
|
+
if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):he(this,"Month")}function dt(){return Qe(this.year(),this.month())}function ht(e){return this._monthsParseExact?(s(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(s(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)
|
|
1048
1048
|
// make the regex if we don't have it already
|
|
1049
|
-
|
|
1049
|
+
n=m([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));
|
|
1050
1050
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
1051
1051
|
// will match the longer piece.
|
|
1052
|
-
for(
|
|
1052
|
+
for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Oe(r[t]),i[t]=Oe(i[t]);for(t=0;t<24;t++)o[t]=Oe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}
|
|
1053
1053
|
// FORMATTING
|
|
1054
1054
|
// HELPERS
|
|
1055
1055
|
function pt(e){return le(e)?366:365}
|
|
1056
1056
|
// HOOKS
|
|
1057
1057
|
H("Y",0,0,(function(){var e=this.year();return e<=9999?B(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),
|
|
1058
1058
|
// ALIASES
|
|
1059
|
-
|
|
1059
|
+
ne("year","y"),
|
|
1060
1060
|
// PRIORITIES
|
|
1061
1061
|
ae("year",1),
|
|
1062
1062
|
// PARSING
|
|
1063
|
-
Ae("Y",$e),Ae("YY",Te,ye),Ae("YYYY",Se,Ce),Ae("YYYYY",Pe,ve),Ae("YYYYYY",Pe,ve),Ne(["YYYYY","YYYYYY"],Ye),Ne("YYYY",(function(e,t){t[Ye]=2===e.length?
|
|
1063
|
+
Ae("Y",$e),Ae("YY",Te,ye),Ae("YYYY",Se,Ce),Ae("YYYYY",Pe,ve),Ae("YYYYYY",Pe,ve),Ne(["YYYYY","YYYYYY"],Ye),Ne("YYYY",(function(e,t){t[Ye]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),Ne("YY",(function(e,t){t[Ye]=r.parseTwoDigitYear(e)})),Ne("Y",(function(e,t){t[Ye]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};
|
|
1064
1064
|
// MOMENTS
|
|
1065
|
-
var gt=de("FullYear",!0);function bt(){return le(this.year())}function yt(e,t,r,
|
|
1065
|
+
var gt=de("FullYear",!0);function bt(){return le(this.year())}function yt(e,t,n,r,i,o,a){
|
|
1066
1066
|
// can't just apply() to create a date:
|
|
1067
1067
|
// https://stackoverflow.com/q/181348
|
|
1068
1068
|
var s;
|
|
1069
1069
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
1070
1070
|
return e<100&&e>=0?(
|
|
1071
1071
|
// preserve leap years using a full 400 year cycle, then reset
|
|
1072
|
-
s=new Date(e+400,t,r,
|
|
1072
|
+
s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function wt(e){var t,n;
|
|
1073
1073
|
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
1074
1074
|
return e<100&&e>=0?(
|
|
1075
1075
|
// preserve leap years using a full 400 year cycle, then reset
|
|
1076
|
-
(
|
|
1076
|
+
(n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
|
|
1077
1077
|
// start-of-first-week - start-of-year
|
|
1078
|
-
function Ct(e,t,
|
|
1079
|
-
|
|
1078
|
+
function Ct(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
1079
|
+
r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}
|
|
1080
1080
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
1081
|
-
function vt(e,t,r,
|
|
1081
|
+
function vt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Ct(e,r,i);return s<=0?a=pt(o=e-1)+s:s>pt(e)?(o=e+1,a=s-pt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Tt(e,t,n){var r,i,o=Ct(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+xt(i=e.year()-1,t,n):a>xt(e.year(),t,n)?(r=a-xt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function xt(e,t,n){var r=Ct(e,t,n),i=Ct(e+1,t,n);return(pt(e)-r+i)/7}
|
|
1082
1082
|
// FORMATTING
|
|
1083
1083
|
// HELPERS
|
|
1084
1084
|
// LOCALES
|
|
1085
1085
|
function _t(e){return Tt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),
|
|
1086
1086
|
// ALIASES
|
|
1087
|
-
|
|
1087
|
+
ne("week","w"),ne("isoWeek","W"),
|
|
1088
1088
|
// PRIORITIES
|
|
1089
1089
|
ae("week",5),ae("isoWeek",5),
|
|
1090
1090
|
// PARSING
|
|
1091
|
-
Ae("w",Te),Ae("ww",Te,ye),Ae("W",Te),Ae("WW",Te,ye),He(["w","ww","W","WW"],(function(e,t,r
|
|
1091
|
+
Ae("w",Te),Ae("ww",Te,ye),Ae("W",Te),Ae("WW",Te,ye),He(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var kt={dow:0,// Sunday is the first day of the week.
|
|
1092
1092
|
doy:6};function St(){return this._week.dow}function Pt(){return this._week.doy}
|
|
1093
1093
|
// MOMENTS
|
|
1094
1094
|
function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function $t(e){var t=Tt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
@@ -1098,132 +1098,132 @@ function Lt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekda
|
|
|
1098
1098
|
// LOCALES
|
|
1099
1099
|
function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),
|
|
1100
1100
|
// ALIASES
|
|
1101
|
-
|
|
1101
|
+
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
1102
1102
|
// PRIORITY
|
|
1103
1103
|
ae("day",11),ae("weekday",11),ae("isoWeekday",11),
|
|
1104
1104
|
// PARSING
|
|
1105
|
-
Ae("d",Te),Ae("e",Te),Ae("E",Te),Ae("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ae("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ae("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,r
|
|
1105
|
+
Ae("d",Te),Ae("e",Te),Ae("E",Te),Ae("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ae("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ae("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
1106
1106
|
// if we didn't get a weekday name, mark the date as invalid
|
|
1107
|
-
null!=i?t.d=i:g(
|
|
1107
|
+
null!=i?t.d=i:g(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Re,Ot=Re,zt=Re;function Nt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Mt(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function It(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ie.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ie.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ie.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ie.call(this._weekdaysParse,a))||-1!==(i=Ie.call(this._shortWeekdaysParse,a))||-1!==(i=Ie.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ie.call(this._shortWeekdaysParse,a))||-1!==(i=Ie.call(this._weekdaysParse,a))||-1!==(i=Ie.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ie.call(this._minWeekdaysParse,a))||-1!==(i=Ie.call(this._weekdaysParse,a))||-1!==(i=Ie.call(this._shortWeekdaysParse,a))?i:null}function Yt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return It.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
1108
1108
|
// test the regex
|
|
1109
1109
|
if(
|
|
1110
1110
|
// make the regex if we don't have it already
|
|
1111
|
-
i=m([2e3,1]).day(
|
|
1111
|
+
i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}
|
|
1112
1112
|
// MOMENTS
|
|
1113
1113
|
function jt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Lt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;
|
|
1114
1114
|
// behaves the same as moment#day except
|
|
1115
1115
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
1116
1116
|
// as a setter, sunday should belong to the previous week.
|
|
1117
|
-
if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Wt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ot),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,r,
|
|
1117
|
+
if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Wt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ot),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)
|
|
1118
1118
|
// make the regex if we don't have it already
|
|
1119
|
-
|
|
1119
|
+
n=m([2e3,1]).day(t),r=Oe(this.weekdaysMin(n,"")),i=Oe(this.weekdaysShort(n,"")),o=Oe(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);
|
|
1120
1120
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
1121
1121
|
// will match the longer piece.
|
|
1122
1122
|
a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}
|
|
1123
1123
|
// FORMATTING
|
|
1124
1124
|
function Kt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Qt(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
|
|
1125
1125
|
// PARSING
|
|
1126
|
-
function
|
|
1126
|
+
function en(e,t){return t._meridiemParse}
|
|
1127
1127
|
// LOCALES
|
|
1128
|
-
function
|
|
1128
|
+
function tn(e){
|
|
1129
1129
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
1130
1130
|
// Using charAt should be more compatible.
|
|
1131
1131
|
return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Kt),H("k",["kk",2],0,Xt),H("hmm",0,0,(function(){return""+Kt.apply(this)+B(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Kt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),
|
|
1132
1132
|
// ALIASES
|
|
1133
|
-
|
|
1133
|
+
ne("hour","h"),
|
|
1134
1134
|
// PRIORITY
|
|
1135
|
-
ae("hour",13),Ae("a",
|
|
1135
|
+
ae("hour",13),Ae("a",en),Ae("A",en),Ae("H",Te),Ae("h",Te),Ae("k",Te),Ae("HH",Te,ye),Ae("hh",Te,ye),Ae("kk",Te,ye),Ae("hmm",xe),Ae("hmmss",_e),Ae("Hmm",xe),Ae("Hmmss",_e),Ne(["H","HH"],Ve),Ne(["k","kk"],(function(e,t,n){var r=ce(e);t[Ve]=24===r?0:r})),Ne(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ne(["h","hh"],(function(e,t,n){t[Ve]=ce(e),g(n).bigHour=!0})),Ne("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[We]=ce(e.substr(r)),g(n).bigHour=!0})),Ne("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[We]=ce(e.substr(r,2)),t[qe]=ce(e.substr(i)),g(n).bigHour=!0})),Ne("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[We]=ce(e.substr(r))})),Ne("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[We]=ce(e.substr(r,2)),t[qe]=ce(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,
|
|
1136
1136
|
// Setting the hour should keep the time, because the user explicitly
|
|
1137
1137
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
1138
1138
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
1139
1139
|
// this rule.
|
|
1140
|
-
|
|
1140
|
+
rn=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:R,longDateFormat:G,invalidDate:W,ordinal:J,dayOfMonthOrdinalParse:Z,relativeTime:X,months:et,monthsShort:tt,week:kt,weekdays:Rt,weekdaysMin:Bt,weekdaysShort:At,meridiemParse:nn},ln={},un={};
|
|
1141
1141
|
// internal storage for locale config files
|
|
1142
|
-
function
|
|
1142
|
+
function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
1143
1143
|
// pick the locale from the array
|
|
1144
1144
|
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
|
1145
1145
|
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
|
1146
|
-
function
|
|
1146
|
+
function hn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).length,n=(n=dn(e[o+1]))?n.split("-"):null;t>0;){if(r=mn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(i,n)>=t-1)
|
|
1147
1147
|
//the next array item is better than a shallower substring of this one
|
|
1148
|
-
break;t--}o++}return
|
|
1148
|
+
break;t--}o++}return an}function fn(e){
|
|
1149
1149
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
1150
|
-
return null!=e.match("^[^/\\\\]*$")}function
|
|
1150
|
+
return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
|
|
1151
1151
|
// TODO: Find a better way to register and load all the locales in Node
|
|
1152
|
-
if(void 0===
|
|
1152
|
+
if(void 0===ln[t]&&e&&e.exports&&fn(t))try{n=an._abbr,br(),pn(n)}catch(e){
|
|
1153
1153
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
1154
1154
|
// when trying to find en-US, en_US, en-us for every format call
|
|
1155
|
-
|
|
1156
|
-
}return
|
|
1155
|
+
ln[t]=null;// null means not found
|
|
1156
|
+
}return ln[t]}
|
|
1157
1157
|
// This function will load locale and then set the global locale. If
|
|
1158
1158
|
// no arguments are passed in, it will simply return the current global
|
|
1159
1159
|
// locale key.
|
|
1160
|
-
function
|
|
1160
|
+
function pn(e,t){var n;return e&&((n=u(t)?yn(e):gn(e,t))?
|
|
1161
1161
|
// moment.duration._locale = moment._locale = data;
|
|
1162
|
-
|
|
1162
|
+
an=n:"undefined"!=typeof console&&console.warn&&
|
|
1163
1163
|
//warn user if arguments are passed but the locale could not be set
|
|
1164
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),
|
|
1164
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])E("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=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new M(D(r,t)),un[e]&&un[e].forEach((function(e){gn(e.name,e.config)})),
|
|
1165
1165
|
// backwards compat for now: also set the locale
|
|
1166
1166
|
// make sure we set the locale AFTER all child locales have been
|
|
1167
1167
|
// created, so we won't end up with the child locale set.
|
|
1168
|
-
|
|
1168
|
+
pn(e),ln[e]}
|
|
1169
1169
|
// useful for testing
|
|
1170
|
-
return delete
|
|
1170
|
+
return delete ln[e],null}function bn(e,t){if(null!=t){var n,r,i=sn;null!=ln[e]&&null!=ln[e].parentLocale?
|
|
1171
1171
|
// Update existing child locale in-place to avoid memory-leaks
|
|
1172
|
-
|
|
1172
|
+
ln[e].set(D(ln[e]._config,t)):(
|
|
1173
1173
|
// MERGE
|
|
1174
|
-
null!=(
|
|
1174
|
+
null!=(r=mn(e))&&(i=r._config),t=D(i,t),null==r&&(
|
|
1175
1175
|
// updateLocale is called for creating a new locale
|
|
1176
1176
|
// Set abbr so it will have a name (getters return
|
|
1177
1177
|
// undefined otherwise).
|
|
1178
|
-
t.abbr=e),(
|
|
1178
|
+
t.abbr=e),(n=new M(t)).parentLocale=ln[e],ln[e]=n),
|
|
1179
1179
|
// backwards compat for now: also set the locale
|
|
1180
|
-
|
|
1180
|
+
pn(e)}else
|
|
1181
1181
|
// pass null for config to unupdate, useful for tests
|
|
1182
|
-
null!=
|
|
1182
|
+
null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===pn()&&pn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}
|
|
1183
1183
|
// returns locale data
|
|
1184
|
-
function
|
|
1184
|
+
function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
|
|
1185
1185
|
//short-circuit everything else
|
|
1186
|
-
t=
|
|
1186
|
+
t=mn(e))return t;e=[e]}return hn(e)}function wn(){return S(ln)}function Cn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[je]<0||n[je]>11?je:n[Ge]<1||n[Ge]>Qe(n[Ye],n[je])?Ge:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[We]||0!==n[qe]||0!==n[Je])?Ve:n[We]<0||n[We]>59?We:n[qe]<0||n[qe]>59?qe:n[Je]<0||n[Je]>999?Je:-1,g(e)._overflowDayOfYear&&(t<Ye||t>Ge)&&(t=Ge),g(e)._overflowWeeks&&-1===t&&(t=Ze),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}
|
|
1187
1187
|
// iso 8601 regex
|
|
1188
1188
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
|
1189
|
-
var
|
|
1189
|
+
var vn=/^\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)?)?$/,Tn=/^\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)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,_n=[["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]],
|
|
1190
1190
|
// iso time formats and regexes
|
|
1191
|
-
|
|
1191
|
+
kn=[["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/]],Sn=/^\/?Date\((-?\d+)/i,
|
|
1192
1192
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
1193
|
-
|
|
1193
|
+
Pn=/^(?:(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}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
1194
1194
|
// date from iso format
|
|
1195
|
-
function
|
|
1195
|
+
function $n(e){var t,n,r,i,o,a,s=e._i,l=vn.exec(s)||Tn.exec(s),u=_n.length,c=kn.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(_n[t][1].exec(l[1])){i=_n[t][0],r=!1!==_n[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(kn[t][1].exec(l[3])){
|
|
1196
1196
|
// match[2] should be 'T' or space
|
|
1197
|
-
o=(l[2]||" ")+
|
|
1197
|
+
o=(l[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Un(e)}else e._isValid=!1}function Ln(e,t,n,r,i,o){var a=[Dn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Dn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mn(e){
|
|
1198
1198
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
1199
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function
|
|
1199
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(e,t,n){return!e||At.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function An(e,t,n){if(e)return En[e];if(t)
|
|
1200
1200
|
// the only allowed military tz is Z
|
|
1201
|
-
return 0;var
|
|
1201
|
+
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
1202
1202
|
// date and time from ref 2822 format
|
|
1203
|
-
function
|
|
1203
|
+
function Bn(e){var t,n=Pn.exec(Mn(e._i));if(n){if(t=Ln(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],t,e))return;e._a=t,e._tzm=An(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
1204
1204
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
1205
|
-
function
|
|
1205
|
+
function Fn(e){var t=Sn.exec(e._i);null===t?($n(e),!1===e._isValid&&(delete e._isValid,Bn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
1206
1206
|
// Final attempt, use Input Fallback
|
|
1207
|
-
|
|
1207
|
+
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
1208
1208
|
// Pick the first defined of two or three arguments.
|
|
1209
|
-
function
|
|
1209
|
+
function On(e,t,n){return null!=e?e:null!=t?t:n}function zn(e){
|
|
1210
1210
|
// hooks is actually the exported moment object
|
|
1211
|
-
var t=new Date(
|
|
1211
|
+
var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
|
|
1212
1212
|
// convert an array to a date.
|
|
1213
1213
|
// the array should mirror the parameters below
|
|
1214
1214
|
// note: all values past the year are optional and will default to the lowest possible value.
|
|
1215
1215
|
// [year, month, day , hour, minute, second, millisecond]
|
|
1216
|
-
function
|
|
1216
|
+
function Nn(e){var t,n,r,i,o,a=[];if(!e._d){
|
|
1217
1217
|
// Default to current date.
|
|
1218
1218
|
// * if no year, month, day of month are given, default to today
|
|
1219
1219
|
// * if day of month is given, default month and year
|
|
1220
1220
|
// * if month is given, default only year
|
|
1221
1221
|
// * if year is given, don't default anything
|
|
1222
|
-
for(
|
|
1222
|
+
for(r=zn(e),
|
|
1223
1223
|
//compute day of the year from weeks and weekdays
|
|
1224
|
-
e._w&&null==e._a[Ge]&&null==e._a[je]&&
|
|
1224
|
+
e._w&&null==e._a[Ge]&&null==e._a[je]&&Hn(e),
|
|
1225
1225
|
//if the day of the year is set, figure out what it is
|
|
1226
|
-
null!=e._dayOfYear&&(o=
|
|
1226
|
+
null!=e._dayOfYear&&(o=On(e._a[Ye],r[Ye]),(e._dayOfYear>pt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[je]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];
|
|
1227
1227
|
// Zero out whatever was not defaulted, including time
|
|
1228
1228
|
for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
1229
1229
|
// Check for 24:00:00.000
|
|
@@ -1232,63 +1232,63 @@ for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
|
1232
1232
|
// with parseZone.
|
|
1233
1233
|
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),
|
|
1234
1234
|
// check for mismatching day of week
|
|
1235
|
-
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function
|
|
1235
|
+
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Hn(e){var t,n,r,i,o,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,
|
|
1236
1236
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
1237
1237
|
// how we interpret now (local, utc, fixed offset). So create
|
|
1238
1238
|
// a now version of current config (take local/utc/offset flags, and
|
|
1239
1239
|
// create now).
|
|
1240
|
-
|
|
1240
|
+
n=On(t.GG,e._a[Ye],Tt(Jn(),1,4).year),r=On(t.W,1),((i=On(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Tt(Jn(),o,a),n=On(t.gg,e._a[Ye],u.year),
|
|
1241
1241
|
// Default to current week.
|
|
1242
|
-
|
|
1242
|
+
r=On(t.w,u.week),null!=t.d?((
|
|
1243
1243
|
// weekday -- low day numbers are considered next week
|
|
1244
1244
|
i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
|
|
1245
1245
|
// local weekday -- counting starts from beginning of week
|
|
1246
1246
|
i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):
|
|
1247
1247
|
// default to beginning of week
|
|
1248
|
-
i=o),
|
|
1248
|
+
i=o),r<1||r>xt(n,o,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=vt(n,r,i,o,a),e._a[Ye]=s.year,e._dayOfYear=s.dayOfYear)}
|
|
1249
1249
|
// constant that refers to the ISO standard
|
|
1250
1250
|
// date from string and format string
|
|
1251
|
-
function
|
|
1251
|
+
function Un(e){
|
|
1252
1252
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
1253
|
-
if(e._f!==
|
|
1253
|
+
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;
|
|
1254
1254
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
1255
|
-
var t,
|
|
1255
|
+
var t,n,i,o,a,s,l,u=""+e._i,c=u.length,d=0;for(l=(i=j(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)o=i[t],(n=(u.match(Be(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),d+=n.length),
|
|
1256
1256
|
// don't parse if it's not a known token
|
|
1257
|
-
N[o]?(
|
|
1257
|
+
N[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ue(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);
|
|
1258
1258
|
// add remaining unparsed input length to the string
|
|
1259
1259
|
g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),
|
|
1260
1260
|
// clear _12h flag if hour is <= 12
|
|
1261
1261
|
e._a[Ve]<=12&&!0===g(e).bigHour&&e._a[Ve]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
|
1262
1262
|
// handle meridiem
|
|
1263
|
-
e._a[Ve]=
|
|
1263
|
+
e._a[Ve]=In(e._locale,e._a[Ve],e._meridiem),null!==(
|
|
1264
1264
|
// handle era
|
|
1265
|
-
s=g(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),
|
|
1265
|
+
s=g(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),Nn(e),Cn(e)}else Bn(e);else $n(e)}function In(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
|
1266
1266
|
// Fallback
|
|
1267
|
-
(
|
|
1267
|
+
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
|
1268
1268
|
// date from string and array of format strings
|
|
1269
|
-
function
|
|
1269
|
+
function Yn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Un(t),b(t)&&(a=!0),
|
|
1270
1270
|
// if there is any input that was not parsed add a penalty for that format
|
|
1271
1271
|
o+=g(t).charsLeftOver,
|
|
1272
1272
|
//or tokens
|
|
1273
|
-
o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<
|
|
1273
|
+
o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));f(e,n||t)}function jn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Nn(e)}}function Gn(e){var t=new T(Cn(Vn(e)));return t._nextDay&&(
|
|
1274
1274
|
// Adding is smart enough around DST
|
|
1275
|
-
t.add(1,"d"),t._nextDay=void 0),t}function
|
|
1275
|
+
t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new T(Cn(t)):(d(t)?e._d=t:o(n)?Yn(e):n?Un(e):Wn(e),b(e)||(e._d=null),e))}function Wn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Fn(e):o(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Nn(e)):a(t)?jn(e):c(t)?
|
|
1276
1276
|
// from milliseconds
|
|
1277
|
-
e._d=new Date(t):
|
|
1277
|
+
e._d=new Date(t):r.createFromInputFallback(e)}function qn(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),
|
|
1278
1278
|
// object construction must be done this way.
|
|
1279
1279
|
// https://github.com/moment/moment/issues/1423
|
|
1280
|
-
s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=
|
|
1280
|
+
s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,Gn(s)}function Jn(e,t,n,r){return qn(e,t,n,r,!1)}r.createFromInputFallback=k("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":""))})),r.ISO_8601=function(){},
|
|
1281
1281
|
// constant that refers to the RFC 2822 form
|
|
1282
|
-
|
|
1282
|
+
r.RFC_2822=function(){};var Zn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Kn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));
|
|
1283
1283
|
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
1284
1284
|
// other. This relies on the function fn to be transitive.
|
|
1285
1285
|
|
|
1286
1286
|
// moments should either be an array of moment objects or an array, whose
|
|
1287
1287
|
// first element is an array of moment objects.
|
|
1288
|
-
function
|
|
1288
|
+
function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
|
1289
1289
|
// TODO: Use [].sort instead?
|
|
1290
|
-
function
|
|
1291
|
-
parseFloat(e[
|
|
1290
|
+
function Qn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(s(e,t)&&(-1===Ie.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
|
1291
|
+
parseFloat(e[nr[n]])!==ce(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return $r(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),
|
|
1292
1292
|
// representation for dateAddRemove
|
|
1293
1293
|
this._milliseconds=+c+1e3*u+// 1000
|
|
1294
1294
|
6e4*l+// 1000 * 60
|
|
@@ -1299,22 +1299,22 @@ this._days=+a+7*o,
|
|
|
1299
1299
|
// It is impossible to translate months into days without knowing
|
|
1300
1300
|
// which months you are are talking about, so we have to store
|
|
1301
1301
|
// it separately.
|
|
1302
|
-
this._months=+i+3*
|
|
1302
|
+
this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function sr(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
|
1303
1303
|
// compare two arrays, return the number of differences
|
|
1304
|
-
function
|
|
1304
|
+
function ur(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&a++;return a+o}
|
|
1305
1305
|
// FORMATTING
|
|
1306
|
-
function
|
|
1306
|
+
function cr(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),
|
|
1307
1307
|
// PARSING
|
|
1308
|
-
Ae("Z",De),Ae("ZZ",De),Ne(["Z","ZZ"],(function(e,t,
|
|
1308
|
+
Ae("Z",De),Ae("ZZ",De),Ne(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(De,e)}));
|
|
1309
1309
|
// HELPERS
|
|
1310
1310
|
// timezone chunker
|
|
1311
1311
|
// '+10:00' > ['10', '00']
|
|
1312
1312
|
// '-1530' > ['-15', '30']
|
|
1313
|
-
var
|
|
1313
|
+
var dr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}
|
|
1314
1314
|
// Return a moment from input, that is local/utc/zone equivalent to model.
|
|
1315
|
-
function
|
|
1315
|
+
function fr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(x(e)||d(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),
|
|
1316
1316
|
// Use low-level api, because this fn is low-level api.
|
|
1317
|
-
|
|
1317
|
+
n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Jn(e).local()}function mr(e){
|
|
1318
1318
|
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
|
1319
1319
|
// https://github.com/moment/moment/pull/1871
|
|
1320
1320
|
return-Math.round(e._d.getTimezoneOffset())}
|
|
@@ -1331,103 +1331,103 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1331
1331
|
// a second time. In case it wants us to change the offset again
|
|
1332
1332
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1333
1333
|
// there is no such time in the given timezone.
|
|
1334
|
-
function
|
|
1334
|
+
function pr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hr(De,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Ar(this,$r(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function wr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function Cr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hr(Le,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vr(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Tr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Vn(t))._a?(e=t._isUTC?m(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _r(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1335
1335
|
// ASP.NET json date format regex
|
|
1336
|
-
|
|
1336
|
+
r.updateOffset=function(){};var Pr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1337
1337
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1338
1338
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1339
1339
|
// and further modified to allow for strings containing both week and day
|
|
1340
|
-
|
|
1340
|
+
Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $r(e,t){var n,r,i,o=e,
|
|
1341
1341
|
// matching against regexp is expensive, do it on demand
|
|
1342
|
-
a=null;return
|
|
1342
|
+
a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Pr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:ce(a[Ge])*n,h:ce(a[Ve])*n,m:ce(a[We])*n,s:ce(a[qe])*n,ms:ce(lr(1e3*a[Je]))*n}):(a=Er.exec(e))?(n="-"===a[1]?-1:1,o={y:Lr(a[2],n),M:Lr(a[3],n),w:Lr(a[4],n),d:Lr(a[5],n),h:Lr(a[6],n),m:Lr(a[7],n),s:Lr(a[8],n)}):null==o?
|
|
1343
1343
|
// checks for null or undefined
|
|
1344
|
-
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=
|
|
1344
|
+
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Mr(Jn(o.from),Jn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Lr(e,t){
|
|
1345
1345
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
1346
1346
|
// converts floats to ints.
|
|
1347
1347
|
// inp may be undefined, so careful calling replace on it.
|
|
1348
|
-
var
|
|
1348
|
+
var n=e&&parseFloat(e.replace(",","."));
|
|
1349
1349
|
// apply sign while we're at it
|
|
1350
|
-
return(isNaN(
|
|
1350
|
+
return(isNaN(n)?0:n)*t}function Dr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Mr(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Dr(e,t):((n=Dr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
|
|
1351
1351
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1352
|
-
function
|
|
1352
|
+
function Rr(e,t){return function(n,r){var i;
|
|
1353
1353
|
//invert the arguments, but complain about it
|
|
1354
|
-
return null===
|
|
1354
|
+
return null===r||isNaN(+r)||(E(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."),i=n,n=r,r=i),Ar(this,$r(n,r),e),this}}function Ar(e,t,n,i){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(i=null==i||i,s&&ut(e,he(e,"Month")+s*n),a&&fe(e,"Date",he(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}$r.fn=ar.prototype,$r.invalid=or;var Br=Rr(1,"add"),Fr=Rr(-1,"subtract");function Or(e){return"string"==typeof e||e instanceof String}
|
|
1355
1355
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1356
|
-
function
|
|
1356
|
+
function zr(e){return x(e)||d(e)||Or(e)||c(e)||Hr(e)||Nr(e)||null==e}function Nr(e){var t,n,r=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||s(e,n);return r&&i}function Hr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Or(e)})).length),t&&n}function Ur(e){var t,n,r=a(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||s(e,n);return r&&i}function Ir(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){
|
|
1357
1357
|
// Support for single parameter, formats only overload to the calendar function
|
|
1358
|
-
1===arguments.length&&(arguments[0]?
|
|
1358
|
+
1===arguments.length&&(arguments[0]?zr(arguments[0])?(e=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
1359
1359
|
// We want to compare the start of today, vs this.
|
|
1360
1360
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
1361
|
-
var
|
|
1362
|
-
case"minute":o=(this-
|
|
1363
|
-
case"hour":o=(this-
|
|
1364
|
-
case"day":o=(this-
|
|
1365
|
-
case"week":o=(this-
|
|
1366
|
-
default:o=this-
|
|
1361
|
+
var n=e||Jn(),i=fr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&($(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Jn(n)))}function jr(){return new T(this)}function Gr(e,t){var n=x(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=x(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wr(e,t,n,r){var i=x(e)?e:Jn(e),o=x(t)?t:Jn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function qr(e,t){var n,r=x(e)?e:Jn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Jr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;// 1000
|
|
1362
|
+
case"minute":o=(this-r)/6e4;break;// 1000 * 60
|
|
1363
|
+
case"hour":o=(this-r)/36e5;break;// 1000 * 60 * 60
|
|
1364
|
+
case"day":o=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
1365
|
+
case"week":o=(this-r-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
1366
|
+
default:o=this-r}return n?o:ue(o)}function Xr(e,t){if(e.date()<t.date())
|
|
1367
1367
|
// end-of-month calculations work correct when the start month has more
|
|
1368
1368
|
// days than the end month.
|
|
1369
|
-
return-
|
|
1369
|
+
return-Xr(t,e);
|
|
1370
1370
|
// difference in months
|
|
1371
|
-
var
|
|
1371
|
+
var n=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
1372
1372
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
1373
|
-
|
|
1373
|
+
r=e.clone().add(n,"months");
|
|
1374
1374
|
//check for negative zero, return zero if negative zero
|
|
1375
|
-
return-(
|
|
1375
|
+
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?
|
|
1376
1376
|
// native implementation is ~50x faster, use it when we can
|
|
1377
|
-
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(
|
|
1377
|
+
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Return a human readable representation of a moment that can
|
|
1380
1380
|
* also be evaluated to get a new moment which is the same
|
|
1381
1381
|
*
|
|
1382
1382
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
1383
|
-
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,
|
|
1383
|
+
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(x(e)&&e.isValid()||Jn(e).isValid())?$r({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Jn(),e)}function oi(e,t){return this.isValid()&&(x(e)&&e.isValid()||Jn(e).isValid())?$r({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to(Jn(),e)}
|
|
1384
1384
|
// If passed a locale key, it will set the locale for this
|
|
1385
1385
|
// instance. Otherwise, it will return the locale configuration
|
|
1386
1386
|
// variables for this instance.
|
|
1387
|
-
function si(e){var t;return void 0===e?this._locale._abbr:(null!=(t=
|
|
1387
|
+
function si(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var ci=1e3,di=60*ci,hi=60*di,fi=3506328*hi;
|
|
1388
1388
|
// actual modulo - handles negative numbers (for dates before 1970):
|
|
1389
|
-
function mi(e,t){return(e%t+t)%t}function pi(e,t,
|
|
1389
|
+
function mi(e,t){return(e%t+t)%t}function pi(e,t,n){
|
|
1390
1390
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
1391
|
-
return e<100&&e>=0?new Date(e+400,t,
|
|
1391
|
+
return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function gi(e,t,n){
|
|
1392
1392
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1393
|
-
return e<100&&e>=0?Date.UTC(e+400,t,
|
|
1393
|
+
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function bi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=mi(t,di);break;case"second":t=this._d.valueOf(),t-=mi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-mi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-mi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ci-mi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function wi(){return this._d.valueOf()-6e4*(this._offset||0)}function Ci(){return Math.floor(this.valueOf()/1e3)}function vi(){return new Date(this.valueOf())}function Ti(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){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 _i(){
|
|
1394
1394
|
// new Date(NaN).toJSON() === null
|
|
1395
|
-
return this.isValid()?this.toISOString():null}function ki(){return b(this)}function Si(){return f({},g(this))}function Pi(){return g(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function $i(e,t){var
|
|
1395
|
+
return this.isValid()?this.toISOString():null}function ki(){return b(this)}function Si(){return f({},g(this))}function Pi(){return g(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function $i(e,t){var n,i,o,a=this._eras||yn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(
|
|
1396
1396
|
// truncate time
|
|
1397
|
-
o=
|
|
1397
|
+
o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":
|
|
1398
1398
|
// truncate time
|
|
1399
|
-
o=
|
|
1399
|
+
o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Li(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]}function Di(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Mi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1400
1400
|
// truncate time
|
|
1401
|
-
|
|
1401
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ri(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1402
1402
|
// truncate time
|
|
1403
|
-
|
|
1403
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1404
1404
|
// truncate time
|
|
1405
|
-
|
|
1405
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Bi(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,
|
|
1406
1406
|
// truncate time
|
|
1407
|
-
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-
|
|
1407
|
+
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Fi(e){return s(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function Oi(e){return s(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function zi(e){return s(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ni(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Ii(e,t){return t._eraYearOrdinalRegex||Ee}function Yi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Oe(a[e].name)),n.push(Oe(a[e].abbr)),i.push(Oe(a[e].narrow)),o.push(Oe(a[e].name)),o.push(Oe(a[e].abbr)),o.push(Oe(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
|
|
1408
1408
|
// FORMATTING
|
|
1409
1409
|
function ji(e,t){H(0,[e,e.length],0,t)}
|
|
1410
1410
|
// MOMENTS
|
|
1411
|
-
function Gi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return xt(this.year(),1,4)}function qi(){return xt(this.isoWeekYear(),1,4)}function Ji(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,r,
|
|
1411
|
+
function Gi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return xt(this.year(),1,4)}function qi(){return xt(this.isoWeekYear(),1,4)}function Ji(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?Tt(this,r,i).year:(t>(o=xt(e,r,i))&&(t=o),Xi.call(this,e,t,n,r,i))}function Xi(e,t,n,r,i){var o=vt(e,t,n,r,i),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}
|
|
1412
1412
|
// FORMATTING
|
|
1413
1413
|
// MOMENTS
|
|
1414
1414
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
1415
1415
|
// FORMATTING
|
|
1416
|
-
H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ae("N",Ni),Ae("NN",Ni),Ae("NNN",Ni),Ae("NNNN",Hi),Ae("NNNNN",Ui),Ne(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r
|
|
1416
|
+
H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ae("N",Ni),Ae("NN",Ni),Ae("NNN",Ni),Ae("NNNN",Hi),Ae("NNNNN",Ui),Ne(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Ae("y",Ee),Ae("yy",Ee),Ae("yyy",Ee),Ae("yyyy",Ee),Ae("yo",Ii),Ne(["y","yy","yyy","yyyy"],Ye),Ne(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ye]=n._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
|
|
1417
1417
|
// ALIASES
|
|
1418
|
-
|
|
1418
|
+
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
1419
1419
|
// PRIORITY
|
|
1420
1420
|
ae("weekYear",1),ae("isoWeekYear",1),
|
|
1421
1421
|
// PARSING
|
|
1422
|
-
Ae("G",$e),Ae("g",$e),Ae("GG",Te,ye),Ae("gg",Te,ye),Ae("GGGG",Se,Ce),Ae("gggg",Se,Ce),Ae("GGGGG",Pe,ve),Ae("ggggg",Pe,ve),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r
|
|
1422
|
+
Ae("G",$e),Ae("g",$e),Ae("GG",Te,ye),Ae("gg",Te,ye),Ae("GGGG",Se,Ce),Ae("gggg",Se,Ce),Ae("GGGGG",Pe,ve),Ae("ggggg",Pe,ve),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),He(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),
|
|
1423
1423
|
// ALIASES
|
|
1424
|
-
|
|
1424
|
+
ne("quarter","Q"),
|
|
1425
1425
|
// PRIORITY
|
|
1426
1426
|
ae("quarter",7),
|
|
1427
1427
|
// PARSING
|
|
1428
1428
|
Ae("Q",be),Ne("Q",(function(e,t){t[je]=3*(ce(e)-1)})),H("D",["DD",2],"Do","date"),
|
|
1429
1429
|
// ALIASES
|
|
1430
|
-
|
|
1430
|
+
ne("date","D"),
|
|
1431
1431
|
// PRIORITY
|
|
1432
1432
|
ae("date",9),
|
|
1433
1433
|
// PARSING
|
|
@@ -1443,41 +1443,41 @@ function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startO
|
|
|
1443
1443
|
// FORMATTING
|
|
1444
1444
|
H("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
1445
1445
|
// ALIASES
|
|
1446
|
-
|
|
1446
|
+
ne("dayOfYear","DDD"),
|
|
1447
1447
|
// PRIORITY
|
|
1448
1448
|
ae("dayOfYear",4),
|
|
1449
1449
|
// PARSING
|
|
1450
|
-
Ae("DDD",ke),Ae("DDDD",we),Ne(["DDD","DDDD"],(function(e,t,
|
|
1450
|
+
Ae("DDD",ke),Ae("DDDD",we),Ne(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),H("m",["mm",2],0,"minute"),
|
|
1451
1451
|
// ALIASES
|
|
1452
|
-
|
|
1452
|
+
ne("minute","m"),
|
|
1453
1453
|
// PRIORITY
|
|
1454
1454
|
ae("minute",14),
|
|
1455
1455
|
// PARSING
|
|
1456
1456
|
Ae("m",Te),Ae("mm",Te,ye),Ne(["m","mm"],We);
|
|
1457
1457
|
// MOMENTS
|
|
1458
|
-
var
|
|
1458
|
+
var no=de("Minutes",!1);
|
|
1459
1459
|
// FORMATTING
|
|
1460
1460
|
H("s",["ss",2],0,"second"),
|
|
1461
1461
|
// ALIASES
|
|
1462
|
-
|
|
1462
|
+
ne("second","s"),
|
|
1463
1463
|
// PRIORITY
|
|
1464
1464
|
ae("second",15),
|
|
1465
1465
|
// PARSING
|
|
1466
1466
|
Ae("s",Te),Ae("ss",Te,ye),Ne(["s","ss"],qe);
|
|
1467
1467
|
// MOMENTS
|
|
1468
|
-
var
|
|
1468
|
+
var ro,io,oo=de("Seconds",!1);
|
|
1469
1469
|
// FORMATTING
|
|
1470
1470
|
for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
|
|
1471
1471
|
// ALIASES
|
|
1472
|
-
|
|
1472
|
+
ne("millisecond","ms"),
|
|
1473
1473
|
// PRIORITY
|
|
1474
1474
|
ae("millisecond",16),
|
|
1475
1475
|
// PARSING
|
|
1476
|
-
Ae("S",ke,be),Ae("SS",ke,ye),Ae("SSS",ke,we),
|
|
1476
|
+
Ae("S",ke,be),Ae("SS",ke,ye),Ae("SSS",ke,we),ro="SSSS";ro.length<=9;ro+="S")Ae(ro,Ee);function ao(e,t){t[Je]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ne(ro,ao);
|
|
1477
1477
|
// MOMENTS
|
|
1478
1478
|
function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=de("Milliseconds",!1),
|
|
1479
1479
|
// FORMATTING
|
|
1480
|
-
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var uo=T.prototype;function co(e){return
|
|
1480
|
+
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var uo=T.prototype;function co(e){return Jn(1e3*e)}function ho(){return Jn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Br,uo.calendar=Yr,uo.clone=jr,uo.diff=Kr,uo.endOf=yi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=ai,uo.get=me,uo.invalidAt=Pi,uo.isAfter=Gr,uo.isBefore=Vr,uo.isBetween=Wr,uo.isSame=qr,uo.isSameOrAfter=Jr,uo.isSameOrBefore=Zr,uo.isValid=ki,uo.lang=li,uo.locale=si,uo.localeData=ui,uo.max=Kn,uo.min=Zn,uo.parsingFlags=Si,uo.set=pe,uo.startOf=bi,uo.subtract=Fr,uo.toArray=Ti,uo.toObject=xi,uo.toDate=vi,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=_i,uo.toString=Qr,uo.unix=Ci,uo.valueOf=wi,uo.creationData=Ei,uo.eraName=Mi,uo.eraNarrow=Ri,uo.eraAbbr=Ai,uo.eraYear=Bi,uo.year=gt,uo.isLeapYear=bt,uo.weekYear=Gi,uo.isoWeekYear=Vi,uo.quarter=uo.quarters=Qi,uo.month=ct,uo.daysInMonth=dt,uo.week=uo.weeks=Et,uo.isoWeek=uo.isoWeeks=$t,uo.weeksInYear=Ji,uo.weeksInWeekYear=Zi,uo.isoWeeksInYear=Wi,uo.isoWeeksInISOWeekYear=qi,uo.date=eo,uo.day=uo.days=jt,uo.weekday=Gt,uo.isoWeekday=Vt,uo.dayOfYear=to,uo.hour=uo.hours=rn,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=pr,uo.utc=yr,uo.local=wr,uo.parseZone=Cr,uo.hasAlignedHourOffset=vr,uo.isDST=Tr,uo.isLocal=_r,uo.isUtcOffset=kr,uo.isUtc=Sr,uo.isUTC=Sr,uo.zoneAbbr=so,uo.zoneName=lo,uo.dates=k("dates accessor is deprecated. Use date instead.",eo),uo.months=k("months accessor is deprecated. Use month instead",ct),uo.years=k("years accessor is deprecated. Use year instead",gt),uo.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),uo.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var mo=M.prototype;function po(e,t,n,r){var i=yn(),o=m().set(r,t);return i[n](o,e)}function go(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}
|
|
1481
1481
|
// ()
|
|
1482
1482
|
// (5)
|
|
1483
1483
|
// (fmt, 5)
|
|
@@ -1486,34 +1486,34 @@ H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var uo=T.prototype;function co(e){r
|
|
|
1486
1486
|
// (true, 5)
|
|
1487
1487
|
// (true, fmt, 5)
|
|
1488
1488
|
// (true, fmt)
|
|
1489
|
-
function bo(e,t,r
|
|
1489
|
+
function bo(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=yn(),a=e?o._week.dow:0,s=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,r,"day");return s}function yo(e,t){return go(e,t,"months")}function wo(e,t){return go(e,t,"monthsShort")}function Co(e,t,n){return bo(e,t,n,"weekdays")}function vo(e,t,n){return bo(e,t,n,"weekdaysShort")}function To(e,t,n){return bo(e,t,n,"weekdaysMin")}mo.calendar=A,mo.longDateFormat=V,mo.invalidDate=q,mo.ordinal=K,mo.preparse=fo,mo.postformat=fo,mo.relativeTime=Q,mo.pastFuture=ee,mo.set=L,mo.eras=$i,mo.erasParse=Li,mo.erasConvertYear=Di,mo.erasAbbrRegex=Oi,mo.erasNameRegex=Fi,mo.erasNarrowRegex=zi,mo.months=ot,mo.monthsShort=at,mo.monthsParse=lt,mo.monthsRegex=ft,mo.monthsShortRegex=ht,mo.week=_t,mo.firstDayOfYear=Pt,mo.firstDayOfWeek=St,mo.weekdays=Nt,mo.weekdaysMin=Ut,mo.weekdaysShort=Ht,mo.weekdaysParse=Yt,mo.weekdaysRegex=Wt,mo.weekdaysShortRegex=qt,mo.weekdaysMinRegex=Jt,mo.isPM=tn,mo.meridiem=on,pn("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;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1490
1490
|
// Side effect imports
|
|
1491
|
-
|
|
1491
|
+
r.lang=k("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",yn);var xo=Math.abs;function _o(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function ko(e,t,n,r){var i=$r(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1492
1492
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1493
1493
|
function So(e,t){return ko(this,e,t,1)}
|
|
1494
1494
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1495
|
-
function Po(e,t){return ko(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function $o(){var e,t,r,
|
|
1495
|
+
function Po(e,t){return ko(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function $o(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;
|
|
1496
1496
|
// if we have a mix of positive and negative values, bubble down first
|
|
1497
1497
|
// check: https://github.com/moment/moment/issues/2166
|
|
1498
1498
|
return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Do(s)+a),a=0,s=0),
|
|
1499
1499
|
// The following code bubbles up values, see the tests for
|
|
1500
1500
|
// examples of what that means.
|
|
1501
|
-
l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,
|
|
1501
|
+
l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,a+=ue(n/24),s+=
|
|
1502
1502
|
// convert days to months
|
|
1503
1503
|
i=ue(Lo(a)),a-=Eo(Do(i)),
|
|
1504
1504
|
// 12 months -> 1 year
|
|
1505
|
-
|
|
1505
|
+
r=ue(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Lo(e){
|
|
1506
1506
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
1507
1507
|
// 400 years have 12 months === 4800
|
|
1508
1508
|
return 4800*e/146097}function Do(e){
|
|
1509
1509
|
// the reverse of daysToMonths
|
|
1510
|
-
return 146097*e/4800}function Mo(e){if(!this.isValid())return NaN;var t,r
|
|
1510
|
+
return 146097*e/4800}function Mo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Lo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
|
1511
1511
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
1512
|
-
t=this._days+Math.round(Do(this._months)),e){case"week":return t/7+
|
|
1512
|
+
t=this._days+Math.round(Do(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
|
|
1513
1513
|
// Math.floor prevents floating point math errors here
|
|
1514
|
-
case"millisecond":return Math.floor(864e5*t)+
|
|
1514
|
+
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1515
1515
|
// TODO: Use this.as('ms')?
|
|
1516
|
-
function Ro(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var Bo=Ao("ms"),Fo=Ao("s"),Oo=Ao("m"),zo=Ao("h"),No=Ao("d"),Ho=Ao("w"),Uo=Ao("M"),Io=Ao("Q"),Yo=Ao("y");function jo(){return $
|
|
1516
|
+
function Ro(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var Bo=Ao("ms"),Fo=Ao("s"),Oo=Ao("m"),zo=Ao("h"),No=Ao("d"),Ho=Ao("w"),Uo=Ao("M"),Io=Ao("Q"),Yo=Ao("y");function jo(){return $r(this)}function Go(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wo=Vo("milliseconds"),qo=Vo("seconds"),Jo=Vo("minutes"),Zo=Vo("hours"),Ko=Vo("days"),Xo=Vo("months"),Qo=Vo("years");function ea(){return ue(this.days()/7)}var ta=Math.round,na={ss:44,// a few seconds to seconds
|
|
1517
1517
|
s:45,// seconds to minute
|
|
1518
1518
|
m:45,// minutes to hour
|
|
1519
1519
|
h:22,// hours to day
|
|
@@ -1521,11 +1521,11 @@ d:26,// days to month/week
|
|
|
1521
1521
|
w:null,// weeks to month
|
|
1522
1522
|
M:11};
|
|
1523
1523
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
1524
|
-
function
|
|
1524
|
+
function ra(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ia(e,t,n,r){var i=$r(e).abs(),o=ta(i.as("s")),a=ta(i.as("m")),s=ta(i.as("h")),l=ta(i.as("d")),u=ta(i.as("M")),c=ta(i.as("w")),d=ta(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ra.apply(null,h)}
|
|
1525
1525
|
// This function allows you to set the rounding function for relative time strings
|
|
1526
1526
|
function oa(e){return void 0===e?ta:"function"==typeof e&&(ta=e,!0)}
|
|
1527
1527
|
// This function allows you to set a threshold for relative time strings
|
|
1528
|
-
function aa(e,t){return void 0!==
|
|
1528
|
+
function aa(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},na,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ia(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function ca(){
|
|
1529
1529
|
// for ISO strings we do not use the normal bubbling rules:
|
|
1530
1530
|
// * milliseconds bubble up until they become hours
|
|
1531
1531
|
// * days do not bubble at all
|
|
@@ -1533,21 +1533,21 @@ function aa(e,t){return void 0!==ra[e]&&(void 0===t?ra[e]:(ra[e]=t,"s"===e&&(ra.
|
|
|
1533
1533
|
// This is because there is no context-free conversion between hours and days
|
|
1534
1534
|
// (think of clock changes)
|
|
1535
1535
|
// and also not between days and months (28-31 days per month)
|
|
1536
|
-
if(!this.isValid())return this.localeData().invalidDate();var e,t,r,
|
|
1536
|
+
if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=la(this._milliseconds)/1e3,u=la(this._days),c=la(this._months),d=this.asSeconds();return d?(
|
|
1537
1537
|
// 3600 seconds -> 60 minutes -> 1 hour
|
|
1538
1538
|
e=ue(l/60),t=ue(e/60),l%=60,e%=60,
|
|
1539
1539
|
// 12 months -> 1 year
|
|
1540
|
-
|
|
1540
|
+
n=ue(c/12),c%=12,
|
|
1541
1541
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1542
|
-
|
|
1542
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",s=ua(this._milliseconds)!==ua(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var da=ar.prototype;return da.isValid=ir,da.abs=_o,da.add=So,da.subtract=Po,da.as=Mo,da.asMilliseconds=Bo,da.asSeconds=Fo,da.asMinutes=Oo,da.asHours=zo,da.asDays=No,da.asWeeks=Ho,da.asMonths=Uo,da.asQuarters=Io,da.asYears=Yo,da.valueOf=Ro,da._bubble=$o,da.clone=jo,da.get=Go,da.milliseconds=Wo,da.seconds=qo,da.minutes=Jo,da.hours=Zo,da.days=Ko,da.weeks=ea,da.months=Xo,da.years=Qo,da.humanize=sa,da.toISOString=ca,da.toString=ca,da.toJSON=ca,da.locale=si,da.localeData=ui,da.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),da.lang=li,
|
|
1543
1543
|
// FORMATTING
|
|
1544
1544
|
H("X",0,0,"unix"),H("x",0,0,"valueOf"),
|
|
1545
1545
|
// PARSING
|
|
1546
|
-
Ae("x",$e),Ae("X",Me),Ne("X",(function(e,t,
|
|
1546
|
+
Ae("x",$e),Ae("X",Me),Ne("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ne("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
|
1547
1547
|
//! moment.js
|
|
1548
|
-
|
|
1548
|
+
r.version="2.29.4",i(Jn),r.fn=uo,r.min=Qn,r.max=er,r.now=tr,r.utc=m,r.unix=co,r.months=yo,r.isDate=d,r.locale=pn,r.invalid=y,r.duration=$r,r.isMoment=x,r.weekdays=Co,r.parseZone=ho,r.localeData=yn,r.isDuration=sr,r.monthsShort=wo,r.weekdaysMin=To,r.defineLocale=gn,r.updateLocale=bn,r.locales=wn,r.weekdaysShort=vo,r.normalizeUnits=re,r.relativeTimeRounding=oa,r.relativeTimeThreshold=aa,r.calendarFormat=Ir,r.prototype=uo,
|
|
1549
1549
|
// currently HTML5 input type only supports 24-hour formats
|
|
1550
|
-
|
|
1550
|
+
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
1551
1551
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
1552
1552
|
DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",// <input type="datetime-local" step="0.001" />
|
|
1553
1553
|
DATE:"YYYY-MM-DD",// <input type="date" />
|
|
@@ -1555,63 +1555,65 @@ TIME:"HH:mm",// <input type="time" />
|
|
|
1555
1555
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
|
1556
1556
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
1557
1557
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
1558
|
-
MONTH:"YYYY-MM"},
|
|
1558
|
+
MONTH:"YYYY-MM"},r}()})),ja="data:image/svg+xml,%3csvg width='9' height='11' viewBox='0 0 9 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z' fill='%231E1616'/%3e%3c/svg%3e";
|
|
1559
1559
|
/* src/Cells/StartDateCell.svelte generated by Svelte v3.59.2 */
|
|
1560
|
-
function Ga(e){let t,r,
|
|
1560
|
+
function Ga(e){let t,n,r,i,a,s=/*cellsetting*/e[1]&&/*cellsetting*/e[1].showCalendarIcon&&Va();return{c(){t=y("div"),s&&s.c(),n=C(/*shownDate*/e[2]),_(t,"class","Date TagContent"),_(t,"part","Date TagContent")},m(o,l){p(o,t,l),s&&s.m(t,null),m(t,n),i||(a=f(r=/*formatDate*/e[3].call(null,t,/*startdate*/e[0])),i=!0)},p(e,i){/*cellsetting*/e[1]&&/*cellsetting*/e[1].showCalendarIcon?s?s.p(e,i):(s=Va(),s.c(),s.m(t,n)):s&&(s.d(1),s=null),/*shownDate*/4&i&&k(n,/*shownDate*/e[2]),r&&o(r.update)&&/*startdate*/1&i&&r.update.call(null,/*startdate*/e[0])},d(e){e&&g(t),s&&s.d(),i=!1,a()}}}
|
|
1561
1561
|
// (66:4) {#if cellsetting && cellsetting.showCalendarIcon}
|
|
1562
|
-
function Va(t){let r,
|
|
1562
|
+
function Va(t){let n,r,i;return{c(){n=y("img"),i=v(),_(n,"class","CalendarIcon"),_(n,"alt","Calendar"),_(n,"part","CalendarIcon"),u(n.src,r=ja)||_(n,"src",r)},m(e,t){p(e,n,t),p(e,i,t)},p:e,d(e){e&&g(n),e&&g(i)}}}function Wa(t){let n,r=/*startdate*/t[0]&&Ga(t);return{c(){r&&r.c(),n=T(),this.c=e},m(e,t){r&&r.m(e,t),p(e,n,t)},p(e,[t]){/*startdate*/e[0]?r?r.p(e,t):(r=Ga(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:e,o:e,d(e){r&&r.d(e),e&&g(n)}}}function qa(e,t,n){let r;d(e,jn,(e=>n(7,r=e)));let{startdate:i=""}=t,{status:o=""}=t,{lang:a=""}=t,{cellsetting:s}=t,l={shortstart:!1,shortstartformat:"DD MMM YYYY",showCalendarIcon:!1},u="";cn({fallbackLocale:"en",initialLocale:"en"}),Object.keys(ki).forEach((e=>{gi(e,ki[e])}));const c=()=>{const e={month:"long"};let t=new Date(i);if(s&&s.shortstart){let e=Ya(t).format(s.shortstartformat||l.shortstartformat);n(2,u=r("Running"===o||"Closing"==o||"Closed"==o?"tournamentsThumbnail.startedAtWithTime":"tournamentsThumbnail.startingAtWithTime",{values:{startTime:e}}))}else{let i=new Intl.DateTimeFormat("en",e).format(t),a=t.getDate(),s=t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});n(2,u=`${a} `+r(`tournamentsThumbnail.${i}`)+", "+r("Running"===o?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+` ${s}`)}};return e.$$set=e=>{"startdate"in e&&n(0,i=e.startdate),"status"in e&&n(4,o=e.status),"lang"in e&&n(5,a=e.lang),"cellsetting"in e&&n(1,s=e.cellsetting)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&a&&(bi(a),i&&c()),/*startdate*/1&e.$$.dirty&&i&&c(),/*cellsetting*/2&e.$$.dirty&&s&&(l={shortstart:s.shortstart||!1,shortstartformat:s.shortstartformat||"DD MMM YYYY",showCalendarIcon:s.showCalendarIcon||!1})},[i,s,u,c,o,a]}class Ja extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},qa,Wa,a,{startdate:0,status:4,lang:5,cellsetting:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["startdate","status","lang","cellsetting"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),I()}get status(){return this.$$.ctx[4]}set status(e){this.$$set({status:e}),I()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),I()}get cellsetting(){return this.$$.ctx[1]}set cellsetting(e){this.$$set({cellsetting:e}),I()}}
|
|
1563
1563
|
/* src/Cells/BackButtonCell.svelte generated by Svelte v3.59.2 */
|
|
1564
|
-
function Za(t){let r,
|
|
1564
|
+
function Za(t){let n,r,i,o,a,s,l,u,c,d=/*$_*/t[0]("tournamentsPage.back")+"";return{c(){n=y("div"),r=y("div"),i=w("svg"),o=w("path"),a=v(),s=y("p"),l=C(d),this.c=e,_(o,"stroke-linecap","round"),_(o,"stroke-linejoin","round"),_(o,"stroke-width","2"),_(o,"d","M15 19l-7-7 7-7"),_(i,"fill","none"),_(i,"stroke","currentColor"),_(i,"width","24"),_(i,"height","24"),_(i,"viewBox","0 0 24 24"),_(i,"xmlns","http://www.w3.org/2000/svg"),_(s,"class","ButtonText"),_(r,"class","BackButton"),_(r,"part","BackButton"),_(n,"class","TopButtons"),_(n,"part","TopButtons")},m(e,d){p(e,n,d),m(n,r),m(r,i),m(i,o),m(r,a),m(r,s),m(s,l),u||(c=x(r,"click",/*click_handler*/t[4]),u=!0)},p(e,[t]){/*$_*/1&t&&d!==(d=/*$_*/e[0]("tournamentsPage.back")+"")&&k(l,d)},i:e,o:e,d(e){e&&g(n),u=!1,c()}}}function Ka(e,t,n){let r;d(e,jn,(e=>n(0,r=e)));let{lang:i="en"}=t,{navigationbackbutton:o="Default"}=t;Object.keys(wi).forEach((e=>{gi(e,wi[e])}));const a=()=>{
|
|
1565
1565
|
// this function handles the back navigation making use of the prop: navigationbackbutton. If it has the
|
|
1566
1566
|
// event value, it will emit the 'RedirectBack' event which will enable the client to handle the routing;
|
|
1567
1567
|
// else, if it has the 'Default' value, it will do a window.history.back()
|
|
1568
|
-
"Event"==o?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==o&&window.history.back()};return e.$$set=e=>{"lang"in e&&
|
|
1568
|
+
"Event"==o?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==o&&window.history.back()};return e.$$set=e=>{"lang"in e&&n(2,i=e.lang),"navigationbackbutton"in e&&n(3,o=e.navigationbackbutton)},e.$$.update=()=>{/*lang*/4&e.$$.dirty&&i&&bi(i)},[r,a,i,o,()=>a()]}customElements.define("startdate-cell",Ja);class Xa extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ka,Za,a,{lang:2,navigationbackbutton:3},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["lang","navigationbackbutton"]}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),I()}get navigationbackbutton(){return this.$$.ctx[3]}set navigationbackbutton(e){this.$$set({navigationbackbutton:e}),I()}}
|
|
1569
|
+
/* src/Cells/TranslateTextCell.svelte generated by Svelte v3.59.2 */
|
|
1570
|
+
function Qa(t){let n,r;return{c(){n=y("span"),r=C(/*translatedText*/t[0]),this.c=e},m(e,t){p(e,n,t),m(n,r)},p(e,[t]){/*translatedText*/1&t&&k(r,/*translatedText*/e[0])},i:e,o:e,d(e){e&&g(n)}}}function es(e,t,n){let r;d(e,jn,(e=>n(3,r=e)));let{lang:i=""}=t,{cellsetting:o={langkey:""}}=t,a="";Object.keys(wi).forEach((e=>{gi(e,wi[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const s=()=>{o.langkey&&n(0,a=r(`tournamentsPage.${o.langkey}`))};return e.$$set=e=>{"lang"in e&&n(1,i=e.lang),"cellsetting"in e&&n(2,o=e.cellsetting)},e.$$.update=()=>{/*lang, cellsetting*/6&e.$$.dirty&&i&&o&&void bi(i)&&s(),/*lang, cellsetting*/6&e.$$.dirty&&i&&o&&s()},[a,i,o]}customElements.define("backbutton-cell",Xa);class ts extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},es,Qa,a,{lang:1,cellsetting:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["lang","cellsetting"]}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),I()}get cellsetting(){return this.$$.ctx[2]}set cellsetting(e){this.$$set({cellsetting:e}),I()}}customElements.define("translate-text-cell",ts);const ns={Cell:{attributes:oi.observedAttributes,cellBox:oi},BackButtonCell:{attributes:Xa.observedAttributes,cellBox:Xa},ThumbnailCell:{attributes:li.observedAttributes,cellBox:li},TitleCell:{attributes:Ia.observedAttributes,cellBox:Ia},TitleTextCell:{attributes:pi.observedAttributes,cellBox:pi},TranslateTextCell:{attributes:ts.observedAttributes,cellBox:ts},StartDateCell:{attributes:Ja.observedAttributes,cellBox:Ja},ScoreCriteriaCell:{attributes:Ei.observedAttributes,cellBox:Ei},StatusTag:{attributes:Gi.observedAttributes,cellBox:Gi},TournamentSlot:{attributes:oi.observedAttributes,cellBox:oi},JoinButtonCell:{attributes:Ui.observedAttributes,cellBox:Ui},UserEnrollTag:{attributes:Zi.observedAttributes,cellBox:Zi},DurationCell:{attributes:ao.observedAttributes,cellBox:ao},SeeGamesLine:{attributes:uo.observedAttributes,cellBox:uo},PrizesCell:{attributes:Eo.observedAttributes,cellBox:Eo},GamesCell:{attributes:Ao.observedAttributes,cellBox:Ao},TermsAndConditionsCell:{attributes:Fo.observedAttributes,cellBox:Fo},DescriptionCell:{attributes:Yo.observedAttributes,cellBox:Yo},LeaderboardCell:{attributes:Na.observedAttributes,cellBox:Na}},rs={wm:{id:"tournamentLayout",rows:[{id:"row1",type:"widget",///slot ?,
|
|
1569
1571
|
style:{height:"50px"},cols:[{id:"row-container",class:"RowContent",isCellContainer:!0,componentid:"Cell",subComponents:[{id:"thumbnailImg",componentid:"ThumbnailCell",class:"",subComponents:[{id:"status",componentid:"StatusTag",class:"Tag"},{id:"userEnrolled",componentid:"UserEnrollTag",class:"Tag"},{id:"startdate",componentid:"StartDateCell",class:"Tag",config:{shortstart:!0,showCalendarIcon:!0}}]},{id:"detailInfo",class:" DetailInfo",componentid:"Cell",isCellContainer:!0,subComponents:[{id:"title",componentid:"TitleCell",class:","},{id:"scoreCriteria",componentid:"ScoreCriteriaCell",class:" "},{id:"slot1",isSlotCell:!0,slotName:"GameClick",class:" "},{id:"seeGamesLink",componentid:"SeeGamesLine",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"thumbnailDuration",componentid:"DurationCell",class:"row-70-center"}]}]},{id:"prizeImg",componentid:"PrizesCell",class:" ",config:{expandAll:!0,listType:1,//1: col by col, 2: row by row
|
|
1570
|
-
maxCol:3,rowPerCol:7,showrankasimage:!0}},{id:"gamesLine",componentid:"GamesCell",class:" "},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RowContent",subComponents:[{id:"tour-description",isCellContainer:!0,componentid:"Cell",class:"DescriptionAndTermConditions",subComponents:[{id:"tour-description",componentid:"DescriptionCell",dataKey:{textKey:"tournamentdescription",key:"tournamentdescription",source:"cms"},class:" "},{id:"tour-tm",componentid:"TermsAndConditionsCell",class:" "}]},{id:"leaderboard",componentid:"LeaderboardCell",class:"",config:{firstrow:"true"}}]},{id:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "}]}]},default:{id:"tournamentLayout",rows:[{id:"row1",type:"widget",style:{height:"50px"},cols:[{id:"topBackButton",componentid:"BackButtonCell"},{id:"left-thumbnail",class:"LeftSection",isCellContainer:!0,componentid:"Cell",subComponents:[{id:"thumbnailImg",componentid:"ThumbnailCell",class:" ",subComponents:[{id:"status",componentid:"StatusTag",class:"Tag"},{id:"userEnrolled",componentid:"UserEnrollTag",class:"Tag"}]},{id:"detailInfo",class:" DetailInfo",componentid:"Cell",isCellContainer:!0,subComponents:[{id:"title",componentid:"TitleCell",class:" "},{id:"startdate",componentid:"StartDateCell",class:" "},{id:"scoreCriteria",componentid:"ScoreCriteriaCell",class:" "},{id:"slot1",isSlotCell:!0,slotName:"GameClick",class:" "},{id:"seeGamesLink",componentid:"SeeGamesLine",class:" "},{id:"prizeImg",componentid:"PrizesCell",class:" ",config:{expandAll:!1,//default
|
|
1572
|
+
maxCol:3,rowPerCol:7,showrankasimage:!0}},{id:"GamesSliderTitle",componentid:"TranslateTextCell",config:{langkey:"participantingGames"},class:" GamesSliderTitle "},{id:"gamesLine",componentid:"GamesCell",class:" "},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RowContent",subComponents:[{id:"tour-description",isCellContainer:!0,componentid:"Cell",class:"DescriptionAndTermConditions",subComponents:[{id:"tour-description",componentid:"DescriptionCell",dataKey:{textKey:"tournamentdescription",key:"tournamentdescription",source:"cms"},class:" "},{id:"tour-tm",componentid:"TermsAndConditionsCell",class:" "}]},{id:"leaderboard",componentid:"LeaderboardCell",class:"",config:{firstrow:"true"}}]},{id:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "}]}]},default:{id:"tournamentLayout",rows:[{id:"row1",type:"widget",style:{height:"50px"},cols:[{id:"topBackButton",componentid:"BackButtonCell"},{id:"left-thumbnail",class:"LeftSection",isCellContainer:!0,componentid:"Cell",subComponents:[{id:"thumbnailImg",componentid:"ThumbnailCell",class:" ",subComponents:[{id:"status",componentid:"StatusTag",class:"Tag"},{id:"userEnrolled",componentid:"UserEnrollTag",class:"Tag"}]},{id:"detailInfo",class:" DetailInfo",componentid:"Cell",isCellContainer:!0,subComponents:[{id:"title",componentid:"TitleCell",class:" "},{id:"startdate",componentid:"StartDateCell",class:" "},{id:"scoreCriteria",componentid:"ScoreCriteriaCell",class:" "},{id:"slot1",isSlotCell:!0,slotName:"GameClick",class:" "},{id:"seeGamesLink",componentid:"SeeGamesLine",class:" "},{id:"prizeImg",componentid:"PrizesCell",class:" ",config:{expandAll:!1,//default
|
|
1571
1573
|
listType:1,//1: col by col, 2: row by row
|
|
1572
|
-
maxCol:3,rowPerCol:7}},{id:"thumbnailDuration",componentid:"DurationCell",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"gamesLine",componentid:"GamesCell",class:" "},{id:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "},{id:"tour-description",isCellContainer:!0,componentid:"Cell",class:" ",subComponents:[{id:"tour-description",componentid:"DescriptionCell",dataKey:{textKey:"tournamentdescription",key:"tournamentdescription",source:"cms"},class:" "},{id:"tour-tm",componentid:"TermsAndConditionsCell",class:" "}]}]}]},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RightSection",subComponents:[{id:"leaderboard",componentid:"LeaderboardCell"}]}]}]}},
|
|
1574
|
+
maxCol:3,rowPerCol:7}},{id:"thumbnailDuration",componentid:"DurationCell",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"gamesLine",componentid:"GamesCell",class:" "},{id:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "},{id:"tour-description",isCellContainer:!0,componentid:"Cell",class:" ",subComponents:[{id:"tour-description",componentid:"DescriptionCell",dataKey:{textKey:"tournamentdescription",key:"tournamentdescription",source:"cms"},class:" "},{id:"tour-tm",componentid:"TermsAndConditionsCell",class:" "}]}]}]},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RightSection",subComponents:[{id:"leaderboard",componentid:"LeaderboardCell"}]}]}]}},is=(e,t)=>{console.log("Start parse layout...");let n=e.rows,r=e=>{e&&e.length&&e.forEach((e=>{if(e.class||(e.class=""),e.isSlotCell)return e.parts=`Slots ${e.componentid} ${e.id}`,void(e.cellClass=`Cells Slots ${e.class} ${e.id}`);e.isCellContainer?(e.parts=`BoxCells ${e.componentid} ${e.id}`,e.cellClass=`Cells BoxCells ${e.class} ${e.id}`):(e.parts=`BizCells ${e.componentid} ${e.id}`,e.cellClass=`Cells BizCells ${e.class} ${e.componentid} ${e.id}`,e.componentAttrs=((e,t)=>{let n=e.componentid,r={},i=ns[n].attributes||[];if(e.dataKey){let n=e.dataKey;
|
|
1573
1575
|
//init cell by source type
|
|
1574
|
-
return"api"==
|
|
1575
|
-
n
|
|
1576
|
-
n
|
|
1576
|
+
return"api"==n.source?// when component cell init by api data
|
|
1577
|
+
r[n.textKey]=t.tournamentData[n.key]||null:"cms"==n.source&&(// fill data by cms data
|
|
1578
|
+
r[n.textKey]=t.cmsData[n.key]||null),r.titlekey=n.key,r}return i.forEach((e=>{let n=t.tournamentData||{},i=t.ctrlProperties||{};n.hasOwnProperty(e)?r[e]=n[e]:r[e]=i[e]||t.pageDefaultParams[e]})),r})(e,t),e.config&&(e.componentAttrs.cellsetting=e.config)),e.component=ns[e.componentid].cellBox,r(e.subComponents)}))};return n.forEach((e=>{r(e.cols)})),console.log("Start parse layout...Done"),e};
|
|
1577
1579
|
/*
|
|
1578
1580
|
* These data will be managed by CMS, config it in file for temporary
|
|
1579
1581
|
* Configed layout: wm/default
|
|
1580
|
-
* */class
|
|
1581
|
-
/* src/CasinoTournamentsCustomizePageController.svelte generated by Svelte v3.59.2 */function
|
|
1582
|
+
* */class os{transfer(e){return{id:e.id,tourid:e.id,title:e.nameOrTitle||"",thumbnail:e.thumbnail,state:e.state,status:e.state,startdate:e.startTime,enddate:e.endTime,scorecriteria:e.scoreCriteria,minbetcount:e.minBetCount,userenrolled:e.playerEnrolled||!1,gameurl:e.termsUrl||"#",prizes:e.prizes,games:e.games,description:e.description,termsurl:e.termsUrl,bonuscode:e.wallets&&e.wallets.length>=1?e.wallets[0].code:null}}}const as={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},"zh-hk":{tournamentsPage:{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限"}},fr:{tournamentsPage:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité"}},ro:{tournamentsPage:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat"}},tr:{tournamentsPage:{loading:"Yükleniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",mostRounds:"MostRounds",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"See included sports",forwardMyTournaments:"Turnuvaları Gör",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"limitsiz"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},es:{tournamentsPage:{loading:"Cargando…",back:"Anterior",previous:"Previo",next:"Siguiente",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado",mostRounds:"Más rondas",activePeriod:"Desde {startdate} Hasta {enddate}",forwardCasino:"Ver los Juegos de Casino incluidos",forwardSports:"Ver los Deportes incluidos",forwardMyTournaments:"Ver mis Torneos",leaderBoard:"Tabla de posiciones",rules:"Reglas",games:"Juegos",unlimited:"ilimitado"}},hu:{tournamentsPage:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan"}},pt:{tournamentsPage:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado"}}};
|
|
1583
|
+
/* src/CasinoTournamentsCustomizePageController.svelte generated by Svelte v3.59.2 */function ss(e,t,n){const r=e.slice();return r[58]=t[n],r}function ls(e,t,n){const r=e.slice();return r[61]=t[n],r}function us(e,t,n){const r=e.slice();return r[64]=t[n],r}function cs(e,t,n){const r=e.slice();return r[67]=t[n],r}
|
|
1582
1584
|
// (283:0) {#if isLoading}
|
|
1583
|
-
function
|
|
1585
|
+
function ds(e){let t,n,r=/*$_*/e[6]("tournamentsPage.loading")+"";return{c(){t=y("p"),n=C(r),_(t,"class","LoadingMessage"),_(t,"part","LoadingMessage")},m(e,r){p(e,t,r),m(t,n)},p(e,t){/*$_*/64&t[0]&&r!==(r=/*$_*/e[6]("tournamentsPage.loading")+"")&&k(n,r)},d(e){e&&g(t)}}}
|
|
1584
1586
|
// (290:2) {#if errorMessage}
|
|
1585
|
-
function
|
|
1587
|
+
function hs(e){let t;return{c(){t=C(/*errorMessage*/e[3])},m(e,n){p(e,t,n)},p(e,n){/*errorMessage*/8&n[0]&&k(t,/*errorMessage*/e[3])},d(e){e&&g(t)}}}
|
|
1586
1588
|
// (296:12) {#if !col.isCellContainer}
|
|
1587
|
-
function
|
|
1589
|
+
function fs(e){let n,r,i;const o=[/*col*/e[61].componentAttrs,{attrs:/*col*/e[61].componentAttrs}];var a=/*col*/e[61].component;function s(e){let n={};for(let e=0;e<o.length;e+=1)n=t(n,o[e]);return{props:n}}return a&&(n=$(a,s())),{c(){n&&Q(n.$$.fragment),r=T()},m(e,t){n&&ee(n,e,t),p(e,r,t),i=!0},p(e,t){const i=/*opLayout*/4&t[0]?K(o,[X(/*col*/e[61].componentAttrs),{attrs:/*col*/e[61].componentAttrs}]):{};if(/*opLayout*/4&t[0]&&a!==(a=/*col*/e[61].component)){if(n){W();const e=n;Z(e.$$.fragment,1,0,(()=>{te(e,1)})),q()}a?(n=$(a,s()),Q(n.$$.fragment),J(n.$$.fragment,1),ee(n,r.parentNode,r)):n=null}else a&&n.$set(i)},i(e){i||(n&&J(n.$$.fragment,e),i=!0)},o(e){n&&Z(n.$$.fragment,e),i=!1},d(e){e&&g(r),n&&te(n,e)}}}
|
|
1588
1590
|
// (299:12) {#if col.isSlotCell}
|
|
1589
|
-
function
|
|
1591
|
+
function ms(e){let t,n,r,i;return{c(){t=y("slot"),_(t,"part",n=/*col*/e[61].slotName),_(t,"class",r=/*col*/e[61].slotName),_(t,"name",i=/*col*/e[61].slotName)},m(e,n){p(e,t,n)},p(e,o){/*opLayout*/4&o[0]&&n!==(n=/*col*/e[61].slotName)&&_(t,"part",n),/*opLayout*/4&o[0]&&r!==(r=/*col*/e[61].slotName)&&_(t,"class",r),/*opLayout*/4&o[0]&&i!==(i=/*col*/e[61].slotName)&&_(t,"name",i)},d(e){e&&g(t)}}}
|
|
1590
1592
|
// (302:12) {#if col.subComponents && col.subComponents.length > 0}
|
|
1591
|
-
function
|
|
1593
|
+
function ps(e){let t,n,r=/*col*/e[61].subComponents,i=[];for(let t=0;t<r.length;t+=1)i[t]=Ts(us(e,r,t));const o=e=>Z(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);p(e,t,r),n=!0},p(e,n){if(/*opLayout*/4&n[0]){let a;for(r=/*col*/e[61].subComponents,a=0;a<r.length;a+=1){const o=us(e,r,a);i[a]?(i[a].p(o,n),J(i[a],1)):(i[a]=Ts(o),i[a].c(),J(i[a],1),i[a].m(t.parentNode,t))}for(W(),a=r.length;a<i.length;a+=1)o(a);q()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)J(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)Z(i[e]);n=!1},d(e){b(i,e),e&&g(t)}}}
|
|
1592
1594
|
// (305:18) {#if !subCol.isCellContainer}
|
|
1593
|
-
function
|
|
1594
|
-
/*subCol*/e[64].componentAttrs,{attrs:/*subCol*/e[64].componentAttrs}];var a=/*subCol*/e[64].component;function s(e){let
|
|
1595
|
+
function gs(e){let n,r,i;const o=[
|
|
1596
|
+
/*subCol*/e[64].componentAttrs,{attrs:/*subCol*/e[64].componentAttrs}];var a=/*subCol*/e[64].component;function s(e){let n={};for(let e=0;e<o.length;e+=1)n=t(n,o[e]);return{props:n}}return a&&(n=$(a,s())),{c(){n&&Q(n.$$.fragment),r=T()},m(e,t){n&&ee(n,e,t),p(e,r,t),i=!0},p(e,t){const i=/*opLayout*/4&t[0]?K(o,[X(/*subCol*/e[64].componentAttrs),{attrs:/*subCol*/e[64].componentAttrs}]):{};if(/*opLayout*/4&t[0]&&a!==(a=/*subCol*/e[64].component)){if(n){W();const e=n;Z(e.$$.fragment,1,0,(()=>{te(e,1)})),q()}a?(n=$(a,s()),Q(n.$$.fragment),J(n.$$.fragment,1),ee(n,r.parentNode,r)):n=null}else a&&n.$set(i)},i(e){i||(n&&J(n.$$.fragment,e),i=!0)},o(e){n&&Z(n.$$.fragment,e),i=!1},d(e){e&&g(r),n&&te(n,e)}}}
|
|
1595
1597
|
// (308:18) {#if subCol.isSlotCell}
|
|
1596
|
-
function
|
|
1598
|
+
function bs(e){let t,n,r,i;return{c(){t=y("slot"),_(t,"part",n=/*subCol*/e[64].slotName),_(t,"class",r=/*subCol*/e[64].slotName),_(t,"name",i=/*subCol*/e[64].slotName)},m(e,n){p(e,t,n)},p(e,o){/*opLayout*/4&o[0]&&n!==(n=/*subCol*/e[64].slotName)&&_(t,"part",n),/*opLayout*/4&o[0]&&r!==(r=/*subCol*/e[64].slotName)&&_(t,"class",r),/*opLayout*/4&o[0]&&i!==(i=/*subCol*/e[64].slotName)&&_(t,"name",i)},d(e){e&&g(t)}}}
|
|
1597
1599
|
// (311:18) {#if subCol.subComponents && subCol.subComponents.length > 0}
|
|
1598
|
-
function
|
|
1600
|
+
function ys(e){let t,n,r=/*subCol*/e[64].subComponents,i=[];for(let t=0;t<r.length;t+=1)i[t]=vs(cs(e,r,t));const o=e=>Z(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);p(e,t,r),n=!0},p(e,n){if(/*opLayout*/4&n[0]){let a;for(r=/*subCol*/e[64].subComponents,a=0;a<r.length;a+=1){const o=cs(e,r,a);i[a]?(i[a].p(o,n),J(i[a],1)):(i[a]=vs(o),i[a].c(),J(i[a],1),i[a].m(t.parentNode,t))}for(W(),a=r.length;a<i.length;a+=1)o(a);q()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)J(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)Z(i[e]);n=!1},d(e){b(i,e),e&&g(t)}}}
|
|
1599
1601
|
// (316:24) {:else }
|
|
1600
|
-
function
|
|
1601
|
-
/*grandCol*/e[67].componentAttrs,{attrs:/*grandCol*/e[67].componentAttrs}];var a=/*grandCol*/e[67].component;function s(e){let
|
|
1602
|
+
function ws(e){let n,r,i;const o=[
|
|
1603
|
+
/*grandCol*/e[67].componentAttrs,{attrs:/*grandCol*/e[67].componentAttrs}];var a=/*grandCol*/e[67].component;function s(e){let n={};for(let e=0;e<o.length;e+=1)n=t(n,o[e]);return{props:n}}return a&&(n=$(a,s())),{c(){n&&Q(n.$$.fragment),r=T()},m(e,t){n&&ee(n,e,t),p(e,r,t),i=!0},p(e,t){const i=/*opLayout*/4&t[0]?K(o,[X(/*grandCol*/e[67].componentAttrs),{attrs:/*grandCol*/e[67].componentAttrs}]):{};if(/*opLayout*/4&t[0]&&a!==(a=/*grandCol*/e[67].component)){if(n){W();const e=n;Z(e.$$.fragment,1,0,(()=>{te(e,1)})),q()}a?(n=$(a,s()),Q(n.$$.fragment),J(n.$$.fragment,1),ee(n,r.parentNode,r)):n=null}else a&&n.$set(i)},i(e){i||(n&&J(n.$$.fragment,e),i=!0)},o(e){n&&Z(n.$$.fragment,e),i=!1},d(e){e&&g(r),n&&te(n,e)}}}
|
|
1602
1604
|
// (314:24) {#if grandCol.isSlotCell}
|
|
1603
|
-
function
|
|
1605
|
+
function Cs(t){let n,r,i,o;return{c(){n=y("slot"),_(n,"part",r=/*grandCol*/t[67].slotName),_(n,"class",i=/*grandCol*/t[67].slotName),_(n,"name",o=/*grandCol*/t[67].slotName)},m(e,t){p(e,n,t)},p(e,t){/*opLayout*/4&t[0]&&r!==(r=/*grandCol*/e[67].slotName)&&_(n,"part",r),/*opLayout*/4&t[0]&&i!==(i=/*grandCol*/e[67].slotName)&&_(n,"class",i),/*opLayout*/4&t[0]&&o!==(o=/*grandCol*/e[67].slotName)&&_(n,"name",o)},i:e,o:e,d(e){e&&g(n)}}}
|
|
1604
1606
|
// (312:20) {#each subCol.subComponents as grandCol}
|
|
1605
|
-
function
|
|
1606
|
-
return e[67].isSlotCell?0:1}return
|
|
1607
|
+
function vs(e){let t,n,r,i,a,s,l,u,c,d;const h=[Cs,ws],b=[];function w(e,t){/*grandCol*/
|
|
1608
|
+
return e[67].isSlotCell?0:1}return n=w(e),r=b[n]=h[n](e),{c(){t=y("div"),r.c(),i=v(),_(t,"class",a="Cell3s "+/*grandCol*/e[67].cellClass),_(t,"part",s=/*grandCol*/e[67].parts+" Cell3s")},m(r,o){p(r,t,o),b[n].m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*grandCol*/e[67])),c=!0)},p(c,d){let f=n;n=w(e=c),n===f?b[n].p(e,d):(W(),Z(b[f],1,1,(()=>{b[f]=null})),q(),r=b[n],r?r.p(e,d):(r=b[n]=h[n](e),r.c()),J(r,1),r.m(t,i)),(!u||/*opLayout*/4&d[0]&&a!==(a="Cell3s "+/*grandCol*/e[67].cellClass))&&_(t,"class",a),(!u||/*opLayout*/4&d[0]&&s!==(s=/*grandCol*/e[67].parts+" Cell3s"))&&_(t,"part",s),l&&o(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*grandCol*/e[67])},i(e){u||(J(r),u=!0)},o(e){Z(r),u=!1},d(e){e&&g(t),b[n].d(),c=!1,d()}}}
|
|
1607
1609
|
// (303:14) {#each col.subComponents as subCol}
|
|
1608
|
-
function
|
|
1610
|
+
function Ts(e){let t,n,r,i,a,s,l,u,c,d,h=!/*subCol*/e[64].isCellContainer&&gs(e),b=/*subCol*/e[64].isSlotCell&&bs(e),w=/*subCol*/e[64].subComponents&&/*subCol*/e[64].subComponents.length>0&&ys(e);return{c(){t=y("div"),h&&h.c(),n=v(),b&&b.c(),r=v(),w&&w.c(),i=v(),_(t,"class",a="Cell2s "+/*subCol*/e[64].cellClass),_(t,"part",s=/*subCol*/e[64].parts+" Cell2s")},m(o,a){p(o,t,a),h&&h.m(t,null),m(t,n),b&&b.m(t,null),m(t,r),w&&w.m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*subCol*/e[64])),c=!0)},p(c,d){/*subCol*/(e=c)[64].isCellContainer?h&&(W(),Z(h,1,1,(()=>{h=null})),q()):h?(h.p(e,d),/*opLayout*/4&d[0]&&J(h,1)):(h=gs(e),h.c(),J(h,1),h.m(t,n)),/*subCol*/e[64].isSlotCell?b?b.p(e,d):(b=bs(e),b.c(),b.m(t,r)):b&&(b.d(1),b=null),/*subCol*/e[64].subComponents&&/*subCol*/e[64].subComponents.length>0?w?(w.p(e,d),/*opLayout*/4&d[0]&&J(w,1)):(w=ys(e),w.c(),J(w,1),w.m(t,i)):w&&(W(),Z(w,1,1,(()=>{w=null})),q()),(!u||/*opLayout*/4&d[0]&&a!==(a="Cell2s "+/*subCol*/e[64].cellClass))&&_(t,"class",a),(!u||/*opLayout*/4&d[0]&&s!==(s=/*subCol*/e[64].parts+" Cell2s"))&&_(t,"part",s),l&&o(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*subCol*/e[64])},i(e){u||(J(h),J(w),u=!0)},o(e){Z(h),Z(w),u=!1},d(e){e&&g(t),h&&h.d(),b&&b.d(),w&&w.d(),c=!1,d()}}}
|
|
1609
1611
|
// (294:6) {#each row.cols as col}
|
|
1610
|
-
function
|
|
1612
|
+
function xs(e){let t,n,r,i,a,s,l,u,c,d,h=!/*col*/e[61].isCellContainer&&fs(e),b=/*col*/e[61].isSlotCell&&ms(e),w=/*col*/e[61].subComponents&&/*col*/e[61].subComponents.length>0&&ps(e);return{c(){t=y("div"),h&&h.c(),n=v(),b&&b.c(),r=v(),w&&w.c(),i=v(),_(t,"class",a="Cell1s "+/*col*/e[61].cellClass),_(t,"part",s=/*col*/e[61].parts)},m(o,a){p(o,t,a),h&&h.m(t,null),m(t,n),b&&b.m(t,null),m(t,r),w&&w.m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*col*/e[61])),c=!0)},p(c,d){/*col*/(e=c)[61].isCellContainer?h&&(W(),Z(h,1,1,(()=>{h=null})),q()):h?(h.p(e,d),/*opLayout*/4&d[0]&&J(h,1)):(h=fs(e),h.c(),J(h,1),h.m(t,n)),/*col*/e[61].isSlotCell?b?b.p(e,d):(b=ms(e),b.c(),b.m(t,r)):b&&(b.d(1),b=null),/*col*/e[61].subComponents&&/*col*/e[61].subComponents.length>0?w?(w.p(e,d),/*opLayout*/4&d[0]&&J(w,1)):(w=ps(e),w.c(),J(w,1),w.m(t,i)):w&&(W(),Z(w,1,1,(()=>{w=null})),q()),(!u||/*opLayout*/4&d[0]&&a!==(a="Cell1s "+/*col*/e[61].cellClass))&&_(t,"class",a),(!u||/*opLayout*/4&d[0]&&s!==(s=/*col*/e[61].parts))&&_(t,"part",s),l&&o(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*col*/e[61])},i(e){u||(J(h),J(w),u=!0)},o(e){Z(h),Z(w),u=!1},d(e){e&&g(t),h&&h.d(),b&&b.d(),w&&w.d(),c=!1,d()}}}
|
|
1611
1613
|
// (293:4) {#each opLayout.rows as row }
|
|
1612
|
-
function
|
|
1613
|
-
/*div_binding*/t[35](
|
|
1614
|
-
/*div_binding*/t[35](null)}}}function
|
|
1614
|
+
function _s(e){let t,n,r=/*row*/e[58].cols,i=[];for(let t=0;t<r.length;t+=1)i[t]=xs(ls(e,r,t));const o=e=>Z(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);p(e,t,r),n=!0},p(e,n){if(/*opLayout*/4&n[0]){let a;for(r=/*row*/e[58].cols,a=0;a<r.length;a+=1){const o=ls(e,r,a);i[a]?(i[a].p(o,n),J(i[a],1)):(i[a]=xs(o),i[a].c(),J(i[a],1),i[a].m(t.parentNode,t))}for(W(),a=r.length;a<i.length;a+=1)o(a);q()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)J(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)Z(i[e]);n=!1},d(e){b(i,e),e&&g(t)}}}function ks(t){let n,r,i,o,a,s,l=/*isLoading*/t[4]&&ds(t),u=/*errorMessage*/t[3]&&hs(t),c=/*opLayout*/t[2].rows,d=[];for(let e=0;e<c.length;e+=1)d[e]=_s(ss(t,c,e));const h=e=>Z(d[e],1,1,(()=>{d[e]=null}));return{c(){l&&l.c(),n=v(),r=y("div"),u&&u.c(),i=v();for(let e=0;e<d.length;e+=1)d[e].c();this.c=e,S(r,"display",/*isLoading*/t[4]?"none":"flex"),_(r,"class",o="casino-tournaments-customize-page-controller layout-"+/*layoutid*/t[0]+" "+(/*mobileView*/t[1]?"MobileContainer":"")),_(r,"part",a="casino-tournaments-customize-page-controller layout-"+/*layoutid*/t[0])},m(e,o){l&&l.m(e,o),p(e,n,o),p(e,r,o),u&&u.m(r,null),m(r,i);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);
|
|
1615
|
+
/*div_binding*/t[35](r),s=!0},p(e,t){if(/*isLoading*/e[4]?l?l.p(e,t):(l=ds(e),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null),/*errorMessage*/e[3]?u?u.p(e,t):(u=hs(e),u.c(),u.m(r,i)):u&&(u.d(1),u=null),/*opLayout*/4&t[0]){let n;for(c=/*opLayout*/e[2].rows,n=0;n<c.length;n+=1){const i=ss(e,c,n);d[n]?(d[n].p(i,t),J(d[n],1)):(d[n]=_s(i),d[n].c(),J(d[n],1),d[n].m(r,null))}for(W(),n=c.length;n<d.length;n+=1)h(n);q()}(!s||/*isLoading*/16&t[0])&&S(r,"display",/*isLoading*/e[4]?"none":"flex"),(!s||/*layoutid, mobileView*/3&t[0]&&o!==(o="casino-tournaments-customize-page-controller layout-"+/*layoutid*/e[0]+" "+(/*mobileView*/e[1]?"MobileContainer":"")))&&_(r,"class",o),(!s||/*layoutid*/1&t[0]&&a!==(a="casino-tournaments-customize-page-controller layout-"+/*layoutid*/e[0]))&&_(r,"part",a)},i(e){if(!s){for(let e=0;e<c.length;e+=1)J(d[e]);s=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)Z(d[e]);s=!1},d(e){l&&l.d(e),e&&g(n),e&&g(r),u&&u.d(),b(d,e),
|
|
1616
|
+
/*div_binding*/t[35](null)}}}function Ss(e,n,r){let i;d(e,jn,(e=>r(6,i=e)));let o,a,s,{layoutid:l="default"}=n,{session:u=""}=n,{userid:c=""}=n,{tourid:f=""}=n,{endpoint:m=""}=n,{cmsendpoint:p=""}=n,{lang:g="en"}=n,{navigationbackbutton:b="Default"}=n,{currency:y="EUR"}=n,{tablelimit:w="30"}=n,{namemask:C=""}=n,{showunqualifiedplayer:v="true"}=n,{mobiletablelimit:T="15"}=n,{updatetableintime:x="true"}=n,{viewmode:_=""}=n,{minscore:k=""}=n,{scorefractiondigit:S="2"}=n,{loginevent:P=""}=n,{registerevent:E=""}=n,{loginurl:$=""}=n,{registerurl:L=""}=n,{limit:R=30}=n,{offset:B=0}=n,{leaderboardoffset:F="0"}=n,{leaderboardlimit:O="15"}=n,{keepbrowsercontext:z="false"}=n,{showrankasimage:N="false"}=n,H=window.navigator.userAgent,U=!1,I={pageDefaultParams:{lang:"en",layoutid:"default",navigationbackbutton:"Default",currency:"EUR",tablelimit:"30",showunqualifiedplayer:"true",mobiletablelimit:"15",updatetableintime:"true",scorefractiondigit:"2",leaderboardoffset:"0",leaderboardlimit:"15",keepbrowsercontext:"false",showenrolled:"true",firstrow:"true"},cmsData:{},ctrlProperties:null,tournamentData:null},Y=new os,j={rows:[]},G=!1,V=!0;Object.keys(as).forEach((e=>{!function(e,t){Jt(e,t)}(e,as[e])})),function({withLocale:e,translations:t}){_n.subscribe((n=>{null==n&&(Vt.set(t),_n.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1615
1617
|
/*dictionary.set(translations);
|
|
1616
|
-
locale.set(_locale);*/}({withLocale:g,translations:{}});const W=(e,t)=>{let r=e.rows,n=e=>{e&&e.length&&e.forEach((e=>{e.isCellContainer||((e,t)=>{let r=e.componentAttrs||{};r&&Object.keys(r).forEach((e=>{t.hasOwnProperty(e)&&(r[e]=t[e])}))})(e,t),n(e.subComponents)}))};r.forEach((e=>{n(e.cols)}))},q=e=>{if(e.data)try{let t=JSON.parse(e.data);"TournamentUpdate"==t.messageType&&(window.postMessage({type:"UpdateTournamentView",tournamentData:t.item},window.location.href),J(t.item))}catch(e){console.error(e)}},J=e=>{a=Y.transfer(e),I.tournamentData=a,a.lang=g,n(2,j=ts(es[l]||es.default,I))},Z=(e,t)=>{let r=new URL(e+`/tournaments/${t}`),i=new Headers({"X-SessionId":u});r.searchParams.append("platform",ti(H)),r.searchParams.append("language",g);let l=r.searchParams.toString(),c={method:"GET",headers:i};fetch(r.href,c).then((e=>e.json())).then((e=>{e.success?(n(3,s=null),e.item.id=f,J(e.item),a.lang=g,W(j,a),n(2,j=Object.assign({},j)),n(4,V=!1),((e,t)=>{let r=`${m}/tournaments/updates?filter=id=${e}&${t}`;o&&(o.removeEventListener("message",q),o.close()),o=new ri.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":u}}),o.addEventListener("message",q)})(f,l)):n(3,s=`Faild to load data, details: ${e.errorMessage}`)}))},K=D(),X=(e,t,r)=>{if(!j.rows||0==j.rows.length)return;let i=j.rows[0].cols;e.forEach((e=>{let n,o=t=>{t.forEach(((t,r)=>n||(t.componentid==e?(n=t,n):t.subComponents&&t.subComponents.length>0?o(t.subComponents):void 0)))};o(i);let a=K.$$.props,s=K.$$.ctx;n&&t.forEach((e=>{if(r)return void(n.componentAttrs[e]=I.tournamentData[e]);let t=a[e],i=s[t];I.ctrlProperties[e]=i,n.componentAttrs[e]=i}))})),n(2,j=Object.assign({},j))},Q=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&(I.tournamentData.userenrolled=e.data.userenrolled)};let ee;return M((()=>(n(34,G=!0),n(0,l=es[l]?l:"default"),n(1,U=ei(H)),I.ctrlProperties=r,window.addEventListener("message",Q),()=>{window.removeEventListener("message",Q)}))),e.$$set=e=>{n(57,r=t(t({},r),h(e))),"layoutid"in e&&n(0,l=e.layoutid),"session"in e&&n(8,u=e.session),"userid"in e&&n(9,c=e.userid),"tourid"in e&&n(10,f=e.tourid),"endpoint"in e&&n(11,m=e.endpoint),"cmsendpoint"in e&&n(12,p=e.cmsendpoint),"lang"in e&&n(13,g=e.lang),"navigationbackbutton"in e&&n(14,b=e.navigationbackbutton),"currency"in e&&n(15,y=e.currency),"tablelimit"in e&&n(16,w=e.tablelimit),"namemask"in e&&n(17,C=e.namemask),"showunqualifiedplayer"in e&&n(18,v=e.showunqualifiedplayer),"mobiletablelimit"in e&&n(19,T=e.mobiletablelimit),"updatetableintime"in e&&n(20,x=e.updatetableintime),"viewmode"in e&&n(21,_=e.viewmode),"minscore"in e&&n(22,k=e.minscore),"scorefractiondigit"in e&&n(23,S=e.scorefractiondigit),"loginevent"in e&&n(24,P=e.loginevent),"registerevent"in e&&n(25,E=e.registerevent),"loginurl"in e&&n(26,$=e.loginurl),"registerurl"in e&&n(27,L=e.registerurl),"limit"in e&&n(28,R=e.limit),"offset"in e&&n(29,B=e.offset),"leaderboardoffset"in e&&n(30,F=e.leaderboardoffset),"leaderboardlimit"in e&&n(31,O=e.leaderboardlimit),"keepbrowsercontext"in e&&n(32,z=e.keepbrowsercontext),"showrankasimage"in e&&n(33,N=e.showrankasimage)},e.$$.update=()=>{/*endpoint, session, userid, lang, tourid*/12032&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&m&&u&&c&&g&&f&&Z(m,f),/*session, userid*/768&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&u&&c&&setTimeout((()=>{X(["LeaderboardCell","GamesCell"],["session","userid"])}),100),/*showunqualifiedplayer, scorefractiondigit, tablelimit*/8716288&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&v&&S&&w&&X(["LeaderboardCell"],["showunqualifiedplayer","scorefractiondigit","tablelimit"]),/*layoutid*/1&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&l&&(a?(n(0,l=es[l]?l:"default"),n(2,j=ts(es[l],I))):console.log("tournamentData undefined"))},r=h(r),[l,U,j,s,V,ee,i,(e,t)=>{t.onLoad&&t.onLoad()},u,c,f,m,p,g,b,y,w,C,v,T,x,_,k,S,P,E,$,L,R,B,F,O,z,N,G,function(e){A[e?"unshift":"push"]((()=>{ee=e,n(5,ee)}))}]}class _s extends V{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-size:12px;font-family:system-ui, -apple-system, "Segoe UI", Roboto, 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}.casino-tournaments-customize-page-controller{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;padding-top:15px}.MobileContainer{flex-wrap:nowrap;flex-direction:column;align-items:initial}.MobileContainer .Cells.RowContent{display:flex;flex-direction:column;width:100%}.row-70-center{margin:auto;width:70%}.Cells.RowContent{display:flex;flex-direction:row;width:100%}.BackButtonCell .TopButtons{display:inline-flex;flex-direction:column;font-size:10px}.BackButtonCell .BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButtonCell .BackButton .ButtonText{font-size:24px}.DurationCell .Remaining{text-align:center}.TitleCell .Title{font-size:18px;padding-bottom:10px}.SeeGamesLine .GamesAnchor{text-decoration:underline}.JoinButtonCell{display:flex;justify-content:center;gap:5px;flex-direction:column;align-items:center}.JoinButtonCell .ErrorText{color:red}.JoinButtonCell .spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}.JoinButtonCell .spinner .circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}.Tag{position:absolute;top:15px;font-size:12px}.ThumbnailCell{position:relative}.ThumbnailCell .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}.ThumbnailCell .CardImg.CardImgFinished{filter:grayscale(1)}.DetailInfo{display:flex;flex-direction:column;padding:8px;min-height:200px;border-radius:8px}.DetailInfo .TitleTextCell{font-size:19px}.PrizesCell .PrizeRank{display:flex;padding-right:3px}.PrizesCell .Prize .PrizeText{display:flex}.ScoreCriteriaCell{font-size:11px}.TournamentDuration .TournamentDates{display:flex;justify-content:space-between}.TournamentDuration .StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.TournamentDuration .EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.TournamentDuration .ProgressBar{height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.TournamentDuration .ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentDuration .ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.TournamentDuration .TournamentPrizesIconSection{display:inline-flex}.TournamentDuration .ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.TournamentDuration .ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.TournamentDuration .Remaining,.TournamentDuration .Finished{text-align:right;text-transform:uppercase}.TournamentDuration .Finished{color:var(--emfe-w-color-green, #48952a)}.GamesCell .TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center;align-items:center}.GamesCell .SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;cursor:pointer}.GamesCell .SliderNavButton.disabled{color:var(--emfe-w-color-gray-150, #828282)}.GamesCell .main{width:calc(100% - 50px);overflow:hidden}.GamesCell .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.GamesCell .item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.GamesCell .item .GameThumbnail{height:100%}.GamesCell .PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesCell .itemHover{opacity:1}.GamesCell .items .item:first-child{margin-left:0}.GamesCell .items .item:last-child{margin-right:0}.TitleTextCell .Title,.DescriptionCell .Title{text-transform:uppercase}.TitleTextCell .DetailsCard,.DescriptionCell .DetailsCard{line-height:18px;border:1px solid var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.TitleTextCell .DetailsTitle,.DescriptionCell .DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-color-contrast, #07072A)}.TitleTextCell .DetailsContent,.DescriptionCell .DetailsContent{overflow:auto;height:150px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.TitleTextCell .sc::-webkit-scrollbar,.DescriptionCell .sc::-webkit-scrollbar{width:5px;height:5px}.TitleTextCell .sc::-webkit-scrollbar-track,.DescriptionCell .sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.TitleTextCell .sc::-webkit-scrollbar-thumb,.DescriptionCell .sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}.LeaderboardCell .LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.LeaderboardCell .Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.LeaderboardCell .TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.LeaderboardCell .TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.LeaderboardCell .TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.LeaderboardCell .TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.LeaderboardCell .TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.LeaderboardCell .TableUser.UnqualifiedRow{border-bottom:0}.LeaderboardCell .TableUserTooltips{display:flex;gap:4px;flex-direction:row;width:100%;padding:10px 0;background:var(--emfe-w-table-currentuser-bg, #533a34);font-size:0.8rem;line-height:1.2}.LeaderboardCell .TooltipsRow{border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-top:0}.LeaderboardCell .TooltipsRow .ExclamationMark{fill:var(--emfe-w-color-exclamation, #fecf00)}.LeaderboardCell .TooltipsRow .LeftTableTd{padding:0 0 10px 0;font-size:12px;color:var(--emfe-w-color-tooltips, #fecf00)}.LeaderboardCell .TableCell{padding:10px;flex:2;text-align:center}.LeaderboardCell .TableRank{flex:1 50px}.LeaderboardCell .TablePlayer{flex:5}.LeaderboardCell .TablePrize{flex:5}.LeaderboardCell .Qualified{color:var(--emfe-w-highlight, #debb05)}.LeaderboardCell .ExclamationMark{vertical-align:text-top;width:14px;height:14px;fill:var(--emfe-w-color-exclamation, #fecf00)}.LeaderboardCell .TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.LeaderboardCell .TournamentsTable{width:100%;display:flex;justify-content:space-between;text-align:center;margin-top:10px}.LeaderboardCell .LeftTable{width:100%;border-collapse:collapse}.LeaderboardCell .RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.LeaderboardCell .RightButton.MobileClass{height:50px}.LeaderboardCell .FirstRow{outline:2px solid #1B9800}.LeaderboardCell .FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.LeaderboardCell .FirstRow .RankCol{position:relative;width:max-content;display:inline}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.LeaderboardCell .Show{display:inline-flex}.LeaderboardCell .Hidden{display:none}.LeaderboardCell .svg.Arrow.Up,.LeaderboardCell .svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite;width:14px;height:14px}.LeaderboardCell .svg.Arrow.Up.Show,.LeaderboardCell .svg.Arrow.Down.Show{display:inline-flex}.LeaderboardCell .svg.Arrow.Up.Hidden,.LeaderboardCell .svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}.LeaderboardCell .TournamentsTable .LeftTable{width:100%;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{padding:0.8rem 1.25rem;height:30px;top:0;color:var(--emfe-w-color-white, #FFFFFF)}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{margin:0;vertical-align:top;text-align:inherit;font-size:11px;max-width:20%}.LeaderboardCell .TournamentsTable .LeftTable .PrizeIcon{vertical-align:middle}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd:first-child{left:0;top:auto;width:10rem}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}.LeaderboardCell .flex{display:flex;align-items:center}.LeaderboardCell .CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}.layout-default.MobileContainer .Cells.LeftSection{width:auto}.layout-default .Cells{line-height:18px}.layout-default .Cells.LeftSection{margin:10px;width:29%;border:solid 1px #30313c}.layout-default .BackButtonCell{width:100%}.layout-default .RightSection{flex:auto}.layout-default .Cells.ThumbnailCell{margin:0px}.layout-default .DetailInfo{padding:12px;height:auto}.layout-default .Tag{top:20px;min-height:30px}.layout-default .Tag .TagContent{padding:7px 10px;text-transform:uppercase;font-size:12px;background:var(--emfe-w-color-black, #000000)}.layout-default .SeeGamesLine .GamesAnchor{color:var(--emfe-w-color-green, #48952a)}.layout-default .StatusTag{right:20px}.layout-default .UserEnrollTag{left:15px}.layout-default .UserEnrollTag .Enrolled{color:var(--emfe-w-color-gray-150, #828282)}.layout-default .TournamentDuration{font-size:10px}.layout-default .StartDateCell .Date{text-transform:uppercase}.layout-default .PrizesCell{padding:10px 0px 0px}.layout-default .PrizesCell .TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.layout-default .PrizesCell .PrizesTitle{padding-top:5px}.layout-default .PrizesCell .Prizes,.layout-default .PrizesCell .ColPrizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:10px;width:auto;min-height:50px;padding-top:8px}.layout-default .PrizesCell .Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.layout-default .PrizesCell .Prize .PrizeText{color:var(--emfe-w-color-white, #FFFFFF)}.layout-default .Prize0 .PrizeRank,.layout-default .Prize1 .PrizeRank,.layout-default .Prize2 .PrizeRank{color:#FECF00}.layout-default .ScoreCriteriaCell .ScoreCriteria{font-size:12px}.layout-default .DurationCell{margin-bottom:25px;margin-top:0px}.layout-default .JoinButtonCell{margin-bottom:20px}.layout-default .JoinButtonCell .TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0px;width:100%}.layout-default .JoinButtonCell .LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.layout-default .JoinButtonCell .LoginButton:hover{opacity:0.7}.layout-default .JoinButtonCell .RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .RegisterButton:hover{opacity:0.7}.layout-default .JoinButtonCell .DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .DetailsButton:hover{opacity:0.7}.layout-default .JoinButtonCell .DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .DetailsLargeButton:hover{opacity:0.7}.layout-default .JoinButtonCell .EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.layout-default .JoinButtonCell .JoinButton{background:var(--emfe-w-color-green, #48952a);width:100%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.layout-default .JoinButtonCell .JoinButton:hover{opacity:0.7}.layout-default .JoinButtonCell .JoinButton:disabled{cursor:default;opacity:0.7}.layout-default .JoinButtonCell .JoinButtonFullSize{width:100%}.layout-default .JoinButtonCell .ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.layout-default .LeaderboardCell .Qualified{color:var(--emfe-w-highlight, #debb05)}.layout-default .LeaderboardCell .TournamentsTable .LeftTableTh{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{border-bottom:0px none}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{color:var(--emfe-w-color-white, #FFFFFF)}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{margin:0;padding:0.95rem;vertical-align:top;text-align:inherit;font-size:11px;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}.layout-wm{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column}.layout-wm.MobileContainer .Cells.RowContent{flex-direction:column;width:100%}.layout-wm.MobileContainer .StartDateCell{left:35%}.layout-wm.MobileContainer .PrizesCell .Prizes{margin-bottom:8px}.layout-wm.MobileContainer .PrizesCell .Prizes .ColPrizes{margin:0px}.layout-wm.MobileContainer .TitleCell .Title{padding:10px}.layout-wm.MobileContainer .TournamentDuration .TournamentDates{margin-left:0px;margin-right:0px}.layout-wm.MobileContainer .PrizesCell .Prizes{flex-direction:column;gap:0px}.layout-wm .Cells{line-height:18px}.layout-wm .Cells.RowContent{flex-direction:row;width:100%}.layout-wm .DetailInfo{flex:1;height:200px;background-color:var(--emfe-w-color-bg, #153A5C);border-radius:8px;text-align:center}.layout-wm .DetailInfo .TitleTextCell{font-size:19px}.layout-wm .ThumbnailCell{position:relative;flex:1}.layout-wm .ThumbnailCell .Thumbnail{padding:8px}.layout-wm .ThumbnailCell .CardImg{border-radius:5px;height:180px;padding:10px 0px}.layout-wm .Tag .TagContent{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:7px}.layout-wm .StartDateCell{left:45%}.layout-wm .StartDateCell .Date{color:#1A2C38;background:#FF7500}.layout-wm .StartDateCell .Date .CalendarIcon{width:10px}.layout-wm .UserEnrollTag{right:15px}.layout-wm .UserEnrollTag .Enrolled{background:#24834B}.layout-wm .StatusTag{left:15px}.layout-wm .StatusTag .Status{background:#D0046C}.layout-wm .TournamentDuration .TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.layout-wm .TournamentDuration .ProgressBarWrapper{height:20px}.layout-wm .TournamentDuration .StartDate{font-size:11px;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:3px}.layout-wm .TournamentDuration .ProgressBarFill{height:6px;background:var(--emfe-w-color-green, #0072ED);border-radius:3px}.layout-wm .TournamentDuration .ProgressBar{margin:5px 20px;border-radius:3px;background-color:#0A1B2D;height:6px}.layout-wm .TournamentDuration .TournamentPrizesIconSection{display:inline-flex}.layout-wm .TournamentDuration .ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px;border-radius:3px}.layout-wm .TournamentDuration .ProgressBarFillStarting{background-color:var(--emfe-w-color-white, #FFFFFF);height:8px}.layout-wm .TournamentDuration .PrizesCell{margin-top:10px}.layout-wm .TournamentDuration .PrizesCell .TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.layout-wm .TournamentDuration .PrizesCell .TournamentPrizes{display:block;text-align:center}.layout-wm .TournamentDuration .PrizesCell .PrizesTitle{padding-top:8px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes{background-color:var(--emfe-w-color-bg, #153A5C);margin:5px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .Prize{flex-grow:1;border-bottom:1px solid rgba(206, 210, 214, 0.15);margin:2px;padding:4px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .PrizeText{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .PrizeRank{line-height:18px}.layout-wm .TournamentDuration .PrizesCell .Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.layout-wm .TournamentDuration .PrizesCell .PrizeText{border-radius:2px;padding:2px}.layout-wm .TournamentDuration .PrizesCell .Prize{flex-grow:1;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .Remaining,.layout-wm .TournamentDuration .Finished{font-size:10px;text-align:right;text-transform:uppercase}.layout-wm .TournamentDuration .Finished{color:var(--emfe-w-color-green, #48952a)}.layout-wm .ScoreCriteriaCell .ScoreCriteria{color:greenyellow}.layout-wm .TitleCell .Title{font-weight:bold;padding:15px}.layout-wm .SeeGamesLine .GamesAnchor{color:#fff}.layout-wm .PrizesCell{margin-top:10px;margin-top:10px;display:flex;width:100%;flex:1}.layout-wm .PrizesCell .TournamentPrizes{font-size:11px;width:100%}.layout-wm .PrizesCell .TournamentPrizes .TournamentPrizesIconSection{display:flex;justify-content:center;flex-direction:column;align-items:center}.layout-wm .PrizesCell .Prizes{justify-content:space-between;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px;flex-wrap:nowrap}.layout-wm .PrizesCell .Prizes .ColPrizes{flex:1;background-color:var(--emfe-w-color-bg, #153A5C);margin:5px}.layout-wm .PrizesCell .Prizes .ColPrizes .Prize{border-bottom:1px solid rgba(206, 210, 214, 0.15);margin:2px;padding:4px}.layout-wm .PrizesCell .Prizes .ColPrizes .Prize{color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeText{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeText{border-radius:2px;padding:2px}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeRank{line-height:18px}.layout-wm .PrizesCell .Prizes .Prize0 .PrizeText{background-color:var(--emfe-rank-1-color, #7E6C22)}.layout-wm .PrizesCell .Prizes .Prize1 .PrizeText{background-color:var(--emfe-rank-1-color, #666666)}.layout-wm .PrizesCell .Prizes .Prize2 .PrizeText{background-color:var(--emfe-rank-1-color, #6A5446)}.layout-wm .JoinButtonCell{margin:7px 0px}.layout-wm .JoinButtonCell .JoinButtonSvg{display:none}.layout-wm .JoinButtonCell .spinner .circle{stroke:var(--emfe-w-color-contrast, #d5d5e4)}.layout-wm .JoinButtonCell .LoginButton,.layout-wm .JoinButtonCell .RegisterButton,.layout-wm .JoinButtonCell .JoinButton{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;width:104px;height:36px;background:#0072ED;border-radius:3px;border:0px none;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.layout-wm .JoinButtonCell .LoginButton .JoinButtonSvg,.layout-wm .JoinButtonCell .RegisterButton .JoinButtonSvg,.layout-wm .JoinButtonCell .JoinButton .JoinButtonSvg{width:15px;height:15px;margin-left:10px}.layout-wm .DescriptionAndTermConditions{flex:1}.layout-wm .LeaderboardCell{flex:1}.layout-wm .LeaderboardCell .TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.layout-wm .LeaderboardCell .FirstRow{outline:2px solid #1B9800}.layout-wm .LeaderboardCell .FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.layout-wm .LeaderboardCell .FirstRow .RankCol{position:relative;width:max-content;display:inline}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{background-color:var(--emfe-w-color-bg, #153A5C);border-bottom:12px solid var(--emfe-w-color-black, #000000)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTbody{background-color:var(--emfe-w-color-bg, #153A5C)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{color:var(--emfe-w-color-white, #FFFFFF);border-bottom:1px solid rgba(206, 210, 214, 0.15)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .CellContent{margin:5px 0;vertical-align:middle;line-height:22px}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .PrizeIcon{vertical-align:middle}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank1Tr .CellContent{background:var(--emfe-rank-1-color, #7E6C22)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank2Tr .CellContent{background:var(--emfe-rank-2-color, #666666)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank3Tr .CellContent{background:var(--emfe-rank-3-color, #6A5446)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .FirstRow .CellContent{background:var(--emfe-rank-user-color, #12753A)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd:first-child{left:0;top:auto;width:10rem}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{border:8px solid #153A5C;border-bottom:10px solid #000}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTbody{border:8px solid #153A5C;border-top:10px solid #000}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}',this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},xs,Ts,a,{layoutid:0,session:8,userid:9,tourid:10,endpoint:11,cmsendpoint:12,lang:13,navigationbackbutton:14,currency:15,tablelimit:16,namemask:17,showunqualifiedplayer:18,mobiletablelimit:19,updatetableintime:20,viewmode:21,minscore:22,scorefractiondigit:23,loginevent:24,registerevent:25,loginurl:26,registerurl:27,limit:28,offset:29,leaderboardoffset:30,leaderboardlimit:31,keepbrowsercontext:32,showrankasimage:33},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["layoutid","session","userid","tourid","endpoint","cmsendpoint","lang","navigationbackbutton","currency","tablelimit","namemask","showunqualifiedplayer","mobiletablelimit","updatetableintime","viewmode","minscore","scorefractiondigit","loginevent","registerevent","loginurl","registerurl","limit","offset","leaderboardoffset","leaderboardlimit","keepbrowsercontext","showrankasimage"]}get layoutid(){return this.$$.ctx[0]}set layoutid(e){this.$$set({layoutid:e}),I()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),I()}get tourid(){return this.$$.ctx[10]}set tourid(e){this.$$set({tourid:e}),I()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),I()}get cmsendpoint(){return this.$$.ctx[12]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),I()}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),I()}get navigationbackbutton(){return this.$$.ctx[14]}set navigationbackbutton(e){this.$$set({navigationbackbutton:e}),I()}get currency(){return this.$$.ctx[15]}set currency(e){this.$$set({currency:e}),I()}get tablelimit(){return this.$$.ctx[16]}set tablelimit(e){this.$$set({tablelimit:e}),I()}get namemask(){return this.$$.ctx[17]}set namemask(e){this.$$set({namemask:e}),I()}get showunqualifiedplayer(){return this.$$.ctx[18]}set showunqualifiedplayer(e){this.$$set({showunqualifiedplayer:e}),I()}get mobiletablelimit(){return this.$$.ctx[19]}set mobiletablelimit(e){this.$$set({mobiletablelimit:e}),I()}get updatetableintime(){return this.$$.ctx[20]}set updatetableintime(e){this.$$set({updatetableintime:e}),I()}get viewmode(){return this.$$.ctx[21]}set viewmode(e){this.$$set({viewmode:e}),I()}get minscore(){return this.$$.ctx[22]}set minscore(e){this.$$set({minscore:e}),I()}get scorefractiondigit(){return this.$$.ctx[23]}set scorefractiondigit(e){this.$$set({scorefractiondigit:e}),I()}get loginevent(){return this.$$.ctx[24]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[25]}set registerevent(e){this.$$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[26]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[27]}set registerurl(e){this.$$set({registerurl:e}),I()}get limit(){return this.$$.ctx[28]}set limit(e){this.$$set({limit:e}),I()}get offset(){return this.$$.ctx[29]}set offset(e){this.$$set({offset:e}),I()}get leaderboardoffset(){return this.$$.ctx[30]}set leaderboardoffset(e){this.$$set({leaderboardoffset:e}),I()}get leaderboardlimit(){return this.$$.ctx[31]}set leaderboardlimit(e){this.$$set({leaderboardlimit:e}),I()}get keepbrowsercontext(){return this.$$.ctx[32]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),I()}get showrankasimage(){return this.$$.ctx[33]}set showrankasimage(e){this.$$set({showrankasimage:e}),I()}}return!customElements.get("casino-tournaments-customize-page-controller")&&customElements.define("casino-tournaments-customize-page-controller",_s),_s}));
|
|
1618
|
+
locale.set(_locale);*/}({withLocale:g,translations:{}});const W=(e,t)=>{let n=e.rows,r=e=>{e&&e.length&&e.forEach((e=>{e.isCellContainer||((e,t)=>{let n=e.componentAttrs||{};n&&Object.keys(n).forEach((e=>{t.hasOwnProperty(e)&&(n[e]=t[e])}))})(e,t),r(e.subComponents)}))};n.forEach((e=>{r(e.cols)}))},q=e=>{if(e.data)try{let t=JSON.parse(e.data);"TournamentUpdate"==t.messageType&&(window.postMessage({type:"UpdateTournamentView",tournamentData:t.item},window.location.href),J(t.item))}catch(e){console.error(e)}},J=e=>{a=Y.transfer(e),I.tournamentData=a,a.lang=g,r(2,j=is(rs[l]||rs.default,I))},Z=(e,t)=>{let n=new URL(e+`/tournaments/${t}`),i=new Headers({"X-SessionId":u});n.searchParams.append("platform",ti(H)),n.searchParams.append("language",g);let l=n.searchParams.toString(),c={method:"GET",headers:i};fetch(n.href,c).then((e=>e.json())).then((e=>{e.success?(r(3,s=null),e.item.id=f,J(e.item),a.lang=g,W(j,a),r(2,j=Object.assign({},j)),r(4,V=!1),((e,t)=>{let n=`${m}/tournaments/updates?filter=id=${e}&${t}`;o&&(o.removeEventListener("message",q),o.close()),o=new ni.EventSourcePolyfill(n,{headers:{accept:"text/event-stream","X-SessionId":u}}),o.addEventListener("message",q)})(f,l)):r(3,s=`Faild to load data, details: ${e.errorMessage}`)}))},K=D(),X=(e,t,n)=>{if(!j.rows||0==j.rows.length)return;let i=j.rows[0].cols;e.forEach((e=>{let r,o=t=>{t.forEach(((t,n)=>r||(t.componentid==e?(r=t,r):t.subComponents&&t.subComponents.length>0?o(t.subComponents):void 0)))};o(i);let a=K.$$.props,s=K.$$.ctx;r&&t.forEach((e=>{if(n)return void(r.componentAttrs[e]=I.tournamentData[e]);let t=a[e],i=s[t];I.ctrlProperties[e]=i,r.componentAttrs[e]=i}))})),r(2,j=Object.assign({},j))},Q=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&(I.tournamentData.userenrolled=e.data.userenrolled)};let ee;return M((()=>(r(34,G=!0),r(0,l=rs[l]?l:"default"),r(1,U=ei(H)),I.ctrlProperties=n,window.addEventListener("message",Q),()=>{window.removeEventListener("message",Q)}))),e.$$set=e=>{r(57,n=t(t({},n),h(e))),"layoutid"in e&&r(0,l=e.layoutid),"session"in e&&r(8,u=e.session),"userid"in e&&r(9,c=e.userid),"tourid"in e&&r(10,f=e.tourid),"endpoint"in e&&r(11,m=e.endpoint),"cmsendpoint"in e&&r(12,p=e.cmsendpoint),"lang"in e&&r(13,g=e.lang),"navigationbackbutton"in e&&r(14,b=e.navigationbackbutton),"currency"in e&&r(15,y=e.currency),"tablelimit"in e&&r(16,w=e.tablelimit),"namemask"in e&&r(17,C=e.namemask),"showunqualifiedplayer"in e&&r(18,v=e.showunqualifiedplayer),"mobiletablelimit"in e&&r(19,T=e.mobiletablelimit),"updatetableintime"in e&&r(20,x=e.updatetableintime),"viewmode"in e&&r(21,_=e.viewmode),"minscore"in e&&r(22,k=e.minscore),"scorefractiondigit"in e&&r(23,S=e.scorefractiondigit),"loginevent"in e&&r(24,P=e.loginevent),"registerevent"in e&&r(25,E=e.registerevent),"loginurl"in e&&r(26,$=e.loginurl),"registerurl"in e&&r(27,L=e.registerurl),"limit"in e&&r(28,R=e.limit),"offset"in e&&r(29,B=e.offset),"leaderboardoffset"in e&&r(30,F=e.leaderboardoffset),"leaderboardlimit"in e&&r(31,O=e.leaderboardlimit),"keepbrowsercontext"in e&&r(32,z=e.keepbrowsercontext),"showrankasimage"in e&&r(33,N=e.showrankasimage)},e.$$.update=()=>{/*endpoint, session, userid, lang, tourid*/12032&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&m&&u&&c&&g&&f&&Z(m,f),/*session, userid*/768&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&u&&c&&setTimeout((()=>{X(["LeaderboardCell","GamesCell"],["session","userid"])}),100),/*showunqualifiedplayer, scorefractiondigit, tablelimit*/8716288&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&v&&S&&w&&X(["LeaderboardCell"],["showunqualifiedplayer","scorefractiondigit","tablelimit"]),/*layoutid*/1&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&l&&(a?(r(0,l=rs[l]?l:"default"),r(2,j=is(rs[l],I))):console.log("tournamentData undefined"))},n=h(n),[l,U,j,s,V,ee,i,(e,t)=>{t.onLoad&&t.onLoad()},u,c,f,m,p,g,b,y,w,C,v,T,x,_,k,S,P,E,$,L,R,B,F,O,z,N,G,function(e){A[e?"unshift":"push"]((()=>{ee=e,r(5,ee)}))}]}class Ps extends V{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-size:12px;font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, 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}.casino-tournaments-customize-page-controller{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;padding-top:15px}.MobileContainer{flex-wrap:nowrap;flex-direction:column;align-items:initial}.MobileContainer .Cells.RowContent{display:flex;flex-direction:column;width:100%}.row-70-center{margin:auto;width:70%}.Cells.RowContent{display:flex;flex-direction:row;width:100%}.BackButtonCell .TopButtons{display:inline-flex;flex-direction:column;font-size:10px}.BackButtonCell .BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButtonCell .BackButton .ButtonText{font-size:24px}.DurationCell .Remaining{text-align:center}.TitleCell .Title{font-size:18px;padding-bottom:10px}.SeeGamesLine .GamesAnchor{text-decoration:underline}.JoinButtonCell{display:flex;justify-content:center;gap:5px;flex-direction:column;align-items:center}.JoinButtonCell .ErrorText{color:red}.JoinButtonCell .spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}.JoinButtonCell .spinner .circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}.Tag{position:absolute;top:15px;font-size:12px}.ThumbnailCell{position:relative}.ThumbnailCell .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}.ThumbnailCell .CardImg.CardImgFinished{filter:grayscale(1)}.DetailInfo{display:flex;flex-direction:column;padding:8px;min-height:200px;border-radius:8px}.DetailInfo .TitleTextCell{font-size:19px}.PrizesCell .PrizeRank{display:flex;padding-right:3px}.PrizesCell .Prize .PrizeText{display:flex}.ScoreCriteriaCell{font-size:11px}.TournamentDuration .TournamentDates{display:flex;justify-content:space-between}.TournamentDuration .StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.TournamentDuration .EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.TournamentDuration .ProgressBar{height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.TournamentDuration .ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentDuration .ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.TournamentDuration .TournamentPrizesIconSection{display:inline-flex}.TournamentDuration .ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.TournamentDuration .ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.TournamentDuration .Remaining,.TournamentDuration .Finished{text-align:right;text-transform:uppercase}.TournamentDuration .Finished{color:var(--emfe-w-color-green, #48952a)}.GamesCell{width:100%}.GamesCell .TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center;align-items:center}.GamesCell .SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;cursor:pointer}.GamesCell .SliderNavButton.disabled{color:var(--emfe-w-color-gray-150, #828282)}.GamesCell .main{width:calc(100% - 50px);overflow:hidden}.GamesCell .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.GamesCell .item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.GamesCell .item .GameThumbnail{height:100%}.GamesCell .PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesCell .itemHover{opacity:1}.GamesCell .items .item:first-child{margin-left:0}.GamesCell .items .item:last-child{margin-right:0}.TitleTextCell .Title,.DescriptionCell .Title{text-transform:uppercase}.TitleTextCell .DetailsCard,.DescriptionCell .DetailsCard{line-height:18px;border:1px solid var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.TitleTextCell .DetailsTitle,.DescriptionCell .DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-color-contrast, #07072A)}.TitleTextCell .DetailsContent,.DescriptionCell .DetailsContent{overflow:auto;height:150px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.TitleTextCell .sc::-webkit-scrollbar,.DescriptionCell .sc::-webkit-scrollbar{width:5px;height:5px}.TitleTextCell .sc::-webkit-scrollbar-track,.DescriptionCell .sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.TitleTextCell .sc::-webkit-scrollbar-thumb,.DescriptionCell .sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}.LeaderboardCell .LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.LeaderboardCell .Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.LeaderboardCell .TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.LeaderboardCell .TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.LeaderboardCell .TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.LeaderboardCell .TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.LeaderboardCell .TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.LeaderboardCell .TableUser.UnqualifiedRow{border-bottom:0}.LeaderboardCell .TableUserTooltips{display:flex;gap:4px;flex-direction:row;width:100%;padding:10px 0;background:var(--emfe-w-table-currentuser-bg, #533a34);font-size:0.8rem;line-height:1.2}.LeaderboardCell .TooltipsRow{border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-top:0}.LeaderboardCell .TooltipsRow .ExclamationMark{fill:var(--emfe-w-color-exclamation, #fecf00)}.LeaderboardCell .TooltipsRow .LeftTableTd{padding:0 0 10px 0;font-size:12px;color:var(--emfe-w-color-tooltips, #fecf00)}.LeaderboardCell .TableCell{padding:10px;flex:2;text-align:center}.LeaderboardCell .TableRank{flex:1 50px}.LeaderboardCell .TablePlayer{flex:5}.LeaderboardCell .TablePrize{flex:5}.LeaderboardCell .Qualified{color:var(--emfe-w-highlight, #debb05)}.LeaderboardCell .ExclamationMark{vertical-align:text-top;width:14px;height:14px;fill:var(--emfe-w-color-exclamation, #fecf00)}.LeaderboardCell .TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.LeaderboardCell .TournamentsTable{width:100%;display:flex;justify-content:space-between;text-align:center;margin-top:10px}.LeaderboardCell .LeftTable{width:100%;border-collapse:collapse}.LeaderboardCell .RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.LeaderboardCell .RightButton.MobileClass{height:50px}.LeaderboardCell .FirstRow{outline:2px solid #1B9800}.LeaderboardCell .FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.LeaderboardCell .FirstRow .RankCol{position:relative;width:max-content;display:inline}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.LeaderboardCell .Show{display:inline-flex}.LeaderboardCell .Hidden{display:none}.LeaderboardCell .svg.Arrow.Up,.LeaderboardCell .svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite;width:14px;height:14px}.LeaderboardCell .svg.Arrow.Up.Show,.LeaderboardCell .svg.Arrow.Down.Show{display:inline-flex}.LeaderboardCell .svg.Arrow.Up.Hidden,.LeaderboardCell .svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}.LeaderboardCell .TournamentsTable .LeftTable{width:100%;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{padding:0.8rem 1.25rem;height:30px;top:0;color:var(--emfe-w-color-white, #FFFFFF)}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{margin:0;vertical-align:top;text-align:inherit;font-size:11px;max-width:20%}.LeaderboardCell .TournamentsTable .LeftTable .PrizeIcon{vertical-align:middle}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd:first-child{left:0;top:auto;width:10rem}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}.LeaderboardCell .flex{display:flex;align-items:center}.LeaderboardCell .CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}.layout-default.MobileContainer .Cells.LeftSection{width:auto}.layout-default .Cells{line-height:18px}.layout-default .Cells.LeftSection{margin:10px;width:29%;border:solid 1px #30313c}.layout-default .BackButtonCell{width:100%}.layout-default .RightSection{flex:auto}.layout-default .Cells.ThumbnailCell{margin:0px}.layout-default .DetailInfo{padding:12px;height:auto}.layout-default .Tag{top:20px;min-height:30px}.layout-default .Tag .TagContent{padding:7px 10px;text-transform:uppercase;font-size:12px;background:var(--emfe-w-color-black, #000000)}.layout-default .SeeGamesLine .GamesAnchor{color:var(--emfe-w-color-green, #48952a)}.layout-default .StatusTag{right:20px}.layout-default .UserEnrollTag{left:15px}.layout-default .UserEnrollTag .Enrolled{color:var(--emfe-w-color-gray-150, #828282)}.layout-default .TournamentDuration{font-size:10px}.layout-default .StartDateCell .Date{text-transform:uppercase}.layout-default .PrizesCell{padding:10px 0px 0px}.layout-default .PrizesCell .TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.layout-default .PrizesCell .PrizesTitle{padding-top:5px}.layout-default .PrizesCell .Prizes,.layout-default .PrizesCell .ColPrizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:10px;width:auto;min-height:50px;padding-top:8px}.layout-default .PrizesCell .Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.layout-default .PrizesCell .Prize .PrizeText{color:var(--emfe-w-color-white, #FFFFFF)}.layout-default .Prize0 .PrizeRank,.layout-default .Prize1 .PrizeRank,.layout-default .Prize2 .PrizeRank{color:#FECF00}.layout-default .ScoreCriteriaCell .ScoreCriteria{font-size:12px}.layout-default .DurationCell{margin-bottom:25px;margin-top:0px}.layout-default .JoinButtonCell{margin-bottom:20px}.layout-default .JoinButtonCell .TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0px;width:100%}.layout-default .JoinButtonCell .LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.layout-default .JoinButtonCell .LoginButton:hover{opacity:0.7}.layout-default .JoinButtonCell .RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .RegisterButton:hover{opacity:0.7}.layout-default .JoinButtonCell .DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .DetailsButton:hover{opacity:0.7}.layout-default .JoinButtonCell .DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .DetailsLargeButton:hover{opacity:0.7}.layout-default .JoinButtonCell .EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.layout-default .JoinButtonCell .JoinButton{background:var(--emfe-w-color-green, #48952a);width:100%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.layout-default .JoinButtonCell .JoinButton:hover{opacity:0.7}.layout-default .JoinButtonCell .JoinButton:disabled{cursor:default;opacity:0.7}.layout-default .JoinButtonCell .JoinButtonFullSize{width:100%}.layout-default .JoinButtonCell .ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.layout-default .LeaderboardCell .Qualified{color:var(--emfe-w-highlight, #debb05)}.layout-default .LeaderboardCell .TournamentsTable .LeftTableTh{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{border-bottom:0px none}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{color:var(--emfe-w-color-white, #FFFFFF)}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{margin:0;padding:0.95rem;vertical-align:top;text-align:inherit;font-size:11px;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}.layout-wm{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column}.layout-wm.MobileContainer .Cells.RowContent{flex-direction:column;width:100%}.layout-wm.MobileContainer .StartDateCell{left:35%}.layout-wm.MobileContainer .PrizesCell .Prizes{margin-bottom:8px}.layout-wm.MobileContainer .PrizesCell .Prizes .ColPrizes{margin:0px}.layout-wm.MobileContainer .TitleCell .Title{padding:10px}.layout-wm.MobileContainer .TournamentDuration .TournamentDates{margin-left:0px;margin-right:0px}.layout-wm.MobileContainer .PrizesCell .Prizes{flex-direction:column;gap:0px}.layout-wm .Cells{line-height:18px}.layout-wm .Cells.RowContent{flex-direction:row;width:100%}.layout-wm .DetailInfo{flex:1;height:200px;background-color:var(--emfe-w-color-bg, #153A5C);border-radius:8px;text-align:center}.layout-wm .DetailInfo .TitleTextCell{font-size:19px}.layout-wm .ThumbnailCell{position:relative;flex:1}.layout-wm .ThumbnailCell .Thumbnail{padding:8px}.layout-wm .ThumbnailCell .CardImg{border-radius:5px;height:180px;padding:10px 0px}.layout-wm .Tag .TagContent{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:7px}.layout-wm .StartDateCell{left:45%}.layout-wm .StartDateCell .Date{color:#1A2C38;background:#FF7500}.layout-wm .StartDateCell .Date .CalendarIcon{width:10px}.layout-wm .UserEnrollTag{right:15px}.layout-wm .UserEnrollTag .Enrolled{background:#24834B}.layout-wm .StatusTag{left:15px}.layout-wm .StatusTag .Status{background:#D0046C}.layout-wm .TournamentDuration .TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.layout-wm .TournamentDuration .ProgressBarWrapper{height:20px}.layout-wm .TournamentDuration .StartDate{font-size:11px;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:3px}.layout-wm .TournamentDuration .ProgressBarFill{height:6px;background:var(--emfe-w-color-green, #0072ED);border-radius:3px}.layout-wm .TournamentDuration .ProgressBar{margin:5px 20px;border-radius:3px;background-color:#0A1B2D;height:6px}.layout-wm .TournamentDuration .TournamentPrizesIconSection{display:inline-flex}.layout-wm .TournamentDuration .ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px;border-radius:3px}.layout-wm .TournamentDuration .ProgressBarFillStarting{background-color:var(--emfe-w-color-white, #FFFFFF);height:8px}.layout-wm .TournamentDuration .PrizesCell{margin-top:10px}.layout-wm .TournamentDuration .PrizesCell .TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.layout-wm .TournamentDuration .PrizesCell .TournamentPrizes{display:block;text-align:center}.layout-wm .TournamentDuration .PrizesCell .PrizesTitle{padding-top:8px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes{background-color:var(--emfe-w-color-bg, #153A5C);margin:5px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .Prize{flex-grow:1;border-bottom:1px solid rgba(206, 210, 214, 0.15);margin:2px;padding:4px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .PrizeText{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .PrizeRank{line-height:18px}.layout-wm .TournamentDuration .PrizesCell .Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.layout-wm .TournamentDuration .PrizesCell .PrizeText{border-radius:2px;padding:2px}.layout-wm .TournamentDuration .PrizesCell .Prize{flex-grow:1;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .Remaining,.layout-wm .TournamentDuration .Finished{font-size:10px;text-align:right;text-transform:uppercase}.layout-wm .TournamentDuration .Finished{color:var(--emfe-w-color-green, #48952a)}.layout-wm .ScoreCriteriaCell .ScoreCriteria{color:greenyellow}.layout-wm .TitleCell .Title{font-weight:bold;padding:15px}.layout-wm .SeeGamesLine .GamesAnchor{color:#fff}.layout-wm .PrizesCell{margin-top:10px;margin-top:10px;display:flex;width:100%;flex:1}.layout-wm .PrizesCell .TournamentPrizes{font-size:11px;width:100%}.layout-wm .PrizesCell .TournamentPrizes .TournamentPrizesIconSection{display:flex;justify-content:center;flex-direction:column;align-items:center}.layout-wm .PrizesCell .Prizes{justify-content:space-between;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px;flex-wrap:nowrap}.layout-wm .PrizesCell .Prizes .ColPrizes{flex:1;background-color:var(--emfe-w-color-bg, #153A5C);margin:5px}.layout-wm .PrizesCell .Prizes .ColPrizes .Prize{border-bottom:1px solid rgba(206, 210, 214, 0.15);margin:2px;padding:4px}.layout-wm .PrizesCell .Prizes .ColPrizes .Prize{color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeText{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeText{border-radius:2px;padding:2px}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeRank{line-height:18px}.layout-wm .PrizesCell .Prizes .Prize0 .PrizeText{background-color:var(--emfe-rank-1-color, #7E6C22)}.layout-wm .PrizesCell .Prizes .Prize1 .PrizeText{background-color:var(--emfe-rank-1-color, #666666)}.layout-wm .PrizesCell .Prizes .Prize2 .PrizeText{background-color:var(--emfe-rank-1-color, #6A5446)}.layout-wm .JoinButtonCell{margin:7px 0px}.layout-wm .JoinButtonCell .JoinButtonSvg{display:none}.layout-wm .JoinButtonCell .spinner .circle{stroke:var(--emfe-w-color-contrast, #d5d5e4)}.layout-wm .JoinButtonCell .LoginButton,.layout-wm .JoinButtonCell .RegisterButton,.layout-wm .JoinButtonCell .JoinButton{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;width:104px;height:36px;background:#0072ED;border-radius:3px;border:0px none;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.layout-wm .JoinButtonCell .LoginButton .JoinButtonSvg,.layout-wm .JoinButtonCell .RegisterButton .JoinButtonSvg,.layout-wm .JoinButtonCell .JoinButton .JoinButtonSvg{width:15px;height:15px;margin-left:10px}.layout-wm .TranslateTextCell{padding-left:26px;height:35px;line-height:27px !important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='25' viewBox='0 0 21 25' fill='none'%3E%3Cpath d='M6.1774 22.1728C6.36493 22.2725 6.56274 22.0566 6.44793 21.8779C5.82475 20.908 5.23463 19.2759 6.17483 17.174C7.74273 13.6689 8.6968 11.8535 8.6968 11.8535C8.6968 11.8535 9.20426 13.9721 10.5799 15.8558C11.9038 17.6687 12.6285 19.9488 11.4602 21.8482C11.3506 22.0265 11.5439 22.2368 11.7302 22.1415C13.1763 21.4017 14.7983 19.9179 14.9813 16.965C15.0488 16.0627 14.9476 14.7995 14.4416 13.2054C13.791 11.185 12.9911 10.2423 12.5283 9.83741C12.3899 9.71629 12.1746 9.82363 12.1859 10.0072C12.3208 12.1872 11.5007 12.7404 11.0339 11.4937C10.8474 10.9957 10.7387 10.1344 10.7387 9.08558C10.7387 7.3394 10.2321 5.54188 9.1152 4.0812C8.82475 3.70134 8.4849 3.3464 8.09498 3.04372C7.95382 2.93411 7.74919 3.04428 7.76212 3.22252C7.84788 4.40628 7.77018 7.79884 4.79383 11.8519C2.09515 15.6115 3.14088 18.4989 3.51195 19.281C4.2214 20.7791 5.21098 21.6589 6.1774 22.1728Z' fill='white'/%3E%3C/svg%3E\");background-repeat:no-repeat;width:fit-content}.layout-wm .DescriptionAndTermConditions{flex:1}.layout-wm .LeaderboardCell{flex:1}.layout-wm .LeaderboardCell .TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.layout-wm .LeaderboardCell .FirstRow{outline:2px solid #1B9800}.layout-wm .LeaderboardCell .FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.layout-wm .LeaderboardCell .FirstRow .RankCol{position:relative;width:max-content;display:inline}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{background-color:var(--emfe-w-color-bg, #153A5C);border-bottom:12px solid var(--emfe-w-color-black, #000000)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTbody{background-color:var(--emfe-w-color-bg, #153A5C)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{color:var(--emfe-w-color-white, #FFFFFF);border-bottom:1px solid rgba(206, 210, 214, 0.15)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .CellContent{margin:5px 0;vertical-align:middle;line-height:22px}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .PrizeIcon{vertical-align:middle}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank1Tr .CellContent{background:var(--emfe-rank-1-color, #7E6C22)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank2Tr .CellContent{background:var(--emfe-rank-2-color, #666666)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank3Tr .CellContent{background:var(--emfe-rank-3-color, #6A5446)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .FirstRow .CellContent{background:var(--emfe-rank-user-color, #12753A)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd:first-child{left:0;top:auto;width:10rem}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{border:8px solid #153A5C;border-bottom:10px solid #000}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTbody{border:8px solid #153A5C;border-top:10px solid #000}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ss,ks,a,{layoutid:0,session:8,userid:9,tourid:10,endpoint:11,cmsendpoint:12,lang:13,navigationbackbutton:14,currency:15,tablelimit:16,namemask:17,showunqualifiedplayer:18,mobiletablelimit:19,updatetableintime:20,viewmode:21,minscore:22,scorefractiondigit:23,loginevent:24,registerevent:25,loginurl:26,registerurl:27,limit:28,offset:29,leaderboardoffset:30,leaderboardlimit:31,keepbrowsercontext:32,showrankasimage:33},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["layoutid","session","userid","tourid","endpoint","cmsendpoint","lang","navigationbackbutton","currency","tablelimit","namemask","showunqualifiedplayer","mobiletablelimit","updatetableintime","viewmode","minscore","scorefractiondigit","loginevent","registerevent","loginurl","registerurl","limit","offset","leaderboardoffset","leaderboardlimit","keepbrowsercontext","showrankasimage"]}get layoutid(){return this.$$.ctx[0]}set layoutid(e){this.$$set({layoutid:e}),I()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),I()}get tourid(){return this.$$.ctx[10]}set tourid(e){this.$$set({tourid:e}),I()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),I()}get cmsendpoint(){return this.$$.ctx[12]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),I()}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),I()}get navigationbackbutton(){return this.$$.ctx[14]}set navigationbackbutton(e){this.$$set({navigationbackbutton:e}),I()}get currency(){return this.$$.ctx[15]}set currency(e){this.$$set({currency:e}),I()}get tablelimit(){return this.$$.ctx[16]}set tablelimit(e){this.$$set({tablelimit:e}),I()}get namemask(){return this.$$.ctx[17]}set namemask(e){this.$$set({namemask:e}),I()}get showunqualifiedplayer(){return this.$$.ctx[18]}set showunqualifiedplayer(e){this.$$set({showunqualifiedplayer:e}),I()}get mobiletablelimit(){return this.$$.ctx[19]}set mobiletablelimit(e){this.$$set({mobiletablelimit:e}),I()}get updatetableintime(){return this.$$.ctx[20]}set updatetableintime(e){this.$$set({updatetableintime:e}),I()}get viewmode(){return this.$$.ctx[21]}set viewmode(e){this.$$set({viewmode:e}),I()}get minscore(){return this.$$.ctx[22]}set minscore(e){this.$$set({minscore:e}),I()}get scorefractiondigit(){return this.$$.ctx[23]}set scorefractiondigit(e){this.$$set({scorefractiondigit:e}),I()}get loginevent(){return this.$$.ctx[24]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[25]}set registerevent(e){this.$$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[26]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[27]}set registerurl(e){this.$$set({registerurl:e}),I()}get limit(){return this.$$.ctx[28]}set limit(e){this.$$set({limit:e}),I()}get offset(){return this.$$.ctx[29]}set offset(e){this.$$set({offset:e}),I()}get leaderboardoffset(){return this.$$.ctx[30]}set leaderboardoffset(e){this.$$set({leaderboardoffset:e}),I()}get leaderboardlimit(){return this.$$.ctx[31]}set leaderboardlimit(e){this.$$set({leaderboardlimit:e}),I()}get keepbrowsercontext(){return this.$$.ctx[32]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),I()}get showrankasimage(){return this.$$.ctx[33]}set showrankasimage(e){this.$$set({showrankasimage:e}),I()}}return!customElements.get("casino-tournaments-customize-page-controller")&&customElements.define("casino-tournaments-customize-page-controller",Ps),Ps}));
|
|
1617
1619
|
//# sourceMappingURL=casino-tournaments-customize-page-controller.js.map
|