@everymatrix/casino-categories 1.24.7 → 1.26.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.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t){e.appendChild(t)}function u(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function E(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function b(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t){t=""+t,e.data!==t&&(e.data=t)}function v(e){const t={};for(const r of e)t[r.name]=r.value;return t}function T(e){a=e}const H=[],_=[];let C=[];const B=[],A=Promise.resolve();let L=!1;function P(e){C.push(e)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t){e.appendChild(t)}function u(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function E(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t){t=""+t,e.data!==t&&(e.data=t)}function v(e){const t={};for(const r of e)t[r.name]=r.value;return t}function T(e){a=e}const H=[],_=[];let C=[];const B=[],A=Promise.resolve();let L=!1;function P(e){C.push(e)}
2
2
  // flush() calls callbacks in this order:
3
3
  // 1. All beforeUpdate callbacks, in order: parents before children
4
4
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -45,13 +45,13 @@ props:u,update:e,not_equal:c,bound:r(),
45
45
  // lifecycle
46
46
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
47
47
  // everything else
48
- callbacks:r(),dirty:g,skip_bound:!1,root:s.target||m.$$.root};p&&p(d.root);let E=!1;if(d.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return d.ctx&&c(d.ctx[e],d.ctx[e]=n)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](n),E&&R(o,e)),t})):[],d.update(),E=!0,n(d.before_update),
48
+ callbacks:r(),dirty:g,skip_bound:!1,root:s.target||m.$$.root};p&&p(d.root);let b=!1;if(d.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return d.ctx&&c(d.ctx[e],d.ctx[e]=n)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](n),b&&R(o,e)),t})):[],d.update(),b=!0,n(d.before_update),
49
49
  // `false` as a special case of no DOM component
50
50
  d.fragment=!!l&&l(d.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
51
51
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
52
52
  d.fragment&&d.fragment.l(e),e.forEach(f)}else
53
53
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
54
- d.fragment&&d.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(I.delete(b),b.i(y))),function(e,r,o,s){const{fragment:a,after_update:h}=e.$$;a&&a.m(r,o),s||
54
+ d.fragment&&d.fragment.c();s.intro&&((E=o.$$.fragment)&&E.i&&(I.delete(E),E.i(y))),function(e,r,o,s){const{fragment:a,after_update:h}=e.$$;a&&a.m(r,o),s||
55
55
  // onMount happens before the initial afterUpdate
56
56
  P((()=>{const r=e.$$.on_mount.map(t).filter(i);
57
57
  // if the component was destroyed immediately
@@ -60,7 +60,7 @@ P((()=>{const r=e.$$.on_mount.map(t).filter(i);
60
60
  e.$$.on_destroy?e.$$.on_destroy.push(...r):
61
61
  // Edge case - component was destroyed immediately,
62
62
  // most likely as a result of a binding initialising
63
- n(r),e.$$.on_mount=[]})),h.forEach(P)}(o,s.target,s.anchor,s.customElement),w()}var b,y;T(m)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
63
+ n(r),e.$$.on_mount=[]})),h.forEach(P)}(o,s.target,s.anchor,s.customElement),w()}var E,y;T(m)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
64
64
  // @ts-ignore todo: improve typings
65
65
  for(const e in this.$$.slotted)
66
66
  // @ts-ignore todo: improve typings
@@ -239,7 +239,7 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
239
239
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
240
240
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
241
241
  // @generated from regex-gen.ts
