@everymatrix/casino-categories 1.11.1 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 T(e){const t={};for(const r of e)t[r.name]=r.value;return t}function v(e){a=e}const H=[],_=[];let C=[];const B=[],A=Promise.resolve();let L=!1;function S(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 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 S(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.
@@ -25,21 +25,21 @@ function I(){
25
25
  if(0!==N)return;const e=a;do{
26
26
  // first, call beforeUpdate functions
27
27
  // and update components
28
- try{for(;N<H.length;){const e=H[N];N++,v(e),O(e.$$)}}catch(e){
28
+ try{for(;N<H.length;){const e=H[N];N++,T(e),O(e.$$)}}catch(e){
29
29
  // reset dirty state to not end up in a deadlocked state and then rethrow
30
- throw H.length=0,N=0,e}for(v(null),H.length=0,N=0;_.length;)_.pop()();
30
+ throw H.length=0,N=0,e}for(T(null),H.length=0,N=0;_.length;)_.pop()();
31
31
  // then, once components are updated, call
32
32
  // afterUpdate functions. This may cause
33
33
  // subsequent updates...
34
34
  for(let e=0;e<C.length;e+=1){const t=C[e];P.has(t)||(
35
35
  // ...so guard against infinite loops
36
- P.add(t),t())}C.length=0}while(H.length);for(;B.length;)B.pop()();L=!1,P.clear(),v(e)}function O(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(S)}}
36
+ P.add(t),t())}C.length=0}while(H.length);for(;B.length;)B.pop()();L=!1,P.clear(),T(e)}function O(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(S)}}
37
37
  /**
38
38
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
39
39
  */const w=new Set;function R(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];C.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),C=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
40
40
  // TODO null out other refs, including component.$$ (but need to
41
41
  // preserve final state?)
