@everymatrix/casino-collections-providers 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,25 +21,25 @@ const O=new Set;let I=0;// Do *not* move this inside the flush() function
|
|
21
21
|
function N(){const e=a;do{
|
22
22
|
// first, call beforeUpdate functions
|
23
23
|
// and update components
|
24
|
-
for(;I<A.length;){const e=A[I];I++,T(e),
|
24
|
+
for(;I<A.length;){const e=A[I];I++,T(e),M(e.$$)}for(T(null),A.length=0,I=0;B.length;)B.pop()();
|
25
25
|
// then, once components are updated, call
|
26
26
|
// afterUpdate functions. This may cause
|
27
27
|
// subsequent updates...
|
28
28
|
for(let e=0;e<S.length;e+=1){const t=S[e];O.has(t)||(
|
29
29
|
// ...so guard against infinite loops
|
30
|
-
O.add(t),t())}S.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),T(e)}function
|
30
|
+
O.add(t),t())}S.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),T(e)}function M(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}const R=new Set;function x(e,t){-1===e.$$.dirty[0]&&(A.push(e),P||(P=!0,C.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(i,s,l,c,u,h,p,d=[-1]){const m=a;T(i);const y=i.$$={fragment:null,ctx:null,
|
31
31
|
// state
|
32
32
|
props:h,update:e,not_equal:u,bound:r(),
|
33
33
|
// lifecycle
|
34
34
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
|
35
35
|
// everything else
|
36
|
-
callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let g=!1;if(y.ctx=l?l(i,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return y.ctx&&u(y.ctx[e],y.ctx[e]=n)&&(!y.skip_bound&&y.bound[e]&&y.bound[e](n),g&&
|
36
|
+
callbacks:r(),dirty:d,skip_bound:!1,root:s.target||m.$$.root};p&&p(y.root);let g=!1;if(y.ctx=l?l(i,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return y.ctx&&u(y.ctx[e],y.ctx[e]=n)&&(!y.skip_bound&&y.bound[e]&&y.bound[e](n),g&&x(i,e)),t})):[],y.update(),g=!0,n(y.before_update),
|
37
37
|
// `false` as a special case of no DOM component
|
38
38
|
y.fragment=!!c&&c(y.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
40
40
|
y.fragment&&y.fragment.l(e),e.forEach(f)}else
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
42
|
-
y.fragment&&y.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(
|
42
|
+
y.fragment&&y.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(R.delete(b),b.i(v))),function(e,r,i,s){const{fragment:a,on_mount:l,on_destroy:c,after_update:u}=e.$$;a&&a.m(r,i),s||
|
43
43
|
// onMount happens before the initial afterUpdate
|
44
44
|
L((()=>{const r=l.map(t).filter(o);c?c.push(...r):
|
45
45
|
// Edge case - component was destroyed immediately,
|
@@ -272,20 +272,20 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
272
272
|
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Pe[r||""]||Pe[n||""]||Pe["".concat(n,"-001")]||Pe["001"])[0]}var Oe=new RegExp("^".concat(me.source,"*")),Ie=new RegExp("".concat(me.source,"*$"));function Ne(e,t){return{start:e,end:t}}
|
273
273
|
// #region Ponyfills
|
274
274
|
// Consolidate these variables up top for easier toggling during debugging
|
275
|
-
var
|
275
|
+
var Me=!!String.prototype.startsWith,Re=!!String.fromCodePoint,xe=!!Object.fromEntries,Ue=!!String.prototype.codePointAt,Ge=!!String.prototype.trimStart,De=!!String.prototype.trimEnd,ke=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fe=!0;try{
|
276
276
|
/**
|
277
277
|
* legacy Edge or Xbox One browser
|
278
278
|
* Unicode flag support: supported
|
279
279
|
* Pattern_Syntax support: not supported
|
280
280
|
* See https://github.com/formatjs/formatjs/issues/2822
|
281
281
|
*/
|
282
|
-
Fe="a"===(null===(Ce=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ce?void 0:Ce[0])}catch(e){Fe=!1}var $e,je=
|
282
|
+
Fe="a"===(null===(Ce=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ce?void 0:Ce[0])}catch(e){Fe=!1}var $e,je=Me?// Native
|
283
283
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
284
|
-
function(e,t,r){return e.slice(r,r+t.length)===t},Ve=
|
284
|
+
function(e,t,r){return e.slice(r,r+t.length)===t},Ve=Re?String.fromCodePoint:// IE11
|
285
285
|
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Xe=
|
286
286
|
// native
|
287
|
-
|
288
|
-
function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],s=o[1];t[i]=s}return t},ze=
|
287
|
+
xe?Object.fromEntries:// Ponyfill
|
288
|
+
function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],s=o[1];t[i]=s}return t},ze=Ue?// Native
|
289
289
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
290
290
|
function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Ke=Ge?// Native
|
291
291
|
function(e){return e.trimStart()}:// Ponyfill
|
@@ -553,7 +553,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
553
553
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
554
554
|
Copyrights licensed under the New BSD License.
|
555
555
|
See the accompanying LICENSE file for terms.
|
556
|
-
*/const Bt={},St=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,Ht=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Xt(t);for(let n=0;n<r.length;n++){const o=Ot(r[n],e);if(o)return St(e,t,o)}};let Ct;const Pt=k({});function Lt(e){return e in Ct}function Ot(e,t){if(!Lt(e))return null;const r=function(e){return Ct[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function It(e,...t){delete Bt[e],Pt.update((r=>(r[e]=W.all([r[e]||{},...t]),r)))}F([Pt],(([e])=>Object.keys(e))),Pt.subscribe((e=>Ct=e));const Nt={};function
|
556
|
+
*/const Bt={},St=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,Ht=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Xt(t);for(let n=0;n<r.length;n++){const o=Ot(r[n],e);if(o)return St(e,t,o)}};let Ct;const Pt=k({});function Lt(e){return e in Ct}function Ot(e,t){if(!Lt(e))return null;const r=function(e){return Ct[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function It(e,...t){delete Bt[e],Pt.update((r=>(r[e]=W.all([r[e]||{},...t]),r)))}F([Pt],(([e])=>Object.keys(e))),Pt.subscribe((e=>Ct=e));const Nt={};function Mt(e){return Nt[e]}function Rt(e){return null!=e&&Xt(e).some((e=>{var t;return null===(t=Mt(e))||void 0===t?void 0:t.size}))}const xt={};function Ut(e){if(!Rt(e))return e in xt?xt[e]:Promise.resolve();const t=function(e){return Xt(e).map((e=>{const t=Mt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return xt[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){Nt[e].delete(t),0===Nt[e].size&&delete Nt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>It(e,...t)))}(e,t)))).then((()=>{if(Rt(e))return Ut(e);delete xt[e]})),xt[e]}
|
557
557
|
/*! *****************************************************************************
|
558
558
|
Copyright (c) Microsoft Corporation.
|
559
559
|
|
@@ -567,7 +567,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
567
567
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
568
568
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
569
569
|
PERFORMANCE OF THIS SOFTWARE.
|
570
|
-
***************************************************************************** */function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Dt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function kt(){return Dt}const Ft=k(!1);let $t;const jt=k(null);function Vt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Xt(e,t=kt().fallbackLocale){const r=Vt(e);return t?[...new Set([...r,...Vt(t)])]:r}function zt(){return null!=$t?$t:void 0}jt.subscribe((e=>{$t=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Kt=Object.assign(Object.assign({},jt),{set:e=>{if(e&&function(e){if(null==e)return;const t=Xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&
|
570
|
+
***************************************************************************** */function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Dt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function kt(){return Dt}const Ft=k(!1);let $t;const jt=k(null);function Vt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Xt(e,t=kt().fallbackLocale){const r=Vt(e);return t?[...new Set([...r,...Vt(t)])]:r}function zt(){return null!=$t?$t:void 0}jt.subscribe((e=>{$t=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Kt=Object.assign(Object.assign({},jt),{set:e=>{if(e&&function(e){if(null==e)return;const t=Xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=kt();let r;return"undefined"!=typeof window&&null!=zt()&&t?r=window.setTimeout((()=>Ft.set(!0)),t):Ft.set(!0),Ut(e).then((()=>{jt.set(e)})).finally((()=>{clearTimeout(r),Ft.set(!1)}))}return jt.set(e)}}),Yt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Zt=(e,t)=>{const{formats:r}=kt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Wt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Zt("number",r)),new Intl.NumberFormat(t,n)})),qt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Zt("date",r):0===Object.keys(n).length&&(n=Zt("date","short")),new Intl.DateTimeFormat(t,n)})),Jt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Zt("time",r):0===Object.keys(n).length&&(n=Zt("time","short")),new Intl.DateTimeFormat(t,n)})),Qt=Yt(((e,t=zt())=>new At(e,t,kt().formats,{ignoreTag:kt().ignoreTag}))),er=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=zt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ht(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(i=null!==(o=null===(n=(r=kt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))&&void 0!==o?o:c)&&void 0!==i?i:e;if(!a)return u;let h=u;try{h=Qt(u,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},tr=(e,t)=>((e={})=>{var{locale:t=zt()}=e,r=Gt(e,["locale"]);return Jt(Object.assign({locale:t},r))})(t).format(e),rr=(e,t)=>((e={})=>{var{locale:t=zt()}=e,r=Gt(e,["locale"]);return qt(Object.assign({locale:t},r))})(t).format(e),nr=(e,t)=>((e={})=>{var{locale:t=zt()}=e,r=Gt(e,["locale"]);return Wt(Object.assign({locale:t},r))})(t).format(e),or=(e,t=zt())=>Ht(e,t),ir=F([Kt,Pt],(()=>er));function sr(e,t){It(e,t)}F([Kt],(()=>tr)),F([Kt],(()=>rr)),F([Kt],(()=>nr)),F([Kt,Pt],(()=>or));const ar={en:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},"zh-hk":{Translations:{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."}},de:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."}},it:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},fr:{Translations:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."}},es:{Translations:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"}},el:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."}},tr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Yükleniyor, lütfen bekleyin..."}},ru:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},ro:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Se încarcă, asteptati ..."}},hr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},hu:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."}},pl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},pt:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."}},sl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},sr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}}};var lr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==lr&&lr,cr="URLSearchParams"in lr,ur="Symbol"in lr&&"iterator"in Symbol,hr="FileReader"in lr&&"Blob"in lr&&function(){try{return new Blob,!0}catch(e){return!1}}(),fr="FormData"in lr,pr="ArrayBuffer"in lr;if(pr)var dr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],mr=ArrayBuffer.isView||function(e){return e&&dr.indexOf(Object.prototype.toString.call(e))>-1};function yr(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function gr(e){return"string"!=typeof e&&(e=String(e)),e}
|
571
571
|
// Build a destructive iterator for the value list
|
572
572
|
function br(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ur&&(t[Symbol.iterator]=function(){return t}),t}function vr(e){this.map={},e instanceof vr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Er(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function _r(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Tr(e){var t=new FileReader,r=_r(t);return t.readAsArrayBuffer(e),r}function wr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ar(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
573
573
|
/*
|
@@ -614,7 +614,7 @@ self.fetch.bind(self);
|
|
614
614
|
PERFORMANCE OF THIS SOFTWARE.
|
615
615
|
***************************************************************************** */
|
616
616
|
/* global Reflect, Promise */
|
617
|
-
var Ir=function(e,t){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ir(e,t)};function Nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ir(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Rr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ur(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function xr(e){return"function"==typeof e}function Gr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Dr=Gr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function kr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fr=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Rr(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(xr(l))try{l()}catch(e){o=e instanceof Dr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Rr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{Vr(f)}catch(e){o=null!=o?o:[],e instanceof Dr?o=Ur(Ur([],Mr(o)),Mr(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Dr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Vr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&kr(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&kr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),$r=Fr.EMPTY;function jr(e){return e instanceof Fr||e&&"closed"in e&&xr(e.remove)&&xr(e.add)&&xr(e.unsubscribe)}function Vr(e){xr(e)?e():e.unsubscribe()}var Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=zr.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,Ur([e,t],Mr(r))):setTimeout.apply(void 0,Ur([e,t],Mr(r)))},clearTimeout:function(e){var t=zr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Kr(){}var Yr=null;function Zr(e){if(Xr.useDeprecatedSynchronousErrorHandling){var t=!Yr;if(t&&(Yr={errorThrown:!1,error:null}),e(),t){var r=Yr,n=r.errorThrown,o=r.error;if(Yr=null,n)throw o}}else e()}var Wr=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,jr(t)&&t.add(r)):r.destination=rn,r}return Nr(t,e),t.create=function(e,t,r){return new en(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fr),qr=Function.prototype.bind;function Jr(e,t){return qr.call(e,t)}var Qr=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){tn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){tn(e)}else tn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){tn(e)}},e}(),en=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;xr(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Xr.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Jr(t.next,i),error:t.error&&Jr(t.error,i),complete:t.complete&&Jr(t.complete,i)}):o=t;return s.destination=new Qr(o),s}return Nr(t,e),t}(Wr);function tn(e){var t;t=e,zr.setTimeout((function(){throw t}))}var rn={closed:!0,next:Kr,error:function(e){throw e},complete:Kr},nn="function"==typeof Symbol&&Symbol.observable||"@@observable";function on(e){return e}function sn(e){return 0===e.length?on:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var an=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Wr||function(e){return e&&xr(e.next)&&xr(e.error)&&xr(e.complete)}(n)&&jr(n)?e:new en(e,t,r);return Zr((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ln(t))((function(t,n){var o=new en({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[nn]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sn(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ln(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function ln(e){var t;return null!==(t=null!=e?e:Xr.Promise)&&void 0!==t?t:Promise}var cn=Gr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),un=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Nr(t,e),t.prototype.lift=function(e){var t=new hn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new cn},t.prototype.next=function(e){var t=this;Zr((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Rr(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Zr((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Zr((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?$r:(this.currentObservers=null,i.push(e),new Fr((function(){t.currentObservers=null,kr(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new an;return e.source=this,e},t.create=function(e,t){return new hn(e,t)},t}(an),hn=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return Nr(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:$r},t}(un),fn={now:function(){return(fn.delegate||Date).now()},delegate:void 0},pn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=fn);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return Nr(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(un);let dn=[],mn={};window.emWidgets={topic:(e,t=0)=>{if(-1==dn.indexOf(e)){let r=new pn(t);mn[e]=r,dn.push(e)}return mn[e]}};
|
617
|
+
var Ir=function(e,t){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ir(e,t)};function Nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ir(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Mr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function xr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Ur(e){return"function"==typeof e}function Gr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Dr=Gr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function kr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fr=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Mr(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(Ur(l))try{l()}catch(e){o=e instanceof Dr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Mr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{Vr(f)}catch(e){o=null!=o?o:[],e instanceof Dr?o=xr(xr([],Rr(o)),Rr(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Dr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Vr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&kr(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&kr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),$r=Fr.EMPTY;function jr(e){return e instanceof Fr||e&&"closed"in e&&Ur(e.remove)&&Ur(e.add)&&Ur(e.unsubscribe)}function Vr(e){Ur(e)?e():e.unsubscribe()}var Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=zr.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,xr([e,t],Rr(r))):setTimeout.apply(void 0,xr([e,t],Rr(r)))},clearTimeout:function(e){var t=zr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Kr(){}var Yr=null;function Zr(e){if(Xr.useDeprecatedSynchronousErrorHandling){var t=!Yr;if(t&&(Yr={errorThrown:!1,error:null}),e(),t){var r=Yr,n=r.errorThrown,o=r.error;if(Yr=null,n)throw o}}else e()}var Wr=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,jr(t)&&t.add(r)):r.destination=rn,r}return Nr(t,e),t.create=function(e,t,r){return new en(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fr),qr=Function.prototype.bind;function Jr(e,t){return qr.call(e,t)}var Qr=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){tn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){tn(e)}else tn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){tn(e)}},e}(),en=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;Ur(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Xr.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Jr(t.next,i),error:t.error&&Jr(t.error,i),complete:t.complete&&Jr(t.complete,i)}):o=t;return s.destination=new Qr(o),s}return Nr(t,e),t}(Wr);function tn(e){var t;t=e,zr.setTimeout((function(){throw t}))}var rn={closed:!0,next:Kr,error:function(e){throw e},complete:Kr},nn="function"==typeof Symbol&&Symbol.observable||"@@observable";function on(e){return e}function sn(e){return 0===e.length?on:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var an=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Wr||function(e){return e&&Ur(e.next)&&Ur(e.error)&&Ur(e.complete)}(n)&&jr(n)?e:new en(e,t,r);return Zr((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ln(t))((function(t,n){var o=new en({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[nn]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sn(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ln(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function ln(e){var t;return null!==(t=null!=e?e:Xr.Promise)&&void 0!==t?t:Promise}var cn=Gr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),un=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Nr(t,e),t.prototype.lift=function(e){var t=new hn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new cn},t.prototype.next=function(e){var t=this;Zr((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Mr(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Zr((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Zr((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?$r:(this.currentObservers=null,i.push(e),new Fr((function(){t.currentObservers=null,kr(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new an;return e.source=this,e},t.create=function(e,t){return new hn(e,t)},t}(an),hn=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return Nr(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:$r},t}(un),fn={now:function(){return(fn.delegate||Date).now()},delegate:void 0},pn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=fn);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return Nr(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(un);let dn=[],mn={};window.emWidgets={topic:(e,t=0)=>{if(-1==dn.indexOf(e)){let r=new pn(t);mn[e]=r,dn.push(e)}return mn[e]}};
|
618
618
|
/* src/CasinoCollectionsProviders.svelte generated by Svelte v3.48.0 */
|
619
619
|
function yn(e,t,r){const n=e.slice();return n[39]=t[r],n}function gn(e,t,r){const n=e.slice();return n[42]=t[r],n}
|
620
620
|
// (156:4) {:else}
|
@@ -648,9 +648,9 @@ l.forEach(((t,r)=>{t.style.transform=`translateX(${100*(e?r-e:r)}%)`})),l.map((e
|
|
648
648
|
//needed for finding the beginning and end of the slider
|
649
649
|
H=Math.round(s.offsetWidth/a)},O=()=>{
|
650
650
|
//in order to go to a specific slide, position all the slides relative to one of them, one which is determined by sliderScrollLeft and sliderScrollRight
|
651
|
-
P(A)},I=()=>{H>=S||(0===A?A=S-H:A-H<-1?A=0:A--,O())},N=()=>{H>=S||(A===S-H?A=0:S-H<A+1?A=S-H:A++,O())},
|
651
|
+
P(A)},I=()=>{H>=S||(0===A?A=S-H:A-H<-1?A=0:A--,O())},N=()=>{H>=S||(A===S-H?A=0:S-H<A+1?A=S-H:A++,O())},M=(e,t,r)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:e,launchUrl:t,gameName:r},window.location.href),
|
652
652
|
//Analytics event
|
653
|
-
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},
|
653
|
+
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},R=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},x=()=>{var e;e=d,Kt.set(e)};w((()=>{r(7,h=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(C))}));return e.$$set=e=>{"endpoint"in e&&r(13,f=e.endpoint),"datasource"in e&&r(14,p=e.datasource),"lang"in e&&r(15,d=e.lang),"type"in e&&r(0,m=e.type),"titletype"in e&&r(1,y=e.titletype),"clientstyling"in e&&r(16,g=e.clientstyling),"clientstylingurl"in e&&r(17,b=e.clientstylingurl),"translationurl"in e&&r(18,v=e.translationurl),"collectionprovidersgamenames"in e&&r(2,E=e.collectionprovidersgamenames)},e.$$.update=()=>{/*endpoint, datasource, lang*/57344&e.$$.dirty[0]&&f&&p&&d&&(()=>{const e=new URL(`${f}/v2/casino/groups/${p}`);e.searchParams.append("language",d),e.searchParams.append("expand","games"),fetch(e.href).then((e=>e.json())).then((e=>{r(6,T=!1);let t=e.items.filter((e=>e.flags==m));r(3,_=t.map((e=>{var t,r,n;return{id:e.id,name:e.name,icon:e.icon?e.icon:null===(n=null===(r=null===(t=e.vendors)||void 0===t?void 0:t.items[0])||void 0===r?void 0:r.subVendors[0])||void 0===n?void 0:n.logo,games:e.games.items.slice(0,4).map((e=>e)),background:e.background,flag:e.flags}}))),S=_.length}))})(),/*gameCategories, categoriesSlider*/24&e.$$.dirty[0]&&
|
654
654
|
//making sure we have something to position, before trying to
|
655
|
-
_&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&
|
655
|
+
_&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&x(),/*clientstyling, customStylingContainer*/65568&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/131104&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{sr(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,T,h,n,I,N,M,R,f,p,d,g,b,v,()=>I(),()=>N(),e=>M(e.gameId,e.launchUrl,e.name),e=>R(e.id),function(e){B[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){B[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class Hn extends G{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-color-white, #FFFFFF);font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}</style>',U(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Sn,Bn,i,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",Hn),Hn}));
|
656
656
|
//# sourceMappingURL=casino-collections-providers.js.map
|