@everymatrix/casino-tournaments-customize-page-controller 1.34.2 → 1.35.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.
|
@@ -101,11 +101,11 @@ function fe(e,t,n){var r={};return n.isMergeableObject(e)&&de(e).forEach((functi
|
|
|
101
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
|
-
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,Ce,we,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
|
|
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,Ce,we,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,a=t.length;i<a;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
|
*/
|
|
108
|
-
function
|
|
108
|
+
function xe(e){return e.type===Ce.literal}function _e(e){return e.type===Ce.argument}function ke(e){return e.type===Ce.number}function Pe(e){return e.type===Ce.date}function Se(e){return e.type===Ce.time}function Ee(e){return e.type===Ce.select}function $e(e){return e.type===Ce.plural}function Le(e){return e.type===Ce.pound}function De(e){return e.type===Ce.tag}function Me(e){return!(!e||"object"!=typeof e||e.type!==we.number)}function Re(e){return!(!e||"object"!=typeof e||e.type!==we.dateTime)}
|
|
109
109
|
// @generated from regex-gen.ts
|
|
110
110
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
111
111
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -204,7 +204,7 @@ e[e.pound=7]="pound",
|
|
|
204
204
|
/**
|
|
205
205
|
* XML-like tag
|
|
206
206
|
*/
|
|
207
|
-
e[e.tag=8]="tag"}(Ce||(Ce={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(we||(we={}));var
|
|
207
|
+
e[e.tag=8]="tag"}(Ce||(Ce={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(we||(we={}));var Ae=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Be=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
208
208
|
/**
|
|
209
209
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
210
210
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -216,7 +216,7 @@ e[e.tag=8]="tag"}(Ce||(Ce={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
216
216
|
* @public
|
|
217
217
|
* @param skeleton skeleton string
|
|
218
218
|
*/
|
|
219
|
-
function
|
|
219
|
+
function ze(e){var t={};return e.replace(Be,(function(e){var n=e.length;switch(e[0]){
|
|
220
220
|
// Era
|
|
221
221
|
case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
|
|
222
222
|
// Year
|
|
@@ -250,33 +250,33 @@ 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
|
|
253
|
+
var Oe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Fe=/^\.(?:(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 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
|
|
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 je(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 Ye(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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!
|
|
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=je(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
|
|
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(
|
|
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,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(o)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
|
-
if(
|
|
266
|
+
if(Ue.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Fe.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(
|
|
270
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Fe,(function(e,n,r,i,a,o){
|
|
271
271
|
// .000* case (before ICU67 it was .000+)
|
|
272
272
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];
|
|
273
273
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
274
|
-
"w"===a?t=ve(ve({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ve(ve({},t),
|
|
274
|
+
"w"===a?t=ve(ve({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ve(ve({},t),Ie(a)))}
|
|
275
275
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
276
|
-
else if(
|
|
276
|
+
else if(Ne.test(i.stem))t=ve(ve({},t),Ie(i.stem));else{var o=je(i.stem);o&&(t=ve(ve({},t),o));var s=Ye(i.stem);s&&(t=ve(ve({},t),s))}}return t}
|
|
277
277
|
// @generated from time-data-gen.ts
|
|
278
278
|
// prettier-ignore
|
|
279
|
-
var
|
|
279
|
+
var We,qe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
280
280
|
/**
|
|
281
281
|
* Returns the best matching date time pattern if a date time skeleton
|
|
282
282
|
* pattern is provided with a locale. Follows the Unicode specification:
|
|
@@ -289,7 +289,7 @@ var Je,Ze={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
289
289
|
* of the given `locale` to the corresponding time pattern.
|
|
290
290
|
* @param locale
|
|
291
291
|
*/
|
|
292
|
-
function
|
|
292
|
+
function Je(e){var t=e.hourCycle;if(void 0===t&&
|
|
293
293
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
294
294
|
e.hourCycles&&
|
|
295
295
|
// @ts-ignore
|
|
@@ -297,37 +297,37 @@ 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 n,r=e.language;return"root"!==r&&(n=e.maximize().region),(
|
|
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
|
|
303
|
+
var Qe=!!String.prototype.startsWith,et=!!String.fromCodePoint,tt=!!Object.fromEntries,nt=!!String.prototype.codePointAt,rt=!!String.prototype.trimStart,it=!!String.prototype.trimEnd,at=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ot=!0;try{
|
|
304
304
|
/**
|
|
305
305
|
* legacy Edge or Xbox One browser
|
|
306
306
|
* Unicode flag support: supported
|
|
307
307
|
* Pattern_Syntax support: not supported
|
|
308
308
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
309
309
|
*/
|
|
310
|
-
|
|
310
|
+
ot="a"===(null===(We=mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===We?void 0:We[0])}catch(e){ot=!1}var st,lt=Qe?// Native
|
|
311
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},
|
|
313
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>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},
|
|
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,a=0;i>a;){if((n=e[a++])>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
|
-
|
|
316
|
-
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],o=i[1];t[a]=o}return t},
|
|
315
|
+
tt?Object.fromEntries:// Ponyfill
|
|
316
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],o=i[1];t[a]=o}return t},dt=nt?// Native
|
|
317
317
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
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}},
|
|
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
|
-
function(e){return e.replace(
|
|
320
|
+
function(e){return e.replace(Ze,"")},ft=it?// Native
|
|
321
321
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
322
|
-
function(e){return e.replace(
|
|
322
|
+
function(e){return e.replace(Ke,"")};
|
|
323
323
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
324
|
-
function
|
|
324
|
+
function mt(e,t){return new RegExp(e,t)}
|
|
325
325
|
// #endregion
|
|
326
|
-
if(
|
|
326
|
+
if(ot){
|
|
327
327
|
// Native
|
|
328
|
-
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
|
-
|
|
330
|
+
st=function(e,t){for(var n=[];;){var r=dt(e,t);if(void 0===r||yt(r)||Ct(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((a=this.parseArgument(e,n)).err)return a;r.push(a.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((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var o=this.clonePosition();this.bump(),r.push({type:Ce.pound,location:Xe(o,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
|
|
@@ -349,14 +349,14 @@ ut=function(e,t){for(var n=[];;){var r=ft(e,t);if(void 0===r||wt(r)||vt(r))break
|
|
|
349
349
|
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
|
350
350
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
351
351
|
// Self closing tag
|
|
352
|
-
return{val:{type:Ce.literal,value:"<".concat(r,"/>"),location:
|
|
352
|
+
return{val:{type:Ce.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 a=i.val,o=this.clonePosition();
|
|
353
353
|
// Expecting a close tag
|
|
354
|
-
if(this.bumpIf("</")){if(this.isEOF()||!
|
|
354
|
+
if(this.bumpIf("</")){if(this.isEOF()||!bt(this.char()))return this.error(ye.INVALID_TAG,Xe(o,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:Ce.tag,value:r,children:a,location:Xe(n,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,Xe(o,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 n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}var s=
|
|
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 a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}var s=Xe(n,this.clonePosition());return{val:{type:Ce.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
|
|
@@ -378,67 +378,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
|
|
|
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(n);this.bump()}return
|
|
382
|
-
this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
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 r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ye.MALFORMED_ARGUMENT,
|
|
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:Ce.argument,
|
|
388
388
|
// value does not include the opening and closing braces.
|
|
389
|
-
value:r,location:
|
|
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,
|
|
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(),n=
|
|
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,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();
|
|
398
398
|
// Parse this range:
|
|
399
399
|
// {name, type, style}
|
|
400
400
|
// ^---^
|
|
401
401
|
switch(o){case"":
|
|
402
402
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
403
|
-
return this.error(ye.EXPECT_ARGUMENT_TYPE,
|
|
403
|
+
return this.error(ye.EXPECT_ARGUMENT_TYPE,Xe(a,s));case"number":case"date":case"time":
|
|
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=
|
|
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
|
-
if(l&&
|
|
409
|
+
if(l&<(null==l?void 0:l.style,"::",0)){
|
|
410
410
|
// Skeleton starts with `::`.
|
|
411
|
-
var d=
|
|
411
|
+
var d=ht(l.style.slice(2));if("number"===o)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:Ce.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 n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=
|
|
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 a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=Je(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(d,this.locale));var f={type:we.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ze(h):{}};return{val:{type:"date"===o?Ce.date:Ce.time,value:n,location:c,style:f},err:null}}
|
|
416
416
|
// Regular style or no style.
|
|
417
417
|
return{val:{type:"number"===o?Ce.number:"date"===o?Ce.date:Ce.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
|
// ^---------^
|
|
421
|
-
var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
421
|
+
var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,Xe(m,ve({},m)));this.bumpSpace();
|
|
422
422
|
// Parse offset:
|
|
423
423
|
// {name, plural, offset:1, options}
|
|
424
424
|
// ^-----^
|
|
425
425
|
// or the first option:
|
|
426
426
|
// {name, plural, one {...} other {...}}
|
|
427
427
|
// ^--^
|
|
428
|
-
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==o&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
428
|
+
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==o&&"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,C=this.tryParsePluralOrSelectOptions(e,o,t,p);if(C.err)return C;if((y=this.tryParseArgumentClose(r)).err)return y;var w=
|
|
430
|
+
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=b.val}var y,C=this.tryParsePluralOrSelectOptions(e,o,t,p);if(C.err)return C;if((y=this.tryParseArgumentClose(r)).err)return y;var w=Xe(r,this.clonePosition());return"select"===o?{val:{type:Ce.select,value:n,options:ct(C.val),location:w},err:null}:{val:{type:Ce.plural,value:n,options:ct(C.val),offset:g,pluralType:"plural"===o?"cardinal":"ordinal",location:w},err:null};default:return this.error(ye.INVALID_ARGUMENT_TYPE,Xe(a,s))}},e.prototype.tryParseArgumentClose=function(e){
|
|
431
431
|
// Parse: {value, number, ::currency/GBP }
|
|
432
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
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
|
/**
|
|
434
434
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
435
435
|
*/
|
|
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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
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=[],n=0,r=e.split(
|
|
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 a=i[0],o=i.slice(1),s=0,l=o;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(ye.INVALID_NUMBER_SKELETON,t)}return{val:{type:we.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.
|
|
@@ -455,24 +455,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
|
455
455
|
// ^--^
|
|
456
456
|
for(var i,a=!1,o=[],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
|
-
var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=
|
|
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
|
|
460
460
|
if(s.has(l))return this.error("select"===t?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),
|
|
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,
|
|
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;o.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===o.length?this.error("select"===t?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
468
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ye.MISSING_OTHER_CLAUSE,Xe(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(!(o>=48/* `0` */&&o<=57/* `9` */))break;i=!0,a=10*a+(o-48),this.bump()}var s=Xe(r,this.clonePosition());return i?at(a*=n)?{val:a,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
|
/**
|
|
472
472
|
* Return the code point at the current position of the parser.
|
|
473
473
|
* Throws if the index is out of bound.
|
|
474
474
|
*/
|
|
475
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
|
475
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=dt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
476
476
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
477
477
|
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
478
478
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
@@ -483,7 +483,7 @@ this.position.offset+=e<65536?1:2)}},
|
|
|
483
483
|
* following the prefix and return true. Otherwise, don't bump the parser
|
|
484
484
|
* and return false.
|
|
485
485
|
*/
|
|
486
|
-
e.prototype.bumpIf=function(e){if(
|
|
486
|
+
e.prototype.bumpIf=function(e){if(lt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
|
487
487
|
/**
|
|
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`.
|
|
@@ -495,7 +495,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
|
|
|
495
495
|
*/
|
|
496
496
|
e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
497
497
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
498
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
498
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yt(this.char());)this.bump()},
|
|
499
499
|
/**
|
|
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.
|
|
@@ -505,86 +505,86 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
505
505
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
506
506
|
* @param codepoint
|
|
507
507
|
* @returns
|
|
508
|
-
*/function
|
|
508
|
+
*/function bt(e){return e>=97&&e<=122||e>=65&&e<=90}
|
|
509
509
|
/**
|
|
510
510
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
511
511
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
512
512
|
*/
|
|
513
|
-
function
|
|
513
|
+
function yt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===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
|
|
517
|
+
*/function Ct(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 wt(e){e.forEach((function(e){if(delete e.location,Ee(e)||$e(e))for(var t in e.options)delete e.options[t].location,wt(e.options[t].value);else ke(e)&&Me(e.style)||(Pe(e)||Se(e))&&Re(e.style)?delete e.style.location:De(e)&&wt(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
519
|
throw r.location=n.err.location,
|
|
520
520
|
// @ts-expect-error Assign to error object
|
|
521
|
-
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||
|
|
521
|
+
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||wt(n.val),n.val}
|
|
522
522
|
|
|
523
523
|
// Main
|
|
524
524
|
|
|
525
|
-
function
|
|
525
|
+
function Tt(e,t){var n=t&&t.cache?t.cache:Lt,r=t&&t.serializer?t.serializer:St;return(t&&t.strategy?t.strategy:Pt)(e,{cache:n,serializer:r})}
|
|
526
526
|
|
|
527
527
|
// Strategy
|
|
528
528
|
|
|
529
|
-
function
|
|
529
|
+
function xt(e,t,n,r){var i,a=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),o=t.get(a);return void 0===o&&(o=e.call(this,r),t.set(a,o)),o}function _t(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return void 0===a&&(a=e.apply(this,r),t.set(i,a)),a}function kt(e,t,n,r,i){return n.bind(t,e,r,i)}function Pt(e,t){return kt(e,this,1===e.length?xt:_t,t.cache.create(),t.serializer)}
|
|
530
530
|
// Serializer
|
|
531
|
-
var
|
|
531
|
+
var St=function(){return JSON.stringify(arguments)};
|
|
532
532
|
|
|
533
533
|
// Cache
|
|
534
534
|
|
|
535
|
-
function
|
|
535
|
+
function Et(){this.cache=Object.create(null)}Et.prototype.get=function(e){return this.cache[e]},Et.prototype.set=function(e,t){this.cache[e]=t};var $t,Lt={create:function(){
|
|
536
536
|
// @ts-ignore
|
|
537
|
-
return new
|
|
537
|
+
return new Et}},Dt={variadic:function(e,t){return kt(e,this,_t,t.cache.create(),t.serializer)},monadic:function(e,t){return kt(e,this,xt,t.cache.create(),t.serializer)}};!function(e){
|
|
538
538
|
// When we have a placeholder but no value to format
|
|
539
539
|
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"}(
|
|
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),zt=/** @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
|
|
545
|
+
function Ft(e,t,n,r,i,a,
|
|
546
546
|
// For debugging
|
|
547
547
|
o){
|
|
548
548
|
// Hot path for straight simple msg translations
|
|
549
|
-
if(1===e.length&&
|
|
549
|
+
if(1===e.length&&xe(e[0]))return[{type:Mt.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
550
550
|
// Exit early for string parts.
|
|
551
|
-
if(
|
|
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(
|
|
554
|
+
if(Le(c))"number"==typeof a&&s.push({type:Mt.literal,value:n.getNumberFormat(t).format(a)});else{var d=c.value;
|
|
555
555
|
// Enforce that all required values are provided by the caller.
|
|
556
|
-
if(!i||!(d in i))throw new
|
|
556
|
+
if(!i||!(d in i))throw new zt(d,o);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(
|
|
560
|
+
if(Pe(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(Se(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",o);var b=g(Ft(m,t,n,r,i,a).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),o);s.push.apply(s,Ft(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,o);var C=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));y=c.options[C]||c.options.other}if(!y)throw new At(c.value,h,Object.keys(c.options),o);s.push.apply(s,Ft(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
|
|
567
|
+
function Nt(e,t){return t?Object.keys(e).reduce((function(n,r){var i,a;return n[r]=(i=e[r],(a=t[r])?ve(ve(ve({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=ve(ve({},i[t]),a[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 a,o=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);
|
|
568
568
|
// Hot path for straight simple msg translations
|
|
569
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===
|
|
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 Ft(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},
|
|
570
570
|
// Defined first because it's used to build the format pattern.
|
|
571
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=
|
|
576
|
+
this.formats=Nt(e.formats,r),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={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(a.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(a.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(a.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
|
|
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={},jt=(e,t,n)=>n?(t in It||(It[t]={}),e in It[t]||(It[t][e]=n),n):n,Yt=(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 jt(e,t,i)}};let Gt;const Vt=ae({});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)))}oe([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,an=Object.prototype.propertyIsEnumerable,on=(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&&an.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=on(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=ae(!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 Cn;const wn=ae(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!=Cn?Cn:void 0}wn.subscribe((e=>{Cn=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})({},wn),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((()=>{wn.set(e)})).finally((()=>{clearTimeout(n),dn.set(!1)}))}return wn.set(e)}})));var kn;const Pn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var Sn=Object.defineProperty,En=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Dn=(e,t,n)=>t in e?Sn(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=Pn((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)})),zn=Pn((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=Pn((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)})),Fn=Pn((
|
|
581
581
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
582
|
-
(e,t=
|
|
583
|
-
/* eslint-disable no-prototype-builtins */oe([
|
|
582
|
+
(e,t=xn())=>new Ut(e,t,un().formats,{ignoreTag:un().ignoreTag}))),Nn=(e,t={})=>{var n,r,i,a;let o=t;"object"==typeof e&&(o=e,e=o.id);const{values:s,locale:l=xn(),default:u}=o;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Yt(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!=(a=null!=(i=null==(r=(n=un()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?a:e;if(!s)return c;let d=c;try{d=Fn(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 zn(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),jn=(e,t=xn())=>Yt(e,t),Yn=oe([_n,Vt],(()=>Nn));function Gn(e,t){Jt(e,t)}
|
|
583
|
+
/* eslint-disable no-prototype-builtins */oe([_n],(()=>Hn)),oe([_n],(()=>Un)),oe([_n],(()=>In)),oe([_n,Vt],(()=>jn));var Vn="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
584
584
|
// eslint-disable-next-line no-undef
|
|
585
|
-
"undefined"!=typeof global&&global||{},
|
|
585
|
+
"undefined"!=typeof global&&global||{},Wn="URLSearchParams"in Vn,qn="Symbol"in Vn&&"iterator"in Symbol,Jn="FileReader"in Vn&&"Blob"in Vn&&function(){try{return new Blob,!0}catch(e){return!1}}(),Zn="FormData"in Vn,Kn="ArrayBuffer"in Vn;if(Kn)var Xn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Qn=ArrayBuffer.isView||function(e){return e&&Xn.indexOf(Object.prototype.toString.call(e))>-1};function er(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 tr(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
586
586
|
// Build a destructive iterator for the value list
|
|
587
|
-
function
|
|
587
|
+
function nr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return qn&&(t[Symbol.iterator]=function(){return t}),t}function rr(e){this.map={},e instanceof rr?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 ir(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ar(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=ar(t);return t.readAsArrayBuffer(e),n}function sr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function lr(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
588
588
|
/*
|
|
589
589
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
590
590
|
provide useful test harness features such as flush. However, on
|
|
@@ -596,42 +596,58 @@ function ir(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
|
596
596
|
_initBody is called.
|
|
597
597
|
*/
|
|
598
598
|
// eslint-disable-next-line no-self-assign
|
|
599
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:
|
|
599
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Jn&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Zn&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Wn&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Kn&&Jn&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=sr(e.buffer),
|
|
600
600
|
// IE 10-11 can't handle a DataView body.
|
|
601
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
|
601
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):Kn&&(ArrayBuffer.prototype.isPrototypeOf(e)||Qn(e))?this._bodyArrayBuffer=sr(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):Wn&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Jn&&(this.blob=function(){var e=ir(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=ir(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(Jn)return this.blob().then(or);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,a=ir(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=ar(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)},Zn&&(this.formData=function(){return this.text().then(dr)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
602
602
|
// HTTP methods whose capitalization should be normalized
|
|
603
|
-
|
|
603
|
+
rr.prototype.append=function(e,t){e=er(e),t=tr(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},rr.prototype.delete=function(e){delete this.map[er(e)]},rr.prototype.get=function(e){return e=er(e),this.has(e)?this.map[e]:null},rr.prototype.has=function(e){return this.map.hasOwnProperty(er(e))},rr.prototype.set=function(e,t){this.map[er(e)]=tr(t)},rr.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},rr.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),nr(e)},rr.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),nr(e)},rr.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),nr(e)},qn&&(rr.prototype[Symbol.iterator]=rr.prototype.entries);var ur=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function cr(e,t){if(!(this instanceof cr))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 cr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new rr(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 rr(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),ur.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Vn)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)){
|
|
604
604
|
// Search for a '_' parameter in the query string
|
|
605
605
|
var a=/([?&])_=[^&]*/;if(a.test(this.url))
|
|
606
606
|
// If it already exists then set the value with the current time
|
|
607
|
-
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
|
607
|
+
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function dr(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 hr(e,t){if(!(this instanceof hr))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 rr(t.headers),this.url=t.url||"",this._initBody(e)}cr.prototype.clone=function(){return new cr(this,{body:this._bodyInit})},lr.call(cr.prototype),lr.call(hr.prototype),hr.prototype.clone=function(){return new hr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new rr(this.headers),url:this.url})},hr.error=function(){var e=new hr(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var fr=[301,302,303,307,308];hr.redirect=function(e,t){if(-1===fr.indexOf(t))throw new RangeError("Invalid status code");return new hr(null,{status:t,headers:{location:e}})};var mr=Vn.DOMException;try{new mr}catch(e){(mr=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),mr.prototype.constructor=mr}function pr(e,t){return new Promise((function(n,r){var i=new cr(e,t);if(i.signal&&i.signal.aborted)return r(new mr("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}if(a.onload=function(){var e,t,r={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new rr,
|
|
608
608
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
609
609
|
// https://github.com/github/fetch/issues/748
|
|
610
610
|
// https://github.com/zloirock/core-js/issues/751
|
|
611
611
|
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)};
|
|
612
612
|
// This check if specifically for when a user fetches a file locally from the file system
|
|
613
613
|
// Only if the status is out of a normal range
|
|
614
|
-
i.url.startsWith("file://")&&(a.status<200||a.status>599)?r.status=200:r.status=a.status,r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){n(new
|
|
614
|
+
i.url.startsWith("file://")&&(a.status<200||a.status>599)?r.status=200:r.status=a.status,r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){n(new hr(o,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},a.onabort=function(){setTimeout((function(){r(new mr("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&Vn.location.href?Vn.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(Jn?a.responseType="blob":Kn&&(a.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof rr||Vn.Headers&&t.headers instanceof Vn.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(er(e)),a.setRequestHeader(e,tr(t.headers[e]))})),i.headers.forEach((function(e,t){-1===s.indexOf(t)&&a.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){a.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){
|
|
615
615
|
// DONE (success or failure)
|
|
616
|
-
4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
|
616
|
+
4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}pr.polyfill=!0,Vn.fetch||(Vn.fetch=pr,Vn.Headers=rr,Vn.Request=cr,Vn.Response=hr);var gr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function br(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return yr(null==t&&n.path)}},n.exports),n.exports}function yr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
617
617
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
618
618
|
// on the global object (window or self)
|
|
619
619
|
|
|
620
620
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
621
|
-
function vr(e){return"function"==typeof e}function Tr(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}self.fetch.bind(self);var xr=Tr((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 _r(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var kr=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 a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=Te(a),s=o.next();!s.done;s=o.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(vr(l))try{l()}catch(e){i=e instanceof xr?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=Te(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{Er(h)}catch(e){i=null!=i?i:[],e instanceof xr?i=_e(_e([],xe(i)),xe(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 xr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Er(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)&&_r(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&_r(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Pr=kr.EMPTY;function Sr(e){return e instanceof kr||e&&"closed"in e&&vr(e.remove)&&vr(e.add)&&vr(e.unsubscribe)}function Er(e){vr(e)?e():e.unsubscribe()}var $r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Lr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Lr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,_e([e,t],xe(n))):setTimeout.apply(void 0,_e([e,t],xe(n)))},clearTimeout:function(e){var t=Lr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Dr(){}var Mr=null;function Rr(e){if($r.useDeprecatedSynchronousErrorHandling){var t=!Mr;if(t&&(Mr={errorThrown:!1,error:null}),e(),t){var n=Mr,r=n.errorThrown,i=n.error;if(Mr=null,r)throw i}}else e()}var Ar=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Sr(t)&&t.add(n)):n.destination=Hr,n}return be(t,e),t.create=function(e,t,n){return new Fr(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}(kr),Br=Function.prototype.bind;function zr(e,t){return Br.call(e,t)}var Or=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){Nr(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Nr(e)}else Nr(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Nr(e)}},e}(),Fr=function(e){function t(t,n,r){var i,a,o=e.call(this)||this;vr(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:o&&$r.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},i={next:t.next&&zr(t.next,a),error:t.error&&zr(t.error,a),complete:t.complete&&zr(t.complete,a)}):i=t;return o.destination=new Or(i),o}return be(t,e),t}(Ar);function Nr(e){var t;t=e,Lr.setTimeout((function(){throw t}))}var Hr={closed:!0,next:Dr,error:function(e){throw e},complete:Dr},Ur="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ir(e){return e}var jr=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,a=(r=e)&&r instanceof Ar||function(e){return e&&vr(e.next)&&vr(e.error)&&vr(e.complete)}(r)&&Sr(r)?e:new Fr(e,t,n);return Rr((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},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=Yr(t))((function(t,r){var i=new Fr({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[Ur]=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?Ir: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=Yr(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 Yr(e){var t;return null!==(t=null!=e?e:$r.Promise)&&void 0!==t?t:Promise}var Gr=Tr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Vr=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 be(t,e),t.prototype.lift=function(e){var t=new Wr(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Gr},t.prototype.next=function(e){var t=this;Rr((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=Te(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Rr((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;Rr((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,a=n.observers;return r||i?Pr:(this.currentObservers=null,a.push(e),new kr((function(){t.currentObservers=null,_r(a,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 jr;return e.source=this,e},t.create=function(e,t){return new Wr(e,t)},t}(jr),Wr=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return be(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:Pr},t}(Vr),qr={now:function(){return(qr.delegate||Date).now()},delegate:void 0},Jr=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=qr);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 be(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.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,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,l=1;l<r.length&&r[l]<=o;l+=2)s=l;s&&r.splice(0,s+1)}},t}(Vr);let Zr=[],Kr={};window.emWidgets={topic:(e,t=0)=>{if(-1==Zr.indexOf(e)){let n=new Jr(t);Kr[e]=n,Zr.push(e)}return Kr[e]}};
|
|
621
|
+
self.fetch.bind(self);
|
|
622
|
+
/******************************************************************************
|
|
623
|
+
Copyright (c) Microsoft Corporation.
|
|
624
|
+
|
|
625
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
626
|
+
purpose with or without fee is hereby granted.
|
|
627
|
+
|
|
628
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
629
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
630
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
631
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
632
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
633
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
634
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
635
|
+
***************************************************************************** */
|
|
636
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
637
|
+
var Cr=function(e,t){return Cr=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])},Cr(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}Cr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function vr(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 Tr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function xr(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;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 _r(e){return"function"==typeof e}function kr(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 Pr=kr((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 Er=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 a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=vr(a),s=o.next();!s.done;s=o.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(_r(l))try{l()}catch(e){i=e instanceof Pr?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=vr(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{Dr(h)}catch(e){i=null!=i?i:[],e instanceof Pr?i=xr(xr([],Tr(i)),Tr(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 Pr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Dr(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}(),$r=Er.EMPTY;function Lr(e){return e instanceof Er||e&&"closed"in e&&_r(e.remove)&&_r(e.add)&&_r(e.unsubscribe)}function Dr(e){_r(e)?e():e.unsubscribe()}var Mr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Rr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Rr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,xr([e,t],Tr(n))):setTimeout.apply(void 0,xr([e,t],Tr(n)))},clearTimeout:function(e){var t=Rr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ar(){}var Br=null;function zr(e){if(Mr.useDeprecatedSynchronousErrorHandling){var t=!Br;if(t&&(Br={errorThrown:!1,error:null}),e(),t){var n=Br,r=n.errorThrown,i=n.error;if(Br=null,r)throw i}}else e()}var Or=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Lr(t)&&t.add(n)):n.destination=jr,n}return wr(t,e),t.create=function(e,t,n){return new Ur(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}(Er),Fr=Function.prototype.bind;function Nr(e,t){return Fr.call(e,t)}var Hr=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){Ir(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ir(e)}else Ir(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ir(e)}},e}(),Ur=function(e){function t(t,n,r){var i,a,o=e.call(this)||this;_r(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:o&&Mr.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},i={next:t.next&&Nr(t.next,a),error:t.error&&Nr(t.error,a),complete:t.complete&&Nr(t.complete,a)}):i=t;return o.destination=new Hr(i),o}return wr(t,e),t}(Or);function Ir(e){var t;t=e,Rr.setTimeout((function(){throw t}))}var jr={closed:!0,next:Ar,error:function(e){throw e},complete:Ar},Yr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gr(e){return e}var Vr=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,a=(r=e)&&r instanceof Or||function(e){return e&&_r(e.next)&&_r(e.error)&&_r(e.complete)}(r)&&Lr(r)?e:new Ur(e,t,n);return zr((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},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=Wr(t))((function(t,r){var i=new Ur({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?Gr: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=Wr(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 Wr(e){var t;return null!==(t=null!=e?e:Mr.Promise)&&void 0!==t?t:Promise}var qr=kr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Jr=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 Zr(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new qr},t.prototype.next=function(e){var t=this;zr((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=vr(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;zr((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;zr((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,a=n.observers;return r||i?$r:(this.currentObservers=null,a.push(e),new Er((function(){t.currentObservers=null,Sr(a,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 Vr;return e.source=this,e},t.create=function(e,t){return new Zr(e,t)},t}(Vr),Zr=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:$r},t}(Jr),Kr={now:function(){return(Kr.delegate||Date).now()},delegate:void 0},Xr=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Kr);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,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.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,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,l=1;l<r.length&&r[l]<=o;l+=2)s=l;s&&r.splice(0,s+1)}},t}(Jr);let Qr=[],ei={};window.emWidgets={topic:(e,t=0)=>{if(-1==Qr.indexOf(e)){let n=new Xr(t);ei[e]=n,Qr.push(e)}return ei[e]}};
|
|
622
638
|
/**
|
|
623
639
|
* @name isMobile
|
|
624
640
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
625
641
|
* @param {String} userAgent window.navigator.userAgent
|
|
626
642
|
* @returns {Boolean} true or false
|
|
627
643
|
*/
|
|
628
|
-
const
|
|
644
|
+
const ti=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),ni=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
|
|
629
645
|
/**
|
|
630
646
|
* @name getDevice
|
|
631
647
|
* @description A method that returns the type of the device
|
|
632
648
|
* @param {String} userAgent window.navigator.userAgent
|
|
633
649
|
* @returns {String} Android/iPhone/iPad/PC
|
|
634
|
-
*/var
|
|
650
|
+
*/var ri=br((function(e,t){
|
|
635
651
|
/** @license
|
|
636
652
|
* eventsource.js
|
|
637
653
|
* Available under MIT License (MIT)
|
|
@@ -716,244 +732,244 @@ n+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(d)}var a=e.withCredent
|
|
|
716
732
|
// https://code.google.com/p/chromium/issues/detail?id=260144
|
|
717
733
|
// https://code.google.com/p/chromium/issues/detail?id=225654
|
|
718
734
|
// ...
|
|
719
|
-
W=Y),V=function(e){e.EventSourcePolyfill=Y,e.NativeEventSource=l,e.EventSource=W}(t),void 0!==V&&(e.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:
|
|
720
|
-
/* src/Cells/Cell.svelte generated by Svelte v3.59.2 */function
|
|
735
|
+
W=Y),V=function(e){e.EventSourcePolyfill=Y,e.NativeEventSource=l,e.EventSource=W}(t),void 0!==V&&(e.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:gr:globalThis)}));
|
|
736
|
+
/* src/Cells/Cell.svelte generated by Svelte v3.59.2 */function ii(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 ai(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},ai,ii,o,{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()}}
|
|
721
737
|
/* src/Cells/ThumbnailCell.svelte generated by Svelte v3.59.2 */
|
|
722
|
-
function
|
|
738
|
+
function si(t){let n,r,i,a,o,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",a="CardImg "+(/*status*/"Closing"==t[1]||/*status*/"Closed"==t[1]?"CardImgFinished":"")),P(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),o||(s=f(/*matchStatus*/t[2].call(null,r)),o=!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&&a!==(a="CardImg "+(/*status*/"Closing"==e[1]||/*status*/"Closed"==e[1]?"CardImgFinished":""))&&_(r,"part",a),/*thumbnail*/1&t&&P(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),o=!1,s()}}}function li(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 ui 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},li,si,o,{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()}}
|
|
723
739
|
/* src/Cells/TitleTextCell.svelte generated by Svelte v3.59.2 */
|
|
724
|
-
function
|
|
725
|
-
return e[2]?
|
|
740
|
+
function ci(e){let t,n,r,i,a,o,s;function l(e,t){/*collapsed*/
|
|
741
|
+
return e[2]?di:hi}let u=l(e),c=u(e);return{c(){t=y("div"),n=y("p"),r=w(/*title*/e[1]),i=v(),a=y("div"),c.c(),_(n,"class","Title"),_(n,"part","Title"),_(a,"class","CollapseButtonDetails"),_(a,"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,a),c.m(a,null),o||(s=x(a,"click",/*click_handler*/e[5]),o=!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(a,null)))},d(e){e&&g(t),c.d(),o=!1,s()}}}
|
|
726
742
|
// (24:8) {:else}
|
|
727
|
-
function
|
|
743
|
+
function di(e){let t,n;return{c(){t=C("svg"),n=C("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)}}}
|
|
728
744
|
// (20:8) {#if !collapsed}
|
|
729
|
-
function
|
|
745
|
+
function hi(e){let t,n;return{c(){t=C("svg"),n=C("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)}}}
|
|
730
746
|
// (33:2) {#if text && !collapsed}
|
|
731
|
-
function ci(e){let t,n,r,i;return{c(){t=y("div"),_(t,"class","DetailsContent sc"),_(t,"part","DetailsContent")},m(a,o){p(a,t,o),r||(i=f(n=/*setContent*/e[4].call(null,t,/*text*/e[0])),r=!0)},p(e,t){n&&a(n.update)&&/*text*/1&t&&n.update.call(null,/*text*/e[0])},d(e){e&&g(t),r=!1,i()}}}function di(t){let n,r,i=/*title*/t[1]&&si(t),a=/*text*/t[0]&&!/*collapsed*/t[2]&&ci(t);return{c(){n=y("div"),i&&i.c(),r=v(),a&&a.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),a&&a.m(n,null)},p(e,[t]){/*title*/e[1]?i?i.p(e,t):(i=si(e),i.c(),i.m(n,r)):i&&(i.d(1),i=null),/*text*/e[0]&&!/*collapsed*/e[2]?a?a.p(e,t):(a=ci(e),a.c(),a.m(n,null)):a&&(a.d(1),a=null)},i:e,o:e,d(e){e&&g(n),i&&i.d(),a&&a.d()}}}function hi(e,t,n){let{text:r=""}=t,{title:i=""}=t,a=!1;const o=()=>{n(2,a=!a)};return e.$$set=e=>{"text"in e&&n(0,r=e.text),"title"in e&&n(1,i=e.title)},[r,i,a,o,(e,t)=>{let n=document.createElement("div");n.innerHTML=t,e.append(n)},()=>o()]}customElements.define("thumbnail-cell",oi);class fi 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},hi,di,o,{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 mi(e,t){Kt(e,t)}function pi(e){Pn.set(e)}customElements.define("title-text-cell",fi);const gi={en:{tournamentsThumbnail:{startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}"}},hr:{tournamentsThumbnail:{startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}"}},el:{tournamentsThumbnail:{startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}"}},"zh-hk":{tournamentsThumbnail:{startingAtWithTime:"開始於 {startTime}",startedAtWithTime:"Started {startTime}"}}},bi={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"}},hr:{tournamentsPage:{loading:"Učitavanje, molimo pričekajte ...",back:"Natrag",previous:"Prethodno",next:"Sljedeće",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",mostRounds:"Najviše krugova",activePeriod:"Od {startdate} Do {enddate}",forwardCasino:"Pogledajte uključene casino igre",forwardSports:"Pogledajte uključene sportove",forwardMyTournaments:"Pogledajte Moje turnire",leaderBoard:"Poredak",rules:"Pravila",games:"Igre",unlimited:"neograničeno",participantingGames:"Igre u kojima sudjelujete"}},"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"}}},yi={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Počinje za ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"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:"queda",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"}}},Ci={en:{gamesSlider:{playNow:"Play now",participantingGames:"Participanting games"}},hr:{gamesSlider:{playNow:"Igraj sada",participantingGames:"Igre u kojima sudjelujete"}},"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"}}},wi={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."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"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 -"}}},vi={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"}},hr:{tournamentsTable:{leaderboard:"Poredak",score:"Rezultat",betcounts:"Broj opklada",winstakeratio:"Omjer dobitka po ulogu",qualified:"Kvalificiran",nowinners:"Za sada nema pobjednika. Budi jedan od njih!",Rank:"Poredak",Player:"Igrač",Points:"Bodovi",Prize:"Nagrada",UnqualifiedTips:"Minimalni broj opklada nije dosegnut. Provjerite pravila turnira.",me:"Ja"}},"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"}}},Ti={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"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"}}},xi={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"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{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"}}};
|
|
747
|
+
function fi(e){let t,n,r,i;return{c(){t=y("div"),_(t,"class","DetailsContent sc"),_(t,"part","DetailsContent")},m(a,o){p(a,t,o),r||(i=f(n=/*setContent*/e[4].call(null,t,/*text*/e[0])),r=!0)},p(e,t){n&&a(n.update)&&/*text*/1&t&&n.update.call(null,/*text*/e[0])},d(e){e&&g(t),r=!1,i()}}}function mi(t){let n,r,i=/*title*/t[1]&&ci(t),a=/*text*/t[0]&&!/*collapsed*/t[2]&&fi(t);return{c(){n=y("div"),i&&i.c(),r=v(),a&&a.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),a&&a.m(n,null)},p(e,[t]){/*title*/e[1]?i?i.p(e,t):(i=ci(e),i.c(),i.m(n,r)):i&&(i.d(1),i=null),/*text*/e[0]&&!/*collapsed*/e[2]?a?a.p(e,t):(a=fi(e),a.c(),a.m(n,null)):a&&(a.d(1),a=null)},i:e,o:e,d(e){e&&g(n),i&&i.d(),a&&a.d()}}}function pi(e,t,n){let{text:r=""}=t,{title:i=""}=t,a=!1;const o=()=>{n(2,a=!a)};return e.$$set=e=>{"text"in e&&n(0,r=e.text),"title"in e&&n(1,i=e.title)},[r,i,a,o,(e,t)=>{let n=document.createElement("div");n.innerHTML=t,e.append(n)},()=>o()]}customElements.define("thumbnail-cell",ui);class gi 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},pi,mi,o,{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 bi(e,t){Jt(e,t)}function yi(e){_n.set(e)}customElements.define("title-text-cell",gi);const Ci={en:{tournamentsThumbnail:{startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}"}},hr:{tournamentsThumbnail:{startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {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"}},hr:{tournamentsPage:{loading:"Učitavanje, molimo pričekajte ...",back:"Natrag",previous:"Prethodno",next:"Sljedeće",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",mostRounds:"Najviše krugova",activePeriod:"Od {startdate} Do {enddate}",forwardCasino:"Pogledajte uključene casino igre",forwardSports:"Pogledajte uključene sportove",forwardMyTournaments:"Pogledajte Moje turnire",leaderBoard:"Poredak",rules:"Pravila",games:"Igre",unlimited:"neograničeno",participantingGames:"Igre u kojima sudjelujete"}},"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"}}},vi={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Počinje za ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"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:"queda",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"}}},Ti={en:{gamesSlider:{playNow:"Play now",participantingGames:"Participanting games"}},hr:{gamesSlider:{playNow:"Igraj sada",participantingGames:"Igre u kojima sudjelujete"}},"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"}}},xi={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."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"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 -"}}},_i={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"}},hr:{tournamentsTable:{leaderboard:"Poredak",score:"Rezultat",betcounts:"Broj opklada",winstakeratio:"Omjer dobitka po ulogu",qualified:"Kvalificiran",nowinners:"Za sada nema pobjednika. Budi jedan od njih!",Rank:"Poredak",Player:"Igrač",Points:"Bodovi",Prize:"Nagrada",UnqualifiedTips:"Minimalni broj opklada nije dosegnut. Provjerite pravila turnira.",me:"Ja"}},"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"}}},ki={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"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"}}},Pi={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"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{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"}}};
|
|
732
748
|
/* src/Cells/ScoreCriteriaCell.svelte generated by Svelte v3.59.2 */
|
|
733
|
-
function
|
|
749
|
+
function Si(t){let n,r,i,a,o,s,l,u,c,d,h,b,C,T=/*$_*/t[2]("tournamentsThumbnail.scoreCriteria")+"",x=/*$_*/t[2]("tournamentsThumbnail.minbet")+"";return{c(){n=y("div"),r=y("p"),i=w(T),a=w(":\n "),o=y("span"),s=w(/*showScoreCriteria*/t[1]),l=w("\n ("),u=w(x),c=v(),d=w(/*minbetcount*/t[0]),h=w(")"),this.c=e,_(o,"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,a),m(r,o),m(o,s),m(r,l),m(r,u),m(r,c),m(r,d),m(r,h),b||(C=f(/*matchScoreCriteria*/t[3].call(null,o)),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,C()}}}function Ei(e,t,n){let r;d(e,Yn,(e=>n(2,r=e)));let{scorecriteria:i=""}=t,{lang:a="en"}=t,{minbetcount:o}=t;Object.keys(Pi).forEach((e=>{bi(e,Pi[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,a=e.lang),"minbetcount"in e&&n(0,o=e.minbetcount)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&a&&(yi(a),l()),/*scorecriteria*/16&e.$$.dirty&&i&&l()},[o,s,r,l,i,a]}class $i extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ei,Si,o,{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()}}
|
|
734
750
|
/* src/Cells/JoinButtonCell.svelte generated by Svelte v3.59.2 */
|
|
735
|
-
function
|
|
751
|
+
function Li(e){let t,n=/*bonuscode*/e[1]&&Mi(e);return{c(){n&&n.c(),t=T()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,r){/*bonuscode*/e[1]?n?n.p(e,r):(n=Mi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&g(t)}}}
|
|
736
752
|
// (158:2) {#if !isLoggedIn}
|
|
737
|
-
function
|
|
753
|
+
function Di(e){let t,n,r,a,o,s,l,u=/*$_*/e[9]("tournamentsThController.login")+"",c=/*$_*/e[9]("tournamentsThController.register")+"";return{c(){t=y("button"),n=w(u),r=v(),a=y("button"),o=w(c),_(t,"class","LoginButton"),_(t,"part","LoginButton"),_(a,"class","RegisterButton"),_(a,"part","RegisterButton")},m(i,u){p(i,t,u),m(t,n),p(i,r,u),p(i,a,u),m(a,o),s||(l=[x(t,"click",/*click_handler*/e[23]),x(a,"click",/*click_handler_1*/e[24])],s=!0)},p(e,t){/*$_*/512&t&&u!==(u=/*$_*/e[9]("tournamentsThController.login")+"")&&k(n,u),/*$_*/512&t&&c!==(c=/*$_*/e[9]("tournamentsThController.register")+"")&&k(o,c)},d(e){e&&g(t),e&&g(r),e&&g(a),s=!1,i(l)}}}
|
|
738
754
|
// (163:6) {#if bonuscode}
|
|
739
|
-
function
|
|
740
|
-
return 1==e[5]?
|
|
755
|
+
function Mi(e){let t,n,r,i,a;function o(e,t){/*joinButtonLoading*/
|
|
756
|
+
return 1==e[5]?Ai:Ri}let s=o(e),l=s(e);return{c(){t=y("button"),l.c(),_(t,"class",n="JoinButton "+(/*fullsize*/e[3]?"JoinButtonFullSize":"")),_(t,"part",r="JoinButton "+(/*fullsize*/e[3]?"JoinButtonFullSize":"")),t.disabled=/*errorJoin*/e[6]},m(n,r){p(n,t,r),l.m(t,null),i||(a=x(t,"click",/*click_handler_2*/e[25]),i=!0)},p(e,i){s===(s=o(e))&&l?l.p(e,i):(l.d(1),l=s(e),l&&(l.c(),l.m(t,null))),/*fullsize*/8&i&&n!==(n="JoinButton "+(/*fullsize*/e[3]?"JoinButtonFullSize":""))&&_(t,"class",n),/*fullsize*/8&i&&r!==(r="JoinButton "+(/*fullsize*/e[3]?"JoinButtonFullSize":""))&&_(t,"part",r),/*errorJoin*/64&i&&(t.disabled=/*errorJoin*/e[6])},d(e){e&&g(t),l.d(),i=!1,a()}}}
|
|
741
757
|
// (169:10) {:else}
|
|
742
|
-
function
|
|
758
|
+
function Ri(e){let t,n,r,i,a,o,s,l,u,c=/*$_*/e[9]("tournamentsThController.join")+"";return{c(){t=y("span"),n=w(c),r=v(),i=C("svg"),a=C("defs"),o=C("style"),s=w(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=C("g"),u=C("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,a),m(a,o),m(o,s),m(i,l),m(l,u)},p(e,t){/*$_*/512&t&&c!==(c=/*$_*/e[9]("tournamentsThController.join")+"")&&k(n,c)},d(e){e&&g(t),e&&g(r),e&&g(i)}}}
|
|
743
759
|
// (165:10) {#if joinButtonLoading == true}
|
|
744
|
-
function
|
|
760
|
+
function Ai(t){let n,r;return{c(){n=C("svg"),r=C("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)}}}
|
|
745
761
|
// (178:0) {#if errorJoin || errorJoinConcurrently}
|
|
746
|
-
function
|
|
747
|
-
return e[4]?/*status*/"Closed"!=e[2]&&/*status*/"Closing"!=e[2]?
|
|
762
|
+
function Bi(e){let t,n,r,i,a=/*$_*/e[9]("tournamentsThController.joinerror")+"";return{c(){t=y("span"),n=w(a),r=v(),i=w(/*errorJoinText*/e[7]),_(t,"class","ErrorText"),_(t,"part","ErrorText")},m(e,a){p(e,t,a),m(t,n),m(t,r),m(t,i)},p(e,t){/*$_*/512&t&&a!==(a=/*$_*/e[9]("tournamentsThController.joinerror")+"")&&k(n,a),/*errorJoinText*/128&t&&k(i,/*errorJoinText*/e[7])},d(e){e&&g(t)}}}function zi(t){let n,r,i;function a(e,t){/*isLoggedIn*/
|
|
763
|
+
return e[4]?/*status*/"Closed"!=e[2]&&/*status*/"Closing"!=e[2]?Li:void 0:Di}let o=a(t),s=o&&o(t),l=/*errorJoin*/(t[6]||/*errorJoinConcurrently*/t[8])&&Bi(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]){o===(o=a(e))&&s?s.p(e,t):(s&&s.d(1),s=o&&o(e),s&&(s.c(),s.m(n,null))),/*errorJoin*/e[6]||/*errorJoinConcurrently*/e[8]?l?l.p(e,t):(l=Bi(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 Oi(e,t,n){let r;d(e,Yn,(e=>n(9,r=e)));let{session:i=""}=t,{tourid:a=""}=t,{endpoint:o=""}=t,{userenrolled:s=""}=t,{showleaderboard:l=""}=t,{lang:u=""}=t,{loginevent:c=""}=t,{registerevent:h=""}=t,{loginurl:f=""}=t,{registerurl:m=""}=t,{currency:p=""}=t,{bonuscode:g=""}=t,{status:b=""}=t,y="";Object.keys(xi).forEach((e=>{bi(e,xi[e])})),cn({fallbackLocale:"en",initialLocale:"en"});let C=!1,w="",v=window.navigator.userAgent,T=!1,x=!1,_="There was an error while trying to join the tournament",k=!1;const P=()=>{c&&window.postMessage({type:c,transition:"Login"},window.location.href),f&&(window.location=f)},S=()=>{h&&window.postMessage({type:h,transition:"Register"},window.location.href),m&&(window.location=m)},E=async(e,t)=>{var r;n(6,x=!1),n(8,k=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),n(5,T=!0);let l=new URL(`${o}/v1/bonus/claim`),c=new Headers,d={};l.searchParams.append("language",u),l.searchParams.append("platform",ni(v)),c.append("Content-Type","application/json"),c.append("X-SessionID",w),t&&(d={language:u,bonusCode:t,currency:p});let h={method:"PUT",headers:c,body:JSON.stringify(d)};const f=()=>{n(5,T=!1),n(13,s="true"),window.postMessage({type:"TournamentUserEnrolled",userenrolled:s},window.location.href)},m=e=>{n(5,T=!1),e&&n(7,_=e),n(6,x=!0)},g=await(async()=>{let e;try{e=await fetch(l,h),e=await e.json()}catch(e){m()}return e})();if(g)if(1==g.success)f();else if(g.errorMessage.match("VersionMismatchException")){let e;e=await fetch(`${o}/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)?f():(m(g.errorMessage),n(8,k=!0),n(6,x=!1))}else m(g.errorMessage)},$=e=>{e.data&&"UserSessionID"==e.data.type&&(n(4,C=!0),w=e.data.session)};M((()=>(n(3,y=!("true"!=l)),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)})));return e.$$set=e=>{"session"in e&&n(14,i=e.session),"tourid"in e&&n(0,a=e.tourid),"endpoint"in e&&n(15,o=e.endpoint),"userenrolled"in e&&n(13,s=e.userenrolled),"showleaderboard"in e&&n(16,l=e.showleaderboard),"lang"in e&&n(17,u=e.lang),"loginevent"in e&&n(18,c=e.loginevent),"registerevent"in e&&n(19,h=e.registerevent),"loginurl"in e&&n(20,f=e.loginurl),"registerurl"in e&&n(21,m=e.registerurl),"currency"in e&&n(22,p=e.currency),"bonuscode"in e&&n(1,g=e.bonuscode),"status"in e&&n(2,b=e.status)},e.$$.update=()=>{/*session*/16384&e.$$.dirty&&i&&(i.length>0&&"false"!=i?(w=i,n(4,C=!0)):n(4,C=!1)),/*lang*/131072&e.$$.dirty&&u&&yi(u)},[a,g,b,y,C,T,x,_,k,r,P,S,E,s,i,o,l,u,c,h,f,m,p,()=>P(),()=>S(),()=>E(a,g)]}customElements.define("score-criteria-cell",$i);class Fi extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Oi,zi,o,{session:14,tourid:0,endpoint:15,userenrolled:13,showleaderboard:16,lang:17,loginevent:18,registerevent:19,loginurl:20,registerurl:21,currency:22,bonuscode:1,status:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["session","tourid","endpoint","userenrolled","showleaderboard","lang","loginevent","registerevent","loginurl","registerurl","currency","bonuscode","status"]}get session(){return this.$$.ctx[14]}set session(e){this.$$set({session:e}),I()}get tourid(){return this.$$.ctx[0]}set tourid(e){this.$$set({tourid:e}),I()}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),I()}get userenrolled(){return this.$$.ctx[13]}set userenrolled(e){this.$$set({userenrolled:e}),I()}get showleaderboard(){return this.$$.ctx[16]}set showleaderboard(e){this.$$set({showleaderboard:e}),I()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),I()}get loginevent(){return this.$$.ctx[18]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[19]}set registerevent(e){this.$$set({registerevent:e}),I()}get loginurl(){return this.$$.ctx[20]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[21]}set registerurl(e){this.$$set({registerurl:e}),I()}get currency(){return this.$$.ctx[22]}set currency(e){this.$$set({currency:e}),I()}get bonuscode(){return this.$$.ctx[1]}set bonuscode(e){this.$$set({bonuscode:e}),I()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),I()}}
|
|
748
764
|
/* src/Cells/StatusTag.svelte generated by Svelte v3.59.2 */
|
|
749
|
-
function
|
|
765
|
+
function Ni(e){let t,n,r,i,a,o;return{c(){t=y("div"),n=w(/*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),a||(o=f(/*matchStatus*/e[3].call(null,t)),a=!0)},p(e,a){/*shownStatus*/2&a&&k(n,/*shownStatus*/e[1]),/*statusClass*/4&a&&r!==(r="Status "+/*statusClass*/e[2]+" TagContent")&&_(t,"class",r),/*statusClass*/4&a&&i!==(i="Status "+/*statusClass*/e[2]+" TagContent")&&_(t,"part",i)},d(e){e&&g(t),a=!1,o()}}}function Hi(t){let n,r=/*status*/t[0]&&Ni(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=Ni(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 Ui(e,t,n){let r;d(e,Yn,(e=>n(6,r=e)));let{lang:i="en"}=t,{status:a=""}=t;Object.keys(Pi).forEach((e=>{bi(e,Pi[e])})),cn({fallbackLocale:"en",initialLocale:"en"});let o="",s="";const l=()=>{"Unstarted"==a&&(n(1,o=r("tournamentsThumbnail.scheduled")),n(2,s="StatusUnstarted")),"Running"==a&&(n(1,o=r("tournamentsThumbnail.ongoing")),n(2,s="StatusRunning")),"Closed"!=a&&"Closing"!=a||n(1,o=r("tournamentsThumbnail.finished")),"Closed"==a&&n(2,s="StatusClosed"),"Closing"==a&&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,a=e.status)},e.$$.update=()=>{/*isMounted, lang, status*/49&e.$$.dirty&&u&&i&&a&&(yi(i),l())},[a,o,s,l,i,u]}customElements.define("tournament-join-button-cell",Fi);class Ii 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},Ui,Hi,o,{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()}}
|
|
750
766
|
/* src/Cells/UserEnrollTag.svelte generated by Svelte v3.59.2 */
|
|
751
|
-
function
|
|
767
|
+
function ji(e){let t,n=/*userenrolled*/e[0]&&Yi(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=Yi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&g(t)}}}
|
|
752
768
|
// (32:4) {#if userenrolled}
|
|
753
|
-
function
|
|
769
|
+
function Yi(e){let t,n,r=/*$_*/e[2]("tournamentsThumbnail.enrolled")+"";return{c(){t=y("div"),n=w(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 Gi(t){let n,r=/*showenrolled*/"true"==t[1]&&ji(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=ji(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 Vi(e,t,n){let r;d(e,Yn,(e=>n(2,r=e)));let{lang:i="en"}=t,{showenrolled:a=""}=t,{userenrolled:o}=t;Object.keys(Pi).forEach((e=>{bi(e,Pi[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const s=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&n(0,o=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,a=e.showenrolled),"userenrolled"in e&&n(0,o=e.userenrolled)},e.$$.update=()=>{/*lang*/8&e.$$.dirty&&i&&yi(i)},[o,a,r,i]}customElements.define("status-cell",Ii);class Wi extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Vi,Gi,o,{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()}}
|
|
754
770
|
/* src/Cells/DurationCell.svelte generated by Svelte v3.59.2 */
|
|
755
|
-
function
|
|
756
|
-
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?
|
|
757
|
-
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?
|
|
771
|
+
function qi(e){let t,n,r,i,a,o,s,l,u,c,d,h;function b(e,t){/*status*/
|
|
772
|
+
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?Ki:/*tournamentUntilStartDays*/e[4]>0?Zi:Ji}let C=b(e),T=C(e);function x(e,t){/*status*/
|
|
773
|
+
return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?ea:/*tournamentUntilStartDays*/e[4]>0?Qi:/*tournamentLeftDays*/e[3]>0?Xi:void 0}let P=x(e),S=P&&P(e);return{c(){t=y("div"),n=y("div"),r=w(/*startDateAsString*/e[6]),i=v(),a=y("div"),o=w(/*endDateAsString*/e[7]),s=v(),l=y("div"),u=y("div"),T.c(),c=v(),S&&S.c(),_(n,"class","StartDate"),_(n,"part","StartDate"),_(a,"class","EndDate"),_(a,"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,a),m(a,o),p(g,s,b),p(g,l,b),m(l,u),T.m(u,null),m(u,c),S&&S.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(o,/*endDateAsString*/e[7]),C===(C=b(e))&&T?T.p(e,t):(T.d(1),T=C(e),T&&(T.c(),T.m(u,c))),P===(P=x(e))&&S?S.p(e,t):(S&&S.d(1),S=P&&P(e),S&&(S.c(),S.m(u,null)))},d(e){e&&g(t),e&&g(s),e&&g(l),T.d(),S&&S.d(),d=!1,h()}}}
|
|
758
774
|
// (97:10) {:else}
|
|
759
|
-
function
|
|
775
|
+
function Ji(e){let t;return{c(){t=y("div"),_(t,"class","ProgressBarFill"),_(t,"part","ProgressBarFill"),P(t,"width",/*getProgress*/e[8]()+"%")},m(e,n){p(e,t,n)},p(e,n){/*getProgress*/256&n&&P(t,"width",/*getProgress*/e[8]()+"%")},d(e){e&&g(t)}}}
|
|
760
776
|
// (95:10) {#if tournamentUntilStartDays > 0}
|
|
761
|
-
function
|
|
777
|
+
function Zi(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)}}}
|
|
762
778
|
// (92:8) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
763
|
-
function
|
|
779
|
+
function Ki(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)}}}
|
|
764
780
|
// (109:12) {#if tournamentLeftDays > 0}
|
|
765
|
-
function
|
|
781
|
+
function Xi(e){let t,n,r,i,a=/*$_*/e[9]("tournamentsDuration.left")+"";return{c(){t=y("div"),n=w(/*showRemain*/e[5]),r=v(),i=w(a),_(t,"class","Remaining"),_(t,"part","Remaining")},m(e,a){p(e,t,a),m(t,n),m(t,r),m(t,i)},p(e,t){/*showRemain*/32&t&&k(n,/*showRemain*/e[5]),/*$_*/512&t&&a!==(a=/*$_*/e[9]("tournamentsDuration.left")+"")&&k(i,a)},d(e){e&&g(t)}}}
|
|
766
782
|
// (104:10) {#if tournamentUntilStartDays > 0}
|
|
767
|
-
function
|
|
783
|
+
function Qi(e){let t,n,r,i,a=/*$_*/e[9]("tournamentsDuration.starting")+"",o=/*getTextByDiff*/e[11](/*tournamentUntilStartDays*/e[4])+"";return{c(){t=y("div"),n=w(a),r=v(),i=w(o),_(t,"class","Remaining"),_(t,"part","Remaining")},m(e,a){p(e,t,a),m(t,n),m(t,r),m(t,i)},p(e,t){/*$_*/512&t&&a!==(a=/*$_*/e[9]("tournamentsDuration.starting")+"")&&k(n,a),/*tournamentUntilStartDays*/16&t&&o!==(o=/*getTextByDiff*/e[11](/*tournamentUntilStartDays*/e[4])+"")&&k(i,o)},d(e){e&&g(t)}}}
|
|
768
784
|
// (101:8) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
769
|
-
function
|
|
785
|
+
function ea(e){let t,n,r=/*$_*/e[9]("tournamentsDuration.finished")+"";return{c(){t=y("div"),n=w(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 ta(t){let n,r=/*startdate*/t[0]&&/*enddate*/t[1]&&qi(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=qi(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 na(e,t,n){let r,i;d(e,Yn,(e=>n(9,i=e)));let{startdate:a=""}=t,{enddate:o=""}=t,{status:s=""}=t,{lang:l="en"}=t,u="",c="",h="",f="",m="";Object.keys(vi).forEach((e=>{bi(e,vi[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,o)),n(4,c=g(e,a)),n(5,h=w(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()}`},C=()=>{n(6,f=y(a)),n(7,m=y(o))},w=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((()=>{a&&o&&b()}),1e3);return()=>clearInterval(e)})),e.$$set=e=>{"startdate"in e&&n(0,a=e.startdate),"enddate"in e&&n(1,o=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(a,o),t=100/e;return Math.floor((e-u)*t)}),/*startdate, enddate, tournamentLeftDays*/11&e.$$.dirty&&a&&o&&C()&&b()&&w(u),/*lang*/4096&e.$$.dirty&&l&&b()&&yi(l),/*lang, tournamentLeftDays*/4104&e.$$.dirty&&l&&w(u),/*lang*/4096&e.$$.dirty&&l&&C()},[a,o,s,u,c,h,f,m,r,i,b,w,l]}customElements.define("user-enroll-tag",Wi);class ra extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},na,ta,o,{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()}}
|
|
770
786
|
/* src/Cells/SeeGamesLine.svelte generated by Svelte v3.59.2 */
|
|
771
|
-
function ta(t){let n,r,i,a,o,s,l,u,c,d=/*$_*/t[3]("tournamentsThumbnail.seegames")+"",h=/*$_*/t[3]("tournamentsThumbnail.here")+"";return{c(){n=y("div"),r=y("p"),i=w(d),a=v(),o=y("a"),s=w(h),this.c=e,_(o,"part","GamesAnchor"),_(o,"class","GamesAnchor"),_(o,"href",/*gameurl*/t[0]),_(o,"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,a),m(r,o),m(o,s),u||(c=x(o,"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&&_(o,"href",/*gameurl*/e[0]),/*keepbrowsercontext*/4&t&&l!==(l=/*keepbrowsercontext*/"true"===e[2]?"_self":"_blank")&&_(o,"target",l)},i:e,o:e,d(e){e&&g(n),u=!1,c()}}}function na(e,t,n){let r;d(e,Vn,(e=>n(3,r=e)));let{gameurl:i=""}=t,{lang:a="en"}=t,{tourid:o=""}=t,{keepbrowsercontext:s="false"}=t;Object.keys(xi).forEach((e=>{mi(e,xi[e])})),hn({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,a=e.lang),"tourid"in e&&n(1,o=e.tourid),"keepbrowsercontext"in e&&n(2,s=e.keepbrowsercontext)},[i,o,s,r,l,a,()=>l()]}customElements.define("duration-cell",ea);class ra extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},na,ta,o,{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",ra);var ia="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",aa="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",oa="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";
|
|
787
|
+
function ia(t){let n,r,i,a,o,s,l,u,c,d=/*$_*/t[3]("tournamentsThumbnail.seegames")+"",h=/*$_*/t[3]("tournamentsThumbnail.here")+"";return{c(){n=y("div"),r=y("p"),i=w(d),a=v(),o=y("a"),s=w(h),this.c=e,_(o,"part","GamesAnchor"),_(o,"class","GamesAnchor"),_(o,"href",/*gameurl*/t[0]),_(o,"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,a),m(r,o),m(o,s),u||(c=x(o,"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&&_(o,"href",/*gameurl*/e[0]),/*keepbrowsercontext*/4&t&&l!==(l=/*keepbrowsercontext*/"true"===e[2]?"_self":"_blank")&&_(o,"target",l)},i:e,o:e,d(e){e&&g(n),u=!1,c()}}}function aa(e,t,n){let r;d(e,Yn,(e=>n(3,r=e)));let{gameurl:i=""}=t,{lang:a="en"}=t,{tourid:o=""}=t,{keepbrowsercontext:s="false"}=t;Object.keys(Pi).forEach((e=>{bi(e,Pi[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,a=e.lang),"tourid"in e&&n(1,o=e.tourid),"keepbrowsercontext"in e&&n(2,s=e.keepbrowsercontext)},[i,o,s,r,l,a,()=>l()]}customElements.define("duration-cell",ra);class oa extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},aa,ia,o,{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",oa);var sa="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",la="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",ua="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";
|
|
772
788
|
/* src/Cells/PrizesCell.svelte generated by Svelte v3.59.2 */
|
|
773
|
-
function
|
|
789
|
+
function ca(e,t,n){const r=e.slice();return r[15]=t[n],r[17]=n,r}function da(e,t,n){const r=e.slice();return r[12]=t[n],r}function ha(e,t,n){const r=e.slice();return r[15]=t[n],r[17]=n,r}
|
|
774
790
|
// (110:2) {#if prizes}
|
|
775
|
-
function
|
|
776
|
-
return e[2].expandAll?
|
|
791
|
+
function fa(e){let t;function n(e,t){/*cellsetting*/
|
|
792
|
+
return e[2].expandAll?pa:ma}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,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
|
|
777
793
|
// (140:4) {:else }
|
|
778
|
-
function
|
|
794
|
+
function ma(e){let t,n,r=/*prizes*/e[0],i=[];for(let t=0;t<r.length;t+=1)i[t]=wa(ca(e,r,t));let a=null;return r.length||(a=ga(e)),{c(){t=y("div"),n=y("div");for(let e=0;e<i.length;e+=1)i[e].c();a&&a.c(),_(n,"class","Prizes"),_(n,"part","Prizes"),_(t,"class","Collapse")},m(e,r){p(e,t,r),m(t,n);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(n,null);a&&a.m(n,null)},p(e,t){if(/*prizes, $_, rankImgs, showrankasimage*/51&t){let o;for(r=/*prizes*/e[0],o=0;o<r.length;o+=1){const a=ca(e,r,o);i[o]?i[o].p(a,t):(i[o]=wa(a),i[o].c(),i[o].m(n,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length,!r.length&&a?a.p(e,t):r.length?a&&(a.d(1),a=null):(a=ga(e),a.c(),a.m(n,null))}},d(e){e&&g(t),b(i,e),a&&a.d()}}}
|
|
779
795
|
// (111:4) {#if cellsetting.expandAll}
|
|
780
|
-
function
|
|
796
|
+
function pa(e){let t,n=/*prizesInList*/e[3],r=[];for(let t=0;t<n.length;t+=1)r[t]=ka(da(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 a;for(n=/*prizesInList*/e[3],a=0;a<n.length;a+=1){const o=da(e,n,a);r[a]?r[a].p(o,i):(r[a]=ka(o),r[a].c(),r[a].m(t,null))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(e){e&&g(t),b(r,e)}}}
|
|
781
797
|
// (167:8) {:else}
|
|
782
|
-
function
|
|
798
|
+
function ga(e){let t,n,r=/*$_*/e[5]("tournamentsPrizes.noprizes")+"";return{c(){t=y("p"),n=w(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)}}}
|
|
783
799
|
// (148:16) {#if showrankasimage=='true'}
|
|
784
|
-
function
|
|
785
|
-
return e[17]<3?
|
|
800
|
+
function ba(e){let t;let n=function(e,t){/*index*/
|
|
801
|
+
return e[17]<3?Ca:ya}(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)}}}
|
|
786
802
|
// (151:19) {:else }
|
|
787
|
-
function
|
|
803
|
+
function ya(t){let n;return{c(){n=y("span"),_(n,"class","RowNo")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
788
804
|
// (149:19) {#if index < 3}
|
|
789
|
-
function
|
|
805
|
+
function Ca(e){let t,n;return{c(){t=y("img"),_(t,"class","RowNo"),_(t,"alt","prize"),u(t.src,n=/*rankImgs*/e[4][/*index*/e[17]+1])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs*/16&r&&!u(t.src,n=/*rankImgs*/e[4][/*index*/e[17]+1])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
790
806
|
// (143:8) {#each prizes as prize, index}
|
|
791
|
-
function
|
|
807
|
+
function wa(e){let t,n,r,i,a,o,s,l,u,c,d,h,f,b,C,T=/*prize*/e[15].count>1?`${/*prize*/e[15].rank}~${/*prize*/e[15].rank+/*prize*/e[15].count-1}`:`${/*prize*/e[15].rank}`,x=/*$_*/e[5]("tournamentsPrizes.place")+"",P=/*prize*/e[15].name+"",S=/*showrankasimage*/"true"==e[1]&&ba(e);return{c(){t=y("div"),n=y("div"),r=y("p"),i=y("span"),S&&S.c(),a=v(),o=y("span"),s=w(T),l=v(),u=y("span"),c=w(x),d=w(":"),h=v(),f=y("span"),b=w(P),C=v(),_(o,"class","PrizeNo"),_(u,"class","PrizePlace"),_(i,"class","PrizeRank"),_(i,"part","PrizeRank"),_(f,"class","PrizeName"),_(f,"part","PrizeName"),_(r,"class","PrizeText"),_(r,"part","PrizeText"),_(n,"class","Prize Prize"+/*index*/e[17]),_(n,"part","Prize Prize"+/*index*/e[17]),_(t,"class","ColPrizes")},m(e,g){p(e,t,g),m(t,n),m(n,r),m(r,i),S&&S.m(i,null),m(i,a),m(i,o),m(o,s),m(i,l),m(i,u),m(u,c),m(u,d),m(r,h),m(r,f),m(f,b),m(t,C)},p(e,t){/*showrankasimage*/"true"==e[1]?S?S.p(e,t):(S=ba(e),S.c(),S.m(i,a)):S&&(S.d(1),S=null),/*prizes*/1&t&&T!==(T=/*prize*/e[15].count>1?`${/*prize*/e[15].rank}~${/*prize*/e[15].rank+/*prize*/e[15].count-1}`:`${/*prize*/e[15].rank}`)&&k(s,T),/*$_*/32&t&&x!==(x=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(c,x),/*prizes*/1&t&&P!==(P=/*prize*/e[15].name+"")&&k(b,P)},d(e){e&&g(t),S&&S.d()}}}
|
|
792
808
|
// (122:20) {:else}
|
|
793
|
-
function
|
|
809
|
+
function va(e){let t,n,r,i,a,o,s,l,u=/*prize*/e[15].rank+"",c=/*$_*/e[5]("tournamentsPrizes.place")+"",d=/*showrankasimage*/"true"==e[1]&&xa();return{c(){t=y("span"),d&&d.c(),n=v(),r=y("span"),i=w(u),a=y("span"),a.textContent=".",o=v(),s=y("span"),l=w(c),_(a,"class","Dot"),_(r,"class","PrizeNo"),_(s,"class","PrizePlace"),_(t,"class","PrizeRank"),_(t,"part","PrizeRank")},m(e,u){p(e,t,u),d&&d.m(t,null),m(t,n),m(t,r),m(r,i),m(r,a),m(t,o),m(t,s),m(s,l)},p(e,r){/*showrankasimage*/"true"==e[1]?d||(d=xa(),d.c(),d.m(t,n)):d&&(d.d(1),d=null),/*prizesInList*/8&r&&u!==(u=/*prize*/e[15].rank+"")&&k(i,u),/*$_*/32&r&&c!==(c=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(l,c)},d(e){e&&g(t),d&&d.d()}}}
|
|
794
810
|
// (118:18) {#if prize.rank < 4 && showrankasimage == 'true'}
|
|
795
|
-
function
|
|
811
|
+
function Ta(e){let t,n,r,i,a,o,s=/*$_*/e[5]("tournamentsPrizes.place")+"";return{c(){t=y("div"),n=y("img"),i=v(),a=y("span"),o=w(s),_(n,"alt","prize"),_(n,"class","RowNo"),u(n.src,r=/*rankImgs*/e[4][/*prize*/e[15].rank])||_(n,"src",r),_(a,"class","PrizePlace"),_(t,"class","PrizeRank"),_(t,"part","PrizeRank")},m(e,r){p(e,t,r),m(t,n),m(t,i),m(t,a),m(a,o)},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(o,s)},d(e){e&&g(t)}}}
|
|
796
812
|
// (124:22) {#if showrankasimage == 'true' }
|
|
797
|
-
function
|
|
813
|
+
function xa(e){let t;return{c(){t=y("span"),_(t,"class","RowNo")},m(e,n){p(e,t,n)},d(e){e&&g(t)}}}
|
|
798
814
|
// (115:12) {#each colPrizes as prize, index}
|
|
799
|
-
function
|
|
800
|
-
return e[15].rank<4&&/*showrankasimage*/"true"==e[1]?
|
|
815
|
+
function _a(e){let t,n,r,i,a,o,s,l=/*prize*/e[15].name+"";function u(e,t){/*prize*/
|
|
816
|
+
return e[15].rank<4&&/*showrankasimage*/"true"==e[1]?Ta:va}let c=u(e),d=c(e);return{c(){t=y("div"),n=y("p"),d.c(),r=v(),i=y("span"),a=w(l),_(i,"class","PrizeName"),_(i,"part","PrizeName"),_(n,"class","PrizeText"),_(n,"part","PrizeText"),_(t,"class",o="Prize Prize"+(/*prize*/e[15].rank-1)),_(t,"part",s="Prize Prize"+(/*prize*/e[15].rank-1))},m(e,o){p(e,t,o),m(t,n),d.m(n,null),m(n,r),m(n,i),m(i,a)},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(a,l),/*prizesInList*/8&i&&o!==(o="Prize Prize"+(/*prize*/e[15].rank-1))&&_(t,"class",o),/*prizesInList*/8&i&&s!==(s="Prize Prize"+(/*prize*/e[15].rank-1))&&_(t,"part",s)},d(e){e&&g(t),d.d()}}}
|
|
801
817
|
// (113:8) {#each prizesInList as colPrizes}
|
|
802
|
-
function
|
|
818
|
+
function ka(e){let t,n,r,i=/*colPrizes*/e[12],a=[];for(let t=0;t<i.length;t+=1)a[t]=_a(ha(e,i,t));return{c(){t=y("div");for(let e=0;e<a.length;e+=1)a[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<a.length;e+=1)a[e]&&a[e].m(t,null);m(t,n)},p(e,o){if(/*prizesInList, $_, rankImgs, showrankasimage*/58&o){let r;for(i=/*colPrizes*/e[12],r=0;r<i.length;r+=1){const s=ha(e,i,r);a[r]?a[r].p(s,o):(a[r]=_a(s),a[r].c(),a[r].m(t,n))}for(;r<a.length;r+=1)a[r].d(1);a.length=i.length}/*prizesInList*/8&o&&r!==(r="ColPrizes col-"+/*prizesInList*/e[3].length)&&_(t,"class",r)},d(e){e&&g(t),b(a,e)}}}function Pa(t){let n,r,i,a,o,s,l,u,c,d=/*$_*/t[5]("tournamentsPrizes.prizes")+"",h=/*prizes*/t[0]&&fa(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>',a=v(),o=y("span"),o.innerHTML='<slot name="prizeIcon"></slot>',s=v(),l=y("p"),u=w(d),c=v(),h&&h.c(),this.c=e,_(i,"class","TournamentPrizesIconWrapper"),_(i,"part","TournamentPrizesIconWrapper"),_(o,"class","TournamentPrizesIconWrapper"),_(o,"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,a),m(r,o),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=fa(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 Sa(e,t,n){let r;d(e,Yn,(e=>n(5,r=e)));let{prizes:i}=t,{lang:a=""}=t,{showrankasimage:o="false"}=t,{cellsetting:s={expandAll:!0,listType:1,rowPerCol:8,maxCol:3}}=t;
|
|
803
819
|
//let prizes:any = undefined;
|
|
804
|
-
Object.keys(
|
|
820
|
+
Object.keys(ki).forEach((e=>{bi(e,ki[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const l=e=>{};
|
|
805
821
|
/*if (e.data && e.data.type == `TournamentPrizes_${tourid}`) {
|
|
806
822
|
prizes = e.data.prizes;
|
|
807
823
|
}*/
|
|
808
|
-
let u=[];let c=[];return M((()=>(n(4,c=[
|
|
824
|
+
let u=[];let c=[];return M((()=>(n(4,c=[sa,sa,la,ua]),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,a=e.lang),"showrankasimage"in e&&n(1,o=e.showrankasimage),"cellsetting"in e&&n(2,s=e.cellsetting)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&a&&yi(a),/*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,o,s,u,c,r,a]}class Ea extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Sa,Pa,o,{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()}}
|
|
809
825
|
/* src/Cells/GamesCell.svelte generated by Svelte v3.59.2 */
|
|
810
|
-
function
|
|
826
|
+
function $a(e,t,n){const r=e.slice();return r[42]=t[n],r[44]=n,r}
|
|
811
827
|
// (135:2) {#if sliderGames}
|
|
812
|
-
function
|
|
813
|
-
/*div1_binding*/e[25](a),p(i,o,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]&&S(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
|
|
828
|
+
function La(e){let t,n,r,a,o,s,l,u,c=/*sliderGames*/e[2],d=[];for(let t=0;t<c.length;t+=1)d[t]=Da($a(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"),a=y("div");for(let e=0;e<d.length;e+=1)d[e].c();o=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"),S(t,"disabled",/*atStart*/e[7]),_(a,"class","items"),_(a,"part","items"),P(a,"transform","translateX("+/*offset*/e[0]+"px)"),_(r,"class","main"),_(s,"class","SliderNavButton"),_(s,"part","SliderNavButton"),S(s,"disabled",/*atEnd*/e[6])},m(i,c){p(i,t,c),p(i,n,c),p(i,r,c),m(r,a);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(a,null);
|
|
829
|
+
/*div1_binding*/e[25](a),p(i,o,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]&&S(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=$a(e,c,t);d[t]?d[t].p(r,n):(d[t]=Da(r),d[t].c(),d[t].m(a,null))}for(;t<d.length;t+=1)d[t].d(1);d.length=c.length}/*offset*/1&n[0]&&P(a,"transform","translateX("+/*offset*/e[0]+"px)"),/*atEnd*/64&n[0]&&S(s,"disabled",/*atEnd*/e[6])},d(a){a&&g(t),a&&g(n),a&&g(r),b(d,a),
|
|
814
830
|
/*div1_binding*/e[25](null),a&&g(o),a&&g(s),l=!1,i(u)}}}
|
|
815
831
|
// (143:8) {#each sliderGames as game, i}
|
|
816
|
-
function
|
|
832
|
+
function Da(e){let t,n,r,a,o,s,l,c,d,h,f,b,C,T=/*$_*/e[8]("gamesSlider.playNow")+"";function P(){/*click_handler_1*/
|
|
817
833
|
return e[22](/*game*/e[42])}function S(){/*mouseenter_handler*/
|
|
818
|
-
return e[23](/*i*/e[44])}return{c(){t=y("div"),n=y("span"),r=w(T),s=v(),l=y("img"),f=v(),_(n,"class",a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":"")),_(n,"part",o="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,a){p(i,t,a),m(t,n),m(n,r),m(t,s),m(t,l),m(t,f),b||(C=[x(t,"click",P),x(t,"mouseenter",S),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]&&a!==(a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(n,"class",a),/*hover, hoverIndex*/24&i[0]&&o!==(o="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(n,"part",o),/*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(C)}}}function
|
|
819
|
-
/*div_binding*/,t[27](n)},p(e,t){/*sliderGames*/e[2]?r?r.p(e,t):(r=
|
|
820
|
-
/*div_binding*/,t[27](null)}}}customElements.define("prizes-cell",
|
|
834
|
+
return e[23](/*i*/e[44])}return{c(){t=y("div"),n=y("span"),r=w(T),s=v(),l=y("img"),f=v(),_(n,"class",a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":"")),_(n,"part",o="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,a){p(i,t,a),m(t,n),m(n,r),m(t,s),m(t,l),m(t,f),b||(C=[x(t,"click",P),x(t,"mouseenter",S),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]&&a!==(a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(n,"class",a),/*hover, hoverIndex*/24&i[0]&&o!==(o="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(n,"part",o),/*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(C)}}}function Ma(t){let n,r=/*sliderGames*/t[2]&&La(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)
|
|
835
|
+
/*div_binding*/,t[27](n)},p(e,t){/*sliderGames*/e[2]?r?r.p(e,t):(r=La(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()
|
|
836
|
+
/*div_binding*/,t[27](null)}}}customElements.define("prizes-cell",Ea);function Ra(e,t,n){let r,i,a;d(e,Yn,(e=>n(8,a=e)));let o,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,C=null,w=!1,v=0,T=[],x=[];Object.keys(Ti).forEach((e=>{bi(e,Ti[e])}));const _=e=>{n(3,w=!0),n(4,l=e)},k=()=>{n(3,w=!1),n(4,l=-1)},P=e=>{const t=(e=>e.touches||e.originalEvent.touches)(e)[0];y=t.clientX,C=t.clientY},S=e=>{if(!y||!C)return;let t=e.touches[0].clientX,n=e.touches[0].clientY,r=y-t,i=C-n;Math.abs(r)>Math.abs(i)&&E(r>0?1:-1),y=null,C=null},E=e=>{e>0&&!i?(n(0,b-=o),n(0,b=b<v?v:b)):e<0&&!r&&(n(0,b+=o),n(0,b=b>0?0:b))},$=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};let L=!1;M((()=>(n(20,L=!0),o=parseInt("3",10)*parseInt(c,10),()=>{s.removeEventListener("touchstart",P),s.removeEventListener("touchmove",S)})));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",P,{passive:!0}),s.addEventListener("touchmove",S,{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)),o=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+`/v1/tournaments/${t}`),i=new Headers({"X-SessionId":f});r.searchParams.append("platform",ni(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,launchUrl)");let a={method:"GET",headers:i};fetch(r.href,a).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,w,l,u,i,r,a,_,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 Aa extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ra,Ma,o,{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()}}
|
|
821
837
|
/* src/Cells/TermsAndConditionsCell.svelte generated by Svelte v3.59.2 */
|
|
822
|
-
function
|
|
838
|
+
function Ba(t){return{c(){this.c=e},m:e,p:e,i:e,o:e,d:e}}customElements.define("games-cell",Aa);class za extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},null,Ba,o,{},null),e&&e.target&&p(e.target,this,e.anchor)}}
|
|
823
839
|
/* src/Cells/DescriptionCell.svelte generated by Svelte v3.59.2 */
|
|
824
|
-
function
|
|
840
|
+
function Oa(e,t,n){const r=e.slice();return r[2]=t[n],r}
|
|
825
841
|
// (15:2) {:else }
|
|
826
|
-
function
|
|
842
|
+
function Fa(t){let n;return{c(){n=w(" ")},m(e,t){p(e,n,t)},p:e,i:e,o:e,d(e){e&&g(n)}}}
|
|
827
843
|
// (9:0) {#if tournamentdescription && tournamentdescription.length > 0}
|
|
828
|
-
function
|
|
844
|
+
function Na(e){let t,n,r=/*tournamentdescription*/e[0],i=[];for(let t=0;t<r.length;t+=1)i[t]=Ha(Oa(e,r,t));const a=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 o;for(r=/*tournamentdescription*/e[0],o=0;o<r.length;o+=1){const a=Oa(e,r,o);i[o]?(i[o].p(a,n),J(i[o],1)):(i[o]=Ha(a),i[o].c(),J(i[o],1),i[o].m(t.parentNode,t))}for(W(),o=r.length;o<i.length;o+=1)a(o);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)}}}
|
|
829
845
|
// (10:2) {#each tournamentdescription as desc}
|
|
830
|
-
function
|
|
831
|
-
return e[0]&&/*tournamentdescription*/e[0].length>0?0:1}return n=l(t),r=s[n]=o[n](t),{c(){r.c(),i=T(),this.c=e},m(e,t){s[n].m(e,t),p(e,i,t),a=!0},p(e,[t]){let a=n;n=l(e),n===a?s[n].p(e,t):(W(),Z(s[a],1,1,(()=>{s[a]=null})),q(),r=s[n],r?r.p(e,t):(r=s[n]=o[n](e),r.c()),J(r,1),r.m(i.parentNode,i))},i(e){a||(J(r),a=!0)},o(e){Z(r),a=!1},d(e){s[n].d(e),e&&g(i)}}}function
|
|
846
|
+
function Ha(e){let t,n;return t=new gi({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 Ua(t){let n,r,i,a;const o=[Na,Fa],s=[];function l(e,t){/*tournamentdescription*/
|
|
847
|
+
return e[0]&&/*tournamentdescription*/e[0].length>0?0:1}return n=l(t),r=s[n]=o[n](t),{c(){r.c(),i=T(),this.c=e},m(e,t){s[n].m(e,t),p(e,i,t),a=!0},p(e,[t]){let a=n;n=l(e),n===a?s[n].p(e,t):(W(),Z(s[a],1,1,(()=>{s[a]=null})),q(),r=s[n],r?r.p(e,t):(r=s[n]=o[n](e),r.c()),J(r,1),r.m(i.parentNode,i))},i(e){a||(J(r),a=!0)},o(e){Z(r),a=!1},d(e){s[n].d(e),e&&g(i)}}}function Ia(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",za);class ja extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ia,Ua,o,{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",ja);var Ya="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",Ga="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";
|
|
832
848
|
/* src/Cells/LeaderboardCell.svelte generated by Svelte v3.59.2 */
|
|
833
|
-
function
|
|
849
|
+
function Va(e,t,n){const r=e.slice();return r[72]=t[n],r}function Wa(e,t,n){const r=e.slice();return r[69]=t[n],r}function qa(e,t,n){const r=e.slice();return r[72]=t[n],r[78]=n,r}function Ja(e,t,n){const r=e.slice();return r[69]=t[n],r}function Za(e,t,n){const r=e.slice();return r[72]=t[n],r}
|
|
834
850
|
// (590:2) {:else}
|
|
835
|
-
function
|
|
851
|
+
function Ka(e){let t,n,r,i,a,o,s,l,u,c=/*$_*/e[14]("tournamentsTable.nowinners")+"",d=/*columns*/e[4],h=[];for(let t=0;t<d.length;t+=1)h[t]=no(Va(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();a=v(),o=y("tbody"),s=y("tr"),l=y("td"),u=w(c),_(i,"part","LeftTableTr"),_(r,"part","LeftTableThead"),_(r,"class","LeftTableThead"),_(l,"colspan",/*tooltipColSpan*/e[9]),_(l,"part","LeftTableTd"),_(s,"part","LeftTableTr"),_(o,"part","LeftTableTbody"),_(o,"class","LeftTableTbody"),_(n,"class","LeftTable"),_(n,"part","LeftTable"),_(t,"class","TournamentsTable"),_(t,"part","TournamentsTable"),P(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,a),m(n,o),m(o,s),m(s,l),m(l,u)},p(e,n){if(/*sort, sortBy, columns, $_, sortable*/86034&n[0]){let t;for(d=/*columns*/e[4],t=0;t<d.length;t+=1){const r=Va(e,d,t);h[t]?h[t].p(r,n):(h[t]=no(r),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}/*$_*/16384&n[0]&&c!==(c=/*$_*/e[14]("tournamentsTable.nowinners")+"")&&k(u,c),/*tooltipColSpan*/512&n[0]&&_(l,"colspan",/*tooltipColSpan*/e[9]),/*isLoading*/1024&n[0]&&P(t,"display",/*isLoading*/e[10]?"none":"")},d(e){e&&g(t),b(h,e)}}}
|
|
836
852
|
// (584:2) {#if isMobile(userAgent) == true}
|
|
837
|
-
function
|
|
853
|
+
function Xa(e){let t,n=/*showTable*/e[6]&&!/*isLoading*/e[10]&&ro(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=ro(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&g(t)}}}
|
|
838
854
|
// (361:0) {#if !isLoading && (data.length > 0 || firstRowData)}
|
|
839
|
-
function
|
|
855
|
+
function Qa(e){let t;let n=function(e,t){return 1==ti(/*userAgent*/e[15])?ao:io}(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)}}}
|
|
840
856
|
// (601:14) {:else}
|
|
841
|
-
function
|
|
857
|
+
function eo(e){let t,n,r=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"";return{c(){t=y("p"),n=w(r),_(t,"data-sort",/*sort*/e[12]),_(t,"part","LeftTableP")},m(e,r){p(e,t,r),m(t,n)},p(e,i){/*$_, columns*/16400&i[0]&&r!==(r=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"")&&k(n,r),/*sort*/4096&i[0]&&_(t,"data-sort",/*sort*/e[12])},d(e){e&&g(t)}}}
|
|
842
858
|
// (597:14) {#if sortable == 'true'}
|
|
843
|
-
function
|
|
859
|
+
function to(e){let t,n,r,i,a=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"";function o(){/*click_handler_3*/
|
|
844
860
|
return e[37](/*column*/e[72])}return{c(){t=y("button"),n=w(a),_(t,"data-sort",/*sort*/e[12]),_(t,"part","LeftTableButton")},m(e,a){p(e,t,a),m(t,n),r||(i=x(t,"click",o),r=!0)},p(r,i){e=r,/*$_, columns*/16400&i[0]&&a!==(a=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"")&&k(n,a),/*sort*/4096&i[0]&&_(t,"data-sort",/*sort*/e[12])},d(e){e&&g(t),r=!1,i()}}}
|
|
845
861
|
// (595:10) {#each columns as column}
|
|
846
|
-
function
|
|
847
|
-
return"true"==e[1]?
|
|
862
|
+
function no(e){let t,n;function r(e,t){/*sortable*/
|
|
863
|
+
return"true"==e[1]?to:eo}let i=r(e),a=i(e);return{c(){t=y("th"),a.c(),n=v(),_(t,"part","LeftTableTh")},m(e,r){p(e,t,r),a.m(t,null),m(t,n)},p(e,o){i===(i=r(e))&&a?a.p(e,o):(a.d(1),a=i(e),a&&(a.c(),a.m(t,n)))},d(e){e&&g(t),a.d()}}}
|
|
848
864
|
// (585:4) {#if showTable && !isLoading}
|
|
849
|
-
function
|
|
865
|
+
function ro(e){let t,n,r,i,a=/*$_*/e[14]("tournamentsTable.nowinners")+"";return{c(){t=y("div"),n=y("div"),r=y("p"),i=w(a),_(n,"class","TableUser"),_(n,"part","TableUser"),_(t,"class","TableContent"),_(t,"part","TableContent")},m(e,a){p(e,t,a),m(t,n),m(n,r),m(r,i)},p(e,t){/*$_*/16384&t[0]&&a!==(a=/*$_*/e[14]("tournamentsTable.nowinners")+"")&&k(i,a)},d(e){e&&g(t)}}}
|
|
850
866
|
// (440:2) {:else}
|
|
851
|
-
function
|
|
852
|
-
return e[6]
|
|
867
|
+
function io(e){let t,n,r,i,a,o,s,l,u,c,d,h,f=/*columns*/e[4],C=[];for(let t=0;t<f.length;t+=1)C[t]=lo(qa(e,f,t));let w=/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]&&uo(e),T=/*showTable*/e[6]&&yo(e);function k(e,t){/*showTable*/
|
|
868
|
+
return e[6]?$o:Eo}let P=k(e),S=P(e);return{c(){t=y("div"),n=y("table"),r=y("thead"),i=y("tr");for(let e=0;e<C.length;e+=1)C[e].c();a=v(),o=y("tbody"),w&&w.c(),s=v(),T&&T.c(),l=v(),u=y("div"),c=y("div"),S.c(),_(i,"part","LeftTableTr"),_(i,"class","LeftTableTr"),_(r,"part","LeftTableThead"),_(r,"class","LeftTableThead"),_(o,"part","LeftTableTbody"),_(o,"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<C.length;e+=1)C[e]&&C[e].m(i,null);m(n,a),m(n,o),w&&w.m(o,null),m(o,s),T&&T.m(o,null),m(t,l),m(t,u),m(u,c),S.m(c,null),d||(h=x(c,"click",/*click_handler_2*/e[36]),d=!0)},p(e,t){if(/*sort, sortBy, columns, $_, sortable*/86034&t[0]){let n;for(f=/*columns*/e[4],n=0;n<f.length;n+=1){const r=qa(e,f,n);C[n]?C[n].p(r,t):(C[n]=lo(r),C[n].c(),C[n].m(i,null))}for(;n<C.length;n+=1)C[n].d(1);C.length=f.length}/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]?w?w.p(e,t):(w=uo(e),w.c(),w.m(o,s)):w&&(w.d(1),w=null),/*showTable*/e[6]?T?T.p(e,t):(T=yo(e),T.c(),T.m(o,null)):T&&(T.d(1),T=null),P!==(P=k(e))&&(S.d(1),S=P(e),S&&(S.c(),S.m(c,null)))},d(e){e&&g(t),b(C,e),w&&w.d(),T&&T.d(),S.d(),d=!1,h()}}}
|
|
853
869
|
// (362:2) {#if isMobile(userAgent) == true}
|
|
854
|
-
function
|
|
870
|
+
function ao(e){let t,n,r,i,a=/*columns*/e[4],o=[];for(let t=0;t<a.length;t+=1)o[t]=Mo(Za(e,a,t));let s=/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]&&Ro(e),l=/*showTable*/e[6]&&Uo(e);return{c(){t=y("div"),n=y("div");for(let e=0;e<o.length;e+=1)o[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,a){p(e,t,a),m(t,n);for(let e=0;e<o.length;e+=1)o[e]&&o[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*/86034&r[0]){let t;for(a=/*columns*/e[4],t=0;t<a.length;t+=1){const i=Za(e,a,t);o[t]?o[t].p(i,r):(o[t]=Mo(i),o[t].c(),o[t].m(n,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=a.length}/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]?s?s.p(e,r):(s=Ro(e),s.c(),s.m(t,i)):s&&(s.d(1),s=null),/*showTable*/e[6]?l?l.p(e,r):(l=Uo(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&g(t),b(o,e),s&&s.d(),l&&l.d()}}}
|
|
855
871
|
// (451:14) {:else}
|
|
856
|
-
function
|
|
872
|
+
function oo(e){let t,n,r=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"";return{c(){t=y("p"),n=w(r),_(t,"data-sort",/*sort*/e[12]),_(t,"part","LeftTableP"),_(t,"class","LeftTableP")},m(e,r){p(e,t,r),m(t,n)},p(e,i){/*$_, columns*/16400&i[0]&&r!==(r=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"")&&k(n,r),/*sort*/4096&i[0]&&_(t,"data-sort",/*sort*/e[12])},d(e){e&&g(t)}}}
|
|
857
873
|
// (447:14) {#if sortable == 'true'}
|
|
858
|
-
function
|
|
874
|
+
function so(e){let t,n,r,i,a=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"";function o(){/*click_handler_1*/
|
|
859
875
|
return e[35](/*column*/e[72])}return{c(){t=y("button"),n=w(a),_(t,"data-sort",/*sort*/e[12]),_(t,"part","LeftTableButton")},m(e,a){p(e,t,a),m(t,n),r||(i=x(t,"click",o),r=!0)},p(r,i){e=r,/*$_, columns*/16400&i[0]&&a!==(a=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"")&&k(n,a),/*sort*/4096&i[0]&&_(t,"data-sort",/*sort*/e[12])},d(e){e&&g(t),r=!1,i()}}}
|
|
860
876
|
// (445:10) {#each columns as column, index}
|
|
861
|
-
function
|
|
862
|
-
return"true"==e[1]?
|
|
877
|
+
function lo(e){let t,n;function r(e,t){/*sortable*/
|
|
878
|
+
return"true"==e[1]?so:oo}let i=r(e),a=i(e);return{c(){t=y("th"),a.c(),n=v(),_(t,"part","LeftTableTh LeftTableTh_"+/*index*/e[78]),_(t,"class","LeftTableTh")},m(e,r){p(e,t,r),a.m(t,null),m(t,n)},p(e,o){i===(i=r(e))&&a?a.p(e,o):(a.d(1),a=i(e),a&&(a.c(),a.m(t,n)))},d(e){e&&g(t),a.d()}}}
|
|
863
879
|
// (459:8) {#if firstrow == 'true' && firstRowData}
|
|
864
|
-
function
|
|
865
|
-
return e[5].Rank<4&&/*showrankasimage*/"true"==e[2]?
|
|
866
|
-
return e[5].Prize?
|
|
880
|
+
function uo(e){let t,n,r,i,a,o,s,l,c,d,h,f,b,C,x,P,S,E,$,L,D,M,R,A,B,z,O,F,N,H,U,I,j=/*firstRowData*/e[5].Player+"",Y=/*firstRowData*/e[5].Points+"";function G(e,t){/*firstRowData*/
|
|
881
|
+
return e[5].Rank<4&&/*showrankasimage*/"true"==e[2]?ho:co}let V=G(e),W=V(e);function q(e,t){/*firstRowData*/
|
|
882
|
+
return e[5].Prize?go:po}let J=q(e),Z=J(e),K=/*firstRowData*/e[5].Unqualified&&bo(e);return{c(){t=y("tr"),n=y("td"),r=y("div"),i=y("strong"),W.c(),a=v(),o=y("div"),s=y("img"),d=v(),h=y("img"),P=v(),S=y("td"),E=y("div"),$=w(j),L=v(),D=y("td"),M=y("div"),R=w(Y),A=v(),B=y("td"),z=y("div"),Z.c(),U=v(),K&&K.c(),I=T(),u(s.src,l=Ya)||_(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=Ga)||_(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")),_(o,"class",C="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(o,"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"),_(S,"part","LeftTableTd"),_(S,"class","LeftTableTd"),_(M,"class","Flex CellContent"),_(M,"part","Flex"),_(D,"part","LeftTableTd"),_(D,"class","LeftTableTd"),_(z,"class","PrizeCell CellContent"),_(z,"part","PrizeCell"),_(B,"class",O="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(B,"part",F="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,a),m(i,o),m(o,s),m(o,d),m(o,h),m(t,P),m(t,S),m(S,E),m(E,$),m(t,L),m(t,D),m(D,M),m(M,R),m(t,A),m(t,B),m(B,z),Z.m(z,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,a))),/*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]&&C!==(C="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(o,"class",C),/*isUserPositionChanged*/128&n[0]&&x!==(x="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(o,"part",x),/*firstRowData*/32&n[0]&&j!==(j=/*firstRowData*/e[5].Player+"")&&k($,j),/*firstRowData*/32&n[0]&&Y!==(Y=/*firstRowData*/e[5].Points+"")&&k(R,Y),J===(J=q(e))&&Z?Z.p(e,n):(Z.d(1),Z=J(e),Z&&(Z.c(),Z.m(z,null))),/*firstRowData*/32&n[0]&&O!==(O="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(B,"class",O),/*firstRowData*/32&n[0]&&F!==(F="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(B,"part",F),/*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=bo(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)}}}
|
|
867
883
|
// (470:16) {:else}
|
|
868
|
-
function
|
|
884
|
+
function co(e){let t,n,r,i=/*firstRowData*/(e[5].Rank||"")+"";return{c(){t=y("em"),n=w("#"),r=w(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)}}}
|
|
869
885
|
// (464:16) {#if firstRowData.Rank < 4 && showrankasimage=='true'}
|
|
870
|
-
function
|
|
871
|
-
return e[5].Rank>0?
|
|
886
|
+
function ho(e){let t;function n(e,t){/*firstRowData*/
|
|
887
|
+
return e[5].Rank>0?mo:fo}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,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
|
|
872
888
|
// (467:18) {:else }
|
|
873
|
-
function
|
|
889
|
+
function fo(t){let n;return{c(){n=y("em"),n.textContent="#",_(n,"part","LeftTableTdEm")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
874
890
|
// (465:18) {#if firstRowData.Rank > 0}
|
|
875
|
-
function
|
|
891
|
+
function mo(e){let t,n;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,n=/*rankImgs*/e[11][/*firstRowData*/e[5].Rank])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs, firstRowData*/2080&r[0]&&!u(t.src,n=/*rankImgs*/e[11][/*firstRowData*/e[5].Rank])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
876
892
|
// (490:16) {:else}
|
|
877
|
-
function
|
|
893
|
+
function po(t){let n;return{c(){n=w("-")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
878
894
|
// (488:16) {#if firstRowData.Prize}
|
|
879
|
-
function
|
|
895
|
+
function go(e){let t,n=/*firstRowData*/e[5].Prize+"";return{c(){t=w(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)}}}
|
|
880
896
|
// (496:10) {#if firstRowData.Unqualified}
|
|
881
|
-
function
|
|
897
|
+
function bo(e){let t,n,r,i,a,o,s=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("tr"),n=y("td"),r=C("svg"),i=C("path"),a=v(),o=w(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,a),m(n,o)},p(e,t){/*$_*/16384&t[0]&&s!==(s=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"")&&k(o,s),/*tooltipColSpan*/512&t[0]&&_(n,"colspan",/*tooltipColSpan*/e[9])},d(e){e&&g(t)}}}
|
|
882
898
|
// (507:8) {#if showTable}
|
|
883
|
-
function
|
|
899
|
+
function yo(e){let t,n=/*display*/e[13],r=[];for(let t=0;t<n.length;t+=1)r[t]=So(Wa(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, $_, isUserPositionChanged, isUserPositionUp, rankImgs, showrankasimage*/27524&i[0]){let a;for(n=/*display*/e[13],a=0;a<n.length;a+=1){const o=Wa(e,n,a);r[a]?r[a].p(o,i):(r[a]=So(o),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(e){b(r,e),e&&g(t)}}}
|
|
884
900
|
// (521:22) {:else}
|
|
885
|
-
function
|
|
901
|
+
function Co(e){let t,n,r=/*row*/(e[69].Rank||"")+"";return{c(){t=w("#"),n=w(r)},m(e,r){p(e,t,r),p(e,n,r)},p(e,t){/*display*/8192&t[0]&&r!==(r=/*row*/(e[69].Rank||"")+"")&&k(n,r)},d(e){e&&g(t),e&&g(n)}}}
|
|
886
902
|
// (515:22) {#if row.Rank < 4 && showrankasimage=='true'}
|
|
887
|
-
function
|
|
888
|
-
return e[69].Rank>0?
|
|
903
|
+
function wo(e){let t;function n(e,t){/*row*/
|
|
904
|
+
return e[69].Rank>0?To:vo}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,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
|
|
889
905
|
// (518:26) {:else }
|
|
890
|
-
function
|
|
906
|
+
function vo(t){let n;return{c(){n=w("#")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
891
907
|
// (516:24) {#if row.Rank > 0}
|
|
892
|
-
function
|
|
908
|
+
function To(e){let t,n;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,n=/*rankImgs*/e[11][/*row*/e[69].Rank])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs, display*/10240&r[0]&&!u(t.src,n=/*rankImgs*/e[11][/*row*/e[69].Rank])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
893
909
|
// (525:24) {#if row.isCurrentUser}
|
|
894
|
-
function
|
|
910
|
+
function xo(e){let t,n,r,i,a,o,s;return{c(){t=y("img"),i=v(),a=y("img"),u(t.src,n=Ya)||_(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(a.src,o=Ga)||_(a,"src",o),_(a,"alt","DownArrow"),_(a,"part","Rank_Arror_Down"),_(a,"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,a,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"))&&_(a,"class",s)},d(e){e&&g(t),e&&g(i),e&&g(a)}}}
|
|
895
911
|
// (548:18) {:else}
|
|
896
|
-
function
|
|
912
|
+
function _o(t){let n;return{c(){n=w("-")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
897
913
|
// (546:18) {#if row.Prize}
|
|
898
|
-
function
|
|
914
|
+
function ko(e){let t,n=/*row*/e[69].Prize+"";return{c(){t=w(n)},m(e,n){p(e,t,n)},p(e,r){/*display*/8192&r[0]&&n!==(n=/*row*/e[69].Prize+"")&&k(t,n)},d(e){e&&g(t)}}}
|
|
899
915
|
// (554:12) {#if row.Unqualified && row.isCurrentUser}
|
|
900
|
-
function
|
|
916
|
+
function Po(e){let t,n,r,i,a,o,s,l,u=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("tr"),n=y("td"),r=C("svg"),i=C("path"),a=v(),o=w(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[69].Rank+"Tr CurrentUserTr"),_(t,"part","TooltipsRow")},m(e,l){p(e,t,l),m(t,n),m(n,r),m(r,i),m(n,a),m(n,o),m(t,s)},p(e,r){/*$_*/16384&r[0]&&u!==(u=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"")&&k(o,u),/*tooltipColSpan*/512&r[0]&&_(n,"colspan",/*tooltipColSpan*/e[9]),/*display*/8192&r[0]&&l!==(l="TooltipsRow Rank"+/*row*/e[69].Rank+"Tr CurrentUserTr")&&_(t,"class",l)},d(e){e&&g(t)}}}
|
|
901
917
|
// (508:10) {#each display as row}
|
|
902
|
-
function
|
|
903
|
-
return e[69].Rank<4&&/*showrankasimage*/"true"==e[2]?
|
|
904
|
-
return e[69].Prize?
|
|
918
|
+
function So(e){let t,n,r,i,a,o,s,l,u,c,d,h,f,b,C,x,P,S,E,$,L,D,M,R,A,B,z,O,F=/*row*/e[69].Player+"",N=/*row*/e[69].Points+"";function H(e,t){/*row*/
|
|
919
|
+
return e[69].Rank<4&&/*showrankasimage*/"true"==e[2]?wo:Co}let U=H(e),I=U(e),j=/*row*/e[69].isCurrentUser&&xo(e);function Y(e,t){/*row*/
|
|
920
|
+
return e[69].Prize?ko:_o}let G=Y(e),V=G(e),W=/*row*/e[69].Unqualified&&/*row*/e[69].isCurrentUser&&Po(e);return{c(){t=y("tr"),n=y("td"),r=y("div"),i=y("strong"),a=y("em"),I.c(),o=v(),s=y("div"),j&&j.c(),d=v(),h=y("td"),f=y("div"),b=w(F),C=v(),x=y("td"),P=y("div"),S=y("div"),E=w(N),$=v(),L=y("td"),D=y("div"),V.c(),z=v(),W&&W.c(),O=T(),_(s,"class",l="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(s,"part",u="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(a,"part","LeftTableTdEm"),_(i,"class","RankCol"),_(i,"part","RankCol"),_(r,"part","TableCellContent"),_(r,"class","Table CellContent"),_(n,"part",c="LeftTableTd Rank-"+/*row*/e[69].Rank),_(n,"class","LeftTableTd"),_(f,"part","PlayerCellContent"),_(f,"class","Player CellContent"),_(h,"part","LeftTableTd"),_(h,"class","LeftTableTd"),_(S,"class","Flex ScoreUp"),_(S,"part","Flex ScoreUp"),_(P,"part","ScoreCellContent"),_(P,"class","Score CellContent"),_(x,"part","LeftTableTd"),_(x,"class","LeftTableTd"),_(D,"part","PrizeCellContent"),_(D,"class","Prize CellContent "),_(L,"class",M="LeftTableTd "+(/*row*/e[69].Unqualified?"":"Qualified")),_(L,"part",R="LeftTableTd "+(/*row*/e[69].Unqualified?"":"Qualified")),_(t,"class",A="LeftTableTr Rank"+/*row*/e[69].Rank+"Tr "+(/*row*/e[69].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[69].isCurrentUser&&/*row*/e[69].Unqualified?"UnqualifiedRow":"")),_(t,"part",B="LeftTableTr "+(/*row*/e[69].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[69].isCurrentUser&&/*row*/e[69].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,n),m(n,r),m(r,i),m(i,a),I.m(a,null),m(a,o),m(a,s),j&&j.m(s,null),m(t,d),m(t,h),m(h,f),m(f,b),m(t,C),m(t,x),m(x,P),m(P,S),m(S,E),m(t,$),m(t,L),m(L,D),V.m(D,null),p(e,z,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(a,o))),/*row*/e[69].isCurrentUser?j?j.p(e,r):(j=xo(e),j.c(),j.m(s,null)):j&&(j.d(1),j=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*/8192&r[0]&&c!==(c="LeftTableTd Rank-"+/*row*/e[69].Rank)&&_(n,"part",c),/*display*/8192&r[0]&&F!==(F=/*row*/e[69].Player+"")&&k(b,F),/*display*/8192&r[0]&&N!==(N=/*row*/e[69].Points+"")&&k(E,N),G===(G=Y(e))&&V?V.p(e,r):(V.d(1),V=G(e),V&&(V.c(),V.m(D,null))),/*display*/8192&r[0]&&M!==(M="LeftTableTd "+(/*row*/e[69].Unqualified?"":"Qualified"))&&_(L,"class",M),/*display*/8192&r[0]&&R!==(R="LeftTableTd "+(/*row*/e[69].Unqualified?"":"Qualified"))&&_(L,"part",R),/*display*/8192&r[0]&&A!==(A="LeftTableTr Rank"+/*row*/e[69].Rank+"Tr "+(/*row*/e[69].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[69].isCurrentUser&&/*row*/e[69].Unqualified?"UnqualifiedRow":""))&&_(t,"class",A),/*display*/8192&r[0]&&B!==(B="LeftTableTr "+(/*row*/e[69].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[69].isCurrentUser&&/*row*/e[69].Unqualified?"UnqualifiedRow":""))&&_(t,"part",B),/*row*/e[69].Unqualified&&/*row*/e[69].isCurrentUser?W?W.p(e,r):(W=Po(e),W.c(),W.m(O.parentNode,O)):W&&(W.d(1),W=null)},d(e){e&&g(t),I.d(),j&&j.d(),V.d(),e&&g(z),W&&W.d(e),e&&g(O)}}}
|
|
905
921
|
// (574:10) {:else}
|
|
906
|
-
function
|
|
922
|
+
function Eo(e){let t,n;return{c(){t=C("svg"),n=C("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)}}}
|
|
907
923
|
// (570:10) {#if showTable}
|
|
908
|
-
function
|
|
924
|
+
function $o(e){let t,n;return{c(){t=C("svg"),n=C("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)}}}
|
|
909
925
|
// (371:12) {:else}
|
|
910
|
-
function
|
|
926
|
+
function Lo(e){let t,n,r=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"";return{c(){t=y("p"),n=w(r),_(t,"data-sort",/*sort*/e[12])},m(e,r){p(e,t,r),m(t,n)},p(e,i){/*$_, columns*/16400&i[0]&&r!==(r=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"")&&k(n,r),/*sort*/4096&i[0]&&_(t,"data-sort",/*sort*/e[12])},d(e){e&&g(t)}}}
|
|
911
927
|
// (367:12) {#if sortable == 'true'}
|
|
912
|
-
function
|
|
928
|
+
function Do(e){let t,n,r,i,a=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"";function o(){/*click_handler*/
|
|
913
929
|
return e[34](/*column*/e[72])}return{c(){t=y("button"),n=w(a),_(t,"data-sort",/*sort*/e[12])},m(e,a){p(e,t,a),m(t,n),r||(i=x(t,"click",o),r=!0)},p(r,i){e=r,/*$_, columns*/16400&i[0]&&a!==(a=/*$_*/e[14](`tournamentsTable.${/*column*/e[72]}`)+"")&&k(n,a),/*sort*/4096&i[0]&&_(t,"data-sort",/*sort*/e[12])},d(e){e&&g(t),r=!1,i()}}}
|
|
914
930
|
// (365:8) {#each columns as column}
|
|
915
|
-
function
|
|
916
|
-
return"true"==e[1]?
|
|
931
|
+
function Mo(e){let t,n,r,i;function a(e,t){/*sortable*/
|
|
932
|
+
return"true"==e[1]?Do:Lo}let o=a(e),s=o(e);return{c(){t=y("div"),s.c(),n=v(),_(t,"class",r="TableCell Table"+/*column*/e[72]),_(t,"part",i="TableCell Table"+/*column*/e[72])},m(e,r){p(e,t,r),s.m(t,null),m(t,n)},p(e,l){o===(o=a(e))&&s?s.p(e,l):(s.d(1),s=o(e),s&&(s.c(),s.m(t,n))),/*columns*/16&l[0]&&r!==(r="TableCell Table"+/*column*/e[72])&&_(t,"class",r),/*columns*/16&l[0]&&i!==(i="TableCell Table"+/*column*/e[72])&&_(t,"part",i)},d(e){e&&g(t),s.d()}}}
|
|
917
933
|
// (377:6) {#if firstrow == 'true' && firstRowData}
|
|
918
|
-
function
|
|
919
|
-
return e[5].Rank<4&&/*showrankasimage*/"true"==e[2]?
|
|
920
|
-
return e[5].Prize?
|
|
934
|
+
function Ro(e){let t,n,r,i,a,o,s,l,u,c,d,h,f,b,C,x=/*firstRowData*/e[5].Player+"",P=/*firstRowData*/e[5].Points+"";function S(e,t){/*firstRowData*/
|
|
935
|
+
return e[5].Rank<4&&/*showrankasimage*/"true"==e[2]?Bo:Ao}let E=S(e),$=E(e);function L(e,t){/*firstRowData*/
|
|
936
|
+
return e[5].Prize?No:Fo}let D=L(e),M=D(e),R=/*firstRowData*/e[5].Unqualified&&Ho(e);return{c(){t=y("div"),n=y("div"),$.c(),a=v(),o=y("div"),s=w(x),l=v(),u=y("div"),c=w(P),d=v(),M.c(),b=v(),R&&R.c(),C=T(),_(n,"class",r="TableCell TableRank "+(/*firstRowData*/e[5].Prize?"Qualified":"")),_(n,"part",i="TableCell TableRank RankFirstRow "+(/*firstRowData*/e[5].Prize?"Qualified":"")),_(o,"class","TableCell TablePlayer"),_(o,"part","TableCell TablePlayer"),_(u,"class","TableCell TablePoints"),_(u,"part","TableCell TablePoints"),_(t,"class",h="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":"")),_(t,"part",f="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))},m(e,r){p(e,t,r),m(t,n),$.m(n,null),m(t,a),m(t,o),m(o,s),m(t,l),m(t,u),m(u,c),m(t,d),M.m(t,null),p(e,b,r),R&&R.m(e,r),p(e,C,r)},p(e,a){E===(E=S(e))&&$?$.p(e,a):($.d(1),$=E(e),$&&($.c(),$.m(n,null))),/*firstRowData*/32&a[0]&&r!==(r="TableCell TableRank "+(/*firstRowData*/e[5].Prize?"Qualified":""))&&_(n,"class",r),/*firstRowData*/32&a[0]&&i!==(i="TableCell TableRank RankFirstRow "+(/*firstRowData*/e[5].Prize?"Qualified":""))&&_(n,"part",i),/*firstRowData*/32&a[0]&&x!==(x=/*firstRowData*/e[5].Player+"")&&k(s,x),/*firstRowData*/32&a[0]&&P!==(P=/*firstRowData*/e[5].Points+"")&&k(c,P),D===(D=L(e))&&M?M.p(e,a):(M.d(1),M=D(e),M&&(M.c(),M.m(t,null))),/*firstRowData*/32&a[0]&&h!==(h="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"class",h),/*firstRowData*/32&a[0]&&f!==(f="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"part",f),/*firstRowData*/e[5].Unqualified?R?R.p(e,a):(R=Ho(e),R.c(),R.m(C.parentNode,C)):R&&(R.d(1),R=null)},d(e){e&&g(t),$.d(),M.d(),e&&g(b),R&&R.d(e),e&&g(C)}}}
|
|
921
937
|
// (386:12) {:else}
|
|
922
|
-
function
|
|
938
|
+
function Ao(e){let t,n,r=/*firstRowData*/(e[5].Rank||"")+"";return{c(){t=y("em"),n=w(r),_(t,"part","LeftTableTdEm")},m(e,r){p(e,t,r),m(t,n)},p(e,t){/*firstRowData*/32&t[0]&&r!==(r=/*firstRowData*/(e[5].Rank||"")+"")&&k(n,r)},d(e){e&&g(t)}}}
|
|
923
939
|
// (380:12) {#if firstRowData.Rank < 4 && showrankasimage=='true'}
|
|
924
|
-
function
|
|
925
|
-
return e[5].Rank>0?
|
|
940
|
+
function Bo(e){let t;function n(e,t){/*firstRowData*/
|
|
941
|
+
return e[5].Rank>0?Oo:zo}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,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
|
|
926
942
|
// (383:14) {:else }
|
|
927
|
-
function
|
|
943
|
+
function zo(t){let n;return{c(){n=y("em"),n.textContent="#",_(n,"part","LeftTableTdEm")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
928
944
|
// (381:14) {#if firstRowData.Rank > 0}
|
|
929
|
-
function
|
|
945
|
+
function Oo(e){let t,n;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,n=/*rankImgs*/e[11][/*firstRowData*/e[5].Rank])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs, firstRowData*/2080&r[0]&&!u(t.src,n=/*rankImgs*/e[11][/*firstRowData*/e[5].Rank])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
930
946
|
// (394:10) {:else}
|
|
931
|
-
function
|
|
947
|
+
function Fo(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)}}}
|
|
932
948
|
// (392:10) {#if firstRowData.Prize}
|
|
933
|
-
function
|
|
949
|
+
function No(e){let t,n,r,i,a=/*firstRowData*/e[5].Prize+"";return{c(){t=y("div"),n=w(a),_(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,o){/*firstRowData*/32&o[0]&&a!==(a=/*firstRowData*/e[5].Prize+"")&&k(n,a),/*firstRowData*/32&o[0]&&r!==(r="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(t,"class",r),/*firstRowData*/32&o[0]&&i!==(i="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(t,"part",i)},d(e){e&&g(t)}}}
|
|
934
950
|
// (398:8) {#if firstRowData.Unqualified}
|
|
935
|
-
function
|
|
951
|
+
function Ho(e){let t,n,r,i,a,o,s=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("div"),n=C("svg"),r=C("path"),i=v(),a=y("em"),o=w(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"),_(a,"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,a),m(a,o)},p(e,t){/*$_*/16384&t[0]&&s!==(s=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"")&&k(o,s)},d(e){e&&g(t)}}}
|
|
936
952
|
// (407:6) {#if showTable}
|
|
937
|
-
function
|
|
953
|
+
function Uo(e){let t,n=/*display*/e[13],r=[];for(let t=0;t<n.length;t+=1)r[t]=Jo(Ja(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, $_, rankImgs, showrankasimage*/26628&i[0]){let a;for(n=/*display*/e[13],a=0;a<n.length;a+=1){const o=Ja(e,n,a);r[a]?r[a].p(o,i):(r[a]=Jo(o),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(e){b(r,e),e&&g(t)}}}
|
|
938
954
|
// (417:14) {:else}
|
|
939
|
-
function
|
|
955
|
+
function Io(e){let t,n=/*row*/(e[69].Rank||"")+"";return{c(){t=w(n)},m(e,n){p(e,t,n)},p(e,r){/*display*/8192&r[0]&&n!==(n=/*row*/(e[69].Rank||"")+"")&&k(t,n)},d(e){e&&g(t)}}}
|
|
940
956
|
// (411:14) {#if row.Rank < 4 && showrankasimage=='true'}
|
|
941
|
-
function
|
|
942
|
-
return e[69].Rank>0?
|
|
957
|
+
function jo(e){let t;function n(e,t){/*row*/
|
|
958
|
+
return e[69].Rank>0?Go: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,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
|
|
943
959
|
// (414:16) {:else }
|
|
944
|
-
function
|
|
960
|
+
function Yo(t){let n;return{c(){n=y("em"),_(n,"part","LeftTableTdEm")},m(e,t){p(e,n,t)},p:e,d(e){e&&g(n)}}}
|
|
945
961
|
// (412:16) {#if row.Rank > 0}
|
|
946
|
-
function
|
|
962
|
+
function Go(e){let t,n;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,n=/*rankImgs*/e[11][/*row*/e[69].Rank])||_(t,"src",n)},m(e,n){p(e,t,n)},p(e,r){/*rankImgs, display*/10240&r[0]&&!u(t.src,n=/*rankImgs*/e[11][/*row*/e[69].Rank])&&_(t,"src",n)},d(e){e&&g(t)}}}
|
|
947
963
|
// (425:12) {:else}
|
|
948
|
-
function
|
|
964
|
+
function Vo(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)}}}
|
|
949
965
|
// (423:12) {#if row.Prize}
|
|
950
|
-
function
|
|
966
|
+
function Wo(e){let t,n,r,i,a=/*row*/e[69].Prize+"";return{c(){t=y("div"),n=w(a),_(t,"class",r="TableCell TablePrize "+(/*row*/e[69].Unqualified?"":"Qualified")),_(t,"part",i="TableCell TablePrize "+(/*row*/e[69].Unqualified?"":"Qualified"))},m(e,r){p(e,t,r),m(t,n)},p(e,o){/*display*/8192&o[0]&&a!==(a=/*row*/e[69].Prize+"")&&k(n,a),/*display*/8192&o[0]&&r!==(r="TableCell TablePrize "+(/*row*/e[69].Unqualified?"":"Qualified"))&&_(t,"class",r),/*display*/8192&o[0]&&i!==(i="TableCell TablePrize "+(/*row*/e[69].Unqualified?"":"Qualified"))&&_(t,"part",i)},d(e){e&&g(t)}}}
|
|
951
967
|
// (429:10) {#if row.isCurrentUser && row.Unqualified}
|
|
952
|
-
function
|
|
968
|
+
function qo(e){let t,n,r,i,a,o,s,l,u,c=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("div"),n=C("svg"),r=C("path"),i=v(),a=y("em"),o=w(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"),_(a,"part","TableUserTooltipsEm"),_(t,"class",l="TableUserTooltips "+(/*row*/e[69].Unqualified?"UnqualifiedRow":"")),_(t,"part",u="TableUserTooltips "+(/*row*/e[69].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,n),m(n,r),m(t,i),m(t,a),m(a,o),m(t,s)},p(e,n){/*$_*/16384&n[0]&&c!==(c=/*$_*/e[14]("tournamentsTable.UnqualifiedTips")+"")&&k(o,c),/*display*/8192&n[0]&&l!==(l="TableUserTooltips "+(/*row*/e[69].Unqualified?"UnqualifiedRow":""))&&_(t,"class",l),/*display*/8192&n[0]&&u!==(u="TableUserTooltips "+(/*row*/e[69].Unqualified?"UnqualifiedRow":""))&&_(t,"part",u)},d(e){e&&g(t)}}}
|
|
953
969
|
// (408:8) {#each display as row}
|
|
954
|
-
function
|
|
955
|
-
return e[69].Rank<4&&/*showrankasimage*/"true"==e[2]?
|
|
956
|
-
return e[69].Prize?
|
|
970
|
+
function Jo(e){let t,n,r,i,a,o,s,l,u,c,d,h,f,b,C,x=/*row*/e[69].Player+"",P=/*row*/e[69].Points+"";function S(e,t){/*row*/
|
|
971
|
+
return e[69].Rank<4&&/*showrankasimage*/"true"==e[2]?jo:Io}let E=S(e),$=E(e);function L(e,t){/*row*/
|
|
972
|
+
return e[69].Prize?Wo:Vo}let D=L(e),M=D(e),R=/*row*/e[69].isCurrentUser&&/*row*/e[69].Unqualified&&qo(e);return{c(){t=y("div"),n=y("div"),$.c(),a=v(),o=y("div"),s=w(x),l=v(),u=y("div"),c=w(P),d=v(),M.c(),b=v(),R&&R.c(),C=T(),_(n,"class",r="TableCell TableRank "+(/*row*/e[69].Prize?"Qualified":"")),_(n,"part",i="TableCell Rank-"+/*row*/e[69].Rank+" TableRank "+(/*row*/e[69].Prize?"Qualified":"")),_(o,"class","TableCell TablePlayer"),_(o,"part","TableCell TablePlayer"),_(u,"class","TableCell TablePoints"),_(u,"part","TableCell TablePoints"),_(t,"class",h="TableUser "+(/*row*/e[69].isCurrentUser?"CurrentUserRow":"")),_(t,"part",f="TableUser "+(/*row*/e[69].isCurrentUser?"CurrentUserRow":""))},m(e,r){p(e,t,r),m(t,n),$.m(n,null),m(t,a),m(t,o),m(o,s),m(t,l),m(t,u),m(u,c),m(t,d),M.m(t,null),p(e,b,r),R&&R.m(e,r),p(e,C,r)},p(e,a){E===(E=S(e))&&$?$.p(e,a):($.d(1),$=E(e),$&&($.c(),$.m(n,null))),/*display*/8192&a[0]&&r!==(r="TableCell TableRank "+(/*row*/e[69].Prize?"Qualified":""))&&_(n,"class",r),/*display*/8192&a[0]&&i!==(i="TableCell Rank-"+/*row*/e[69].Rank+" TableRank "+(/*row*/e[69].Prize?"Qualified":""))&&_(n,"part",i),/*display*/8192&a[0]&&x!==(x=/*row*/e[69].Player+"")&&k(s,x),/*display*/8192&a[0]&&P!==(P=/*row*/e[69].Points+"")&&k(c,P),D===(D=L(e))&&M?M.p(e,a):(M.d(1),M=D(e),M&&(M.c(),M.m(t,null))),/*display*/8192&a[0]&&h!==(h="TableUser "+(/*row*/e[69].isCurrentUser?"CurrentUserRow":""))&&_(t,"class",h),/*display*/8192&a[0]&&f!==(f="TableUser "+(/*row*/e[69].isCurrentUser?"CurrentUserRow":""))&&_(t,"part",f),/*row*/e[69].isCurrentUser&&/*row*/e[69].Unqualified?R?R.p(e,a):(R=qo(e),R.c(),R.m(C.parentNode,C)):R&&(R.d(1),R=null)},d(e){e&&g(t),$.d(),M.d(),e&&g(b),R&&R.d(e),e&&g(C)}}}function Zo(t){let n,r;function i(e,t){return!/*isLoading*/e[10]&&(/*data*/e[3].length>0||/*firstRowData*/e[5])?Qa:(null==n&&(n=!(1!=ti(/*userAgent*/e[15]))),n?Xa:Ka)}let a=i(t),o=a(t);return{c(){o.c(),r=T(),this.c=e},m(e,t){o.m(e,t),p(e,r,t)},p(e,t){a===(a=i(e))&&o?o.p(e,t):(o.d(1),o=a(e),o&&(o.c(),o.m(r.parentNode,r)))},i:e,o:e,d(e){o.d(e),e&&g(r)}}}function Ko(e,t,n){let r,i,a;d(e,Yn,(e=>n(14,a=e)));let o,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:C=""}=t,{endpoint:w=""}=t,{tablelimit:v="30"}=t,{namemask:T=""}=t,{showunqualifiedplayer:x="true"}=t,{mobiletablelimit:_="15"}=t,{updatetableintime:k="true"}=t,{minscore:P=""}=t,{showrankasimage:S="true"}=t,{cellsetting:E={firstrow:!0}}=t,$=[],L=[],D=null,R=null,A={},B=!0,z=window.navigator.userAgent,O=!1,F=!1,N=!1,H={},U=!1,I="",j=!0,Y=2;Object.keys(_i).forEach((e=>{bi(e,_i[e])}));
|
|
957
973
|
// @TODO this must be configurable
|
|
958
974
|
const G=["Rank","Player","Points","Prize"],V=e=>({Rank:e.rank,Player:e.userID==I?"me":e.shortName,Points:e.score.toLocaleString("en-US",{minimumFractionDigits:Y,maximumFractionDigits:Y}),Prize:e.prizeName,Unqualified:e.unqualified,BetCount:e.betCount,userID:e.userID}),W=()=>{b&&b.length>0&&"false"!=b&&(I=y),o=null,n(10,j=!1)};
|
|
959
975
|
// data for current user
|
|
@@ -969,14 +985,14 @@ o||(o=e.data.tableData.Rank),A?(Z(e.data.tableData.Rank),n(5,A=null)):Z(e.data.t
|
|
|
969
985
|
if(e.data&&"CasinoTableDataUpdate"===e.data.type&&e.data.tableData){let t=e.data.tableData;
|
|
970
986
|
//check data type before foreach
|
|
971
987
|
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(31,D=i?null:e),n(32,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(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 a=U?H.Rank:A.Rank;a==h&&c==r.items.length||(c=r.items.length,//new player joined and spined
|
|
972
|
-
window.postMessage({type:`TournamentRankInfo_${C}`,rankInfo:{rank:a,overallRank:c,prize:U?H.Prize||"-":A.Prize||"-"}},window.location.href),h=a),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:H},window.location.href)}catch(e){console.error(e)}},re=(e,t)=>{let r=new URL(e+`/v1/tournaments/${t}/leaderboard`),i=new Headers;r.searchParams.append("language",p);let a=`includeUnqualifiedPlayer=${x}`;if(a=T?`${a},shortNameMask=${T}`:a,a=P?`${a},minscore=${P}`:a,r.searchParams.append("filter",a),b){let e=1==
|
|
988
|
+
window.postMessage({type:`TournamentRankInfo_${C}`,rankInfo:{rank:a,overallRank:c,prize:U?H.Prize||"-":A.Prize||"-"}},window.location.href),h=a),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:H},window.location.href)}catch(e){console.error(e)}},re=(e,t)=>{let r=new URL(e+`/v1/tournaments/${t}/leaderboard`),i=new Headers;r.searchParams.append("language",p);let a=`includeUnqualifiedPlayer=${x}`;if(a=T?`${a},shortNameMask=${T}`:a,a=P?`${a},minscore=${P}`:a,r.searchParams.append("filter",a),b){let e=1==ti(z)?_:v;r.searchParams.append("pagination",`offset=0,limit=${e}`),i.append("X-SessionId",b)}r.searchParams.append("platform",ni(z));let o={method:"GET",headers:i};n(10,j=!0),n(5,A=null),fetch(r,o).then((e=>e.json())).then((e=>{n(10,j=!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,
|
|
973
989
|
// @TODO data is not iterable error fix
|
|
974
|
-
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=`${w}/v1/tournaments/${e}/leaderboard/updates?HeartBeat=false&${t.toString()}`;u&&(u.removeEventListener("message",ne),u.close()),u=new
|
|
990
|
+
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=`${w}/v1/tournaments/${e}/leaderboard/updates?HeartBeat=false&${t.toString()}`;u&&(u.removeEventListener("message",ne),u.close()),u=new ri.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=[],ae=!1;M((()=>(n(11,ie=[sa,sa,la,ua]),n(0,m=!E||E.firstrow),W(),
|
|
975
991
|
//loadData();
|
|
976
992
|
//console.log('getContext',getContext('userid') ) ;
|
|
977
|
-
n(33,ae=!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(18,p=e.lang),"scorefractiondigit"in e&&n(19,g=e.scorefractiondigit),"session"in e&&n(20,b=e.session),"userid"in e&&n(21,y=e.userid),"tourid"in e&&n(22,C=e.tourid),"endpoint"in e&&n(23,w=e.endpoint),"tablelimit"in e&&n(24,v=e.tablelimit),"namemask"in e&&n(25,T=e.namemask),"showunqualifiedplayer"in e&&n(26,x=e.showunqualifiedplayer),"mobiletablelimit"in e&&n(27,_=e.mobiletablelimit),"updatetableintime"in e&&n(28,k=e.updatetableintime),"minscore"in e&&n(29,P=e.minscore),"showrankasimage"in e&&n(2,S=e.showrankasimage),"cellsetting"in e&&n(30,E=e.cellsetting)},e.$$.update=()=>{/*data*/8&e.$$.dirty[0]|/*sortColumn, sortDirection*/3&e.$$.dirty[1]&&n(13,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*/3&e.$$.dirty[1]&&n(12,i=null===D?R:null),/*scorefractiondigit*/524288&e.$$.dirty[0]&&(Y=Number(g)),/*session*/1048576&e.$$.dirty[0]|/*isMounted*/4&e.$$.dirty[1]&&ae&&b&&W(),/*lang, userid, session, tourid, showunqualifiedplayer, tablelimit*/91488256&e.$$.dirty[0]|/*isMounted*/4&e.$$.dirty[1]&&p&&y&&b&&C&&x&&v&&ae&&re(w,C)},[m,f,S,L,$,A,B,O,F,s,j,ie,i,r,a,z,X,Q,p,g,b,y,C,w,v,T,x,_,k,P,E,D,R,ae,e=>X(e),e=>X(e),()=>Q(),e=>X(e)]}class
|
|
993
|
+
n(33,ae=!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(18,p=e.lang),"scorefractiondigit"in e&&n(19,g=e.scorefractiondigit),"session"in e&&n(20,b=e.session),"userid"in e&&n(21,y=e.userid),"tourid"in e&&n(22,C=e.tourid),"endpoint"in e&&n(23,w=e.endpoint),"tablelimit"in e&&n(24,v=e.tablelimit),"namemask"in e&&n(25,T=e.namemask),"showunqualifiedplayer"in e&&n(26,x=e.showunqualifiedplayer),"mobiletablelimit"in e&&n(27,_=e.mobiletablelimit),"updatetableintime"in e&&n(28,k=e.updatetableintime),"minscore"in e&&n(29,P=e.minscore),"showrankasimage"in e&&n(2,S=e.showrankasimage),"cellsetting"in e&&n(30,E=e.cellsetting)},e.$$.update=()=>{/*data*/8&e.$$.dirty[0]|/*sortColumn, sortDirection*/3&e.$$.dirty[1]&&n(13,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*/3&e.$$.dirty[1]&&n(12,i=null===D?R:null),/*scorefractiondigit*/524288&e.$$.dirty[0]&&(Y=Number(g)),/*session*/1048576&e.$$.dirty[0]|/*isMounted*/4&e.$$.dirty[1]&&ae&&b&&W(),/*lang, userid, session, tourid, showunqualifiedplayer, tablelimit*/91488256&e.$$.dirty[0]|/*isMounted*/4&e.$$.dirty[1]&&p&&y&&b&&C&&x&&v&&ae&&re(w,C)},[m,f,S,L,$,A,B,O,F,s,j,ie,i,r,a,z,X,Q,p,g,b,y,C,w,v,T,x,_,k,P,E,D,R,ae,e=>X(e),e=>X(e),()=>Q(),e=>X(e)]}class Xo extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ko,Zo,o,{sortable:1,firstrow:0,lang:18,scorefractiondigit:19,session:20,userid:21,tourid:22,endpoint:23,tablelimit:24,namemask:25,showunqualifiedplayer:26,mobiletablelimit:27,updatetableintime:28,minscore:29,showrankasimage:2,cellsetting:30},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[18]}set lang(e){this.$$set({lang:e}),I()}get scorefractiondigit(){return this.$$.ctx[19]}set scorefractiondigit(e){this.$$set({scorefractiondigit:e}),I()}get session(){return this.$$.ctx[20]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[21]}set userid(e){this.$$set({userid:e}),I()}get tourid(){return this.$$.ctx[22]}set tourid(e){this.$$set({tourid:e}),I()}get endpoint(){return this.$$.ctx[23]}set endpoint(e){this.$$set({endpoint:e}),I()}get tablelimit(){return this.$$.ctx[24]}set tablelimit(e){this.$$set({tablelimit:e}),I()}get namemask(){return this.$$.ctx[25]}set namemask(e){this.$$set({namemask:e}),I()}get showunqualifiedplayer(){return this.$$.ctx[26]}set showunqualifiedplayer(e){this.$$set({showunqualifiedplayer:e}),I()}get mobiletablelimit(){return this.$$.ctx[27]}set mobiletablelimit(e){this.$$set({mobiletablelimit:e}),I()}get updatetableintime(){return this.$$.ctx[28]}set updatetableintime(e){this.$$set({updatetableintime:e}),I()}get minscore(){return this.$$.ctx[29]}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[30]}set cellsetting(e){this.$$set({cellsetting:e}),I()}}
|
|
978
994
|
/* src/Cells/TitleCell.svelte generated by Svelte v3.59.2 */
|
|
979
|
-
function
|
|
995
|
+
function Qo(t){let n,r;return{c(){n=y("p"),r=w(/*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 es(e,t,n){let{lang:r="en"}=t,{title:i=""}=t;Object.keys(Ci).forEach((e=>{bi(e,Ci[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&&yi(r)},[i,r]}customElements.define("leaderboard-cell",Xo);class ts extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},es,Qo,o,{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",ts);var ns=br((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
980
996
|
// This is done to register the method called with moment()
|
|
981
997
|
// without creating circular dependencies.
|
|
982
998
|
function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){
|
|
@@ -1162,7 +1178,7 @@ break;t--}a++}return on}function fn(e){
|
|
|
1162
1178
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
1163
1179
|
return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
|
|
1164
1180
|
// TODO: Find a better way to register and load all the locales in Node
|
|
1165
|
-
if(void 0===ln[t]&&e&&e.exports&&fn(t))try{n=on._abbr,
|
|
1181
|
+
if(void 0===ln[t]&&e&&e.exports&&fn(t))try{n=on._abbr,yr(),pn(n)}catch(e){
|
|
1166
1182
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
1167
1183
|
// when trying to find en-US, en_US, en-us for every format call
|
|
1168
1184
|
ln[t]=null;// null means not found
|
|
@@ -1344,7 +1360,7 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1344
1360
|
// a second time. In case it wants us to change the offset again
|
|
1345
1361
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1346
1362
|
// there is no such time in the given timezone.
|
|
1347
|
-
function pr(e,t,n){var i,a=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"),a!==e&&(!t||this._changeInProgress?Ar(this,$r(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function
|
|
1363
|
+
function pr(e,t,n){var i,a=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"),a!==e&&(!t||this._changeInProgress?Ar(this,$r(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function Cr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function wr(){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 Pr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1348
1364
|
// ASP.NET json date format regex
|
|
1349
1365
|
r.updateOffset=function(){};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1350
1366
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
@@ -1490,7 +1506,7 @@ Ae("S",ke,be),Ae("SS",ke,ye),Ae("SSS",ke,Ce),ra="SSSS";ra.length<=9;ra+="S")Ae(r
|
|
|
1490
1506
|
// MOMENTS
|
|
1491
1507
|
function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=de("Milliseconds",!1),
|
|
1492
1508
|
// FORMATTING
|
|
1493
|
-
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ua=T.prototype;function ca(e){return Jn(1e3*e)}function da(){return Jn.apply(null,arguments).parseZone()}function ha(e){return e}ua.add=Br,ua.calendar=jr,ua.clone=Yr,ua.diff=Kr,ua.endOf=yi,ua.format=ni,ua.from=ri,ua.fromNow=ii,ua.to=ai,ua.toNow=oi,ua.get=me,ua.invalidAt=Si,ua.isAfter=Gr,ua.isBefore=Vr,ua.isBetween=Wr,ua.isSame=qr,ua.isSameOrAfter=Jr,ua.isSameOrBefore=Zr,ua.isValid=ki,ua.lang=li,ua.locale=si,ua.localeData=ui,ua.max=Kn,ua.min=Zn,ua.parsingFlags=Pi,ua.set=pe,ua.startOf=bi,ua.subtract=zr,ua.toArray=Ti,ua.toObject=xi,ua.toDate=vi,ua.toISOString=ei,ua.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=_i,ua.toString=Qr,ua.unix=wi,ua.valueOf=Ci,ua.creationData=Ei,ua.eraName=Mi,ua.eraNarrow=Ri,ua.eraAbbr=Ai,ua.eraYear=Bi,ua.year=gt,ua.isLeapYear=bt,ua.weekYear=Gi,ua.isoWeekYear=Vi,ua.quarter=ua.quarters=Qi,ua.month=ct,ua.daysInMonth=dt,ua.week=ua.weeks=Et,ua.isoWeek=ua.isoWeeks=$t,ua.weeksInYear=Ji,ua.weeksInWeekYear=Zi,ua.isoWeeksInYear=Wi,ua.isoWeeksInISOWeekYear=qi,ua.date=ea,ua.day=ua.days=Yt,ua.weekday=Gt,ua.isoWeekday=Vt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ia,ua.utcOffset=pr,ua.utc=br,ua.local=
|
|
1509
|
+
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ua=T.prototype;function ca(e){return Jn(1e3*e)}function da(){return Jn.apply(null,arguments).parseZone()}function ha(e){return e}ua.add=Br,ua.calendar=jr,ua.clone=Yr,ua.diff=Kr,ua.endOf=yi,ua.format=ni,ua.from=ri,ua.fromNow=ii,ua.to=ai,ua.toNow=oi,ua.get=me,ua.invalidAt=Si,ua.isAfter=Gr,ua.isBefore=Vr,ua.isBetween=Wr,ua.isSame=qr,ua.isSameOrAfter=Jr,ua.isSameOrBefore=Zr,ua.isValid=ki,ua.lang=li,ua.locale=si,ua.localeData=ui,ua.max=Kn,ua.min=Zn,ua.parsingFlags=Pi,ua.set=pe,ua.startOf=bi,ua.subtract=zr,ua.toArray=Ti,ua.toObject=xi,ua.toDate=vi,ua.toISOString=ei,ua.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=_i,ua.toString=Qr,ua.unix=wi,ua.valueOf=Ci,ua.creationData=Ei,ua.eraName=Mi,ua.eraNarrow=Ri,ua.eraAbbr=Ai,ua.eraYear=Bi,ua.year=gt,ua.isLeapYear=bt,ua.weekYear=Gi,ua.isoWeekYear=Vi,ua.quarter=ua.quarters=Qi,ua.month=ct,ua.daysInMonth=dt,ua.week=ua.weeks=Et,ua.isoWeek=ua.isoWeeks=$t,ua.weeksInYear=Ji,ua.weeksInWeekYear=Zi,ua.isoWeeksInYear=Wi,ua.isoWeeksInISOWeekYear=qi,ua.date=ea,ua.day=ua.days=Yt,ua.weekday=Gt,ua.isoWeekday=Vt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ia,ua.utcOffset=pr,ua.utc=br,ua.local=Cr,ua.parseZone=wr,ua.hasAlignedHourOffset=vr,ua.isDST=Tr,ua.isLocal=_r,ua.isUtcOffset=kr,ua.isUtc=Pr,ua.isUTC=Pr,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=k("dates accessor is deprecated. Use date instead.",ea),ua.months=k("months accessor is deprecated. Use month instead",ct),ua.years=k("years accessor is deprecated. Use year instead",gt),ua.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var fa=M.prototype;function ma(e,t,n,r){var i=yn(),a=m().set(r,t);return i[n](a,e)}function pa(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ma(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ma(e,r,n,"month");return i}
|
|
1494
1510
|
// ()
|
|
1495
1511
|
// (5)
|
|
1496
1512
|
// (fmt, 5)
|
|
@@ -1568,67 +1584,67 @@ TIME:"HH:mm",// <input type="time" />
|
|
|
1568
1584
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
|
1569
1585
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
1570
1586
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
1571
|
-
MONTH:"YYYY-MM"},r}()})),
|
|
1587
|
+
MONTH:"YYYY-MM"},r}()})),rs="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";
|
|
1572
1588
|
/* src/Cells/StartDateCell.svelte generated by Svelte v3.59.2 */
|
|
1573
|
-
function
|
|
1589
|
+
function is(e){let t,n,r,i,o,s=/*cellsetting*/e[1]&&/*cellsetting*/e[1].showCalendarIcon&&as();return{c(){t=y("div"),s&&s.c(),n=w(/*shownDate*/e[2]),_(t,"class","Date TagContent"),_(t,"part","Date TagContent")},m(a,l){p(a,t,l),s&&s.m(t,null),m(t,n),i||(o=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=as(),s.c(),s.m(t,n)):s&&(s.d(1),s=null),/*shownDate*/4&i&&k(n,/*shownDate*/e[2]),r&&a(r.update)&&/*startdate*/1&i&&r.update.call(null,/*startdate*/e[0])},d(e){e&&g(t),s&&s.d(),i=!1,o()}}}
|
|
1574
1590
|
// (66:4) {#if cellsetting && cellsetting.showCalendarIcon}
|
|
1575
|
-
function
|
|
1591
|
+
function as(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=rs)||_(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 os(t){let n,r=/*startdate*/t[0]&&is(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=is(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 ss(e,t,n){let r;d(e,Yn,(e=>n(7,r=e)));let{startdate:i=""}=t,{status:a=""}=t,{lang:o=""}=t,{cellsetting:s}=t,l={shortstart:!1,shortstartformat:"DD MMM YYYY",showCalendarIcon:!1},u="";cn({fallbackLocale:"en",initialLocale:"en"}),Object.keys(Pi).forEach((e=>{bi(e,Pi[e])}));const c=()=>{const e={month:"long"};let t=new Date(i);if(s&&s.shortstart){let e=ns(t).format(s.shortstartformat||l.shortstartformat);n(2,u=r("Running"===a||"Closing"==a||"Closed"==a?"tournamentsThumbnail.startedAtWithTime":"tournamentsThumbnail.startingAtWithTime",{values:{startTime:e}}))}else{let i=new Intl.DateTimeFormat("en",e).format(t),o=t.getDate(),s=t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});n(2,u=`${o} `+r(`tournamentsThumbnail.${i}`)+", "+r("Running"===a?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+` ${s}`)}};return e.$$set=e=>{"startdate"in e&&n(0,i=e.startdate),"status"in e&&n(4,a=e.status),"lang"in e&&n(5,o=e.lang),"cellsetting"in e&&n(1,s=e.cellsetting)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&o&&(yi(o),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,a,o]}class ls extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},ss,os,o,{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()}}
|
|
1576
1592
|
/* src/Cells/BackButtonCell.svelte generated by Svelte v3.59.2 */
|
|
1577
|
-
function
|
|
1593
|
+
function us(t){let n,r,i,a,o,s,l,u,c,d=/*$_*/t[0]("tournamentsPage.back")+"";return{c(){n=y("div"),r=y("div"),i=C("svg"),a=C("path"),o=v(),s=y("p"),l=w(d),this.c=e,_(a,"stroke-linecap","round"),_(a,"stroke-linejoin","round"),_(a,"stroke-width","2"),_(a,"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,a),m(r,o),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 cs(e,t,n){let r;d(e,Yn,(e=>n(0,r=e)));let{lang:i="en"}=t,{navigationbackbutton:a="Default"}=t;Object.keys(wi).forEach((e=>{bi(e,wi[e])}));const o=()=>{
|
|
1578
1594
|
// this function handles the back navigation making use of the prop: navigationbackbutton. If it has the
|
|
1579
1595
|
// event value, it will emit the 'RedirectBack' event which will enable the client to handle the routing;
|
|
1580
1596
|
// else, if it has the 'Default' value, it will do a window.history.back()
|
|
1581
|
-
"Event"==a?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==a&&window.history.back()};return e.$$set=e=>{"lang"in e&&n(2,i=e.lang),"navigationbackbutton"in e&&n(3,a=e.navigationbackbutton)},e.$$.update=()=>{/*lang*/4&e.$$.dirty&&i&&
|
|
1597
|
+
"Event"==a?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==a&&window.history.back()};return e.$$set=e=>{"lang"in e&&n(2,i=e.lang),"navigationbackbutton"in e&&n(3,a=e.navigationbackbutton)},e.$$.update=()=>{/*lang*/4&e.$$.dirty&&i&&yi(i)},[r,o,i,a,()=>o()]}customElements.define("startdate-cell",ls);class ds extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},cs,us,o,{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()}}
|
|
1582
1598
|
/* src/Cells/TranslateTextCell.svelte generated by Svelte v3.59.2 */
|
|
1583
|
-
function
|
|
1599
|
+
function hs(t){let n,r;return{c(){n=y("span"),r=w(/*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 fs(e,t,n){let r;d(e,Yn,(e=>n(3,r=e)));let{lang:i=""}=t,{cellsetting:a={langkey:""}}=t,o="";Object.keys(wi).forEach((e=>{bi(e,wi[e])})),cn({fallbackLocale:"en",initialLocale:"en"});const s=()=>{a.langkey&&n(0,o=r(`tournamentsPage.${a.langkey}`))};return e.$$set=e=>{"lang"in e&&n(1,i=e.lang),"cellsetting"in e&&n(2,a=e.cellsetting)},e.$$.update=()=>{/*lang, cellsetting*/6&e.$$.dirty&&i&&a&&void yi(i)&&s(),/*lang, cellsetting*/6&e.$$.dirty&&i&&a&&s()},[o,i,a]}customElements.define("backbutton-cell",ds);class ms extends V{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},fs,hs,o,{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",ms);const ps={Cell:{attributes:oi.observedAttributes,cellBox:oi},BackButtonCell:{attributes:ds.observedAttributes,cellBox:ds},ThumbnailCell:{attributes:ui.observedAttributes,cellBox:ui},TitleCell:{attributes:ts.observedAttributes,cellBox:ts},TitleTextCell:{attributes:gi.observedAttributes,cellBox:gi},TranslateTextCell:{attributes:ms.observedAttributes,cellBox:ms},StartDateCell:{attributes:ls.observedAttributes,cellBox:ls},ScoreCriteriaCell:{attributes:$i.observedAttributes,cellBox:$i},StatusTag:{attributes:Ii.observedAttributes,cellBox:Ii},TournamentSlot:{attributes:oi.observedAttributes,cellBox:oi},JoinButtonCell:{attributes:Fi.observedAttributes,cellBox:Fi},UserEnrollTag:{attributes:Wi.observedAttributes,cellBox:Wi},DurationCell:{attributes:ra.observedAttributes,cellBox:ra},SeeGamesLine:{attributes:oa.observedAttributes,cellBox:oa},PrizesCell:{attributes:Ea.observedAttributes,cellBox:Ea},GamesCell:{attributes:Aa.observedAttributes,cellBox:Aa},TermsAndConditionsCell:{attributes:za.observedAttributes,cellBox:za},DescriptionCell:{attributes:ja.observedAttributes,cellBox:ja},LeaderboardCell:{attributes:Xo.observedAttributes,cellBox:Xo}},gs={wm:{id:"tournamentLayout",rows:[{id:"row1",type:"widget",///slot ?,
|
|
1584
1600
|
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:!1,listType:1,//1: col by col, 2: row by row
|
|
1585
1601
|
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:"seeGamesLink",componentid:"SeeGamesLine",class:" "},{id:"prizeImg",componentid:"PrizesCell",class:" ",config:{expandAll:!1,//default
|
|
1586
1602
|
listType:1,//1: col by col, 2: row by row
|
|
1587
|
-
maxCol:3,rowPerCol:7}},{id:"thumbnailDuration",componentid:"DurationCell",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"gamesLine",componentid:"GamesCell",class:" "}]},{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:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "}]}]},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RightSection",subComponents:[{id:"leaderboard",componentid:"LeaderboardCell"}]}]}]}},
|
|
1603
|
+
maxCol:3,rowPerCol:7}},{id:"thumbnailDuration",componentid:"DurationCell",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"gamesLine",componentid:"GamesCell",class:" "}]},{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:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "}]}]},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RightSection",subComponents:[{id:"leaderboard",componentid:"LeaderboardCell"}]}]}]}},bs=(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=ps[n].attributes||[];if(e.dataKey){let n=e.dataKey;
|
|
1588
1604
|
//init cell by source type
|
|
1589
1605
|
return"api"==n.source?// when component cell init by api data
|
|
1590
1606
|
r[n.textKey]=t.tournamentData[n.key]||null:"cms"==n.source&&(// fill data by cms data
|
|
1591
|
-
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=
|
|
1607
|
+
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=ps[e.componentid].cellBox,r(e.subComponents)}))};return n.forEach((e=>{r(e.cols)})),console.log("Start parse layout...Done"),e};
|
|
1592
1608
|
/*
|
|
1593
1609
|
* These data will be managed by CMS, config it in file for temporary
|
|
1594
1610
|
* Configed layout: wm/default
|
|
1595
|
-
* */class
|
|
1596
|
-
/* src/CasinoTournamentsCustomizePageController.svelte generated by Svelte v3.59.2 */function
|
|
1611
|
+
* */class ys{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 Cs={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"}},hr:{tournamentsPage:{loading:"Učitavanje, molimo pričekajte ...",back:"Natrag",previous:"Prethodno",next:"Sljedeće",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",mostRounds:"Najviše krugova",activePeriod:"Od {startdate} do {enddate}",forwardCasino:"Pogledajte uključene casino igre",forwardSports:"Pogledajte uključene sportove",forwardMyTournaments:"Pogledajte Moje turnire",leaderBoard:"Poredak",rules:"Pravila",games:"Igre",unlimited:"neograničeno"}},"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"}}};
|
|
1612
|
+
/* src/CasinoTournamentsCustomizePageController.svelte generated by Svelte v3.59.2 */function ws(e,t,n){const r=e.slice();return r[66]=t[n],r}function vs(e,t,n){const r=e.slice();return r[69]=t[n],r}function Ts(e,t,n){const r=e.slice();return r[72]=t[n],r}function xs(e,t,n){const r=e.slice();return r[75]=t[n],r}
|
|
1597
1613
|
// (330:0) {#if isLoading}
|
|
1598
|
-
function
|
|
1614
|
+
function _s(e){let t,n,r=/*$_*/e[6]("tournamentsPage.loading")+"";return{c(){t=y("p"),n=w(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)}}}
|
|
1599
1615
|
// (337:2) {#if errorMessage}
|
|
1600
|
-
function
|
|
1616
|
+
function ks(e){let t;return{c(){t=w(/*errorMessage*/e[4])},m(e,n){p(e,t,n)},p(e,n){/*errorMessage*/16&n[0]&&k(t,/*errorMessage*/e[4])},d(e){e&&g(t)}}}
|
|
1601
1617
|
// (343:12) {#if !col.isCellContainer}
|
|
1602
|
-
function
|
|
1618
|
+
function Ps(e){let n,r,i;const a=[/*col*/e[69].componentAttrs,{attrs:/*col*/e[69].componentAttrs}];var o=/*col*/e[69].component;function s(e){let n={};for(let e=0;e<a.length;e+=1)n=t(n,a[e]);return{props:n}}return o&&(n=$(o,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(a,[X(/*col*/e[69].componentAttrs),{attrs:/*col*/e[69].componentAttrs}]):{};if(/*opLayout*/4&t[0]&&o!==(o=/*col*/e[69].component)){if(n){W();const e=n;Z(e.$$.fragment,1,0,(()=>{te(e,1)})),q()}o?(n=$(o,s()),Q(n.$$.fragment),J(n.$$.fragment,1),ee(n,r.parentNode,r)):n=null}else o&&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)}}}
|
|
1603
1619
|
// (346:12) {#if col.isSlotCell}
|
|
1604
|
-
function
|
|
1620
|
+
function Ss(e){let t,n,r,i;return{c(){t=y("slot"),_(t,"part",n=/*col*/e[69].slotName),_(t,"class",r=/*col*/e[69].slotName),_(t,"name",i=/*col*/e[69].slotName)},m(e,n){p(e,t,n)},p(e,a){/*opLayout*/4&a[0]&&n!==(n=/*col*/e[69].slotName)&&_(t,"part",n),/*opLayout*/4&a[0]&&r!==(r=/*col*/e[69].slotName)&&_(t,"class",r),/*opLayout*/4&a[0]&&i!==(i=/*col*/e[69].slotName)&&_(t,"name",i)},d(e){e&&g(t)}}}
|
|
1605
1621
|
// (349:12) {#if col.subComponents && col.subComponents.length > 0}
|
|
1606
|
-
function
|
|
1622
|
+
function Es(e){let t,n,r=/*col*/e[69].subComponents,i=[];for(let t=0;t<r.length;t+=1)i[t]=Bs(Ts(e,r,t));const a=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 o;for(r=/*col*/e[69].subComponents,o=0;o<r.length;o+=1){const a=Ts(e,r,o);i[o]?(i[o].p(a,n),J(i[o],1)):(i[o]=Bs(a),i[o].c(),J(i[o],1),i[o].m(t.parentNode,t))}for(W(),o=r.length;o<i.length;o+=1)a(o);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)}}}
|
|
1607
1623
|
// (352:18) {#if !subCol.isCellContainer}
|
|
1608
|
-
function
|
|
1624
|
+
function $s(e){let n,r,i;const a=[
|
|
1609
1625
|
/*subCol*/e[72].componentAttrs,{attrs:/*subCol*/e[72].componentAttrs}];var o=/*subCol*/e[72].component;function s(e){let n={};for(let e=0;e<a.length;e+=1)n=t(n,a[e]);return{props:n}}return o&&(n=$(o,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(a,[X(/*subCol*/e[72].componentAttrs),{attrs:/*subCol*/e[72].componentAttrs}]):{};if(/*opLayout*/4&t[0]&&o!==(o=/*subCol*/e[72].component)){if(n){W();const e=n;Z(e.$$.fragment,1,0,(()=>{te(e,1)})),q()}o?(n=$(o,s()),Q(n.$$.fragment),J(n.$$.fragment,1),ee(n,r.parentNode,r)):n=null}else o&&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)}}}
|
|
1610
1626
|
// (355:18) {#if subCol.isSlotCell}
|
|
1611
|
-
function
|
|
1627
|
+
function Ls(e){let t,n,r,i;return{c(){t=y("slot"),_(t,"part",n=/*subCol*/e[72].slotName),_(t,"class",r=/*subCol*/e[72].slotName),_(t,"name",i=/*subCol*/e[72].slotName)},m(e,n){p(e,t,n)},p(e,a){/*opLayout*/4&a[0]&&n!==(n=/*subCol*/e[72].slotName)&&_(t,"part",n),/*opLayout*/4&a[0]&&r!==(r=/*subCol*/e[72].slotName)&&_(t,"class",r),/*opLayout*/4&a[0]&&i!==(i=/*subCol*/e[72].slotName)&&_(t,"name",i)},d(e){e&&g(t)}}}
|
|
1612
1628
|
// (358:18) {#if subCol.subComponents && subCol.subComponents.length > 0}
|
|
1613
|
-
function
|
|
1629
|
+
function Ds(e){let t,n,r=/*subCol*/e[72].subComponents,i=[];for(let t=0;t<r.length;t+=1)i[t]=As(xs(e,r,t));const a=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 o;for(r=/*subCol*/e[72].subComponents,o=0;o<r.length;o+=1){const a=xs(e,r,o);i[o]?(i[o].p(a,n),J(i[o],1)):(i[o]=As(a),i[o].c(),J(i[o],1),i[o].m(t.parentNode,t))}for(W(),o=r.length;o<i.length;o+=1)a(o);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)}}}
|
|
1614
1630
|
// (363:24) {:else }
|
|
1615
|
-
function
|
|
1631
|
+
function Ms(e){let n,r,i;const a=[
|
|
1616
1632
|
/*grandCol*/e[75].componentAttrs,{attrs:/*grandCol*/e[75].componentAttrs}];var o=/*grandCol*/e[75].component;function s(e){let n={};for(let e=0;e<a.length;e+=1)n=t(n,a[e]);return{props:n}}return o&&(n=$(o,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(a,[X(/*grandCol*/e[75].componentAttrs),{attrs:/*grandCol*/e[75].componentAttrs}]):{};if(/*opLayout*/4&t[0]&&o!==(o=/*grandCol*/e[75].component)){if(n){W();const e=n;Z(e.$$.fragment,1,0,(()=>{te(e,1)})),q()}o?(n=$(o,s()),Q(n.$$.fragment),J(n.$$.fragment,1),ee(n,r.parentNode,r)):n=null}else o&&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)}}}
|
|
1617
1633
|
// (361:24) {#if grandCol.isSlotCell}
|
|
1618
|
-
function
|
|
1634
|
+
function Rs(t){let n,r,i,a;return{c(){n=y("slot"),_(n,"part",r=/*grandCol*/t[75].slotName),_(n,"class",i=/*grandCol*/t[75].slotName),_(n,"name",a=/*grandCol*/t[75].slotName)},m(e,t){p(e,n,t)},p(e,t){/*opLayout*/4&t[0]&&r!==(r=/*grandCol*/e[75].slotName)&&_(n,"part",r),/*opLayout*/4&t[0]&&i!==(i=/*grandCol*/e[75].slotName)&&_(n,"class",i),/*opLayout*/4&t[0]&&a!==(a=/*grandCol*/e[75].slotName)&&_(n,"name",a)},i:e,o:e,d(e){e&&g(n)}}}
|
|
1619
1635
|
// (359:20) {#each subCol.subComponents as grandCol}
|
|
1620
|
-
function
|
|
1636
|
+
function As(e){let t,n,r,i,o,s,l,u,c,d;const h=[Rs,Ms],b=[];function C(e,t){/*grandCol*/
|
|
1621
1637
|
return e[75].isSlotCell?0:1}return n=C(e),r=b[n]=h[n](e),{c(){t=y("div"),r.c(),i=v(),_(t,"class",o="Cell3s "+/*grandCol*/e[75].cellClass),_(t,"part",s=/*grandCol*/e[75].parts+" Cell3s")},m(r,a){p(r,t,a),b[n].m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*grandCol*/e[75])),c=!0)},p(c,d){let f=n;n=C(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]&&o!==(o="Cell3s "+/*grandCol*/e[75].cellClass))&&_(t,"class",o),(!u||/*opLayout*/4&d[0]&&s!==(s=/*grandCol*/e[75].parts+" Cell3s"))&&_(t,"part",s),l&&a(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*grandCol*/e[75])},i(e){u||(J(r),u=!0)},o(e){Z(r),u=!1},d(e){e&&g(t),b[n].d(),c=!1,d()}}}
|
|
1622
1638
|
// (350:14) {#each col.subComponents as subCol}
|
|
1623
|
-
function
|
|
1639
|
+
function Bs(e){let t,n,r,i,o,s,l,u,c,d,h=!/*subCol*/e[72].isCellContainer&&$s(e),b=/*subCol*/e[72].isSlotCell&&Ls(e),C=/*subCol*/e[72].subComponents&&/*subCol*/e[72].subComponents.length>0&&Ds(e);return{c(){t=y("div"),h&&h.c(),n=v(),b&&b.c(),r=v(),C&&C.c(),i=v(),_(t,"class",o="Cell2s "+/*subCol*/e[72].cellClass),_(t,"part",s=/*subCol*/e[72].parts+" Cell2s")},m(a,o){p(a,t,o),h&&h.m(t,null),m(t,n),b&&b.m(t,null),m(t,r),C&&C.m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*subCol*/e[72])),c=!0)},p(c,d){/*subCol*/(e=c)[72].isCellContainer?h&&(W(),Z(h,1,1,(()=>{h=null})),q()):h?(h.p(e,d),/*opLayout*/4&d[0]&&J(h,1)):(h=$s(e),h.c(),J(h,1),h.m(t,n)),/*subCol*/e[72].isSlotCell?b?b.p(e,d):(b=Ls(e),b.c(),b.m(t,r)):b&&(b.d(1),b=null),/*subCol*/e[72].subComponents&&/*subCol*/e[72].subComponents.length>0?C?(C.p(e,d),/*opLayout*/4&d[0]&&J(C,1)):(C=Ds(e),C.c(),J(C,1),C.m(t,i)):C&&(W(),Z(C,1,1,(()=>{C=null})),q()),(!u||/*opLayout*/4&d[0]&&o!==(o="Cell2s "+/*subCol*/e[72].cellClass))&&_(t,"class",o),(!u||/*opLayout*/4&d[0]&&s!==(s=/*subCol*/e[72].parts+" Cell2s"))&&_(t,"part",s),l&&a(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*subCol*/e[72])},i(e){u||(J(h),J(C),u=!0)},o(e){Z(h),Z(C),u=!1},d(e){e&&g(t),h&&h.d(),b&&b.d(),C&&C.d(),c=!1,d()}}}
|
|
1624
1640
|
// (341:6) {#each row.cols as col}
|
|
1625
|
-
function
|
|
1641
|
+
function zs(e){let t,n,r,i,o,s,l,u,c,d,h=!/*col*/e[69].isCellContainer&&Ps(e),b=/*col*/e[69].isSlotCell&&Ss(e),C=/*col*/e[69].subComponents&&/*col*/e[69].subComponents.length>0&&Es(e);return{c(){t=y("div"),h&&h.c(),n=v(),b&&b.c(),r=v(),C&&C.c(),i=v(),_(t,"class",o="Cell1s "+/*col*/e[69].cellClass),_(t,"part",s=/*col*/e[69].parts)},m(a,o){p(a,t,o),h&&h.m(t,null),m(t,n),b&&b.m(t,null),m(t,r),C&&C.m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*col*/e[69])),c=!0)},p(c,d){/*col*/(e=c)[69].isCellContainer?h&&(W(),Z(h,1,1,(()=>{h=null})),q()):h?(h.p(e,d),/*opLayout*/4&d[0]&&J(h,1)):(h=Ps(e),h.c(),J(h,1),h.m(t,n)),/*col*/e[69].isSlotCell?b?b.p(e,d):(b=Ss(e),b.c(),b.m(t,r)):b&&(b.d(1),b=null),/*col*/e[69].subComponents&&/*col*/e[69].subComponents.length>0?C?(C.p(e,d),/*opLayout*/4&d[0]&&J(C,1)):(C=Es(e),C.c(),J(C,1),C.m(t,i)):C&&(W(),Z(C,1,1,(()=>{C=null})),q()),(!u||/*opLayout*/4&d[0]&&o!==(o="Cell1s "+/*col*/e[69].cellClass))&&_(t,"class",o),(!u||/*opLayout*/4&d[0]&&s!==(s=/*col*/e[69].parts))&&_(t,"part",s),l&&a(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*col*/e[69])},i(e){u||(J(h),J(C),u=!0)},o(e){Z(h),Z(C),u=!1},d(e){e&&g(t),h&&h.d(),b&&b.d(),C&&C.d(),c=!1,d()}}}
|
|
1626
1642
|
// (340:4) {#each opLayout.rows as row }
|
|
1627
|
-
function
|
|
1628
|
-
/*div_binding*/t[38](r),s=!0},p(e,t){if(/*isLoading*/e[5]?l?l.p(e,t):(l=
|
|
1629
|
-
/*div_binding*/t[38](null)}}}function
|
|
1643
|
+
function Os(e){let t,n,r=/*row*/e[66].cols,i=[];for(let t=0;t<r.length;t+=1)i[t]=zs(vs(e,r,t));const a=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 o;for(r=/*row*/e[66].cols,o=0;o<r.length;o+=1){const a=vs(e,r,o);i[o]?(i[o].p(a,n),J(i[o],1)):(i[o]=zs(a),i[o].c(),J(i[o],1),i[o].m(t.parentNode,t))}for(W(),o=r.length;o<i.length;o+=1)a(o);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 Fs(t){let n,r,i,a,o,s,l=/*isLoading*/t[5]&&_s(t),u=/*errorMessage*/t[4]&&ks(t),c=/*opLayout*/t[2].rows,d=[];for(let e=0;e<c.length;e+=1)d[e]=Os(ws(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,P(r,"display",/*isLoading*/t[5]?"none":"flex"),_(r,"class",a="casino-tournaments-customize-page-controller layout-"+/*layoutid*/t[0]+" "+(/*mobileView*/t[3]?"MobileContainer":"")),_(r,"part",o="casino-tournaments-customize-page-controller layout-"+/*layoutid*/t[0])},m(e,a){l&&l.m(e,a),p(e,n,a),p(e,r,a),u&&u.m(r,null),m(r,i);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);
|
|
1644
|
+
/*div_binding*/t[38](r),s=!0},p(e,t){if(/*isLoading*/e[5]?l?l.p(e,t):(l=_s(e),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null),/*errorMessage*/e[4]?u?u.p(e,t):(u=ks(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=ws(e,c,n);d[n]?(d[n].p(i,t),J(d[n],1)):(d[n]=Os(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*/32&t[0])&&P(r,"display",/*isLoading*/e[5]?"none":"flex"),(!s||/*layoutid, mobileView*/9&t[0]&&a!==(a="casino-tournaments-customize-page-controller layout-"+/*layoutid*/e[0]+" "+(/*mobileView*/e[3]?"MobileContainer":"")))&&_(r,"class",a),(!s||/*layoutid*/1&t[0]&&o!==(o="casino-tournaments-customize-page-controller layout-"+/*layoutid*/e[0]))&&_(r,"part",o)},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),
|
|
1645
|
+
/*div_binding*/t[38](null)}}}function Ns(e,n,r){let i;d(e,Yn,(e=>r(6,i=e)));let a,{layoutid:o="default"}=n,{session:s=""}=n,{userid:l=""}=n,{tourid:u=""}=n,{endpoint:c=""}=n,{cmsendpoint:f=""}=n,{lang:m="en"}=n,{navigationbackbutton:p="Default"}=n,{currency:g="EUR"}=n,{tablelimit:b="30"}=n,{namemask:y=""}=n,{showunqualifiedplayer:C="true"}=n,{mobiletablelimit:w="15"}=n,{updatetableintime:v="true"}=n,{viewmode:T=""}=n,{minscore:x=""}=n,{scorefractiondigit:_="2"}=n,{loginevent:k=""}=n,{registerevent:P=""}=n,{loginurl:S=""}=n,{registerurl:E=""}=n,{limit:$=30}=n,{offset:L=0}=n,{leaderboardoffset:R="0"}=n,{leaderboardlimit:B="15"}=n,{keepbrowsercontext:z="false"}=n,{showrankasimage:O="false"}=n,{clientstyling:F=""}=n,{clientstylingurl:N=""}=n,{translationurl:H=""}=n;let U,I,j,Y=window.navigator.userAgent,G=!1,V={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},W=new ys,q={rows:[]},J=!1,Z=!0;Object.keys(Cs).forEach((e=>{Gn(e,Cs[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
|
|
1630
1646
|
/*dictionary.set(translations);
|
|
1631
|
-
locale.set(_locale);*/}({withLocale:m,translations:{}});const K=()=>{fetch(`${f}/${u}`).then((e=>e?e.json():{details:[{title:"Description",description:"DescriptionText"}]})).then((e=>{e&&e.details&&(V.cmsData.tournamentdescription=e.details),(()=>{let e=q.rows,t=e=>{e&&e.length&&e.forEach((e=>{if(!e.isCellContainer){let t=e.dataKey;if(t&&"cms"==t.source){let n=e.componentAttrs||{};if(!n)return;n[t.textKey]=V.cmsData[t.key]||null}}t(e.subComponents)}))};e.forEach((e=>{t(e.cols)}))})(),r(2,q=Object.assign({},q))}))},X=(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),ee(t.item))}catch(e){console.error(e)}},ee=e=>{I=W.transfer(e),V.tournamentData=I,I.lang=m,r(2,q=
|
|
1647
|
+
locale.set(_locale);*/}({withLocale:m,translations:{}});const K=()=>{fetch(`${f}/${u}`).then((e=>e?e.json():{details:[{title:"Description",description:"DescriptionText"}]})).then((e=>{e&&e.details&&(V.cmsData.tournamentdescription=e.details),(()=>{let e=q.rows,t=e=>{e&&e.length&&e.forEach((e=>{if(!e.isCellContainer){let t=e.dataKey;if(t&&"cms"==t.source){let n=e.componentAttrs||{};if(!n)return;n[t.textKey]=V.cmsData[t.key]||null}}t(e.subComponents)}))};e.forEach((e=>{t(e.cols)}))})(),r(2,q=Object.assign({},q))}))},X=(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),ee(t.item))}catch(e){console.error(e)}},ee=e=>{I=W.transfer(e),V.tournamentData=I,I.lang=m,r(2,q=bs(gs[o]||gs.default,V))},te=(e,t)=>{let n=new URL(e+`/v1/tournaments/${t}`),i=new Headers({"X-SessionId":s});n.searchParams.append("platform",ni(Y)),n.searchParams.append("language",m);let a=n.searchParams.toString(),o={method:"GET",headers:i};fetch(n.href,o).then((e=>e.json())).then((e=>{e.success?(r(4,j=null),e.item.id=u,ee(e.item),I.lang=m,X(q,I),r(2,q=Object.assign({},q)),r(5,Z=!1),((e,t)=>{let n=`${c}/v1/tournaments/updates?filter=id=${e}&${t}`;U&&(U.removeEventListener("message",Q),U.close()),U=new ri.EventSourcePolyfill(n,{headers:{accept:"text/event-stream","X-SessionId":s}}),U.addEventListener("message",Q)})(u,a)):r(4,j=`Faild to load data, details: ${e.errorMessage}`)}))},ne=D(),re=(e,t,n)=>{if(!q.rows||0==q.rows.length)return;let i=q.rows[0].cols;e.forEach((e=>{let r,a=t=>{t.forEach(((t,n)=>r||(t.componentid==e?(r=t,r):t.subComponents&&t.subComponents.length>0?a(t.subComponents):void 0)))};a(i);let o=ne.$$.props,s=ne.$$.ctx;r&&t.forEach((e=>{if(n)return void(r.componentAttrs[e]=V.tournamentData[e]);let t=o[e],i=s[t];V.ctrlProperties[e]=i,r.componentAttrs[e]=i}))})),r(2,q=Object.assign({},q))},ie=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&(V.tournamentData.userenrolled=e.data.userenrolled)};return M((()=>(r(0,o=gs[o]?o:"default"),r(3,G=ti(Y)),setTimeout((()=>{V.ctrlProperties=n,r(37,J=!0)}),300),window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}))),e.$$set=e=>{r(65,n=t(t({},n),h(e))),"layoutid"in e&&r(0,o=e.layoutid),"session"in e&&r(8,s=e.session),"userid"in e&&r(9,l=e.userid),"tourid"in e&&r(10,u=e.tourid),"endpoint"in e&&r(11,c=e.endpoint),"cmsendpoint"in e&&r(12,f=e.cmsendpoint),"lang"in e&&r(13,m=e.lang),"navigationbackbutton"in e&&r(14,p=e.navigationbackbutton),"currency"in e&&r(15,g=e.currency),"tablelimit"in e&&r(16,b=e.tablelimit),"namemask"in e&&r(17,y=e.namemask),"showunqualifiedplayer"in e&&r(18,C=e.showunqualifiedplayer),"mobiletablelimit"in e&&r(19,w=e.mobiletablelimit),"updatetableintime"in e&&r(20,v=e.updatetableintime),"viewmode"in e&&r(21,T=e.viewmode),"minscore"in e&&r(22,x=e.minscore),"scorefractiondigit"in e&&r(23,_=e.scorefractiondigit),"loginevent"in e&&r(24,k=e.loginevent),"registerevent"in e&&r(25,P=e.registerevent),"loginurl"in e&&r(26,S=e.loginurl),"registerurl"in e&&r(27,E=e.registerurl),"limit"in e&&r(28,$=e.limit),"offset"in e&&r(29,L=e.offset),"leaderboardoffset"in e&&r(30,R=e.leaderboardoffset),"leaderboardlimit"in e&&r(31,B=e.leaderboardlimit),"keepbrowsercontext"in e&&r(32,z=e.keepbrowsercontext),"showrankasimage"in e&&r(33,O=e.showrankasimage),"clientstyling"in e&&r(34,F=e.clientstyling),"clientstylingurl"in e&&r(35,N=e.clientstylingurl),"translationurl"in e&&r(36,H=e.translationurl)},e.$$.update=()=>{/*session*/256&e.$$.dirty[0]&&s&&(
|
|
1632
1648
|
//update params in [props]
|
|
1633
|
-
r(65,n.session=s,n),r(65,n.userid=l,n),r(65,n.tourid=u,n),r(65,n.lang=m,n)),/*endpoint, session, userid, lang, tourid*/12032&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&c&&s&&l&&m&&u&&te(c,u),/*session, opLayout, layoutid, userid*/773&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&s&&q[o]&&l&&setTimeout((()=>{re(["LeaderboardCell","GamesCell","JoinButtonCell"],["session","userid"])})),/*cmsendpoint, tourid*/5120&e.$$.dirty[0]&&f&&u&&K(),/*showunqualifiedplayer, scorefractiondigit, tablelimit*/8716288&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&C&&_&&b&&re(["LeaderboardCell"],["showunqualifiedplayer","scorefractiondigit","tablelimit"]),/*layoutid*/1&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&o&&(I?(r(0,o=fs[o]?o:"default"),r(2,q=ms(fs[o],V))):console.log("tournamentData undefined")),/*customStylingContainer*/2&e.$$.dirty[0]|/*clientstyling*/8&e.$$.dirty[1]&&a&&F&&(()=>{let e=document.createElement("style");e.innerHTML=F,a.appendChild(e)})(),/*customStylingContainer*/2&e.$$.dirty[0]|/*clientstylingurl*/16&e.$$.dirty[1]&&a&&N&&(()=>{let e=new URL(N),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*translationurl*/32&e.$$.dirty[1]&&H&&fetch(H).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Wn(t,e[t])}))})).catch((e=>{console.log(e)}))},n=h(n),[o,a,q,G,j,Z,i,(e,t)=>{t.onLoad&&t.onLoad()},s,l,u,c,f,m,p,g,b,y,C,w,v,T,x,_,k,P,S,E,$,L,R,B,z,O,F,N,H,J,function(e){A[e?"unshift":"push"]((()=>{a=e,r(1,a)}))}]}class Os 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}@container prizes-cell (max-width: 500px){.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes{width:100%;flex:100%}}@container prizes-cell (width > 500px) and (width < 900px){.layout-wm .PrizesCell div.Collapse div.Prizes{width:100%;flex-direction:row}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes{flex:47%;max-width:calc(50% - 8px)}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(2n+1){margin-left:0}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(2n+2){margin-right:0}}@container prizes-cell (width >= 900px){.layout-wm .PrizesCell div.Collapse div.Prizes{width:100%;flex-direction:row}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes{flex:31.5%;max-width:calc(33% - 2px)}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(3n+1){margin-left:0}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(3n+2){margin:3px}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(3n+3){margin-right:0;margin-left:6px}}.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:59px;height:70px;border:2px solid var(--emfe-w-color-contrast, #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{flex-wrap:wrap;display:flex;gap:10px;width:auto}.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, #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, #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{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 .DetailInfo .TournamentButtons{display:flex;grid-gap:10px}.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;container-type:inline-size;container-name:prizes-cell;margin:auto}.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 .PrizesCell div.Collapse{display:flex;justify-content:center}.layout-wm .PrizesCell div.Collapse .Prizes{justify-content:flex-start;flex-wrap:wrap;gap:0;width:fit-content}.layout-wm .PrizesCell div.Collapse .Prizes .ColPrizes{flex:none;width:360px;margin:3px 8px}.layout-wm .PrizesCell div.Collapse .Prizes .ColPrizes .Prize{border-bottom:0px none}.layout-wm .PrizesCell .PrizeRank{display:flex;padding-right:3px}.layout-wm .PrizesCell .PrizeRank.NoRankImage .RowNo{width:0px}.layout-wm .PrizesCell .PrizeRank .RowNo{width:18px;text-align:center}.layout-wm .PrizesCell .PrizeNo{text-align:left;margin-left:5px}.layout-wm .PrizesCell .PrizePlace{padding-left:5px}.layout-wm .PrizesCell .Prize .PrizeText{display:flex}.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, #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%}.layout-wm .LeaderboardCell .TournamentsTable .RightButton{width:26px;height:50px}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},zs,Bs,o,{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,clientstyling:34,clientstylingurl:35,translationurl:36},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","clientstyling","clientstylingurl","translationurl"]}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()}get clientstyling(){return this.$$.ctx[34]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[35]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[36]}set translationurl(e){this.$$set({translationurl:e}),I()}}return!customElements.get("casino-tournaments-customize-page-controller")&&customElements.define("casino-tournaments-customize-page-controller",Os),Os}));
|
|
1649
|
+
r(65,n.session=s,n),r(65,n.userid=l,n),r(65,n.tourid=u,n),r(65,n.lang=m,n)),/*endpoint, session, userid, lang, tourid*/12032&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&c&&s&&l&&m&&u&&te(c,u),/*session, opLayout, layoutid, userid*/773&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&s&&q[o]&&l&&setTimeout((()=>{re(["LeaderboardCell","GamesCell","JoinButtonCell"],["session","userid"])})),/*cmsendpoint, tourid*/5120&e.$$.dirty[0]&&f&&u&&K(),/*showunqualifiedplayer, scorefractiondigit, tablelimit*/8716288&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&C&&_&&b&&re(["LeaderboardCell"],["showunqualifiedplayer","scorefractiondigit","tablelimit"]),/*layoutid*/1&e.$$.dirty[0]|/*isMounted*/64&e.$$.dirty[1]&&J&&o&&(I?(r(0,o=gs[o]?o:"default"),r(2,q=bs(gs[o],V))):console.log("tournamentData undefined")),/*customStylingContainer*/2&e.$$.dirty[0]|/*clientstyling*/8&e.$$.dirty[1]&&a&&F&&(()=>{let e=document.createElement("style");e.innerHTML=F,a.appendChild(e)})(),/*customStylingContainer*/2&e.$$.dirty[0]|/*clientstylingurl*/16&e.$$.dirty[1]&&a&&N&&(()=>{let e=new URL(N),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*translationurl*/32&e.$$.dirty[1]&&H&&fetch(H).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Gn(t,e[t])}))})).catch((e=>{console.log(e)}))},n=h(n),[o,a,q,G,j,Z,i,(e,t)=>{t.onLoad&&t.onLoad()},s,l,u,c,f,m,p,g,b,y,C,w,v,T,x,_,k,P,S,E,$,L,R,B,z,O,F,N,H,J,function(e){A[e?"unshift":"push"]((()=>{a=e,r(1,a)}))}]}class Hs 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}@container prizes-cell (max-width: 500px){.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes{width:100%;flex:100%}}@container prizes-cell (width > 500px) and (width < 900px){.layout-wm .PrizesCell div.Collapse div.Prizes{width:100%;flex-direction:row}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes{flex:47%;max-width:calc(50% - 8px)}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(2n+1){margin-left:0}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(2n+2){margin-right:0}}@container prizes-cell (width >= 900px){.layout-wm .PrizesCell div.Collapse div.Prizes{width:100%;flex-direction:row}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes{flex:31.5%;max-width:calc(33% - 2px)}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(3n+1){margin-left:0}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(3n+2){margin:3px}.layout-wm .PrizesCell div.Collapse div.Prizes .ColPrizes:nth-child(3n+3){margin-right:0;margin-left:6px}}.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:59px;height:70px;border:2px solid var(--emfe-w-color-contrast, #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{flex-wrap:wrap;display:flex;gap:10px;width:auto}.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, #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, #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{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 .DetailInfo .TournamentButtons{display:flex;grid-gap:10px}.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;container-type:inline-size;container-name:prizes-cell;margin:auto}.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 .PrizesCell div.Collapse{display:flex;justify-content:center}.layout-wm .PrizesCell div.Collapse .Prizes{justify-content:flex-start;flex-wrap:wrap;gap:0;width:fit-content}.layout-wm .PrizesCell div.Collapse .Prizes .ColPrizes{flex:none;width:360px;margin:3px 8px}.layout-wm .PrizesCell div.Collapse .Prizes .ColPrizes .Prize{border-bottom:0px none}.layout-wm .PrizesCell .PrizeRank{display:flex;padding-right:3px}.layout-wm .PrizesCell .PrizeRank.NoRankImage .RowNo{width:0px}.layout-wm .PrizesCell .PrizeRank .RowNo{width:18px;text-align:center}.layout-wm .PrizesCell .PrizeNo{text-align:left;margin-left:5px}.layout-wm .PrizesCell .PrizePlace{padding-left:5px}.layout-wm .PrizesCell .Prize .PrizeText{display:flex}.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, #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%}.layout-wm .LeaderboardCell .TournamentsTable .RightButton{width:26px;height:50px}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ns,Fs,o,{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,clientstyling:34,clientstylingurl:35,translationurl:36},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","clientstyling","clientstylingurl","translationurl"]}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()}get clientstyling(){return this.$$.ctx[34]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[35]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[36]}set translationurl(e){this.$$set({translationurl:e}),I()}}return!customElements.get("casino-tournaments-customize-page-controller")&&customElements.define("casino-tournaments-customize-page-controller",Hs),Hs}));
|
|
1634
1650
|
//# sourceMappingURL=casino-tournaments-customize-page-controller.js.map
|