42
- r.on_destroy=r.fragment=null,r.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,h,l,c,u,p,g=[-1]){const m=a;v(o);const d=o.$$={fragment:null,ctx:[],
42
+ r.on_destroy=r.fragment=null,r.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,h,l,c,u,p,g=[-1]){const m=a;T(o);const d=o.$$={fragment:null,ctx:[],
43
43
  // state
44
44
  props:u,update:e,not_equal:c,bound:r(),
45
45
  // lifecycle
@@ -60,7 +60,7 @@ S((()=>{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(S)}(o,s.target,s.anchor,s.customElement),I()}var b,y;v(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(S)}(o,s.target,s.anchor,s.customElement),I()}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);
64
64
  // @ts-ignore todo: improve typings
65
65
  for(const e in this.$$.slotted)
66
66
  // @ts-ignore todo: improve typings
@@ -239,20 +239,20 @@ 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,Te=/(\*)(0+)|(#+)(0+)|(0+)/g,ve=/^(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 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){
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
246
- 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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ve.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Be(e){var t=_e(e);return t||{}}
246
+ 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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Be(e){var t=_e(e);return t||{}}
247
247
  /**
248
248
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
249
249
  */function Ae(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];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=te(te(te({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return te(te({},e),Be(t))}),{}));continue;case"engineering":t=te(te(te({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return te(te({},e),Be(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
250
250
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
251
251
  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;
252
252
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
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(Te,(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}
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(ve.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(be.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
@@ -416,7 +416,7 @@ var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
416
416
  // ^--^
417
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,Oe(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;
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 T=Oe(n,this.clonePosition());return"select"===s?{val:{type:q.select,value:r,options:Ve(y.val),location:T},err:null}:{val:{type:q.plural,value:r,options:Ve(y.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:T},err:null};default:return this.error(J.INVALID_ARGUMENT_TYPE,Oe(o,a))}},e.prototype.tryParseArgumentClose=function(e){
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=Oe(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,Oe(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,Oe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
422
422
  /**
@@ -552,7 +552,7 @@ if(se(c)){var p="string"==typeof c.style?n.date[c.style]:pe(c.style)?c.style.par
552
552
  See the accompanying LICENSE file for terms.
553
553
  */
554
554
  // -- MessageFormat --------------------------------------------------------
555
- function Tt(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"}(pt||(pt={}));var Ht=/** @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);
555
+ function vt(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 Tt(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"}(pt||(pt={}));var Ht=/** @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);
556
556
  // Hot path for straight simple msg translations
557
557
  if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===pt.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 yt(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
558
  // Defined first because it's used to build the format pattern.
@@ -561,7 +561,7 @@ this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(thi
561
561
  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.");
562
562
  // Creates a new object with the specified `formats` merged with the default
563
563
  // formats.
564
- this.formats=Tt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,re([void 0],t,!1)))}),{cache:vt(o.number),strategy:ft.variadic}),getDateTimeFormat:nt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,re([void 0],t,!1)))}),{cache:vt(o.dateTime),strategy:ft.variadic}),getPluralRules:nt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,re([void 0],t,!1)))}),{cache:vt(o.pluralRules),strategy:ft.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=rt,
564
+ this.formats=vt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,re([void 0],t,!1)))}),{cache:Tt(o.number),strategy:ft.variadic}),getDateTimeFormat:nt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,re([void 0],t,!1)))}),{cache:Tt(o.dateTime),strategy:ft.variadic}),getPluralRules:nt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,re([void 0],t,!1)))}),{cache:Tt(o.pluralRules),strategy:ft.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=rt,
565
565
  // Default format options used as the prototype of the `formats` provided to the
566
566
  // constructor. These are used when constructing the internal Intl.NumberFormat
567
567
  // and Intl.DateTimeFormat instances.
@@ -570,21 +570,21 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
570
570
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
571
571
  Copyrights licensed under the New BSD License.
572
572
  See the accompanying LICENSE file for terms.
573
- */const Ct={},Bt=(e,t,r)=>r?(t in Ct||(Ct[t]={}),e in Ct[t]||(Ct[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in Ct&&e in Ct[t])return Ct[t][e];const r=jt(t);for(let n=0;n<r.length;n++){const i=Nt(r[n],e);if(i)return Bt(e,t,i)}};let Lt;const St=$({});function Pt(e){return e in Lt}function Nt(e,t){if(!Pt(e))return null;const r=function(e){return Lt[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 It(e,...t){delete Ct[e],St.update((r=>(r[e]=z.all([r[e]||{},...t]),r)))}x([St],(([e])=>Object.keys(e))),St.subscribe((e=>Lt=e));const Ot={};function wt(e){return Ot[e]}function Rt(e){return null!=e&&jt(e).some((e=>{var t;return null===(t=wt(e))||void 0===t?void 0:t.size}))}const Mt={};function Ut(e){if(!Rt(e))return e in Mt?Mt[e]:Promise.resolve();const t=function(e){return jt(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])=>function(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=>It(e,...t)))}(e,t)))).then((()=>{if(Rt(e))return Ut(e);delete Mt[e]})),Mt[e]}const Gt={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 Dt(){return Gt}const $t=$(!1);let xt;const kt=$(null);function Ft(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function jt(e,t=Dt().fallbackLocale){const r=Ft(e);return t?[...new Set([...r,...Ft(t)])]:r}function Vt(){return null!=xt?xt:void 0}kt.subscribe((e=>{xt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Xt={...kt,set:e=>{if(e&&function(e){if(null==e)return;const t=jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=Dt();let r;return"undefined"!=typeof window&&null!=Vt()&&t?r=window.setTimeout((()=>$t.set(!0)),t):$t.set(!0),Ut(e).then((()=>{kt.set(e)})).finally((()=>{clearTimeout(r),$t.set(!1)}))}return kt.set(e)}},Kt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Yt=(e,t)=>{const{formats:r}=Dt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zt=Kt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=Yt("number",t)),new Intl.NumberFormat(e,r)})),zt=Kt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=Yt("date",t):0===Object.keys(r).length&&(r=Yt("date","short")),new Intl.DateTimeFormat(e,r)})),Wt=Kt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=Yt("time",t):0===Object.keys(r).length&&(r=Yt("time","short")),new Intl.DateTimeFormat(e,r)})),Qt=Kt(((e,t=Vt())=>new _t(e,t,Dt().formats,{ignoreTag:Dt().ignoreTag}))),Jt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Vt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(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=Dt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return c;let u=c;try{u=Qt(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},qt=(e,t)=>(({locale:e=Vt(),...t}={})=>Wt({locale:e,...t}))(t).format(e),er=(e,t)=>(({locale:e=Vt(),...t}={})=>zt({locale:e,...t}))(t).format(e),tr=(e,t)=>(({locale:e=Vt(),...t}={})=>Zt({locale:e,...t}))(t).format(e),rr=(e,t=Vt())=>At(e,t),nr=x([Xt,St],(()=>Jt));function ir(e,t){It(e,t)}x([Xt],(()=>qt)),x([Xt],(()=>er)),x([Xt],(()=>tr)),x([Xt,St],(()=>rr));const or={en:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},"zh-hk":{Translations:{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"}},de:{Translations:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"}},it:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},fr:{Translations:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"}},es:{Translations:{topCategories:"Categorias Top",otherCategories:"Otras Categorias ",loading:"Cargando...",games:"juegos"}},tr:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},ru:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},ro:{Translations:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"}},hr:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},hu:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},pl:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},pt:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},sl:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}},sr:{Translations:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}}};
573
+ */const Ct={},Bt=(e,t,r)=>r?(t in Ct||(Ct[t]={}),e in Ct[t]||(Ct[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in Ct&&e in Ct[t])return Ct[t][e];const r=jt(t);for(let n=0;n<r.length;n++){const i=Nt(r[n],e);if(i)return Bt(e,t,i)}};let Lt;const St=$({});function Pt(e){return e in Lt}function Nt(e,t){if(!Pt(e))return null;const r=function(e){return Lt[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 It(e,...t){delete Ct[e],St.update((r=>(r[e]=z.all([r[e]||{},...t]),r)))}x([St],(([e])=>Object.keys(e))),St.subscribe((e=>Lt=e));const Ot={};function wt(e){return Ot[e]}function Rt(e){return null!=e&&jt(e).some((e=>{var t;return null===(t=wt(e))||void 0===t?void 0:t.size}))}const Mt={};function Ut(e){if(!Rt(e))return e in Mt?Mt[e]:Promise.resolve();const t=function(e){return jt(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])=>function(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=>It(e,...t)))}(e,t)))).then((()=>{if(Rt(e))return Ut(e);delete Mt[e]})),Mt[e]}const Gt={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 Dt(){return Gt}const $t=$(!1);let xt;const kt=$(null);function Ft(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function jt(e,t=Dt().fallbackLocale){const r=Ft(e);return t?[...new Set([...r,...Ft(t)])]:r}function Vt(){return null!=xt?xt:void 0}kt.subscribe((e=>{xt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Xt={...kt,set:e=>{if(e&&function(e){if(null==e)return;const t=jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=Dt();let r;return"undefined"!=typeof window&&null!=Vt()&&t?r=window.setTimeout((()=>$t.set(!0)),t):$t.set(!0),Ut(e).then((()=>{kt.set(e)})).finally((()=>{clearTimeout(r),$t.set(!1)}))}return kt.set(e)}},Kt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Yt=(e,t)=>{const{formats:r}=Dt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zt=Kt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=Yt("number",t)),new Intl.NumberFormat(e,r)})),zt=Kt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=Yt("date",t):0===Object.keys(r).length&&(r=Yt("date","short")),new Intl.DateTimeFormat(e,r)})),Wt=Kt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=Yt("time",t):0===Object.keys(r).length&&(r=Yt("time","short")),new Intl.DateTimeFormat(e,r)})),Qt=Kt(((e,t=Vt())=>new _t(e,t,Dt().formats,{ignoreTag:Dt().ignoreTag}))),Jt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Vt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(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=Dt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return c;let u=c;try{u=Qt(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},qt=(e,t)=>(({locale:e=Vt(),...t}={})=>Wt({locale:e,...t}))(t).format(e),er=(e,t)=>(({locale:e=Vt(),...t}={})=>zt({locale:e,...t}))(t).format(e),tr=(e,t)=>(({locale:e=Vt(),...t}={})=>Zt({locale:e,...t}))(t).format(e),rr=(e,t=Vt())=>At(e,t),nr=x([Xt,St],(()=>Jt));function ir(e,t){It(e,t)}x([Xt],(()=>qt)),x([Xt],(()=>er)),x([Xt],(()=>tr)),x([Xt,St],(()=>rr));const or={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:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},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"}};
574
574
  /* src/CasinoCategories.svelte generated by Svelte v3.58.0 */function sr(e,t,r){const n=e.slice();return n[24]=t[r],n}function ar(e,t,r){const n=e.slice();return n[24]=t[r],n}
575
575
  // (80:2) {:else}
576
- function hr(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[5]("Translations.topCategories")+"",E=/*$_*/e[5]("Translations.otherCategories")+"",T=/*topCategories*/e[3],v=[];for(let t=0;t<T.length;t+=1)v[t]=cr(ar(e,T,t));let H=/*otherCategories*/e[4],_=[];for(let t=0;t<H.length;t+=1)_[t]=ur(sr(e,H,t));return{c(){t=g("div"),r=g("h4"),n=m(l),i=d();for(let e=0;e<v.length;e+=1)v[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<v.length;e+=1)v[e]&&v[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]("Translations.topCategories")+"")&&y(n,l),/*activecategory, topCategories, openGameCategory, $_*/105&r){let n;for(T=/*topCategories*/e[3],n=0;n<T.length;n+=1){const i=ar(e,T,n);v[n]?v[n].p(i,r):(v[n]=cr(i),v[n].c(),v[n].m(t,o))}for(;n<v.length;n+=1)v[n].d(1);v.length=T.length}if(/*$_*/32&r&&E!==(E=/*$_*/e[5]("Translations.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=sr(e,H,n);_[n]?_[n].p(i,r):(_[n]=ur(i),_[n].c(),_[n].m(t,null))}for(;n<_.length;n+=1)_[n].d(1);_.length=H.length}},d(e){e&&f(t),p(v,e),p(_,e)}}}
576
+ 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(ar(e,v,t));let H=/*otherCategories*/e[4],_=[];for(let t=0;t<H.length;t+=1)_[t]=ur(sr(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=ar(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=sr(e,H,n);_[n]?_[n].p(i,r):(_[n]=ur(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)}}}
577
577
  // (78:2) {#if isLoading}
578
578
  function lr(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)}}}
579
579
  // (83:4) {#each topCategories as category}
580
- function cr(e){let t,r,n,i,o,s,a,l,p,T,v,H,_,C,B,A,L=/*category*/e[24].name+"",S=/*category*/e[24].games.count+"",P=/*$_*/e[5]("Translations.games")+"";function N(){/*click_handler*/
581
- 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(),T=g("p"),v=m(S),H=d(),_=m(P),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,T),c(T,v),c(T,H),c(T,_),B||(A=E(t,"click",N),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&&S!==(S=/*category*/e[24].games.count+"")&&y(v,S),/*$_*/32&s&&P!==(P=/*$_*/e[5]("Translations.games")+"")&&y(_,P),/*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()}}}
580
+ function cr(e){let t,r,n,i,o,s,a,l,p,v,T,H,_,C,B,A,L=/*category*/e[24].name+"",S=/*category*/e[24].games.count+"",P=/*$_*/e[5]("games")+"";function N(){/*click_handler*/
581
+ 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(S),H=d(),_=m(P),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",N),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&&S!==(S=/*category*/e[24].games.count+"")&&y(T,S),/*$_*/32&s&&P!==(P=/*$_*/e[5]("games")+"")&&y(_,P),/*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()}}}
582
582
  // (93:4) {#each otherCategories as category}
583
- function ur(e){let t,r,n,i,o,s,a,l,p,T,v,H,_,C,B,A,L,S=/*category*/e[24].name+"",P=/*category*/e[24].games.count+"",N=/*$_*/e[5]("Translations.games")+"";function I(){/*click_handler_1*/
584
- return e[15](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(S),p=d(),T=g("p"),v=m(P),H=d(),_=m(N),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,T),c(T,v),c(T,H),c(T,_),c(t,C),A||(L=E(t,"click",I),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&&S!==(S=/*category*/e[24].name+"")&&y(l,S),/*otherCategories*/16&s&&P!==(P=/*category*/e[24].games.count+"")&&y(v,P),/*$_*/32&s&&N!==(N=/*$_*/e[5]("Translations.games")+"")&&y(_,N),/*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 fr(t){let r;function n(e,t){/*isLoading*/
583
+ function ur(e){let t,r,n,i,o,s,a,l,p,v,T,H,_,C,B,A,L,S=/*category*/e[24].name+"",P=/*category*/e[24].games.count+"",N=/*$_*/e[5]("games")+"";function I(){/*click_handler_1*/
584
+ return e[15](/*category*/e[24])}return{c(){t=g("div"),r=g("img"),o=d(),s=g("div"),a=g("p"),l=m(S),p=d(),v=g("p"),T=m(P),H=d(),_=m(N),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",I),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&&S!==(S=/*category*/e[24].name+"")&&y(l,S),/*otherCategories*/16&s&&P!==(P=/*category*/e[24].games.count+"")&&y(T,P),/*$_*/32&s&&N!==(N=/*$_*/e[5]("games")+"")&&y(_,N),/*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 fr(t){let r;function n(e,t){/*isLoading*/
585
585
  return e[2]?lr: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),
586
586
  /*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(),
587
- /*div_binding*/t[16](null)}}}function pr(e,t,r){let n;var i,o;i=nr,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(or).forEach((e=>{ir(e,or[e])}));const T=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e})},v=()=>{var e;e=c,Xt.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}/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);
587
+ /*div_binding*/t[16](null)}}}function pr(e,t,r){let n;var i,o;i=nr,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(or).forEach((e=>{ir(e,or[e])}));const v=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e})},T=()=>{var e;e=c,Xt.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}/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);
588
588
  // remove those items which have a flag matching the excluded flags
589
- 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=>{ir(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/512&e.$$.dirty&&c&&v(),/*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,T,a,h,c,f,p,g,m,e=>T(e.id),e=>T(e.id),function(e){_[e?"unshift":"push"]((()=>{s=e,r(1,s)}))}]}class gr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=':host{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;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}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px #e4e2e2}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px}.CategoryTextContainer p:first-child{font-weight:600}.CategoryTextContainer p:last-child{color:#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:T(this.attributes),customElement:!0},pr,fr,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),I()))}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}),I()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),I()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),I()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),I()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),I()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),I()}}return!customElements.get("casino-categories")&&customElements.define("casino-categories",gr),gr}));
589
+ 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=>{ir(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 gr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=':host{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;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}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px #e4e2e2}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px}.CategoryTextContainer p:first-child{font-weight:600}.CategoryTextContainer p:last-child{color:#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},pr,fr,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),I()))}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}),I()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),I()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),I()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),I()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),I()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),I()}}return!customElements.get("casino-categories")&&customElements.define("casino-categories",gr),gr}));
590
590
  //# sourceMappingURL=casino-categories.js.map