242
- var Ee=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var be=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ye=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function He(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ye,(function(e,r,n){
242
+ var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ye=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function He(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ye,(function(e,r,n){
243
243
  // @@@ case
244
244
  return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function _e(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 Ce(e){
245
245
  // Engineering
@@ -252,11 +252,11 @@ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";
252
252
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
253
253
  case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ve,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
254
254
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
255
- if(Te.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(be.test(i.stem)){
255
+ if(Te.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Ee.test(i.stem)){
256
256
  // Precision
257
257
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
258
258
  // precision-integer case
259
- if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(be,(function(e,r,n,i,o,s){
259
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ee,(function(e,r,n,i,o,s){
260
260
  // .000* case (before ICU67 it was .000+)
261
261
  return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];
262
262
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
@@ -393,11 +393,11 @@ return this.error(J.EXPECT_ARGUMENT_TYPE,Ne(o,a));case"number":case"date":case"t
393
393
  // Parse this range:
394
394
  // {name, number, style}
395
395
  // ^-------^
396
- this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((E=this.parseSimpleArgStyleIfPossible()).err)return E;if(0===(p=Ye(E.val)).length)return this.error(J.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Ne(l,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Ne(n,this.clonePosition());
396
+ this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Ye(b.val)).length)return this.error(J.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Ne(l,this.clonePosition())}}if((E=this.tryParseArgumentClose(n)).err)return E;var c=Ne(n,this.clonePosition());
397
397
  // Extract style or skeleton
398
398
  if(h&&ke(null==h?void 0:h.style,"::",0)){
399
399
  // Skeleton starts with `::`.
400
- var u=Ke(h.style.slice(2));if("number"===s)return(E=this.parseNumberSkeletonFromString(u,h.styleLocation)).err?E:{val:{type:q.number,value:r,location:c,style:E.val},err:null};if(0===u.length)return this.error(J.EXPECT_DATE_TIME_SKELETON,c);var f=u;
400
+ var u=Ke(h.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,h.styleLocation)).err?b:{val:{type:q.number,value:r,location:c,style:b.val},err:null};if(0===u.length)return this.error(J.EXPECT_DATE_TIME_SKELETON,c);var f=u;
401
401
  // Get "best match" pattern only if locale is passed, if not, let it
402
402
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
403
403
  // for unsupported patterns.
@@ -414,9 +414,9 @@ var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
414
414
  // or the first option:
415
415
  // {name, plural, one {...} other {...}}
416
416
  // ^--^
417
- var m=this.parseIdentifierIfPossible(),d=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ne(this.clonePosition(),this.clonePosition()));var E;if(this.bumpSpace(),(E=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return E;
417
+ var m=this.parseIdentifierIfPossible(),d=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ne(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
418
418
  // Parse another identifier for option parsing
419
- this.bumpSpace(),m=this.parseIdentifierIfPossible(),d=E.val}var b,y=this.tryParsePluralOrSelectOptions(e,s,t,m);if(y.err)return y;if((b=this.tryParseArgumentClose(n)).err)return b;var v=Ne(n,this.clonePosition());return"select"===s?{val:{type:q.select,value:r,options:Ve(y.val),location:v},err:null}:{val:{type:q.plural,value:r,options:Ve(y.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(J.INVALID_ARGUMENT_TYPE,Ne(o,a))}},e.prototype.tryParseArgumentClose=function(e){
419
+ this.bumpSpace(),m=this.parseIdentifierIfPossible(),d=b.val}var E,y=this.tryParsePluralOrSelectOptions(e,s,t,m);if(y.err)return y;if((E=this.tryParseArgumentClose(n)).err)return E;var v=Ne(n,this.clonePosition());return"select"===s?{val:{type:q.select,value:r,options:Ve(y.val),location:v},err:null}:{val:{type:q.plural,value:r,options:Ve(y.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(J.INVALID_ARGUMENT_TYPE,Ne(o,a))}},e.prototype.tryParseArgumentClose=function(e){
420
420
  // Parse: {value, number, ::currency/GBP }
421
421
  return this.isEOF()||125/* `}` */!==this.char()?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
422
422
  /**
@@ -427,7 +427,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
427
427
  // Find the end of the quoted literal text.
428
428
  this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(J.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ne(r,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 r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
429
429
  // Parse the skeleton
430
- for(var t=[],r=0,n=e.split(Ee).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(J.INVALID_NUMBER_SKELETON,t)}return{val:{type:ee.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},
430
+ for(var t=[],r=0,n=e.split(be).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(J.INVALID_NUMBER_SKELETON,t)}return{val:{type:ee.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},
431
431
  /**
432
432
  * @param nesting_level The current nesting level of messages.
433
433
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -529,9 +529,9 @@ e.MISSING_VALUE="MISSING_VALUE",
529
529
  // When value supplied is invalid
530
530
  e.INVALID_VALUE="INVALID_VALUE",
531
531
  // When we need specific Intl API but it's not available
532
- e.MISSING_INTL_API="MISSING_INTL_API"}(lt||(lt={}));var ft,pt=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return Q(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gt=/** @class */function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),lt.INVALID_VALUE,i)||this}return Q(t,e),t}(pt),mt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),lt.INVALID_VALUE,n)||this}return Q(t,e),t}(pt),dt=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),lt.MISSING_VALUE,r)||this}return Q(t,e),t}(pt);function Et(e){return"function"==typeof e}
532
+ e.MISSING_INTL_API="MISSING_INTL_API"}(lt||(lt={}));var ft,pt=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return Q(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gt=/** @class */function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),lt.INVALID_VALUE,i)||this}return Q(t,e),t}(pt),mt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),lt.INVALID_VALUE,n)||this}return Q(t,e),t}(pt),dt=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),lt.MISSING_VALUE,r)||this}return Q(t,e),t}(pt);function bt(e){return"function"==typeof e}
533
533
  // TODO(skeleton): add skeleton support
