@everymatrix/casino-my-games 1.10.1 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-my-games.js +358 -360
- package/dist/casino-my-games.js.map +1 -1
- package/package.json +2 -2
package/dist/casino-my-games.js
CHANGED
|
@@ -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 n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,o;function l(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(c(t,n))}function d(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function f(e){return document.createElement(e)}function g(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function b(){return y("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function
|
|
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 n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,o;function l(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(c(t,n))}function d(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function f(e){return document.createElement(e)}function g(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function b(){return y("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function x(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function _(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:x(e,t,n)}function S(e,t){t=""+t,e.data!==t&&(e.data=t)}class ${constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=g(t.nodeName):this.e=f(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)h(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(m)}}function C(e){const t={};for(const n of e)t[n.name]=n.value;return t}function T(e){o=e}
|
|
2
2
|
/**
|
|
3
3
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
4
4
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
10
10
|
*/
|
|
11
|
-
function E(e){(function(){if(!o)throw new Error("Function called outside component initialization");return o})().$$.on_mount.push(e)}const M=[],
|
|
11
|
+
function E(e){(function(){if(!o)throw new Error("Function called outside component initialization");return o})().$$.on_mount.push(e)}const M=[],k=[];let F=[];const L=[],G=Promise.resolve();let P=!1;function I(){P||(P=!0,G.then(R))}function A(){return I(),G}function D(e){F.push(e)}
|
|
12
12
|
// flush() calls callbacks in this order:
|
|
13
13
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
14
14
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -27,58 +27,58 @@ function E(e){(function(){if(!o)throw new Error("Function called outside compone
|
|
|
27
27
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
|
28
28
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
29
29
|
// function, guarantees this behavior.
|
|
30
|
-
const
|
|
31
|
-
function
|
|
30
|
+
const O=new Set;let N=0;// Do *not* move this inside the flush() function
|
|
31
|
+
function R(){
|
|
32
32
|
// Do not reenter flush while dirty components are updated, as this can
|
|
33
33
|
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
34
34
|
// Reentrancy is ok afterwards for bindings etc.
|
|
35
|
-
if(0!==
|
|
35
|
+
if(0!==N)return;const e=o;do{
|
|
36
36
|
// first, call beforeUpdate functions
|
|
37
37
|
// and update components
|
|
38
|
-
try{for(;
|
|
38
|
+
try{for(;N<M.length;){const e=M[N];N++,T(e),H(e.$$)}}catch(e){
|
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
40
|
-
throw M.length=0,
|
|
40
|
+
throw M.length=0,N=0,e}for(T(null),M.length=0,N=0;k.length;)k.pop()();
|
|
41
41
|
// then, once components are updated, call
|
|
42
42
|
// afterUpdate functions. This may cause
|
|
43
43
|
// subsequent updates...
|
|
44
|
-
for(let e=0;e<
|
|
44
|
+
for(let e=0;e<F.length;e+=1){const t=F[e];O.has(t)||(
|
|
45
45
|
// ...so guard against infinite loops
|
|
46
|
-
|
|
46
|
+
O.add(t),t())}F.length=0}while(M.length);for(;L.length;)L.pop()();P=!1,O.clear(),T(e)}function H(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(D)}}
|
|
47
47
|
/**
|
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
49
|
-
*/const
|
|
49
|
+
*/const B=new Set;function U(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];F.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),F=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
50
50
|
// TODO null out other refs, including component.$$ (but need to
|
|
51
51
|
// preserve final state?)
|
|
52
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}function
|
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function Y(a,s,l,c,u,d,h,p=[-1]){const f=o;T(a);const g=a.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
54
|
props:d,update:e,not_equal:u,bound:n(),
|
|
55
55
|
// lifecycle
|
|
56
56
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(f?f.$$.context:[])),
|
|
57
57
|
// everything else
|
|
58
|
-
callbacks:n(),dirty:p,skip_bound:!1,root:s.target||f.$$.root};h&&h(g.root);let y=!1;if(g.ctx=l?l(a,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&u(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&function(e,t){-1===e.$$.dirty[0]&&(M.push(e),
|
|
58
|
+
callbacks:n(),dirty:p,skip_bound:!1,root:s.target||f.$$.root};h&&h(g.root);let y=!1;if(g.ctx=l?l(a,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&u(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&function(e,t){-1===e.$$.dirty[0]&&(M.push(e),I(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(a,e)),t})):[],g.update(),y=!0,r(g.before_update),
|
|
59
59
|
// `false` as a special case of no DOM component
|
|
60
60
|
g.fragment=!!c&&c(g.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
61
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
62
|
g.fragment&&g.fragment.l(e),e.forEach(m)}else
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
g.fragment&&g.fragment.c();s.intro&&((v=a.$$.fragment)&&v.i&&(
|
|
64
|
+
g.fragment&&g.fragment.c();s.intro&&((v=a.$$.fragment)&&v.i&&(B.delete(v),v.i(b))),function(e,n,a,s){const{fragment:o,after_update:l}=e.$$;o&&o.m(n,a),s||
|
|
65
65
|
// onMount happens before the initial afterUpdate
|
|
66
|
-
|
|
66
|
+
D((()=>{const n=e.$$.on_mount.map(t).filter(i);
|
|
67
67
|
// if the component was destroyed immediately
|
|
68
68
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
69
69
|
// the destructured on_destroy may still reference to the old array
|
|
70
70
|
e.$$.on_destroy?e.$$.on_destroy.push(...n):
|
|
71
71
|
// Edge case - component was destroyed immediately,
|
|
72
72
|
// most likely as a result of a binding initialising
|
|
73
|
-
r(n),e.$$.on_mount=[]})),l.forEach(
|
|
73
|
+
r(n),e.$$.on_mount=[]})),l.forEach(D)}(a,s.target,s.anchor,s.customElement),R()}var v,b;T(f)}let z;"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
|
74
74
|
// @ts-ignore todo: improve typings
|
|
75
75
|
for(const e in this.$$.slotted)
|
|
76
76
|
// @ts-ignore todo: improve typings
|
|
77
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){
|
|
77
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){U(this,1),this.$destroy=e}$on(t,n){
|
|
78
78
|
// TODO should this delegate to addEventListener?
|
|
79
|
-
if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var
|
|
79
|
+
if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var j="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==j&&j,V={searchParams:"URLSearchParams"in j,iterable:"Symbol"in j&&"iterator"in Symbol,blob:"FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in j,arrayBuffer:"ArrayBuffer"in j};if(V.arrayBuffer)var W=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Z=ArrayBuffer.isView||function(e){return e&&W.indexOf(Object.prototype.toString.call(e))>-1};function K(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 X(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
80
80
|
// Build a destructive iterator for the value list
|
|
81
|
-
function
|
|
81
|
+
function q(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return V.iterable&&(t[Symbol.iterator]=function(){return t}),t}function J(e){this.map={},e instanceof J?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 Q(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ee(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function te(e){var t=new FileReader,n=ee(t);return t.readAsArrayBuffer(e),n}function ne(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function re(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
82
82
|
/*
|
|
83
83
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
84
84
|
provide useful test harness features such as flush. However, on
|
|
@@ -89,21 +89,21 @@ function J(e){var t={next:function(){var t=e.shift();return{done:void 0===t,valu
|
|
|
89
89
|
semantic of setting Request.bodyUsed in the constructor before
|
|
90
90
|
_initBody is called.
|
|
91
91
|
*/
|
|
92
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:
|
|
92
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:V.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:V.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:V.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():V.arrayBuffer&&V.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ne(e.buffer),
|
|
93
93
|
// IE 10-11 can't handle a DataView body.
|
|
94
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
|
94
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):V.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Z(e))?this._bodyArrayBuffer=ne(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):V.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},V.blob&&(this.blob=function(){var e=Q(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Q(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(te)}),this.text=function(){var e,t,n,r=Q(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=ee(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},V.formData&&(this.formData=function(){return this.text().then(se)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
95
95
|
// HTTP methods whose capitalization should be normalized
|
|
96
|
-
|
|
96
|
+
J.prototype.append=function(e,t){e=K(e),t=X(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},J.prototype.delete=function(e){delete this.map[K(e)]},J.prototype.get=function(e){return e=K(e),this.has(e)?this.map[e]:null},J.prototype.has=function(e){return this.map.hasOwnProperty(K(e))},J.prototype.set=function(e,t){this.map[K(e)]=X(t)},J.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},J.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),q(e)},J.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),q(e)},J.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),q(e)},V.iterable&&(J.prototype[Symbol.iterator]=J.prototype.entries);var ie=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ae(e,t){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new J(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new J(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),ie.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
|
97
97
|
// Search for a '_' parameter in the query string
|
|
98
98
|
var a=/([?&])_=[^&]*/;if(a.test(this.url))
|
|
99
99
|
// If it already exists then set the value with the current time
|
|
100
|
-
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
|
100
|
+
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function se(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function oe(e,t){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new J(t.headers),this.url=t.url||"",this._initBody(e)}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})},re.call(ae.prototype),re.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new J(this.headers),url:this.url})},oe.error=function(){var e=new oe(null,{status:0,statusText:""});return e.type="error",e};var le=[301,302,303,307,308];oe.redirect=function(e,t){if(-1===le.indexOf(t))throw new RangeError("Invalid status code");return new oe(null,{status:t,headers:{location:e}})};var ce=j.DOMException;try{new ce}catch(e){(ce=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),ce.prototype.constructor=ce}function ue(e,t){return new Promise((function(n,r){var i=new ae(e,t);if(i.signal&&i.signal.aborted)return r(new ce("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new J,
|
|
101
101
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
102
102
|
// https://github.com/github/fetch/issues/748
|
|
103
103
|
// https://github.com/zloirock/core-js/issues/751
|
|
104
|
-
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new
|
|
104
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new oe(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new ce("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&j.location.href?j.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(V.blob?a.responseType="blob":V.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof J?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,X(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){
|
|
105
105
|
// DONE (success or failure)
|
|
106
|
-
4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
|
106
|
+
4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}ue.polyfill=!0,j.fetch||(j.fetch=ue,j.Headers=J,j.Request=ae,j.Response=oe);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function de(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
107
107
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
108
108
|
// on the global object (window or self)
|
|
109
109
|
|
|
@@ -124,7 +124,7 @@ self.fetch.bind(self);
|
|
|
124
124
|
PERFORMANCE OF THIS SOFTWARE.
|
|
125
125
|
***************************************************************************** */
|
|
126
126
|
/* global Reflect, Promise */
|
|
127
|
-
var me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function fe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ge(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function ye(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ve(e){return"function"==typeof e}function be(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 we=be((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 _e(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xe=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=fe(a),o=s.next();!o.done;o=s.next()){o.value.remove(this)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(ve(l))try{l()}catch(e){i=e instanceof we?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=fe(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{Ce(h)}catch(e){i=null!=i?i:[],e instanceof we?i=ye(ye([],ge(i)),ge(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new we(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Ce(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&_e(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&_e(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Se=xe.EMPTY;function $e(e){return e instanceof xe||e&&"closed"in e&&ve(e.remove)&&ve(e.add)&&ve(e.unsubscribe)}function Ce(e){ve(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ke={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ke.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ye([e,t],ge(n))):setTimeout.apply(void 0,ye([e,t],ge(n)))},clearTimeout:function(e){var t=ke.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ee(){}var Me=null;function Fe(e){if(Te.useDeprecatedSynchronousErrorHandling){var t=!Me;if(t&&(Me={errorThrown:!1,error:null}),e(),t){var n=Me,r=n.errorThrown,i=n.error;if(Me=null,r)throw i}}else e()}var Le=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,$e(t)&&t.add(n)):n.destination=Oe,n}return pe(t,e),t.create=function(e,t,n){return new De(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(xe),Ge=Function.prototype.bind;function Pe(e,t){return Ge.call(e,t)}var Ie=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){Ae(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ae(e)}else Ae(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ae(e)}},e}(),De=function(e){function t(t,n,r){var i,a,s=e.call(this)||this;ve(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Te.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Pe(t.next,a),error:t.error&&Pe(t.error,a),complete:t.complete&&Pe(t.complete,a)}):i=t;return s.destination=new Ie(i),s}return pe(t,e),t}(Le);function Ae(e){var t;t=e,ke.setTimeout((function(){throw t}))}var Oe={closed:!0,next:Ee,error:function(e){throw e},complete:Ee},Ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Re(e){return e}var He=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,a=(r=e)&&r instanceof Le||function(e){return e&&ve(e.next)&&ve(e.error)&&ve(e.complete)}(r)&&$e(r)?e:new De(e,t,n);return Fe((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Be(t))((function(t,r){var i=new De({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ne]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Re:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Be(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Be(e){var t;return null!==(t=null!=e?e:Te.Promise)&&void 0!==t?t:Promise}var Ue=be((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ye=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 pe(t,e),t.prototype.lift=function(e){var t=new je(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ue},t.prototype.next=function(e){var t=this;Fe((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=fe(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Fe((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Fe((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?Se:(this.currentObservers=null,a.push(e),new xe((function(){t.currentObservers=null,_e(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new He;return e.source=this,e},t.create=function(e,t){return new je(e,t)},t}(He),je=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return pe(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Se},t}(Ye),ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0},Ve=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ze);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return pe(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,o=n._windowTime;r||(i.push(t),!a&&i.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var s=n.now(),o=0,l=1;l<r.length&&r[l]<=s;l+=2)o=l;o&&r.splice(0,o+1)}},t}(Ye);let We=[],Ze={};
|
|
127
|
+
var he=function(e,t){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},he(e,t)};function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function pe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function ge(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ye(e){return"function"==typeof e}function ve(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 be=ve((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 we(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xe=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=pe(a),o=s.next();!o.done;o=s.next()){o.value.remove(this)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(ye(l))try{l()}catch(e){i=e instanceof be?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=pe(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{$e(h)}catch(e){i=null!=i?i:[],e instanceof be?i=ge(ge([],fe(i)),fe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new be(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)$e(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&we(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&we(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),_e=xe.EMPTY;function Se(e){return e instanceof xe||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function $e(e){ye(e)?e():e.unsubscribe()}var Ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Te={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Te.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ge([e,t],fe(n))):setTimeout.apply(void 0,ge([e,t],fe(n)))},clearTimeout:function(e){var t=Te.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ee(){}var Me=null;function ke(e){if(Ce.useDeprecatedSynchronousErrorHandling){var t=!Me;if(t&&(Me={errorThrown:!1,error:null}),e(),t){var n=Me,r=n.errorThrown,i=n.error;if(Me=null,r)throw i}}else e()}var Fe=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Se(t)&&t.add(n)):n.destination=De,n}return me(t,e),t.create=function(e,t,n){return new Ie(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(xe),Le=Function.prototype.bind;function Ge(e,t){return Le.call(e,t)}var Pe=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){Ae(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ae(e)}else Ae(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ae(e)}},e}(),Ie=function(e){function t(t,n,r){var i,a,s=e.call(this)||this;ye(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Ce.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Ge(t.next,a),error:t.error&&Ge(t.error,a),complete:t.complete&&Ge(t.complete,a)}):i=t;return s.destination=new Pe(i),s}return me(t,e),t}(Fe);function Ae(e){var t;t=e,Te.setTimeout((function(){throw t}))}var De={closed:!0,next:Ee,error:function(e){throw e},complete:Ee},Oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ne(e){return e}var Re=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,a=(r=e)&&r instanceof Fe||function(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(r)&&Se(r)?e:new Ie(e,t,n);return ke((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=He(t))((function(t,r){var i=new Ie({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Oe]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Ne:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=He(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function He(e){var t;return null!==(t=null!=e?e:Ce.Promise)&&void 0!==t?t:Promise}var Be=ve((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ue=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 me(t,e),t.prototype.lift=function(e){var t=new Ye(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Be},t.prototype.next=function(e){var t=this;ke((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=pe(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;ke((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ke((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?_e:(this.currentObservers=null,a.push(e),new xe((function(){t.currentObservers=null,we(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Re;return e.source=this,e},t.create=function(e,t){return new Ye(e,t)},t}(Re),Ye=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return me(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:_e},t}(Ue),ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0},je=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ze);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return me(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,o=n._windowTime;r||(i.push(t),!a&&i.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var s=n.now(),o=0,l=1;l<r.length&&r[l]<=s;l+=2)o=l;o&&r.splice(0,o+1)}},t}(Ue);let Ve=[],We={};
|
|
128
128
|
/**
|
|
129
129
|
* @name topic
|
|
130
130
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -132,36 +132,36 @@ var me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
|
132
132
|
* @param step [String] How many values to be buffed for new subscribers - default 0
|
|
133
133
|
* @returns ReplaySubject
|
|
134
134
|
*/
|
|
135
|
-
const
|
|
135
|
+
const Ze=[];
|
|
136
136
|
/**
|
|
137
137
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
138
138
|
* @param {*=}value initial value
|
|
139
139
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
140
140
|
*/
|
|
141
|
-
function
|
|
142
|
-
const e=!
|
|
141
|
+
function Ke(t,n=e){let r;const i=new Set;function s(e){if(a(t,e)&&(t=e,r)){// store is ready
|
|
142
|
+
const e=!Ze.length;for(const e of i)e[1](),Ze.push(e,t);if(e){for(let e=0;e<Ze.length;e+=2)Ze[e][0](Ze[e+1]);Ze.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(a,o=e){const l=[a,o];return i.add(l),1===i.size&&(r=n(s)||e),a(t),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function Xe(t,n,a){const s=!Array.isArray(t),o=s?[t]:t,l=n.length<2;return u=t=>{let a=!1;const u=[];let d=0,h=e;const m=()=>{if(d)return;h();const r=n(s?u[0]:u,t);l?t(r):h=i(r)?r:e},p=o.map(((e,t)=>c(e,(e=>{u[t]=e,d&=~(1<<t),a&&m()}),(()=>{d|=1<<t}))));return a=!0,m(),function(){r(p),h(),
|
|
143
143
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
144
144
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
145
145
|
// invoke this derived store.
|
|
146
|
-
a=!1}},{subscribe:
|
|
146
|
+
a=!1}},{subscribe:Ke(a,u).subscribe};
|
|
147
147
|
/**
|
|
148
148
|
* Creates a `Readable` store that allows reading by subscription.
|
|
149
149
|
* @param value initial value
|
|
150
150
|
* @param {StartStopNotifier}start start and stop notifications for subscriptions
|
|
151
151
|
*/
|
|
152
|
-
var u}var
|
|
152
|
+
var u}var qe=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===Je}(e)}
|
|
153
153
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
154
|
-
(e)};var
|
|
154
|
+
(e)};var Je="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Qe(e,t){return!1!==t.clone&&t.isMergeableObject(e)?it((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function et(e,t,n){return e.concat(t).map((function(e){return Qe(e,n)}))}function tt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function nt(e,t){try{return t in e}catch(e){return!1}}
|
|
155
155
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
156
|
-
function
|
|
157
|
-
})(e,i)||(
|
|
156
|
+
function rt(e,t,n){var r={};return n.isMergeableObject(e)&&tt(e).forEach((function(t){r[t]=Qe(e[t],n)})),tt(t).forEach((function(i){(function(e,t){return nt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
157
|
+
})(e,i)||(nt(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return it;var n=t.customMerge(e);return"function"==typeof n?n:it}(i,n)(e[i],t[i],n):r[i]=Qe(t[i],n))})),r}function it(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||et,n.isMergeableObject=n.isMergeableObject||qe,
|
|
158
158
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
159
159
|
// implementations can use it. The caller may not replace it.
|
|
160
|
-
n.cloneUnlessOtherwiseSpecified=
|
|
160
|
+
n.cloneUnlessOtherwiseSpecified=Qe;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):rt(e,t,n):Qe(t,n)}it.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return it(e,n,t)}),{})};var at=it,st=function(e,t){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},st(e,t)};function ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}st(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lt,ct,ut,dt=function(){return dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},dt.apply(this,arguments)};function ht(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
|
|
161
161
|
/**
|
|
162
162
|
* Type Guards
|
|
163
163
|
*/
|
|
164
|
-
function
|
|
164
|
+
function mt(e){return e.type===ct.literal}function pt(e){return e.type===ct.argument}function ft(e){return e.type===ct.number}function gt(e){return e.type===ct.date}function yt(e){return e.type===ct.time}function vt(e){return e.type===ct.select}function bt(e){return e.type===ct.plural}function wt(e){return e.type===ct.pound}function xt(e){return e.type===ct.tag}function _t(e){return!(!e||"object"!=typeof e||e.type!==ut.number)}function St(e){return!(!e||"object"!=typeof e||e.type!==ut.dateTime)}
|
|
165
165
|
// @generated from regex-gen.ts
|
|
166
166
|
!function(e){
|
|
167
167
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -223,7 +223,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
|
223
223
|
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
|
224
224
|
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
225
225
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
226
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(
|
|
226
|
+
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(lt||(lt={})),function(e){
|
|
227
227
|
/**
|
|
228
228
|
* Raw text
|
|
229
229
|
*/
|
|
@@ -260,7 +260,7 @@ e[e.pound=7]="pound",
|
|
|
260
260
|
/**
|
|
261
261
|
* XML-like tag
|
|
262
262
|
*/
|
|
263
|
-
e[e.tag=8]="tag"}(
|
|
263
|
+
e[e.tag=8]="tag"}(ct||(ct={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ut||(ut={}));var $t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ct=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
264
264
|
/**
|
|
265
265
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
266
266
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -272,7 +272,7 @@ e[e.tag=8]="tag"}(ut||(ut={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
272
272
|
* @public
|
|
273
273
|
* @param skeleton skeleton string
|
|
274
274
|
*/
|
|
275
|
-
function
|
|
275
|
+
function Tt(e){var t={};return e.replace(Ct,(function(e){var n=e.length;switch(e[0]){
|
|
276
276
|
// Era
|
|
277
277
|
case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
|
|
278
278
|
// Year
|
|
@@ -306,20 +306,20 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
306
306
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
307
307
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
308
308
|
// @generated from regex-gen.ts
|
|
309
|
-
var Et=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
309
|
+
var Et=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,kt=/^(@+)?(\+|#+)?[rs]?$/g,Ft=/(\*)(0+)|(#+)(0+)|(0+)/g,Lt=/^(0+)$/;function Gt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(kt,(function(e,n,r){
|
|
310
310
|
// @@@ case
|
|
311
|
-
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function
|
|
311
|
+
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Pt(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 It(e){
|
|
312
312
|
// Engineering
|
|
313
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!
|
|
313
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Lt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function At(e){var t=Pt(e);return t||{}}
|
|
314
314
|
/**
|
|
315
315
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
316
|
-
*/function
|
|
316
|
+
*/function Dt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=dt(dt(dt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return dt(dt({},e),At(t))}),{}));continue;case"engineering":t=dt(dt(dt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return dt(dt({},e),At(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
317
317
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
318
318
|
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;
|
|
319
319
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
320
|
-
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(
|
|
320
|
+
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ft,(function(e,n,r,i,a,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)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}
|
|
321
321
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
322
|
-
if(
|
|
322
|
+
if(Lt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Mt.test(i.stem)){
|
|
323
323
|
// Precision
|
|
324
324
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
325
325
|
// precision-integer case
|
|
@@ -327,12 +327,12 @@ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept
|
|
|
327
327
|
// .000* case (before ICU67 it was .000+)
|
|
328
328
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];
|
|
329
329
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
330
|
-
"w"===a?t=
|
|
330
|
+
"w"===a?t=dt(dt({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=dt(dt({},t),Gt(a)))}
|
|
331
331
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
332
|
-
else if(
|
|
332
|
+
else if(kt.test(i.stem))t=dt(dt({},t),Gt(i.stem));else{var s=Pt(i.stem);s&&(t=dt(dt({},t),s));var o=It(i.stem);o&&(t=dt(dt({},t),o))}}return t}
|
|
333
333
|
// @generated from time-data-gen.ts
|
|
334
334
|
// prettier-ignore
|
|
335
|
-
var Nt
|
|
335
|
+
var Ot,Nt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
336
336
|
/**
|
|
337
337
|
* Returns the best matching date time pattern if a date time skeleton
|
|
338
338
|
* pattern is provided with a locale. Follows the Unicode specification:
|
|
@@ -345,7 +345,7 @@ var Nt,Rt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
345
345
|
* of the given `locale` to the corresponding time pattern.
|
|
346
346
|
* @param locale
|
|
347
347
|
*/
|
|
348
|
-
function
|
|
348
|
+
function Rt(e){var t=e.hourCycle;if(void 0===t&&
|
|
349
349
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
350
350
|
e.hourCycles&&
|
|
351
351
|
// @ts-ignore
|
|
@@ -353,37 +353,37 @@ e.hourCycles.length&&(
|
|
|
353
353
|
// @ts-ignore
|
|
354
354
|
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
355
355
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
356
|
-
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(
|
|
356
|
+
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Nt[n||""]||Nt[r||""]||Nt["".concat(r,"-001")]||Nt["001"])[0]}var Ht=new RegExp("^".concat($t.source,"*")),Bt=new RegExp("".concat($t.source,"*$"));function Ut(e,t){return{start:e,end:t}}
|
|
357
357
|
// #region Ponyfills
|
|
358
358
|
// Consolidate these variables up top for easier toggling during debugging
|
|
359
|
-
var
|
|
359
|
+
var Yt=!!String.prototype.startsWith,zt=!!String.fromCodePoint,jt=!!Object.fromEntries,Vt=!!String.prototype.codePointAt,Wt=!!String.prototype.trimStart,Zt=!!String.prototype.trimEnd,Kt=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Xt=!0;try{
|
|
360
360
|
/**
|
|
361
361
|
* legacy Edge or Xbox One browser
|
|
362
362
|
* Unicode flag support: supported
|
|
363
363
|
* Pattern_Syntax support: not supported
|
|
364
364
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
365
365
|
*/
|
|
366
|
-
|
|
366
|
+
Xt="a"===(null===(Ot=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ot?void 0:Ot[0])}catch(e){Xt=!1}var qt,Jt=Yt?// Native
|
|
367
367
|
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
|
368
|
-
function(e,t,n){return e.slice(n,n+t.length)===t},
|
|
369
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},
|
|
368
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},Qt=zt?String.fromCodePoint:// IE11
|
|
369
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},en=
|
|
370
370
|
// native
|
|
371
|
-
|
|
372
|
-
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],s=i[1];t[a]=s}return t},
|
|
371
|
+
jt?Object.fromEntries:// Ponyfill
|
|
372
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],s=i[1];t[a]=s}return t},tn=Vt?// Native
|
|
373
373
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
374
|
-
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},
|
|
374
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},nn=Wt?// Native
|
|
375
375
|
function(e){return e.trimStart()}:// Ponyfill
|
|
376
|
-
function(e){return e.replace(
|
|
376
|
+
function(e){return e.replace(Ht,"")},rn=Zt?// Native
|
|
377
377
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
378
|
-
function(e){return e.replace(
|
|
378
|
+
function(e){return e.replace(Bt,"")};
|
|
379
379
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
380
|
-
function
|
|
380
|
+
function an(e,t){return new RegExp(e,t)}
|
|
381
381
|
// #endregion
|
|
382
|
-
if(
|
|
382
|
+
if(Xt){
|
|
383
383
|
// Native
|
|
384
|
-
var
|
|
384
|
+
var sn=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qt=function(e,t){var n;return sn.lastIndex=t,null!==(n=sn.exec(e)[1])&&void 0!==n?n:""}}else
|
|
385
385
|
// IE11
|
|
386
|
-
|
|
386
|
+
qt=function(e,t){for(var n=[];;){var r=tn(e,t);if(void 0===r||un(r)||dn(r))break;n.push(r),t+=r>=65536?2:1}return Qt.apply(void 0,n)};var on=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(lt.UNMATCHED_CLOSING_TAG,Ut(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&ln(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:ct.pound,location:Ut(s,this.clonePosition())})}}}return{val:r,err:null}},
|
|
387
387
|
/**
|
|
388
388
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
389
389
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -405,14 +405,14 @@ Jt=function(e,t){for(var n=[];;){var r=nn(e,t);if(void 0===r||dn(r)||hn(r))break
|
|
|
405
405
|
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
|
406
406
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
407
407
|
// Self closing tag
|
|
408
|
-
return{val:{type:
|
|
408
|
+
return{val:{type:ct.literal,value:"<".concat(r,"/>"),location:Ut(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();
|
|
409
409
|
// Expecting a close tag
|
|
410
|
-
if(this.bumpIf("</")){if(this.isEOF()||!
|
|
410
|
+
if(this.bumpIf("</")){if(this.isEOF()||!ln(this.char()))return this.error(lt.INVALID_TAG,Ut(s,this.clonePosition()));var o=this.clonePosition();return r!==this.parseTagName()?this.error(lt.UNMATCHED_CLOSING_TAG,Ut(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ct.tag,value:r,children:a,location:Ut(n,this.clonePosition())},err:null}:this.error(lt.INVALID_TAG,Ut(s,this.clonePosition())))}return this.error(lt.UNCLOSED_TAG,Ut(n,this.clonePosition()))}return this.error(lt.INVALID_TAG,Ut(n,this.clonePosition()))},
|
|
411
411
|
/**
|
|
412
412
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
413
413
|
*/
|
|
414
414
|
e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
|
|
415
|
-
for(this.bump();!this.isEOF()&&
|
|
415
|
+
for(this.bump();!this.isEOF()&&cn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var o=Ut(n,this.clonePosition());return{val:{type:ct.literal,value:r,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(ln(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
416
416
|
/** See `parseTag` function docs. */},
|
|
417
417
|
/**
|
|
418
418
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -434,67 +434,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
|
|
|
434
434
|
// Optional closing apostrophe.
|
|
435
435
|
this.bump();break}t.push(39),
|
|
436
436
|
// Bump one more time because we need to skip 2 characters.
|
|
437
|
-
this.bump()}else t.push(n);this.bump()}return
|
|
438
|
-
this.bumpSpace(),this.isEOF())return this.error(
|
|
437
|
+
this.bump()}else t.push(n);this.bump()}return Qt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),Qt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
|
|
438
|
+
this.bumpSpace(),this.isEOF())return this.error(lt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(lt.EMPTY_ARGUMENT,Ut(n,this.clonePosition()));
|
|
439
439
|
// argument name
|
|
440
|
-
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(
|
|
440
|
+
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(lt.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(lt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));switch(this.char()){
|
|
441
441
|
// Simple argument: `{name}`
|
|
442
442
|
case 125/* `}` */:// `}`
|
|
443
|
-
return this.bump(),{val:{type:
|
|
443
|
+
return this.bump(),{val:{type:ct.argument,
|
|
444
444
|
// value does not include the opening and closing braces.
|
|
445
|
-
value:r,location:
|
|
445
|
+
value:r,location:Ut(n,this.clonePosition())},err:null};
|
|
446
446
|
// Argument with options: `{name, format, ...}`
|
|
447
447
|
case 44/* `,` */:return this.bump(),// `,`
|
|
448
|
-
this.bumpSpace(),this.isEOF()?this.error(
|
|
448
|
+
this.bumpSpace(),this.isEOF()?this.error(lt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(lt.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()))}},
|
|
449
449
|
/**
|
|
450
450
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
451
451
|
* an identifier character. Return an empty string otherwise.
|
|
452
452
|
*/
|
|
453
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=
|
|
453
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=qt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ut(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();
|
|
454
454
|
// Parse this range:
|
|
455
455
|
// {name, type, style}
|
|
456
456
|
// ^---^
|
|
457
457
|
switch(s){case"":
|
|
458
458
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
459
|
-
return this.error(
|
|
459
|
+
return this.error(lt.EXPECT_ARGUMENT_TYPE,Ut(a,o));case"number":case"date":case"time":
|
|
460
460
|
// Parse this range:
|
|
461
461
|
// {name, number, style}
|
|
462
462
|
// ^-------^
|
|
463
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=
|
|
463
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=rn(y.val)).length)return this.error(lt.EXPECT_ARGUMENT_STYLE,Ut(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Ut(c,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=Ut(r,this.clonePosition());
|
|
464
464
|
// Extract style or skeleton
|
|
465
|
-
if(l&&
|
|
465
|
+
if(l&&Jt(null==l?void 0:l.style,"::",0)){
|
|
466
466
|
// Skeleton starts with `::`.
|
|
467
|
-
var d=
|
|
467
|
+
var d=nn(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?y:{val:{type:ct.number,value:n,location:u,style:y.val},err:null};if(0===d.length)return this.error(lt.EXPECT_DATE_TIME_SKELETON,u);var h=d;
|
|
468
468
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
469
469
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
470
470
|
// for unsupported patterns.
|
|
471
|
-
this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=
|
|
471
|
+
this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=Rt(t);for("H"!=l&&"k"!=l||(o=0);o-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(d,this.locale));var m={type:ut.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Tt(h):{}};return{val:{type:"date"===s?ct.date:ct.time,value:n,location:u,style:m},err:null}}
|
|
472
472
|
// Regular style or no style.
|
|
473
|
-
return{val:{type:"number"===s?
|
|
473
|
+
return{val:{type:"number"===s?ct.number:"date"===s?ct.date:ct.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
474
474
|
// Parse this range:
|
|
475
475
|
// {name, plural, options}
|
|
476
476
|
// ^---------^
|
|
477
|
-
var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(
|
|
477
|
+
var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(lt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ut(p,dt({},p)));this.bumpSpace();
|
|
478
478
|
// Parse offset:
|
|
479
479
|
// {name, plural, offset:1, options}
|
|
480
480
|
// ^-----^
|
|
481
481
|
// or the first option:
|
|
482
482
|
// {name, plural, one {...} other {...}}
|
|
483
483
|
// ^--^
|
|
484
|
-
var f=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(
|
|
484
|
+
var f=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(lt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(lt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,lt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
485
485
|
// Parse another identifier for option parsing
|
|
486
|
-
this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,s,t,f);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=
|
|
486
|
+
this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,s,t,f);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=Ut(r,this.clonePosition());return"select"===s?{val:{type:ct.select,value:n,options:en(b.val),location:w},err:null}:{val:{type:ct.plural,value:n,options:en(b.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(lt.INVALID_ARGUMENT_TYPE,Ut(a,o))}},e.prototype.tryParseArgumentClose=function(e){
|
|
487
487
|
// Parse: {value, number, ::currency/GBP }
|
|
488
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(
|
|
488
|
+
return this.isEOF()||125/* `}` */!==this.char()?this.error(lt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
489
489
|
/**
|
|
490
490
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
491
491
|
*/
|
|
492
492
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
493
493
|
// Treat apostrophe as quoting but include it in the style part.
|
|
494
494
|
// Find the end of the quoted literal text.
|
|
495
|
-
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(
|
|
495
|
+
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(lt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ut(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
496
496
|
// Parse the skeleton
|
|
497
|
-
for(var t=e.split(Et).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var s=a[0],o=a.slice(1),l=0,c=o;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:o})}return n}(e)}catch(e){return this.error(
|
|
497
|
+
for(var t=e.split(Et).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var s=a[0],o=a.slice(1),l=0,c=o;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:o})}return n}(e)}catch(e){return this.error(lt.INVALID_NUMBER_SKELETON,t)}return{val:{type:ut.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Dt(n):{}},err:null}},
|
|
498
498
|
/**
|
|
499
499
|
* @param nesting_level The current nesting level of messages.
|
|
500
500
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -511,24 +511,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
|
511
511
|
// ^--^
|
|
512
512
|
for(var i,a=!1,s=[],o=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
513
513
|
// Try parse `={number}` selector
|
|
514
|
-
var d=this.tryParseDecimalInteger(
|
|
514
|
+
var d=this.tryParseDecimalInteger(lt.EXPECT_PLURAL_ARGUMENT_SELECTOR,lt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Ut(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
|
|
515
515
|
// Duplicate selector clauses
|
|
516
|
-
if(o.has(l))return this.error("select"===t?
|
|
516
|
+
if(o.has(l))return this.error("select"===t?lt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:lt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(a=!0),
|
|
517
517
|
// Parse:
|
|
518
518
|
// one {one apple}
|
|
519
519
|
// ^----------^
|
|
520
|
-
this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?
|
|
520
|
+
this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?lt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:lt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ut(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var p=this.tryParseArgumentClose(h);if(p.err)return p;s.push([l,{value:m.val,location:Ut(h,this.clonePosition())}]),
|
|
521
521
|
// Keep track of the existing selectors
|
|
522
522
|
o.add(l),
|
|
523
523
|
// Prep next selector clause.
|
|
524
|
-
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?
|
|
524
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?lt.EXPECT_SELECT_ARGUMENT_SELECTOR:lt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(lt.MISSING_OTHER_CLAUSE,Ut(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,a=10*a+(s-48),this.bump()}var o=Ut(r,this.clonePosition());return i?Kt(a*=n)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
525
525
|
// This is much faster than `Object.assign` or spread.
|
|
526
526
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
527
527
|
/**
|
|
528
528
|
* Return the code point at the current position of the parser.
|
|
529
529
|
* Throws if the index is out of bound.
|
|
530
530
|
*/
|
|
531
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
|
531
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
532
532
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
533
533
|
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
534
534
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
@@ -539,7 +539,7 @@ this.position.offset+=e<65536?1:2)}},
|
|
|
539
539
|
* following the prefix and return true. Otherwise, don't bump the parser
|
|
540
540
|
* and return false.
|
|
541
541
|
*/
|
|
542
|
-
e.prototype.bumpIf=function(e){if(
|
|
542
|
+
e.prototype.bumpIf=function(e){if(Jt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
|
543
543
|
/**
|
|
544
544
|
* Bump the parser until the pattern character is found and return `true`.
|
|
545
545
|
* Otherwise bump to the end of the file and return `false`.
|
|
@@ -551,7 +551,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
|
|
|
551
551
|
*/
|
|
552
552
|
e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
553
553
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
554
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
554
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&un(this.char());)this.bump()},
|
|
555
555
|
/**
|
|
556
556
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
557
557
|
* If the input has been exhausted, then this returns null.
|
|
@@ -561,96 +561,96 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
561
561
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
562
562
|
* @param codepoint
|
|
563
563
|
* @returns
|
|
564
|
-
*/function
|
|
564
|
+
*/function ln(e){return e>=97&&e<=122||e>=65&&e<=90}function cn(e){return 45/* '-' */===e||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
|
|
565
565
|
/**
|
|
566
566
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
567
567
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
568
|
-
*/function
|
|
568
|
+
*/function un(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
|
569
569
|
/**
|
|
570
570
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
571
571
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
572
|
-
*/function
|
|
572
|
+
*/function dn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function hn(e){e.forEach((function(e){if(delete e.location,vt(e)||bt(e))for(var t in e.options)delete e.options[t].location,hn(e.options[t].value);else ft(e)&&_t(e.style)||(gt(e)||yt(e))&&St(e.style)?delete e.style.location:xt(e)&&hn(e.children)}))}function mn(e,t){void 0===t&&(t={}),t=dt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new on(e,t).parse();if(n.err){var r=SyntaxError(lt[n.err.kind]);
|
|
573
573
|
// @ts-expect-error Assign to error object
|
|
574
574
|
throw r.location=n.err.location,
|
|
575
575
|
// @ts-expect-error Assign to error object
|
|
576
|
-
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||
|
|
576
|
+
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||hn(n.val),n.val}
|
|
577
577
|
|
|
578
578
|
// Main
|
|
579
579
|
|
|
580
|
-
function
|
|
580
|
+
function pn(e,t){var n=t&&t.cache?t.cache:_n,r=t&&t.serializer?t.serializer:bn;return(t&&t.strategy?t.strategy:vn)(e,{cache:n,serializer:r})}
|
|
581
581
|
|
|
582
582
|
// Strategy
|
|
583
583
|
|
|
584
|
-
function
|
|
584
|
+
function fn(e,t,n,r){var i,a=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(a);return void 0===s&&(s=e.call(this,r),t.set(a,s)),s}function gn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return void 0===a&&(a=e.apply(this,r),t.set(i,a)),a}function yn(e,t,n,r,i){return n.bind(t,e,r,i)}function vn(e,t){return yn(e,this,1===e.length?fn:gn,t.cache.create(),t.serializer)}
|
|
585
585
|
// Serializer
|
|
586
|
-
var
|
|
586
|
+
var bn=function(){return JSON.stringify(arguments)};
|
|
587
587
|
|
|
588
588
|
// Cache
|
|
589
589
|
|
|
590
|
-
function
|
|
590
|
+
function wn(){this.cache=Object.create(null)}wn.prototype.get=function(e){return this.cache[e]},wn.prototype.set=function(e,t){this.cache[e]=t};var xn,_n={create:function(){
|
|
591
591
|
// @ts-ignore
|
|
592
|
-
return new
|
|
592
|
+
return new wn}},Sn={variadic:function(e,t){return yn(e,this,gn,t.cache.create(),t.serializer)},monadic:function(e,t){return yn(e,this,fn,t.cache.create(),t.serializer)}};!function(e){
|
|
593
593
|
// When we have a placeholder but no value to format
|
|
594
594
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
595
595
|
// When value supplied is invalid
|
|
596
596
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
597
597
|
// When we need specific Intl API but it's not available
|
|
598
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(xn||(xn={}));var Cn
|
|
598
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(xn||(xn={}));var $n,Cn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ot(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Tn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),xn.INVALID_VALUE,i)||this}return ot(t,e),t}(Cn),En=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),xn.INVALID_VALUE,r)||this}return ot(t,e),t}(Cn),Mn=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),xn.MISSING_VALUE,n)||this}return ot(t,e),t}(Cn);function kn(e){return"function"==typeof e}
|
|
599
599
|
// TODO(skeleton): add skeleton support
|
|
600
|
-
function
|
|
600
|
+
function Fn(e,t,n,r,i,a,
|
|
601
601
|
// For debugging
|
|
602
602
|
s){
|
|
603
603
|
// Hot path for straight simple msg translations
|
|
604
|
-
if(1===e.length&&
|
|
604
|
+
if(1===e.length&&mt(e[0]))return[{type:$n.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var u=c[l];
|
|
605
605
|
// Exit early for string parts.
|
|
606
|
-
if(
|
|
606
|
+
if(mt(u))o.push({type:$n.literal,value:u.value});else
|
|
607
607
|
// TODO: should this part be literal type?
|
|
608
608
|
// Replace `#` in plural rules with the actual numeric value.
|
|
609
|
-
if(
|
|
609
|
+
if(wt(u))"number"==typeof a&&o.push({type:$n.literal,value:n.getNumberFormat(t).format(a)});else{var d=u.value;
|
|
610
610
|
// Enforce that all required values are provided by the caller.
|
|
611
|
-
if(!i||!(d in i))throw new Mn(d,s);var h=i[d];if(
|
|
611
|
+
if(!i||!(d in i))throw new Mn(d,s);var h=i[d];if(pt(u))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),o.push({type:"string"==typeof h?$n.literal:$n.object,value:h});else
|
|
612
612
|
// Recursively format plural and select parts' option — which can be a
|
|
613
613
|
// nested pattern structure. The choosing of the option to use is
|
|
614
614
|
// abstracted-by and delegated-to the part helper object.
|
|
615
|
-
if(
|
|
615
|
+
if(gt(u)){var m="string"==typeof u.style?r.date[u.style]:St(u.style)?u.style.parsedOptions:void 0;o.push({type:$n.literal,value:n.getDateTimeFormat(t,m).format(h)})}else if(yt(u)){m="string"==typeof u.style?r.time[u.style]:St(u.style)?u.style.parsedOptions:r.time.medium;o.push({type:$n.literal,value:n.getDateTimeFormat(t,m).format(h)})}else if(ft(u)){(m="string"==typeof u.style?r.number[u.style]:_t(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(h*=m.scale||1),o.push({type:$n.literal,value:n.getNumberFormat(t,m).format(h)})}else{if(xt(u)){var p=u.children,f=u.value,g=i[f];if(!kn(g))throw new En(f,"function",s);var y=g(Fn(p,t,n,r,i,a).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),o.push.apply(o,y.map((function(e){return{type:"string"==typeof e?$n.literal:$n.object,value:e}})))}if(vt(u)){if(!(v=u.options[h]||u.options.other))throw new Tn(u.value,h,Object.keys(u.options),s);o.push.apply(o,Fn(v.value,t,n,r,i))}else if(bt(u)){var v;if(!(v=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new Cn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',xn.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));v=u.options[b]||u.options.other}if(!v)throw new Tn(u.value,h,Object.keys(u.options),s);o.push.apply(o,Fn(v.value,t,n,r,i,h-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===$n.literal&&t.type===$n.literal?n.value+=t.value:e.push(t),e}),[])}(o)}
|
|
616
616
|
/*
|
|
617
617
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
618
618
|
Copyrights licensed under the New BSD License.
|
|
619
619
|
See the accompanying LICENSE file for terms.
|
|
620
620
|
*/
|
|
621
621
|
// -- MessageFormat --------------------------------------------------------
|
|
622
|
-
function
|
|
622
|
+
function Ln(e,t){return t?Object.keys(e).reduce((function(n,r){var i,a;return n[r]=(i=e[r],(a=t[r])?dt(dt(dt({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=dt(dt({},i[t]),a[t]||{}),e}),{})):i),n}),dt({},e)):e}function Gn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}($n||($n={}));var Pn=/** @class */function(){function e(t,n,r,i){var a,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
623
623
|
// Hot path for straight simple msg translations
|
|
624
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type
|
|
624
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===$n.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Fn(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},
|
|
625
625
|
// Defined first because it's used to build the format pattern.
|
|
626
626
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
627
627
|
// Parse string messages into an AST.
|
|
628
628
|
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.");
|
|
629
629
|
// Creates a new object with the specified `formats` merged with the default
|
|
630
630
|
// formats.
|
|
631
|
-
this.formats=
|
|
631
|
+
this.formats=Ln(e.formats,r),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ht([void 0],t,!1)))}),{cache:Gn(a.number),strategy:Sn.variadic}),getDateTimeFormat:pn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ht([void 0],t,!1)))}),{cache:Gn(a.dateTime),strategy:Sn.variadic}),getPluralRules:pn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ht([void 0],t,!1)))}),{cache:Gn(a.pluralRules),strategy:Sn.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=mn,
|
|
632
632
|
// Default format options used as the prototype of the `formats` provided to the
|
|
633
633
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
634
634
|
// and Intl.DateTimeFormat instances.
|
|
635
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),
|
|
635
|
+
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),In=Pn;
|
|
636
636
|
/*
|
|
637
637
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
638
638
|
Copyrights licensed under the New BSD License.
|
|
639
639
|
See the accompanying LICENSE file for terms.
|
|
640
|
-
*/const An={},
|
|
640
|
+
*/const An={},Dn=(e,t,n)=>n?(t in An||(An[t]={}),e in An[t]||(An[t][e]=n),n):n,On=(e,t)=>{if(null==t)return;if(t in An&&e in An[t])return An[t][e];const n=er(t);for(let r=0;r<n.length;r++){const i=Bn(n[r],e);if(i)return Dn(e,t,i)}};let Nn;const Rn=Ke({});function Hn(e){return e in Nn}function Bn(e,t){if(!Hn(e))return null;const n=function(e){return Nn[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Un(e,...t){delete An[e],Rn.update((n=>(n[e]=at.all([n[e]||{},...t]),n)))}Xe([Rn],(([e])=>Object.keys(e))),Rn.subscribe((e=>Nn=e));const Yn={};function zn(e){return Yn[e]}function jn(e){return null!=e&&er(e).some((e=>{var t;return null===(t=zn(e))||void 0===t?void 0:t.size}))}const Vn={};function Wn(e){if(!jn(e))return e in Vn?Vn[e]:Promise.resolve();const t=function(e){return er(e).map((e=>{const t=zn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Vn[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Yn[e].delete(t),0===Yn[e].size&&delete Yn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Un(e,...t)))}(e,t)))).then((()=>{if(jn(e))return Wn(e);delete Vn[e]})),Vn[e]}const Zn={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 Kn(){return Zn}const Xn=Ke(!1);let qn;const Jn=Ke(null);function Qn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function er(e,t=Kn().fallbackLocale){const n=Qn(e);return t?[...new Set([...n,...Qn(t)])]:n}function tr(){return null!=qn?qn:void 0}Jn.subscribe((e=>{qn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const nr={...Jn,set:e=>{if(e&&function(e){if(null==e)return;const t=er(e);for(let e=0;e<t.length;e++){const n=t[e];if(Hn(n))return n}}(e)&&jn(e)){const{loadingDelay:t}=Kn();let n;return"undefined"!=typeof window&&null!=tr()&&t?n=window.setTimeout((()=>Xn.set(!0)),t):Xn.set(!0),Wn(e).then((()=>{Jn.set(e)})).finally((()=>{clearTimeout(n),Xn.set(!1)}))}return Jn.set(e)}},rr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},ir=(e,t)=>{const{formats:n}=Kn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ar=rr((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=ir("number",t)),new Intl.NumberFormat(e,n)})),sr=rr((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=ir("date",t):0===Object.keys(n).length&&(n=ir("date","short")),new Intl.DateTimeFormat(e,n)})),or=rr((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=ir("time",t):0===Object.keys(n).length&&(n=ir("time","short")),new Intl.DateTimeFormat(e,n)})),lr=rr(((e,t=tr())=>new In(e,t,Kn().formats,{ignoreTag:Kn().ignoreTag}))),cr=(e,t={})=>{var n,r,i,a;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:o,locale:l=tr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=On(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!==(a=null!==(i=null===(r=(n=Kn()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==a?a:e;if(!o)return u;let d=u;try{d=lr(u,l).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},ur=(e,t)=>(({locale:e=tr(),...t}={})=>or({locale:e,...t}))(t).format(e),dr=(e,t)=>(({locale:e=tr(),...t}={})=>sr({locale:e,...t}))(t).format(e),hr=(e,t)=>(({locale:e=tr(),...t}={})=>ar({locale:e,...t}))(t).format(e),mr=(e,t=tr())=>On(e,t),pr=Xe([nr,Rn],(()=>cr));Xe([nr],(()=>ur)),Xe([nr],(()=>dr)),Xe([nr],(()=>hr)),Xe([nr,Rn],(()=>mr)),window.emWidgets={topic:(e,t=0)=>{if(-1==Ve.indexOf(e)){let n=new je(t);We[e]=n,Ve.push(e)}return We[e]}};
|
|
641
641
|
/**
|
|
642
642
|
* @name isMobile
|
|
643
643
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
644
644
|
* @param {String} userAgent window.navigator.userAgent
|
|
645
645
|
* @returns {Boolean} true or false
|
|
646
646
|
*/
|
|
647
|
-
const
|
|
647
|
+
const fr=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)),gr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
|
|
648
648
|
/**
|
|
649
649
|
* @name getDevice
|
|
650
650
|
* @description A method that returns the type of the device
|
|
651
651
|
* @param {String} userAgent window.navigator.userAgent
|
|
652
652
|
* @returns {String} Android/iPhone/iPad/PC
|
|
653
|
-
*/function
|
|
653
|
+
*/function yr(e,t){Un(e,t)}const vr={en:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},"zh-hk":{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},de:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},it:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},fr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},es:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},tr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},ru:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},ro:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},hr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},hu:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},pl:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},pt:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},sl:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},sr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}}};function br(e,t){Un(e,t)}const wr={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavorites:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},"zh-hk":{gamesCategorySection:{showMore:"更多的",viewAll:"顯示所有",searchedItems:"搜索結果",recentSearchedItems:"最近搜索過",favorites:"收藏夹",noRecentSearch:"尚未開始搜索。 只需搜索遊戲。",noResults:"抱歉,沒有找到結果。 請再試一次。",noFavoritesMobile:"您現在可以通過點擊遊戲頁面上的星形圖標將游戲添加到收藏夾。",noFavorites:"您現在可以通過單擊遊戲縮略圖上的星形圖標將游戲添加到收藏夾。",noFavoritesTitle:"您還沒有任何喜歡的遊戲。",waiting:"等待"}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Ergebnis suchen",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavorites:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Plus de",viewAll:"Afficher tous",searchedItems:"Recherche du resultat",recentSearchedItems:"Recherches récentes",favorites:"Favoris",noRecentSearch:"Aucune recherche n'a encore été lancée . il suffit de chercher un jeu.",noResults:"Désolé , aucun résultat trouvé.veuillez réessayer.",noFavoritesMobile:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone étoile située sur la page du jeu.",noFavorites:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone en forme d'etoile située sur la vignette du jeu",noFavoritesTitle:"Vous n'avez pas encore de jeux favoris.",waiting:"Attente"}},es:{gamesCategorySection:{showMore:"Más",viewAll:"Mostrar todas",searchedItems:"Resultado de busqueda",recentSearchedItems:"Buscado recientemente",favorites:"Favoritos",noRecentSearch:"Aún no inicia busqueda. Solo busque un juego",noResults:"Disculpe",noFavoritesMobile:"Ahora puede agregar juegos a sus Favoritos dando clic al ícono de estrella en esta página",noFavorites:"Ahora puede agregar juegos a sus Favoritos dando click al ícono de la miniatura del juego.",noFavoritesTitle:"No tiene juegos Favoritos aún",waiting:"Cargando"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",favorites:"Favorite",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou",noFavoritesMobile:"Acum puteți adăuga jocuri la favorite atingând pictograma stea situată pe pagina jocului.",noFavorites:"Acum puteți adăuga jocuri la favorite făcând clic pe pictograma stea situată pe miniatura jocului.",noFavoritesTitle:"Nu aveți încă niciun joc preferat.",waiting:"Aşteptare"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostre tudo",searchedItems:"Resultado da pesquisa",recentSearchedItems:"Pesquisado recentemente",favorites:"Favorito",noRecentSearch:"Nenhuma pesquisa foi iniciada ainda. Simplesmente procure por um jogo.",noResults:"Desculpe, nenhum resultado encontrado. Por favor, tente novamente.",noFavoritesMobile:"Agora você pode adicionar jogos aos favoritos tocando no ícone da estrela localizado na página do jogo.",noFavorites:"Agora você pode adicionar jogos aos favoritos clicando no ícone da estrela localizado na miniatura do jogo.",noFavoritesTitle:"Você ainda não tem nenhum jogo favorito.",waiting:"Aguardando"}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}};var xr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return de(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
654
654
|
// This is done to register the method called with moment()
|
|
655
655
|
// without creating circular dependencies.
|
|
656
656
|
function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
|
@@ -661,47 +661,47 @@ return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o
|
|
|
661
661
|
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=f()),e._pf}function y(e){if(null==e._isValid){var t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=p(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}
|
|
662
662
|
// Plugins that add properties should also add the key here (null value),
|
|
663
663
|
// so we can properly clone ourselves.
|
|
664
|
-
n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function
|
|
664
|
+
n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,i,a=b.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(i=t[r=b[n]])||(e[r]=i);return e}
|
|
665
665
|
// Moment prototype object
|
|
666
|
-
function
|
|
666
|
+
function _(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
667
667
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
668
668
|
// objects.
|
|
669
|
-
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof
|
|
669
|
+
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function $(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,s,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}$(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,E={};function M(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),E[e]||($(t),E[e]=!0)}function k(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function F(e){var t,n;for(n in e)o(e,n)&&(k(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
670
670
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
671
671
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
672
672
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
673
673
|
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function L(e,t){var n,r=m({},e);for(n in t)o(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)o(e,n)&&!o(t,n)&&s(e[n])&&(
|
|
674
674
|
// make sure changes to properties don't modify parent config
|
|
675
|
-
r[n]=m({},r[n]));return r}function G(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return
|
|
675
|
+
r[n]=m({},r[n]));return r}function G(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r}function A(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},R={};
|
|
676
676
|
// token: 'M'
|
|
677
677
|
// padded: ['MM', 2]
|
|
678
678
|
// ordinal: 'Mo'
|
|
679
679
|
// callback: function () { this.month() + 1 }
|
|
680
|
-
function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return
|
|
680
|
+
function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(D);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=B(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=k(r[i])?r[i].call(t,e):r[i];return a}}
|
|
681
681
|
// format date using native date object
|
|
682
|
-
function Y(e,t){return e.isValid()?(t=
|
|
682
|
+
function Y(e,t){return e.isValid()?(t=z(t,e.localeData()),N[t]=N[t]||U(t),N[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,n-=1;return e}var j={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var W="Invalid date";function Z(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function q(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)o(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ae={};function se(e,t){ae[e]=t}function oe(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function he(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):me(this,e)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
|
683
683
|
// MOMENTS
|
|
684
|
-
function fe(e){return
|
|
684
|
+
function fe(e){return k(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var n,r=oe(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(k(this[e=re(e)]))return this[e](t);return this}var ye,ve=/\d/,// 0 - 9
|
|
685
685
|
be=/\d\d/,// 00 - 99
|
|
686
686
|
we=/\d{3}/,// 000 - 999
|
|
687
|
-
|
|
688
|
-
|
|
687
|
+
xe=/\d{4}/,// 0000 - 9999
|
|
688
|
+
_e=/[+-]?\d{6}/,// -999999 - 999999
|
|
689
689
|
Se=/\d\d?/,// 0 - 99
|
|
690
690
|
$e=/\d\d\d\d?/,// 999 - 9999
|
|
691
691
|
Ce=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
692
692
|
Te=/\d{1,3}/,// 0 - 999
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
693
|
+
Ee=/\d{1,4}/,// 0 - 9999
|
|
694
|
+
Me=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
695
|
+
ke=/\d+/,// 0 - inf
|
|
696
696
|
Fe=/[+-]?\d+/,// -inf - inf
|
|
697
697
|
Le=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
698
698
|
Ge=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
699
699
|
Pe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
700
700
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
701
701
|
// includes scottish gaelic two word and hyphenated months
|
|
702
|
-
Ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function
|
|
702
|
+
Ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ae(e,t,n){ye[e]=k(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return o(ye,e)?ye[e](t._strict,t._locale):new RegExp(Oe(e))}
|
|
703
703
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
704
|
-
function Oe(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Re={};function He(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Re[e[n]]=i}function Be(e,t){He(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&o(Re,e)&&Re[e](t,n._a,n,e)}var Ye,
|
|
704
|
+
function Oe(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Re={};function He(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Re[e[n]]=i}function Be(e,t){He(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&o(Re,e)&&Re[e](t,n._a,n,e)}var Ye,ze=0,je=1,Ve=2,We=3,Ze=4,Ke=5,Xe=6,qe=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
|
705
705
|
// FORMATTING
|
|
706
706
|
Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
707
707
|
// I know
|
|
@@ -711,9 +711,9 @@ ne("month","M"),
|
|
|
711
711
|
// PRIORITY
|
|
712
712
|
se("month",8),
|
|
713
713
|
// PARSING
|
|
714
|
-
|
|
714
|
+
Ae("M",Se),Ae("MM",Se,be),Ae("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ae("MMMM",(function(e,t){return t.monthsRegex(e)})),He(["M","MM"],(function(e,t){t[je]=ue(e)-1})),He(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
|
715
715
|
// if we didn't find a month name, mark the date as invalid.
|
|
716
|
-
null!=i?t[
|
|
716
|
+
null!=i?t[je]=i:g(n).invalidMonth=e}));
|
|
717
717
|
// LOCALES
|
|
718
718
|
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ie,at=Ie;function st(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ot(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
719
719
|
// this is not used
|
|
@@ -741,15 +741,15 @@ for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=Ne(r[t]),i[t]=Ne(i[t]);for(t
|
|
|
741
741
|
// HELPERS
|
|
742
742
|
function gt(e){return le(e)?366:365}
|
|
743
743
|
// HOOKS
|
|
744
|
-
H("Y",0,0,(function(){var e=this.year();return e<=9999?
|
|
744
|
+
H("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),
|
|
745
745
|
// ALIASES
|
|
746
746
|
ne("year","y"),
|
|
747
747
|
// PRIORITIES
|
|
748
748
|
se("year",1),
|
|
749
749
|
// PARSING
|
|
750
|
-
|
|
750
|
+
Ae("Y",Fe),Ae("YY",Se,be),Ae("YYYY",Ee,xe),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),He(["YYYYY","YYYYYY"],ze),He("YYYY",(function(e,t){t[ze]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),He("YY",(function(e,t){t[ze]=r.parseTwoDigitYear(e)})),He("Y",(function(e,t){t[ze]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};
|
|
751
751
|
// MOMENTS
|
|
752
|
-
var yt=
|
|
752
|
+
var yt=he("FullYear",!0);function vt(){return le(this.year())}function bt(e,t,n,r,i,a,s){
|
|
753
753
|
// can't just apply() to create a date:
|
|
754
754
|
// https://stackoverflow.com/q/181348
|
|
755
755
|
var o;
|
|
@@ -762,10 +762,10 @@ return e<100&&e>=0?(
|
|
|
762
762
|
// preserve leap years using a full 400 year cycle, then reset
|
|
763
763
|
(n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
|
|
764
764
|
// start-of-first-week - start-of-year
|
|
765
|
-
function
|
|
765
|
+
function xt(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
766
766
|
r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}
|
|
767
767
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
768
|
-
function
|
|
768
|
+
function _t(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+xt(e,r,i);return o<=0?s=gt(a=e-1)+o:o>gt(e)?(a=e+1,s=o-gt(e)):(a=e,s=o),{year:a,dayOfYear:s}}function St(e,t,n){var r,i,a=xt(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+$t(i=e.year()-1,t,n):s>$t(e.year(),t,n)?(r=s-$t(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function $t(e,t,n){var r=xt(e,t,n),i=xt(e+1,t,n);return(gt(e)-r+i)/7}
|
|
769
769
|
// FORMATTING
|
|
770
770
|
// HELPERS
|
|
771
771
|
// LOCALES
|
|
@@ -775,10 +775,10 @@ ne("week","w"),ne("isoWeek","W"),
|
|
|
775
775
|
// PRIORITIES
|
|
776
776
|
se("week",5),se("isoWeek",5),
|
|
777
777
|
// PARSING
|
|
778
|
-
|
|
779
|
-
doy:6};function
|
|
778
|
+
Ae("w",Se),Ae("ww",Se,be),Ae("W",Se),Ae("WW",Se,be),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var Tt={dow:0,// Sunday is the first day of the week.
|
|
779
|
+
doy:6};function Et(){return this._week.dow}function Mt(){return this._week.doy}
|
|
780
780
|
// MOMENTS
|
|
781
|
-
function
|
|
781
|
+
function kt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ft(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
782
782
|
// FORMATTING
|
|
783
783
|
// HELPERS
|
|
784
784
|
function Lt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Gt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
@@ -789,15 +789,15 @@ ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
|
789
789
|
// PRIORITY
|
|
790
790
|
se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
791
791
|
// PARSING
|
|
792
|
-
|
|
792
|
+
Ae("d",Se),Ae("e",Se),Ae("E",Se),Ae("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ae("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ae("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
793
793
|
// if we didn't get a weekday name, mark the date as invalid
|
|
794
|
-
null!=i?t.d=i:g(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
794
|
+
null!=i?t.d=i:g(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ot=Ie,Nt=Ie,Rt=Ie;function Ht(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,s))||-1!==(i=Ye.call(this._shortWeekdaysParse,s))||-1!==(i=Ye.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,s))||-1!==(i=Ye.call(this._weekdaysParse,s))||-1!==(i=Ye.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,s))||-1!==(i=Ye.call(this._weekdaysParse,s))||-1!==(i=Ye.call(this._shortWeekdaysParse,s))?i:null}function zt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
795
795
|
// test the regex
|
|
796
796
|
if(
|
|
797
797
|
// make the regex if we don't have it already
|
|
798
798
|
i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}
|
|
799
799
|
// MOMENTS
|
|
800
|
-
function
|
|
800
|
+
function jt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Lt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;
|
|
801
801
|
// behaves the same as moment#day except
|
|
802
802
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
803
803
|
// as a setter, sunday should belong to the previous week.
|
|
@@ -815,16 +815,16 @@ function tn(e,t){return t._meridiemParse}
|
|
|
815
815
|
function nn(e){
|
|
816
816
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
817
817
|
// Using charAt should be more compatible.
|
|
818
|
-
return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Jt),H("k",["kk",2],0,Qt),H("hmm",0,0,(function(){return""+Jt.apply(this)+
|
|
818
|
+
return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Jt),H("k",["kk",2],0,Qt),H("hmm",0,0,(function(){return""+Jt.apply(this)+A(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Jt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),en("a",!0),en("A",!1),
|
|
819
819
|
// ALIASES
|
|
820
820
|
ne("hour","h"),
|
|
821
821
|
// PRIORITY
|
|
822
|
-
se("hour",13),
|
|
822
|
+
se("hour",13),Ae("a",tn),Ae("A",tn),Ae("H",Se),Ae("h",Se),Ae("k",Se),Ae("HH",Se,be),Ae("hh",Se,be),Ae("kk",Se,be),Ae("hmm",$e),Ae("hmmss",Ce),Ae("Hmm",$e),Ae("Hmmss",Ce),He(["H","HH"],We),He(["k","kk"],(function(e,t,n){var r=ue(e);t[We]=24===r?0:r})),He(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),He(["h","hh"],(function(e,t,n){t[We]=ue(e),g(n).bigHour=!0})),He("hmm",(function(e,t,n){var r=e.length-2;t[We]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r)),g(n).bigHour=!0})),He("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[We]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Ke]=ue(e.substr(i)),g(n).bigHour=!0})),He("Hmm",(function(e,t,n){var r=e.length-2;t[We]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r))})),He("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[We]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Ke]=ue(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
|
|
823
823
|
// Setting the hour should keep the time, because the user explicitly
|
|
824
824
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
825
825
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
826
826
|
// this rule.
|
|
827
|
-
an=
|
|
827
|
+
an=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,ln={calendar:P,longDateFormat:j,invalidDate:W,ordinal:K,dayOfMonthOrdinalParse:X,relativeTime:J,months:tt,monthsShort:nt,week:Tt,weekdays:It,weekdaysMin:Dt,weekdaysShort:At,meridiemParse:rn},cn={},un={};
|
|
828
828
|
// internal storage for locale config files
|
|
829
829
|
function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
830
830
|
// pick the locale from the array
|
|
@@ -836,7 +836,7 @@ break;t--}a++}return on}function pn(e){
|
|
|
836
836
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
837
837
|
return null!=e.match("^[^/\\\\]*$")}function fn(t){var n=null;
|
|
838
838
|
// TODO: Find a better way to register and load all the locales in Node
|
|
839
|
-
if(void 0===cn[t]&&e&&e.exports&&pn(t))try{n=on._abbr,
|
|
839
|
+
if(void 0===cn[t]&&e&&e.exports&&pn(t))try{n=on._abbr,de(),gn(n)}catch(e){
|
|
840
840
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
841
841
|
// when trying to find en-US, en_US, en-us for every format call
|
|
842
842
|
cn[t]=null;// null means not found
|
|
@@ -848,7 +848,7 @@ function gn(e,t){var n;return e&&((n=c(t)?bn(e):yn(e,t))?
|
|
|
848
848
|
// moment.duration._locale = moment._locale = data;
|
|
849
849
|
on=n:"undefined"!=typeof console&&console.warn&&
|
|
850
850
|
//warn user if arguments are passed but the locale could not be set
|
|
851
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])
|
|
851
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new G(L(r,t)),un[e]&&un[e].forEach((function(e){yn(e.name,e.config)})),
|
|
852
852
|
// backwards compat for now: also set the locale
|
|
853
853
|
// make sure we set the locale AFTER all child locales have been
|
|
854
854
|
// created, so we won't end up with the child locale set.
|
|
@@ -870,26 +870,26 @@ null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)
|
|
|
870
870
|
// returns locale data
|
|
871
871
|
function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!a(e)){if(
|
|
872
872
|
//short-circuit everything else
|
|
873
|
-
t=fn(e))return t;e=[e]}return mn(e)}function wn(){return T(cn)}function
|
|
873
|
+
t=fn(e))return t;e=[e]}return mn(e)}function wn(){return T(cn)}function xn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[je]<0||n[je]>11?je:n[Ve]<1||n[Ve]>et(n[ze],n[je])?Ve:n[We]<0||n[We]>24||24===n[We]&&(0!==n[Ze]||0!==n[Ke]||0!==n[Xe])?We:n[Ze]<0||n[Ze]>59?Ze:n[Ke]<0||n[Ke]>59?Ke:n[Xe]<0||n[Xe]>999?Xe:-1,g(e)._overflowDayOfYear&&(t<ze||t>Ve)&&(t=Ve),g(e)._overflowWeeks&&-1===t&&(t=qe),g(e)._overflowWeekday&&-1===t&&(t=Je),g(e).overflow=t),e}
|
|
874
874
|
// iso 8601 regex
|
|
875
875
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
|
876
|
-
var
|
|
876
|
+
var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$n=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
|
|
877
877
|
// iso time formats and regexes
|
|
878
|
-
Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],
|
|
878
|
+
Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,
|
|
879
879
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
880
|
-
|
|
880
|
+
Mn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
881
881
|
// date from iso format
|
|
882
|
-
function Fn(e){var t,n,r,i,a,s,o=e._i,l=
|
|
882
|
+
function Fn(e){var t,n,r,i,a,s,o=e._i,l=_n.exec(o)||Sn.exec(o),c=Cn.length,u=Tn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(Cn[t][1].exec(l[1])){i=Cn[t][0],r=!1!==Cn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Tn[t][1].exec(l[3])){
|
|
883
883
|
// match[2] should be 'T' or space
|
|
884
884
|
a=(l[2]||" ")+Tn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!$n.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),Un(e)}else e._isValid=!1}function Ln(e,t,n,r,i,a){var s=[Gn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Gn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){
|
|
885
885
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
886
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(e,t,n){return!e||
|
|
886
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(e,t,n){return!e||At.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function An(e,t,n){if(e)return kn[e];if(t)
|
|
887
887
|
// the only allowed military tz is Z
|
|
888
888
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
889
889
|
// date and time from ref 2822 format
|
|
890
|
-
function
|
|
890
|
+
function Dn(e){var t,n=Mn.exec(Pn(e._i));if(n){if(t=Ln(n[4],n[3],n[2],n[5],n[6],n[7]),!In(n[1],t,e))return;e._a=t,e._tzm=An(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
891
891
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
892
|
-
function On(e){var t=
|
|
892
|
+
function On(e){var t=En.exec(e._i);null===t?(Fn(e),!1===e._isValid&&(delete e._isValid,Dn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
893
893
|
// Final attempt, use Input Fallback
|
|
894
894
|
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
895
895
|
// Pick the first defined of two or three arguments.
|
|
@@ -908,9 +908,9 @@ function Hn(e){var t,n,r,i,a,s=[];if(!e._d){
|
|
|
908
908
|
// * if year is given, don't default anything
|
|
909
909
|
for(r=Rn(e),
|
|
910
910
|
//compute day of the year from weeks and weekdays
|
|
911
|
-
e._w&&null==e._a[Ve]&&null==e._a[
|
|
911
|
+
e._w&&null==e._a[Ve]&&null==e._a[je]&&Bn(e),
|
|
912
912
|
//if the day of the year is set, figure out what it is
|
|
913
|
-
null!=e._dayOfYear&&(a=Nn(e._a[
|
|
913
|
+
null!=e._dayOfYear&&(a=Nn(e._a[ze],r[ze]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(a,0,e._dayOfYear),e._a[je]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
|
|
914
914
|
// Zero out whatever was not defaulted, including time
|
|
915
915
|
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
916
916
|
// Check for 24:00:00.000
|
|
@@ -924,7 +924,7 @@ e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Bn(e){var
|
|
|
924
924
|
// how we interpret now (local, utc, fixed offset). So create
|
|
925
925
|
// a now version of current config (take local/utc/offset flags, and
|
|
926
926
|
// create now).
|
|
927
|
-
n=Nn(t.GG,e._a[
|
|
927
|
+
n=Nn(t.GG,e._a[ze],St(Xn(),1,4).year),r=Nn(t.W,1),((i=Nn(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=St(Xn(),a,s),n=Nn(t.gg,e._a[ze],c.year),
|
|
928
928
|
// Default to current week.
|
|
929
929
|
r=Nn(t.w,c.week),null!=t.d?((
|
|
930
930
|
// weekday -- low day numbers are considered next week
|
|
@@ -932,14 +932,14 @@ i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
|
|
|
932
932
|
// local weekday -- counting starts from beginning of week
|
|
933
933
|
i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):
|
|
934
934
|
// default to beginning of week
|
|
935
|
-
i=a),r<1||r>$t(n,a,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=
|
|
935
|
+
i=a),r<1||r>$t(n,a,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=_t(n,r,i,a,s),e._a[ze]=o.year,e._dayOfYear=o.dayOfYear)}
|
|
936
936
|
// constant that refers to the ISO standard
|
|
937
937
|
// date from string and format string
|
|
938
938
|
function Un(e){
|
|
939
939
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
940
940
|
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;
|
|
941
941
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
942
|
-
var t,n,i,a,s,o,l,c=""+e._i,u=c.length,d=0;for(l=(i=
|
|
942
|
+
var t,n,i,a,s,o,l,c=""+e._i,u=c.length,d=0;for(l=(i=z(e._f,e._locale).match(D)||[]).length,t=0;t<l;t++)a=i[t],(n=(c.match(De(a,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),d+=n.length),
|
|
943
943
|
// don't parse if it's not a known token
|
|
944
944
|
R[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ue(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);
|
|
945
945
|
// add remaining unparsed input length to the string
|
|
@@ -949,17 +949,17 @@ e._a[We]<=12&&!0===g(e).bigHour&&e._a[We]>0&&(g(e).bigHour=void 0),g(e).parsedDa
|
|
|
949
949
|
// handle meridiem
|
|
950
950
|
e._a[We]=Yn(e._locale,e._a[We],e._meridiem),null!==(
|
|
951
951
|
// handle era
|
|
952
|
-
o=g(e).era)&&(e._a[
|
|
952
|
+
o=g(e).era)&&(e._a[ze]=e._locale.erasConvertYear(o,e._a[ze])),Hn(e),xn(e)}else Dn(e);else Fn(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
|
953
953
|
// Fallback
|
|
954
954
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
|
955
955
|
// date from string and array of format strings
|
|
956
|
-
function
|
|
956
|
+
function zn(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,s=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Un(t),y(t)&&(s=!0),
|
|
957
957
|
// if there is any input that was not parsed add a penalty for that format
|
|
958
958
|
a+=g(t).charsLeftOver,
|
|
959
959
|
//or tokens
|
|
960
|
-
a+=10*g(t).unusedTokens.length,g(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));m(e,n||t)}function
|
|
960
|
+
a+=10*g(t).unusedTokens.length,g(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));m(e,n||t)}function jn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Hn(e)}}function Vn(e){var t=new _(xn(Wn(e)));return t._nextDay&&(
|
|
961
961
|
// Adding is smart enough around DST
|
|
962
|
-
t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new
|
|
962
|
+
t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new _(xn(t)):(d(t)?e._d=t:a(n)?zn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?On(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):s(t)?jn(e):u(t)?
|
|
963
963
|
// from milliseconds
|
|
964
964
|
e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),
|
|
965
965
|
// object construction must be done this way.
|
|
@@ -975,7 +975,7 @@ r.RFC_2822=function(){};var qn=C("moment().min is deprecated, use moment.max ins
|
|
|
975
975
|
function Qn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
|
976
976
|
// TODO: Use [].sort instead?
|
|
977
977
|
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(o(e,t)&&(-1===Ye.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
|
978
|
-
parseFloat(e[rr[n]])!==ue(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return
|
|
978
|
+
parseFloat(e[rr[n]])!==ue(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return kr(NaN)}function or(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ir(t),
|
|
979
979
|
// representation for dateAddRemove
|
|
980
980
|
this._milliseconds=+u+1e3*c+// 1000
|
|
981
981
|
6e4*l+// 1000 * 60
|
|
@@ -990,9 +990,9 @@ this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function
|
|
|
990
990
|
// compare two arrays, return the number of differences
|
|
991
991
|
function ur(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ue(e[r])!==ue(t[r]))&&s++;return s+a}
|
|
992
992
|
// FORMATTING
|
|
993
|
-
function dr(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+
|
|
993
|
+
function dr(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}dr("Z",":"),dr("ZZ",""),
|
|
994
994
|
// PARSING
|
|
995
|
-
|
|
995
|
+
Ae("Z",Ge),Ae("ZZ",Ge),He(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=mr(Ge,e)}));
|
|
996
996
|
// HELPERS
|
|
997
997
|
// timezone chunker
|
|
998
998
|
// '+10:00' > ['10', '00']
|
|
@@ -1018,15 +1018,15 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1018
1018
|
// a second time. In case it wants us to change the offset again
|
|
1019
1019
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1020
1020
|
// there is no such time in the given timezone.
|
|
1021
|
-
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Ge,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=fr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Ir(this,
|
|
1021
|
+
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Ge,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=fr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Ir(this,kr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:fr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mr(Le,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xr(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Wn(t))._a?(e=t._isUTC?p(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $r(){return!!this.isValid()&&!this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1022
1022
|
// ASP.NET json date format regex
|
|
1023
|
-
r.updateOffset=function(){};var
|
|
1023
|
+
r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1024
1024
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1025
1025
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1026
1026
|
// and further modified to allow for strings containing both week and day
|
|
1027
|
-
|
|
1027
|
+
Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(e,t){var n,r,i,a=e,
|
|
1028
1028
|
// matching against regexp is expensive, do it on demand
|
|
1029
|
-
s=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=
|
|
1029
|
+
s=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=Er.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:ue(s[Ve])*n,h:ue(s[We])*n,m:ue(s[Ze])*n,s:ue(s[Ke])*n,ms:ue(cr(1e3*s[Xe]))*n}):(s=Mr.exec(e))?(n="-"===s[1]?-1:1,a={y:Fr(s[2],n),M:Fr(s[3],n),w:Fr(s[4],n),d:Fr(s[5],n),h:Fr(s[6],n),m:Fr(s[7],n),s:Fr(s[8],n)}):null==a?
|
|
1030
1030
|
// checks for null or undefined
|
|
1031
1031
|
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Gr(Xn(a.from),Xn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),lr(e)&&o(e,"_locale")&&(r._locale=e._locale),lr(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function Fr(e,t){
|
|
1032
1032
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
@@ -1038,14 +1038,14 @@ return(isNaN(n)?0:n)*t}function Lr(e,t){var n={};return n.months=t.month()-e.mon
|
|
|
1038
1038
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1039
1039
|
function Pr(e,t){return function(n,r){var i;
|
|
1040
1040
|
//invert the arguments, but complain about it
|
|
1041
|
-
return null===r||isNaN(+r)||(
|
|
1041
|
+
return null===r||isNaN(+r)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Ir(this,kr(n,r),e),this}}function Ir(e,t,n,i){var a=t._milliseconds,s=cr(t._days),o=cr(t._months);e.isValid()&&(i=null==i||i,o&&ut(e,me(e,"Month")+o*n),s&&pe(e,"Date",me(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,s||o))}kr.fn=or.prototype,kr.invalid=sr;var Ar=Pr(1,"add"),Dr=Pr(-1,"subtract");function Or(e){return"string"==typeof e||e instanceof String}
|
|
1042
1042
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1043
1043
|
function Nr(e){return S(e)||d(e)||Or(e)||u(e)||Hr(e)||Rr(e)||null==e}function Rr(e){var t,n,r=s(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=a.length;for(t=0;t<c;t+=1)n=a[t],i=i||o(e,n);return r&&i}function Hr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Or(e)})).length),t&&n}function Br(e){var t,n,r=s(e)&&!l(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||o(e,n);return r&&i}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){
|
|
1044
1044
|
// Support for single parameter, formats only overload to the calendar function
|
|
1045
1045
|
1===arguments.length&&(arguments[0]?Nr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
1046
1046
|
// We want to compare the start of today, vs this.
|
|
1047
1047
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
1048
|
-
var n=e||Xn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=t&&(
|
|
1048
|
+
var n=e||Xn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=t&&(k(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Xn(n)))}function zr(){return new _(this)}function jr(e,t){var n=S(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=S(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wr(e,t,n,r){var i=S(e)?e:Xn(e),a=S(t)?t:Xn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Zr(e,t){var n,r=S(e)?e:Xn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qr(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(this,r)/3;break;case"second":a=(this-r)/1e3;break;// 1000
|
|
1049
1049
|
case"minute":a=(this-r)/6e4;break;// 1000 * 60
|
|
1050
1050
|
case"hour":a=(this-r)/36e5;break;// 1000 * 60 * 60
|
|
1051
1051
|
case"day":a=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
@@ -1059,7 +1059,7 @@ var n=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
|
1059
1059
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
1060
1060
|
r=e.clone().add(n,"months");
|
|
1061
1061
|
//check for negative zero, return zero if negative zero
|
|
1062
|
-
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):
|
|
1062
|
+
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?
|
|
1063
1063
|
// native implementation is ~50x faster, use it when we can
|
|
1064
1064
|
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
|
1065
1065
|
/**
|
|
@@ -1067,7 +1067,7 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
|
1067
1067
|
* also be evaluated to get a new moment which is the same
|
|
1068
1068
|
*
|
|
1069
1069
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
1070
|
-
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||Xn(e).isValid())?
|
|
1070
|
+
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||Xn(e).isValid())?kr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Xn(),e)}function ai(e,t){return this.isValid()&&(S(e)&&e.isValid()||Xn(e).isValid())?kr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Xn(),e)}
|
|
1071
1071
|
// If passed a locale key, it will set the locale for this
|
|
1072
1072
|
// instance. Otherwise, it will return the locale configuration
|
|
1073
1073
|
// variables for this instance.
|
|
@@ -1077,9 +1077,9 @@ function pi(e,t){return(e%t+t)%t}function fi(e,t,n){
|
|
|
1077
1077
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
1078
1078
|
return e<100&&e>=0?new Date(e+400,t,n)-mi:new Date(e,t,n).valueOf()}function gi(e,t,n){
|
|
1079
1079
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1080
|
-
return e<100&&e>=0?Date.UTC(e+400,t,n)-mi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:fi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=pi(t,di);break;case"second":t=this._d.valueOf(),t-=pi(t,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:fi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-pi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-pi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ui-pi(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function
|
|
1080
|
+
return e<100&&e>=0?Date.UTC(e+400,t,n)-mi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:fi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=pi(t,di);break;case"second":t=this._d.valueOf(),t-=pi(t,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:fi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-pi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-pi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ui-pi(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function xi(){return new Date(this.valueOf())}function _i(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function $i(){
|
|
1081
1081
|
// new Date(NaN).toJSON() === null
|
|
1082
|
-
return this.isValid()?this.toISOString():null}function Ci(){return y(this)}function Ti(){return m({},g(this))}function
|
|
1082
|
+
return this.isValid()?this.toISOString():null}function Ci(){return y(this)}function Ti(){return m({},g(this))}function Ei(){return g(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ki(e,t){var n,i,a,s=this._eras||bn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
|
|
1083
1083
|
// truncate time
|
|
1084
1084
|
a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":
|
|
1085
1085
|
// truncate time
|
|
@@ -1089,40 +1089,40 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
|
|
|
1089
1089
|
// truncate time
|
|
1090
1090
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ii(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1091
1091
|
// truncate time
|
|
1092
|
-
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function
|
|
1092
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ai(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,
|
|
1093
1093
|
// truncate time
|
|
1094
|
-
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function
|
|
1094
|
+
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Di(e){return o(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function Oi(e){return o(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ni(e){return o(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ri(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||ke}function Yi(){var e,t,n=[],r=[],i=[],a=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Ne(s[e].name)),n.push(Ne(s[e].abbr)),i.push(Ne(s[e].narrow)),a.push(Ne(s[e].name)),a.push(Ne(s[e].abbr)),a.push(Ne(s[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
|
|
1095
1095
|
// FORMATTING
|
|
1096
|
-
function
|
|
1096
|
+
function zi(e,t){H(0,[e,e.length],0,t)}
|
|
1097
1097
|
// MOMENTS
|
|
1098
|
-
function
|
|
1098
|
+
function ji(e){return qi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return qi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return $t(this.year(),1,4)}function Zi(){return $t(this.isoWeekYear(),1,4)}function Ki(){var e=this.localeData()._week;return $t(this.year(),e.dow,e.doy)}function Xi(){var e=this.localeData()._week;return $t(this.weekYear(),e.dow,e.doy)}function qi(e,t,n,r,i){var a;return null==e?St(this,r,i).year:(t>(a=$t(e,r,i))&&(t=a),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var a=_t(e,t,n,r,i),s=wt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
|
|
1099
1099
|
// FORMATTING
|
|
1100
1100
|
// MOMENTS
|
|
1101
1101
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
1102
1102
|
// FORMATTING
|
|
1103
|
-
H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),
|
|
1103
|
+
H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ae("N",Ri),Ae("NN",Ri),Ae("NNN",Ri),Ae("NNNN",Hi),Ae("NNNNN",Bi),He(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Ae("y",ke),Ae("yy",ke),Ae("yyy",ke),Ae("yyyy",ke),Ae("yo",Ui),He(["y","yy","yyy","yyyy"],ze),He(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ze]=n._locale.eraYearOrdinalParse(e,i):t[ze]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),
|
|
1104
1104
|
// ALIASES
|
|
1105
1105
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
1106
1106
|
// PRIORITY
|
|
1107
1107
|
se("weekYear",1),se("isoWeekYear",1),
|
|
1108
1108
|
// PARSING
|
|
1109
|
-
|
|
1109
|
+
Ae("G",Fe),Ae("g",Fe),Ae("GG",Se,be),Ae("gg",Se,be),Ae("GGGG",Ee,xe),Ae("gggg",Ee,xe),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),Be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),
|
|
1110
1110
|
// ALIASES
|
|
1111
1111
|
ne("quarter","Q"),
|
|
1112
1112
|
// PRIORITY
|
|
1113
1113
|
se("quarter",7),
|
|
1114
1114
|
// PARSING
|
|
1115
|
-
|
|
1115
|
+
Ae("Q",ve),He("Q",(function(e,t){t[je]=3*(ue(e)-1)})),H("D",["DD",2],"Do","date"),
|
|
1116
1116
|
// ALIASES
|
|
1117
1117
|
ne("date","D"),
|
|
1118
1118
|
// PRIORITY
|
|
1119
1119
|
se("date",9),
|
|
1120
1120
|
// PARSING
|
|
1121
|
-
|
|
1121
|
+
Ae("D",Se),Ae("DD",Se,be),Ae("Do",(function(e,t){
|
|
1122
1122
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
1123
1123
|
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),He(["D","DD"],Ve),He("Do",(function(e,t){t[Ve]=ue(e.match(Se)[0])}));
|
|
1124
1124
|
// MOMENTS
|
|
1125
|
-
var ea=
|
|
1125
|
+
var ea=he("Date",!0);
|
|
1126
1126
|
// FORMATTING
|
|
1127
1127
|
// HELPERS
|
|
1128
1128
|
// MOMENTS
|
|
@@ -1134,15 +1134,15 @@ ne("dayOfYear","DDD"),
|
|
|
1134
1134
|
// PRIORITY
|
|
1135
1135
|
se("dayOfYear",4),
|
|
1136
1136
|
// PARSING
|
|
1137
|
-
|
|
1137
|
+
Ae("DDD",Te),Ae("DDDD",we),He(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),H("m",["mm",2],0,"minute"),
|
|
1138
1138
|
// ALIASES
|
|
1139
1139
|
ne("minute","m"),
|
|
1140
1140
|
// PRIORITY
|
|
1141
1141
|
se("minute",14),
|
|
1142
1142
|
// PARSING
|
|
1143
|
-
|
|
1143
|
+
Ae("m",Se),Ae("mm",Se,be),He(["m","mm"],Ze);
|
|
1144
1144
|
// MOMENTS
|
|
1145
|
-
var na=
|
|
1145
|
+
var na=he("Minutes",!1);
|
|
1146
1146
|
// FORMATTING
|
|
1147
1147
|
H("s",["ss",2],0,"second"),
|
|
1148
1148
|
// ALIASES
|
|
@@ -1150,9 +1150,9 @@ ne("second","s"),
|
|
|
1150
1150
|
// PRIORITY
|
|
1151
1151
|
se("second",15),
|
|
1152
1152
|
// PARSING
|
|
1153
|
-
|
|
1153
|
+
Ae("s",Se),Ae("ss",Se,be),He(["s","ss"],Ke);
|
|
1154
1154
|
// MOMENTS
|
|
1155
|
-
var ra,ia,aa=
|
|
1155
|
+
var ra,ia,aa=he("Seconds",!1);
|
|
1156
1156
|
// FORMATTING
|
|
1157
1157
|
for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
|
|
1158
1158
|
// ALIASES
|
|
@@ -1160,11 +1160,11 @@ ne("millisecond","ms"),
|
|
|
1160
1160
|
// PRIORITY
|
|
1161
1161
|
se("millisecond",16),
|
|
1162
1162
|
// PARSING
|
|
1163
|
-
|
|
1163
|
+
Ae("S",Te,ve),Ae("SS",Te,be),Ae("SSS",Te,we),ra="SSSS";ra.length<=9;ra+="S")Ae(ra,ke);function sa(e,t){t[Xe]=ue(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")He(ra,sa);
|
|
1164
1164
|
// MOMENTS
|
|
1165
|
-
function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=
|
|
1165
|
+
function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=he("Milliseconds",!1),
|
|
1166
1166
|
// FORMATTING
|
|
1167
|
-
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=
|
|
1167
|
+
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=_.prototype;function ua(e){return Xn(1e3*e)}function da(){return Xn.apply(null,arguments).parseZone()}function ha(e){return e}ca.add=Ar,ca.calendar=Yr,ca.clone=zr,ca.diff=qr,ca.endOf=vi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=si,ca.get=fe,ca.invalidAt=Ei,ca.isAfter=jr,ca.isBefore=Vr,ca.isBetween=Wr,ca.isSame=Zr,ca.isSameOrAfter=Kr,ca.isSameOrBefore=Xr,ca.isValid=Ci,ca.lang=li,ca.locale=oi,ca.localeData=ci,ca.max=Jn,ca.min=qn,ca.parsingFlags=Ti,ca.set=ge,ca.startOf=yi,ca.subtract=Dr,ca.toArray=_i,ca.toObject=Si,ca.toDate=xi,ca.toISOString=ei,ca.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=$i,ca.toString=Qr,ca.unix=wi,ca.valueOf=bi,ca.creationData=Mi,ca.eraName=Gi,ca.eraNarrow=Pi,ca.eraAbbr=Ii,ca.eraYear=Ai,ca.year=yt,ca.isLeapYear=vt,ca.weekYear=ji,ca.isoWeekYear=Vi,ca.quarter=ca.quarters=Qi,ca.month=dt,ca.daysInMonth=ht,ca.week=ca.weeks=kt,ca.isoWeek=ca.isoWeeks=Ft,ca.weeksInYear=Ki,ca.weeksInWeekYear=Xi,ca.isoWeeksInYear=Wi,ca.isoWeeksInISOWeekYear=Zi,ca.date=ea,ca.day=ca.days=jt,ca.weekday=Vt,ca.isoWeekday=Wt,ca.dayOfYear=ta,ca.hour=ca.hours=an,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ia,ca.utcOffset=gr,ca.utc=vr,ca.local=br,ca.parseZone=wr,ca.hasAlignedHourOffset=xr,ca.isDST=_r,ca.isLocal=$r,ca.isUtcOffset=Cr,ca.isUtc=Tr,ca.isUTC=Tr,ca.zoneAbbr=oa,ca.zoneName=la,ca.dates=C("dates accessor is deprecated. Use date instead.",ea),ca.months=C("months accessor is deprecated. Use month instead",dt),ca.years=C("years accessor is deprecated. Use year instead",yt),ca.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),ca.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var ma=G.prototype;function pa(e,t,n,r){var i=bn(),a=p().set(r,t);return i[n](a,e)}function fa(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pa(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(e,r,n,"month");return i}
|
|
1168
1168
|
// ()
|
|
1169
1169
|
// (5)
|
|
1170
1170
|
// (fmt, 5)
|
|
@@ -1173,34 +1173,34 @@ H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=x.prototype;function ua(e){r
|
|
|
1173
1173
|
// (true, 5)
|
|
1174
1174
|
// (true, fmt, 5)
|
|
1175
1175
|
// (true, fmt)
|
|
1176
|
-
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=bn(),s=e?a._week.dow:0,o=[];if(null!=n)return pa(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=pa(t,(i+s)%7,r,"day");return o}function ya(e,t){return fa(e,t,"months")}function va(e,t){return fa(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function
|
|
1176
|
+
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=bn(),s=e?a._week.dow:0,o=[];if(null!=n)return pa(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=pa(t,(i+s)%7,r,"day");return o}function ya(e,t){return fa(e,t,"months")}function va(e,t){return fa(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}ma.calendar=I,ma.longDateFormat=V,ma.invalidDate=Z,ma.ordinal=q,ma.preparse=ha,ma.postformat=ha,ma.relativeTime=Q,ma.pastFuture=ee,ma.set=F,ma.eras=ki,ma.erasParse=Fi,ma.erasConvertYear=Li,ma.erasAbbrRegex=Oi,ma.erasNameRegex=Di,ma.erasNarrowRegex=Ni,ma.months=st,ma.monthsShort=ot,ma.monthsParse=ct,ma.monthsRegex=pt,ma.monthsShortRegex=mt,ma.week=Ct,ma.firstDayOfYear=Mt,ma.firstDayOfWeek=Et,ma.weekdays=Ht,ma.weekdaysMin=Ut,ma.weekdaysShort=Bt,ma.weekdaysParse=zt,ma.weekdaysRegex=Zt,ma.weekdaysShortRegex=Kt,ma.weekdaysMinRegex=Xt,ma.isPM=nn,ma.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1177
1177
|
// Side effect imports
|
|
1178
|
-
r.lang=C("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",bn);var
|
|
1178
|
+
r.lang=C("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",bn);var _a=Math.abs;function Sa(){var e=this._data;return this._milliseconds=_a(this._milliseconds),this._days=_a(this._days),this._months=_a(this._months),e.milliseconds=_a(e.milliseconds),e.seconds=_a(e.seconds),e.minutes=_a(e.minutes),e.hours=_a(e.hours),e.months=_a(e.months),e.years=_a(e.years),this}function $a(e,t,n,r){var i=kr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1179
1179
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1180
1180
|
function Ca(e,t){return $a(this,e,t,1)}
|
|
1181
1181
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1182
|
-
function Ta(e,t){return $a(this,e,t,-1)}function
|
|
1182
|
+
function Ta(e,t){return $a(this,e,t,-1)}function Ea(e){return e<0?Math.floor(e):Math.ceil(e)}function Ma(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;
|
|
1183
1183
|
// if we have a mix of positive and negative values, bubble down first
|
|
1184
1184
|
// check: https://github.com/moment/moment/issues/2166
|
|
1185
|
-
return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*
|
|
1185
|
+
return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ea(Fa(o)+s),s=0,o=0),
|
|
1186
1186
|
// The following code bubbles up values, see the tests for
|
|
1187
1187
|
// examples of what that means.
|
|
1188
1188
|
l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,s+=ce(n/24),o+=
|
|
1189
1189
|
// convert days to months
|
|
1190
|
-
i=ce(
|
|
1190
|
+
i=ce(ka(s)),s-=Ea(Fa(i)),
|
|
1191
1191
|
// 12 months -> 1 year
|
|
1192
|
-
r=ce(o/12),o%=12,l.days=s,l.months=o,l.years=r,this}function
|
|
1192
|
+
r=ce(o/12),o%=12,l.days=s,l.months=o,l.years=r,this}function ka(e){
|
|
1193
1193
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
1194
1194
|
// 400 years have 12 months === 4800
|
|
1195
1195
|
return 4800*e/146097}function Fa(e){
|
|
1196
1196
|
// the reverse of daysToMonths
|
|
1197
|
-
return 146097*e/4800}function La(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+
|
|
1197
|
+
return 146097*e/4800}function La(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+ka(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
|
1198
1198
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
1199
1199
|
t=this._days+Math.round(Fa(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
|
|
1200
1200
|
// Math.floor prevents floating point math errors here
|
|
1201
1201
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1202
1202
|
// TODO: Use this.as('ms')?
|
|
1203
|
-
function Ga(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Pa(e){return function(){return this.as(e)}}var Ia=Pa("ms"),
|
|
1203
|
+
function Ga(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Pa(e){return function(){return this.as(e)}}var Ia=Pa("ms"),Aa=Pa("s"),Da=Pa("m"),Oa=Pa("h"),Na=Pa("d"),Ra=Pa("w"),Ha=Pa("M"),Ba=Pa("Q"),Ua=Pa("y");function Ya(){return kr(this)}function za(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function ja(e){return function(){return this.isValid()?this._data[e]:NaN}}var Va=ja("milliseconds"),Wa=ja("seconds"),Za=ja("minutes"),Ka=ja("hours"),Xa=ja("days"),qa=ja("months"),Ja=ja("years");function Qa(){return ce(this.days()/7)}var es=Math.round,ts={ss:44,// a few seconds to seconds
|
|
1204
1204
|
s:45,// seconds to minute
|
|
1205
1205
|
m:45,// minutes to hour
|
|
1206
1206
|
h:22,// hours to day
|
|
@@ -1208,7 +1208,7 @@ d:26,// days to month/week
|
|
|
1208
1208
|
w:null,// weeks to month
|
|
1209
1209
|
M:11};
|
|
1210
1210
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
1211
|
-
function ns(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function rs(e,t,n,r){var i=
|
|
1211
|
+
function ns(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function rs(e,t,n,r){var i=kr(e).abs(),a=es(i.as("s")),s=es(i.as("m")),o=es(i.as("h")),l=es(i.as("d")),c=es(i.as("M")),u=es(i.as("w")),d=es(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ns.apply(null,h)}
|
|
1212
1212
|
// This function allows you to set the rounding function for relative time strings
|
|
1213
1213
|
function is(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}
|
|
1214
1214
|
// This function allows you to set a threshold for relative time strings
|
|
@@ -1226,13 +1226,13 @@ e=ce(l/60),t=ce(e/60),l%=60,e%=60,
|
|
|
1226
1226
|
// 12 months -> 1 year
|
|
1227
1227
|
n=ce(u/12),u%=12,
|
|
1228
1228
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1229
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=ls(this._months)!==ls(d)?"-":"",s=ls(this._days)!==ls(d)?"-":"",o=ls(this._milliseconds)!==ls(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var us=or.prototype;return us.isValid=ar,us.abs=Sa,us.add=Ca,us.subtract=Ta,us.as=La,us.asMilliseconds=Ia,us.asSeconds=
|
|
1229
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=ls(this._months)!==ls(d)?"-":"",s=ls(this._days)!==ls(d)?"-":"",o=ls(this._milliseconds)!==ls(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var us=or.prototype;return us.isValid=ar,us.abs=Sa,us.add=Ca,us.subtract=Ta,us.as=La,us.asMilliseconds=Ia,us.asSeconds=Aa,us.asMinutes=Da,us.asHours=Oa,us.asDays=Na,us.asWeeks=Ra,us.asMonths=Ha,us.asQuarters=Ba,us.asYears=Ua,us.valueOf=Ga,us._bubble=Ma,us.clone=Ya,us.get=za,us.milliseconds=Va,us.seconds=Wa,us.minutes=Za,us.hours=Ka,us.days=Xa,us.weeks=Qa,us.months=qa,us.years=Ja,us.humanize=ss,us.toISOString=cs,us.toString=cs,us.toJSON=cs,us.locale=oi,us.localeData=ci,us.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),us.lang=li,
|
|
1230
1230
|
// FORMATTING
|
|
1231
1231
|
H("X",0,0,"unix"),H("x",0,0,"valueOf"),
|
|
1232
1232
|
// PARSING
|
|
1233
|
-
|
|
1233
|
+
Ae("x",Fe),Ae("X",Pe),He("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),He("x",(function(e,t,n){n._d=new Date(ue(e))})),
|
|
1234
1234
|
//! moment.js
|
|
1235
|
-
r.version="2.29.4",i(Xn),r.fn=ca,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ua,r.months=ya,r.isDate=d,r.locale=gn,r.invalid=v,r.duration=
|
|
1235
|
+
r.version="2.29.4",i(Xn),r.fn=ca,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ua,r.months=ya,r.isDate=d,r.locale=gn,r.invalid=v,r.duration=kr,r.isMoment=S,r.weekdays=ba,r.parseZone=da,r.localeData=bn,r.isDuration=lr,r.monthsShort=va,r.weekdaysMin=xa,r.defineLocale=yn,r.updateLocale=vn,r.locales=wn,r.weekdaysShort=wa,r.normalizeUnits=re,r.relativeTimeRounding=is,r.relativeTimeThreshold=as,r.calendarFormat=Ur,r.prototype=ca,
|
|
1236
1236
|
// currently HTML5 input type only supports 24-hour formats
|
|
1237
1237
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
1238
1238
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -1242,224 +1242,222 @@ TIME:"HH:mm",// <input type="time" />
|
|
|
1242
1242
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
|
1243
1243
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
1244
1244
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
1245
|
-
MONTH:"YYYY-MM"},r}()}));function
|
|
1245
|
+
MONTH:"YYYY-MM"},r}()}));function _r(e,t){Un(e,t)}const Sr={en:{gameThumbnail:{playNow:"Start now!",new:"NEW",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},"zh-hk":{gameThumbnail:{playNow:"現在開始!",new:"新的",hot:"熱的",opens:"打開 ",full:"滿桌 - 下注",dealer:"經銷商"}},de:{gameThumbnail:{playNow:"Jetzt beginnen!",new:"NEU",hot:"Hot",opens:"Öffnet ",full:"full - bet behind",dealer:"Dealer"}},it:{gameThumbnail:{playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT",
|
|
1246
1246
|
// TODO: translate all other supported languages
|
|
1247
|
-
opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnail:{playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre ",full:"Table pleine - pari derrière",dealer:"Concessionnaire"}},es:{gameThumbnail:{playNow:"Juega ahora!",new:"NUEVO",hot:"HOT",opens:"Abiertas",full:"Mesa llena - Apostar de pie",dealer:"Dealer"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK",opens:"Açılır ",full:"masa dolu - bet behind",dealer:"Dealer"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir ",full:"Mesa cheia - aposta atrás",dealer:"Dealer"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}}}
|
|
1247
|
+
opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnail:{playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre ",full:"Table pleine - pari derrière",dealer:"Concessionnaire"}},es:{gameThumbnail:{playNow:"Juega ahora!",new:"NUEVO",hot:"HOT",opens:"Abiertas",full:"Mesa llena - Apostar de pie",dealer:"Dealer"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK",opens:"Açılır ",full:"masa dolu - bet behind",dealer:"Dealer"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir ",full:"Mesa cheia - aposta atrás",dealer:"Dealer"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}}},$r={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};
|
|
1248
1248
|
/* eslint-disable quote-props */
|
|
1249
1249
|
/* ../casino-game-thumbnail/src/CasinoGameThumbnail.svelte generated by Svelte v3.58.0 */
|
|
1250
|
-
function
|
|
1250
|
+
function Cr(e,t,n){const r=e.slice();return r[109]=t[n],r[111]=n,r}function Tr(e,t,n){const r=e.slice();return r[106]=t[n],r}
|
|
1251
1251
|
// (573:8) {:else}
|
|
1252
|
-
function Er(t){let n;return{c(){n=f("div"),n.innerHTML="<div></div><div></div>",
|
|
1252
|
+
function Er(t){let n;return{c(){n=f("div"),n.innerHTML="<div></div><div></div>",x(n,"class","LoaderRipple")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1253
1253
|
// (558:8) {#if fav}
|
|
1254
|
-
function Mr(e){let t,n=!
|
|
1254
|
+
function Mr(e){let t,n=!fr(/*userAgent*/e[37])&&!/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15],r=n&&kr(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),h(e,t,n)},p(e,i){/*gamefavorite, isLoggedIn*/32769&i[0]&&(n=!fr(/*userAgent*/e[37])&&!/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15]),n?r?r.p(e,i):(r=kr(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
|
1255
1255
|
// (559:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
1256
|
-
function
|
|
1256
|
+
function kr(t){let n,r,i;return{c(){n=f("div"),n.innerHTML='<svg version="1.1" class="UnfavoredIcon" part="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',x(n,"class","FavIconContainer"),x(n,"part","FavIconContainer")},m(e,a){h(e,n,a),r||(i=w(n,"click",/*click_handler*/t[67]),r=!0)},p:e,d(e){e&&m(n),r=!1,i()}}}
|
|
1257
1257
|
// (577:8) {#if lang}
|
|
1258
|
-
function
|
|
1258
|
+
function Fr(e){let t,n,r,i,a=/*$_*/e[36]("gameThumbnail.playNow")+"";return{c(){t=f("button"),n=y(a),x(t,"class","GameInfoBtn"),x(t,"part","GameInfoBtn")},m(a,s){h(a,t,s),d(t,n),r||(i=w(t,"click",/*click_handler_1*/e[68]),r=!0)},p(e,t){/*$_*/32&t[1]&&a!==(a=/*$_*/e[36]("gameThumbnail.playNow")+"")&&S(n,a)},d(e){e&&m(t),r=!1,i()}}}
|
|
1259
1259
|
// (591:77)
|
|
1260
|
-
function
|
|
1260
|
+
function Lr(t){let n;return{c(){n=f("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',x(n,"class","FavIconContainer"),x(n,"part","FavIconContainer")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1261
1261
|
// (585:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
|
|
1262
|
-
function
|
|
1262
|
+
function Gr(t){let n,r,i;return{c(){n=f("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',x(n,"class","FavIconContainer"),x(n,"part","FavIconContainer")},m(e,a){h(e,n,a),r||(i=w(n,"click",/*click_handler_2*/t[69]),r=!0)},p:e,d(e){e&&m(n),r=!1,i()}}}
|
|
1263
1263
|
// (599:6) {#if gameisnew}
|
|
1264
|
-
function
|
|
1264
|
+
function Pr(e){let t,n,r=/*$_*/e[36]("gameThumbnail.new")+"";return{c(){t=f("span"),n=y(r),x(t,"class","GameExtraInfoLabel NewGameTag"),x(t,"part","GameExtraInfoLabel NewGameTag")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/32&t[1]&&r!==(r=/*$_*/e[36]("gameThumbnail.new")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1265
1265
|
// (602:6) {#if gametag}
|
|
1266
|
-
function
|
|
1266
|
+
function Ir(e){let t,n;return{c(){t=f("span"),n=y(/*gametag*/e[8]),x(t,"class","GameExtraInfoLabel PopularGameTag"),x(t,"part","GameExtraInfoLabel PopularGameTag")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*gametag*/256&t[0]&&S(n,/*gametag*/e[8])},d(e){e&&m(t)}}}
|
|
1267
1267
|
// (605:6) {#if livegamedata}
|
|
1268
|
-
function Ar(e){let t,n,r=!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]&&
|
|
1269
|
-
return e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===
|
|
1268
|
+
function Ar(e){let t,n,r=!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]&&Dr(e);function i(e,t){/*isopen*/
|
|
1269
|
+
return e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===Zr?Nr:/*isopen*/e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===Kr?Or:void 0}let a=i(e),s=a&&a(e);return{c(){r&&r.c(),t=v(),s&&s.c(),n=b()},m(e,i){r&&r.m(e,i),h(e,t,i),s&&s.m(e,i),h(e,n,i)},p(e,o){!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]?r?r.p(e,o):(r=Dr(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a===(a=i(e))&&s?s.p(e,o):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(n.parentNode,n)))},d(e){r&&r.d(e),e&&m(t),s&&s.d(e),e&&m(n)}}}
|
|
1270
1270
|
// (606:8) {#if !isopen && starttime && timeformat}
|
|
1271
|
-
function
|
|
1271
|
+
function Dr(e){let t,n,r,i,a,s,o,l,c,u,p=/*$_*/e[36]("gameThumbnail.opens")+"",g=xr.utc(/*starttime*/e[21]).local().format(/*timeformat*/e[22])+"",b=/*renderDealerName*/e[46](/*dealername*/e[35])+"",w=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"";return{c(){t=f("div"),n=f("div"),r=y(p),i=v(),a=f("span"),s=y(g),o=v(),l=new $(!1),c=v(),u=new $(!1),x(n,"class","ClosedGame"),x(n,"part","ClosedGame"),l.a=c,u.a=null,x(t,"class","GameProp LiveProps"),x(t,"part","GameProp LiveProps")},m(e,m){h(e,t,m),d(t,n),d(n,r),d(n,i),d(n,a),d(a,s),d(t,o),l.m(b,t),d(t,c),u.m(w,t)},p(e,t){/*$_*/32&t[1]&&p!==(p=/*$_*/e[36]("gameThumbnail.opens")+"")&&S(r,p),/*starttime, timeformat*/6291456&t[0]&&g!==(g=xr.utc(/*starttime*/e[21]).local().format(/*timeformat*/e[22])+"")&&S(s,g),/*dealername*/16&t[1]&&b!==(b=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&l.p(b),/*min, max, currencySymbol*/469762048&t[0]&&w!==(w=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&u.p(w)},d(e){e&&m(t)}}}
|
|
1272
1272
|
// (639:68)
|
|
1273
|
-
function
|
|
1274
|
-
/*div0_binding*/e[70](n),d(t,r),i.m(o,t),d(t,a),s.m(l,t)},p(e,r){if(/*roulleteresults, isdouble*/1073750016&r[0]|/*renderSpan, colorsourcearray*/65538&r[1]){let t;for(c=new Array(
|
|
1273
|
+
function Or(e){let t,n,r,i,a,s,o=/*renderDealerName*/e[46](/*dealername*/e[35])+"",l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"",c=new Array(qr),u=[];for(let t=0;t<c.length;t+=1)u[t]=Ur(Cr(e,c,t));return{c(){t=f("div"),n=f("div");for(let e=0;e<u.length;e+=1)u[e].c();r=v(),i=new $(!1),a=v(),s=new $(!1),x(n,"class","LiveIcons"),x(n,"part","LiveIcons"),i.a=a,s.a=null,x(t,"class",/*roulettecontainerclassname*/e[31]),x(t,"part",/*roulettecontainerclassname*/e[31])},m(c,m){h(c,t,m),d(t,n);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(n,null);
|
|
1274
|
+
/*div0_binding*/e[70](n),d(t,r),i.m(o,t),d(t,a),s.m(l,t)},p(e,r){if(/*roulleteresults, isdouble*/1073750016&r[0]|/*renderSpan, colorsourcearray*/65538&r[1]){let t;for(c=new Array(qr),t=0;t<c.length;t+=1){const i=Cr(e,c,t);u[t]?u[t].p(i,r):(u[t]=Ur(i),u[t].c(),u[t].m(n,null))}for(;t<u.length;t+=1)u[t].d(1);u.length=c.length}/*dealername*/16&r[1]&&o!==(o=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&i.p(o),/*min, max, currencySymbol*/469762048&r[0]&&l!==(l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&s.p(l),/*roulettecontainerclassname*/1&r[1]&&x(t,"class",/*roulettecontainerclassname*/e[31]),/*roulettecontainerclassname*/1&r[1]&&x(t,"part",/*roulettecontainerclassname*/e[31])},d(n){n&&m(t),p(u,n),
|
|
1275
1275
|
/*div0_binding*/e[70](null)}}}
|
|
1276
1276
|
// (618:8) {#if isopen && displaytype && displaytype === BLACKJACK}
|
|
1277
|
-
function
|
|
1278
|
-
return e[33]?zr:
|
|
1277
|
+
function Nr(e){let t,n,r,i,a,s,o=/*renderDealerName*/e[46](/*dealername*/e[35])+"",l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"";function c(e,t){/*istablefull*/
|
|
1278
|
+
return e[33]?zr:Yr}let u=c(e),p=u(e);return{c(){t=f("div"),n=f("div"),p.c(),r=v(),i=new $(!1),a=v(),s=new $(!1),x(n,"class","LiveIcons"),x(n,"part","LiveIcons"),i.a=a,s.a=null,x(t,"class","GameProp LiveProps BlackjackDisplay"),x(t,"part","GameProp LiveProps BlackjackDisplay")},m(e,c){h(e,t,c),d(t,n),p.m(n,null),d(t,r),i.m(o,t),d(t,a),s.m(l,t)},p(e,t){u===(u=c(e))&&p?p.p(e,t):(p.d(1),p=u(e),p&&(p.c(),p.m(n,null))),/*dealername*/16&t[1]&&o!==(o=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&i.p(o),/*min, max, currencySymbol*/469762048&t[0]&&l!==(l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&s.p(l)},d(e){e&&m(t),p.d()}}}
|
|
1279
1279
|
// (643:16) {#if roulleteresults && roulleteresults[i]}
|
|
1280
|
-
function
|
|
1281
|
-
return e[30]?
|
|
1280
|
+
function Rr(e){let t;function n(e,t){/*isdouble*/
|
|
1281
|
+
return e[30]?Br:Hr}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),h(e,t,n)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
|
1282
1282
|
// (649:18) {:else}
|
|
1283
|
-
function
|
|
1283
|
+
function Hr(e){let t,n,r=/*renderSpan*/e[47]("LatestResult "/*i*/+(/*i*/0===e[111]?"First":""),e[111],/*roulleteresults*/e[13][/*i*/e[111]],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]]])+"";return{c(){t=new $(!1),n=b(),t.a=n},m(e,i){t.m(r,e,i),h(e,n,i)},p(e,n){/*roulleteresults*/8192&n[0]|/*colorsourcearray*/2&n[1]&&r!==(r=/*renderSpan*/e[47]("LatestResult "/*i*/+(/*i*/0===e[111]?"First":""),e[111],/*roulleteresults*/e[13][/*i*/e[111]],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]]])+"")&&t.p(r)},d(e){e&&m(n),e&&t.d()}}}
|
|
1284
1284
|
// (644:18) {#if isdouble}
|
|
1285
|
-
function
|
|
1285
|
+
function Br(e){let t,n,r,i,a,s=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`first${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][0]}`/*roulleteresults*/,e[13][/*i*/e[111]][0],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][0]])+"",o=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`second${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][1]}`/*roulleteresults*/,e[13][/*i*/e[111]][1],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][1]])+"";return{c(){t=f("div"),n=new $(!1),r=v(),i=new $(!1),a=v(),n.a=r,i.a=a,x(t,"class","Double"),x(t,"part","Double")},m(e,l){h(e,t,l),n.m(s,t),d(t,r),i.m(o,t),d(t,a)},p(e,t){/*roulleteresults*/8192&t[0]|/*colorsourcearray*/2&t[1]&&s!==(s=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`first${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][0]}`/*roulleteresults*/,e[13][/*i*/e[111]][0],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][0]])+"")&&n.p(s),/*roulleteresults*/8192&t[0]|/*colorsourcearray*/2&t[1]&&o!==(o=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`second${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][1]}`/*roulleteresults*/,e[13][/*i*/e[111]][1],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][1]])+"")&&i.p(o)},d(e){e&&m(t)}}}
|
|
1286
1286
|
// (642:14) {#each new Array(numberofdisplayedresults) as garbage, i}
|
|
1287
|
-
function
|
|
1287
|
+
function Ur(e){let t,n=/*roulleteresults*/e[13]&&/*roulleteresults*/e[13][/*i*/e[111]]&&Rr(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,r){/*roulleteresults*/e[13]&&/*roulleteresults*/e[13][/*i*/e[111]]?n?n.p(e,r):(n=Rr(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1288
1288
|
// (625:14) {:else}
|
|
1289
|
-
function
|
|
1289
|
+
function Yr(e){let t,n=/*seats*/e[25],r=[];for(let t=0;t<n.length;t+=1)r[t]=jr(Tr(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);h(e,t,n)},p(e,i){if(/*currentoccupiedseats, seats*/570425344&i[0]|/*contains*/8192&i[1]){let a;for(n=/*seats*/e[25],a=0;a<n.length;a+=1){const s=Tr(e,n,a);r[a]?r[a].p(s,i):(r[a]=jr(s),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(e){p(r,e),e&&m(t)}}}
|
|
1290
1290
|
// (621:14) {#if istablefull}
|
|
1291
|
-
function zr(e){let t,n,r=/*$_*/e[36]("gameThumbnail.full")+"";return{c(){t=f("span"),n=y(r),
|
|
1291
|
+
function zr(e){let t,n,r=/*$_*/e[36]("gameThumbnail.full")+"";return{c(){t=f("span"),n=y(r),x(t,"class","FullTable"),x(t,"part","FullTable")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/32&t[1]&&r!==(r=/*$_*/e[36]("gameThumbnail.full")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1292
1292
|
// (626:16) {#each seats as seatData}
|
|
1293
|
-
function
|
|
1293
|
+
function jr(e){let t,n,r,i,a,s,o;return{c(){t=f("span"),n=g("svg"),r=g("path"),i=g("path"),a=v(),x(r,"d","M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"),x(i,"d","M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"),x(n,"xmlns","http://www.w3.org/2000/svg"),x(n,"width","13"),x(n,"height","14"),x(n,"viewBox","0 0 13 14"),x(t,"class",s=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat"),x(t,"part",o=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")},m(e,s){h(e,t,s),d(t,n),d(n,r),d(n,i),d(t,a)},p(e,n){/*currentoccupiedseats, seats*/570425344&n[0]&&s!==(s=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")&&x(t,"class",s),/*currentoccupiedseats, seats*/570425344&n[0]&&o!==(o=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")&&x(t,"part",o)},d(e){e&&m(t)}}}
|
|
1294
1294
|
// (662:2) {#if showgamename}
|
|
1295
|
-
function
|
|
1296
|
-
return e[16]?Mr:Er}let W=V(t),Z=W(t),K=/*lang*/t[1]&&
|
|
1297
|
-
return 32773&t[0]&&(G=null),/*gamefavorite, isLoggedIn, favorites*/32773&t[0]&&(P=null),null==G&&(G=!(
|
|
1298
|
-
/*img_binding*/t[66](a),d(i,u),d(i,p),d(p,g),Z.m(g,null),d(g,b),d(g,
|
|
1299
|
-
/*div4_binding*/,t[71](n),Y||(
|
|
1295
|
+
function Vr(e){let t,n;return{c(){t=f("p"),n=y(/*gamename*/e[4]),x(t,"class","GameNameBelow"),x(t,"part","GameNameBelow"),x(t,"title",/*gamename*/e[4])},m(e,r){h(e,t,r),d(t,n)},p(e,r){/*gamename*/16&r[0]&&S(n,/*gamename*/e[4]),/*gamename*/16&r[0]&&x(t,"title",/*gamename*/e[4])},d(e){e&&m(t)}}}function Wr(t){let n,i,a,s,o,c,u,p,g,b,_,$,C,T,E,M,k,F,L,G,P,I,A,D,O,N,R,H,B,U,Y,z,j=/*gamevendor*/(t[5]?/*gamevendor*/t[5]:"-")+"";function V(e,t){/*fav*/
|
|
1296
|
+
return e[16]?Mr:Er}let W=V(t),Z=W(t),K=/*lang*/t[1]&&Fr(t);function X(e,t){/*gamefavorite, isLoggedIn, favorites*/
|
|
1297
|
+
return 32773&t[0]&&(G=null),/*gamefavorite, isLoggedIn, favorites*/32773&t[0]&&(P=null),null==G&&(G=!(fr(/*userAgent*/e[37])||/*gamefavorite*/!e[0]||/*isLoggedIn*/!e[15]||/*favorites*/!e[2])),G?Gr:(null==P&&(P=!!(fr(/*userAgent*/e[37])&&/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15]&&/*favorites*/e[2])),P?Lr:void 0)}let q=X(t,[-1,-1,-1,-1]),J=q&&q(t),Q=/*gameisnew*/t[7]&&Pr(t),ee=/*gametag*/t[8]&&Ir(t),te=/*livegamedata*/t[12]&&Ar(t),ne=/*showgamename*/t[10]&&Vr(t);return{c(){n=f("div"),i=f("div"),a=f("img"),u=v(),p=f("div"),g=f("div"),Z.c(),b=v(),_=f("p"),$=y(/*gamename*/t[4]),C=v(),K&&K.c(),M=v(),k=f("span"),F=y(j),L=v(),J&&J.c(),I=v(),A=f("div"),Q&&Q.c(),D=v(),ee&&ee.c(),O=v(),te&&te.c(),H=v(),ne&&ne.c(),this.c=e,l(a.src,s=/*gamethumbnail*/t[3])||x(a,"src",s),x(a,"class",o=`GameBg GameBg-${/*gamecellsize*/t[9]} ${/*hover*/t[17]?"GameContainerHovered":""} ${/*loaded*/t[18]?"Loaded":""}`),x(a,"part",c="GameBg "+(/*hover*/t[17]?"GameContainerHovered":"")+" "+(/*loaded*/t[18]?"Loaded":"")),x(a,"alt",""),x(a,"loading","lazy"),x(_,"class","GameInfoName"),x(_,"part","GameInfoName"),x(_,"title",/*gamename*/t[4]),x(g,"class",T="GameInfo "+(/*hover*/t[17]?"GameHovered":"")),x(g,"part",E="GameInfo "+(/*hover*/t[17]?"GameHovered":"")),x(k,"class","GameInfoVendor"),x(k,"part","GameInfoVendor"),x(p,"class","GameInfoWrapper"),x(p,"part","GameInfoWrapper"),x(A,"class","GameExtraInfo"),x(A,"part","GameExtraInfo"),x(i,"class",N="GameInnerContainer "+(/*livegamedata*/t[12]&&!/*isopen*/t[23]&&/*openhours*/t[24].value||/*livegamedata*/t[12]&&/*istablefull*/t[33]?"GameInnerContainerUnavailable":"")),x(i,"part",R="GameInnerContainer "+(/*livegamedata*/t[12]&&!/*isopen*/t[23]||/*livegamedata*/t[12]&&/*istablefull*/t[33]?"GameInnerContainerUnavailable":"")),x(n,"class",B=`GameContainer ${/*extraclassname*/t[34]}`),x(n,"part",U=`GameContainer ${/*extraclassname*/t[34]}`)},m(e,r){h(e,n,r),d(n,i),d(i,a),
|
|
1298
|
+
/*img_binding*/t[66](a),d(i,u),d(i,p),d(p,g),Z.m(g,null),d(g,b),d(g,_),d(_,$),d(g,C),K&&K.m(g,null),d(p,M),d(p,k),d(k,F),d(i,L),J&&J.m(i,null),d(i,I),d(i,A),Q&&Q.m(A,null),d(A,D),ee&&ee.m(A,null),d(A,O),te&&te.m(A,null),d(n,H),ne&&ne.m(n,null)
|
|
1299
|
+
/*div4_binding*/,t[71](n),Y||(z=[w(i,"mouseenter",/*gameHover*/t[42]),w(i,"mouseleave",/*gameBlur*/t[43]),w(i,"touchstart",/*gameTouch*/t[40],{passive:!0}),w(i,"touchend",/*gameTouchEnd*/t[41],{passive:!0})],Y=!0)},p(e,t){/*gamethumbnail*/8&t[0]&&!l(a.src,s=/*gamethumbnail*/e[3])&&x(a,"src",s),/*gamecellsize, hover, loaded*/393728&t[0]&&o!==(o=`GameBg GameBg-${/*gamecellsize*/e[9]} ${/*hover*/e[17]?"GameContainerHovered":""} ${/*loaded*/e[18]?"Loaded":""}`)&&x(a,"class",o),/*hover, loaded*/393216&t[0]&&c!==(c="GameBg "+(/*hover*/e[17]?"GameContainerHovered":"")+" "+(/*loaded*/e[18]?"Loaded":""))&&x(a,"part",c),W===(W=V(e))&&Z?Z.p(e,t):(Z.d(1),Z=W(e),Z&&(Z.c(),Z.m(g,b))),/*gamename*/16&t[0]&&S($,/*gamename*/e[4]),/*gamename*/16&t[0]&&x(_,"title",/*gamename*/e[4]),/*lang*/e[1]?K?K.p(e,t):(K=Fr(e),K.c(),K.m(g,null)):K&&(K.d(1),K=null),/*hover*/131072&t[0]&&T!==(T="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&x(g,"class",T),/*hover*/131072&t[0]&&E!==(E="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&x(g,"part",E),/*gamevendor*/32&t[0]&&j!==(j=/*gamevendor*/(e[5]?/*gamevendor*/e[5]:"-")+"")&&S(F,j),q===(q=X(e,t))&&J?J.p(e,t):(J&&J.d(1),J=q&&q(e),J&&(J.c(),J.m(i,I))),/*gameisnew*/e[7]?Q?Q.p(e,t):(Q=Pr(e),Q.c(),Q.m(A,D)):Q&&(Q.d(1),Q=null),/*gametag*/e[8]?ee?ee.p(e,t):(ee=Ir(e),ee.c(),ee.m(A,O)):ee&&(ee.d(1),ee=null),/*livegamedata*/e[12]?te?te.p(e,t):(te=Ar(e),te.c(),te.m(A,null)):te&&(te.d(1),te=null),/*livegamedata, isopen, openhours*/25169920&t[0]|/*istablefull*/4&t[1]&&N!==(N="GameInnerContainer "+(/*livegamedata*/e[12]&&!/*isopen*/e[23]&&/*openhours*/e[24].value||/*livegamedata*/e[12]&&/*istablefull*/e[33]?"GameInnerContainerUnavailable":""))&&x(i,"class",N),/*livegamedata, isopen*/8392704&t[0]|/*istablefull*/4&t[1]&&R!==(R="GameInnerContainer "+(/*livegamedata*/e[12]&&!/*isopen*/e[23]||/*livegamedata*/e[12]&&/*istablefull*/e[33]?"GameInnerContainerUnavailable":""))&&x(i,"part",R),/*showgamename*/e[10]?ne?ne.p(e,t):(ne=Vr(e),ne.c(),ne.m(n,null)):ne&&(ne.d(1),ne=null),/*extraclassname*/8&t[1]&&B!==(B=`GameContainer ${/*extraclassname*/e[34]}`)&&x(n,"class",B),/*extraclassname*/8&t[1]&&U!==(U=`GameContainer ${/*extraclassname*/e[34]}`)&&x(n,"part",U)},i:e,o:e,d(e){e&&m(n)
|
|
1300
1300
|
/*img_binding*/,t[66](null),Z.d(),K&&K.d(),J&&J.d(),Q&&Q.d(),ee&&ee.d(),te&&te.d(),ne&&ne.d()
|
|
1301
|
-
/*div4_binding*/,t[71](null),Y=!1,r(
|
|
1301
|
+
/*div4_binding*/,t[71](null),Y=!1,r(z)}}}const Zr="blackjack",Kr="roulette",Xr="doubleballroulette",qr=5;function Jr(e,t,n){let r;u(e,pr,(e=>n(36,r=e)));let i,a,s,o,l,c,d,h,m,p,f,g,y,v,b,w,x,_,S,$,C,T,M,F,L,{session:G=""}=t,{userid:P=""}=t,{lang:I="en"}=t,{clientstyling:D=""}=t,{clientstylingurl:O=""}=t,{translationurl:N=""}=t,{favorites:R=""}=t,{gamethumbnail:H=""}=t,{gamename:B=""}=t,{gamevendor:U=""}=t,{gameid:Y=""}=t,{gameisnew:z=""}=t,{gametag:j=""}=t,{gamefunmode:V=!1}=t,{searchitem:W=!1}=t,{gamefavorite:Z=!1}=t,{gamecellsize:K=""}=t,{showfavoredcategory:X=!1}=t,{showgamename:q=!1}=t,{currency:J=""}=t,{gamepagemodalurl:Q="false"}=t,{endpoint:ee=""}=t,{livelobbyendpoint:te=""}=t,{connectlive:ne=""}=t,{visibilityconnect:re=""}=t,{integratedgameframedesktop:ie="false"}=t,{integratedgameframemobile:ae="false"}=t,se=!1,oe=!1,le=!1,ce=window.navigator.userAgent,ue="HH:mm",de={},he=[],me="EUR",pe="";const fe=[Zr],ge=[Kr,Xr],ye={"01":"Yellow","02":"Blue",10:"Green",40:"Red","05":"Purple",20:"Orange",X7:"Gold",X2:"Gold"},ve={1:"Red",3:"Red",5:"Red",7:"Red",9:"Red",12:"Red",14:"Red",16:"Red",18:"Red",19:"Red",21:"Red",23:"Red",25:"Red",27:"Red",30:"Red",32:"Red",34:"Red",36:"Red",2:"Black",4:"Black",6:"Black",8:"Black",10:"Black",11:"Black",13:"Black",15:"Black",17:"Black",20:"Black",22:"Black",24:"Black",26:"Black",28:"Black",29:"Black",31:"Black",33:"Black",35:"Black",0:"Green","00":"Green"};Object.keys(Sr).forEach((e=>{_r(e,Sr[e])}));const be=e=>{e.data.type!==`AddFavoriteThumbnail_${Y}`||X||n(0,Z=!0),e.data.type!==`RemoveFavoriteThumbnail_${Y}`||X||n(0,Z=!1),"UserSessionID"===e.data.type&&(n(15,se=!0),e.data.session,i=e.data.userID),"CategoryUpdate"===e.data.type&&n(12,o=null)},we=e=>{window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href),
|
|
1302
1302
|
//Analytics event -- if game was searched
|
|
1303
1303
|
"function"==typeof gtag&>ag("event","OpenGame",{context:"GameThumbnail--Searched",gameId:`${e}`,userId:`${i||"Not logged in"}`}),
|
|
1304
1304
|
// Case mobile
|
|
1305
|
-
|
|
1305
|
+
fr(ce)&&"true"==ae?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:V,gamepagemodalurl:Q,isMobile:fr(ce),source:"GameThumbnail",identifier:"Lobby"},window.location.href):fr(ce)&&"false"==ae&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:fr(ce)},window.location.href),
|
|
1306
1306
|
// Case desktop
|
|
1307
|
-
|
|
1307
|
+
fr(ce)||"true"!=ie?fr(ce)||"false"!=ie||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:fr(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:V,gamepagemodalurl:Q,isMobile:fr(ce),identifier:"Lobby"},window.location.href)},xe=e=>{let t="thumbnail";Z?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},_e=()=>{var e;e=I,nr.set(e)},Se=()=>{te&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${ee}/encoder/lobby/updates/${U}/${Y}`),l.addEventListener("message",Ce))},$e=()=>{l&&(l.close(),l=void 0)},Ce=async e=>{const{type:t,data:r}=e;let i;if("message"===t){if(r)try{i=JSON.parse(r)}catch(e){
|
|
1308
1308
|
// eslint-disable-next-line no-console
|
|
1309
1309
|
console.error("MESSAGE PARSING ERROR: ",e)}if(i){const{InternalTableId:e,MessageType:t,Results:// TakenSeats,
|
|
1310
1310
|
r,Seats:// Roads, // for baccarat
|
|
1311
1311
|
a,Open:s}=i;if(e)switch(t){case"SeatsUpdated":a&&Array.isArray(a)&&(n(29,y=a),n(12,o.currentOccupiedSeats=a,o),await A());break;case"RouletteResultsUpdated":r&&Array.isArray(r)&&(v=r,n(12,o.currentRouletteNumbers=r,o),await A());break;case"DoubleBallRouletteResultsUpdated":r&&Array.isArray(r)&&(b=r,n(12,o.currentDoubleBallRouletteNumbers=r,o),await A());break;case"TableOpened":case"TableClosed":n(23,h=s),n(12,o.isOpen=s,o),await A()}// default case
|
|
1312
1312
|
}}// default case
|
|
1313
|
-
},Te=(e,t=",")=>null!=e?`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,t):"",
|
|
1313
|
+
},Te=(e,t=",")=>null!=e?`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,t):"",Ee=(e,t)=>e.some((e=>e===t)),Me=()=>{if(o){if(n(23,h=o.isOpen),de=o.betLimit||{},n(24,m=o.openHours),n(25,he=(e=>{g=e.totalSeats||7,n(29,y=e.currentOccupiedSeats||[]);const t=[];for(let e=1;e<=g;e++)t.push(e);return{seats:t}})(o).seats),m&&m.value){const{value:{startTime:e,originalTimeFormat:t}}=m;/* , timeFormat: timeFormatRaw */n(21,d=e),n(22,ue=t||ue)}h&&n(20,c=(e=>{let t=null;if(e){const{vendorCategory:n}=e;if(n){const e=n.toLowerCase();Ee(fe,e)?t=Zr:Ee(ge,e)&&(t=Kr)}// else if (contains(baccaratCategory, gameTypeToLower)) {
|
|
1314
1314
|
// GameComponent = 'baccarat';
|
|
1315
1315
|
}// } else if (contains(otherLiveGamesCategory, gameTypeToLower)) {
|
|
1316
1316
|
// GameComponent = 'poker';
|
|
1317
1317
|
// }
|
|
1318
|
-
return t})(o)),n(26,me
|
|
1318
|
+
return t})(o)),n(26,me=$r[J]),n(27,p=(de.min||{})[J]),n(28,f=(de.max||{})[J]),v=o.currentRouletteNumbers,b=o.currentDoubleBallRouletteNumbers,w=o.vendorCategory,n(30,x=w.toLowerCase()===Xr),n(13,_=(x?b:v)||[]),n(31,S="GameProp LiveProps RoulleteProps"),n(31,S+=x?" Double":""),n(32,$=Ee(ge,w.toLowerCase())?ve:ye),T=C,n(33,C=Array.isArray(y)&&y.length===g),o.dealer&&n(35,F=o.dealer.DealerName),L=o.numberOfPlayers,n(34,pe="ListGame"),o.isOpen&&o.currentRouletteNumbers&&n(34,pe+=" GameBackdrop"),h&&C&&p&&f&&o.currentOccupiedSeats?n(34,pe+=" GameContainerDimmed"):!1===h&&d&&n(34,pe+=" GameContainerFullyDimmed"),s&&(!T&&C?(n(34,pe+=" PulsatingRedShadow"),n(34,pe=pe.replace(" PulsatingGreenShadow",""))):T&&!C&&(n(34,pe+=" PulsatingGreenShadow"),n(34,pe=pe.replace(" PulsatingRedShadow",""))))}},ke=()=>{let e=new URL(O),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))};E((()=>(window.addEventListener("message",be,!1),()=>{window.removeEventListener("message",be),l&&l.removeEventListener("message",Ce)})));return e.$$set=e=>{"session"in e&&n(48,G=e.session),"userid"in e&&n(49,P=e.userid),"lang"in e&&n(1,I=e.lang),"clientstyling"in e&&n(50,D=e.clientstyling),"clientstylingurl"in e&&n(51,O=e.clientstylingurl),"translationurl"in e&&n(52,N=e.translationurl),"favorites"in e&&n(2,R=e.favorites),"gamethumbnail"in e&&n(3,H=e.gamethumbnail),"gamename"in e&&n(4,B=e.gamename),"gamevendor"in e&&n(5,U=e.gamevendor),"gameid"in e&&n(6,Y=e.gameid),"gameisnew"in e&&n(7,z=e.gameisnew),"gametag"in e&&n(8,j=e.gametag),"gamefunmode"in e&&n(53,V=e.gamefunmode),"searchitem"in e&&n(54,W=e.searchitem),"gamefavorite"in e&&n(0,Z=e.gamefavorite),"gamecellsize"in e&&n(9,K=e.gamecellsize),"showfavoredcategory"in e&&n(55,X=e.showfavoredcategory),"showgamename"in e&&n(10,q=e.showgamename),"currency"in e&&n(56,J=e.currency),"gamepagemodalurl"in e&&n(57,Q=e.gamepagemodalurl),"endpoint"in e&&n(58,ee=e.endpoint),"livelobbyendpoint"in e&&n(59,te=e.livelobbyendpoint),"connectlive"in e&&n(60,ne=e.connectlive),"visibilityconnect"in e&&n(61,re=e.visibilityconnect),"integratedgameframedesktop"in e&&n(62,ie=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(63,ae=e.integratedgameframemobile)},e.$$.update=()=>{/*connectlive*/536870912&e.$$.dirty[1]&&ne&&("disconnect"===ne?$e():"connect"===ne&&Se()),/*visibilityconnect*/1073741824&e.$$.dirty[1]&&re&&("disconnect"===re?$e():"connect"===re&&"connect"===ne&&Se()),/*lang*/2&e.$$.dirty[0]&&I&&_e(),/*session, userid, endpoint*/134610944&e.$$.dirty[1]&&G&&P&&ee&&(n(15,se=!0),i=P),/*gamethumbnail*/8&e.$$.dirty[0]&&H&&a&&n(19,a.onload=()=>{n(18,le=!0)},a),/*customStylingContainer*/2048&e.$$.dirty[0]|/*clientstyling*/524288&e.$$.dirty[1]&&D&&s&&(()=>{let e=document.createElement("style");e.innerHTML=D,s.appendChild(e)})(),/*customStylingContainer*/2048&e.$$.dirty[0]|/*clientstylingurl*/1048576&e.$$.dirty[1]&&O&&s&&ke(),/*favorites*/4&e.$$.dirty[0]&&R&&"true"==R&&n(16,oe=!0),/*translationurl*/2097152&e.$$.dirty[1]&&N&&fetch(N).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{_r(t,e[t])}))})).catch((e=>{console.log(e)})),/*gamecellsize*/512&e.$$.dirty[0]|/*clientstylingurl*/1048576&e.$$.dirty[1]&&K&&O&&ke(),/*endpoint, livelobbyendpoint*/402653184&e.$$.dirty[1]&&ee&&te&&(()=>{let e=new URL(`${te.split("?")[0]}`);e.searchParams.append("platform",gr(ce)),e.searchParams.append("language",I),
|
|
1319
1319
|
// let url:URL = new URL(`${endpoint}${livelobbyendpoint}`);
|
|
1320
|
-
fetch(e).then((e=>e.json())).then((e=>{const{details:t}=e[0];n(12,o=t)}))})(),/*livegamedata*/4096&e.$$.dirty[0]&&o&&Ee(),/*roulletteref, roulleteresults*/24576&e.$$.dirty[0]&&k&&x&&(()=>{const e="FirstElementAnimated",t=k.getElementsByClassName("First")[0];t&&(t.classList.add(e),setTimeout((()=>{t.classList.remove(e)}),2e3))})()},[Z,I,R,H,B,U,Y,j,z,K,q,s,o,x,k,se,oe,!1,le,a,c,d,ue,h,m,he,me,p,f,y,_,S,$,C,pe,M,r,ce,we,_e,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},ke,(e,t,n)=>{let r,i;return null!=e&&null!=t&&(i=`\n <span>\n ${n}\n </span>\n ${Te(e)}-${Te(t)}`),L&&(r=`\n <svg fill="white" width="13" height="13" viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"/></svg>\n <span class="NrOfPlayers">${L}</span>`),r||i?`\n <p class="LiveLimits">\n <span class="BetLimitLeft">\n ${i||""}\n </span>\n <span class="BetLimitRight">\n ${r||""}\n </span>\n </p>`:""},e=>e?`\n <p class="LiveLimits">\n <span class="DealerName">${r("gameThumbnail.dealer")}: ${e}</span>\n </p>\n `:"",(e,t,n,r="")=>{const i=`${e} ${r}`,a=t.toString().match(/first0|second0|0/g);return 0===t||a&&0!==a.length?`\n <span\n id=${t}\n class="${i}"\n >\n ${n}\n </span>\n `:`\n <span id=${t} class="${i}">\n ${n}\n </span>\n `},G,P,D,O,N,V,W,X,J,Q,ee,te,ne,re,ie,ae,ye,ve,function(e){F[e?"unshift":"push"]((()=>{a=e,n(19,a)}))},()=>_e(Y),()=>we(Y),()=>_e(Y),function(e){F[e?"unshift":"push"]((()=>{k=e,n(14,k)}))},function(e){F[e?"unshift":"push"]((()=>{s=e,n(11,s)}))}]}function ei(e,t){Yn(e,t)}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends z{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}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.LoaderRipple{width:80px;height:80px;position:absolute;top:40px;left:-8px}.LoaderRipple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.LoaderRipple div:nth-child(2){animation-delay:-0.5s}@keyframes ripple-effect{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}100%{top:0px;left:0px;width:72px;height:72px;opacity:0}}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Qr,Zr,a,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),H()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),H()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),H()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),H()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),H()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),H()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),H()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),H()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),H()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),H()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),H()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),H()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),H()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),H()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),H()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),H()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),H()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const ti={en:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},zh:{Translations:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"}},de:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},it:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},fr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},es:{Translations:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"}},tr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ru:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ro:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hu:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pt:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}}};
|
|
1321
|
-
/* ../casino-filter/src/CasinoFilter.svelte generated by Svelte v3.58.0 */function
|
|
1322
|
-
// (
|
|
1323
|
-
function
|
|
1324
|
-
return e[7]?
|
|
1325
|
-
// (
|
|
1326
|
-
function
|
|
1327
|
-
// (
|
|
1328
|
-
function
|
|
1329
|
-
// (
|
|
1330
|
-
function
|
|
1331
|
-
// (
|
|
1332
|
-
function
|
|
1333
|
-
// (
|
|
1334
|
-
function
|
|
1335
|
-
// (
|
|
1336
|
-
function
|
|
1337
|
-
/*input_change_handler*/e[23].call(i,/*each_value*/e[
|
|
1338
|
-
return e[24](/*vendor*/e[
|
|
1339
|
-
return"false"===e[2]?
|
|
1340
|
-
return e[10]?
|
|
1320
|
+
fetch(e).then((e=>e.json())).then((e=>{const{details:t}=e[0];n(12,o=t)}))})(),/*livegamedata*/4096&e.$$.dirty[0]&&o&&Me(),/*roulletteref, roulleteresults*/24576&e.$$.dirty[0]&&M&&_&&(()=>{const e="FirstElementAnimated",t=M.getElementsByClassName("First")[0];t&&(t.classList.add(e),setTimeout((()=>{t.classList.remove(e)}),2e3))})()},[Z,I,R,H,B,U,Y,z,j,K,q,s,o,_,M,se,oe,!1,le,a,c,d,ue,h,m,he,me,p,f,y,x,S,$,C,pe,F,r,ce,we,xe,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},Ee,(e,t,n)=>{let r,i;return null!=e&&null!=t&&(i=`\n <span>\n ${n}\n </span>\n ${Te(e)}-${Te(t)}`),L&&(r=`\n <svg fill="white" width="13" height="13" viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"/></svg>\n <span class="NrOfPlayers">${L}</span>`),r||i?`\n <p class="LiveLimits">\n <span class="BetLimitLeft">\n ${i||""}\n </span>\n <span class="BetLimitRight">\n ${r||""}\n </span>\n </p>`:""},e=>e?`\n <p class="LiveLimits">\n <span class="DealerName">${r("gameThumbnail.dealer")}: ${e}</span>\n </p>\n `:"",(e,t,n,r="")=>{const i=`${e} ${r}`,a=t.toString().match(/first0|second0|0/g);return 0===t||a&&0!==a.length?`\n <span\n id=${t}\n class="${i}"\n >\n ${n}\n </span>\n `:`\n <span id=${t} class="${i}">\n ${n}\n </span>\n `},G,P,D,O,N,V,W,X,J,Q,ee,te,ne,re,ie,ae,ye,ve,function(e){k[e?"unshift":"push"]((()=>{a=e,n(19,a)}))},()=>xe(Y),()=>we(Y),()=>xe(Y),function(e){k[e?"unshift":"push"]((()=>{M=e,n(14,M)}))},function(e){k[e?"unshift":"push"]((()=>{s=e,n(11,s)}))}]}function Qr(e,t){Un(e,t)}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends z{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}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.LoaderRipple{width:80px;height:80px;position:absolute;top:40px;left:-8px}.LoaderRipple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.LoaderRipple div:nth-child(2){animation-delay:-0.5s}@keyframes ripple-effect{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}100%{top:0px;left:0px;width:72px;height:72px;opacity:0}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},Jr,Wr,a,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),R()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),R()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),R()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),R()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),R()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),R()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),R()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),R()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),R()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),R()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),R()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),R()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),R()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),R()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),R()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),R()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),R()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),R()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),R()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),R()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const ei={en:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}},zh:{Translations:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"}},de:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},it:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},fr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},es:{Translations:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"}},tr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ru:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},ro:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},hu:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},pt:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sl:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}},sr:{Translations:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}}};
|
|
1321
|
+
/* ../casino-filter/src/CasinoFilter.svelte generated by Svelte v3.58.0 */function ti(e,t,n){const r=e.slice();return r[36]=t[n],r[37]=t,r[38]=n,r}
|
|
1322
|
+
// (178:4) {#if !isLoading}
|
|
1323
|
+
function ni(e){let t,n,i,a,s,o,l,c,u,b,_,$,C,T,E,M,k,F,L,G,P,I,A,D,O,N,R,H,B,U,Y,z=/*$_*/e[11]("Translations.filterby")+"",j=/*$_*/e[11]("Translations.providers")+"",V=/*$_*/e[11]("Translations.clear")+"";function W(e,t){/*fullSelection*/
|
|
1324
|
+
return e[7]?ai:ii}let Z=W(e),K=Z(e),X=/*vendorArray*/e[5],q=[];for(let t=0;t<X.length;t+=1)q[t]=li(ti(e,X,t));return{c(){t=f("div"),n=f("div"),i=f("div"),a=g("svg"),s=g("path"),o=v(),l=f("div"),c=f("span"),u=y(z),b=v(),_=f("div"),$=f("span"),C=y(j),T=v(),K.c(),E=v(),M=f("span"),k=g("svg"),F=g("path"),P=v(),I=f("div"),A=f("ul");for(let e=0;e<q.length;e+=1)q[e].c();D=v(),O=f("button"),N=y(V),x(s,"id","noun_filter_736223"),x(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),x(s,"transform","translate(-5 -6.2)"),x(s,"fill","#fff"),x(a,"xmlns","http://www.w3.org/2000/svg"),x(a,"width","16"),x(a,"height","16"),x(a,"viewBox","0 0 16 16"),x(c,"class","FilterName"),x(_,"class","FilterValueContainer"),x(l,"class","FilterTextContainer"),x(i,"class","FilterMainArea"),x(F,"id","arrow"),x(F,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),x(F,"transform","translate(-274.511 -441.088)"),x(F,"fill","#d1d1d1"),x(k,"xmlns","http://www.w3.org/2000/svg"),x(k,"width","14"),x(k,"height","6.835"),x(k,"viewBox","0 0 14 6.835"),x(M,"class",L="TriangleInactive "+(/*isFilterActive*/e[4]?"TriangleActive":"")),x(n,"class",G="FilterSelector "+(/*isFilterActive*/e[4]?"FilterSelectorOpen":"")),x(A,"class","FilterDropdown"),x(O,"class","ClearFilters"),O.disabled=R=/*fullSelection*/e[7]&&/*selectedVendorArray*/e[6].length!=/*vendorArray*/e[5].length,x(I,"class",H="FilterDropdownContainer "+(/*isFilterActive*/e[4]?"FilterOpen":"")),x(t,"class",B="FilterContainer "+(/*addfilterselector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"FilerContainerSplit":""))},m(r,m){h(r,t,m),d(t,n),d(n,i),d(i,a),d(a,s),d(i,o),d(i,l),d(l,c),d(c,u),d(l,b),d(l,_),d(_,$),d($,C),d(_,T),K.m(_,null),d(n,E),d(n,M),d(M,k),d(k,F),d(t,P),d(t,I),d(I,A);for(let e=0;e<q.length;e+=1)q[e]&&q[e].m(A,null);d(I,D),d(I,O),d(O,N),U||(Y=[w(n,"click",/*click_handler*/e[22]),w(O,"click",/*click_handler_2*/e[25])],U=!0)},p(e,r){if(/*$_*/2048&r[0]&&z!==(z=/*$_*/e[11]("Translations.filterby")+"")&&S(u,z),/*$_*/2048&r[0]&&j!==(j=/*$_*/e[11]("Translations.providers")+"")&&S(C,j),Z===(Z=W(e))&&K?K.p(e,r):(K.d(1),K=Z(e),K&&(K.c(),K.m(_,null))),/*isFilterActive*/16&r[0]&&L!==(L="TriangleInactive "+(/*isFilterActive*/e[4]?"TriangleActive":""))&&x(M,"class",L),/*isFilterActive*/16&r[0]&&G!==(G="FilterSelector "+(/*isFilterActive*/e[4]?"FilterSelectorOpen":""))&&x(n,"class",G),/*filterbylogo, vendorArray, filterByVendors*/8228&r[0]){let t;for(X=/*vendorArray*/e[5],t=0;t<X.length;t+=1){const n=ti(e,X,t);q[t]?q[t].p(n,r):(q[t]=li(n),q[t].c(),q[t].m(A,null))}for(;t<q.length;t+=1)q[t].d(1);q.length=X.length}/*$_*/2048&r[0]&&V!==(V=/*$_*/e[11]("Translations.clear")+"")&&S(N,V),/*fullSelection, selectedVendorArray, vendorArray*/224&r[0]&&R!==(R=/*fullSelection*/e[7]&&/*selectedVendorArray*/e[6].length!=/*vendorArray*/e[5].length)&&(O.disabled=R),/*isFilterActive*/16&r[0]&&H!==(H="FilterDropdownContainer "+(/*isFilterActive*/e[4]?"FilterOpen":""))&&x(I,"class",H),/*addfilterselector, addsortingselector*/3&r[0]&&B!==(B="FilterContainer "+(/*addfilterselector*/"true"==e[0]&&/*addsortingselector*/"true"==e[1]?"FilerContainerSplit":""))&&x(t,"class",B)},d(e){e&&m(t),K.d(),p(q,e),U=!1,r(Y)}}}
|
|
1325
|
+
// (175:2) {#if hasErrors}
|
|
1326
|
+
function ri(e){let t,n,r=/*$_*/e[11]("casinoPage.500")+"";return{c(){t=f("p"),n=y(r),x(t,"class","SearchLoading"),x(t,"part","SearchLoading")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/2048&t[0]&&r!==(r=/*$_*/e[11]("casinoPage.500")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1327
|
+
// (191:14) {:else}
|
|
1328
|
+
function ii(e){let t,n;return{c(){t=f("span"),n=y(/*selectionNumber*/e[8]),x(t,"class","FilterCounter")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*selectionNumber*/256&t[0]&&S(n,/*selectionNumber*/e[8])},d(e){e&&m(t)}}}
|
|
1329
|
+
// (189:14) {#if fullSelection}
|
|
1330
|
+
function ai(e){let t,n,r=/*$_*/e[11]("Translations.all")+"";return{c(){t=f("span"),n=y(r),x(t,"class","FilterCounter")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/2048&t[0]&&r!==(r=/*$_*/e[11]("Translations.all")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1331
|
+
// (213:50)
|
|
1332
|
+
function si(e){let t,n;return{c(){t=f("img"),l(t.src,n=/*vendor*/e[36].logo)||x(t,"src",n),x(t,"alt","vendor logo")},m(e,n){h(e,t,n)},p(e,r){/*vendorArray*/32&r[0]&&!l(t.src,n=/*vendor*/e[36].logo)&&x(t,"src",n)},d(e){e&&m(t)}}}
|
|
1333
|
+
// (211:16) {#if filterbylogo === "false"}
|
|
1334
|
+
function oi(e){let t,n,r,i,a,s,o,l,c=/*vendor*/e[36].name+"",u=/*vendor*/e[36].games.count+"";return{c(){t=f("div"),n=f("span"),r=y(c),i=v(),a=f("span"),s=y("("),o=y(u),l=y(")"),x(t,"class","FilterItemLabel")},m(e,c){h(e,t,c),d(t,n),d(n,r),d(t,i),d(t,a),d(a,s),d(a,o),d(a,l)},p(e,t){/*vendorArray*/32&t[0]&&c!==(c=/*vendor*/e[36].name+"")&&S(r,c),/*vendorArray*/32&t[0]&&u!==(u=/*vendor*/e[36].games.count+"")&&S(o,u)},d(e){e&&m(t)}}}
|
|
1335
|
+
// (206:10) {#each vendorArray as vendor}
|
|
1336
|
+
function li(e){let t,n,i,a,s,o,l,c,u,p,g,y;function b(){
|
|
1337
|
+
/*input_change_handler*/e[23].call(i,/*each_value*/e[37],/*vendor_index*/e[38])}function _(){/*click_handler_1*/
|
|
1338
|
+
return e[24](/*vendor*/e[36])}function S(e,t){/*filterbylogo*/
|
|
1339
|
+
return"false"===e[2]?oi:/*filterbylogo*/"true"===e[2]?si:void 0}let $=S(e),C=$&&$(e);return{c(){t=f("li"),n=f("label"),i=f("input"),s=v(),o=f("span"),l=v(),C&&C.c(),c=v(),x(i,"type","checkbox"),x(i,"name","checkbox"),i.__value=a=/*vendor*/e[36].name,i.value=i.__value,x(o,"class","FiltersCheckmark"),x(n,"class","FilterLabel"),x(t,"class",u="FilterItem "+(/*filterbylogo*/"true"===e[2]?"FilterItemWithLogos":"")),t.value=p=/*vendor*/e[36].name},m(r,a){h(r,t,a),d(t,n),d(n,i),i.checked=/*vendor*/e[36].isFilterSelected,d(n,s),d(n,o),d(n,l),C&&C.m(n,null),d(t,c),g||(y=[w(i,"change",b),w(i,"click",_)],g=!0)},p(r,s){e=r,/*vendorArray*/32&s[0]&&a!==(a=/*vendor*/e[36].name)&&(i.__value=a,i.value=i.__value),/*vendorArray*/32&s[0]&&(i.checked=/*vendor*/e[36].isFilterSelected),$===($=S(e))&&C?C.p(e,s):(C&&C.d(1),C=$&&$(e),C&&(C.c(),C.m(n,null))),/*filterbylogo*/4&s[0]&&u!==(u="FilterItem "+(/*filterbylogo*/"true"===e[2]?"FilterItemWithLogos":""))&&x(t,"class",u),/*vendorArray*/32&s[0]&&p!==(p=/*vendor*/e[36].name)&&(t.value=p)},d(e){e&&m(t),C&&C.d(),g=!1,r(y)}}}function ci(t){let n;function r(e,t){/*hasErrors*/
|
|
1340
|
+
return e[10]?ri:/*isLoading*/e[9]?void 0:ni}let i=r(t),a=i&&i(t);return{c(){n=f("div"),a&&a.c(),this.c=e},m(e,r){h(e,n,r),a&&a.m(n,null)
|
|
1341
1341
|
/*div_binding*/,t[26](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a&&a.d(1),a=i&&i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a&&a.d()
|
|
1342
|
-
/*div_binding*/,t[26](null)}}}function
|
|
1342
|
+
/*div_binding*/,t[26](null)}}}function ui(e,t,n){let r;u(e,pr,(e=>n(11,r=e)));let i,{endpoint:a=""}=t,{datasource:s=""}=t,{lang:o=""}=t,{translationurl:l=""}=t,{clientstyling:c=""}=t,{clientstylingurl:d=""}=t,{categoryid:h=""}=t,{addfilterselector:m="false"}=t,{addsortingselector:p="false"}=t,{filterbylogo:f="false"}=t,g=!1,y=window.navigator.userAgent,v=[],b=[],w={},x=!1,_=0,S=!0,$=!1;
|
|
1343
1343
|
// start translations area
|
|
1344
|
-
!function({withLocale:e,translations:t}){
|
|
1344
|
+
!function({withLocale:e,translations:t}){nr.subscribe((n=>{null==n&&(Rn.set(t),nr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1345
1345
|
/*dictionary.set(translations);
|
|
1346
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(
|
|
1346
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(ei).forEach((e=>{Qr(e,ei[e])}));
|
|
1347
1347
|
// end custom styling area
|
|
1348
|
-
w[h]&&(w={[h]:[]});const C=()=>{n(4,g=!g)},T=e=>{let t=localStorage.getItem("vendorFiltersByCategory");e.isFilterSelected=!e.isFilterSelected,b.length&&0!=b.filter((t=>t.name===e.name)).length?n(6,b=b.filter((t=>t.name!==e.name))):b.push(e),null==t?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[h]:b.map((e=>e.id))})):(t=JSON.parse(t),t[h]=b.map((e=>e.id)),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(t))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),
|
|
1348
|
+
w[h]&&(w={[h]:[]});const C=()=>{n(4,g=!g),window.postMessage({type:"FilterOpened"},window.location.href)},T=e=>{let t=localStorage.getItem("vendorFiltersByCategory");e.isFilterSelected=!e.isFilterSelected,b.length&&0!=b.filter((t=>t.name===e.name)).length?n(6,b=b.filter((t=>t.name!==e.name))):b.push(e),null==t?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[h]:b.map((e=>e.id))})):(t=JSON.parse(t),t[h]=b.map((e=>e.id)),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(t))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),M()},M=()=>{
|
|
1349
1349
|
// update filters value
|
|
1350
|
-
n(7,
|
|
1350
|
+
n(7,x=b.length===v.length||0==b.length),n(8,_=b.length)},F=()=>{const e=new URL(`${a}/casino/vendors`);n(4,g=!1),e.searchParams.append("fields","id,name,logo,subVendors,games"),e.searchParams.append("language",o),e.searchParams.append("datasource",s),e.searchParams.append("platform",gr(y)),(h.match(/\$/g)||[]).length>1?(e.searchParams.append("filter",`games(subGroups=${h})`),e.searchParams.append("subVendors",`games(subGroups=${h})`)):e.searchParams.append("filter",`games(groups=${h})`),(e=>{n(9,S=!0),new Promise(((t,r)=>{fetch(e).then((e=>e.json())).then((e=>{e=e.items,t(e.items),n(6,b=[]);let r=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));e.forEach((e=>{var t;r||(r={currentCategoryId:[]}),(null===(t=r[h])||void 0===t?void 0:t.indexOf(e.id))>=0?(e.isFilterSelected=!0,b.push(e)):e.isFilterSelected=!1})),n(5,v=e),
|
|
1351
1351
|
// needed to force the update of the filters value
|
|
1352
|
-
|
|
1352
|
+
M()})).catch((e=>{console.error(e),n(10,$=!0),r(e)})).finally((()=>{n(9,S=!1)}))}))})(e)},L=()=>{n(6,b=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[h]:b.map((e=>e.id))})),v.forEach((e=>e.isFilterSelected=!1)),
|
|
1353
1353
|
// this reassignation of the pointer value is required in order to have Svelte trigger a re-render
|
|
1354
|
-
n(5,v),window.postMessage({type:"ApplyFilters"},window.location.href),n(7,
|
|
1355
|
-
/* ../casino-sort/src/CasinoSort.svelte generated by Svelte v3.58.0 */function
|
|
1356
|
-
// (
|
|
1357
|
-
function
|
|
1358
|
-
// (
|
|
1359
|
-
function
|
|
1360
|
-
|
|
1361
|
-
function yi(e){let t,n,r,i,a,s,o,l,c,u,p,g,b=/*sort*/e[24]+"";function x(){/*click_handler_1*/
|
|
1362
|
-
return e[16](/*sort*/e[24])}return{c(){t=f("li"),n=f("label"),r=f("input"),a=v(),s=f("span"),o=v(),l=f("span"),c=y(b),u=v(),_(r,"type","radio"),_(r,"name","checkbox"),r.value="sort",r.checked=i=/*vendorSortingBy*/e[5]==/*sort*/e[24],_(s,"class","SortersCheckmark"),_(n,"class","SorterLabel"),_(t,"class","FilterItem"),t.value="sort"},m(e,i){h(e,t,i),d(t,n),d(n,r),d(n,a),d(n,s),d(n,o),d(n,l),d(l,c),d(t,u),p||(g=w(r,"click",x),p=!0)},p(t,n){e=t,/*vendorSortingBy*/32&n&&i!==(i=/*vendorSortingBy*/e[5]==/*sort*/e[24])&&(r.checked=i)},d(e){e&&m(t),p=!1,g()}}}function vi(t){let n;function r(e,t){if(!/*isLoading*/e[4])return fi}let i=r(t),a=i&&i(t);return{c(){n=f("div"),a&&a.c(),this.c=e},m(e,r){h(e,n,r),a&&a.m(n,null)
|
|
1354
|
+
n(5,v),window.postMessage({type:"ApplyFilters"},window.location.href),n(7,x=!0),n(4,g=!1)},G=e=>{"SortingOpened"==e.data.type&&n(4,g=!1)};E((()=>(window.addEventListener("message",G,!1),()=>{window.removeEventListener("message",G)})));return e.$$set=e=>{"endpoint"in e&&n(15,a=e.endpoint),"datasource"in e&&n(16,s=e.datasource),"lang"in e&&n(17,o=e.lang),"translationurl"in e&&n(18,l=e.translationurl),"clientstyling"in e&&n(19,c=e.clientstyling),"clientstylingurl"in e&&n(20,d=e.clientstylingurl),"categoryid"in e&&n(21,h=e.categoryid),"addfilterselector"in e&&n(0,m=e.addfilterselector),"addsortingselector"in e&&n(1,p=e.addsortingselector),"filterbylogo"in e&&n(2,f=e.filterbylogo)},e.$$.update=()=>{/*endpoint, datasource, categoryid, filterbylogo*/2195460&e.$$.dirty[0]&&a&&s&&h&&f&&F(),/*clientstyling, customStylingContainer*/524296&e.$$.dirty[0]&&c&&i&&(()=>{let e=document.createElement("style");e.innerHTML=c,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048584&e.$$.dirty[0]&&d&&i&&(()=>{let e=document.createElement("style");fetch(new URL(d)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&l&&fetch(l).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Qr(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,p,f,i,g,v,b,x,_,S,$,r,C,T,L,a,s,o,l,c,d,h,()=>C(),function(e,t){e[t].isFilterSelected=this.checked,n(5,v)},e=>T(e),()=>L(),function(e){k[e?"unshift":"push"]((()=>{i=e,n(3,i)}))}]}function di(e,t){Un(e,t)}!customElements.get("casino-filter")&&customElements.define("casino-filter",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent='.FilterContainer{color:#fff;position:relative;z-index:16}.FilterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid #D0046C}.FilterItem input:checked~.FiltersCheckmark{background-color:#D0046C;border:1px solid #D0046C}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid #fff}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},ui,ci,a,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","lang","translationurl","clientstyling","clientstylingurl","categoryid","addfilterselector","addsortingselector","filterbylogo"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[16]}set datasource(e){this.$$set({datasource:e}),R()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),R()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),R()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get categoryid(){return this.$$.ctx[21]}set categoryid(e){this.$$set({categoryid:e}),R()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(e){this.$$set({addfilterselector:e}),R()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(e){this.$$set({addsortingselector:e}),R()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(e){this.$$set({filterbylogo:e}),R()}});const hi={en:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},zh:{Translations:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},de:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},it:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},fr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},es:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},tr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},ru:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},ro:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},hr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},hu:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},pl:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},pt:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},sl:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}},sr:{Translations:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}}};
|
|
1355
|
+
/* ../casino-sort/src/CasinoSort.svelte generated by Svelte v3.58.0 */function mi(e,t,n){const r=e.slice();return r[25]=t[n],r}
|
|
1356
|
+
// (115:4) {#if !isLoading}
|
|
1357
|
+
function pi(e){let t,n,r,i,a,s,o,l,c,u,b,_,$,C,T,E,M,k,F,L,G,P,I,A,D,O,N,R,H=/*$_*/e[4]("Translations.sortby")+"",B=/*vendorSortingBy*/(e[3]||/*$_*/e[4]("Translations.all"))+"",U=Object.values(/*vendorMap*/e[5]),Y=[];for(let t=0;t<U.length;t+=1)Y[t]=fi(mi(e,U,t));return{c(){t=f("div"),n=f("div"),r=f("div"),i=g("svg"),a=g("g"),s=g("path"),o=g("path"),l=g("path"),c=v(),u=f("div"),b=f("span"),_=y(H),$=v(),C=f("div"),T=f("span"),E=y(B),M=v(),k=f("span"),F=g("svg"),L=g("path"),I=v(),A=f("div"),D=f("ul");for(let e=0;e<Y.length;e+=1)Y[e].c();x(s,"id","Path_5267"),x(s,"data-name","Path 5267"),x(s,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),x(s,"transform","translate(-206.448 0)"),x(s,"fill","#fff"),x(o,"id","Path_5268"),x(o,"data-name","Path 5268"),x(o,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),x(o,"transform","translate(0 0)"),x(o,"fill","#fff"),x(l,"id","Path_5269"),x(l,"data-name","Path 5269"),x(l,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),x(l,"transform","translate(-412.896 0)"),x(l,"fill","#fff"),x(a,"id","sortby"),x(a,"transform","translate(-306 -342)"),x(i,"xmlns","http://www.w3.org/2000/svg"),x(i,"width","20"),x(i,"height","20"),x(i,"viewBox","0 0 26.003 22.819"),x(b,"class","SorterName"),x(C,"class","SorterValueContainer"),x(u,"class","SorterTextContainer"),x(r,"class","SorterMainArea"),x(L,"id","arrow"),x(L,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),x(L,"transform","translate(-274.511 -441.088)"),x(L,"fill","#d1d1d1"),x(F,"xmlns","http://www.w3.org/2000/svg"),x(F,"width","14"),x(F,"height","6.835"),x(F,"viewBox","0 0 14 6.835"),x(k,"class",G="TriangleInactive "+(/*isSorterActive*/e[1]?"TriangleActive":"")),x(n,"class",P="SorterSelector "+(/*isSorterActive*/e[1]?"SorterSelectorOpen":"")),x(D,"class","SorterDropdown"),x(A,"class",O="SorterDropdownContainer "+(/*isSorterActive*/e[1]?"SorterOpen":"")),x(t,"class","SorterContainer")},m(m,p){h(m,t,p),d(t,n),d(n,r),d(r,i),d(i,a),d(a,s),d(a,o),d(a,l),d(r,c),d(r,u),d(u,b),d(b,_),d(u,$),d(u,C),d(C,T),d(T,E),d(n,M),d(n,k),d(k,F),d(F,L),d(t,I),d(t,A),d(A,D);for(let e=0;e<Y.length;e+=1)Y[e]&&Y[e].m(D,null);N||(R=w(n,"click",/*click_handler*/e[15]),N=!0)},p(e,t){if(/*$_*/16&t&&H!==(H=/*$_*/e[4]("Translations.sortby")+"")&&S(_,H),/*vendorSortingBy, $_*/24&t&&B!==(B=/*vendorSortingBy*/(e[3]||/*$_*/e[4]("Translations.all"))+"")&&S(E,B),/*isSorterActive*/2&t&&G!==(G="TriangleInactive "+(/*isSorterActive*/e[1]?"TriangleActive":""))&&x(k,"class",G),/*isSorterActive*/2&t&&P!==(P="SorterSelector "+(/*isSorterActive*/e[1]?"SorterSelectorOpen":""))&&x(n,"class",P),/*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/120&t){let n;for(U=Object.values(/*vendorMap*/e[5]),n=0;n<U.length;n+=1){const r=mi(e,U,n);Y[n]?Y[n].p(r,t):(Y[n]=fi(r),Y[n].c(),Y[n].m(D,null))}for(;n<Y.length;n+=1)Y[n].d(1);Y.length=U.length}/*isSorterActive*/2&t&&O!==(O="SorterDropdownContainer "+(/*isSorterActive*/e[1]?"SorterOpen":""))&&x(A,"class",O)},d(e){e&&m(t),p(Y,e),N=!1,R()}}}
|
|
1358
|
+
// (141:10) {#each Object.values(vendorMap) as sort}
|
|
1359
|
+
function fi(e){let t,n,r,i,a,s,o,l,c,u,p,g,b=/*sort*/e[25]+"";function _(){/*click_handler_1*/
|
|
1360
|
+
return e[16](/*sort*/e[25])}return{c(){t=f("li"),n=f("label"),r=f("input"),a=v(),s=f("span"),o=v(),l=f("span"),c=y(b),u=v(),x(r,"type","radio"),x(r,"name","radio"),r.value=/*sort*/e[25],r.checked=i=/*vendorSortingBy*/e[3]==/*sort*/e[25]||/*vendorSortingBy*/null==e[3]&&/*sort*/e[25]==/*$_*/e[4]("Translations.all"),x(s,"class","SortersCheckmark"),x(n,"class","SorterLabel CustomRadioButton"),x(t,"class","SorterItem"),t.value=/*sort*/e[25]},m(e,i){h(e,t,i),d(t,n),d(n,r),d(n,a),d(n,s),d(n,o),d(n,l),d(l,c),d(t,u),p||(g=w(r,"click",_),p=!0)},p(t,n){e=t,/*vendorSortingBy, $_*/24&n&&i!==(i=/*vendorSortingBy*/e[3]==/*sort*/e[25]||/*vendorSortingBy*/null==e[3]&&/*sort*/e[25]==/*$_*/e[4]("Translations.all"))&&(r.checked=i)},d(e){e&&m(t),p=!1,g()}}}function gi(t){let n;function r(e,t){if(!/*isLoading*/e[2])return pi}let i=r(t),a=i&&i(t);return{c(){n=f("div"),a&&a.c(),this.c=e},m(e,r){h(e,n,r),a&&a.m(n,null)
|
|
1363
1361
|
/*div_binding*/,t[17](n)},p(e,[t]){i===(i=r(e))&&a?a.p(e,t):(a&&a.d(1),a=i&&i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a&&a.d()
|
|
1364
|
-
/*div_binding*/,t[17](null)}}}function
|
|
1362
|
+
/*div_binding*/,t[17](null)}}}function yi(e,t,n){let r;u(e,pr,(e=>n(4,r=e)));let i,{lang:a=""}=t,{translationurl:s=""}=t,{clientstyling:o=""}=t,{clientstylingurl:l=""}=t,{addSorterSelector:c="false"}=t,{addsortingselector:d="false"}=t,{categoryid:h=""}=t,m=!1,p=!0,f="",g="All";!function({withLocale:e,translations:t}){nr.subscribe((n=>{null==n&&(Rn.set(t),nr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1365
1363
|
/*dictionary.set(translations);
|
|
1366
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});const y={All:"
|
|
1364
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(hi).forEach((e=>{di(e,hi[e])}));const y={All:r("Translations.all"),name:r("Translations.az"),isNew:r("Translations.newest"),"advancedTags(name(hot))":r("Translations.hottest")},v=e=>{n(3,g=e);let t=localStorage.getItem("vendorSortingBy");f=e;for(let t in y)if(y[t]===e){f=t;break}null==t?localStorage.setItem("vendorSortingBy",JSON.stringify({[h]:f})):(t=JSON.parse(t),t[h]=f,localStorage.setItem("vendorSortingBy",JSON.stringify(t))),window.postMessage({type:"ApplySorter",sortBy:f,itemId:h},window.location.href)},b=()=>{n(1,m=!m),window.postMessage({type:"SortingOpened"},window.location.href)},w=e=>{"FilterOpened"==e.data.type&&n(1,m=!1)};E((()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})));return e.$$set=e=>{"lang"in e&&n(8,a=e.lang),"translationurl"in e&&n(9,s=e.translationurl),"clientstyling"in e&&n(10,o=e.clientstyling),"clientstylingurl"in e&&n(11,l=e.clientstylingurl),"addSorterSelector"in e&&n(12,c=e.addSorterSelector),"addsortingselector"in e&&n(13,d=e.addsortingselector),"categoryid"in e&&n(14,h=e.categoryid)},e.$$.update=()=>{/*categoryid*/16384&e.$$.dirty&&h&&(()=>{var e;n(3,g="All"),n(2,p=!1),n(1,m=!1);let t=null===(e=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===e?void 0:e[h];n(3,g=t||"All"),n(3,g=y[t])})(),/*clientstyling, customStylingContainer*/1025&e.$$.dirty&&o&&i&&(()=>{let e=document.createElement("style");e.innerHTML=o,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/2049&e.$$.dirty&&l&&i&&(()=>{let e=document.createElement("style");fetch(new URL(l)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})(),/*translationurl*/512&e.$$.dirty&&s&&fetch(s).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{di(t,e[t])}))})).catch((e=>{console.log(e)}))},[i,m,p,g,r,y,v,b,a,s,o,l,c,d,h,()=>b(),e=>v(e),function(e){k[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}
|
|
1367
1365
|
/* ../casino-games-category-section/src/CasinoGamesCategorySection.svelte generated by Svelte v3.58.0 */
|
|
1368
|
-
function
|
|
1366
|
+
function vi(e,t,n){const r=e.slice();return r[82]=t[n],r[84]=n,r}function bi(e,t,n){const r=e.slice();return r[82]=t[n],r[85]=t,r[84]=n,r}function wi(e,t,n){const r=e.slice();return r[82]=t[n],r[84]=n,r}
|
|
1369
1367
|
// (635:4) {:else}
|
|
1370
|
-
function
|
|
1371
|
-
return e[22]?
|
|
1368
|
+
function xi(e){let t;function n(e,t){/*categoryData*/
|
|
1369
|
+
return e[22]?Ci:/*showFavGamesCategory*/e[33]?$i:void 0}let r=n(e),i=r&&r(e);return{c(){t=f("div"),i&&i.c()},m(e,n){h(e,t,n),i&&i.m(t,null)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
|
|
1372
1370
|
// (577:4) {#if searched}
|
|
1373
|
-
function
|
|
1374
|
-
return e[26]?
|
|
1375
|
-
return e[23]?
|
|
1371
|
+
function _i(e){let t,n,r;function i(e,t){/*recentSearched*/
|
|
1372
|
+
return e[26]?Xi:/*shownCategoryData*/e[23].length?Zi:Ki}let a=i(e),s=a(e);function o(e,t){/*shownCategoryData*/
|
|
1373
|
+
return e[23]?Ji:qi}let l=o(e),c=l(e);return{c(){t=f("div"),n=f("div"),s.c(),r=v(),c.c(),x(n,"class","CasinoGamesHeader Searched "+(fr(/*userAgent*/e[38])?"CasinoGamesHeaderMobile":"")),x(n,"part","CasinoGamesHeader Searched "+(fr(/*userAgent*/e[38])?"CasinoGamesHeaderMobile":"")),x(t,"class","CasinoGamesContainer"),x(t,"part","CasinoGamesContainer")},m(e,i){h(e,t,i),d(t,n),s.m(n,null),d(t,r),c.m(t,null)},p(e,r){a===(a=i(e))&&s?s.p(e,r):(s.d(1),s=a(e),s&&(s.c(),s.m(n,null))),l===(l=o(e))&&c?c.p(e,r):(c.d(1),c=l(e),c&&(c.c(),c.m(t,null)))},d(e){e&&m(t),s.d(),c.d()}}}
|
|
1376
1374
|
// (569:2) {#if hasErrors}
|
|
1377
|
-
function
|
|
1378
|
-
return e[28]?
|
|
1375
|
+
function Si(e){let t;function n(e,t){/*filteresPresent*/
|
|
1376
|
+
return e[28]?na:ta}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),h(e,t,n)},p(e,a){r!==(r=n(e))&&(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
|
1379
1377
|
// (723:39)
|
|
1380
|
-
function
|
|
1381
|
-
return e[20]&&!/*isLazyLoading*/e[30]?
|
|
1382
|
-
/*ul_binding_1*/e[56](r)},p(e,u){/*casinomygames*/"true"!==e[14]?s?s.p(e,u):(s=
|
|
1378
|
+
function $i(e){let t,n,r,i,a,s=/*casinomygames*/"true"!==e[14]&&Ti(e);function o(e,t){/*isLoading*/
|
|
1379
|
+
return e[20]&&!/*isLazyLoading*/e[30]?ki:/*favoriteGamesData*/e[36]?Mi:Ei}let l=o(e),c=l(e);return{c(){t=f("div"),s&&s.c(),n=v(),r=f("ul"),c.c(),x(r,"class",i=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),x(r,"part",a=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),x(t,"class","CasinoGamesContainer"),x(t,"part","CasinoGamesContainer")},m(i,a){h(i,t,a),s&&s.m(t,null),d(t,n),d(t,r),c.m(r,null),
|
|
1380
|
+
/*ul_binding_1*/e[56](r)},p(e,u){/*casinomygames*/"true"!==e[14]?s?s.p(e,u):(s=Ti(e),s.c(),s.m(t,n)):s&&(s.d(1),s=null),l===(l=o(e))&&c?c.p(e,u):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null))),/*favoriteGamesData*/32&u[1]&&i!==(i=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&x(r,"class",i),/*favoriteGamesData*/32&u[1]&&a!==(a=/*favoriteGamesData*/(0!=e[36].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&x(r,"part",a)},d(n){n&&m(t),s&&s.d(),c.d(),
|
|
1383
1381
|
/*ul_binding_1*/e[56](null)}}}
|
|
1384
1382
|
// (637:8) {#if categoryData}
|
|
1385
|
-
function
|
|
1386
|
-
return e[20]&&!/*isLazyLoading*/e[30]?
|
|
1383
|
+
function Ci(e){let t,n,r=/*casinomygames*/"true"!==e[14]&&Ri(e);function i(e,t){/*isLoading*/
|
|
1384
|
+
return e[20]&&!/*isLazyLoading*/e[30]?Vi:/*shownCategoryData*/0!==e[23].length?ji:zi}let a=i(e),s=a(e);return{c(){t=f("div"),r&&r.c(),n=v(),s.c(),x(t,"class","CasinoGamesContainer"),x(t,"part","CasinoGamesContainer")},m(e,i){h(e,t,i),r&&r.m(t,null),d(t,n),s.m(t,null)},p(e,o){/*casinomygames*/"true"!==e[14]?r?r.p(e,o):(r=Ri(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null),a===(a=i(e))&&s?s.p(e,o):(s.d(1),s=a(e),s&&(s.c(),s.m(t,null)))},d(e){e&&m(t),r&&r.d(),s.d()}}}
|
|
1387
1385
|
// (725:14) {#if casinomygames !== 'true'}
|
|
1388
|
-
function
|
|
1386
|
+
function Ti(e){let t,n,r,i,a,s,o,l,c=/*$_*/e[37]("gamesCategorySection.favorites")+"",u=/*favoriteGamesData*/e[36].items.length+"";return{c(){t=f("div"),n=f("h3"),r=y(c),i=v(),a=f("span"),s=y("("),o=y(u),l=y(")"),x(a,"class","CategoryFavName"),x(n,"class","CategoryName"),x(n,"part","CategoryName"),x(t,"class","CasinoGamesHeader"),x(t,"part","CasinoGamesHeader")},m(c,u){h(c,t,u),d(t,n),d(n,r),d(n,i),d(n,a),d(a,s),d(a,o),d(a,l),
|
|
1389
1387
|
/*h3_binding_1*/e[55](n)},p(e,t){/*$_*/64&t[1]&&c!==(c=/*$_*/e[37]("gamesCategorySection.favorites")+"")&&S(r,c),/*favoriteGamesData*/32&t[1]&&u!==(u=/*favoriteGamesData*/e[36].items.length+"")&&S(o,u)},d(n){n&&m(t)
|
|
1390
1388
|
/*h3_binding_1*/,e[55](null)}}}
|
|
1391
1389
|
// (828:18) {:else}
|
|
1392
|
-
function
|
|
1390
|
+
function Ei(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.waiting")+"";return{c(){t=f("p"),n=y(r)},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.waiting")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1393
1391
|
// (738:18) {#if favoriteGamesData}
|
|
1394
|
-
function
|
|
1392
|
+
function Mi(e){let t,n=/*favoriteGamesData*/e[36].items,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ni(vi(e,n,t));let i=null;return n.length||(i=Fi(e)),{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b(),i&&i.c()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);h(e,t,n),i&&i.m(e,n)},p(e,a){if(/*session, userid, lang, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/16378&a[0]|/*favoriteGamesData, addGameTag, showFavGamesCategory, intersectingIndexes, visibilityconnect, userAgent, $_*/508&a[1]){let s;for(n=/*favoriteGamesData*/e[36].items,s=0;s<n.length;s+=1){const i=vi(e,n,s);r[s]?r[s].p(i,a):(r[s]=Ni(i),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length,!n.length&&i?i.p(e,a):n.length?i&&(i.d(1),i=null):(i=Fi(e),i.c(),i.m(t.parentNode,t))}},d(e){p(r,e),e&&m(t),i&&i.d(e)}}}
|
|
1395
1393
|
// (735:16) {#if isLoading && !isLazyLoading}
|
|
1396
|
-
function
|
|
1394
|
+
function ki(t){let n;return{c(){n=f("div"),x(n,"class","lds-dual-ring"),x(n,"part","lds-dual-ring")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1397
1395
|
// (809:20) {:else}
|
|
1398
|
-
function
|
|
1396
|
+
function Fi(e){let t,n,r,i,a,s,o,l,c,u,p,b,w,_,$=/*$_*/e[37]("gamesCategorySection.noFavoritesTitle")+"";let C=function(e,t){return fr(/*userAgent*/e[38])?Gi:Li}(e),T=C(e);return{c(){t=f("p"),n=g("svg"),r=g("rect"),i=g("rect"),a=g("circle"),s=g("path"),o=g("path"),l=g("path"),c=g("path"),u=v(),p=f("span"),b=y($),w=v(),T.c(),_=v(),x(r,"x","1"),x(r,"y","18.053"),x(r,"width","90.263"),x(r,"height","90.263"),x(r,"rx","12"),x(r,"stroke","var(--emfe-w-color-gray-150, #828282)"),x(r,"stroke-width","1.5"),x(i,"x","106.737"),x(i,"y","56.737"),x(i,"width","90.263"),x(i,"height","90.263"),x(i,"rx","12"),x(i,"stroke","var(--emfe-w-color-gray-150, #828282)"),x(i,"stroke-width","1.5"),x(a,"cx","70.5"),x(a,"cy","32.237"),x(a,"r","31.487"),x(a,"stroke","var(--emfe-w-color-primary, #D0046C)"),x(a,"stroke-width","1.5"),x(a,"stroke-dasharray","5 0"),x(s,"d","M153.909 81.631a.747.747 0 0 0-.166-1.046l-5.466-3.954a.751.751 0 0 0-.882 1.214l4.859 3.514-3.529 4.858a.75.75 0 1 0 1.215.878l3.969-5.464zm-.725-1.18c-.501.081-.999.159-1.493.233l.223 1.482c.498-.075 1-.153 1.506-.234l-.236-1.48zm-4.457.654c-1.006.133-1.996.253-2.97.36l.162 1.49c.985-.109 1.986-.23 3.002-.364l-.194-1.486zm-5.944.65c-1.01.085-2.002.155-2.978.209l.081 1.496c.991-.054 1.997-.125 3.021-.212l-.124-1.493zm-5.955.326c-1.009.022-2 .026-2.974.01l-.026 1.5c.994.015 2.003.011 3.031-.012l-.031-1.498zm-5.953-.099a61.03 61.03 0 0 1-2.961-.245l-.164 1.49c.995.107 2.006.19 3.035.251l.09-1.496zm-5.898-.641a49.97 49.97 0 0 1-2.907-.56l-.332 1.462c.983.22 1.98.412 2.995.577l.244-1.48zm-5.773-1.298a44.435 44.435 0 0 1-2.807-.92l-.518 1.407c.953.348 1.92.665 2.901.951l.424-1.438zm-5.546-2.027A44.285 44.285 0 0 1 111 76.73l-.702 1.326a45.9 45.9 0 0 0 2.748 1.331l.612-1.37zm-5.23-2.75a49.031 49.031 0 0 1-2.472-1.616l-.861 1.229a50.27 50.27 0 0 0 2.548 1.666l.785-1.278zm-4.851-3.378c-.767-.601-1.529-1.231-2.289-1.891l-.987 1.131c.778.676 1.56 1.322 2.348 1.94l.928-1.18zm-4.486-3.889a74.64 74.64 0 0 1-2.11-2.088l-1.078 1.044a76.17 76.17 0 0 0 2.152 2.13L99.091 68zm-4.143-4.259a97.17 97.17 0 0 1-1.965-2.239l-1.145.972a98.31 98.31 0 0 0 1.996 2.274l1.114-1.007zm-3.867-4.536a127.63 127.63 0 0 1-1.845-2.346l-1.192.914c.624.812 1.246 1.603 1.867 2.373l1.17-.94zm-3.64-4.733c-.58-.788-1.163-1.596-1.749-2.423l-1.225.867c.59.834 1.179 1.649 1.764 2.445l1.21-.89z"),x(s,"fill","var(--emfe-w-color-gray-150, #828282)"),x(o,"d","M78 43h11v13H78V43z"),x(o,"stroke","var(--emfe-w-color-primary, #D0046C)"),x(l,"d","m180 65 2.021 6.219h6.539l-5.291 3.843 2.021 6.22-5.29-3.844-5.29 3.843 2.021-6.219-5.291-3.843h6.539L180 65z"),x(l,"fill","var(--emfe-w-color-primary, #D0046C)"),x(l,"stroke","var(--emfe-w-color-primary, #D0046C)"),x(l,"stroke-linecap","round"),x(l,"stroke-linejoin","round"),x(c,"d","m74 27 2.02 6.219h6.54l-5.29 3.843 2.02 6.22L74 39.437l-5.29 3.843 2.02-6.219-5.29-3.843h6.54L74 27z"),x(c,"stroke","var(--emfe-w-color-primary, #D0046C)"),x(c,"stroke-width","1.5"),x(c,"stroke-linecap","round"),x(c,"stroke-linejoin","round"),x(n,"width","198"),x(n,"height","148"),x(n,"viewBox","0 0 198 148"),x(n,"fill","none"),x(n,"xmlns","http://www.w3.org/2000/svg"),x(p,"class","NoFavoriteText NoFavoriteTextHighlight"),x(p,"part","NoFavoriteText NoFavoriteTextHighlight"),x(t,"class","NoFavoriteGames "+(fr(/*userAgent*/e[38])?"NoFavoriteGamesMobile":"")),x(t,"part","NoFavoriteGames "+(fr(/*userAgent*/e[38])?"NoFavoriteGamesMobile":""))},m(e,m){h(e,t,m),d(t,n),d(n,r),d(n,i),d(n,a),d(n,s),d(n,o),d(n,l),d(n,c),d(t,u),d(t,p),d(p,b),d(t,w),T.m(t,null),d(t,_)},p(e,t){/*$_*/64&t[1]&&$!==($=/*$_*/e[37]("gamesCategorySection.noFavoritesTitle")+"")&&S(b,$),T.p(e,t)},d(e){e&&m(t),T.d()}}}
|
|
1399
1397
|
// (823:24) {:else}
|
|
1400
|
-
function
|
|
1398
|
+
function Li(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noFavorites")+"";return{c(){t=f("span"),n=y(r),x(t,"class","NoFavoriteText"),x(t,"part","NoFavoriteText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noFavorites")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1401
1399
|
// (821:24) {#if isMobile(userAgent)}
|
|
1402
|
-
function
|
|
1400
|
+
function Gi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noFavoritesMobile")+"";return{c(){t=f("span"),n=y(r),x(t,"class","NoFavoriteText"),x(t,"part","NoFavoriteText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noFavoritesMobile")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1403
1401
|
// (740:22) {#if gameprops.gameModel}
|
|
1404
|
-
function
|
|
1402
|
+
function Pi(e){let t,n=/*gameprops*/e[82].gameModel.isFavorite&&Ii(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,r){/*gameprops*/e[82].gameModel.isFavorite?n?n.p(e,r):(n=Ii(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1405
1403
|
// (741:24) {#if gameprops.gameModel.isFavorite}
|
|
1406
|
-
function
|
|
1404
|
+
function Ii(e){let t,n=
|
|
1407
1405
|
// (742:26) {#if intersecting || nativeLoading}
|
|
1408
1406
|
function(e){let t,n,r;function i(e,r){/*favoriteGamesData*/
|
|
1409
|
-
return 32&r[1]&&(n=null),null==t&&(t=!!
|
|
1407
|
+
return 32&r[1]&&(n=null),null==t&&(t=!!fr(/*userAgent*/e[38])),t?Di:(null==n&&(n=!!/*gameprops*/e[82].gameModel.platform.includes("PC")),n?Ai:void 0)}let a=i(e,[-1,-1,-1]),s=a&&a(e);return{c(){s&&s.c(),r=b()},m(e,t){s&&s.m(e,t),h(e,r,t)},p(e,t){a===(a=i(e,t))&&s?s.p(e,t):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(r.parentNode,r)))},d(e){s&&s.d(e),e&&m(r)}}}
|
|
1410
1408
|
// (775:82)
|
|
1411
|
-
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function
|
|
1409
|
+
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function Ai(e){let t,n,r,i,a,s,o,l,c,u,d,p,g,y;return{c(){t=f("casino-game-thumbnail"),_(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"session",/*session*/e[4]),_(t,"userid",/*userid*/e[5]),_(t,"lang",/*lang*/e[3]),_(t,"favorites",/*favorites*/e[6]),_(t,"gamethumbnail",i=/*gameprops*/e[82].gameModel.thumbnail),_(t,"gamename",a=/*gameprops*/e[82].gameModel.name),_(t,"gamevendor",s=/*gameprops*/e[82].gameModel.vendor.name),_(t,"gameisnew",o=/*gameprops*/e[82].gameModel.isNew),_(t,"gametag",l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags)),_(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),_(t,"gameid",u=/*gameprops*/e[82].gameModel.id),_(t,"gamefunmode",d=/*gameprops*/e[82].gameModel.hasFunMode),_(t,"gamefavorite",p=/*gameprops*/e[82].gameModel.isFavorite),_(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),_(t,"connectlive",g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect"),_(t,"visibilityconnect",/*visibilityconnect*/e[35]),_(t,"currency",/*currency*/e[9]),_(t,"livelobbyendpoint",y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:""),_(t,"clientstyling",/*clientstyling*/e[7]),_(t,"clientstylingurl",/*clientstylingurl*/e[8]),_(t,"endpoint",/*endpoint*/e[1]),_(t,"livecasino",/*livecasino*/e[10]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){h(e,t,n)},p(e,h){/*favoriteGamesData*/32&h[1]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"class",n),/*favoriteGamesData*/32&h[1]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"part",r),/*session*/16&h[0]&&_(t,"session",/*session*/e[4]),/*userid*/32&h[0]&&_(t,"userid",/*userid*/e[5]),/*lang*/8&h[0]&&_(t,"lang",/*lang*/e[3]),/*favorites*/64&h[0]&&_(t,"favorites",/*favorites*/e[6]),/*favoriteGamesData*/32&h[1]&&i!==(i=/*gameprops*/e[82].gameModel.thumbnail)&&_(t,"gamethumbnail",i),/*favoriteGamesData*/32&h[1]&&a!==(a=/*gameprops*/e[82].gameModel.name)&&_(t,"gamename",a),/*favoriteGamesData*/32&h[1]&&s!==(s=/*gameprops*/e[82].gameModel.vendor.name)&&_(t,"gamevendor",s),/*favoriteGamesData*/32&h[1]&&o!==(o=/*gameprops*/e[82].gameModel.isNew)&&_(t,"gameisnew",o),/*favoriteGamesData*/32&h[1]&&l!==(l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags))&&_(t,"gametag",l),/*favoriteGamesData*/32&h[1]&&c!==(c=/*gameprops*/e[82].cellSize)&&_(t,"gamecellsize",c),/*favoriteGamesData*/32&h[1]&&u!==(u=/*gameprops*/e[82].gameModel.id)&&_(t,"gameid",u),/*favoriteGamesData*/32&h[1]&&d!==(d=/*gameprops*/e[82].gameModel.hasFunMode)&&_(t,"gamefunmode",d),/*favoriteGamesData*/32&h[1]&&p!==(p=/*gameprops*/e[82].gameModel.isFavorite)&&_(t,"gamefavorite",p),/*showFavGamesCategory*/4&h[1]&&_(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),/*intersectingIndexes, favoriteGamesData*/40&h[1]&&g!==(g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect")&&_(t,"connectlive",g),/*visibilityconnect*/16&h[1]&&_(t,"visibilityconnect",/*visibilityconnect*/e[35]),/*currency*/512&h[0]&&_(t,"currency",/*currency*/e[9]),/*favoriteGamesData*/32&h[1]&&y!==(y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:"")&&_(t,"livelobbyendpoint",y),/*clientstyling*/128&h[0]&&_(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&h[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&h[0]&&_(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&h[0]&&_(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&h[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&h[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&h[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},d(e){e&&m(t)}}}
|
|
1412
1410
|
// (743:28) {#if isMobile(userAgent)}
|
|
1413
|
-
function
|
|
1411
|
+
function Di(e){let t,n=/*gameprops*/e[82].gameModel.platform.includes("iPad")||/*gameprops*/e[82].gameModel.platform.includes("iPhone")||/*gameprops*/e[82].gameModel.platform.includes("Android"),r=n&&Oi(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),h(e,t,n)},p(e,i){/*favoriteGamesData*/32&i[1]&&(n=/*gameprops*/e[82].gameModel.platform.includes("iPad")||/*gameprops*/e[82].gameModel.platform.includes("iPhone")||/*gameprops*/e[82].gameModel.platform.includes("Android")),n?r?r.p(e,i):(r=Oi(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
|
1414
1412
|
// (744:30) {#if (gameprops.gameModel.platform.includes("iPad") || gameprops.gameModel.platform.includes("iPhone") || gameprops.gameModel.platform.includes("Android"))}
|
|
1415
|
-
function
|
|
1413
|
+
function Oi(e){let t,n,r,i,a,s,o,l,c,u,d,p,g,y;return{c(){t=f("casino-game-thumbnail"),_(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"session",/*session*/e[4]),_(t,"userid",/*userid*/e[5]),_(t,"lang",/*lang*/e[3]),_(t,"favorites",/*favorites*/e[6]),_(t,"gamethumbnail",i=/*gameprops*/e[82].gameModel.thumbnail),_(t,"gamename",a=/*gameprops*/e[82].gameModel.name),_(t,"gamevendor",s=/*gameprops*/e[82].gameModel.vendor.name),_(t,"gameisnew",o=/*gameprops*/e[82].gameModel.isNew),_(t,"gametag",l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags)),_(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),_(t,"gameid",u=/*gameprops*/e[82].gameModel.id),_(t,"gamefunmode",d=/*gameprops*/e[82].gameModel.hasFunMode),_(t,"gamefavorite",p=/*gameprops*/e[82].gameModel.isFavorite),_(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),_(t,"connectlive",g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect"),_(t,"visibilityconnect",/*visibilityconnect*/e[35]),_(t,"currency",/*currency*/e[9]),_(t,"livelobbyendpoint",y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:""),_(t,"clientstyling",/*clientstyling*/e[7]),_(t,"clientstylingurl",/*clientstylingurl*/e[8]),_(t,"endpoint",/*endpoint*/e[1]),_(t,"livecasino",/*livecasino*/e[10]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){h(e,t,n)},p(e,h){/*favoriteGamesData*/32&h[1]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"class",n),/*favoriteGamesData*/32&h[1]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"part",r),/*session*/16&h[0]&&_(t,"session",/*session*/e[4]),/*userid*/32&h[0]&&_(t,"userid",/*userid*/e[5]),/*lang*/8&h[0]&&_(t,"lang",/*lang*/e[3]),/*favorites*/64&h[0]&&_(t,"favorites",/*favorites*/e[6]),/*favoriteGamesData*/32&h[1]&&i!==(i=/*gameprops*/e[82].gameModel.thumbnail)&&_(t,"gamethumbnail",i),/*favoriteGamesData*/32&h[1]&&a!==(a=/*gameprops*/e[82].gameModel.name)&&_(t,"gamename",a),/*favoriteGamesData*/32&h[1]&&s!==(s=/*gameprops*/e[82].gameModel.vendor.name)&&_(t,"gamevendor",s),/*favoriteGamesData*/32&h[1]&&o!==(o=/*gameprops*/e[82].gameModel.isNew)&&_(t,"gameisnew",o),/*favoriteGamesData*/32&h[1]&&l!==(l=/*gameprops*/e[82].gameModel.advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].gameModel.advancedTags))&&_(t,"gametag",l),/*favoriteGamesData*/32&h[1]&&c!==(c=/*gameprops*/e[82].cellSize)&&_(t,"gamecellsize",c),/*favoriteGamesData*/32&h[1]&&u!==(u=/*gameprops*/e[82].gameModel.id)&&_(t,"gameid",u),/*favoriteGamesData*/32&h[1]&&d!==(d=/*gameprops*/e[82].gameModel.hasFunMode)&&_(t,"gamefunmode",d),/*favoriteGamesData*/32&h[1]&&p!==(p=/*gameprops*/e[82].gameModel.isFavorite)&&_(t,"gamefavorite",p),/*showFavGamesCategory*/4&h[1]&&_(t,"showfavoredcategory",/*showFavGamesCategory*/e[33]),/*intersectingIndexes, favoriteGamesData*/40&h[1]&&g!==(g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect")&&_(t,"connectlive",g),/*visibilityconnect*/16&h[1]&&_(t,"visibilityconnect",/*visibilityconnect*/e[35]),/*currency*/512&h[0]&&_(t,"currency",/*currency*/e[9]),/*favoriteGamesData*/32&h[1]&&y!==(y=/*gameprops*/e[82].gameModel.details?/*gameprops*/e[82].gameModel.launchUrl:"")&&_(t,"livelobbyendpoint",y),/*clientstyling*/128&h[0]&&_(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&h[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&h[0]&&_(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&h[0]&&_(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&h[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&h[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&h[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},d(e){e&&m(t)}}}
|
|
1416
1414
|
// (739:20) {#each favoriteGamesData.items as gameprops, index}
|
|
1417
|
-
function
|
|
1415
|
+
function Ni(e){let t,n=/*gameprops*/e[82].gameModel&&Pi(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,r){/*gameprops*/e[82].gameModel?n?n.p(e,r):(n=Pi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1418
1416
|
// (639:12) {#if casinomygames !== 'true'}
|
|
1419
|
-
function
|
|
1420
|
-
return e[24]?
|
|
1417
|
+
function Ri(e){let t,n,r,i,a=/*categoryData*/e[22].name+"";function s(e,t){/*showLoadCategory*/
|
|
1418
|
+
return e[24]?Bi:Hi}let o=s(e),l=o(e);return{c(){t=f("div"),n=f("h3"),r=y(a),i=v(),l.c(),x(n,"class","CategoryName"),x(n,"part","CategoryName"),x(t,"class","CasinoGamesHeader"),x(t,"part","CasinoGamesHeader")},m(a,s){h(a,t,s),d(t,n),d(n,r),
|
|
1421
1419
|
/*h3_binding*/e[51](n),d(t,i),l.m(t,null)},p(e,n){/*categoryData*/4194304&n[0]&&a!==(a=/*categoryData*/e[22].name+"")&&S(r,a),o===(o=s(e))&&l?l.p(e,n):(l.d(1),l=o(e),l&&(l.c(),l.m(t,null)))},d(n){n&&m(t)
|
|
1422
1420
|
/*h3_binding*/,e[51](null),l.d()}}}
|
|
1423
1421
|
// (651:16) {:else}
|
|
1424
|
-
function
|
|
1422
|
+
function Hi(e){let t,n,r,i=/*addfilterselector*/"true"==e[15]&&Ui(e),a=/*addsortingselector*/"true"==e[16]&&Yi(e);return{c(){t=f("div"),i&&i.c(),n=v(),a&&a.c(),x(t,"class",r=/*addfilterselector*/"true"==e[15]&&/*addsortingselector*/"true"==e[16]?"CategoryFilterContainer":"")},m(e,r){h(e,t,r),i&&i.m(t,null),d(t,n),a&&a.m(t,null)},p(e,s){/*addfilterselector*/"true"==e[15]?i?i.p(e,s):(i=Ui(e),i.c(),i.m(t,n)):i&&(i.d(1),i=null),/*addsortingselector*/"true"==e[16]?a?a.p(e,s):(a=Yi(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),/*addfilterselector, addsortingselector*/98304&s[0]&&r!==(r=/*addfilterselector*/"true"==e[15]&&/*addsortingselector*/"true"==e[16]?"CategoryFilterContainer":"")&&x(t,"class",r)},d(e){e&&m(t),i&&i.d(),a&&a.d()}}}
|
|
1425
1423
|
// (644:16) {#if showLoadCategory}
|
|
1426
|
-
function
|
|
1424
|
+
function Bi(e){let t,n,r,i,a,s,o,l,c=/*$_*/e[37]("gamesCategorySection.viewAll")+"",u=/*categoryData*/e[22].games.total+"";return{c(){t=f("a"),n=f("span"),r=y(c),i=y(" ("),a=y(u),s=y(")"),x(n,"class","CategoryLoadMore"),x(n,"part","CategoryLoadMore"),x(t,"class","CategoryNameLink"),x(t,"part","CategoryNameLink")},m(c,u){h(c,t,u),d(t,n),d(n,r),d(n,i),d(n,a),d(n,s),o||(l=w(t,"click",/*click_handler*/e[52]),o=!0)},p(e,t){/*$_*/64&t[1]&&c!==(c=/*$_*/e[37]("gamesCategorySection.viewAll")+"")&&S(r,c),/*categoryData*/4194304&t[0]&&u!==(u=/*categoryData*/e[22].games.total+"")&&S(a,u)},d(e){e&&m(t),o=!1,l()}}}
|
|
1427
1425
|
// (653:22) {#if addfilterselector == "true"}
|
|
1428
|
-
function
|
|
1426
|
+
function Ui(e){let t;return{c(){t=f("casino-filter"),_(t,"clientstylingurl",/*clientstylingurl*/e[8]),_(t,"clientstyling",/*clientstyling*/e[7]),_(t,"endpoint",/*endpoint*/e[1]),_(t,"datasource",/*datasource*/e[2]),_(t,"lang",/*lang*/e[3]),_(t,"categoryid",/*categoryid*/e[0]),_(t,"addfilterselector",/*addfilterselector*/e[15]),_(t,"addsortingselector",/*addsortingselector*/e[16]),_(t,"filterbylogo",/*filterbylogo*/e[17])},m(e,n){h(e,t,n)},p(e,n){/*clientstylingurl*/256&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*clientstyling*/128&n[0]&&_(t,"clientstyling",/*clientstyling*/e[7]),/*endpoint*/2&n[0]&&_(t,"endpoint",/*endpoint*/e[1]),/*datasource*/4&n[0]&&_(t,"datasource",/*datasource*/e[2]),/*lang*/8&n[0]&&_(t,"lang",/*lang*/e[3]),/*categoryid*/1&n[0]&&_(t,"categoryid",/*categoryid*/e[0]),/*addfilterselector*/32768&n[0]&&_(t,"addfilterselector",/*addfilterselector*/e[15]),/*addsortingselector*/65536&n[0]&&_(t,"addsortingselector",/*addsortingselector*/e[16]),/*filterbylogo*/131072&n[0]&&_(t,"filterbylogo",/*filterbylogo*/e[17])},d(e){e&&m(t)}}}
|
|
1429
1427
|
// (666:22) {#if addsortingselector == "true"}
|
|
1430
|
-
function
|
|
1428
|
+
function Yi(e){let t;return{c(){t=f("casino-sort"),_(t,"clientstylingurl",/*clientstylingurl*/e[8]),_(t,"clientstyling",/*clientstyling*/e[7]),_(t,"lang",/*lang*/e[3]),_(t,"categoryid",/*categoryid*/e[0]),_(t,"addsortingselector",/*addsortingselector*/e[16])},m(e,n){h(e,t,n)},p(e,n){/*clientstylingurl*/256&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*clientstyling*/128&n[0]&&_(t,"clientstyling",/*clientstyling*/e[7]),/*lang*/8&n[0]&&_(t,"lang",/*lang*/e[3]),/*categoryid*/1&n[0]&&_(t,"categoryid",/*categoryid*/e[0]),/*addsortingselector*/65536&n[0]&&_(t,"addsortingselector",/*addsortingselector*/e[16])},d(e){e&&m(t)}}}
|
|
1431
1429
|
// (718:14) {:else}
|
|
1432
|
-
function
|
|
1430
|
+
function zi(t){let n;return{c(){n=f("p"),n.textContent="You don't have any games in this category.",x(n,"class","NoSearchResults"),x(n,"part","NoSearchResults")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1433
1431
|
// (682:14) {#if shownCategoryData.length !== 0}
|
|
1434
|
-
function
|
|
1435
|
-
/*ul_binding*/e[54](t)},p(e,s){if(/*session, userid, lang, shownCategoryData, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile, thumbnailContainer*/8929274&s[0]|/*addGameTag, intersectingIndexes, visibilityconnect*/280&s[1]){let n;for(i=/*shownCategoryData*/e[23],n=0;n<i.length;n+=1){const r=
|
|
1432
|
+
function ji(e){let t,n,r,i=/*shownCategoryData*/e[23],a=[];for(let t=0;t<i.length;t+=1)a[t]=Wi(bi(e,i,t));return{c(){t=f("ul");for(let e=0;e<a.length;e+=1)a[e].c();x(t,"class",n=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap"),x(t,"part",r=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(n,r){h(n,t,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,null);
|
|
1433
|
+
/*ul_binding*/e[54](t)},p(e,s){if(/*session, userid, lang, shownCategoryData, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile, thumbnailContainer*/8929274&s[0]|/*addGameTag, intersectingIndexes, visibilityconnect*/280&s[1]){let n;for(i=/*shownCategoryData*/e[23],n=0;n<i.length;n+=1){const r=bi(e,i,n);a[n]?a[n].p(r,s):(a[n]=Wi(r),a[n].c(),a[n].m(t,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}/*favoriteGamesData, showFavGamesCategory*/36&s[1]&&n!==(n=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&x(t,"class",n),/*favoriteGamesData, showFavGamesCategory*/36&s[1]&&r!==(r=/*favoriteGamesData*/(0===e[36].items.length&&/*showFavGamesCategory*/e[33]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&x(t,"part",r)},d(n){n&&m(t),p(a,n),
|
|
1436
1434
|
/*ul_binding*/e[54](null)}}}
|
|
1437
1435
|
// (679:12) {#if isLoading && !isLazyLoading}
|
|
1438
|
-
function
|
|
1436
|
+
function Vi(t){let n;return{c(){n=f("div"),x(n,"class","lds-dual-ring"),x(n,"part","lds-dual-ring")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1439
1437
|
// (685:18) {#if intersecting || nativeLoading}
|
|
1440
1438
|
// (684:18) {#each shownCategoryData as gameprops, index}
|
|
1441
|
-
function
|
|
1439
|
+
function Wi(e){let t,n=function(e){let t,n,r,i,a,s,o,l,c,u,d,p,g,y,v=/*index*/e[84];const b=()=>/*casino_game_thumbnail_binding*/e[53](t,v),w=()=>/*casino_game_thumbnail_binding*/e[53](null,v);return{c(){t=f("casino-game-thumbnail"),_(t,"session",/*session*/e[4]),_(t,"userid",/*userid*/e[5]),_(t,"lang",/*lang*/e[3]),_(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"favorites",/*favorites*/e[6]),_(t,"gamethumbnail",i=/*gameprops*/e[82].thumbnail),_(t,"gamename",a=/*gameprops*/e[82].name),_(t,"gamevendor",s=/*gameprops*/e[82].vendor.name),_(t,"gameisnew",o=/*gameprops*/e[82].isNew),_(t,"gametag",l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags)),_(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),_(t,"gameid",u=/*gameprops*/e[82].id),_(t,"gamefunmode",d=/*gameprops*/e[82].hasFunMode),_(t,"gamefavorite",p=/*gameprops*/e[82].isFavorite),_(t,"connectlive",g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect"),_(t,"visibilityconnect",/*visibilityconnect*/e[35]),_(t,"currency",/*currency*/e[9]),_(t,"livelobbyendpoint",y=/*gameprops*/e[82].details?/*gameprops*/e[82].href:""),_(t,"clientstyling",/*clientstyling*/e[7]),_(t,"clientstylingurl",/*clientstylingurl*/e[8]),_(t,"endpoint",/*endpoint*/e[1]),_(t,"livecasino",/*livecasino*/e[10]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){h(e,t,n),b()},p(h,m){e=h,/*session*/16&m[0]&&_(t,"session",/*session*/e[4]),/*userid*/32&m[0]&&_(t,"userid",/*userid*/e[5]),/*lang*/8&m[0]&&_(t,"lang",/*lang*/e[3]),/*shownCategoryData*/8388608&m[0]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"class",n),/*shownCategoryData*/8388608&m[0]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"part",r),/*favorites*/64&m[0]&&_(t,"favorites",/*favorites*/e[6]),/*shownCategoryData*/8388608&m[0]&&i!==(i=/*gameprops*/e[82].thumbnail)&&_(t,"gamethumbnail",i),/*shownCategoryData*/8388608&m[0]&&a!==(a=/*gameprops*/e[82].name)&&_(t,"gamename",a),/*shownCategoryData*/8388608&m[0]&&s!==(s=/*gameprops*/e[82].vendor.name)&&_(t,"gamevendor",s),/*shownCategoryData*/8388608&m[0]&&o!==(o=/*gameprops*/e[82].isNew)&&_(t,"gameisnew",o),/*shownCategoryData*/8388608&m[0]&&l!==(l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags))&&_(t,"gametag",l),/*shownCategoryData*/8388608&m[0]&&c!==(c=/*gameprops*/e[82].cellSize)&&_(t,"gamecellsize",c),/*shownCategoryData*/8388608&m[0]&&u!==(u=/*gameprops*/e[82].id)&&_(t,"gameid",u),/*shownCategoryData*/8388608&m[0]&&d!==(d=/*gameprops*/e[82].hasFunMode)&&_(t,"gamefunmode",d),/*shownCategoryData*/8388608&m[0]&&p!==(p=/*gameprops*/e[82].isFavorite)&&_(t,"gamefavorite",p),/*shownCategoryData*/8388608&m[0]|/*intersectingIndexes*/8&m[1]&&g!==(g=/*intersectingIndexes*/1==e[34][/*gameprops*/e[82].id]?"connect":"disconnect")&&_(t,"connectlive",g),/*visibilityconnect*/16&m[1]&&_(t,"visibilityconnect",/*visibilityconnect*/e[35]),/*currency*/512&m[0]&&_(t,"currency",/*currency*/e[9]),/*shownCategoryData*/8388608&m[0]&&y!==(y=/*gameprops*/e[82].details?/*gameprops*/e[82].href:"")&&_(t,"livelobbyendpoint",y),/*clientstyling*/128&m[0]&&_(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&m[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&m[0]&&_(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&m[0]&&_(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&m[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&m[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&m[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13]),v!==/*index*/e[84]&&(w(),v=/*index*/e[84],b())},d(e){e&&m(t),w()}}}(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1442
1440
|
// (589:12) {:else}
|
|
1443
|
-
function
|
|
1441
|
+
function Zi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.searchedItems")+"";return{c(){t=f("h3"),n=y(r),x(t,"class","StatusText"),x(t,"part","StatusText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.searchedItems")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1444
1442
|
// (585:12) {#if !shownCategoryData.length}
|
|
1445
|
-
function
|
|
1443
|
+
function Ki(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noResults")+"";return{c(){t=f("h3"),n=y(r),x(t,"class","StatusText"),x(t,"part","StatusText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noResults")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1446
1444
|
// (580:10) {#if recentSearched}
|
|
1447
|
-
function
|
|
1445
|
+
function Xi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.recentSearchedItems")+"";return{c(){t=f("h3"),n=y(r),x(t,"class","StatusText"),x(t,"part","StatusText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.recentSearchedItems")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1448
1446
|
// (631:8) {:else}
|
|
1449
|
-
function
|
|
1447
|
+
function qi(t){let n;return{c(){n=f("p"),n.textContent="Waiting",x(n,"class","SearchWaiting"),x(n,"part","SearchWaiting")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1450
1448
|
// (596:8) {#if shownCategoryData}
|
|
1451
|
-
function
|
|
1449
|
+
function Ji(e){let t,n,r=!/*showItems*/e[29]&&Qi(e),i=/*shownCategoryData*/e[23],a=[];for(let t=0;t<i.length;t+=1)a[t]=ea(wi(e,i,t));return{c(){r&&r.c(),t=v(),n=f("ul");for(let e=0;e<a.length;e+=1)a[e].c();x(n,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap"),x(n,"part","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,i){r&&r.m(e,i),h(e,t,i),h(e,n,i);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(e,s){if(/*showItems*/e[29]?r&&(r.d(1),r=null):r?r.p(e,s):(r=Qi(e),r.c(),r.m(t.parentNode,t)),/*shownCategoryData, session, userid, lang, searchItem, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/142622714&s[0]|/*addGameTag*/256&s[1]){let t;for(i=/*shownCategoryData*/e[23],t=0;t<i.length;t+=1){const r=wi(e,i,t);a[t]?a[t].p(r,s):(a[t]=ea(r),a[t].c(),a[t].m(n,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=i.length}},d(e){r&&r.d(e),e&&m(t),e&&m(n),p(a,e)}}}
|
|
1452
1450
|
// (597:10) {#if !showItems}
|
|
1453
|
-
function
|
|
1451
|
+
function Qi(e){let t,n,r=/*$_*/e[37]("gamesCategorySection.noRecentSearch")+"";return{c(){t=f("p"),n=y(r),x(t,"class","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(fr(/*userAgent*/e[38])?"NoRecentSearchesMobile":"")),x(t,"part","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(fr(/*userAgent*/e[38])?"NoRecentSearchesMobile":""))},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/64&t[1]&&r!==(r=/*$_*/e[37]("gamesCategorySection.noRecentSearch")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
|
1454
1452
|
// (601:12) {#each shownCategoryData as gameprops, index}
|
|
1455
|
-
function
|
|
1453
|
+
function ea(e){let t,n,r,i,a,s,o,l,c,u,d,p,g;return{c(){t=f("casino-game-thumbnail"),_(t,"class",n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"part",r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1"))),_(t,"session",/*session*/e[4]),_(t,"userid",/*userid*/e[5]),_(t,"lang",/*lang*/e[3]),_(t,"searchitem",/*searchItem*/e[27]),_(t,"favorites",/*favorites*/e[6]),_(t,"gamethumbnail",i=/*gameprops*/e[82].thumbnail),_(t,"gamename",a=/*gameprops*/e[82].name),_(t,"gamevendor",s=/*gameprops*/e[82].vendor.name),_(t,"gameisnew",o=/*gameprops*/e[82].isNew),_(t,"gametag",l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags)),_(t,"gamecellsize",c=/*gameprops*/e[82].cellSize),_(t,"gameid",u=/*gameprops*/e[82].id),_(t,"gamefunmode",d=/*gameprops*/e[82].hasFunMode),_(t,"gamefavorite",p=/*gameprops*/e[82].isFavorite),_(t,"currency",/*currency*/e[9]),_(t,"livelobbyendpoint",g=/*gameprops*/e[82].details?/*gameprops*/e[82].href:""),_(t,"clientstyling",/*clientstyling*/e[7]),_(t,"clientstylingurl",/*clientstylingurl*/e[8]),_(t,"endpoint",/*endpoint*/e[1]),_(t,"livecasino",/*livecasino*/e[10]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},m(e,n){h(e,t,n)},p(e,h){/*shownCategoryData*/8388608&h[0]&&n!==(n=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"class",n),/*shownCategoryData*/8388608&h[0]&&r!==(r=""+(ia+(/*gameprops*/e[82].cellSize?/*gameprops*/e[82].cellSize:"1x1")))&&_(t,"part",r),/*session*/16&h[0]&&_(t,"session",/*session*/e[4]),/*userid*/32&h[0]&&_(t,"userid",/*userid*/e[5]),/*lang*/8&h[0]&&_(t,"lang",/*lang*/e[3]),/*searchItem*/134217728&h[0]&&_(t,"searchitem",/*searchItem*/e[27]),/*favorites*/64&h[0]&&_(t,"favorites",/*favorites*/e[6]),/*shownCategoryData*/8388608&h[0]&&i!==(i=/*gameprops*/e[82].thumbnail)&&_(t,"gamethumbnail",i),/*shownCategoryData*/8388608&h[0]&&a!==(a=/*gameprops*/e[82].name)&&_(t,"gamename",a),/*shownCategoryData*/8388608&h[0]&&s!==(s=/*gameprops*/e[82].vendor.name)&&_(t,"gamevendor",s),/*shownCategoryData*/8388608&h[0]&&o!==(o=/*gameprops*/e[82].isNew)&&_(t,"gameisnew",o),/*shownCategoryData*/8388608&h[0]&&l!==(l=/*gameprops*/e[82].advancedTags?.length>0&&/*addGameTag*/e[39](/*gameprops*/e[82].advancedTags))&&_(t,"gametag",l),/*shownCategoryData*/8388608&h[0]&&c!==(c=/*gameprops*/e[82].cellSize)&&_(t,"gamecellsize",c),/*shownCategoryData*/8388608&h[0]&&u!==(u=/*gameprops*/e[82].id)&&_(t,"gameid",u),/*shownCategoryData*/8388608&h[0]&&d!==(d=/*gameprops*/e[82].hasFunMode)&&_(t,"gamefunmode",d),/*shownCategoryData*/8388608&h[0]&&p!==(p=/*gameprops*/e[82].isFavorite)&&_(t,"gamefavorite",p),/*currency*/512&h[0]&&_(t,"currency",/*currency*/e[9]),/*shownCategoryData*/8388608&h[0]&&g!==(g=/*gameprops*/e[82].details?/*gameprops*/e[82].href:"")&&_(t,"livelobbyendpoint",g),/*clientstyling*/128&h[0]&&_(t,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&h[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[8]),/*endpoint*/2&h[0]&&_(t,"endpoint",/*endpoint*/e[1]),/*livecasino*/1024&h[0]&&_(t,"livecasino",/*livecasino*/e[10]),/*gamepagemodalurl*/2048&h[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/4096&h[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[12]),/*integratedgameframemobile*/8192&h[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[13])},d(e){e&&m(t)}}}
|
|
1456
1454
|
// (573:4) {:else}
|
|
1457
|
-
function
|
|
1455
|
+
function ta(e){let t;return{c(){t=f("p"),t.textContent="500 Error - Internal Server Error.",x(t,"class","SearchLoading"),x(t,"part","SearchLoading")},m(e,n){h(e,t,n)},d(e){e&&m(t)}}}
|
|
1458
1456
|
// (571:4) {#if filteresPresent}
|
|
1459
|
-
function
|
|
1460
|
-
return e[21]?
|
|
1457
|
+
function na(e){let t;return{c(){t=f("p"),t.textContent="404 Error - No result found.",x(t,"class","SearchLoading"),x(t,"part","SearchLoading")},m(e,n){h(e,t,n)},d(e){e&&m(t)}}}function ra(t){let n;function r(e,t){/*hasErrors*/
|
|
1458
|
+
return e[21]?Si:/*searched*/e[25]?_i:xi}let i=r(t),a=i(t);return{c(){n=f("div"),a.c(),this.c=e,x(n,"class","CasinoGamesCategorySectionContainer"),x(n,"part","CasinoGamesCategorySectionContainer")},m(e,r){h(e,n,r),a.m(n,null),
|
|
1461
1459
|
/*div_binding*/t[57](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a.d(),
|
|
1462
|
-
/*div_binding*/t[57](null)}}}!customElements.get("casino-sort")&&customElements.define("casino-sort",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent='.SorterContainer{color:#fff;position:relative;z-index:16}.SorterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in}.
|
|
1460
|
+
/*div_binding*/t[57](null)}}}!customElements.get("casino-sort")&&customElements.define("casino-sort",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent='.SorterContainer{color:#fff;position:relative;z-index:16}.SorterSelector{background-color:#58586B;display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:#D1D1D1;text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;padding:0 0 0 30px;cursor:pointer}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid #fff;height:18px;width:18px;border-radius:50%;position:absolute;top:-11px;left:-1px}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-color-primary, #D0046C);width:14px;height:14px;border-radius:50%;position:absolute;top:-8px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}@supports (-webkit-touch-callout: none){.SorterItem .CustomRadioButton input[type=radio]+span:after{position:absolute;top:-7px;left:2.5px}}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},yi,gi,a,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,addSorterSelector:12,addsortingselector:13,categoryid:14},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["lang","translationurl","clientstyling","clientstylingurl","addSorterSelector","addsortingselector","categoryid"]}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),R()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),R()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get addSorterSelector(){return this.$$.ctx[12]}set addSorterSelector(e){this.$$set({addSorterSelector:e}),R()}get addsortingselector(){return this.$$.ctx[13]}set addsortingselector(e){this.$$set({addsortingselector:e}),R()}get categoryid(){return this.$$.ctx[14]}set categoryid(e){this.$$set({categoryid:e}),R()}});const ia="game-tile-";function aa(e,t,n){let r;u(e,pr,(e=>n(37,r=e)));let i,a,s,o,l,c,d,h,m,p,{categoryindex:f=""}=t,{endpoint:g=""}=t,{datasource:y=""}=t,{lang:v=""}=t,{session:b=""}=t,{userid:w=""}=t,{favorites:x=""}=t,{clientstyling:_=""}=t,{clientstylingurl:S=""}=t,{translationurl:$=""}=t,{currency:C=""}=t,{categoryid:T=""}=t,{categorygames:M=0}=t,{livecasino:F="false"}=t,{visiblegames:L=""}=t,{gamepagemodalurl:G="false"}=t,{integratedgameframedesktop:P="false"}=t,{integratedgameframemobile:I="false"}=t,{casinomygames:A="false"}=t,{addfilterselector:D="false"}=t,{addsortingselector:O="false"}=t,{filterbylogo:N=""}=t,{once:R=!0}=t,{top:H=0}=t,{bottom:B=0}=t,{left:U=0}=t,{right:Y=0}=t,z=!0,j=!1,V=!0,W=window.navigator.userAgent,Z=[],K=!0,X=40,q=!1,J=!1,Q=!1,ee=!1,te=!1,ne=!0,re=!1,ie=!1,ae=!1,se=new Array(1e4),oe={},le="",ce="",ue={items:[],count:0,name:""};Object.keys(wr).forEach((e=>{br(e,wr[e])})),void 0!==document.hidden?
|
|
1463
1461
|
// Opera 12.10 and Firefox 18 and later support
|
|
1464
1462
|
m="hidden":void 0!==document.msHidden?m="msHidden":void 0!==document.webkitHidden&&(m="webkitHidden");
|
|
1465
1463
|
// IntersectionObserver used for loading more games
|
|
@@ -1467,16 +1465,16 @@ let de=new IntersectionObserver((e=>{e.forEach((async e=>{let t=e.target.gameid,
|
|
|
1467
1465
|
// eslint-disable-line
|
|
1468
1466
|
e.isIntersecting?(1.2*r>X&&pe(T),n(34,oe[t]=1,oe)):n(34,oe[t]=0,oe)}))}));
|
|
1469
1467
|
// Start favored games section
|
|
1470
|
-
const he=(e,t,r,i=[])=>{n(20,
|
|
1471
|
-
return(T.match(/\$/g)||[]).length>1?(a=T.split("$").slice(0,2).join("$"),s=new URL(`${u}/casino/groups/${y}/${a}/subGroups`)):s=new URL(`${u}/casino/groups/${y}/${T}`),new Promise(((e,i)=>{if(s.searchParams.delete("pagination"),s.searchParams.append("expand","games(vendor)"),s.searchParams.append("fields","id,name,games"),s.searchParams.append("platform",
|
|
1468
|
+
const he=(e,t,r,i=[])=>{n(20,z=!0);let a="",s="",o=JSON.parse(localStorage.getItem("vendorFiltersByCategory")),c=JSON.parse(localStorage.getItem("vendorSortingBy")),u=g.replace(/.$/,"2");// @TODO remove after we migrate with all endpoints to v2 - hack for the endpoint since the filtering of categories functionality was developed only for the v2 api
|
|
1469
|
+
return(T.match(/\$/g)||[]).length>1?(a=T.split("$").slice(0,2).join("$"),s=new URL(`${u}/casino/groups/${y}/${a}/subGroups`)):s=new URL(`${u}/casino/groups/${y}/${T}`),new Promise(((e,i)=>{if(s.searchParams.delete("pagination"),s.searchParams.append("expand","games(vendor)"),s.searchParams.append("fields","id,name,games"),s.searchParams.append("platform",gr(W)),s.searchParams.append("pagination",`games(offset=${t},limit=${r})`),s.searchParams.append("language",v),
|
|
1472
1470
|
// if vendor filters are active, get filtered games
|
|
1473
|
-
window.postMessage({type:"CategoryVendors",categoryid:T},window.location.href),o&&o[T])if(o[T].length&&!1===V&&!1===ie){let e="";n(28,te=!0),o[T].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),s.searchParams.append("filter",(o&&o[T].length<2?"$and":"$or")+`(${e})`)}else n(28,te=!1);c&&(c[T]?c[T]&&"All"!=c[T]&&("isNew"==c[T]||"advancedTags(name(hot))"==c[T]?(s.searchParams.append("sortedField",`games(${c[T]})`),s.searchParams.append("orderBy","DES")):s.searchParams.append("sortedField",`games(${c[T]})`)):ce&&"All"!=ce&&("advancedTags(name(hot))"==ce||"isNew"==ce?(s.searchParams.append("sortedField",`games(${ce})`),s.searchParams.append("orderBy","DES")):s.searchParams.append("sortedField",`games(${ce})`))),fetch(s).then((e=>e.json())).then((t=>{n(20,
|
|
1471
|
+
window.postMessage({type:"CategoryVendors",categoryid:T},window.location.href),o&&o[T])if(o[T].length&&!1===V&&!1===ie){let e="";n(28,te=!0),o[T].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),s.searchParams.append("filter",(o&&o[T].length<2?"$and":"$or")+`(${e})`)}else n(28,te=!1);c&&(c[T]?c[T]&&"All"!=c[T]&&("isNew"==c[T]||"advancedTags(name(hot))"==c[T]?(s.searchParams.append("sortedField",`games(${c[T]})`),s.searchParams.append("orderBy","DES")):s.searchParams.append("sortedField",`games(${c[T]})`)):ce&&"All"!=ce&&("advancedTags(name(hot))"==ce||"isNew"==ce?(s.searchParams.append("sortedField",`games(${ce})`),s.searchParams.append("orderBy","DES")):s.searchParams.append("sortedField",`games(${ce})`))),fetch(s).then((e=>e.json())).then((t=>{n(20,z=!1),(T.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==T)return e}))[0]),n(50,p=!0),n(21,j=!1),l=t.games.total,e(t)}),(e=>{n(21,j=!0),console.error(e),i(e)}))}))},me=e=>{if(e.data)switch(e.data.type){case"MostPlayedData":"MOSTPLAYED"==T&&(n(25,q=!1),V=!1,n(24,K=!1),n(23,Z=e.data.mostPlayedGames),n(22,s={id:"MOSTPLAYED",name:"Most Played Games",games:{count:e.data.mostPlayedGames.length,total:e.data.mostPlayedGames.length,items:e.data.mostPlayedGames}})),n(20,z=!1);break;case"LastPlayedData":"LASTPLAYED"==T&&(n(25,q=!1),V=!1,n(24,K=!1),n(23,Z=e.data.lastPlayedGames),n(22,s={id:"LASTPLAYED",name:"Last Played Games",games:{count:e.data.lastPlayedGames.length,total:e.data.lastPlayedGames.length,items:e.data.lastPlayedGames}})),n(20,z=!1);break;case"CustomOperatorData":e.data.operatordetail;break;case"RecentSearchData":n(25,q=!0),n(26,J=!0),e.data.searchData.length>0?(n(23,Z=e.data.searchData),n(29,ne=!0),Z&&Z.forEach((e=>{e.isFavorite=fe(e.id)}))):(n(23,Z=[]),n(29,ne=!1));break;case"OutOfRecentSearches":n(25,q=!1),n(26,J=!1);break;case"SearchData":n(25,q=!0),n(26,J=!1),n(23,Z=e.data.searchData.items||[]),n(27,ee=!0),e.data.receivedFavoriteResults&&(d=e.data.receivedFavoriteResults.items),Z&&Z.forEach((e=>{e.isFavorite=fe(e.id)}));break;case`CategoryData_${T}`:n(25,q=!1),V=!0,n(24,K=!0),n(27,ee=!1),ae=!1,e.data.receivedFavoriteResults&&(d=e.data.receivedFavoriteResults.items),he(e.data.categoryId,0,e.data.visiblegames).then((e=>{n(22,s=e),n(23,Z=s.games.items),Z&&Z.forEach((e=>{e.isFavorite=fe(e.id)}))}));break;case"CategoryChange":X=20;break;case"ApplySorter":n(0,T=e.data.itemId),ce=e.data.sortBy,he(0,0,X).then((e=>{n(22,s=e),n(23,Z=s.games.items),n(24,K=!1)}));break;case"CategoryUpdate":n(25,q=!1),V=!1,n(27,ee=!1),ae=!0,n(0,T=e.data.itemId),"MOSTPLAYED"!==T&&n(24,K=!1),"true"!==A&&he(0,0,X).then((t=>{n(22,s=t),s.games.items.forEach((e=>{e.isFavorite=fe(e.id)})),n(23,Z=s.games.items),n(24,K=!1),
|
|
1474
1472
|
// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
1475
1473
|
Z.length<10&&0==e.data.origin&&(Q=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:Q},window.location.href)}),500))}));break;case"FavoriteUpdate":V=!0,s&&(n(23,Z=s.games.items),Z.forEach((e=>{e.isFavorite=fe(e.id)})));break;case"UpdateCategoryFavoriteGames":if(e.data.receivedFavoriteResults){if(d=e.data.receivedFavoriteResults.items,e.data.favStadalone)return;ie?V||window.postMessage({type:"CategoryUpdate",itemId:T},window.location.href):window.postMessage({type:"FavoriteUpdate"},window.location.href)}break;case"ShowFavoriteSection":let t;V=!1,e.data&&(t=e.data.receivedFavoriteResults.items,t.length&&t.forEach((e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)})),n(36,ue.items=
|
|
1476
1474
|
// separate favorites array into mobile and desktop favorites
|
|
1477
1475
|
function(e,t){let n=window.navigator.userAgent;
|
|
1478
1476
|
// make sure to display favored games specific to the platform used
|
|
1479
|
-
return
|
|
1477
|
+
return fr(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e})):e.filter((e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e}))}(t,ue.items),ue),n(36,ue.name="Favorites",ue),n(33,ie=!0),n(20,z=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==x&&a&&a.length&&i&&i.length>0&&((e,t)=>{n(20,z=!0);let r={method:"GET",headers:{"X-SessionID":t}};new Promise(((t,i)=>{fetch(e,r).then((e=>e.json())).then((e=>{n(20,z=!1),d=e?e.items:[],Z.forEach((e=>{e.isFavorite=fe(e.id)}));let r=Z;n(23,Z=void 0),n(23,Z=r),t(d)})).catch((e=>{console.error(e),i(e)}))}))})(`${g}/player/${a}/favorites/`,i)}},pe=e=>{X+=1,n(30,re=!0),X<=l&&he(0,0,X).then((e=>{n(22,s=e),
|
|
1480
1478
|
// @TODO categoryData type fix
|
|
1481
1479
|
/**
|
|
1482
1480
|
* This check is needed to prevent requests with less items
|
|
@@ -1485,56 +1483,56 @@ return gr(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad"
|
|
|
1485
1483
|
*/
|
|
1486
1484
|
s.games.items.length>Z.length&&(n(23,Z=s.games.items),Z.forEach((e=>{e.isFavorite=fe(e.id)}))),n(30,re=!1)}))},fe=e=>!!d&&-1!==d.findIndex((t=>t.id==e)),ge=e=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href)};
|
|
1487
1485
|
// @TODO categoryId type
|
|
1488
|
-
E((()=>(window.addEventListener("visibilitychange",(e=>{document[m]?n(35,le="disconnect"):n(35,le="connect")})),window.addEventListener("message",me,!1),"FAVORITES"===T&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",me),window.removeEventListener("visibilitychange",me)})));return e.$$set=e=>{"categoryindex"in e&&n(41,f=e.categoryindex),"endpoint"in e&&n(1,g=e.endpoint),"datasource"in e&&n(2,y=e.datasource),"lang"in e&&n(3,v=e.lang),"session"in e&&n(4,b=e.session),"userid"in e&&n(5,w=e.userid),"favorites"in e&&n(6,
|
|
1486
|
+
E((()=>(window.addEventListener("visibilitychange",(e=>{document[m]?n(35,le="disconnect"):n(35,le="connect")})),window.addEventListener("message",me,!1),"FAVORITES"===T&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",me),window.removeEventListener("visibilitychange",me)})));return e.$$set=e=>{"categoryindex"in e&&n(41,f=e.categoryindex),"endpoint"in e&&n(1,g=e.endpoint),"datasource"in e&&n(2,y=e.datasource),"lang"in e&&n(3,v=e.lang),"session"in e&&n(4,b=e.session),"userid"in e&&n(5,w=e.userid),"favorites"in e&&n(6,x=e.favorites),"clientstyling"in e&&n(7,_=e.clientstyling),"clientstylingurl"in e&&n(8,S=e.clientstylingurl),"translationurl"in e&&n(42,$=e.translationurl),"currency"in e&&n(9,C=e.currency),"categoryid"in e&&n(0,T=e.categoryid),"categorygames"in e&&n(43,M=e.categorygames),"livecasino"in e&&n(10,F=e.livecasino),"visiblegames"in e&&n(44,L=e.visiblegames),"gamepagemodalurl"in e&&n(11,G=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(12,P=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(13,I=e.integratedgameframemobile),"casinomygames"in e&&n(14,A=e.casinomygames),"addfilterselector"in e&&n(15,D=e.addfilterselector),"addsortingselector"in e&&n(16,O=e.addsortingselector),"filterbylogo"in e&&n(17,N=e.filterbylogo),"once"in e&&n(45,R=e.once),"top"in e&&n(46,H=e.top),"bottom"in e&&n(47,B=e.bottom),"left"in e&&n(48,U=e.left),"right"in e&&n(49,Y=e.right)},e.$$.update=()=>{/*thumbnailContainer*/524288&e.$$.dirty[0]|/*dataloaded*/524288&e.$$.dirty[1]&&p&&se&&ae&&se.forEach(((e,t)=>{e&&(
|
|
1489
1487
|
// Hack to make sure that I can identify the thumbnail index
|
|
1490
1488
|
e.elems_index=t,de.observe(e))})),/*lang, categoryid*/9&e.$$.dirty[0]&&v&&T&&(()=>{
|
|
1491
1489
|
// showFavGamesCategory vs categoryData
|
|
1492
1490
|
// favoriteGamesData vs shownCategoryData
|
|
1493
|
-
switch(T){case"FAVORITES":n(33,ie=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===
|
|
1491
|
+
switch(T){case"FAVORITES":n(33,ie=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===A&&n(33,ie=!1)}})(),/*translationurl*/2048&e.$$.dirty[1]&&$&&fetch($).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{br(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/262272&e.$$.dirty[0]&&_&&h&&(()=>{let e=document.createElement("style");e.innerHTML=_,h.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/262400&e.$$.dirty[0]&&S&&h&&(()=>{let e=new URL(S),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{h.appendChild(t)}),1)}))})()},[T,g,y,v,b,w,x,_,S,C,F,G,P,I,A,D,O,N,h,se,z,j,s,Z,K,q,J,ee,te,ne,re,o,c,ie,oe,le,ue,r,W,e=>{if(0===(null==e?void 0:e.length))return"";let t,n="",r=999999999999;const i=new Date(Date.now());return e.forEach(((a,s)=>{const o=new Date(a.schedules[0].startTime),l=new Date(a.schedules[0].endTime);xr(l).diff(i)<r&&(r=xr(l).diff(i),t=s),xr(i).isAfter(o)&&xr(i).isBefore(l)&&(n=e[t].name)})),n},ge,f,$,M,L,R,H,B,U,Y,p,function(e){k[e?"unshift":"push"]((()=>{c=e,n(32,c)}))},e=>ge(s.id),function(e,t){k[e?"unshift":"push"]((()=>{se[t]=e,n(19,se)}))},function(e){k[e?"unshift":"push"]((()=>{o=e,n(31,o)}))},function(e){k[e?"unshift":"push"]((()=>{c=e,n(32,c)}))},function(e){k[e?"unshift":"push"]((()=>{o=e,n(31,o)}))},function(e){k[e?"unshift":"push"]((()=>{h=e,n(18,h)}))}]}
|
|
1494
1492
|
/* ../casino-favorites-section/src/CasinoFavoritesSection.svelte generated by Svelte v3.58.0 */
|
|
1495
|
-
function
|
|
1496
|
-
/*div_binding*/t[18](n),s||(u=a=/*getFavoredGames*/t[16].call(null,r,(/*endpoint*/t[2],/*userid*/t[1],/*session*/t[0],/*userid*/t[1])),o=u&&i(u.destroy)?u.destroy:e,s=!0)},p(e,[t]){/*session*/1&t&&
|
|
1497
|
-
/*div_binding*/,t[18](null),s=!1,o()}}}function
|
|
1493
|
+
function sa(t){let n,r,a,s,o;return{c(){n=f("div"),r=f("casino-games-category-section"),this.c=e,_(r,"session",/*session*/t[0]),_(r,"userid",/*userid*/t[1]),_(r,"endpoint",/*endpoint*/t[2]),_(r,"datasource",/*datasource*/t[3]),_(r,"lang",/*lang*/t[5]),_(r,"currency",/*currency*/t[4]),_(r,"favorites",/*favorites*/t[13]),_(r,"categoryid","FAVORITES"),_(r,"class","CategoryContainer"),_(r,"clientstyling",/*clientstyling*/t[6]),_(r,"clientstylingurl",/*clientstylingurl*/t[7]),_(r,"livecasino",/*livecasino*/t[8]),_(r,"visiblegames",/*visiblegames*/t[12]),_(r,"gamepagemodalurl",/*gamepagemodalurl*/t[11]),_(r,"integratedgameframedesktop",/*integratedgameframedesktop*/t[10]),_(r,"integratedgameframemobile",/*integratedgameframemobile*/t[9]),_(r,"casinomygames",/*casinomygames*/t[14]),x(n,"class","CasinoFavoritesSectionContainer")},m(l,c){var u;h(l,n,c),d(n,r),
|
|
1494
|
+
/*div_binding*/t[18](n),s||(u=a=/*getFavoredGames*/t[16].call(null,r,(/*endpoint*/t[2],/*userid*/t[1],/*session*/t[0],/*userid*/t[1])),o=u&&i(u.destroy)?u.destroy:e,s=!0)},p(e,[t]){/*session*/1&t&&_(r,"session",/*session*/e[0]),/*userid*/2&t&&_(r,"userid",/*userid*/e[1]),/*endpoint*/4&t&&_(r,"endpoint",/*endpoint*/e[2]),/*datasource*/8&t&&_(r,"datasource",/*datasource*/e[3]),/*lang*/32&t&&_(r,"lang",/*lang*/e[5]),/*currency*/16&t&&_(r,"currency",/*currency*/e[4]),/*favorites*/8192&t&&_(r,"favorites",/*favorites*/e[13]),/*clientstyling*/64&t&&_(r,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&t&&_(r,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&t&&_(r,"livecasino",/*livecasino*/e[8]),/*visiblegames*/4096&t&&_(r,"visiblegames",/*visiblegames*/e[12]),/*gamepagemodalurl*/2048&t&&_(r,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/1024&t&&_(r,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/512&t&&_(r,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),/*casinomygames*/16384&t&&_(r,"casinomygames",/*casinomygames*/e[14]),a&&i(a.update)&&/*endpoint, userid, session*/7&t&&a.update.call(null,(/*endpoint*/e[2],/*userid*/e[1],/*session*/e[0],/*userid*/e[1]))},i:e,o:e,d(e){e&&m(n)
|
|
1495
|
+
/*div_binding*/,t[18](null),s=!1,o()}}}function oa(e,t,n){let r,i,{endpoint:a=""}=t,{datasource:s=""}=t,{currency:o=""}=t,{lang:l=""}=t,{session:c=""}=t,{userid:u=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{livecasino:m="false"}=t,{integratedgameframemobile:p="false"}=t,{integratedgameframedesktop:f="false"}=t,{gamepagemodalurl:g="false"}=t,{visiblegames:y=""}=t,{favorites:v=""}=t,{categoryid:b=""}=t,{casinomygames:w="false"}=t,x=[];!function({withLocale:e,translations:t}){nr.subscribe((n=>{null==n&&(Rn.set(t),nr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1498
1496
|
/*dictionary.set(translations);
|
|
1499
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});const
|
|
1497
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});const _=e=>{if(e.data)switch(e.data.type){case"UserSessionID":n(0,c=e.data.session),n(1,u=e.data.userID),u&&u.length&&c&&c.length>0&&S(a,c,u);break;case"SetUnfavoredGame":C(`${a}/player/${u}/favorites`,c,u,e.data.id,e.data.triggerFactor);break;case"SetFavoredGame":$(`${a}/player/${u}/favorites`,c,u,e.data.id,e.data.triggerFactor);break;case"GetFavoredGame":u&&u.length&&c&&c.length>0&&S(a,c,u)}};let S=(e,t,n)=>{if("true"==v&&c&&n){fetch(`${e}/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then((e=>e.json())).then((e=>(i=e,i&&(M(),window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:i,favStadalone:!0},window.location.href),F(i.items)),i))).then((e=>e)).catch((e=>{console.error(e)}))}},$=(e,t,n,r,i)=>{
|
|
1500
1498
|
// When adding new favored games, the api requires an array with all the current favored games due to the fact that it overwrites the old ones with the ones found in the body of the POST request
|
|
1501
|
-
|
|
1499
|
+
x.includes(r)||x.push(r);let a={items:x},s={method:"POST",headers:{"X-SessionID":t,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(a)};fetch(e,s).then((e=>e.json())).then((()=>{window.postMessage({type:`AddFavoriteThumbnail_${r}`},window.location.href),T(e,t)})).catch((e=>{console.error("Err",e)}))};const C=(e,t,n,r,i)=>{x.includes(r)&&(x=x.filter((e=>e!=r))),fetch(`${e}/${r}`,{method:"DELETE",headers:{"X-SessionID":t}}).then((e=>e.json())).then((()=>{window.postMessage({type:`RemoveFavoriteThumbnail_${r}`},window.location.href),T(e,t)}))};let T=(e,t)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then((e=>e.json())).then((e=>(i=e,M(),i&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:i,favStadalone:!0},window.location.href),i))).catch((e=>{console.error(e)}))};const M=()=>{window.postMessage({type:"ShowFavoriteSection",receivedFavoriteResults:i},window.location.href)},F=(e=[])=>(
|
|
1502
1500
|
// construct favorite array used to check if game id is not already present in fav list
|
|
1503
|
-
_=[],e.length>0&&e.forEach((e=>{_.push(e.id)})),_);return E((()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}))),e.$$set=e=>{"endpoint"in e&&n(2,a=e.endpoint),"datasource"in e&&n(3,s=e.datasource),"currency"in e&&n(4,o=e.currency),"lang"in e&&n(5,l=e.lang),"session"in e&&n(0,c=e.session),"userid"in e&&n(1,u=e.userid),"clientstyling"in e&&n(6,d=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,p=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,f=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"categoryid"in e&&n(17,b=e.categoryid),"casinomygames"in e&&n(14,w=e.casinomygames)},e.$$.update=()=>{/*endpoint, userid, session, lang, favorites*/8231&e.$$.dirty&&a&&u&&c&&l&&v&&"true"==v&&S(a,c,u),/*clientstyling, customStylingContainer*/32832&e.$$.dirty&&d&&r&&(()=>{let e=document.createElement("style");e.innerHTML=d,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty&&h&&r&&(()=>{let e=document.createElement("style");fetch(new URL(h)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1)}))})()},[c,u,a,s,o,l,d,h,m,p,f,g,y,v,w,r,S,b,function(e){F[e?"unshift":"push"]((()=>{r=e,n(15,r)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends z{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}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:17px;justify-items:center}@media screen and (max-width: 385px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media only screen and (max-width: 768px){.CasinoGamesHeader{align-items:unset;flex-direction:row;flex-wrap:wrap}.CategoryName{margin-bottom:20px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},oa,aa,a,{categoryindex:41,endpoint:1,datasource:2,lang:3,session:4,userid:5,favorites:6,clientstyling:7,clientstylingurl:8,translationurl:42,currency:9,categoryid:0,categorygames:43,livecasino:10,visiblegames:44,gamepagemodalurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,casinomygames:14,addfilterselector:15,addsortingselector:16,filterbylogo:17,once:45,top:46,bottom:47,left:48,right:49},null,[-1,-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","addfilterselector","addsortingselector","filterbylogo","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[41]}set categoryindex(e){this.$$set({categoryindex:e}),H()}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),H()}get favorites(){return this.$$.ctx[6]}set favorites(e){this.$$set({favorites:e}),H()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[42]}set translationurl(e){this.$$set({translationurl:e}),H()}get currency(){return this.$$.ctx[9]}set currency(e){this.$$set({currency:e}),H()}get categoryid(){return this.$$.ctx[0]}set categoryid(e){this.$$set({categoryid:e}),H()}get categorygames(){return this.$$.ctx[43]}set categorygames(e){this.$$set({categorygames:e}),H()}get livecasino(){return this.$$.ctx[10]}set livecasino(e){this.$$set({livecasino:e}),H()}get visiblegames(){return this.$$.ctx[44]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get addfilterselector(){return this.$$.ctx[15]}set addfilterselector(e){this.$$set({addfilterselector:e}),H()}get addsortingselector(){return this.$$.ctx[16]}set addsortingselector(e){this.$$set({addsortingselector:e}),H()}get filterbylogo(){return this.$$.ctx[17]}set filterbylogo(e){this.$$set({filterbylogo:e}),H()}get once(){return this.$$.ctx[45]}set once(e){this.$$set({once:e}),H()}get top(){return this.$$.ctx[46]}set top(e){this.$$set({top:e}),H()}get bottom(){return this.$$.ctx[47]}set bottom(e){this.$$set({bottom:e}),H()}get left(){return this.$$.ctx[48]}set left(e){this.$$set({left:e}),H()}get right(){return this.$$.ctx[49]}set right(e){this.$$set({right:e}),H()}});function ua(e,t){Yn(e,t)}!customElements.get("casino-favorites-section")&&customElements.define("casino-favorites-section",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent=".CasinoFavoritesSectionContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},ca,la,a,{endpoint:2,datasource:3,currency:4,lang:5,session:0,userid:1,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,categoryid:17,casinomygames:14},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","categoryid","casinomygames"]}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),H()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),H()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),H()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),H()}get categoryid(){return this.$$.ctx[17]}set categoryid(e){this.$$set({categoryid:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}});const da={en:{LastPlayedTranslations:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}},de:{LastPlayedTranslations:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."}}};
|
|
1504
|
-
/* ../casino-last-played-section/src/CasinoLastPlayedSection.svelte generated by Svelte v3.58.0 */function
|
|
1501
|
+
x=[],e.length>0&&e.forEach((e=>{x.push(e.id)})),x);return E((()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}))),e.$$set=e=>{"endpoint"in e&&n(2,a=e.endpoint),"datasource"in e&&n(3,s=e.datasource),"currency"in e&&n(4,o=e.currency),"lang"in e&&n(5,l=e.lang),"session"in e&&n(0,c=e.session),"userid"in e&&n(1,u=e.userid),"clientstyling"in e&&n(6,d=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,p=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,f=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"categoryid"in e&&n(17,b=e.categoryid),"casinomygames"in e&&n(14,w=e.casinomygames)},e.$$.update=()=>{/*endpoint, userid, session, lang, favorites*/8231&e.$$.dirty&&a&&u&&c&&l&&v&&"true"==v&&S(a,c,u),/*clientstyling, customStylingContainer*/32832&e.$$.dirty&&d&&r&&(()=>{let e=document.createElement("style");e.innerHTML=d,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty&&h&&r&&(()=>{let e=document.createElement("style");fetch(new URL(h)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1)}))})()},[c,u,a,s,o,l,d,h,m,p,f,g,y,v,w,r,S,b,function(e){k[e?"unshift":"push"]((()=>{r=e,n(15,r)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends z{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}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 0 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media screen and (max-width: 385px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media only screen and (max-width: 768px){.CasinoGamesHeader{align-items:unset;flex-direction:row;flex-wrap:wrap}.CategoryName{margin-bottom:20px}.CategoryFilterContainer{width:100%}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},aa,ra,a,{categoryindex:41,endpoint:1,datasource:2,lang:3,session:4,userid:5,favorites:6,clientstyling:7,clientstylingurl:8,translationurl:42,currency:9,categoryid:0,categorygames:43,livecasino:10,visiblegames:44,gamepagemodalurl:11,integratedgameframedesktop:12,integratedgameframemobile:13,casinomygames:14,addfilterselector:15,addsortingselector:16,filterbylogo:17,once:45,top:46,bottom:47,left:48,right:49},null,[-1,-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","addfilterselector","addsortingselector","filterbylogo","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[41]}set categoryindex(e){this.$$set({categoryindex:e}),R()}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),R()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),R()}get favorites(){return this.$$.ctx[6]}set favorites(e){this.$$set({favorites:e}),R()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[42]}set translationurl(e){this.$$set({translationurl:e}),R()}get currency(){return this.$$.ctx[9]}set currency(e){this.$$set({currency:e}),R()}get categoryid(){return this.$$.ctx[0]}set categoryid(e){this.$$set({categoryid:e}),R()}get categorygames(){return this.$$.ctx[43]}set categorygames(e){this.$$set({categorygames:e}),R()}get livecasino(){return this.$$.ctx[10]}set livecasino(e){this.$$set({livecasino:e}),R()}get visiblegames(){return this.$$.ctx[44]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get addfilterselector(){return this.$$.ctx[15]}set addfilterselector(e){this.$$set({addfilterselector:e}),R()}get addsortingselector(){return this.$$.ctx[16]}set addsortingselector(e){this.$$set({addsortingselector:e}),R()}get filterbylogo(){return this.$$.ctx[17]}set filterbylogo(e){this.$$set({filterbylogo:e}),R()}get once(){return this.$$.ctx[45]}set once(e){this.$$set({once:e}),R()}get top(){return this.$$.ctx[46]}set top(e){this.$$set({top:e}),R()}get bottom(){return this.$$.ctx[47]}set bottom(e){this.$$set({bottom:e}),R()}get left(){return this.$$.ctx[48]}set left(e){this.$$set({left:e}),R()}get right(){return this.$$.ctx[49]}set right(e){this.$$set({right:e}),R()}});function la(e,t){Un(e,t)}!customElements.get("casino-favorites-section")&&customElements.define("casino-favorites-section",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent=".CasinoFavoritesSectionContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},oa,sa,a,{endpoint:2,datasource:3,currency:4,lang:5,session:0,userid:1,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,categoryid:17,casinomygames:14},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","categoryid","casinomygames"]}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),R()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),R()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get categoryid(){return this.$$.ctx[17]}set categoryid(e){this.$$set({categoryid:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}});const ca={en:{LastPlayedTranslations:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}},de:{LastPlayedTranslations:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."}}};
|
|
1502
|
+
/* ../casino-last-played-section/src/CasinoLastPlayedSection.svelte generated by Svelte v3.58.0 */function ua(e){let t;return{c(){t=f("casino-games-category-section"),_(t,"session",/*session*/e[4]),_(t,"userid",/*userid*/e[5]),_(t,"endpoint",/*endpoint*/e[0]),_(t,"datasource",/*datasource*/e[1]),_(t,"lang",/*lang*/e[3]),_(t,"currency",/*currency*/e[2]),_(t,"favorites",/*favorites*/e[13]),_(t,"categoryid","LASTPLAYED"),_(t,"categoryindex","1"),_(t,"categorygames","9"),_(t,"class","CategoryContainer"),_(t,"clientstyling",/*clientstyling*/e[6]),_(t,"clientstylingurl",/*clientstylingurl*/e[7]),_(t,"livecasino",/*livecasino*/e[8]),_(t,"visiblegames",/*visiblegames*/e[12]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),_(t,"casinomygames",/*casinomygames*/e[14])},m(e,n){h(e,t,n)},p(e,n){/*session*/16&n[0]&&_(t,"session",/*session*/e[4]),/*userid*/32&n[0]&&_(t,"userid",/*userid*/e[5]),/*endpoint*/1&n[0]&&_(t,"endpoint",/*endpoint*/e[0]),/*datasource*/2&n[0]&&_(t,"datasource",/*datasource*/e[1]),/*lang*/8&n[0]&&_(t,"lang",/*lang*/e[3]),/*currency*/4&n[0]&&_(t,"currency",/*currency*/e[2]),/*favorites*/8192&n[0]&&_(t,"favorites",/*favorites*/e[13]),/*clientstyling*/64&n[0]&&_(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&_(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/4096&n[0]&&_(t,"visiblegames",/*visiblegames*/e[12]),/*gamepagemodalurl*/2048&n[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/1024&n[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/512&n[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),/*casinomygames*/16384&n[0]&&_(t,"casinomygames",/*casinomygames*/e[14])},d(e){e&&m(t)}}}
|
|
1505
1503
|
// (135:4) {#if lastPlayedEmpty}
|
|
1506
|
-
function
|
|
1507
|
-
return e[16]?
|
|
1504
|
+
function da(e){let t,n,r=/*$_*/e[17]("LastPlayedTranslations.noRecentGames")+"";return{c(){t=f("p"),n=y(r),x(t,"class","SearchLoading")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/131072&t[0]&&r!==(r=/*$_*/e[17]("LastPlayedTranslations.noRecentGames")+"")&&S(n,r)},d(e){e&&m(t)}}}function ha(t){let n,r;function i(e,t){/*lastPlayedEmpty*/
|
|
1505
|
+
return e[16]?da:ua}let a=i(t),s=a(t);return{c(){n=f("div"),r=f("div"),s.c(),this.c=e,x(r,"class","CasinoLastPlayedSection"),x(n,"class","CasinoGamesCategorySectionContainer")},m(e,i){h(e,n,i),d(n,r),s.m(r,null),
|
|
1508
1506
|
/*div1_binding*/t[23](n)},p(e,t){a===(a=i(e))&&s?s.p(e,t):(s.d(1),s=a(e),s&&(s.c(),s.m(r,null)))},i:e,o:e,d(e){e&&m(n),s.d(),
|
|
1509
|
-
/*div1_binding*/t[23](null)}}}function
|
|
1507
|
+
/*div1_binding*/t[23](null)}}}function ma(e,t,n){let r;u(e,pr,(e=>n(17,r=e)));let i,a,{endpoint:s=""}=t,{datasource:o=""}=t,{currency:l=""}=t,{lang:c=""}=t,{session:d=""}=t,{userid:h=""}=t,{clientstyling:m=""}=t,{clientstylingurl:p=""}=t,{translationurl:f=""}=t,{livecasino:g="false"}=t,{integratedgameframemobile:y="false"}=t,{integratedgameframedesktop:v="false"}=t,{gamepagemodalurl:b="false"}=t,{visiblegames:w=""}=t,{favorites:x=""}=t,{lastplayedperiod:_="Last30Days"}=t,{lastplayedorder:S=""}=t,{lastplayedlimit:$=""}=t,{casinomygames:C="false"}=t,{lastplayedunique:T="true"}=t,E=window.navigator.userAgent,M=!1,F=[];Object.keys(ca).forEach((e=>{la(e,ca[e])}));const L=()=>{new Promise(((e,t)=>{let n=new URL(`${s}/player/${h}/games/last-played`);n.searchParams.append("unique",T),n.searchParams.append("limit",$),n.searchParams.append("order",S),n.searchParams.append("period",_),"PC"===gr(E)?n.searchParams.append("device","Desktop"):n.searchParams.append("device","Mobile"),i=g?n:n.href,fetch(i).then((e=>e.json())).then((t=>{t.items=t.items.filter((e=>{let n=!0;return"OddsMatrix2"==e.gameCode&&(t.count--,n=!1),n})),e(t),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:t},window.location.href)})).catch((e=>{console.error(e),t(e)}))})).then((e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),e.count>0){let t=[];e.items.forEach((e=>{let n=new URL(`${s}/casino/games/${e.gameId}`);n.searchParams.append("datasource",o),t.push(fetch(n.href).then((e=>e.json())))})),Promise.all(t).then((e=>{F=e.map((e=>e[0])),window.postMessage({type:"LastPlayedData",lastPlayedGames:F},window.location.href)}))}else n(16,M=!0)}))},G=()=>{var e;e=c,nr.set(e)};return e.$$set=e=>{"endpoint"in e&&n(0,s=e.endpoint),"datasource"in e&&n(1,o=e.datasource),"currency"in e&&n(2,l=e.currency),"lang"in e&&n(3,c=e.lang),"session"in e&&n(4,d=e.session),"userid"in e&&n(5,h=e.userid),"clientstyling"in e&&n(6,m=e.clientstyling),"clientstylingurl"in e&&n(7,p=e.clientstylingurl),"translationurl"in e&&n(18,f=e.translationurl),"livecasino"in e&&n(8,g=e.livecasino),"integratedgameframemobile"in e&&n(9,y=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,v=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,b=e.gamepagemodalurl),"visiblegames"in e&&n(12,w=e.visiblegames),"favorites"in e&&n(13,x=e.favorites),"lastplayedperiod"in e&&n(19,_=e.lastplayedperiod),"lastplayedorder"in e&&n(20,S=e.lastplayedorder),"lastplayedlimit"in e&&n(21,$=e.lastplayedlimit),"casinomygames"in e&&n(14,C=e.casinomygames),"lastplayedunique"in e&&n(22,T=e.lastplayedunique)},e.$$.update=()=>{/*endpoint, userid, lang*/41&e.$$.dirty[0]&&s&&h&&c&&L(),/*translationurl*/262144&e.$$.dirty[0]&&f&&(()=>{let e=translationUrl;fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{la(t,e[t])}))})).catch((e=>{console.log(e)}))})(),/*clientstyling, customStylingContainer*/32832&e.$$.dirty[0]&&m&&a&&(()=>{let e=document.createElement("style");e.innerHTML=m,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty[0]&&p&&a&&(()=>{let e=document.createElement("style");fetch(new URL(p)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*lang*/8&e.$$.dirty[0]&&c&&G()},[s,o,l,c,d,h,m,p,g,y,v,b,w,x,C,a,M,r,f,_,S,$,T,function(e){k[e?"unshift":"push"]((()=>{a=e,n(15,a)}))}]}
|
|
1510
1508
|
/* ../casino-most-played-section/src/CasinoMostPlayedSection.svelte generated by Svelte v3.58.0 */
|
|
1511
|
-
function
|
|
1509
|
+
function pa(e){let t;return{c(){t=f("casino-games-category-section"),_(t,"session",/*session*/e[4]),_(t,"userid",/*userid*/e[5]),_(t,"endpoint",/*endpoint*/e[0]),_(t,"datasource",/*datasource*/e[1]),_(t,"lang",/*lang*/e[3]),_(t,"currency",/*currency*/e[2]),_(t,"favorites",/*favorites*/e[13]),_(t,"categoryid","MOSTPLAYED"),_(t,"categoryindex","1"),_(t,"categorygames","9"),_(t,"class","CategoryContainer"),_(t,"clientstyling",/*clientstyling*/e[6]),_(t,"clientstylingurl",/*clientstylingurl*/e[7]),_(t,"livecasino",/*livecasino*/e[8]),_(t,"visiblegames",/*visiblegames*/e[12]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),_(t,"casinomygames",/*casinomygames*/e[14])},m(e,n){h(e,t,n)},p(e,n){/*session*/16&n[0]&&_(t,"session",/*session*/e[4]),/*userid*/32&n[0]&&_(t,"userid",/*userid*/e[5]),/*endpoint*/1&n[0]&&_(t,"endpoint",/*endpoint*/e[0]),/*datasource*/2&n[0]&&_(t,"datasource",/*datasource*/e[1]),/*lang*/8&n[0]&&_(t,"lang",/*lang*/e[3]),/*currency*/4&n[0]&&_(t,"currency",/*currency*/e[2]),/*favorites*/8192&n[0]&&_(t,"favorites",/*favorites*/e[13]),/*clientstyling*/64&n[0]&&_(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&_(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/4096&n[0]&&_(t,"visiblegames",/*visiblegames*/e[12]),/*gamepagemodalurl*/2048&n[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/1024&n[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/512&n[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),/*casinomygames*/16384&n[0]&&_(t,"casinomygames",/*casinomygames*/e[14])},d(e){e&&m(t)}}}
|
|
1512
1510
|
// (135:4) {#if mostPlayedEmpty}
|
|
1513
|
-
function
|
|
1514
|
-
return e[16]?
|
|
1511
|
+
function fa(t){let n;return{c(){n=f("p"),n.textContent="No games in most played",x(n,"class","SearchLoading"),x(n,"part","SearchLoading")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}function ga(t){let n,r;function i(e,t){/*mostPlayedEmpty*/
|
|
1512
|
+
return e[16]?fa:pa}let a=i(t),s=a(t);return{c(){n=f("div"),r=f("div"),s.c(),this.c=e,x(r,"class","casino-most-played-section"),x(n,"class","CasinoGamesCategorySectionContainer"),x(n,"part","CasinoGamesCategorySectionContainer")},m(e,i){h(e,n,i),d(n,r),s.m(r,null),
|
|
1515
1513
|
/*div1_binding*/t[20](n)},p(e,t){a===(a=i(e))&&s?s.p(e,t):(s.d(1),s=a(e),s&&(s.c(),s.m(r,null)))},i:e,o:e,d(e){e&&m(n),s.d(),
|
|
1516
|
-
/*div1_binding*/t[20](null)}}}function
|
|
1514
|
+
/*div1_binding*/t[20](null)}}}function ya(e,t,n){let r,i,{endpoint:a=""}=t,{datasource:s=""}=t,{currency:o=""}=t,{lang:l=""}=t,{session:c=""}=t,{userid:u=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{livecasino:m="false"}=t,{integratedgameframemobile:p="false"}=t,{integratedgameframedesktop:f="false"}=t,{gamepagemodalurl:g="false"}=t,{visiblegames:y}=t,{favorites:v=""}=t,{lastPlayedEmpty:b=""}=t,{casinomygames:w="false"}=t,{mostplayedperiod:x="Last30Days"}=t,{mostplayedrounds:_="10"}=t,S=window.navigator.userAgent,$=[],C=!1;const T=()=>{(e=>{let t=new URL(`${a}/player/${u}/games/most-played`);e.limit&&t.searchParams.append("limit",e.limit),e.order&&t.searchParams.append("order",e.order),t.searchParams.append("expand","games"),t.searchParams.append("period",x);let n=e.device;return n?"PC"===n?t.searchParams.append("device","Desktop"):t.searchParams.append("device","Mobile"):t.searchParams.append("device","All"),e.rounds&&t.searchParams.append("rounds",e.rounds),r=m?t:t.href,new Promise(((e,t)=>{fetch(r).then((e=>e.json())).then((t=>{t.items=t.items.filter((e=>{let n=!0;return"OddsMatrix2"==e.gameCode&&(t.count--,n=!1),n})),e(t)})).catch((e=>{console.error(e),t(e)}))}))})({limit:100,device:gr(S),rounds:_}).then((e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),e.count>0){let t=[];e.items.forEach((e=>{let n=new URL(`${a}/casino/games/${e.gameId}`);n.searchParams.append("datasource",s),t.push(fetch(n.href).then((e=>e.json())))})),Promise.all(t).then((e=>{$=e.map((e=>e[0])),"true"===w&&($=$.slice(0,JSON.parse(y))),window.postMessage({type:"MostPlayedData",mostPlayedGames:$},window.location.href)}))}else n(16,C=!0)}))},E=()=>{var e;e=l,nr.set(e)};return e.$$set=e=>{"endpoint"in e&&n(0,a=e.endpoint),"datasource"in e&&n(1,s=e.datasource),"currency"in e&&n(2,o=e.currency),"lang"in e&&n(3,l=e.lang),"session"in e&&n(4,c=e.session),"userid"in e&&n(5,u=e.userid),"clientstyling"in e&&n(6,d=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,p=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,f=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"lastPlayedEmpty"in e&&n(17,b=e.lastPlayedEmpty),"casinomygames"in e&&n(14,w=e.casinomygames),"mostplayedperiod"in e&&n(18,x=e.mostplayedperiod),"mostplayedrounds"in e&&n(19,_=e.mostplayedrounds)},e.$$.update=()=>{/*endpoint, userid, lang*/41&e.$$.dirty[0]&&a&&u&&l&&T(),/*clientstyling, customStylingContainer*/32832&e.$$.dirty[0]&&d&&i&&(()=>{let e=document.createElement("style");e.innerHTML=d,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty[0]&&h&&i&&(()=>{let e=document.createElement("style");fetch(new URL(h)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})(),/*lang*/8&e.$$.dirty[0]&&l&&E()},[a,s,o,l,c,u,d,h,m,p,f,g,y,v,w,i,C,b,x,_,function(e){k[e?"unshift":"push"]((()=>{i=e,n(15,i)}))}]}!customElements.get("casino-last-played-section")&&customElements.define("casino-last-played-section",class extends z{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},ma,ha,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:18,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastplayedperiod:19,lastplayedorder:20,lastplayedlimit:21,casinomygames:14,lastplayedunique:22},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastplayedperiod","lastplayedorder","lastplayedlimit","casinomygames","lastplayedunique"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),R()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),R()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get lastplayedperiod(){return this.$$.ctx[19]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),R()}get lastplayedorder(){return this.$$.ctx[20]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),R()}get lastplayedlimit(){return this.$$.ctx[21]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get lastplayedunique(){return this.$$.ctx[22]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),R()}});
|
|
1517
1515
|
/* src/CasinoMyGames.svelte generated by Svelte v3.58.0 */
|
|
1518
|
-
function
|
|
1516
|
+
function va(e,t,n){const r=e.slice();return r[42]=t[n],r}
|
|
1519
1517
|
// (113:4) {#if casinomygames}
|
|
1520
|
-
function
|
|
1521
|
-
return"Favorites"==e[24]?
|
|
1518
|
+
function ba(e){let t,n,r,i,a,s,o=/*tabsArray*/e[26],l=[];for(let t=0;t<o.length;t+=1)l[t]=Sa(va(e,o,t));function c(e,t){/*gamesType*/
|
|
1519
|
+
return"Favorites"==e[24]?Ta:/*gamesType*/"MostPlayed"==e[24]?Ca:/*gamesType*/"LastPlayed"==e[24]?$a:void 0}let u=c(e),g=u&&u(e);return{c(){t=f("div"),n=f("div"),r=f("div");for(let e=0;e<l.length;e+=1)l[e].c();i=v(),a=f("div"),g&&g.c(),x(r,"class","MyGamesButtonsContainer"),x(n,"class","MyGamesHeader"),x(t,"class",s="CasinoMyGames "+(/*mobile*/e[25]?"Mobile":""))},m(e,s){h(e,t,s),d(t,n),d(n,r);for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(r,null);d(t,i),d(t,a),g&&g.m(a,null)},p(e,n){if(/*gamesType, lastplayed, toggleTab, $_, tabsArray, mostplayed, favorites, favoritesCount*/1023467520&n[0]){let t;for(o=/*tabsArray*/e[26],t=0;t<o.length;t+=1){const i=va(e,o,t);l[t]?l[t].p(i,n):(l[t]=Sa(i),l[t].c(),l[t].m(r,null))}for(;t<l.length;t+=1)l[t].d(1);l.length=o.length}u===(u=c(e))&&g?g.p(e,n):(g&&g.d(1),g=u&&u(e),g&&(g.c(),g.m(a,null))),/*mobile*/33554432&n[0]&&s!==(s="CasinoMyGames "+(/*mobile*/e[25]?"Mobile":""))&&x(t,"class",s)},d(e){e&&m(t),p(l,e),g&&g.d()}}}
|
|
1522
1520
|
// (119:14) {#if tab == 'Favorites'}
|
|
1523
|
-
function
|
|
1521
|
+
function wa(e){let t,n,r,i,a,s,o,l,c,u,p=/*$_*/e[28]("Translations.favorites")+"";return{c(){t=f("button"),n=y(p),r=v(),i=f("span"),a=y("("),s=y(/*favoritesCount*/e[27]),o=y(")"),x(t,"class",l="MyGamesButton "+(/*gamesType*/"Favorites"==e[24]?"Active":"")+" "+(/*favorites*/"false"==e[13]?"Off":""))},m(l,m){h(l,t,m),d(t,n),d(t,r),d(t,i),d(i,a),d(i,s),d(i,o),c||(u=w(t,"click",/*click_handler*/e[31]),c=!0)},p(e,r){/*$_*/268435456&r[0]&&p!==(p=/*$_*/e[28]("Translations.favorites")+"")&&S(n,p),/*favoritesCount*/134217728&r[0]&&S(s,/*favoritesCount*/e[27]),/*gamesType, favorites*/16785408&r[0]&&l!==(l="MyGamesButton "+(/*gamesType*/"Favorites"==e[24]?"Active":"")+" "+(/*favorites*/"false"==e[13]?"Off":""))&&x(t,"class",l)},d(e){e&&m(t),c=!1,u()}}}
|
|
1524
1522
|
// (124:14) {#if tab == 'MostPlayed'}
|
|
1525
|
-
function
|
|
1523
|
+
function xa(e){let t,n,r,i,a,s=/*$_*/e[28]("Translations.mostPlayed")+"";return{c(){t=f("button"),n=y(s),x(t,"class",r="MyGamesButton "+(/*gamesType*/"MostPlayed"==e[24]?"Active":"")+" "+(/*mostplayed*/"false"==e[14]?"Off":""))},m(r,s){h(r,t,s),d(t,n),i||(a=w(t,"click",/*click_handler_1*/e[32]),i=!0)},p(e,i){/*$_*/268435456&i[0]&&s!==(s=/*$_*/e[28]("Translations.mostPlayed")+"")&&S(n,s),/*gamesType, mostplayed*/16793600&i[0]&&r!==(r="MyGamesButton "+(/*gamesType*/"MostPlayed"==e[24]?"Active":"")+" "+(/*mostplayed*/"false"==e[14]?"Off":""))&&x(t,"class",r)},d(e){e&&m(t),i=!1,a()}}}
|
|
1526
1524
|
// (129:14) {#if tab == 'LastPlayed'}
|
|
1527
|
-
function
|
|
1525
|
+
function _a(e){let t,n,r,i,a,s,o=/*$_*/e[28]("Translations.recentlyPlayed")+"";return{c(){t=f("button"),n=y(o),r=v(),x(t,"class",i="MyGamesButton "+(/*gamesType*/"LastPlayed"==e[24]?"Active":"")+" "+(/*lastplayed*/"false"==e[15]?"Off":""))},m(i,o){h(i,t,o),d(t,n),d(t,r),a||(s=w(t,"click",/*click_handler_2*/e[33]),a=!0)},p(e,r){/*$_*/268435456&r[0]&&o!==(o=/*$_*/e[28]("Translations.recentlyPlayed")+"")&&S(n,o),/*gamesType, lastplayed*/16809984&r[0]&&i!==(i="MyGamesButton "+(/*gamesType*/"LastPlayed"==e[24]?"Active":"")+" "+(/*lastplayed*/"false"==e[15]?"Off":""))&&x(t,"class",i)},d(e){e&&m(t),a=!1,s()}}}
|
|
1528
1526
|
// (118:12) {#each tabsArray as tab}
|
|
1529
|
-
function
|
|
1527
|
+
function Sa(e){let t,n,r,i=/*tab*/"Favorites"==e[42]&&wa(e),a=/*tab*/"MostPlayed"==e[42]&&xa(e),s=/*tab*/"LastPlayed"==e[42]&&_a(e);return{c(){i&&i.c(),t=v(),a&&a.c(),n=v(),s&&s.c(),r=b()},m(e,o){i&&i.m(e,o),h(e,t,o),a&&a.m(e,o),h(e,n,o),s&&s.m(e,o),h(e,r,o)},p(e,o){/*tab*/"Favorites"==e[42]?i?i.p(e,o):(i=wa(e),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),/*tab*/"MostPlayed"==e[42]?a?a.p(e,o):(a=xa(e),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null),/*tab*/"LastPlayed"==e[42]?s?s.p(e,o):(s=_a(e),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){i&&i.d(e),e&&m(t),a&&a.d(e),e&&m(n),s&&s.d(e),e&&m(r)}}}
|
|
1530
1528
|
// (179:47)
|
|
1531
|
-
function
|
|
1529
|
+
function $a(e){let t;return{c(){t=f("casino-last-played-section"),_(t,"userid",/*userid*/e[0]),_(t,"endpoint",/*endpoint*/e[2]),_(t,"datasource",/*datasource*/e[3]),_(t,"favorites",/*favorites*/e[13]),_(t,"lang",/*lang*/e[4]),_(t,"currency",/*currency*/e[5]),_(t,"session",/*session*/e[1]),_(t,"class","CategoryContainer"),_(t,"clientstyling",/*clientstyling*/e[6]),_(t,"clientstylingurl",/*clientstylingurl*/e[7]),_(t,"livecasino",/*livecasino*/e[8]),_(t,"visiblegames",/*visiblegames*/e[9]),_(t,"lastplayedperiod",/*lastplayedperiod*/e[17]),_(t,"lastplayedorder",/*lastplayedorder*/e[19]),_(t,"lastplayedlimit",/*lastplayedlimit*/e[20]),_(t,"lastplayedunique",/*lastplayedunique*/e[21]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[10]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[11]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[12]),_(t,"casinomygames",/*casinomygames*/e[16])},m(e,n){h(e,t,n)},p(e,n){/*userid*/1&n[0]&&_(t,"userid",/*userid*/e[0]),/*endpoint*/4&n[0]&&_(t,"endpoint",/*endpoint*/e[2]),/*datasource*/8&n[0]&&_(t,"datasource",/*datasource*/e[3]),/*favorites*/8192&n[0]&&_(t,"favorites",/*favorites*/e[13]),/*lang*/16&n[0]&&_(t,"lang",/*lang*/e[4]),/*currency*/32&n[0]&&_(t,"currency",/*currency*/e[5]),/*session*/2&n[0]&&_(t,"session",/*session*/e[1]),/*clientstyling*/64&n[0]&&_(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&_(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/512&n[0]&&_(t,"visiblegames",/*visiblegames*/e[9]),/*lastplayedperiod*/131072&n[0]&&_(t,"lastplayedperiod",/*lastplayedperiod*/e[17]),/*lastplayedorder*/524288&n[0]&&_(t,"lastplayedorder",/*lastplayedorder*/e[19]),/*lastplayedlimit*/1048576&n[0]&&_(t,"lastplayedlimit",/*lastplayedlimit*/e[20]),/*lastplayedunique*/2097152&n[0]&&_(t,"lastplayedunique",/*lastplayedunique*/e[21]),/*gamepagemodalurl*/1024&n[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[10]),/*integratedgameframedesktop*/2048&n[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[11]),/*integratedgameframemobile*/4096&n[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[12]),/*casinomygames*/65536&n[0]&&_(t,"casinomygames",/*casinomygames*/e[16])},d(e){e&&m(t)}}}
|
|
1532
1530
|
// (158:46)
|
|
1533
|
-
function
|
|
1531
|
+
function Ca(e){let t;return{c(){t=f("casino-most-played-section"),_(t,"endpoint",/*endpoint*/e[2]),_(t,"datasource",/*datasource*/e[3]),_(t,"lang",/*lang*/e[4]),_(t,"currency",/*currency*/e[5]),_(t,"session",/*session*/e[1]),_(t,"userid",/*userid*/e[0]),_(t,"favorites",/*favorites*/e[13]),_(t,"categoryindex","0"),_(t,"class","CategoryContainer"),_(t,"clientstyling",/*clientstyling*/e[6]),_(t,"clientstylingurl",/*clientstylingurl*/e[7]),_(t,"livecasino",/*livecasino*/e[8]),_(t,"visiblegames",/*visiblegames*/e[9]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[10]),_(t,"mostplayedrounds",/*mostplayedrounds*/e[22]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[11]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[12]),_(t,"mostplayedperiod",/*mostplayedperiod*/e[18]),_(t,"casinomygames",/*casinomygames*/e[16])},m(e,n){h(e,t,n)},p(e,n){/*endpoint*/4&n[0]&&_(t,"endpoint",/*endpoint*/e[2]),/*datasource*/8&n[0]&&_(t,"datasource",/*datasource*/e[3]),/*lang*/16&n[0]&&_(t,"lang",/*lang*/e[4]),/*currency*/32&n[0]&&_(t,"currency",/*currency*/e[5]),/*session*/2&n[0]&&_(t,"session",/*session*/e[1]),/*userid*/1&n[0]&&_(t,"userid",/*userid*/e[0]),/*favorites*/8192&n[0]&&_(t,"favorites",/*favorites*/e[13]),/*clientstyling*/64&n[0]&&_(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&_(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/512&n[0]&&_(t,"visiblegames",/*visiblegames*/e[9]),/*gamepagemodalurl*/1024&n[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[10]),/*mostplayedrounds*/4194304&n[0]&&_(t,"mostplayedrounds",/*mostplayedrounds*/e[22]),/*integratedgameframedesktop*/2048&n[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[11]),/*integratedgameframemobile*/4096&n[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[12]),/*mostplayedperiod*/262144&n[0]&&_(t,"mostplayedperiod",/*mostplayedperiod*/e[18]),/*casinomygames*/65536&n[0]&&_(t,"casinomygames",/*casinomygames*/e[16])},d(e){e&&m(t)}}}
|
|
1534
1532
|
// (139:10) {#if gamesType == 'Favorites'}
|
|
1535
|
-
function
|
|
1533
|
+
function Ta(e){let t;return{c(){t=f("casino-favorites-section"),_(t,"session",/*session*/e[1]),_(t,"userid",/*userid*/e[0]),_(t,"endpoint",/*endpoint*/e[2]),_(t,"datasource",/*datasource*/e[3]),_(t,"lang",/*lang*/e[4]),_(t,"currency",/*currency*/e[5]),_(t,"favorites",/*favorites*/e[13]),_(t,"categoryid","FAVORITES"),_(t,"class","CategoryContainer"),_(t,"clientstyling",/*clientstyling*/e[6]),_(t,"clientstylingurl",/*clientstylingurl*/e[7]),_(t,"livecasino",/*livecasino*/e[8]),_(t,"visiblegames",/*visiblegames*/e[9]),_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[10]),_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[11]),_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[12]),_(t,"casinomygames",/*casinomygames*/e[16])},m(e,n){h(e,t,n)},p(e,n){/*session*/2&n[0]&&_(t,"session",/*session*/e[1]),/*userid*/1&n[0]&&_(t,"userid",/*userid*/e[0]),/*endpoint*/4&n[0]&&_(t,"endpoint",/*endpoint*/e[2]),/*datasource*/8&n[0]&&_(t,"datasource",/*datasource*/e[3]),/*lang*/16&n[0]&&_(t,"lang",/*lang*/e[4]),/*currency*/32&n[0]&&_(t,"currency",/*currency*/e[5]),/*favorites*/8192&n[0]&&_(t,"favorites",/*favorites*/e[13]),/*clientstyling*/64&n[0]&&_(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&_(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/512&n[0]&&_(t,"visiblegames",/*visiblegames*/e[9]),/*gamepagemodalurl*/1024&n[0]&&_(t,"gamepagemodalurl",/*gamepagemodalurl*/e[10]),/*integratedgameframedesktop*/2048&n[0]&&_(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[11]),/*integratedgameframemobile*/4096&n[0]&&_(t,"integratedgameframemobile",/*integratedgameframemobile*/e[12]),/*casinomygames*/65536&n[0]&&_(t,"casinomygames",/*casinomygames*/e[16])},d(e){e&&m(t)}}}function Ea(t){let n;function r(e,t){if(/*casinomygames*/e[16])return ba}let i=r(t),a=i&&i(t);return{c(){n=f("div"),a&&a.c(),this.c=e},m(e,r){h(e,n,r),a&&a.m(n,null)
|
|
1536
1534
|
/*div_binding*/,t[34](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a&&a.d(1),a=i&&i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a&&a.d()
|
|
1537
|
-
/*div_binding*/,t[34](null)}}}function
|
|
1535
|
+
/*div_binding*/,t[34](null)}}}function Ma(e,t,n){let r;u(e,pr,(e=>n(28,r=e)));let i,{userid:a=""}=t,{session:s=""}=t,{endpoint:o=""}=t,{datasource:l=""}=t,{lang:c=""}=t,{currency:d=""}=t,{clientstyling:h=""}=t,{clientstylingurl:m=""}=t,{livecasino:p=""}=t,{visiblegames:f=""}=t,{gamepagemodalurl:g=""}=t,{integratedgameframedesktop:y=""}=t,{integratedgameframemobile:v=""}=t,{translationurl:b=""}=t,{favorites:w="false"}=t,{mostplayed:x="false"}=t,{lastplayed:_="false"}=t,{casinomygames:S="false"}=t,{lastplayedperiod:$="Last30Days"}=t,{mostplayedperiod:C="Last30Days"}=t,{lastplayedorder:T=""}=t,{lastplayedlimit:M=""}=t,{lastplayedunique:F="true"}=t,{mostplayedrounds:L=""}=t,G=window.navigator.userAgent,P="",I=!1,A=["","",""],D="0";!function({withLocale:e,translations:t}){nr.subscribe((n=>{null==n&&(Rn.set(t),nr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1538
1536
|
/*dictionary.set(translations);
|
|
1539
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(br).forEach((e=>{vr(e,br[e])}));const O=e=>{P!==e&&n(24,P=e)},N=()=>{var e;n(24,P="true"===w?"Favorites":"true"===_?"MostPlayed":"true"===x?"LastPlayed":""),n(26,D[0]="true"===w?"Favorites":"",D),n(26,D[1]="true"===_?"MostPlayed":"",D),n(26,D[2]="true"===x?"LastPlayed":"",D),e=c,rr.set(e)},R=e=>{if(e.data&&"UpdateCategoryFavoriteGames"===e.data.type)n(27,A=e.data.receivedFavoriteResults.count)};E((()=>(window.addEventListener("message",R,!1),n(25,I=gr(G)),()=>{window.removeEventListener("message",R)})));return e.$$set=e=>{"userid"in e&&n(0,a=e.userid),"session"in e&&n(1,s=e.session),"endpoint"in e&&n(2,o=e.endpoint),"datasource"in e&&n(3,l=e.datasource),"lang"in e&&n(4,c=e.lang),"currency"in e&&n(5,d=e.currency),"clientstyling"in e&&n(6,h=e.clientstyling),"clientstylingurl"in e&&n(7,m=e.clientstylingurl),"livecasino"in e&&n(8,p=e.livecasino),"visiblegames"in e&&n(9,f=e.visiblegames),"gamepagemodalurl"in e&&n(10,g=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(11,y=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(12,v=e.integratedgameframemobile),"translationurl"in e&&n(30,b=e.translationurl),"favorites"in e&&n(13,w=e.favorites),"mostplayed"in e&&n(14,_=e.mostplayed),"lastplayed"in e&&n(15,x=e.lastplayed),"casinomygames"in e&&n(16,S=e.casinomygames),"lastplayedperiod"in e&&n(17,$=e.lastplayedperiod),"mostplayedperiod"in e&&n(18,C=e.mostplayedperiod),"lastplayedorder"in e&&n(19,T=e.lastplayedorder),"lastplayedlimit"in e&&n(20,k=e.lastplayedlimit),"lastplayedunique"in e&&n(21,M=e.lastplayedunique),"mostplayedrounds"in e&&n(22,L=e.mostplayedrounds)},e.$$.update=()=>{/*endpoint, datasource, lang*/28&e.$$.dirty[0]&&o&&l&&c&&N(),/*favorites, mostplayed, lastplayed*/57344&e.$$.dirty[0]&&w&&_&&x&&N(),/*translationurl*/1073741824&e.$$.dirty[0]&&b&&fetch(b).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{vr(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/8388672&e.$$.dirty[0]&&h&&i&&(()=>{let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/8388736&e.$$.dirty[0]&&m&&i&&(()=>{let e=document.createElement("style");fetch(new URL(m)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,s,o,l,c,d,h,m,p,f,g,y,v,w,_,x,S,$,C,T,k,M,L,i,P,I,D,A,r,O,b,()=>O("Favorites"),()=>O("MostPlayed"),()=>O("LastPlayed"),function(e){F[e?"unshift":"push"]((()=>{i=e,n(23,i)}))}]}!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",class extends z{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},ba,va,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastPlayedEmpty:17,casinomygames:14,mostplayedperiod:18,mostplayedrounds:19},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastPlayedEmpty","casinomygames","mostplayedperiod","mostplayedrounds"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),H()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),H()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),H()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),H()}get lastPlayedEmpty(){return this.$$.ctx[17]}set lastPlayedEmpty(e){this.$$set({lastPlayedEmpty:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get mostplayedperiod(){return this.$$.ctx[18]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),H()}get mostplayedrounds(){return this.$$.ctx[19]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),H()}});class La extends z{constructor(e){super();const t=document.createElement("style");t.textContent=".CasinoMyGames{background-color:var(--emfe-w-color-contrast, #07072A);width:100%;margin:50px 0;box-sizing:border-box}.CasinoMyGames.Mobile{padding:25px 10px}.MyGamesHeader{display:flex;justify-content:space-between;margin-bottom:40px}.MyGamesButton{border:none;background:none;color:var(--emfe-w-color-white, #FFFFFF);font-size:20px;font-weight:500;margin-right:60px;transition:linear 100ms;cursor:pointer}.MyGamesButton:hover{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton:focus{color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-color-primary, #D0046C)}.MyGamesButton.Active{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.Mobile .MyGamesHeader{justify-content:flex-start}.Mobile .MyGamesButton{font-size:16px;white-space:nowrap;margin-right:10px}.Mobile .MyGamesButton.Active{padding-bottom:4px}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Fa,Ma,a,{userid:0,session:1,endpoint:2,datasource:3,lang:4,currency:5,clientstyling:6,clientstylingurl:7,livecasino:8,visiblegames:9,gamepagemodalurl:10,integratedgameframedesktop:11,integratedgameframemobile:12,translationurl:30,favorites:13,mostplayed:14,lastplayed:15,casinomygames:16,lastplayedperiod:17,mostplayedperiod:18,lastplayedorder:19,lastplayedlimit:20,lastplayedunique:21,mostplayedrounds:22},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["userid","session","endpoint","datasource","lang","currency","clientstyling","clientstylingurl","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","translationurl","favorites","mostplayed","lastplayed","casinomygames","lastplayedperiod","mostplayedperiod","lastplayedorder","lastplayedlimit","lastplayedunique","mostplayedrounds"]}get userid(){return this.$$.ctx[0]}set userid(e){this.$$set({userid:e}),H()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),H()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),H()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency:e}),H()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get visiblegames(){return this.$$.ctx[9]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get gamepagemodalurl(){return this.$$.ctx[10]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[12]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),H()}get mostplayed(){return this.$$.ctx[14]}set mostplayed(e){this.$$set({mostplayed:e}),H()}get lastplayed(){return this.$$.ctx[15]}set lastplayed(e){this.$$set({lastplayed:e}),H()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get lastplayedperiod(){return this.$$.ctx[17]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),H()}get mostplayedperiod(){return this.$$.ctx[18]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),H()}get lastplayedorder(){return this.$$.ctx[19]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),H()}get lastplayedlimit(){return this.$$.ctx[20]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),H()}get lastplayedunique(){return this.$$.ctx[21]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),H()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),H()}}return!customElements.get("casino-my-games")&&customElements.define("casino-my-games",La),La}));
|
|
1537
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(vr).forEach((e=>{yr(e,vr[e])}));const O=e=>{P!==e&&n(24,P=e)},N=()=>{var e;n(24,P="true"===w?"Favorites":"true"===x?"MostPlayed":"true"===_?"LastPlayed":""),n(26,A[0]="true"===w?"Favorites":"",A),n(26,A[1]="true"===x?"MostPlayed":"",A),n(26,A[2]="true"===_?"LastPlayed":"",A),e=c,nr.set(e)},R=e=>{if(e.data&&"UpdateCategoryFavoriteGames"===e.data.type)n(27,D=e.data.receivedFavoriteResults.count)};E((()=>(window.addEventListener("message",R,!1),n(25,I=fr(G)),()=>{window.removeEventListener("message",R)})));return e.$$set=e=>{"userid"in e&&n(0,a=e.userid),"session"in e&&n(1,s=e.session),"endpoint"in e&&n(2,o=e.endpoint),"datasource"in e&&n(3,l=e.datasource),"lang"in e&&n(4,c=e.lang),"currency"in e&&n(5,d=e.currency),"clientstyling"in e&&n(6,h=e.clientstyling),"clientstylingurl"in e&&n(7,m=e.clientstylingurl),"livecasino"in e&&n(8,p=e.livecasino),"visiblegames"in e&&n(9,f=e.visiblegames),"gamepagemodalurl"in e&&n(10,g=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(11,y=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(12,v=e.integratedgameframemobile),"translationurl"in e&&n(30,b=e.translationurl),"favorites"in e&&n(13,w=e.favorites),"mostplayed"in e&&n(14,x=e.mostplayed),"lastplayed"in e&&n(15,_=e.lastplayed),"casinomygames"in e&&n(16,S=e.casinomygames),"lastplayedperiod"in e&&n(17,$=e.lastplayedperiod),"mostplayedperiod"in e&&n(18,C=e.mostplayedperiod),"lastplayedorder"in e&&n(19,T=e.lastplayedorder),"lastplayedlimit"in e&&n(20,M=e.lastplayedlimit),"lastplayedunique"in e&&n(21,F=e.lastplayedunique),"mostplayedrounds"in e&&n(22,L=e.mostplayedrounds)},e.$$.update=()=>{/*endpoint, datasource, lang*/28&e.$$.dirty[0]&&o&&l&&c&&N(),/*favorites, mostplayed, lastplayed*/57344&e.$$.dirty[0]&&w&&x&&_&&N(),/*translationurl*/1073741824&e.$$.dirty[0]&&b&&fetch(b).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{yr(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/8388672&e.$$.dirty[0]&&h&&i&&(()=>{let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/8388736&e.$$.dirty[0]&&m&&i&&(()=>{let e=document.createElement("style");fetch(new URL(m)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,s,o,l,c,d,h,m,p,f,g,y,v,w,x,_,S,$,C,T,M,F,L,i,P,I,A,D,r,O,b,()=>O("Favorites"),()=>O("MostPlayed"),()=>O("LastPlayed"),function(e){k[e?"unshift":"push"]((()=>{i=e,n(23,i)}))}]}!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",class extends z{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},ya,ga,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastPlayedEmpty:17,casinomygames:14,mostplayedperiod:18,mostplayedrounds:19},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastPlayedEmpty","casinomygames","mostplayedperiod","mostplayedrounds"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),R()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),R()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get lastPlayedEmpty(){return this.$$.ctx[17]}set lastPlayedEmpty(e){this.$$set({lastPlayedEmpty:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get mostplayedperiod(){return this.$$.ctx[18]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),R()}get mostplayedrounds(){return this.$$.ctx[19]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),R()}});class ka extends z{constructor(e){super();const t=document.createElement("style");t.textContent=".CasinoMyGames{background-color:var(--emfe-w-color-contrast, #07072A);width:100%;margin:50px 0;box-sizing:border-box}.CasinoMyGames.Mobile{padding:25px 10px}.MyGamesHeader{display:flex;justify-content:space-between;margin-bottom:40px}.MyGamesButton{border:none;background:none;color:var(--emfe-w-color-white, #FFFFFF);font-size:20px;font-weight:500;margin-right:60px;transition:linear 100ms;cursor:pointer}.MyGamesButton:hover{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton:focus{color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-color-primary, #D0046C)}.MyGamesButton.Active{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.Mobile .MyGamesHeader{justify-content:flex-start}.Mobile .MyGamesButton{font-size:16px;white-space:nowrap;margin-right:10px}.Mobile .MyGamesButton.Active{padding-bottom:4px}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:C(this.attributes),customElement:!0},Ma,Ea,a,{userid:0,session:1,endpoint:2,datasource:3,lang:4,currency:5,clientstyling:6,clientstylingurl:7,livecasino:8,visiblegames:9,gamepagemodalurl:10,integratedgameframedesktop:11,integratedgameframemobile:12,translationurl:30,favorites:13,mostplayed:14,lastplayed:15,casinomygames:16,lastplayedperiod:17,mostplayedperiod:18,lastplayedorder:19,lastplayedlimit:20,lastplayedunique:21,mostplayedrounds:22},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["userid","session","endpoint","datasource","lang","currency","clientstyling","clientstylingurl","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","translationurl","favorites","mostplayed","lastplayed","casinomygames","lastplayedperiod","mostplayedperiod","lastplayedorder","lastplayedlimit","lastplayedunique","mostplayedrounds"]}get userid(){return this.$$.ctx[0]}set userid(e){this.$$set({userid:e}),R()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),R()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),R()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),R()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get visiblegames(){return this.$$.ctx[9]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get gamepagemodalurl(){return this.$$.ctx[10]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[12]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get mostplayed(){return this.$$.ctx[14]}set mostplayed(e){this.$$set({mostplayed:e}),R()}get lastplayed(){return this.$$.ctx[15]}set lastplayed(e){this.$$set({lastplayed:e}),R()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get lastplayedperiod(){return this.$$.ctx[17]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),R()}get mostplayedperiod(){return this.$$.ctx[18]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),R()}get lastplayedorder(){return this.$$.ctx[19]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),R()}get lastplayedlimit(){return this.$$.ctx[20]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),R()}get lastplayedunique(){return this.$$.ctx[21]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),R()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),R()}}return!customElements.get("casino-my-games")&&customElements.define("casino-my-games",ka),ka}));
|
|
1540
1538
|
//# sourceMappingURL=casino-my-games.js.map
|