@everymatrix/casino-collections-providers 1.6.0 → 1.7.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.
@@ -21,25 +21,25 @@ const O=new Set;let I=0;// Do *not* move this inside the flush() function
|
|
21
21
|
function N(){const e=a;do{
|
22
22
|
// first, call beforeUpdate functions
|
23
23
|
// and update components
|
24
|
-
for(;I<A.length;){const e=A[I];I++,T(e),
|
24
|
+
for(;I<A.length;){const e=A[I];I++,T(e),M(e.$$)}for(T(null),A.length=0,I=0;B.length;)B.pop()();
|
25
25
|
// then, once components are updated, call
|
26
26
|
// afterUpdate functions. This may cause
|
27
27
|
// subsequent updates...
|
28
28
|
for(let e=0;e<S.length;e+=1){const t=S[e];O.has(t)||(
|
29
29
|
// ...so guard against infinite loops
|
30
|
-
O.add(t),t())}S.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),T(e)}function
|
30
|
+
O.add(t),t())}S.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),T(e)}function M(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(L)}}const R=new Set;function x(e,t){-1===e.$$.dirty[0]&&(A.push(e),P||(P=!0,C.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(i,s,l,c,u,h,p,d=[-1]){const m=a;T(i);const y=i.$$={fragment:null,ctx:null,
|
31
31
|
// state
|
32
32
|
props:h,update:e,not_equal:u,bound:r(),
|
33
33
|
// lifecycle
|
34
34
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
|
35
35
|
// everything else
|
36
|
-
callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let g=!1;if(y.ctx=l?l(i,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return y.ctx&&u(y.ctx[e],y.ctx[e]=n)&&(!y.skip_bound&&y.bound[e]&&y.bound[e](n),g&&
|
36
|
+
callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let g=!1;if(y.ctx=l?l(i,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return y.ctx&&u(y.ctx[e],y.ctx[e]=n)&&(!y.skip_bound&&y.bound[e]&&y.bound[e](n),g&&x(i,e)),t})):[],y.update(),g=!0,n(y.before_update),
|
37
37
|
// `false` as a special case of no DOM component
|
38
38
|
y.fragment=!!c&&c(y.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
40
40
|
y.fragment&&y.fragment.l(e),e.forEach(f)}else
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
42
|
-
y.fragment&&y.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(
|
42
|
+
y.fragment&&y.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(R.delete(b),b.i(v))),function(e,r,i,s){const{fragment:a,on_mount:l,on_destroy:c,after_update:u}=e.$$;a&&a.m(r,i),s||
|
43
43
|
// onMount happens before the initial afterUpdate
|
44
44
|
L((()=>{const r=l.map(t).filter(o);c?c.push(...r):
|
45
45
|
// Edge case - component was destroyed immediately,
|
@@ -64,13 +64,13 @@ const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{co
|
|
64
64
|
* @param {*=}value initial value
|
65
65
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
66
66
|
*/
|
67
|
-
function
|
68
|
-
const e=!D.length;for(const e of o)e[1](),D.push(e,t);if(e){for(let e=0;e<D.length;e+=2)D[e][0](D[e+1]);D.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(i,a=e){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||e),i(t),()=>{o.delete(l),0===o.size&&(n(),n=null)}}}}function
|
67
|
+
function k(t,r=e){let n;const o=new Set;function s(e){if(i(t,e)&&(t=e,n)){// store is ready
|
68
|
+
const e=!D.length;for(const e of o)e[1](),D.push(e,t);if(e){for(let e=0;e<D.length;e+=2)D[e][0](D[e+1]);D.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(i,a=e){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||e),i(t),()=>{o.delete(l),0===o.size&&(n(),n=null)}}}}function F(t,r,i){const s=!Array.isArray(t),a=s?[t]:t,l=r.length<2;return u=t=>{let i=!1;const u=[];let h=0,f=e;const p=()=>{if(h)return;f();const n=r(s?u[0]:u,t);l?t(n):f=o(n)?n:e},d=a.map(((e,t)=>c(e,(e=>{u[t]=e,h&=~(1<<t),i&&p()}),(()=>{h|=1<<t}))));return i=!0,p(),function(){n(d),f()}},{subscribe:k(i,u).subscribe};var u}var $=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===j}(e)}
|
69
69
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
70
70
|
(e)};var j="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function V(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Z((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function X(e,t,r){return e.concat(t).map((function(e){return V(e,r)}))}function z(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function K(e,t){try{return t in e}catch(e){return!1}}
|
71
71
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
72
72
|
function Y(e,t,r){var n={};return r.isMergeableObject(e)&&z(e).forEach((function(t){n[t]=V(e[t],r)})),z(t).forEach((function(o){(function(e,t){return K(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
73
|
-
})(e,o)||(K(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return Z;var r=t.customMerge(e);return"function"==typeof r?r:Z}(o,r)(e[o],t[o],r):n[o]=V(t[o],r))})),n}function Z(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject
|
73
|
+
})(e,o)||(K(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return Z;var r=t.customMerge(e);return"function"==typeof r?r:Z}(o,r)(e[o],t[o],r):n[o]=V(t[o],r))})),n}function Z(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject||$,
|
74
74
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
75
75
|
// implementations can use it. The caller may not replace it.
|
76
76
|
r.cloneUnlessOtherwiseSpecified=V;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Y(e,t,r):V(t,r)}Z.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Z(e,r,t)}),{})};var W=Z,q=function(e,t){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},q(e,t)};function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Q,ee,te,re=function(){return re=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},re.apply(this,arguments)};function ne(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}
|
@@ -272,20 +272,20 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
272
272
|
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Pe[r||""]||Pe[n||""]||Pe["".concat(n,"-001")]||Pe["001"])[0]}var Oe=new RegExp("^".concat(me.source,"*")),Ie=new RegExp("".concat(me.source,"*$"));function Ne(e,t){return{start:e,end:t}}
|
273
273
|
// #region Ponyfills
|
274
274
|
// Consolidate these variables up top for easier toggling during debugging
|
275
|
-
var
|
275
|
+
var Me=!!String.prototype.startsWith,Re=!!String.fromCodePoint,xe=!!Object.fromEntries,Ue=!!String.prototype.codePointAt,Ge=!!String.prototype.trimStart,De=!!String.prototype.trimEnd,ke=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fe=!0;try{
|
276
276
|
/**
|
277
277
|
* legacy Edge or Xbox One browser
|
278
278
|
* Unicode flag support: supported
|
279
279
|
* Pattern_Syntax support: not supported
|
280
280
|
* See https://github.com/formatjs/formatjs/issues/2822
|
281
281
|
*/
|
282
|
-
|
282
|
+
Fe="a"===(null===(Ce=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ce?void 0:Ce[0])}catch(e){Fe=!1}var $e,je=Me?// Native
|
283
283
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
284
|
-
function(e,t,r){return e.slice(r,r+t.length)===t},Ve=
|
284
|
+
function(e,t,r){return e.slice(r,r+t.length)===t},Ve=Re?String.fromCodePoint:// IE11
|
285
285
|
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Xe=
|
286
286
|
// native
|
287
|
-
|
288
|
-
function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],s=o[1];t[i]=s}return t},ze=
|
287
|
+
xe?Object.fromEntries:// Ponyfill
|
288
|
+
function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],s=o[1];t[i]=s}return t},ze=Ue?// Native
|
289
289
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
290
290
|
function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Ke=Ge?// Native
|
291
291
|
function(e){return e.trimStart()}:// Ponyfill
|
@@ -295,11 +295,11 @@ function(e){return e.replace(Ie,"")};
|
|
295
295
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
296
296
|
function Ze(e,t){return new RegExp(e,t)}
|
297
297
|
// #endregion
|
298
|
-
if(
|
298
|
+
if(Fe){
|
299
299
|
// Native
|
300
|
-
var We=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu")
|
300
|
+
var We=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var r;return We.lastIndex=t,null!==(r=We.exec(e)[1])&&void 0!==r?r:""}}else
|
301
301
|
// IE11
|
302
|
-
|
302
|
+
$e=function(e,t){for(var r=[];;){var n=ze(e,t);if(void 0===n||et(n)||tt(n))break;r.push(n),t+=n>=65536?2:1}return Ve.apply(void 0,r)};var qe=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&e>0)break;if(35/* `#` */!==o||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Q.UNMATCHED_CLOSING_TAG,Ne(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Je(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ee.pound,location:Ne(s,this.clonePosition())})}}}return{val:n,err:null}},
|
303
303
|
/**
|
304
304
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
305
305
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
@@ -366,7 +366,7 @@ this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(r,th
|
|
366
366
|
* Advance the parser until the end of the identifier, if it is currently on
|
367
367
|
* an identifier character. Return an empty string otherwise.
|
368
368
|
*/
|
369
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r
|
369
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$e(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Ne(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
370
370
|
// Parse this range:
|
371
371
|
// {name, type, style}
|
372
372
|
// ^---^
|
@@ -437,7 +437,7 @@ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.err
|
|
437
437
|
// Keep track of the existing selectors
|
438
438
|
a.add(l),
|
439
439
|
// Prep next selector clause.
|
440
|
-
this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ne(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Q.MISSING_OTHER_CLAUSE,Ne(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Ne(n,this.clonePosition());return o?
|
440
|
+
this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ne(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Q.MISSING_OTHER_CLAUSE,Ne(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Ne(n,this.clonePosition());return o?ke(i*=r)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
441
441
|
// This is much faster than `Object.assign` or spread.
|
442
442
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
443
443
|
/**
|
@@ -553,7 +553,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
553
553
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
554
554
|
Copyrights licensed under the New BSD License.
|
555
555
|
See the accompanying LICENSE file for terms.
|
556
|
-
*/const Bt={},St=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,Ht=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Xt(t);for(let n=0;n<r.length;n++){const o=Ot(r[n],e);if(o)return St(e,t,o)}};let Ct;const Pt=
|
556
|
+
*/const Bt={},St=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,Ht=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Xt(t);for(let n=0;n<r.length;n++){const o=Ot(r[n],e);if(o)return St(e,t,o)}};let Ct;const Pt=k({});function Lt(e){return e in Ct}function Ot(e,t){if(!Lt(e))return null;const r=function(e){return Ct[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 Bt[e],Pt.update((r=>(r[e]=W.all([r[e]||{},...t]),r)))}F([Pt],(([e])=>Object.keys(e))),Pt.subscribe((e=>Ct=e));const Nt={};function Mt(e){return Nt[e]}function Rt(e){return null!=e&&Xt(e).some((e=>{var t;return null===(t=Mt(e))||void 0===t?void 0:t.size}))}const xt={};function Ut(e){if(!Rt(e))return e in xt?xt[e]:Promise.resolve();const t=function(e){return Xt(e).map((e=>{const t=Mt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return xt[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){Nt[e].delete(t),0===Nt[e].size&&delete Nt[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 xt[e]})),xt[e]}
|
557
557
|
/*! *****************************************************************************
|
558
558
|
Copyright (c) Microsoft Corporation.
|
559
559
|
|
@@ -567,7 +567,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
567
567
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
568
568
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
569
569
|
PERFORMANCE OF THIS SOFTWARE.
|
570
|
-
***************************************************************************** */function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Dt={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
|
570
|
+
***************************************************************************** */function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Dt={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 kt(){return Dt}const Ft=k(!1);let $t;const jt=k(null);function Vt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Xt(e,t=kt().fallbackLocale){const r=Vt(e);return t?[...new Set([...r,...Vt(t)])]:r}function zt(){return null!=$t?$t:void 0}jt.subscribe((e=>{$t=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Kt=Object.assign(Object.assign({},jt),{set:e=>{if(e&&function(e){if(null==e)return;const t=Xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=kt();let r;return"undefined"!=typeof window&&null!=zt()&&t?r=window.setTimeout((()=>Ft.set(!0)),t):Ft.set(!0),Ut(e).then((()=>{jt.set(e)})).finally((()=>{clearTimeout(r),Ft.set(!1)}))}return jt.set(e)}}),Yt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Zt=(e,t)=>{const{formats:r}=kt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Wt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Zt("number",r)),new Intl.NumberFormat(t,n)})),qt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Zt("date",r):0===Object.keys(n).length&&(n=Zt("date","short")),new Intl.DateTimeFormat(t,n)})),Jt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Zt("time",r):0===Object.keys(n).length&&(n=Zt("time","short")),new Intl.DateTimeFormat(t,n)})),Qt=Yt(((e,t=zt())=>new At(e,t,kt().formats,{ignoreTag:kt().ignoreTag}))),er=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=zt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ht(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(i=null!==(o=null===(n=(r=kt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))&&void 0!==o?o:c)&&void 0!==i?i:e;if(!a)return u;let h=u;try{h=Qt(u,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},tr=(e,t)=>((e={})=>{var{locale:t=zt()}=e,r=Gt(e,["locale"]);return Jt(Object.assign({locale:t},r))})(t).format(e),rr=(e,t)=>((e={})=>{var{locale:t=zt()}=e,r=Gt(e,["locale"]);return qt(Object.assign({locale:t},r))})(t).format(e),nr=(e,t)=>((e={})=>{var{locale:t=zt()}=e,r=Gt(e,["locale"]);return Wt(Object.assign({locale:t},r))})(t).format(e),or=(e,t=zt())=>Ht(e,t),ir=F([Kt,Pt],(()=>er));function sr(e,t){It(e,t)}F([Kt],(()=>tr)),F([Kt],(()=>rr)),F([Kt],(()=>nr)),F([Kt,Pt],(()=>or));const ar={en:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},"zh-hk":{Translations:{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."}},de:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."}},it:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},fr:{Translations:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."}},es:{Translations:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"}},el:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."}},tr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Yükleniyor, lütfen bekleyin..."}},ru:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},ro:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Se încarcă, asteptati ..."}},hr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},hu:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."}},pl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},pt:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."}},sl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},sr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}}};var lr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==lr&&lr,cr="URLSearchParams"in lr,ur="Symbol"in lr&&"iterator"in Symbol,hr="FileReader"in lr&&"Blob"in lr&&function(){try{return new Blob,!0}catch(e){return!1}}(),fr="FormData"in lr,pr="ArrayBuffer"in lr;if(pr)var dr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],mr=ArrayBuffer.isView||function(e){return e&&dr.indexOf(Object.prototype.toString.call(e))>-1};function yr(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function gr(e){return"string"!=typeof e&&(e=String(e)),e}
|
571
571
|
// Build a destructive iterator for the value list
|
572
572
|
function br(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ur&&(t[Symbol.iterator]=function(){return t}),t}function vr(e){this.map={},e instanceof vr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Er(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function _r(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Tr(e){var t=new FileReader,r=_r(t);return t.readAsArrayBuffer(e),r}function wr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ar(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
573
573
|
/*
|
@@ -614,30 +614,30 @@ self.fetch.bind(self);
|
|
614
614
|
PERFORMANCE OF THIS SOFTWARE.
|
615
615
|
***************************************************************************** */
|
616
616
|
/* global Reflect, Promise */
|
617
|
-
var Ir=function(e,t){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ir(e,t)};function Nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ir(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Rr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ur(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function xr(e){return"function"==typeof e}function Gr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Dr=Gr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Fr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var $r=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Rr(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(xr(l))try{l()}catch(e){o=e instanceof Dr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Rr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{Vr(f)}catch(e){o=null!=o?o:[],e instanceof Dr?o=Ur(Ur([],Mr(o)),Mr(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Dr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Vr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Fr(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&Fr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),kr=$r.EMPTY;function jr(e){return e instanceof $r||e&&"closed"in e&&xr(e.remove)&&xr(e.add)&&xr(e.unsubscribe)}function Vr(e){xr(e)?e():e.unsubscribe()}var Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=zr.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,Ur([e,t],Mr(r))):setTimeout.apply(void 0,Ur([e,t],Mr(r)))},clearTimeout:function(e){var t=zr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Kr(){}var Yr=null;function Zr(e){if(Xr.useDeprecatedSynchronousErrorHandling){var t=!Yr;if(t&&(Yr={errorThrown:!1,error:null}),e(),t){var r=Yr,n=r.errorThrown,o=r.error;if(Yr=null,n)throw o}}else e()}var Wr=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,jr(t)&&t.add(r)):r.destination=rn,r}return Nr(t,e),t.create=function(e,t,r){return new en(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($r),qr=Function.prototype.bind;function Jr(e,t){return qr.call(e,t)}var Qr=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){tn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){tn(e)}else tn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){tn(e)}},e}(),en=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;xr(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Xr.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Jr(t.next,i),error:t.error&&Jr(t.error,i),complete:t.complete&&Jr(t.complete,i)}):o=t;return s.destination=new Qr(o),s}return Nr(t,e),t}(Wr);function tn(e){var t;t=e,zr.setTimeout((function(){throw t}))}var rn={closed:!0,next:Kr,error:function(e){throw e},complete:Kr},nn="function"==typeof Symbol&&Symbol.observable||"@@observable";function on(e){return e}function sn(e){return 0===e.length?on:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var an=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Wr||function(e){return e&&xr(e.next)&&xr(e.error)&&xr(e.complete)}(n)&&jr(n)?e:new en(e,t,r);return Zr((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ln(t))((function(t,n){var o=new en({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[nn]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sn(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ln(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function ln(e){var t;return null!==(t=null!=e?e:Xr.Promise)&&void 0!==t?t:Promise}var cn=Gr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),un=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Nr(t,e),t.prototype.lift=function(e){var t=new hn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new cn},t.prototype.next=function(e){var t=this;Zr((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Rr(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Zr((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Zr((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?kr:(this.currentObservers=null,i.push(e),new $r((function(){t.currentObservers=null,Fr(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new an;return e.source=this,e},t.create=function(e,t){return new hn(e,t)},t}(an),hn=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return Nr(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:kr},t}(un),fn={now:function(){return(fn.delegate||Date).now()},delegate:void 0},pn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=fn);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return Nr(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(un);let dn=[],mn={};window.emWidgets={topic:(e,t=0)=>{if(-1==dn.indexOf(e)){let r=new pn(t);mn[e]=r,dn.push(e)}return mn[e]}};
|
617
|
+
var Ir=function(e,t){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ir(e,t)};function Nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ir(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Mr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function xr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Ur(e){return"function"==typeof e}function Gr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Dr=Gr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function kr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fr=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Mr(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(Ur(l))try{l()}catch(e){o=e instanceof Dr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Mr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{Vr(f)}catch(e){o=null!=o?o:[],e instanceof Dr?o=xr(xr([],Rr(o)),Rr(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Dr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Vr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&kr(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&kr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),$r=Fr.EMPTY;function jr(e){return e instanceof Fr||e&&"closed"in e&&Ur(e.remove)&&Ur(e.add)&&Ur(e.unsubscribe)}function Vr(e){Ur(e)?e():e.unsubscribe()}var Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=zr.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,xr([e,t],Rr(r))):setTimeout.apply(void 0,xr([e,t],Rr(r)))},clearTimeout:function(e){var t=zr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Kr(){}var Yr=null;function Zr(e){if(Xr.useDeprecatedSynchronousErrorHandling){var t=!Yr;if(t&&(Yr={errorThrown:!1,error:null}),e(),t){var r=Yr,n=r.errorThrown,o=r.error;if(Yr=null,n)throw o}}else e()}var Wr=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,jr(t)&&t.add(r)):r.destination=rn,r}return Nr(t,e),t.create=function(e,t,r){return new en(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fr),qr=Function.prototype.bind;function Jr(e,t){return qr.call(e,t)}var Qr=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){tn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){tn(e)}else tn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){tn(e)}},e}(),en=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;Ur(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Xr.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Jr(t.next,i),error:t.error&&Jr(t.error,i),complete:t.complete&&Jr(t.complete,i)}):o=t;return s.destination=new Qr(o),s}return Nr(t,e),t}(Wr);function tn(e){var t;t=e,zr.setTimeout((function(){throw t}))}var rn={closed:!0,next:Kr,error:function(e){throw e},complete:Kr},nn="function"==typeof Symbol&&Symbol.observable||"@@observable";function on(e){return e}function sn(e){return 0===e.length?on:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var an=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Wr||function(e){return e&&Ur(e.next)&&Ur(e.error)&&Ur(e.complete)}(n)&&jr(n)?e:new en(e,t,r);return Zr((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ln(t))((function(t,n){var o=new en({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[nn]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sn(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ln(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function ln(e){var t;return null!==(t=null!=e?e:Xr.Promise)&&void 0!==t?t:Promise}var cn=Gr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),un=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Nr(t,e),t.prototype.lift=function(e){var t=new hn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new cn},t.prototype.next=function(e){var t=this;Zr((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Mr(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Zr((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Zr((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?$r:(this.currentObservers=null,i.push(e),new Fr((function(){t.currentObservers=null,kr(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new an;return e.source=this,e},t.create=function(e,t){return new hn(e,t)},t}(an),hn=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return Nr(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:$r},t}(un),fn={now:function(){return(fn.delegate||Date).now()},delegate:void 0},pn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=fn);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return Nr(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(un);let dn=[],mn={};window.emWidgets={topic:(e,t=0)=>{if(-1==dn.indexOf(e)){let r=new pn(t);mn[e]=r,dn.push(e)}return mn[e]}};
|
618
618
|
/* src/CasinoCollectionsProviders.svelte generated by Svelte v3.48.0 */
|
619
|
-
function yn(e,t,r){const n=e.slice();return n[
|
620
|
-
// (
|
619
|
+
function yn(e,t,r){const n=e.slice();return n[39]=t[r],n}function gn(e,t,r){const n=e.slice();return n[42]=t[r],n}
|
620
|
+
// (156:4) {:else}
|
621
621
|
function bn(e){let t,r,o,i,s,a,l,c,E,_,T,w,A,B,S=/*type*/("vendor"==e[0]?/*$_*/e[8]("Translations.providers"):/*$_*/e[8]("Translations.collections"))+"",H=/*gameCategories*/e[3],C=[];for(let t=0;t<H.length;t+=1)C[t]=An(yn(e,H,t));return{c(){t=d("div"),r=d("div"),o=d("p"),i=m(S),s=y(),a=d("div"),l=d("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',c=y(),E=d("button"),E.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',_=y(),T=d("div");for(let e=0;e<C.length;e+=1)C[e].c();b(o,"class","Title"),b(a,"class","ButtonsContainer"),b(r,"class","CategoriesHeader"),b(T,"class","CategoriesSlider"),b(t,"class",w="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))},m(n,f){h(n,t,f),u(t,r),u(r,o),u(o,i),u(r,s),u(r,a),u(a,l),u(a,c),u(a,E),u(t,_),u(t,T);for(let e=0;e<C.length;e+=1)C[e].m(T,null);
|
622
622
|
/*div2_binding*/e[23](T),A||(B=[g(l,"click",/*click_handler*/e[19]),g(E,"click",/*click_handler_1*/e[20])],A=!0)},p(e,r){if(/*type, $_*/257&r[0]&&S!==(S=/*type*/("vendor"==e[0]?/*$_*/e[8]("Translations.providers"):/*$_*/e[8]("Translations.collections"))+"")&&v(i,S),/*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/6158&r[0]){let t;for(H=/*gameCategories*/e[3],t=0;t<H.length;t+=1){const n=yn(e,H,t);C[t]?C[t].p(n,r):(C[t]=An(n),C[t].c(),C[t].m(T,null))}for(;t<C.length;t+=1)C[t].d(1);C.length=H.length}/*mobile*/128&r[0]&&w!==(w="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))&&b(t,"class",w)},d(r){r&&f(t),p(C,r),
|
623
623
|
/*div2_binding*/e[23](null),A=!1,n(B)}}}
|
624
|
-
// (
|
624
|
+
// (154:4) {#if isLoading}
|
625
625
|
function vn(e){let t,r,n=/*$_*/e[8]("Translations.loading")+"";return{c(){t=d("p"),r=m(n)},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*$_*/256&t[0]&&n!==(n=/*$_*/e[8]("Translations.loading")+"")&&v(r,n)},d(e){e&&f(t)}}}
|
626
|
-
// (
|
627
|
-
function En(e){let t,r,n=/*category*/e[
|
628
|
-
// (
|
629
|
-
function _n(e){let t,r,n;return{c(){t=d("img"),b(t,"class","CategorySlideLogo"),l(t.src,r=/*category*/e[
|
630
|
-
// (
|
631
|
-
function Tn(e){let t,r,n,o=/*game*/e[
|
632
|
-
// (
|
626
|
+
// (181:47)
|
627
|
+
function En(e){let t,r,n=/*category*/e[39].name+"";return{c(){t=d("p"),r=m(n),b(t,"class","CategorySlideTitle")},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*gameCategories*/8&t[0]&&n!==(n=/*category*/e[39].name+"")&&v(r,n)},d(e){e&&f(t)}}}
|
628
|
+
// (179:16) {#if titletype == 'logo'}
|
629
|
+
function _n(e){let t,r,n;return{c(){t=d("img"),b(t,"class","CategorySlideLogo"),l(t.src,r=/*category*/e[39].icon)||b(t,"src",r),b(t,"alt",n=/*category*/e[39].name+" icon")},m(e,r){h(e,t,r)},p(e,o){/*gameCategories*/8&o[0]&&!l(t.src,r=/*category*/e[39].icon)&&b(t,"src",r),/*gameCategories*/8&o[0]&&n!==(n=/*category*/e[39].name+" icon")&&b(t,"alt",n)},d(e){e&&f(t)}}}
|
630
|
+
// (189:18) {#if collectionprovidersgamenames == 'true'}
|
631
|
+
function Tn(e){let t,r,n,o=/*game*/e[42].name+"";return{c(){t=d("p"),r=m(o),b(t,"title",n=/*game*/e[42].name)},m(e,n){h(e,t,n),u(t,r)},p(e,i){/*gameCategories*/8&i[0]&&o!==(o=/*game*/e[42].name+"")&&v(r,o),/*gameCategories*/8&i[0]&&n!==(n=/*game*/e[42].name)&&b(t,"title",n)},d(e){e&&f(t)}}}
|
632
|
+
// (186:16) {#each category.games as game}
|
633
633
|
function wn(e){let t,r,n,o,i,s,a,c;function p(){/*click_handler_2*/
|
634
|
-
return e[21](/*game*/e[
|
634
|
+
return e[21](/*game*/e[42])}let m=/*collectionprovidersgamenames*/"true"==e[2]&&Tn(e);return{c(){t=d("div"),r=d("img"),i=y(),m&&m.c(),s=y(),b(r,"class","CategorySlideGameImage"),l(r.src,n=/*game*/e[42].defaultThumbnail)||b(r,"src",n),b(r,"alt",o=/*game*/e[42].name),b(t,"class","CategorySlideGames")},m(e,n){var o;h(e,t,n),u(t,r),u(t,i),m&&m.m(t,null),u(t,s),a||(c=g(r,"click",(o=p,function(e){
|
635
635
|
// @ts-ignore
|
636
|
-
return e.stopPropagation(),o.call(this,e)})),a=!0)},p(i,a){e=i,/*gameCategories*/8&a[0]&&!l(r.src,n=/*game*/e[
|
637
|
-
// (
|
636
|
+
return e.stopPropagation(),o.call(this,e)})),a=!0)},p(i,a){e=i,/*gameCategories*/8&a[0]&&!l(r.src,n=/*game*/e[42].defaultThumbnail)&&b(r,"src",n),/*gameCategories*/8&a[0]&&o!==(o=/*game*/e[42].name)&&b(r,"alt",o),/*collectionprovidersgamenames*/"true"==e[2]?m?m.p(e,a):(m=Tn(e),m.c(),m.m(t,s)):m&&(m.d(1),m=null)},d(e){e&&f(t),m&&m.d(),a=!1,c()}}}
|
637
|
+
// (175:10) {#each gameCategories as category}
|
638
638
|
function An(e){let t,r,n,o,i,s,a,l,c;function m(e,t){/*titletype*/
|
639
|
-
return"logo"==e[1]?_n:/*titletype*/"title"==e[1]?En:void 0}let v=m(e),_=v&&v(e),T=/*category*/e[
|
640
|
-
return e[22](/*category*/e[
|
639
|
+
return"logo"==e[1]?_n:/*titletype*/"title"==e[1]?En:void 0}let v=m(e),_=v&&v(e),T=/*category*/e[39].games,w=[];for(let t=0;t<T.length;t+=1)w[t]=wn(gn(e,T,t));function A(){/*click_handler_3*/
|
640
|
+
return e[22](/*category*/e[39])}return{c(){t=d("div"),r=d("div"),n=d("div"),_&&_.c(),o=y(),i=d("div");for(let e=0;e<w.length;e+=1)w[e].c();a=y(),b(n,"class","CategorySlideTopContainer"),b(i,"class","CategorySlideGameContainer"),b(r,"class",s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":"")),E(r,"background-image","url("+/*category*/e[39]?.background+")"),b(t,"class","CategoriesSliderWrapper Animation")},m(e,s){h(e,t,s),u(t,r),u(r,n),_&&_.m(n,null),u(r,o),u(r,i);for(let e=0;e<w.length;e+=1)w[e].m(i,null);u(t,a),l||(c=g(r,"click",A),l=!0)},p(t,o){if(v===(v=m(e=t))&&_?_.p(e,o):(_&&_.d(1),_=v&&v(e),_&&(_.c(),_.m(n,null))),/*gameCategories, collectionprovidersgamenames, openGame*/2060&o[0]){let t;for(T=/*category*/e[39].games,t=0;t<T.length;t+=1){const r=gn(e,T,t);w[t]?w[t].p(r,o):(w[t]=wn(r),w[t].c(),w[t].m(i,null))}for(;t<w.length;t+=1)w[t].d(1);w.length=T.length}/*gameCategories*/8&o[0]&&s!==(s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":""))&&b(r,"class",s),/*gameCategories*/8&o[0]&&E(r,"background-image","url("+/*category*/e[39]?.background+")")},d(e){e&&f(t),_&&_.d(),p(w,e),l=!1,c()}}}function Bn(t){let r;function n(e,t){/*isLoading*/
|
641
641
|
return e[6]?vn:bn}let o=n(t),i=o(t);return{c(){r=d("div"),i.c(),this.c=e},m(e,n){h(e,r,n),i.m(r,null),
|
642
642
|
/*div_binding*/t[24](r)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r,null)))},i:e,o:e,d(e){e&&f(r),i.d(),
|
643
643
|
/*div_binding*/t[24](null)}}}function Sn(e,t,r){let n;var o,i;o=ir,i=e=>r(8,n=e),e.$$.on_destroy.push(c(o,i));let s,a,l,u,h,{endpoint:f=""}=t,{datasource:p=""}=t,{lang:d=""}=t,{type:m=""}=t,{titletype:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:b=""}=t,{translationurl:v=""}=t,{collectionprovidersgamenames:E=""}=t,_=[],T=!0,A=0,S=0,H=0,C=window.navigator.userAgent;Object.keys(ar).forEach((e=>{sr(e,ar[e])}));const P=e=>{
|
@@ -648,9 +648,9 @@ l.forEach(((t,r)=>{t.style.transform=`translateX(${100*(e?r-e:r)}%)`})),l.map((e
|
|
648
648
|
//needed for finding the beginning and end of the slider
|
649
649
|
H=Math.round(s.offsetWidth/a)},O=()=>{
|
650
650
|
//in order to go to a specific slide, position all the slides relative to one of them, one which is determined by sliderScrollLeft and sliderScrollRight
|
651
|
-
P(A)},I=()=>{H>=S||(0===A?A=S-H:A-H<-1?A=0:A--,O())},N=()=>{H>=S||(A===S-H?A=0:S-H<A+1?A=S-H:A++,O())},
|
651
|
+
P(A)},I=()=>{H>=S||(0===A?A=S-H:A-H<-1?A=0:A--,O())},N=()=>{H>=S||(A===S-H?A=0:S-H<A+1?A=S-H:A++,O())},M=(e,t,r)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:e,launchUrl:t,gameName:r},window.location.href),
|
652
652
|
//Analytics event
|
653
|
-
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},
|
653
|
+
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},R=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},x=()=>{var e;e=d,Kt.set(e)};w((()=>{r(7,h=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(C))}));return e.$$set=e=>{"endpoint"in e&&r(13,f=e.endpoint),"datasource"in e&&r(14,p=e.datasource),"lang"in e&&r(15,d=e.lang),"type"in e&&r(0,m=e.type),"titletype"in e&&r(1,y=e.titletype),"clientstyling"in e&&r(16,g=e.clientstyling),"clientstylingurl"in e&&r(17,b=e.clientstylingurl),"translationurl"in e&&r(18,v=e.translationurl),"collectionprovidersgamenames"in e&&r(2,E=e.collectionprovidersgamenames)},e.$$.update=()=>{/*endpoint, datasource, lang*/57344&e.$$.dirty[0]&&f&&p&&d&&(()=>{const e=new URL(`${f}/v2/casino/groups/${p}`);e.searchParams.append("language",d),e.searchParams.append("expand","games"),fetch(e.href).then((e=>e.json())).then((e=>{r(6,T=!1);let t=e.items.filter((e=>e.flags==m));r(3,_=t.map((e=>{var t,r,n;return{id:e.id,name:e.name,icon:e.icon?e.icon:null===(n=null===(r=null===(t=e.vendors)||void 0===t?void 0:t.items[0])||void 0===r?void 0:r.subVendors[0])||void 0===n?void 0:n.logo,games:e.games.items.slice(0,4).map((e=>e)),background:e.background,flag:e.flags}}))),S=_.length}))})(),/*gameCategories, categoriesSlider*/24&e.$$.dirty[0]&&
|
654
654
|
//making sure we have something to position, before trying to
|
655
|
-
_&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&
|
655
|
+
_&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&x(),/*clientstyling, customStylingContainer*/65568&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/131104&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{sr(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,T,h,n,I,N,M,R,f,p,d,g,b,v,()=>I(),()=>N(),e=>M(e.gameId,e.launchUrl,e.name),e=>R(e.id),function(e){B[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){B[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class Hn extends G{constructor(e){super(),this.shadowRoot.innerHTML='<style>: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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-color-white, #FFFFFF);font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}</style>',U(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Sn,Bn,i,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",Hn),Hn}));
|
656
656
|
//# sourceMappingURL=casino-collections-providers.js.map
|