534
- function bt(e,t,r,n,i,o,
534
+ function Et(e,t,r,n,i,o,
535
535
  // For debugging
536
536
  s){
537
537
  // Hot path for straight simple msg translations
@@ -546,7 +546,7 @@ if(!i||!(u in i))throw new dt(u,s);var f=i[u];if(ie(c))f&&"string"!=typeof f&&"n
546
546
  // Recursively format plural and select parts' option — which can be a
547
547
  // nested pattern structure. The choosing of the option to use is
548
548
  // abstracted-by and delegated-to the part helper object.
549
- if(se(c)){var p="string"==typeof c.style?n.date[c.style]:pe(c.style)?c.style.parsedOptions:void 0;a.push({type:ft.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ae(c)){p="string"==typeof c.style?n.time[c.style]:pe(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:ft.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(oe(c)){(p="string"==typeof c.style?n.number[c.style]:fe(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:ft.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(ue(c)){var g=c.children,m=c.value,d=i[m];if(!Et(d))throw new mt(m,"function",s);var E=d(bt(g,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map((function(e){return{type:"string"==typeof e?ft.literal:ft.object,value:e}})))}if(he(c)){if(!(b=c.options[f]||c.options.other))throw new gt(c.value,f,Object.keys(c.options),s);a.push.apply(a,bt(b.value,t,r,n,i))}else if(le(c)){var b;if(!(b=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new pt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',lt.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));b=c.options[y]||c.options.other}if(!b)throw new gt(c.value,f,Object.keys(c.options),s);a.push.apply(a,bt(b.value,t,r,n,i,f-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ft.literal&&t.type===ft.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
549
+ if(se(c)){var p="string"==typeof c.style?n.date[c.style]:pe(c.style)?c.style.parsedOptions:void 0;a.push({type:ft.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ae(c)){p="string"==typeof c.style?n.time[c.style]:pe(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:ft.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(oe(c)){(p="string"==typeof c.style?n.number[c.style]:fe(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:ft.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(ue(c)){var g=c.children,m=c.value,d=i[m];if(!bt(d))throw new mt(m,"function",s);var b=d(Et(g,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?ft.literal:ft.object,value:e}})))}if(he(c)){if(!(E=c.options[f]||c.options.other))throw new gt(c.value,f,Object.keys(c.options),s);a.push.apply(a,Et(E.value,t,r,n,i))}else if(le(c)){var E;if(!(E=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new pt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',lt.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));E=c.options[y]||c.options.other}if(!E)throw new gt(c.value,f,Object.keys(c.options),s);a.push.apply(a,Et(E.value,t,r,n,i,f-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ft.literal&&t.type===ft.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
550
550
  /*
551
551
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
552
552
  Copyrights licensed under the New BSD License.
@@ -555,7 +555,7 @@ if(se(c)){var p="string"==typeof c.style?n.date[c.style]:pe(c.style)?c.style.par
555
555
  // -- MessageFormat --------------------------------------------------------
556
556
  function yt(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?te(te(te({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=te(te({},i[t]),o[t]||{}),e}),{})):i),r}),te({},e)):e}function vt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ft||(ft={}));var Tt=/** @class */function(){function e(t,r,n,i){var o,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
557
557
  // Hot path for straight simple msg translations
558
- if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===ft.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return bt(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
558
+ if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===ft.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Et(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
559
559
  // Defined first because it's used to build the format pattern.
560
560
  this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
561
561
  // Parse string messages into an AST.
@@ -568,21 +568,21 @@ this.formats=yt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
568
568
  // and Intl.DateTimeFormat instances.
569
569
  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 Ht={},_t=(e,t,r)=>r?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=r),r):r,Ct=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const r=zt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return _t(e,t,i)}};let Bt;const At=$({});function Lt(e){return e in Bt}function Pt(e,t){if(!Lt(e))return null;const r=function(e){return Bt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function St(e,...t){delete Ht[e],At.update((r=>(r[e]=z.all([r[e]||{},...t]),r)))}F([At],(([e])=>Object.keys(e))),At.subscribe((e=>Bt=e));const Ot={};function wt(e){return Ot[e]}function Nt(e){return null!=e&&zt(e).some((e=>{var t;return null==(t=wt(e))?void 0:t.size}))}function It(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ot[e].delete(t),0===Ot[e].size&&delete Ot[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>St(e,...t)))}const Mt={};function Rt(e){if(!Nt(e))return e in Mt?Mt[e]:Promise.resolve();const t=function(e){return zt(e).map((e=>{const t=wt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Mt[e]=Promise.all(t.map((([e,t])=>It(e,t)))).then((()=>{if(Nt(e))return Rt(e);delete Mt[e]})),Mt[e]}const Ut={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 Gt(){return Ut}const Dt=$(!1);var $t=Object.defineProperty,Ft=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,r)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Kt;const Yt=$(null);function Zt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function zt(e,t=Gt().fallbackLocale){const r=Zt(e);return t?[...new Set([...r,...Zt(t)])]:r}function Wt(){return null!=Kt?Kt:void 0}Yt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(Jt=((e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Xt(e,r,t[r]);if(kt)for(var r of kt(t))Vt.call(t,r)&&Xt(e,r,t[r]);return e})({},Yt),Ft(Jt,xt({set:e=>{if(e&&function(e){if(null==e)return;const t=zt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Nt(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Wt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Rt(e).then((()=>{Yt.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return Yt.set(e)}})));var Jt;const qt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var er=Object.defineProperty,tr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ir=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))rr.call(t,r)&&ir(e,r,t[r]);if(tr)for(var r of tr(t))nr.call(t,r)&&ir(e,r,t[r]);return e},sr=(e,t)=>{var r={};for(var n in e)rr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tr)for(var n of tr(e))t.indexOf(n)<0&&nr.call(e,n)&&(r[n]=e[n]);return r};const ar=(e,t)=>{const{formats:r}=Gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ar("number",n)),new Intl.NumberFormat(r,i)})),lr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ar("date",n):0===Object.keys(i).length&&(i=ar("date","short")),new Intl.DateTimeFormat(r,i)})),cr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ar("time",n):0===Object.keys(i).length&&(i=ar("time","short")),new Intl.DateTimeFormat(r,i)})),ur=qt((
570
570
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571
- (e,t=Wt())=>new Tt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),fr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Wt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ct(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Gt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=ur(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return cr(or({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return lr(or({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return hr(or({locale:r},n))})(t).format(e),dr=(e,t=Wt())=>Ct(e,t),Er=F([Qt,At],(()=>fr));function br(e,t){St(e,t)}F([Qt],(()=>pr)),F([Qt],(()=>gr)),F([Qt],(()=>mr)),F([Qt,At],(()=>dr));const yr={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Glavne kategorije",otherCategories:"Druge kategorije",loading:"Učitavanje, molimo čekajte.",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};
571
+ (e,t=Wt())=>new Tt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),fr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Wt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ct(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Gt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=ur(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return cr(or({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return lr(or({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return hr(or({locale:r},n))})(t).format(e),dr=(e,t=Wt())=>Ct(e,t),br=F([Qt,At],(()=>fr));function Er(e,t){St(e,t)}F([Qt],(()=>pr)),F([Qt],(()=>gr)),F([Qt],(()=>mr)),F([Qt,At],(()=>dr));const yr={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Najbolje kategorije",otherCategories:"Ostale kategorije",loading:"Učitavam",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};
572
572
  /* src/CasinoCategories.svelte generated by Svelte v3.59.2 */function vr(e,t,r){const n=e.slice();return n[24]=t[r],n}function Tr(e,t,r){const n=e.slice();return n[24]=t[r],n}
573
573
  // (80:2) {:else}
574
- function Hr(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[5]("topCategories")+"",E=/*$_*/e[5]("otherCategories")+"",v=/*topCategories*/e[3],T=[];for(let t=0;t<v.length;t+=1)T[t]=Cr(Tr(e,v,t));let H=/*otherCategories*/e[4],_=[];for(let t=0;t<H.length;t+=1)_[t]=Br(vr(e,H,t));return{c(){t=g("div"),r=g("h4"),n=m(l),i=d();for(let e=0;e<T.length;e+=1)T[e].c();o=d(),s=g("h4"),a=m(E),h=d();for(let e=0;e<_.length;e+=1)_[e].c();b(r,"class","CategoryTitle"),b(s,"class","CategoryTitle"),b(t,"class","CasinoCategories")},m(e,l){u(e,t,l),c(t,r),c(r,n),c(t,i);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(t,null);c(t,o),c(t,s),c(s,a),c(t,h);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(t,null)},p(e,r){if(/*$_*/32&r&&l!==(l=/*$_*/e[5]("topCategories")+"")&&y(n,l),/*activecategory, topCategories, openGameCategory, $_*/105&r){let n;for(v=/*topCategories*/e[3],n=0;n<v.length;n+=1){const i=Tr(e,v,n);T[n]?T[n].p(i,r):(T[n]=Cr(i),T[n].c(),T[n].m(t,o))}for(;n<T.length;n+=1)T[n].d(1);T.length=v.length}if(/*$_*/32&r&&E!==(E=/*$_*/e[5]("otherCategories")+"")&&y(a,E),/*activecategory, otherCategories, openGameCategory, $_*/113&r){let n;for(H=/*otherCategories*/e[4],n=0;n<H.length;n+=1){const i=vr(e,H,n);_[n]?_[n].p(i,r):(_[n]=Br(i),_[n].c(),_[n].m(t,null))}for(;n<_.length;n+=1)_[n].d(1);_.length=H.length}},d(e){e&&f(t),p(T,e),p(_,e)}}}
574
+ function Hr(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[5]("topCategories")+"",b=/*$_*/e[5]("otherCategories")+"",v=/*topCategories*/e[3],T=[];for(let t=0;t<v.length;t+=1)T[t]=Cr(Tr(e,v,t));let H=/*otherCategories*/e[4],_=[];for(let t=0;t<H.length;t+=1)_[t]=Br(vr(e,H,t));return{c(){t=g("div"),r=g("h4"),n=m(l),i=d();for(let e=0;e<T.length;e+=1)T[e].c();o=d(),s=g("h4"),a=m(b),h=d();for(let e=0;e<_.length;e+=1)_[e].c();E(r,"class","CategoryTitle"),E(s,"class","CategoryTitle"),E(t,"class","CasinoCategories")},m(e,l){u(e,t,l),c(t,r),c(r,n),c(t,i);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(t,null);c(t,o),c(t,s),c(s,a),c(t,h);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(t,null)},p(e,r){if(/*$_*/32&r&&l!==(l=/*$_*/e[5]("topCategories")+"")&&y(n,l),/*activecategory, topCategories, openGameCategory, $_*/105&r){let n;for(v=/*topCategories*/e[3],n=0;n<v.length;n+=1){const i=Tr(e,v,n);T[n]?T[n].p(i,r):(T[n]=Cr(i),T[n].c(),T[n].m(t,o))}for(;n<T.length;n+=1)T[n].d(1);T.length=v.length}if(/*$_*/32&r&&b!==(b=/*$_*/e[5]("otherCategories")+"")&&y(a,b),/*activecategory, otherCategories, openGameCategory, $_*/113&r){let n;for(H=/*otherCategories*/e[4],n=0;n<H.length;n+=1){const i=vr(e,H,n);_[n]?_[n].p(i,r):(_[n]=Br(i),_[n].c(),_[n].m(t,null))}for(;n<_.length;n+=1)_[n].d(1);_.length=H.length}},d(e){e&&f(t),p(T,e),p(_,e)}}}
575
575
  // (78:2) {#if isLoading}
576
- function _r(t){let r;return{c(){r=g("p"),r.textContent="Loading, please wait...",b(r,"class","Message")},m(e,t){u(e,r,t)},p:e,d(e){e&&f(r)}}}
576
+ function _r(t){let r;return{c(){r=g("p"),r.textContent="Loading, please wait...",E(r,"class","Message")},m(e,t){u(e,r,t)},p:e,d(e){e&&f(r)}}}
577
577
  // (83:4) {#each topCategories as category}
578
578
  function Cr(e){let t,r,n,i,o,s,a,l,p,v,T,H,_,C,B,A,L=/*category*/e[24].name+"",P=/*category*/e[24].games.count+"",S=/*$_*/e[5]("games")+"";function O(){/*click_handler*/
579
- return e[14](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(L),p=d(),v=g("p"),T=m(P),H=d(),_=m(S),h(r.src,n=/*category*/e[24].icon)||b(r,"src",n),b(r,"alt",i=/*category*/e[24].name),b(r,"class","CategoryImage"),b(s,"class","CategoryTextContainer"),b(t,"class",C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,_),B||(A=E(t,"click",O),B=!0)},p(o,s){e=o,/*topCategories*/8&s&&!h(r.src,n=/*category*/e[24].icon)&&b(r,"src",n),/*topCategories*/8&s&&i!==(i=/*category*/e[24].name)&&b(r,"alt",i),/*topCategories*/8&s&&L!==(L=/*category*/e[24].name+"")&&y(l,L),/*topCategories*/8&s&&P!==(P=/*category*/e[24].games.count+"")&&y(T,P),/*$_*/32&s&&S!==(S=/*$_*/e[5]("games")+"")&&y(_,S),/*activecategory, topCategories*/9&s&&C!==(C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&b(t,"class",C)},d(e){e&&f(t),B=!1,A()}}}
579
+ return e[14](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(L),p=d(),v=g("p"),T=m(P),H=d(),_=m(S),h(r.src,n=/*category*/e[24].icon)||E(r,"src",n),E(r,"alt",i=/*category*/e[24].name),E(r,"class","CategoryImage"),E(s,"class","CategoryTextContainer"),E(t,"class",C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,_),B||(A=b(t,"click",O),B=!0)},p(o,s){e=o,/*topCategories*/8&s&&!h(r.src,n=/*category*/e[24].icon)&&E(r,"src",n),/*topCategories*/8&s&&i!==(i=/*category*/e[24].name)&&E(r,"alt",i),/*topCategories*/8&s&&L!==(L=/*category*/e[24].name+"")&&y(l,L),/*topCategories*/8&s&&P!==(P=/*category*/e[24].games.count+"")&&y(T,P),/*$_*/32&s&&S!==(S=/*$_*/e[5]("games")+"")&&y(_,S),/*activecategory, topCategories*/9&s&&C!==(C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&E(t,"class",C)},d(e){e&&f(t),B=!1,A()}}}
580
580
  // (93:4) {#each otherCategories as category}
581
581
  function Br(e){let t,r,n,i,o,s,a,l,p,v,T,H,_,C,B,A,L,P=/*category*/e[24].name+"",S=/*category*/e[24].games.count+"",O=/*$_*/e[5]("games")+"";function w(){/*click_handler_1*/
582
- return e[15](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(P),p=d(),v=g("p"),T=m(S),H=d(),_=m(O),C=d(),h(r.src,n=/*category*/e[24].icon)||b(r,"src",n),b(r,"alt",i=/*category*/e[24].name),b(r,"class","CategoryImage"),b(s,"class","CategoryTextContainer"),b(t,"class",B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,_),c(t,C),A||(L=E(t,"click",w),A=!0)},p(o,s){e=o,/*otherCategories*/16&s&&!h(r.src,n=/*category*/e[24].icon)&&b(r,"src",n),/*otherCategories*/16&s&&i!==(i=/*category*/e[24].name)&&b(r,"alt",i),/*otherCategories*/16&s&&P!==(P=/*category*/e[24].name+"")&&y(l,P),/*otherCategories*/16&s&&S!==(S=/*category*/e[24].games.count+"")&&y(T,S),/*$_*/32&s&&O!==(O=/*$_*/e[5]("games")+"")&&y(_,O),/*activecategory, otherCategories*/17&s&&B!==(B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&b(t,"class",B)},d(e){e&&f(t),A=!1,L()}}}function Ar(t){let r;function n(e,t){/*isLoading*/
582
+ return e[15](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(P),p=d(),v=g("p"),T=m(S),H=d(),_=m(O),C=d(),h(r.src,n=/*category*/e[24].icon)||E(r,"src",n),E(r,"alt",i=/*category*/e[24].name),E(r,"class","CategoryImage"),E(s,"class","CategoryTextContainer"),E(t,"class",B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,n){u(e,t,n),c(t,r),c(t,o),c(t,s),c(s,a),c(a,l),c(s,p),c(s,v),c(v,T),c(v,H),c(v,_),c(t,C),A||(L=b(t,"click",w),A=!0)},p(o,s){e=o,/*otherCategories*/16&s&&!h(r.src,n=/*category*/e[24].icon)&&E(r,"src",n),/*otherCategories*/16&s&&i!==(i=/*category*/e[24].name)&&E(r,"alt",i),/*otherCategories*/16&s&&P!==(P=/*category*/e[24].name+"")&&y(l,P),/*otherCategories*/16&s&&S!==(S=/*category*/e[24].games.count+"")&&y(T,S),/*$_*/32&s&&O!==(O=/*$_*/e[5]("games")+"")&&y(_,O),/*activecategory, otherCategories*/17&s&&B!==(B="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&E(t,"class",B)},d(e){e&&f(t),A=!1,L()}}}function Ar(t){let r;function n(e,t){/*isLoading*/
583
583
  return e[2]?_r:Hr}let i=n(t),o=i(t);return{c(){r=g("div"),o.c(),this.c=e},m(e,n){u(e,r,n),o.m(r,null),
584
584
  /*div_binding*/t[16](r)},p(e,[t]){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r,null)))},i:e,o:e,d(e){e&&f(r),o.d(),
585
- /*div_binding*/t[16](null)}}}function Lr(e,t,r){let n;var i,o;i=Er,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,{endpoint:a=""}=t,{datasource:h=""}=t,{lang:c="en"}=t,{activecategory:u=""}=t,{excludedflags:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{translationurl:m=""}=t,d=!1;const E=[];let b=[],y=[];Object.keys(yr).forEach((e=>{br(e,yr[e])}));const v=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e},window.location.href)},T=()=>{var e;e=c,Qt.set(e)};return e.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"datasource"in e&&r(8,h=e.datasource),"lang"in e&&r(9,c=e.lang),"activecategory"in e&&r(0,u=e.activecategory),"excludedflags"in e&&r(10,f=e.excludedflags),"clientstyling"in e&&r(11,p=e.clientstyling),"clientstylingurl"in e&&r(12,g=e.clientstylingurl),"translationurl"in e&&r(13,m=e.translationurl)},e.$$.update=()=>{/*endpoint, datasource*/384&e.$$.dirty&&a&&h&&(()=>{r(2,d=!0);const e=new URL(`${a}/v1/casino/groups/${h}`);e.searchParams.append("language",c),fetch(e).then((e=>e.json())).then((e=>{r(2,d=!1);const t=f.split(",").map((e=>e.trim()));E.push(...e.items);
585
+ /*div_binding*/t[16](null)}}}function Lr(e,t,r){let n;var i,o;i=br,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,{endpoint:a=""}=t,{datasource:h=""}=t,{lang:c="en"}=t,{activecategory:u=""}=t,{excludedflags:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{translationurl:m=""}=t,d=!1;const b=[];let E=[],y=[];Object.keys(yr).forEach((e=>{Er(e,yr[e])}));const v=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e},window.location.href)},T=()=>{var e;e=c,Qt.set(e)};return e.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"datasource"in e&&r(8,h=e.datasource),"lang"in e&&r(9,c=e.lang),"activecategory"in e&&r(0,u=e.activecategory),"excludedflags"in e&&r(10,f=e.excludedflags),"clientstyling"in e&&r(11,p=e.clientstyling),"clientstylingurl"in e&&r(12,g=e.clientstylingurl),"translationurl"in e&&r(13,m=e.translationurl)},e.$$.update=()=>{/*endpoint, datasource*/384&e.$$.dirty&&a&&h&&(()=>{r(2,d=!0);const e=new URL(`${a}/v1/casino/groups/${h}`);e.searchParams.append("language",c),fetch(e).then((e=>e.json())).then((e=>{r(2,d=!1);const t=f.split(",").map((e=>e.trim()));b.push(...e.items);
586
586
  // remove those items which have a flag matching the excluded flags
587
- const n=E.filter((e=>!t.some((t=>{var r;return(null===(r=e.flags)||void 0===r?void 0:r.indexOf(t))>=0}))));r(3,b=n.filter((e=>!0===e.isTopCategory))),r(4,y=n.filter((e=>!1===e.isTopCategory)))}))})(),/*translationurl*/8192&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{br(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/512&e.$$.dirty&&c&&T(),/*clientstyling, customStylingContainer*/2050&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4098&e.$$.dirty&&g&&s&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[u,s,d,b,y,n,v,a,h,c,f,p,g,m,e=>v(e.id),e=>v(e.id),function(e){_[e?"unshift":"push"]((()=>{s=e,r(1,s)}))}]}class Pr extends G{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emfe-w-color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emfe-w-color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},Lr,Ar,o,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","datasource","lang","activecategory","excludedflags","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),w()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),w()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),w()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),w()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),w()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("casino-categories")&&customElements.define("casino-categories",Pr),Pr}));
587
+ const n=b.filter((e=>!t.some((t=>{var r;return(null===(r=e.flags)||void 0===r?void 0:r.indexOf(t))>=0}))));r(3,E=n.filter((e=>!0===e.isTopCategory))),r(4,y=n.filter((e=>!1===e.isTopCategory)))}))})(),/*translationurl*/8192&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/512&e.$$.dirty&&c&&T(),/*clientstyling, customStylingContainer*/2050&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4098&e.$$.dirty&&g&&s&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[u,s,d,E,y,n,v,a,h,c,f,p,g,m,e=>v(e.id),e=>v(e.id),function(e){_[e?"unshift":"push"]((()=>{s=e,r(1,s)}))}]}class Pr extends G{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emfe-w-color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emfe-w-color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},Lr,Ar,o,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","datasource","lang","activecategory","excludedflags","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),w()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),w()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),w()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),w()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),w()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("casino-categories")&&customElements.define("casino-categories",Pr),Pr}));
588
588
  //# sourceMappingURL=casino-categories.js.map