@everymatrix/casino-wagering-bonuses-controller 1.30.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
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,t){
2
2
  // @ts-ignore
3
- for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function o(e){e.forEach(n)}function i(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a;function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function c(e,t,n){e.$$.on_destroy.push(l(t,n))}const u=["",!0,1,"true","contenteditable"];function h(e,t){e.appendChild(t)}function p(e,t,n){e.insertBefore(t,n||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function y(){return b(" ")}function v(){return b("")}function E(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function w(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}
3
+ for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function o(e){e.forEach(n)}function i(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a;function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function c(e,t,n){e.$$.on_destroy.push(l(t,n))}const u=["",!0,1,"true","contenteditable"];function h(e,t){e.appendChild(t)}function p(e,t,n){e.insertBefore(t,n||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function m(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function b(){return y(" ")}function v(){return y("")}function E(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function w(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}
4
4
  /**
5
5
  * List of attributes that should always be set through the attr method,
6
6
  * because updating them through the property setter doesn't work reliably.
@@ -9,10 +9,10 @@ for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return
9
9
  * If this list becomes too big, rethink this approach.
10
10
  */const T=["width","height"];function B(e,t){
11
11
  // @ts-ignore
12
- const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===T.indexOf(r)?e[r]=t[r]:w(e,r,t[r])}function C(e,t){for(const n in t)w(e,n,t[n])}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:w(e,t,n)}function A(e,t){t=""+t,e.data!==t&&(e.data=t)}function _(e,t,n){~u.indexOf(n)?function(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}(e,t):A(e,t)}
12
+ const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===T.indexOf(r)?e[r]=t[r]:w(e,r,t[r])}function C(e,t){for(const n in t)w(e,n,t[n])}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:w(e,t,n)}function A(e,t){t=""+t,e.data!==t&&(e.data=t)}function $(e,t,n){~u.indexOf(n)?function(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}(e,t):A(e,t)}
13
13
  // unfortunately this can't be a constant as that wouldn't be tree-shakeable
14
14
  // so we cache the result instead
15
- let L,H;function $(){if(void 0===L){L=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){L=!0}}return L}function x(e,t,n){e.classList[n?"add":"remove"](t)}function R(e){const t={};for(const n of e)t[n.name]=n.value;return t}function I(e){H=e}
15
+ let L,_;function x(){if(void 0===L){L=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){L=!0}}return L}function H(e,t,n){e.classList[n?"add":"remove"](t)}function R(e){const t={};for(const n of e)t[n.name]=n.value;return t}function I(e){_=e}
16
16
  /**
17
17
  * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
18
18
  * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
@@ -22,7 +22,7 @@ let L,H;function $(){if(void 0===L){L=!1;try{"undefined"!=typeof window&&window.
22
22
  *
23
23
  * https://svelte.dev/docs#run-time-svelte-onmount
24
24
  */
25
- function P(e){(function(){if(!H)throw new Error("Function called outside component initialization");return H})().$$.on_mount.push(e)}const O=[],M=[];let N=[];const D=[],k=Promise.resolve();let U=!1;function G(e){N.push(e)}
25
+ function P(e){(function(){if(!_)throw new Error("Function called outside component initialization");return _})().$$.on_mount.push(e)}const O=[],M=[];let N=[];const D=[],k=Promise.resolve();let U=!1;function G(e){N.push(e)}
26
26
  // flush() calls callbacks in this order:
27
27
  // 1. All beforeUpdate callbacks, in order: parents before children
28
28
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -46,7 +46,7 @@ function V(){
46
46
  // Do not reenter flush while dirty components are updated, as this can
47
47
  // result in an infinite loop. Instead, let the inner flush handle it.
48
48
  // Reentrancy is ok afterwards for bindings etc.
49
- if(0!==j)return;const e=H;do{
49
+ if(0!==j)return;const e=_;do{
50
50
  // first, call beforeUpdate functions
51
51
  // and update components
52
52
  try{for(;j<O.length;){const e=O[j];j++,I(e),W(e.$$)}}catch(e){
@@ -63,7 +63,7 @@ F.add(t),t())}N.length=0}while(O.length);for(;D.length;)D.pop()();U=!1,F.clear()
63
63
  */const K=new Set;function Z(e,t){const n={},r={},o={$$scope:1};let i=e.length;for(;i--;){const s=e[i],a=t[i];if(a){for(const e in s)e in a||(r[e]=1);for(const e in a)o[e]||(n[e]=a[e],o[e]=1);e[i]=a}else for(const e in s)o[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function X(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];N.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),N=t}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(t),
64
64
  // TODO null out other refs, including component.$$ (but need to
65
65
  // preserve final state?)
66
- n.on_destroy=n.fragment=null,n.ctx=[])}function z(e,t){-1===e.$$.dirty[0]&&(O.push(e),U||(U=!0,k.then(V)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(t,s,a,l,c,u,h,p=[-1]){const d=H;I(t);const g=t.$$={fragment:null,ctx:[],
66
+ n.on_destroy=n.fragment=null,n.ctx=[])}function z(e,t){-1===e.$$.dirty[0]&&(O.push(e),U||(U=!0,k.then(V)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(t,s,a,l,c,u,h,p=[-1]){const d=_;I(t);const g=t.$$={fragment:null,ctx:[],
67
67
  // state
68
68
  props:u,update:e,not_equal:c,bound:r(),
69
69
  // lifecycle
@@ -75,7 +75,7 @@ g.fragment=!!l&&l(g.ctx),s.target){if(s.hydrate){const e=function(e){return Arra
75
75
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
76
76
  g.fragment&&g.fragment.l(e),e.forEach(f)}else
77
77
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
78
- g.fragment&&g.fragment.c();s.intro&&((b=t.$$.fragment)&&b.i&&(K.delete(b),b.i(y))),function(e,t,r,s){const{fragment:a,after_update:l}=e.$$;a&&a.m(t,r),s||
78
+ g.fragment&&g.fragment.c();s.intro&&((y=t.$$.fragment)&&y.i&&(K.delete(y),y.i(b))),function(e,t,r,s){const{fragment:a,after_update:l}=e.$$;a&&a.m(t,r),s||
79
79
  // onMount happens before the initial afterUpdate
80
80
  G((()=>{const t=e.$$.on_mount.map(n).filter(i);
81
81
  // if the component was destroyed immediately
@@ -84,7 +84,7 @@ G((()=>{const t=e.$$.on_mount.map(n).filter(i);
84
84
  e.$$.on_destroy?e.$$.on_destroy.push(...t):
85
85
  // Edge case - component was destroyed immediately,
86
86
  // most likely as a result of a binding initialising
87
- o(t),e.$$.on_mount=[]})),l.forEach(G)}(t,s.target,s.anchor,s.customElement),V()}var b,y;I(d)}let J;"function"==typeof HTMLElement&&(J=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(n).filter(i);
87
+ o(t),e.$$.on_mount=[]})),l.forEach(G)}(t,s.target,s.anchor,s.customElement),V()}var y,b;I(d)}let J;"function"==typeof HTMLElement&&(J=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(n).filter(i);
88
88
  // @ts-ignore todo: improve typings
89
89
  for(const e in this.$$.slotted)
90
90
  // @ts-ignore todo: improve typings
@@ -92,15 +92,15 @@ this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}d
92
92
  // TODO should this delegate to addEventListener?
93
93
  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)}});
94
94
  /* ../casino-wagering-bonus-progress/src/CasinoWageringBonusProgress.svelte generated by Svelte v3.59.2 */
95
- function q(n){let r,o,i,s,a,l,c,u,d;G(/*onwindowresize*/n[11]);let g=[{class:"ring",r:/*radius*/n[3],cx:/*center*/n[9],cy:/*center*/n[9],"stroke-width":`${/*ringStrokeWidth*/n[5]}px`}],y={};for(let e=0;e<g.length;e+=1)y=t(y,g[e]);let v=[{class:"ring ring-progress "+(/*status*/n[1]===/*BonusStatus*/n[6].InProgress?"active":""),r:/*radius*/n[3],cx:/*center*/n[9],cy:/*center*/n[9],"stroke-width":`${/*ringStrokeWidth*/n[5]}px`,"stroke-dasharray":`${/*circumference*/n[8]} ${/*circumference*/n[8]}`,"stroke-dashoffset":/*circumference*/n[8]-Number(/*percent*/n[0])/100*/*circumference*/n[8]}],w={};for(let e=0;e<v.length;e+=1)w=t(w,v[e]);let T=[{class:"center "+(/*status*/n[1]===/*BonusStatus*/n[6].InProgress?"active":""),r:/*radius*/n[3]-/*ringStrokeWidth*/n[5]/2-3,cx:/*center*/n[9],cy:/*center*/n[9]}],B={};for(let e=0;e<T.length;e+=1)B=t(B,T[e]);let S=[{x:/*center*/n[9],y:/*center*/n[9]},
96
- /*classWithPartMatchMobile*/n[7]("ProgressText")],A={};for(let e=0;e<S.length;e+=1)A=t(A,S[e]);let L=[{width:/*size*/n[4],height:/*size*/n[4]}],H={};for(let e=0;e<L.length;e+=1)H=t(H,L[e]);return{c(){r=m("svg"),o=m("circle"),i=m("circle"),s=m("circle"),a=m("text"),l=b(/*percent*/n[0]),c=b("%"),this.c=e,C(o,y),C(i,w),C(s,B),C(a,A),C(r,H)},m(e,t){p(e,r,t),h(r,o),h(r,i),h(r,s),h(r,a),h(a,l),h(a,c),u||(d=E(window,"resize",/*onwindowresize*/n[11]),u=!0)},p(e,[t]){C(o,y=Z(g,[/*radius, center, ringStrokeWidth*/552&t&&{class:"ring",r:/*radius*/e[3],cx:/*center*/e[9],cy:/*center*/e[9],"stroke-width":`${/*ringStrokeWidth*/e[5]}px`}])),C(i,w=Z(v,[/*status, BonusStatus, radius, center, ringStrokeWidth, circumference, percent*/875&t&&{class:"ring ring-progress "+(/*status*/e[1]===/*BonusStatus*/e[6].InProgress?"active":""),r:/*radius*/e[3],cx:/*center*/e[9],cy:/*center*/e[9],"stroke-width":`${/*ringStrokeWidth*/e[5]}px`,"stroke-dasharray":`${/*circumference*/e[8]} ${/*circumference*/e[8]}`,"stroke-dashoffset":/*circumference*/e[8]-Number(/*percent*/e[0])/100*/*circumference*/e[8]}])),C(s,B=Z(T,[/*status, BonusStatus, radius, ringStrokeWidth, center*/618&t&&{class:"center "+(/*status*/e[1]===/*BonusStatus*/e[6].InProgress?"active":""),r:/*radius*/e[3]-/*ringStrokeWidth*/e[5]/2-3,cx:/*center*/e[9],cy:/*center*/e[9]}])),/*percent*/1&t&&_(l,/*percent*/e[0],A.contenteditable),C(a,A=Z(S,[/*center*/512&t&&{x:/*center*/e[9],y:/*center*/e[9]},/*classWithPartMatchMobile*/128&t&&/*classWithPartMatchMobile*/e[7]("ProgressText")])),C(r,H=Z(L,[/*size*/16&t&&{width:/*size*/e[4],height:/*size*/e[4]}]))},i:e,o:e,d(e){e&&f(r),u=!1,d()}}}function Q(e,t,n){let r,o,i,s,a,l,c,{percent:u=""}=t,{status:h=""}=t;var p;!function(e){e.BeforeClaimed="BeforeClaimed",e.InProgress="active",e.ForfeitedOrCompleted="ForfeitedOrCompleted"}(p||(p={}));let f=200;return e.$$set=e=>{"percent"in e&&n(0,u=e.percent),"status"in e&&n(1,h=e.status)},e.$$.update=()=>{/*innerWidth*/4&e.$$.dirty&&n(10,r=f<=576),/*isMobileView, innerWidth*/1028&e.$$.dirty&&
95
+ function q(n){let r,o,i,s,a,l,c,u,d;G(/*onwindowresize*/n[11]);let g=[{class:"ring",r:/*radius*/n[3],cx:/*center*/n[9],cy:/*center*/n[9],"stroke-width":`${/*ringStrokeWidth*/n[5]}px`}],b={};for(let e=0;e<g.length;e+=1)b=t(b,g[e]);let v=[{class:"ring ring-progress "+(/*status*/n[1]===/*BonusStatus*/n[6].InProgress?"active":""),r:/*radius*/n[3],cx:/*center*/n[9],cy:/*center*/n[9],"stroke-width":`${/*ringStrokeWidth*/n[5]}px`,"stroke-dasharray":`${/*circumference*/n[8]} ${/*circumference*/n[8]}`,"stroke-dashoffset":/*circumference*/n[8]-Number(/*percent*/n[0])/100*/*circumference*/n[8]}],w={};for(let e=0;e<v.length;e+=1)w=t(w,v[e]);let T=[{class:"center "+(/*status*/n[1]===/*BonusStatus*/n[6].InProgress?"active":""),r:/*radius*/n[3]-/*ringStrokeWidth*/n[5]/2-3,cx:/*center*/n[9],cy:/*center*/n[9]}],B={};for(let e=0;e<T.length;e+=1)B=t(B,T[e]);let S=[{x:/*center*/n[9],y:/*center*/n[9]},
96
+ /*classWithPartMatchMobile*/n[7]("ProgressText")],A={};for(let e=0;e<S.length;e+=1)A=t(A,S[e]);let L=[{width:/*size*/n[4],height:/*size*/n[4]}],_={};for(let e=0;e<L.length;e+=1)_=t(_,L[e]);return{c(){r=m("svg"),o=m("circle"),i=m("circle"),s=m("circle"),a=m("text"),l=y(/*percent*/n[0]),c=y("%"),this.c=e,C(o,b),C(i,w),C(s,B),C(a,A),C(r,_)},m(e,t){p(e,r,t),h(r,o),h(r,i),h(r,s),h(r,a),h(a,l),h(a,c),u||(d=E(window,"resize",/*onwindowresize*/n[11]),u=!0)},p(e,[t]){C(o,b=Z(g,[/*radius, center, ringStrokeWidth*/552&t&&{class:"ring",r:/*radius*/e[3],cx:/*center*/e[9],cy:/*center*/e[9],"stroke-width":`${/*ringStrokeWidth*/e[5]}px`}])),C(i,w=Z(v,[/*status, BonusStatus, radius, center, ringStrokeWidth, circumference, percent*/875&t&&{class:"ring ring-progress "+(/*status*/e[1]===/*BonusStatus*/e[6].InProgress?"active":""),r:/*radius*/e[3],cx:/*center*/e[9],cy:/*center*/e[9],"stroke-width":`${/*ringStrokeWidth*/e[5]}px`,"stroke-dasharray":`${/*circumference*/e[8]} ${/*circumference*/e[8]}`,"stroke-dashoffset":/*circumference*/e[8]-Number(/*percent*/e[0])/100*/*circumference*/e[8]}])),C(s,B=Z(T,[/*status, BonusStatus, radius, ringStrokeWidth, center*/618&t&&{class:"center "+(/*status*/e[1]===/*BonusStatus*/e[6].InProgress?"active":""),r:/*radius*/e[3]-/*ringStrokeWidth*/e[5]/2-3,cx:/*center*/e[9],cy:/*center*/e[9]}])),/*percent*/1&t&&$(l,/*percent*/e[0],A.contenteditable),C(a,A=Z(S,[/*center*/512&t&&{x:/*center*/e[9],y:/*center*/e[9]},/*classWithPartMatchMobile*/128&t&&/*classWithPartMatchMobile*/e[7]("ProgressText")])),C(r,_=Z(L,[/*size*/16&t&&{width:/*size*/e[4],height:/*size*/e[4]}]))},i:e,o:e,d(e){e&&f(r),u=!1,d()}}}function Q(e,t,n){let r,o,i,s,a,l,c,{percent:u=""}=t,{status:h=""}=t;var p;!function(e){e.BeforeClaimed="BeforeClaimed",e.InProgress="active",e.ForfeitedOrCompleted="ForfeitedOrCompleted"}(p||(p={}));let f=200;return e.$$set=e=>{"percent"in e&&n(0,u=e.percent),"status"in e&&n(1,h=e.status)},e.$$.update=()=>{/*innerWidth*/4&e.$$.dirty&&n(10,r=f<=576),/*isMobileView, innerWidth*/1028&e.$$.dirty&&
97
97
  // svg
98
98
  n(4,o=r?f/4:100),/*size*/16&e.$$.dirty&&n(5,i=o/7.5),/*size, ringStrokeWidth*/48&e.$$.dirty&&n(3,s=o/2-i/2),/*size*/16&e.$$.dirty&&n(9,a=o/2),/*radius*/8&e.$$.dirty&&n(8,l=2*s*Math.PI),/*isMobileView*/1024&e.$$.dirty&&n(7,c=(e,t="")=>((e,t="")=>({part:e,class:[e,t].join(" ")}))(`${e}${r?` ${e}Mobile`:""}`,t))},[u,h,f,s,o,i,p,c,l,a,r,function(){n(2,f=window.innerWidth)}]}!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",class extends J{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},Q,q,s,{percent:0,status:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["percent","status"]}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),V()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),V()}});const ee=(e,t)=>({remainder:e%t,quotient:Math.floor(e/t)}),te=e=>{const t=new Date;return new Date(e).getTime()-t.getTime()},ne=e=>{const t=te(e)/6e4,{quotient:n,remainder:r}=ee(t,1440),{quotient:o,remainder:i}=ee(r,60),s=Math.floor(i);return[{value:n,symbol:"d"},{value:o,symbol:"h"},{value:s,symbol:"m"}].map((e=>{return t=e.value,(Math.abs(t)<10?`0${t}`:t)+e.symbol;var t})).join(" ")},re=(e,t="")=>({part:e,class:[e,t].join(" ")}),oe=async(e,t,n={})=>{const r=Object.assign(Object.assign({},n),{signal:e.signal});let o;return o=await fetch(t,r),o=await o.json(),o};
99
99
  /* ../casino-wagering-bonus/src/private.infos.svelte generated by Svelte v3.59.2 */
100
100
  function ie(e,t,n){const r=e.slice();return r[6]=t[n],r}
101
101
  // (23:2) {#each _infos as info}
102
102
  function se(e){let n,r,o,i,s,l,c,u,d=/*info*/e[6].text+"",m=[
103
- /*classWithPartMatchMobile*/e[2](`InfoIcon ${/*info*/e[6].key}InfoIcon`),{src:o=/*info*/e[6].svg},{alt:i=/*info*/e[6].key}],v={};for(let e=0;e<m.length;e+=1)v=t(v,m[e]);let E=[/*classWithPartMatchMobile*/e[2](`InfoText ${/*info*/e[6].key}InfoText`)],w={};for(let e=0;e<E.length;e+=1)w=t(w,E[e]);let T=[/*classWithPartMatchMobile*/e[2](`Info ${/*info*/e[6].key}Info`)],C={};for(let e=0;e<T.length;e+=1)C=t(C,T[e]);return{c(){n=g("div"),r=g("img"),s=y(),l=g("span"),c=b(d),u=y(),B(r,v),B(l,w),B(n,C)},m(e,t){p(e,n,t),h(n,r),h(n,s),h(n,l),h(l,c),h(n,u)},p(e,t){var s,u;B(r,v=Z(m,[/*classWithPartMatchMobile, _infos*/6&t&&/*classWithPartMatchMobile*/e[2](`InfoIcon ${/*info*/e[6].key}InfoIcon`),/*_infos*/2&t&&(s=r.src,u=o=/*info*/e[6].svg,a||(a=document.createElement("a")),a.href=u,!(s===a.href))&&{src:o},/*_infos*/2&t&&i!==(i=/*info*/e[6].key)&&{alt:i}])),/*_infos*/2&t&&d!==(d=/*info*/e[6].text+"")&&_(c,d,w.contenteditable),B(l,w=Z(E,[/*classWithPartMatchMobile, _infos*/6&t&&/*classWithPartMatchMobile*/e[2](`InfoText ${/*info*/e[6].key}InfoText`)])),B(n,C=Z(T,[/*classWithPartMatchMobile, _infos*/6&t&&/*classWithPartMatchMobile*/e[2](`Info ${/*info*/e[6].key}Info`)]))},d(e){e&&f(n)}}}function ae(n){let r,o,i;G(/*onwindowresize*/n[5]);let s=/*_infos*/n[1],a=[];for(let e=0;e<s.length;e+=1)a[e]=se(ie(n,s,e));let l=[/*classWithPartMatchMobile*/n[2]("InfoContainer")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);return{c(){r=g("div");for(let e=0;e<a.length;e+=1)a[e].c();this.c=e,B(r,c)},m(e,t){p(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null);o||(i=E(window,"resize",/*onwindowresize*/n[5]),o=!0)},p(e,[t]){if(/*classWithPartMatchMobile, _infos*/6&t){let n;for(s=/*_infos*/e[1],n=0;n<s.length;n+=1){const o=ie(e,s,n);a[n]?a[n].p(o,t):(a[n]=se(o),a[n].c(),a[n].m(r,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=s.length}B(r,c=Z(l,[/*classWithPartMatchMobile*/4&t&&/*classWithPartMatchMobile*/e[2]("InfoContainer")]))},i:e,o:e,d(e){e&&f(r),d(a,e),o=!1,i()}}}function le(e,t,n){let r,o,i,s,{infos:a="[]"}=t;return e.$$set=e=>{"infos"in e&&n(3,a=e.infos)},e.$$.update=()=>{/*innerWidth*/1&e.$$.dirty&&n(4,r=s<=576),/*isMobileView*/16&e.$$.dirty&&n(2,o=e=>{if(r){const t=e.split(" ").map((e=>`${e}Mobile`)).join(" ");return re(`${e} ${t}`)}return re(`${e}`)}),/*infos*/8&e.$$.dirty&&n(1,i=JSON.parse(a))},[s,i,o,a,r,function(){n(0,s=window.innerWidth)}]}customElements.define("private-casino-wagering-bonus-info",class extends J{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";font-family:"Roboto";font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Info{margin-top:9.181331293px;margin-bottom:9.181331293px}.InfoMobile{margin-top:2.0512820513vw;margin-bottom:1.2820512821vw}.InfoIcon{vertical-align:middle;width:14.6901300689px;height:14.6901300689px}.InfoIconMobile{width:5.1282051282vw;height:5.1282051282vw}.InfoText{vertical-align:middle}.InfoTextMobile{margin-left:1.5384615385vw}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},le,ae,s,{infos:3},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["infos"]}get infos(){return this.$$.ctx[3]}set infos(e){this.$$set({infos:e}),V()}});var ce="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_338)'%3e %3cpath d='M12.5 0C5.60762 0 0 5.60762 0 12.5C0 19.3924 5.60762 25 12.5 25C19.3924 25 25 19.3924 25 12.5C25 5.60762 19.3924 0 12.5 0ZM12.5 23.4375C6.46896 23.4375 1.56251 18.531 1.56251 12.5C1.56251 6.46896 6.46896 1.56251 12.5 1.56251C18.531 1.56251 23.4375 6.46896 23.4375 12.5C23.4375 18.531 18.531 23.4375 12.5 23.4375V23.4375Z' fill='%2300AEEF'/%3e %3cpath d='M13.2813 4.6875H11.7188V12.8235L16.6351 17.7398L17.7399 16.6351L13.2813 12.1765V4.6875Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_338'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",ue="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_347)'%3e %3cpath d='M12.5002 7.5C11.5797 7.5 10.8335 8.2462 10.8335 9.16667V23.3333C10.8335 24.2538 11.5797 25 12.5002 25C13.4206 25 14.1668 24.2538 14.1668 23.3333V9.16667C14.1668 8.2462 13.4206 7.5 12.5002 7.5ZM13.3335 23.3333C13.3335 23.7936 12.9604 24.1667 12.5002 24.1667C12.0399 24.1667 11.6668 23.7936 11.6668 23.3333V9.16667C11.6668 8.70641 12.0399 8.33333 12.5002 8.33333C12.9604 8.33333 13.3335 8.70641 13.3335 9.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M7.08317 12.5C6.1627 12.5 5.4165 13.2462 5.4165 14.1667V23.3333C5.4165 24.2538 6.1627 25 7.08317 25C8.00364 25 8.74984 24.2538 8.74984 23.3333V14.1667C8.74984 13.2462 8.00364 12.5 7.08317 12.5ZM7.9165 23.3333C7.9165 23.7936 7.54343 24.1667 7.08317 24.1667C6.62291 24.1667 6.24984 23.7936 6.24984 23.3333V14.1667C6.24984 13.7064 6.62291 13.3333 7.08317 13.3333C7.54343 13.3333 7.9165 13.7064 7.9165 14.1667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M1.66667 18.333C0.746198 18.333 0 19.0792 0 19.9997V23.333C0 24.2535 0.746198 24.9997 1.66667 24.9997C2.58714 24.9997 3.33333 24.2535 3.33333 23.333V19.9997C3.33333 19.0792 2.58714 18.333 1.66667 18.333ZM2.5 23.333C2.5 23.7933 2.12693 24.1663 1.66667 24.1663C1.20641 24.1663 0.833333 23.7933 0.833333 23.333V19.9997C0.833333 19.5394 1.20641 19.1663 1.66667 19.1663C2.12693 19.1663 2.5 19.5394 2.5 19.9997V23.333Z' fill='%2300AEEF'/%3e %3cpath d='M17.9167 2.5C16.9962 2.5 16.25 3.2462 16.25 4.16667V23.3333C16.25 24.2538 16.9962 25 17.9167 25C18.8371 25 19.5833 24.2538 19.5833 23.3333V4.16667C19.5833 3.2462 18.8371 2.5 17.9167 2.5ZM18.75 23.3333C18.75 23.7936 18.3769 24.1667 17.9167 24.1667C17.4564 24.1667 17.0833 23.7936 17.0833 23.3333V4.16667C17.0833 3.70641 17.4564 3.33333 17.9167 3.33333C18.3769 3.33333 18.75 3.70641 18.75 4.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M23.3332 0C22.4127 0 21.6665 0.746198 21.6665 1.66667V23.3333C21.6665 24.2538 22.4127 25 23.3332 25C24.2536 25 24.9998 24.2538 24.9998 23.3333V1.66667C24.9998 0.746198 24.2536 0 23.3332 0ZM24.1665 23.3333C24.1665 23.7936 23.7934 24.1667 23.3332 24.1667C22.8729 24.1667 22.4998 23.7936 22.4998 23.3333V1.66667C22.4998 1.20641 22.8729 0.833333 23.3332 0.833333C23.7934 0.833333 24.1665 1.20641 24.1665 1.66667V23.3333Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_347'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",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 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}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var fe,de,ge,me,be,ye=function(){return ye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ye.apply(this,arguments)};function ve(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ee(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,function(e){e.claimable="claimable",e.active="active",e.completed="completed",e.forfeited="forfeited",e.expired="expired",e.released="released",e.closed="closed"}(fe||(fe={})),function(e){e.claimable="claimable",e.active="active",e.completed="completed"}(de||(de={})),function(e){e.standard="standard",e.freeBet="freeBet",e.freeRound="freeRound",e.tournamentTicket="tournamentTicket",e.oddsBoost="oddsBoost",e.cashBack="cashBack"}(ge||(ge={})),function(e){e.Money="money",e.BetCount="betCount"}(me||(me={})),function(e){e.en="en"}(be||(be={}));var we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Te=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}((function(e,t){
103
+ /*classWithPartMatchMobile*/e[2](`InfoIcon ${/*info*/e[6].key}InfoIcon`),{src:o=/*info*/e[6].svg},{alt:i=/*info*/e[6].key}],v={};for(let e=0;e<m.length;e+=1)v=t(v,m[e]);let E=[/*classWithPartMatchMobile*/e[2](`InfoText ${/*info*/e[6].key}InfoText`)],w={};for(let e=0;e<E.length;e+=1)w=t(w,E[e]);let T=[/*classWithPartMatchMobile*/e[2](`Info ${/*info*/e[6].key}Info`)],C={};for(let e=0;e<T.length;e+=1)C=t(C,T[e]);return{c(){n=g("div"),r=g("img"),s=b(),l=g("span"),c=y(d),u=b(),B(r,v),B(l,w),B(n,C)},m(e,t){p(e,n,t),h(n,r),h(n,s),h(n,l),h(l,c),h(n,u)},p(e,t){var s,u;B(r,v=Z(m,[/*classWithPartMatchMobile, _infos*/6&t&&/*classWithPartMatchMobile*/e[2](`InfoIcon ${/*info*/e[6].key}InfoIcon`),/*_infos*/2&t&&(s=r.src,u=o=/*info*/e[6].svg,a||(a=document.createElement("a")),a.href=u,!(s===a.href))&&{src:o},/*_infos*/2&t&&i!==(i=/*info*/e[6].key)&&{alt:i}])),/*_infos*/2&t&&d!==(d=/*info*/e[6].text+"")&&$(c,d,w.contenteditable),B(l,w=Z(E,[/*classWithPartMatchMobile, _infos*/6&t&&/*classWithPartMatchMobile*/e[2](`InfoText ${/*info*/e[6].key}InfoText`)])),B(n,C=Z(T,[/*classWithPartMatchMobile, _infos*/6&t&&/*classWithPartMatchMobile*/e[2](`Info ${/*info*/e[6].key}Info`)]))},d(e){e&&f(n)}}}function ae(n){let r,o,i;G(/*onwindowresize*/n[5]);let s=/*_infos*/n[1],a=[];for(let e=0;e<s.length;e+=1)a[e]=se(ie(n,s,e));let l=[/*classWithPartMatchMobile*/n[2]("InfoContainer")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);return{c(){r=g("div");for(let e=0;e<a.length;e+=1)a[e].c();this.c=e,B(r,c)},m(e,t){p(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null);o||(i=E(window,"resize",/*onwindowresize*/n[5]),o=!0)},p(e,[t]){if(/*classWithPartMatchMobile, _infos*/6&t){let n;for(s=/*_infos*/e[1],n=0;n<s.length;n+=1){const o=ie(e,s,n);a[n]?a[n].p(o,t):(a[n]=se(o),a[n].c(),a[n].m(r,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=s.length}B(r,c=Z(l,[/*classWithPartMatchMobile*/4&t&&/*classWithPartMatchMobile*/e[2]("InfoContainer")]))},i:e,o:e,d(e){e&&f(r),d(a,e),o=!1,i()}}}function le(e,t,n){let r,o,i,s,{infos:a="[]"}=t;return e.$$set=e=>{"infos"in e&&n(3,a=e.infos)},e.$$.update=()=>{/*innerWidth*/1&e.$$.dirty&&n(4,r=s<=576),/*isMobileView*/16&e.$$.dirty&&n(2,o=e=>{if(r){const t=e.split(" ").map((e=>`${e}Mobile`)).join(" ");return re(`${e} ${t}`)}return re(`${e}`)}),/*infos*/8&e.$$.dirty&&n(1,i=JSON.parse(a))},[s,i,o,a,r,function(){n(0,s=window.innerWidth)}]}customElements.define("private-casino-wagering-bonus-info",class extends J{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";font-family:"Roboto";font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Info{margin-top:9.181331293px;margin-bottom:9.181331293px}.InfoMobile{margin-top:2.0512820513vw;margin-bottom:1.2820512821vw}.InfoIcon{vertical-align:middle;width:14.6901300689px;height:14.6901300689px}.InfoIconMobile{width:5.1282051282vw;height:5.1282051282vw}.InfoText{vertical-align:middle}.InfoTextMobile{margin-left:1.5384615385vw}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},le,ae,s,{infos:3},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["infos"]}get infos(){return this.$$.ctx[3]}set infos(e){this.$$set({infos:e}),V()}});var ce="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_338)'%3e %3cpath d='M12.5 0C5.60762 0 0 5.60762 0 12.5C0 19.3924 5.60762 25 12.5 25C19.3924 25 25 19.3924 25 12.5C25 5.60762 19.3924 0 12.5 0ZM12.5 23.4375C6.46896 23.4375 1.56251 18.531 1.56251 12.5C1.56251 6.46896 6.46896 1.56251 12.5 1.56251C18.531 1.56251 23.4375 6.46896 23.4375 12.5C23.4375 18.531 18.531 23.4375 12.5 23.4375V23.4375Z' fill='%2300AEEF'/%3e %3cpath d='M13.2813 4.6875H11.7188V12.8235L16.6351 17.7398L17.7399 16.6351L13.2813 12.1765V4.6875Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_338'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",ue="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_347)'%3e %3cpath d='M12.5002 7.5C11.5797 7.5 10.8335 8.2462 10.8335 9.16667V23.3333C10.8335 24.2538 11.5797 25 12.5002 25C13.4206 25 14.1668 24.2538 14.1668 23.3333V9.16667C14.1668 8.2462 13.4206 7.5 12.5002 7.5ZM13.3335 23.3333C13.3335 23.7936 12.9604 24.1667 12.5002 24.1667C12.0399 24.1667 11.6668 23.7936 11.6668 23.3333V9.16667C11.6668 8.70641 12.0399 8.33333 12.5002 8.33333C12.9604 8.33333 13.3335 8.70641 13.3335 9.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M7.08317 12.5C6.1627 12.5 5.4165 13.2462 5.4165 14.1667V23.3333C5.4165 24.2538 6.1627 25 7.08317 25C8.00364 25 8.74984 24.2538 8.74984 23.3333V14.1667C8.74984 13.2462 8.00364 12.5 7.08317 12.5ZM7.9165 23.3333C7.9165 23.7936 7.54343 24.1667 7.08317 24.1667C6.62291 24.1667 6.24984 23.7936 6.24984 23.3333V14.1667C6.24984 13.7064 6.62291 13.3333 7.08317 13.3333C7.54343 13.3333 7.9165 13.7064 7.9165 14.1667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M1.66667 18.333C0.746198 18.333 0 19.0792 0 19.9997V23.333C0 24.2535 0.746198 24.9997 1.66667 24.9997C2.58714 24.9997 3.33333 24.2535 3.33333 23.333V19.9997C3.33333 19.0792 2.58714 18.333 1.66667 18.333ZM2.5 23.333C2.5 23.7933 2.12693 24.1663 1.66667 24.1663C1.20641 24.1663 0.833333 23.7933 0.833333 23.333V19.9997C0.833333 19.5394 1.20641 19.1663 1.66667 19.1663C2.12693 19.1663 2.5 19.5394 2.5 19.9997V23.333Z' fill='%2300AEEF'/%3e %3cpath d='M17.9167 2.5C16.9962 2.5 16.25 3.2462 16.25 4.16667V23.3333C16.25 24.2538 16.9962 25 17.9167 25C18.8371 25 19.5833 24.2538 19.5833 23.3333V4.16667C19.5833 3.2462 18.8371 2.5 17.9167 2.5ZM18.75 23.3333C18.75 23.7936 18.3769 24.1667 17.9167 24.1667C17.4564 24.1667 17.0833 23.7936 17.0833 23.3333V4.16667C17.0833 3.70641 17.4564 3.33333 17.9167 3.33333C18.3769 3.33333 18.75 3.70641 18.75 4.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M23.3332 0C22.4127 0 21.6665 0.746198 21.6665 1.66667V23.3333C21.6665 24.2538 22.4127 25 23.3332 25C24.2536 25 24.9998 24.2538 24.9998 23.3333V1.66667C24.9998 0.746198 24.2536 0 23.3332 0ZM24.1665 23.3333C24.1665 23.7936 23.7934 24.1667 23.3332 24.1667C22.8729 24.1667 22.4998 23.7936 22.4998 23.3333V1.66667C22.4998 1.20641 22.8729 0.833333 23.3332 0.833333C23.7934 0.833333 24.1665 1.20641 24.1665 1.66667V23.3333Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_347'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",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 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}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var fe,de,ge,me,ye,be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},be.apply(this,arguments)};function ve(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ee(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,function(e){e.claimable="claimable",e.active="active",e.completed="completed",e.forfeited="forfeited",e.expired="expired",e.released="released",e.closed="closed"}(fe||(fe={})),function(e){e.claimable="claimable",e.active="active",e.completed="completed"}(de||(de={})),function(e){e.standard="standard",e.freeBet="freeBet",e.freeRound="freeRound",e.tournamentTicket="tournamentTicket",e.oddsBoost="oddsBoost",e.cashBack="cashBack"}(ge||(ge={})),function(e){e.Money="money",e.BetCount="betCount"}(me||(me={})),function(e){e.en="en"}(ye||(ye={}));var we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Te=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}((function(e,t){
104
104
  /** @license
105
105
  * eventsource.js
106
106
  * Available under MIT License (MIT)
@@ -116,11 +116,11 @@ function se(e){let n,r,o,i,s,l,c,u,d=/*info*/e[6].text+"",m=[
116
116
  // => No way to polyfill Promise#finally
117
117
  if("undefined"==typeof window||void 0===c||"readyState"in c||null!=c.body||(// Firefox 2
118
118
  c.readyState="loading",window.addEventListener("load",(function(e){c.readyState="complete"}),!1)),null==i&&null!=a&&(// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
119
- i=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var m=h;h=function(e,t){var n=t.signal;return m(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,o="",i=this.bitsNeeded,s=this.codePoint,a=0;a<e.length;a+=1){var l=e[a];0!==i&&(l<128||l>191||!t(s<<6|63&l,i-6,n(i,s)))&&(i=0,s=r,o+=String.fromCharCode(s)),0===i?(l>=0&&l<=127?(i=0,s=l):l>=192&&l<=223?(i=6,s=31&l):l>=224&&l<=239?(i=12,s=15&l):l>=240&&l<=247?(i=18,s=7&l):(i=0,s=r),0===i||t(s,i,n(i,s))||(i=0,s=r)):(i-=6,s=s<<6|63&l),0===i&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,o};
119
+ i=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var m=h;h=function(e,t){var n=t.signal;return m(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function y(){this.bitsNeeded=0,this.codePoint=0}y.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,o="",i=this.bitsNeeded,s=this.codePoint,a=0;a<e.length;a+=1){var l=e[a];0!==i&&(l<128||l>191||!t(s<<6|63&l,i-6,n(i,s)))&&(i=0,s=r,o+=String.fromCharCode(s)),0===i?(l>=0&&l<=127?(i=0,s=l):l>=192&&l<=223?(i=6,s=31&l):l>=224&&l<=239?(i=12,s=15&l):l>=240&&l<=247?(i=18,s=7&l):(i=0,s=r),0===i||t(s,i,n(i,s))||(i=0,s=r)):(i-=6,s=s<<6|63&l),0===i&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,o};
120
120
  // IE, Edge
121
- null!=f&&null!=d&&function(){try{return"test"===(new f).decode((new d).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(f=b);var y=function(){};function v(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=y}function E(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function w(e){for(
121
+ null!=f&&null!=d&&function(){try{return"test"===(new f).decode((new d).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(f=y);var b=function(){};function v(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=b,this.onload=b,this.onerror=b,this.onreadystatechange=b,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=b}function E(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function w(e){for(
122
122
  // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example
123
- var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),s=o.join(": ");t[E(i)]=s}this._map=t}function T(){}function B(e){this._headers=e}function C(){}function S(){this._listeners=Object.create(null)}function A(e){r((function(){throw e}),0)}function _(e){this.type=e,this.target=void 0}function L(e,t){_.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function H(e,t){_.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function $(e,t){_.call(this,e),this.error=t.error}v.prototype.open=function(e,t){this._abort(!0);var n=this,s=this._xhr,a=1,l=0;this._abort=function(e){0!==n._sendTimeout&&(o(n._sendTimeout),n._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,s.onload=y,s.onerror=y,s.onabort=y,s.onprogress=y,s.onreadystatechange=y,
123
+ var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),s=o.join(": ");t[E(i)]=s}this._map=t}function T(){}function B(e){this._headers=e}function C(){}function S(){this._listeners=Object.create(null)}function A(e){r((function(){throw e}),0)}function $(e){this.type=e,this.target=void 0}function L(e,t){$.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function _(e,t){$.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function x(e,t){$.call(this,e),this.error=t.error}v.prototype.open=function(e,t){this._abort(!0);var n=this,s=this._xhr,a=1,l=0;this._abort=function(e){0!==n._sendTimeout&&(o(n._sendTimeout),n._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,s.onload=b,s.onerror=b,s.onabort=b,s.onprogress=b,s.onreadystatechange=b,
124
124
  // IE 8 - 9: XDomainRequest#abort() does not fire any event
125
125
  // Opera < 10: XMLHttpRequest#abort() does not fire any event
126
126
  s.abort(),0!==l&&(o(l),l=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),a=0};var c=function(){if(1===a){
@@ -131,7 +131,7 @@ var e=0,t="",r=void 0;if("contentType"in s)e=200,t="OK",r=s.contentType;else try
131
131
  // https://bugs.webkit.org/show_bug.cgi?id=29121
132
132
  e=0,t="",r=void 0}0!==e&&(a=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=r,n.onreadystatechange())}},u=function(){if(c(),2===a||3===a){a=3;var e="";try{e=s.responseText}catch(e){
133
133
  // IE 8 - 9 with XMLHttpRequest
134
- }n.readyState=3,n.responseText=e,n.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:y}),
134
+ }n.readyState=3,n.responseText=e,n.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:b}),
135
135
  // Firefox 52 fires "readystatechange" (xhr.readyState === 4) without final "readystatechange" (xhr.readyState === 3)
136
136
  // IE 8 fires "onload" without "onprogress"
137
137
  u(),1===a||2===a||3===a){if(a=4,0!==l&&(o(l),l=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},p=function(){l=r((function(){p()}),500),3===s.readyState&&u()};
@@ -171,55 +171,55 @@ i.HEADERS_RECEIVED=2),T.prototype.open=function(e,t,n,r,o,s,a){e.open("GET",o);v
171
171
  // see https://github.com/promises-aplus/promises-spec/issues/179
172
172
  return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new B(e.headers)),new u((function(e,t){var r=function(){a.read().then((function(t){if(t.done)
173
173
  //Note: bytes in textDecoder are ignored
174
- e(void 0);else{var o=p.decode(t.value,{stream:!0});n(o),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},S.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){A(e)}}},S.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(r=[],n[e]=r);for(var o=!1,i=0;i<r.length;i+=1)r[i]===t&&(o=!0);o||r.push(t)},S.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i]);0===o.length?delete n[e]:n[e]=o}},L.prototype=Object.create(_.prototype),H.prototype=Object.create(_.prototype),$.prototype=Object.create(_.prototype);var x=-1,R=0,I=1,P=2,O=-1,M=0,N=1,D=2,k=3,U=/^text\/event\-stream(;.*)?$/i,G=function(e,t){var n=null==e?t:parseInt(e,10);return n!=n&&(n=t),F(n)},F=function(e){return Math.min(Math.max(e,1e3),18e6)},j=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){A(e)}};function V(e,t){S.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t);var a=Boolean(n.withCredentials),l=n.lastEventIdQueryParameterName||"lastEventId",c=F(1e3),u=G(n.heartbeatTimeout,45e3),h="",p=c,f=!1,d=0,g=n.headers||{},m=n.Transport,b=W&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),y=null!=m&&"string"!=typeof m?new m:null==b?new C:new T,E=void 0,w=0,B=x,S="",A="",_="",V="",K=M,Z=0,X=0,z=function(t,n,r,o){if(B===R)if(200===t&&null!=r&&U.test(r)){B=I,f=Date.now(),p=c,e.readyState=I;var i=new H("open",{status:t,statusText:n,headers:o});e.dispatchEvent(i),j(e,e.onopen,i)}else{var s="";200!==t?(n&&(n=n.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",q();i=new H("error",{status:t,statusText:n,headers:o});e.dispatchEvent(i),j(e,e.onerror,i),console.error(s)}},Y=function(t){if(B===I){for(var n=-1,i=0;i<t.length;i+=1){(l=t.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(n=i)}var s=(-1!==n?V:"")+t.slice(0,n+1);V=(-1===n?V:"")+t.slice(n+1),""!==t&&(f=Date.now(),d+=t.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(K===O&&l==="\n".charCodeAt(0))K=M;else if(K===O&&(K=M),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(K!==M){K===N&&(X=a+1);var g=s.slice(Z,X-1),m=s.slice(X+(X<a&&s.charCodeAt(X)===" ".charCodeAt(0)?1:0),a);"data"===g?(S+="\n",S+=m):"id"===g?A=m:"event"===g?_=m:"retry"===g?(c=G(m,c),p=c):"heartbeatTimeout"===g&&(u=G(m,u),0!==w&&(o(w),w=r((function(){Q()}),u)))}if(K===M){if(""!==S){h=A,""===_&&(_="message");var b=new L(_,{data:S.slice(1),lastEventId:A});if(e.dispatchEvent(b),"open"===_?j(e,e.onopen,b):"message"===_?j(e,e.onmessage,b):"error"===_&&j(e,e.onerror,b),B===P)return}S="",_=""}K=l==="\r".charCodeAt(0)?O:M}else K===M&&(Z=a,K=N),K===N?l===":".charCodeAt(0)&&(X=a+1,K=D):K===D&&(K=k)}}},J=function(t){if(B===I||B===R){B=x,0!==w&&(o(w),w=0),w=r((function(){Q()}),p),p=F(Math.min(16*c,2*p)),e.readyState=R;var n=new $("error",{error:t});e.dispatchEvent(n),j(e,e.onerror,n),null!=t&&console.error(t)}},q=function(){B=P,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),e.readyState=P},Q=function(){if(w=0,B===x){f=!1,d=0,w=r((function(){Q()}),u),B=R,S="",_="",A=h,V="",Z=0,X=0,K=M;
174
+ e(void 0);else{var o=p.decode(t.value,{stream:!0});n(o),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},S.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){A(e)}}},S.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(r=[],n[e]=r);for(var o=!1,i=0;i<r.length;i+=1)r[i]===t&&(o=!0);o||r.push(t)},S.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i]);0===o.length?delete n[e]:n[e]=o}},L.prototype=Object.create($.prototype),_.prototype=Object.create($.prototype),x.prototype=Object.create($.prototype);var H=-1,R=0,I=1,P=2,O=-1,M=0,N=1,D=2,k=3,U=/^text\/event\-stream(;.*)?$/i,G=function(e,t){var n=null==e?t:parseInt(e,10);return n!=n&&(n=t),F(n)},F=function(e){return Math.min(Math.max(e,1e3),18e6)},j=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){A(e)}};function V(e,t){S.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t);var a=Boolean(n.withCredentials),l=n.lastEventIdQueryParameterName||"lastEventId",c=F(1e3),u=G(n.heartbeatTimeout,45e3),h="",p=c,f=!1,d=0,g=n.headers||{},m=n.Transport,y=W&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=m&&"string"!=typeof m?new m:null==y?new C:new T,E=void 0,w=0,B=H,S="",A="",$="",V="",K=M,Z=0,X=0,z=function(t,n,r,o){if(B===R)if(200===t&&null!=r&&U.test(r)){B=I,f=Date.now(),p=c,e.readyState=I;var i=new _("open",{status:t,statusText:n,headers:o});e.dispatchEvent(i),j(e,e.onopen,i)}else{var s="";200!==t?(n&&(n=n.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",q();i=new _("error",{status:t,statusText:n,headers:o});e.dispatchEvent(i),j(e,e.onerror,i),console.error(s)}},Y=function(t){if(B===I){for(var n=-1,i=0;i<t.length;i+=1){(l=t.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(n=i)}var s=(-1!==n?V:"")+t.slice(0,n+1);V=(-1===n?V:"")+t.slice(n+1),""!==t&&(f=Date.now(),d+=t.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(K===O&&l==="\n".charCodeAt(0))K=M;else if(K===O&&(K=M),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(K!==M){K===N&&(X=a+1);var g=s.slice(Z,X-1),m=s.slice(X+(X<a&&s.charCodeAt(X)===" ".charCodeAt(0)?1:0),a);"data"===g?(S+="\n",S+=m):"id"===g?A=m:"event"===g?$=m:"retry"===g?(c=G(m,c),p=c):"heartbeatTimeout"===g&&(u=G(m,u),0!==w&&(o(w),w=r((function(){Q()}),u)))}if(K===M){if(""!==S){h=A,""===$&&($="message");var y=new L($,{data:S.slice(1),lastEventId:A});if(e.dispatchEvent(y),"open"===$?j(e,e.onopen,y):"message"===$?j(e,e.onmessage,y):"error"===$&&j(e,e.onerror,y),B===P)return}S="",$=""}K=l==="\r".charCodeAt(0)?O:M}else K===M&&(Z=a,K=N),K===N?l===":".charCodeAt(0)&&(X=a+1,K=D):K===D&&(K=k)}}},J=function(t){if(B===I||B===R){B=H,0!==w&&(o(w),w=0),w=r((function(){Q()}),p),p=F(Math.min(16*c,2*p)),e.readyState=R;var n=new x("error",{error:t});e.dispatchEvent(n),j(e,e.onerror,n),null!=t&&console.error(t)}},q=function(){B=P,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),e.readyState=P},Q=function(){if(w=0,B===H){f=!1,d=0,w=r((function(){Q()}),u),B=R,S="",$="",A=h,V="",Z=0,X=0,K=M;
175
175
  // https://bugzilla.mozilla.org/show_bug.cgi?id=428916
176
176
  // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
177
177
  var n=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==h){
178
178
  // Remove the lastEventId parameter if it's already part of the request URL.
179
179
  var o=t.indexOf("?");n=-1===o?t:t.slice(0,o+1)+t.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===l?"":e})),
180
180
  // Append the current lastEventId to the request URL.
181
- n+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=e.withCredentials,s={Accept:"text/event-stream"},a=e.headers;if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c]);try{E=y.open(b,z,Y,J,n,i,s)}catch(e){throw q(),e}}else if(f||null==E){var p=Math.max((f||Date.now())+u-Date.now(),1);f=!1,w=r((function(){Q()}),p)}else J(new Error("No activity within "+u+" milliseconds. "+(B===R?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};e.url=t,e.readyState=R,e.withCredentials=a,e.headers=g,e._close=q,Q()}(this,e,t)}var W=null!=h&&null!=p&&"body"in p.prototype;V.prototype=Object.create(S.prototype),V.prototype.CONNECTING=R,V.prototype.OPEN=I,V.prototype.CLOSED=P,V.prototype.close=function(){this._close()},V.CONNECTING=R,V.OPEN=I,V.CLOSED=P,V.prototype.withCredentials=void 0;var K,Z=l;null==i||null!=l&&"withCredentials"in l.prototype||(
181
+ n+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=e.withCredentials,s={Accept:"text/event-stream"},a=e.headers;if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c]);try{E=b.open(y,z,Y,J,n,i,s)}catch(e){throw q(),e}}else if(f||null==E){var p=Math.max((f||Date.now())+u-Date.now(),1);f=!1,w=r((function(){Q()}),p)}else J(new Error("No activity within "+u+" milliseconds. "+(B===R?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};e.url=t,e.readyState=R,e.withCredentials=a,e.headers=g,e._close=q,Q()}(this,e,t)}var W=null!=h&&null!=p&&"body"in p.prototype;V.prototype=Object.create(S.prototype),V.prototype.CONNECTING=R,V.prototype.OPEN=I,V.prototype.CLOSED=P,V.prototype.close=function(){this._close()},V.CONNECTING=R,V.OPEN=I,V.CLOSED=P,V.prototype.withCredentials=void 0;var K,Z=l;null==i||null!=l&&"withCredentials"in l.prototype||(
182
182
  // Why replace a native EventSource ?
183
183
  // https://bugzilla.mozilla.org/show_bug.cgi?id=444328
184
184
  // https://bugzilla.mozilla.org/show_bug.cgi?id=831392
185
185
  // https://code.google.com/p/chromium/issues/detail?id=260144
186
186
  // https://code.google.com/p/chromium/issues/detail?id=225654
187
187
  // ...
188
- Z=V),K=function(e){e.EventSourcePolyfill=V,e.NativeEventSource=l,e.EventSource=Z}(t),void 0!==K&&(e.exports=K)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:we:globalThis)}));const Be=e=>window.postMessage(e,window.location.href),Ce=e=>{const t=(n=e,e=>{Object.keys(n).map((t=>{if(e.data&&e.data.type==t){const r=ve(e.data,["type"]);n[t](r)}}))});var n;P((()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)})))},Se=(e,t)=>{e&&(e.removeEventListener("message",t),e.close())},Ae=e=>_e[e]
189
- /* eslint-disable quote-props */,_e={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$"},Le=(e,t,n,r)=>{if(!n.length)return;const o={bonusWalletIDs:null==n?void 0:n.filter((e=>Ie(e))).map((e=>e.id)).join(","),XSessionId:t};if(!o.bonusWalletIDs)return;const i=`${e}/v1/bonus/wagering/updates?${(e=>Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&"))(o)}`;return((e,t)=>{let n;return n=EventSource?new EventSource(e):new Te.EventSourcePolyfill(e,{headers:{accept:"text/event-stream"}}),n.addEventListener("message",t),n})(i,r)},He=(e,t)=>{switch(e){case fe.completed:case fe.released:case fe.expired:case fe.closed:case fe.forfeited:return t.other();case fe.active:case void 0:return t.active();default:throw new Error(`unknown Bonus Status: ${e}`)}},$e=(e,t)=>{switch(e){case fe.completed:case fe.released:return t.completed();case fe.active:case fe.expired:case fe.closed:case fe.forfeited:return t.current();default:throw new Error(`unknown Bonus Status: ${e}`)}},xe=async(e,t,n,r={})=>{const{limit:o,lang:i,status:s}=r,a=ve(r,["limit","lang","status"]),l=Object.assign(Object.assign({type:"wagering",pagination:`limit=${o||50},offset=0`,language:i},s&&s!==fe.claimable?{status:s}:{}),a),c=s===fe.claimable?"claimable":"granted",u=new URL(`${t}/v1/bonus/${c}`);return Object.keys(l).map((e=>{u.searchParams.append(e,l[e])})),await oe(e,u,{headers:Object.assign({},n?{"x-SessionId":n}:{})})},Re=async(e,t,n,r,o)=>await oe(e,t+"/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:r,currency:o}),headers:{"x-SessionId":n,accept:"text/plain","Content-Type":"application/json-patch+json"}}),Ie=e=>!!e.bonusWalletID&&He(e.status,{active:()=>!0,other:()=>!1}),Pe=(e,t,n)=>{switch(t.type){case ge.standard:case ge.freeBet:const r=Object.assign(Object.assign({},t),{currency:Ae(Object.keys(e.increment)[0])});return"percentage"===t.mode&&(r.bonusAmount=100*r.bonusAmount),"freeBet"===t.type&&"fixed"===t.mode&&(r.currency=""),n(`reward.${t.mode}`,r)+" "+n(`reward.${t.type}`);default:return n(`reward.${t.type}`,t)}},Oe=(e,t,n)=>{var r;const o=(null===(r=e.wageringProgress)||void 0===r?void 0:r.currentLevel)-1,i=t.length-1,s=e=>e.filter((e=>e.index>=0&&e.index<=i)).map((e=>{const r=t[e.index];return{key:e.key,descriptions:r.bonuses.map((e=>Pe(r,e,n)))}}))
188
+ Z=V),K=function(e){e.EventSourcePolyfill=V,e.NativeEventSource=l,e.EventSource=Z}(t),void 0!==K&&(e.exports=K)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:we:globalThis)}));const Be=e=>window.postMessage(e,window.location.href),Ce=e=>{const t=(n=e,e=>{Object.keys(n).map((t=>{if(e.data&&e.data.type==t){const r=ve(e.data,["type"]);n[t](r)}}))});var n;P((()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)})))},Se=(e,t)=>{e&&(e.removeEventListener("message",t),e.close())},Ae=e=>$e[e]
189
+ /* eslint-disable quote-props */,$e={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$"},Le=(e,t)=>JSON.stringify(e.map((e=>({bonusWalletID:e.id,progressID:t[e.id]||0})))),_e=(e,t,n,r,o)=>{const i=n.filter((e=>Pe(e)));if(!i.length)return;const s=`${e}/v1/bonus/wagering/updates?${(e=>Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&"))({walletFilter:Le(i,o),XSessionId:t,HeartBeat:!0})}`;return((e,t,n)=>{let r;return r=EventSource?new EventSource(e,t):new Te.EventSourcePolyfill(e,t),r.addEventListener("message",n),r})(s,{headers:{accept:"text/event-stream"}},r)},xe=(e,t)=>{switch(e){case fe.completed:case fe.released:case fe.expired:case fe.closed:case fe.forfeited:return t.other();case fe.active:case void 0:return t.active();default:throw new Error(`unknown Bonus Status: ${e}`)}},He=(e,t)=>{switch(e){case fe.completed:case fe.released:return t.completed();case fe.active:case fe.expired:case fe.closed:case fe.forfeited:return t.current();default:throw new Error(`unknown Bonus Status: ${e}`)}},Re=async(e,t,n,r={})=>{const{limit:o,lang:i,status:s}=r,a=ve(r,["limit","lang","status"]),l=Object.assign(Object.assign({type:"wagering",pagination:`limit=${o||50},offset=0`,language:i},s&&s!==fe.claimable?{status:s}:{}),a),c=s===fe.claimable?"claimable":"granted",u=new URL(`${t}/v1/bonus/${c}`);return Object.keys(l).map((e=>{u.searchParams.append(e,l[e])})),await oe(e,u,{headers:Object.assign({},n?{"x-SessionId":n}:{})})},Ie=async(e,t,n,r,o)=>await oe(e,t+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:r,currency:o}),headers:{"x-SessionId":n,accept:"text/plain","Content-Type":"application/json-patch+json"}}),Pe=e=>!!e.bonusWalletID&&xe(e.status,{active:()=>!0,other:()=>!1}),Oe=(e,t,n)=>{switch(t.type){case ge.standard:case ge.freeBet:const r=Object.assign(Object.assign({},t),{currency:Ae(Object.keys(e.increment)[0])});return"percentage"===t.mode&&(r.bonusAmount=100*r.bonusAmount),"freeBet"===t.type&&"fixed"===t.mode&&(r.currency=""),n(`reward.${t.mode}`,r)+" "+n(`reward.${t.type}`);default:return n(`reward.${t.type}`,t)}},Me=(e,t,n)=>{var r;const o=(null===(r=e.wageringProgress)||void 0===r?void 0:r.currentLevel)-1,i=t.length-1,s=e=>e.filter((e=>e.index>=0&&e.index<=i)).map((e=>{const r=t[e.index];return{key:e.key,descriptions:r.bonuses.map((e=>Oe(r,e,n)))}}))
190
190
  // .map(line => `${line.key} Level: ${getTitleByIndex(line.index)}`);
191
- return He(e.status,{active:()=>e.status?s([{key:"current",index:o},{key:"next",index:o+1}]):e.status?void 0:s([{key:"first",index:0},{key:"next",index:1}]),other:()=>s([{key:"last",index:i},{key:"previous",index:i-1}])})},Me=(e,t)=>{if(!e.wageringProgress)return;const{currency:n,currentLevelIncrement:r,gap:o,currentLevel:i}=e.wageringProgress;return{currencySymbol:Ae(n),levelInfo:t[i-1],currency:n,currentLevelIncrement:r,gap:o,currentLevel:i}},Ne=e=>{if(!e.wageringProgress)return 0;const{currency:t,currentLevelIncrement:n,gap:r,currentLevel:o}=e.wageringProgress;return n-r},De=e=>$e(e.status,{completed:()=>"100",current:()=>{if(!e.wageringProgress)return"0";const{currency:t,currentLevelIncrement:n,gap:r,currentLevel:o}=e.wageringProgress,i=Number(function(e,t){var n,r,o;try{n=e.toString().split(".")[1].length}catch(e){n=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}return((e*(o=Math.pow(10,Math.max(n,r)))-t*o)/o).toFixed(n>=r?n:r)}(n,r));return String(Math.ceil(i/n*100))}}),ke=(e,t,n)=>e.levels.find((e=>0===e.maxRepeats))?t:n,Ue=(e,t,n,r)=>{const o=te(e);o<0?n():(r(ne(e)),
191
+ return xe(e.status,{active:()=>e.status?s([{key:"current",index:o},{key:"next",index:o+1}]):e.status?void 0:s([{key:"first",index:0},{key:"next",index:1}]),other:()=>s([{key:"last",index:i},{key:"previous",index:i-1}])})},Ne=(e,t)=>{if(!e.wageringProgress)return;const{currency:n,currentLevelIncrement:r,gap:o,currentLevel:i}=e.wageringProgress;return{currencySymbol:Ae(n),levelInfo:t[i-1],currency:n,currentLevelIncrement:r,gap:o,currentLevel:i}},De=e=>{if(!e.wageringProgress)return 0;const{currency:t,currentLevelIncrement:n,gap:r,currentLevel:o}=e.wageringProgress;return(n-r).toFixed(2)},ke=e=>He(e.status,{completed:()=>"100",current:()=>{if(!e.wageringProgress)return"0";const{currency:t,currentLevelIncrement:n,gap:r,currentLevel:o}=e.wageringProgress,i=Number(function(e,t){var n,r,o;try{n=e.toString().split(".")[1].length}catch(e){n=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}return((e*(o=Math.pow(10,Math.max(n,r)))-t*o)/o).toFixed(n>=r?n:r)}(n,r));return String(Math.ceil(i/n*100))}}),Ue=(e,t,n)=>e.levels.find((e=>0===e.maxRepeats))?t:n,Ge=(e,t,n,r)=>{if(!e)return;const o=te(e);o<0?n():(r(ne(e)),
192
192
  // check if bonus will expire
193
- o<t&&setTimeout((()=>{Be({type:"OnWageringBonusExpired"})}),o))},Ge=e=>{switch(e){case"active":return fe.active;case"completed":return[fe.expired,fe.forfeited,fe.released,fe.completed,fe.closed].join(",")}},Fe=(e,t,n)=>{const r=0===e?0:n.levels[e-1].maxRepeats-1;return t.maxRepeats>1?`${e+1+r}-${e+1+r+t.maxRepeats-1}`:e+1+r},je=[];
193
+ o<t&&setTimeout((()=>{Be({type:"OnWageringBonusExpired"})}),o))},Fe=e=>{switch(e){case"active":return fe.active;case"completed":return[fe.expired,fe.forfeited,fe.released,fe.completed,fe.closed].join(",")}},je=(e,t,n)=>{const r=0===e?0:n.levels[e-1].maxRepeats-1;return t.maxRepeats>1?`${e+1+r}-${e+1+r+t.maxRepeats-1}`:e+1+r},Ve=[];
194
194
  /**
195
195
  * Create a `Writable` store that allows both updating and reading by subscription.
196
196
  * @param {*=}value initial value
197
197
  * @param {StartStopNotifier=} start
198
198
  */
199
- function Ve(t,n=e){let r;const o=new Set;function i(e){if(s(t,e)&&(t=e,r)){// store is ready
200
- const e=!je.length;for(const e of o)e[1](),je.push(e,t);if(e){for(let e=0;e<je.length;e+=2)je[e][0](je[e+1]);je.length=0}}}return{set:i,update:function(e){i(e(t))},subscribe:function(s,a=e){const l=[s,a];return o.add(l),1===o.size&&(r=n(i)||e),s(t),()=>{o.delete(l),0===o.size&&r&&(r(),r=null)}}}}function We(t,n,r){const s=!Array.isArray(t),a=s?[t]:t,c=n.length<2;return u=t=>{let r=!1;const u=[];let h=0,p=e;const f=()=>{if(h)return;p();const r=n(s?u[0]:u,t);c?t(r):p=i(r)?r:e},d=a.map(((e,t)=>l(e,(e=>{u[t]=e,h&=~(1<<t),r&&f()}),(()=>{h|=1<<t}))));return r=!0,f(),function(){o(d),p(),
199
+ function We(t,n=e){let r;const o=new Set;function i(e){if(s(t,e)&&(t=e,r)){// store is ready
200
+ const e=!Ve.length;for(const e of o)e[1](),Ve.push(e,t);if(e){for(let e=0;e<Ve.length;e+=2)Ve[e][0](Ve[e+1]);Ve.length=0}}}return{set:i,update:function(e){i(e(t))},subscribe:function(s,a=e){const l=[s,a];return o.add(l),1===o.size&&(r=n(i)||e),s(t),()=>{o.delete(l),0===o.size&&r&&(r(),r=null)}}}}function Ke(t,n,r){const s=!Array.isArray(t),a=s?[t]:t,c=n.length<2;return u=t=>{let r=!1;const u=[];let h=0,p=e;const f=()=>{if(h)return;p();const r=n(s?u[0]:u,t);c?t(r):p=i(r)?r:e},d=a.map(((e,t)=>l(e,(e=>{u[t]=e,h&=~(1<<t),r&&f()}),(()=>{h|=1<<t}))));return r=!0,f(),function(){o(d),p(),
201
201
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
202
202
  // Callbacks might already be placed in the queue which doesn't know it should no longer
203
203
  // invoke this derived store.
204
- r=!1}},{subscribe:Ve(r,u).subscribe};
204
+ r=!1}},{subscribe:We(r,u).subscribe};
205
205
  /**
206
206
  * Creates a `Readable` store that allows reading by subscription.
207
207
  * @param value initial value
208
208
  * @param {StartStopNotifier} [start]
209
209
  */
210
- var u}var Ke=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===Ze}(e)}
210
+ var u}var Ze=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===Xe}(e)}
211
211
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
212
- (e)};var Ze="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xe(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Qe((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function ze(e,t,n){return e.concat(t).map((function(e){return Xe(e,n)}))}function Ye(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 Je(e,t){try{return t in e}catch(e){return!1}}
212
+ (e)};var Xe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?et((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ye(e,t,n){return e.concat(t).map((function(e){return ze(e,n)}))}function Je(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 qe(e,t){try{return t in e}catch(e){return!1}}
213
213
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
214
- function qe(e,t,n){var r={};return n.isMergeableObject(e)&&Ye(e).forEach((function(t){r[t]=Xe(e[t],n)})),Ye(t).forEach((function(o){(function(e,t){return Je(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
215
- })(e,o)||(Je(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Qe;var n=t.customMerge(e);return"function"==typeof n?n:Qe}(o,n)(e[o],t[o],n):r[o]=Xe(t[o],n))})),r}function Qe(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ze,n.isMergeableObject=n.isMergeableObject||Ke,
214
+ function Qe(e,t,n){var r={};return n.isMergeableObject(e)&&Je(e).forEach((function(t){r[t]=ze(e[t],n)})),Je(t).forEach((function(o){(function(e,t){return qe(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
215
+ })(e,o)||(qe(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return et;var n=t.customMerge(e);return"function"==typeof n?n:et}(o,n)(e[o],t[o],n):r[o]=ze(t[o],n))})),r}function et(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ye,n.isMergeableObject=n.isMergeableObject||Ze,
216
216
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
217
217
  // implementations can use it. The caller may not replace it.
218
- n.cloneUnlessOtherwiseSpecified=Xe;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):qe(e,t,n):Xe(t,n)}Qe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Qe(e,n,t)}),{})};var et,tt,nt,rt=Qe;
218
+ n.cloneUnlessOtherwiseSpecified=ze;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Qe(e,t,n):ze(t,n)}et.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return et(e,n,t)}),{})};var tt,nt,rt,ot=et;
219
219
  /**
220
220
  * Type Guards
221
221
  */
222
- function ot(e){return e.type===tt.literal}function it(e){return e.type===tt.argument}function st(e){return e.type===tt.number}function at(e){return e.type===tt.date}function lt(e){return e.type===tt.time}function ct(e){return e.type===tt.select}function ut(e){return e.type===tt.plural}function ht(e){return e.type===tt.pound}function pt(e){return e.type===tt.tag}function ft(e){return!(!e||"object"!=typeof e||e.type!==nt.number)}function dt(e){return!(!e||"object"!=typeof e||e.type!==nt.dateTime)}
222
+ function it(e){return e.type===nt.literal}function st(e){return e.type===nt.argument}function at(e){return e.type===nt.number}function lt(e){return e.type===nt.date}function ct(e){return e.type===nt.time}function ut(e){return e.type===nt.select}function ht(e){return e.type===nt.plural}function pt(e){return e.type===nt.pound}function ft(e){return e.type===nt.tag}function dt(e){return!(!e||"object"!=typeof e||e.type!==rt.number)}function gt(e){return!(!e||"object"!=typeof e||e.type!==rt.dateTime)}
223
223
  // @generated from regex-gen.ts
224
224
  !function(e){
225
225
  /** Argument is unclosed (e.g. `{0`) */
@@ -281,7 +281,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
281
281
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
282
282
  e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
283
283
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
284
- e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(et||(et={})),function(e){
284
+ e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(tt||(tt={})),function(e){
285
285
  /**
286
286
  * Raw text
287
287
  */
@@ -318,7 +318,7 @@ e[e.pound=7]="pound",
318
318
  /**
319
319
  * XML-like tag
320
320
  */
321
- e[e.tag=8]="tag"}(tt||(tt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(nt||(nt={}));var gt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,mt=/(?:[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;
321
+ e[e.tag=8]="tag"}(nt||(nt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(rt||(rt={}));var mt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yt=/(?:[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;
322
322
  /**
323
323
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
324
324
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -330,7 +330,7 @@ e[e.tag=8]="tag"}(tt||(tt={})),function(e){e[e.number=0]="number",e[e.dateTime=1
330
330
  * @public
331
331
  * @param skeleton skeleton string
332
332
  */
333
- function bt(e){var t={};return e.replace(mt,(function(e){var n=e.length;switch(e[0]){
333
+ function bt(e){var t={};return e.replace(yt,(function(e){var n=e.length;switch(e[0]){
334
334
  // Era
335
335
  case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
336
336
  // Year
@@ -364,33 +364,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
364
364
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
365
365
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
366
366
  // @generated from regex-gen.ts
367
- var yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var vt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Et=/^(@+)?(\+|#+)?[rs]?$/g,wt=/(\*)(0+)|(#+)(0+)|(0+)/g,Tt=/^(0+)$/;function Bt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Et,(function(e,n,r){
367
+ var vt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Et=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wt=/^(@+)?(\+|#+)?[rs]?$/g,Tt=/(\*)(0+)|(#+)(0+)|(0+)/g,Bt=/^(0+)$/;function Ct(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(wt,(function(e,n,r){
368
368
  // @@@ case
369
- 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 Ct(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 St(e){
369
+ 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 St(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 At(e){
370
370
  // Engineering
371
- 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)),!Tt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function At(e){var t=Ct(e);return t||{}}
371
+ 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)),!Bt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $t(e){var t=St(e);return t||{}}
372
372
  /**
373
373
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
374
- */function _t(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=ye(ye(ye({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ye(ye({},e),At(t))}),{}));continue;case"engineering":t=ye(ye(ye({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ye(ye({},e),At(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
374
+ */function Lt(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=be(be(be({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return be(be({},e),$t(t))}),{}));continue;case"engineering":t=be(be(be({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return be(be({},e),$t(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
375
375
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
376
376
  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(o.options[0]);continue;
377
377
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
378
- case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(wt,(function(e,n,r,o,i,s){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)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}
378
+ case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Tt,(function(e,n,r,o,i,s){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)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}
379
379
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
380
- if(Tt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(vt.test(o.stem)){
380
+ if(Bt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Et.test(o.stem)){
381
381
  // Precision
382
382
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
383
383
  // precision-integer case
384
- if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(vt,(function(e,n,r,o,i,s){
384
+ if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Et,(function(e,n,r,o,i,s){
385
385
  // .000* case (before ICU67 it was .000+)
386
386
  return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&s?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];
387
387
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
388
- "w"===i?t=ye(ye({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ye(ye({},t),Bt(i)))}
388
+ "w"===i?t=be(be({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=be(be({},t),Ct(i)))}
389
389
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
390
- else if(Et.test(o.stem))t=ye(ye({},t),Bt(o.stem));else{var s=Ct(o.stem);s&&(t=ye(ye({},t),s));var a=St(o.stem);a&&(t=ye(ye({},t),a))}}return t}
390
+ else if(wt.test(o.stem))t=be(be({},t),Ct(o.stem));else{var s=St(o.stem);s&&(t=be(be({},t),s));var a=At(o.stem);a&&(t=be(be({},t),a))}}return t}
391
391
  // @generated from time-data-gen.ts
392
392
  // prettier-ignore
393
- var Lt,Ht={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"]};
393
+ var _t,xt={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"]};
394
394
  /**
395
395
  * Returns the best matching date time pattern if a date time skeleton
396
396
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -403,7 +403,7 @@ var Lt,Ht={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
403
403
  * of the given `locale` to the corresponding time pattern.
404
404
  * @param locale
405
405
  */
406
- function $t(e){var t=e.hourCycle;if(void 0===t&&
406
+ function Ht(e){var t=e.hourCycle;if(void 0===t&&
407
407
  // @ts-ignore hourCycle(s) is not identified yet
408
408
  e.hourCycles&&
409
409
  // @ts-ignore
@@ -411,37 +411,37 @@ e.hourCycles.length&&(
411
411
  // @ts-ignore
412
412
  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")}
413
413
  // TODO: Once hourCycle is fully supported remove the following with data generation
414
- var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Ht[n||""]||Ht[r||""]||Ht["".concat(r,"-001")]||Ht["001"])[0]}var xt=new RegExp("^".concat(gt.source,"*")),Rt=new RegExp("".concat(gt.source,"*$"));function It(e,t){return{start:e,end:t}}
414
+ var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(xt[n||""]||xt[r||""]||xt["".concat(r,"-001")]||xt["001"])[0]}var Rt=new RegExp("^".concat(mt.source,"*")),It=new RegExp("".concat(mt.source,"*$"));function Pt(e,t){return{start:e,end:t}}
415
415
  // #region Ponyfills
416
416
  // Consolidate these variables up top for easier toggling during debugging
417
- var Pt=!!String.prototype.startsWith,Ot=!!String.fromCodePoint,Mt=!!Object.fromEntries,Nt=!!String.prototype.codePointAt,Dt=!!String.prototype.trimStart,kt=!!String.prototype.trimEnd,Ut=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gt=!0;try{
417
+ var Ot=!!String.prototype.startsWith,Mt=!!String.fromCodePoint,Nt=!!Object.fromEntries,Dt=!!String.prototype.codePointAt,kt=!!String.prototype.trimStart,Ut=!!String.prototype.trimEnd,Gt=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ft=!0;try{
418
418
  /**
419
419
  * legacy Edge or Xbox One browser
420
420
  * Unicode flag support: supported
421
421
  * Pattern_Syntax support: not supported
422
422
  * See https://github.com/formatjs/formatjs/issues/2822
423
423
  */
424
- Gt="a"===(null===(Lt=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(e){Gt=!1}var Ft,jt=Pt?// Native
424
+ Ft="a"===(null===(_t=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_t?void 0:_t[0])}catch(e){Ft=!1}var jt,Vt=Ot?// Native
425
425
  function(e,t,n){return e.startsWith(t,n)}:// For IE11
426
- function(e,t,n){return e.slice(n,n+t.length)===t},Vt=Ot?String.fromCodePoint:// IE11
427
- function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>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},Wt=
426
+ function(e,t,n){return e.slice(n,n+t.length)===t},Wt=Mt?String.fromCodePoint:// IE11
427
+ function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>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},Kt=
428
428
  // native
429
- Mt?Object.fromEntries:// Ponyfill
430
- function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}return t},Kt=Nt?// Native
429
+ Nt?Object.fromEntries:// Ponyfill
430
+ function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}return t},Zt=Dt?// Native
431
431
  function(e,t){return e.codePointAt(t)}:// IE 11
432
- function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Zt=Dt?// Native
432
+ function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Xt=kt?// Native
433
433
  function(e){return e.trimStart()}:// Ponyfill
434
- function(e){return e.replace(xt,"")},Xt=kt?// Native
434
+ function(e){return e.replace(Rt,"")},zt=Ut?// Native
435
435
  function(e){return e.trimEnd()}:// Ponyfill
436
- function(e){return e.replace(Rt,"")};
436
+ function(e){return e.replace(It,"")};
437
437
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
438
- function zt(e,t){return new RegExp(e,t)}
438
+ function Yt(e,t){return new RegExp(e,t)}
439
439
  // #endregion
440
- if(Gt){
440
+ if(Ft){
441
441
  // Native
442
- var Yt=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ft=function(e,t){var n;return Yt.lastIndex=t,null!==(n=Yt.exec(e)[1])&&void 0!==n?n:""}}else
442
+ var Jt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");jt=function(e,t){var n;return Jt.lastIndex=t,null!==(n=Jt.exec(e)[1])&&void 0!==n?n:""}}else
443
443
  // IE11
444
- Ft=function(e,t){for(var n=[];;){var r=Kt(e,t);if(void 0===r||Qt(r)||en(r))break;n.push(r),t+=r>=65536?2:1}return Vt.apply(void 0,n)};var Jt=/** @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 o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125/* `}` */===o&&e>0)break;if(35/* `#` */!==o||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(et.UNMATCHED_CLOSING_TAG,It(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&qt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:tt.pound,location:It(s,this.clonePosition())})}}}return{val:r,err:null}},
444
+ jt=function(e,t){for(var n=[];;){var r=Zt(e,t);if(void 0===r||en(r)||tn(r))break;n.push(r),t+=r>=65536?2:1}return Wt.apply(void 0,n)};var qt=/** @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 o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125/* `}` */===o&&e>0)break;if(35/* `#` */!==o||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(tt.UNMATCHED_CLOSING_TAG,Pt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Qt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:nt.pound,location:Pt(s,this.clonePosition())})}}}return{val:r,err:null}},
445
445
  /**
446
446
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
447
447
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -463,14 +463,14 @@ Ft=function(e,t){for(var n=[];;){var r=Kt(e,t);if(void 0===r||Qt(r)||en(r))break
463
463
  e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
464
464
  var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
465
465
  // Self closing tag
466
- return{val:{type:tt.literal,value:"<".concat(r,"/>"),location:It(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();
466
+ return{val:{type:nt.literal,value:"<".concat(r,"/>"),location:Pt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();
467
467
  // Expecting a close tag
468
- if(this.bumpIf("</")){if(this.isEOF()||!qt(this.char()))return this.error(et.INVALID_TAG,It(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(et.UNMATCHED_CLOSING_TAG,It(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:tt.tag,value:r,children:i,location:It(n,this.clonePosition())},err:null}:this.error(et.INVALID_TAG,It(s,this.clonePosition())))}return this.error(et.UNCLOSED_TAG,It(n,this.clonePosition()))}return this.error(et.INVALID_TAG,It(n,this.clonePosition()))},
468
+ if(this.bumpIf("</")){if(this.isEOF()||!Qt(this.char()))return this.error(tt.INVALID_TAG,Pt(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(tt.UNMATCHED_CLOSING_TAG,Pt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:r,children:i,location:Pt(n,this.clonePosition())},err:null}:this.error(tt.INVALID_TAG,Pt(s,this.clonePosition())))}return this.error(tt.UNCLOSED_TAG,Pt(n,this.clonePosition()))}return this.error(tt.INVALID_TAG,Pt(n,this.clonePosition()))},
469
469
  /**
470
470
  * This method assumes that the caller has peeked ahead for the first tag character.
471
471
  */
472
472
  e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
473
- for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||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);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=It(n,this.clonePosition());return{val:{type:tt.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(qt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
473
+ for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||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);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=Pt(n,this.clonePosition());return{val:{type:nt.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Qt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
474
474
  /** See `parseTag` function docs. */},
475
475
  /**
476
476
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
@@ -492,67 +492,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
492
492
  // Optional closing apostrophe.
493
493
  this.bump();break}t.push(39),
494
494
  // Bump one more time because we need to skip 2 characters.
495
- this.bump()}else t.push(n);this.bump()}return Vt.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(),Vt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
496
- this.bumpSpace(),this.isEOF())return this.error(et.EXPECT_ARGUMENT_CLOSING_BRACE,It(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(et.EMPTY_ARGUMENT,It(n,this.clonePosition()));
495
+ this.bump()}else t.push(n);this.bump()}return Wt.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(),Wt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
496
+ this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(tt.EMPTY_ARGUMENT,Pt(n,this.clonePosition()));
497
497
  // argument name
498
- var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(et.MALFORMED_ARGUMENT,It(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(et.EXPECT_ARGUMENT_CLOSING_BRACE,It(n,this.clonePosition()));switch(this.char()){
498
+ var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(tt.MALFORMED_ARGUMENT,Pt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition()));switch(this.char()){
499
499
  // Simple argument: `{name}`
500
500
  case 125/* `}` */:// `}`
501
- return this.bump(),{val:{type:tt.argument,
501
+ return this.bump(),{val:{type:nt.argument,
502
502
  // value does not include the opening and closing braces.
503
- value:r,location:It(n,this.clonePosition())},err:null};
503
+ value:r,location:Pt(n,this.clonePosition())},err:null};
504
504
  // Argument with options: `{name, format, ...}`
505
505
  case 44/* `,` */:return this.bump(),// `,`
506
- this.bumpSpace(),this.isEOF()?this.error(et.EXPECT_ARGUMENT_CLOSING_BRACE,It(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(et.MALFORMED_ARGUMENT,It(n,this.clonePosition()))}},
506
+ this.bumpSpace(),this.isEOF()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(tt.MALFORMED_ARGUMENT,Pt(n,this.clonePosition()))}},
507
507
  /**
508
508
  * Advance the parser until the end of the identifier, if it is currently on
509
509
  * an identifier character. Return an empty string otherwise.
510
510
  */
511
- e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Ft(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:It(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
511
+ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=jt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Pt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
512
512
  // Parse this range:
513
513
  // {name, type, style}
514
514
  // ^---^
515
515
  switch(s){case"":
516
516
  // Expecting a style string number, date, time, plural, selectordinal, or select.
517
- return this.error(et.EXPECT_ARGUMENT_TYPE,It(i,a));case"number":case"date":case"time":
517
+ return this.error(tt.EXPECT_ARGUMENT_TYPE,Pt(i,a));case"number":case"date":case"time":
518
518
  // Parse this range:
519
519
  // {name, number, style}
520
520
  // ^-------^
521
- this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=Xt(b.val)).length)return this.error(et.EXPECT_ARGUMENT_STYLE,It(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:It(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var u=It(r,this.clonePosition());
521
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=zt(y.val)).length)return this.error(tt.EXPECT_ARGUMENT_STYLE,Pt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Pt(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var u=Pt(r,this.clonePosition());
522
522
  // Extract style or skeleton
523
- if(l&&jt(null==l?void 0:l.style,"::",0)){
523
+ if(l&&Vt(null==l?void 0:l.style,"::",0)){
524
524
  // Skeleton starts with `::`.
525
- var h=Zt(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?b:{val:{type:tt.number,value:n,location:u,style:b.val},err:null};if(0===h.length)return this.error(et.EXPECT_DATE_TIME_SKELETON,u);var p=h;
525
+ var h=Xt(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:nt.number,value:n,location:u,style:y.val},err:null};if(0===h.length)return this.error(tt.EXPECT_DATE_TIME_SKELETON,u);var p=h;
526
526
  // Get "best match" pattern only if locale is passed, if not, let it
527
527
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
528
528
  // for unsupported patterns.
529
- this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=$t(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(h,this.locale));var f={type:nt.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?bt(p):{}};return{val:{type:"date"===s?tt.date:tt.time,value:n,location:u,style:f},err:null}}
529
+ this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Ht(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(h,this.locale));var f={type:rt.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?bt(p):{}};return{val:{type:"date"===s?nt.date:nt.time,value:n,location:u,style:f},err:null}}
530
530
  // Regular style or no style.
531
- return{val:{type:"number"===s?tt.number:"date"===s?tt.date:tt.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
531
+ return{val:{type:"number"===s?nt.number:"date"===s?nt.date:nt.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
532
532
  // Parse this range:
533
533
  // {name, plural, options}
534
534
  // ^---------^
535
- var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(et.EXPECT_SELECT_ARGUMENT_OPTIONS,It(d,ye({},d)));this.bumpSpace();
535
+ var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(tt.EXPECT_SELECT_ARGUMENT_OPTIONS,Pt(d,be({},d)));this.bumpSpace();
536
536
  // Parse offset:
537
537
  // {name, plural, offset:1, options}
538
538
  // ^-----^
539
539
  // or the first option:
540
540
  // {name, plural, one {...} other {...}}
541
541
  // ^--^
542
- var g=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,It(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,et.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
542
+ var g=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,tt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
543
543
  // Parse another identifier for option parsing
544
- this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=b.val}var y,v=this.tryParsePluralOrSelectOptions(e,s,t,g);if(v.err)return v;if((y=this.tryParseArgumentClose(r)).err)return y;var E=It(r,this.clonePosition());return"select"===s?{val:{type:tt.select,value:n,options:Wt(v.val),location:E},err:null}:{val:{type:tt.plural,value:n,options:Wt(v.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(et.INVALID_ARGUMENT_TYPE,It(i,a))}},e.prototype.tryParseArgumentClose=function(e){
544
+ this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,s,t,g);if(v.err)return v;if((b=this.tryParseArgumentClose(r)).err)return b;var E=Pt(r,this.clonePosition());return"select"===s?{val:{type:nt.select,value:n,options:Kt(v.val),location:E},err:null}:{val:{type:nt.plural,value:n,options:Kt(v.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(tt.INVALID_ARGUMENT_TYPE,Pt(i,a))}},e.prototype.tryParseArgumentClose=function(e){
545
545
  // Parse: {value, number, ::currency/GBP }
546
- return this.isEOF()||125/* `}` */!==this.char()?this.error(et.EXPECT_ARGUMENT_CLOSING_BRACE,It(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
546
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
547
547
  /**
548
548
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
549
549
  */
550
550
  e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
551
551
  // Treat apostrophe as quoting but include it in the style part.
552
552
  // Find the end of the quoted literal text.
553
- this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(et.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,It(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");
553
+ this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(tt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Pt(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");
554
554
  // Parse the skeleton
555
- for(var t=[],n=0,r=e.split(yt).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:s})}return t}(e)}catch(e){return this.error(et.INVALID_NUMBER_SKELETON,t)}return{val:{type:nt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?_t(n):{}},err:null}},
555
+ for(var t=[],n=0,r=e.split(vt).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:s})}return t}(e)}catch(e){return this.error(tt.INVALID_NUMBER_SKELETON,t)}return{val:{type:rt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Lt(n):{}},err:null}},
556
556
  /**
557
557
  * @param nesting_level The current nesting level of messages.
558
558
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -569,24 +569,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
569
569
  // ^--^
570
570
  for(var o,i=!1,s=[],a=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
571
571
  // Try parse `={number}` selector
572
- var h=this.tryParseDecimalInteger(et.EXPECT_PLURAL_ARGUMENT_SELECTOR,et.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=It(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
572
+ var h=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,tt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Pt(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
573
573
  // Duplicate selector clauses
574
- if(a.has(l))return this.error("select"===t?et.DUPLICATE_SELECT_ARGUMENT_SELECTOR:et.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),
574
+ if(a.has(l))return this.error("select"===t?tt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:tt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),
575
575
  // Parse:
576
576
  // one {one apple}
577
577
  // ^----------^
578
- this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?et.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:et.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,It(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var d=this.tryParseArgumentClose(p);if(d.err)return d;s.push([l,{value:f.val,location:It(p,this.clonePosition())}]),
578
+ this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?tt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Pt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var d=this.tryParseArgumentClose(p);if(d.err)return d;s.push([l,{value:f.val,location:Pt(p,this.clonePosition())}]),
579
579
  // Keep track of the existing selectors
580
580
  a.add(l),
581
581
  // Prep next selector clause.
582
- this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?et.EXPECT_SELECT_ARGUMENT_SELECTOR:et.EXPECT_PLURAL_ARGUMENT_SELECTOR,It(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(et.MISSING_OTHER_CLAUSE,It(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 o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=It(r,this.clonePosition());return o?Ut(i*=n)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
582
+ this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?tt.EXPECT_SELECT_ARGUMENT_SELECTOR:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(tt.MISSING_OTHER_CLAUSE,Pt(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 o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Pt(r,this.clonePosition());return o?Gt(i*=n)?{val:i,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
583
583
  // This is much faster than `Object.assign` or spread.
584
584
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
585
585
  /**
586
586
  * Return the code point at the current position of the parser.
587
587
  * Throws if the index is out of bound.
588
588
  */
589
- e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Kt(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}}},
589
+ e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Zt(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}}},
590
590
  /** Bump the parser to the next UTF-16 code unit. */
591
591
  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,
592
592
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
@@ -597,7 +597,7 @@ this.position.offset+=e<65536?1:2)}},
597
597
  * following the prefix and return true. Otherwise, don't bump the parser
598
598
  * and return false.
599
599
  */
600
- 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},
600
+ e.prototype.bumpIf=function(e){if(Vt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
601
601
  /**
602
602
  * Bump the parser until the pattern character is found and return `true`.
603
603
  * Otherwise bump to the end of the file and return `false`.
@@ -609,7 +609,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
609
609
  */
610
610
  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}},
611
611
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
612
- e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Qt(this.char());)this.bump()},
612
+ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&en(this.char());)this.bump()},
613
613
  /**
614
614
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
615
615
  * If the input has been exhausted, then this returns null.
@@ -619,167 +619,172 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
619
619
  * This check if codepoint is alphabet (lower & uppercase)
620
620
  * @param codepoint
621
621
  * @returns
622
- */function qt(e){return e>=97&&e<=122||e>=65&&e<=90}
622
+ */function Qt(e){return e>=97&&e<=122||e>=65&&e<=90}
623
623
  /**
624
624
  * Code point equivalent of regex `\p{White_Space}`.
625
625
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
626
626
  */
627
- function Qt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
627
+ function en(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
628
628
  /**
629
629
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
630
630
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
631
- */function en(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 tn(e){e.forEach((function(e){if(delete e.location,ct(e)||ut(e))for(var t in e.options)delete e.options[t].location,tn(e.options[t].value);else st(e)&&ft(e.style)||(at(e)||lt(e))&&dt(e.style)?delete e.style.location:pt(e)&&tn(e.children)}))}function nn(e,t){void 0===t&&(t={}),t=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Jt(e,t).parse();if(n.err){var r=SyntaxError(et[n.err.kind]);
631
+ */function tn(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 nn(e){e.forEach((function(e){if(delete e.location,ut(e)||ht(e))for(var t in e.options)delete e.options[t].location,nn(e.options[t].value);else at(e)&&dt(e.style)||(lt(e)||ct(e))&&gt(e.style)?delete e.style.location:ft(e)&&nn(e.children)}))}function rn(e,t){void 0===t&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new qt(e,t).parse();if(n.err){var r=SyntaxError(tt[n.err.kind]);
632
632
  // @ts-expect-error Assign to error object
633
633
  throw r.location=n.err.location,
634
634
  // @ts-expect-error Assign to error object
635
- r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||tn(n.val),n.val}
635
+ r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||nn(n.val),n.val}
636
636
 
637
637
  // Main
638
638
 
639
- function rn(e,t){var n=t&&t.cache?t.cache:pn,r=t&&t.serializer?t.serializer:cn;return(t&&t.strategy?t.strategy:ln)(e,{cache:n,serializer:r})}
639
+ function on(e,t){var n=t&&t.cache?t.cache:fn,r=t&&t.serializer?t.serializer:un;return(t&&t.strategy?t.strategy:cn)(e,{cache:n,serializer:r})}
640
640
 
641
641
  // Strategy
642
642
 
643
- function on(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),s=t.get(i);return void 0===s&&(s=e.call(this,r),t.set(i,s)),s}function sn(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function an(e,t,n,r,o){return n.bind(t,e,r,o)}function ln(e,t){return an(e,this,1===e.length?on:sn,t.cache.create(),t.serializer)}
643
+ function sn(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),s=t.get(i);return void 0===s&&(s=e.call(this,r),t.set(i,s)),s}function an(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function ln(e,t,n,r,o){return n.bind(t,e,r,o)}function cn(e,t){return ln(e,this,1===e.length?sn:an,t.cache.create(),t.serializer)}
644
644
  // Serializer
645
- var cn=function(){return JSON.stringify(arguments)};
645
+ var un=function(){return JSON.stringify(arguments)};
646
646
 
647
647
  // Cache
648
648
 
649
- function un(){this.cache=Object.create(null)}un.prototype.get=function(e){return this.cache[e]},un.prototype.set=function(e,t){this.cache[e]=t};var hn,pn={create:function(){
649
+ function hn(){this.cache=Object.create(null)}hn.prototype.get=function(e){return this.cache[e]},hn.prototype.set=function(e,t){this.cache[e]=t};var pn,fn={create:function(){
650
650
  // @ts-ignore
651
- return new un}},fn={variadic:function(e,t){return an(e,this,sn,t.cache.create(),t.serializer)},monadic:function(e,t){return an(e,this,on,t.cache.create(),t.serializer)}};!function(e){
651
+ return new hn}},dn={variadic:function(e,t){return ln(e,this,an,t.cache.create(),t.serializer)},monadic:function(e,t){return ln(e,this,sn,t.cache.create(),t.serializer)}};!function(e){
652
652
  // When we have a placeholder but no value to format
653
653
  e.MISSING_VALUE="MISSING_VALUE",
654
654
  // When value supplied is invalid
655
655
  e.INVALID_VALUE="INVALID_VALUE",
656
656
  // When we need specific Intl API but it's not available
657
- e.MISSING_INTL_API="MISSING_INTL_API"}(hn||(hn={}));var dn,gn=/** @class */function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return pe(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),mn=/** @class */function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),hn.INVALID_VALUE,o)||this}return pe(t,e),t}(gn),bn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),hn.INVALID_VALUE,r)||this}return pe(t,e),t}(gn),yn=/** @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,'"'),hn.MISSING_VALUE,n)||this}return pe(t,e),t}(gn);function vn(e){return"function"==typeof e}
657
+ e.MISSING_INTL_API="MISSING_INTL_API"}(pn||(pn={}));var gn,mn=/** @class */function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return pe(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),yn=/** @class */function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),pn.INVALID_VALUE,o)||this}return pe(t,e),t}(mn),bn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),pn.INVALID_VALUE,r)||this}return pe(t,e),t}(mn),vn=/** @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,'"'),pn.MISSING_VALUE,n)||this}return pe(t,e),t}(mn);function En(e){return"function"==typeof e}
658
658
  // TODO(skeleton): add skeleton support
659
- function En(e,t,n,r,o,i,
659
+ function wn(e,t,n,r,o,i,
660
660
  // For debugging
661
661
  s){
662
662
  // Hot path for straight simple msg translations
663
- if(1===e.length&&ot(e[0]))return[{type:dn.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];
663
+ if(1===e.length&&it(e[0]))return[{type:gn.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];
664
664
  // Exit early for string parts.
665
- if(ot(u))a.push({type:dn.literal,value:u.value});else
665
+ if(it(u))a.push({type:gn.literal,value:u.value});else
666
666
  // TODO: should this part be literal type?
667
667
  // Replace `#` in plural rules with the actual numeric value.
668
- if(ht(u))"number"==typeof i&&a.push({type:dn.literal,value:n.getNumberFormat(t).format(i)});else{var h=u.value;
668
+ if(pt(u))"number"==typeof i&&a.push({type:gn.literal,value:n.getNumberFormat(t).format(i)});else{var h=u.value;
669
669
  // Enforce that all required values are provided by the caller.
670
- if(!o||!(h in o))throw new yn(h,s);var p=o[h];if(it(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?dn.literal:dn.object,value:p});else
670
+ if(!o||!(h in o))throw new vn(h,s);var p=o[h];if(st(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?gn.literal:gn.object,value:p});else
671
671
  // Recursively format plural and select parts' option — which can be a
672
672
  // nested pattern structure. The choosing of the option to use is
673
673
  // abstracted-by and delegated-to the part helper object.
674
- if(at(u)){var f="string"==typeof u.style?r.date[u.style]:dt(u.style)?u.style.parsedOptions:void 0;a.push({type:dn.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(lt(u)){f="string"==typeof u.style?r.time[u.style]:dt(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:dn.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(st(u)){(f="string"==typeof u.style?r.number[u.style]:ft(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:dn.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(pt(u)){var d=u.children,g=u.value,m=o[g];if(!vn(m))throw new bn(g,"function",s);var b=m(En(d,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?dn.literal:dn.object,value:e}})))}if(ct(u)){if(!(y=u.options[p]||u.options.other))throw new mn(u.value,p,Object.keys(u.options),s);a.push.apply(a,En(y.value,t,n,r,o))}else if(ut(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new gn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',hn.MISSING_INTL_API,s);var v=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[v]||u.options.other}if(!y)throw new mn(u.value,p,Object.keys(u.options),s);a.push.apply(a,En(y.value,t,n,r,o,p-(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===dn.literal&&t.type===dn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
674
+ if(lt(u)){var f="string"==typeof u.style?r.date[u.style]:gt(u.style)?u.style.parsedOptions:void 0;a.push({type:gn.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(ct(u)){f="string"==typeof u.style?r.time[u.style]:gt(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:gn.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(at(u)){(f="string"==typeof u.style?r.number[u.style]:dt(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:gn.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(ft(u)){var d=u.children,g=u.value,m=o[g];if(!En(m))throw new bn(g,"function",s);var y=m(wn(d,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?gn.literal:gn.object,value:e}})))}if(ut(u)){if(!(b=u.options[p]||u.options.other))throw new yn(u.value,p,Object.keys(u.options),s);a.push.apply(a,wn(b.value,t,n,r,o))}else if(ht(u)){var b;if(!(b=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new mn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pn.MISSING_INTL_API,s);var v=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new yn(u.value,p,Object.keys(u.options),s);a.push.apply(a,wn(b.value,t,n,r,o,p-(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===gn.literal&&t.type===gn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
675
675
  /*
676
676
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
677
677
  Copyrights licensed under the New BSD License.
678
678
  See the accompanying LICENSE file for terms.
679
679
  */
680
680
  // -- MessageFormat --------------------------------------------------------
681
- function wn(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?ye(ye(ye({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ye(ye({},o[t]),i[t]||{}),e}),{})):o),n}),ye({},e)):e}function Tn(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"}(dn||(dn={}));var Bn=/** @class */function(){function e(t,n,r,o){var i,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
681
+ function Tn(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?be(be(be({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=be(be({},o[t]),i[t]||{}),e}),{})):o),n}),be({},e)):e}function Bn(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"}(gn||(gn={}));var Cn=/** @class */function(){function e(t,n,r,o){var i,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
682
682
  // Hot path for straight simple msg translations
683
- if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===dn.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 En(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},
683
+ if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===gn.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 wn(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},
684
684
  // Defined first because it's used to build the format pattern.
685
685
  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`");
686
686
  // Parse string messages into an AST.
687
687
  this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.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.");
688
688
  // Creates a new object with the specified `formats` merged with the default
689
689
  // formats.
690
- this.formats=wn(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:rn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Ee([void 0],t,!1)))}),{cache:Tn(i.number),strategy:fn.variadic}),getDateTimeFormat:rn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Ee([void 0],t,!1)))}),{cache:Tn(i.dateTime),strategy:fn.variadic}),getPluralRules:rn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Ee([void 0],t,!1)))}),{cache:Tn(i.pluralRules),strategy:fn.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=nn,
690
+ this.formats=Tn(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:on((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Ee([void 0],t,!1)))}),{cache:Bn(i.number),strategy:dn.variadic}),getDateTimeFormat:on((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Ee([void 0],t,!1)))}),{cache:Bn(i.dateTime),strategy:dn.variadic}),getPluralRules:on((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Ee([void 0],t,!1)))}),{cache:Bn(i.pluralRules),strategy:dn.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=rn,
691
691
  // Default format options used as the prototype of the `formats` provided to the
692
692
  // constructor. These are used when constructing the internal Intl.NumberFormat
693
693
  // and Intl.DateTimeFormat instances.
694
- e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Cn={},Sn=(e,t,n)=>n?(t in Cn||(Cn[t]={}),e in Cn[t]||(Cn[t][e]=n),n):n,An=(e,t)=>{if(null==t)return;if(t in Cn&&e in Cn[t])return Cn[t][e];const n=Jn(t);for(let r=0;r<n.length;r++){const o=$n(n[r],e);if(o)return Sn(e,t,o)}};let _n;const Ln=Ve({});function Hn(e){return e in _n}function $n(e,t){if(!Hn(e))return null;const n=function(e){return _n[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 xn(e,...t){delete Cn[e],Ln.update((n=>(n[e]=rt.all([n[e]||{},...t]),n)))}We([Ln],(([e])=>Object.keys(e))),Ln.subscribe((e=>_n=e));const Rn={};function In(e){return Rn[e]}function Pn(e){return null!=e&&Jn(e).some((e=>{var t;return null==(t=In(e))?void 0:t.size}))}function On(e,t){const n=Promise.all(t.map((t=>(function(e,t){Rn[e].delete(t),0===Rn[e].size&&delete Rn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>xn(e,...t)))}const Mn={};function Nn(e){if(!Pn(e))return e in Mn?Mn[e]:Promise.resolve();const t=function(e){return Jn(e).map((e=>{const t=In(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Mn[e]=Promise.all(t.map((([e,t])=>On(e,t)))).then((()=>{if(Pn(e))return Nn(e);delete Mn[e]})),Mn[e]}const Dn={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 Dn}const Un=Ve(!1);var Gn=Object.defineProperty,Fn=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Zn=(e,t,n)=>t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Xn;const zn=Ve(null);function Yn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Jn(e,t=kn().fallbackLocale){const n=Yn(e);return t?[...new Set([...n,...Yn(t)])]:n}function qn(){return null!=Xn?Xn:void 0}zn.subscribe((e=>{Xn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qn=(er=((e,t)=>{for(var n in t||(t={}))Wn.call(t,n)&&Zn(e,n,t[n]);if(Vn)for(var n of Vn(t))Kn.call(t,n)&&Zn(e,n,t[n]);return e})({},zn),Fn(er,jn({set:e=>{if(e&&function(e){if(null==e)return;const t=Jn(e);for(let e=0;e<t.length;e++){const n=t[e];if(Hn(n))return n}}(e)&&Pn(e)){const{loadingDelay:t}=kn();let n;return"undefined"!=typeof window&&null!=qn()&&t?n=window.setTimeout((()=>Un.set(!0)),t):Un.set(!0),Nn(e).then((()=>{zn.set(e)})).finally((()=>{clearTimeout(n),Un.set(!1)}))}return zn.set(e)}})));var er;const tr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var nr=Object.defineProperty,rr=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,sr=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ar=(e,t)=>{for(var n in t||(t={}))or.call(t,n)&&sr(e,n,t[n]);if(rr)for(var n of rr(t))ir.call(t,n)&&sr(e,n,t[n]);return e},lr=(e,t)=>{var n={};for(var r in e)or.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&rr)for(var r of rr(e))t.indexOf(r)<0&&ir.call(e,r)&&(n[r]=e[r]);return n};const cr=(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.`)},ur=tr((e=>{var t=e,{locale:n,format:r}=t,o=lr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=cr("number",r)),new Intl.NumberFormat(n,o)})),hr=tr((e=>{var t=e,{locale:n,format:r}=t,o=lr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=cr("date",r):0===Object.keys(o).length&&(o=cr("date","short")),new Intl.DateTimeFormat(n,o)})),pr=tr((e=>{var t=e,{locale:n,format:r}=t,o=lr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=cr("time",r):0===Object.keys(o).length&&(o=cr("time","short")),new Intl.DateTimeFormat(n,o)})),fr=tr((
694
+ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Sn={},An=(e,t,n)=>n?(t in Sn||(Sn[t]={}),e in Sn[t]||(Sn[t][e]=n),n):n,$n=(e,t)=>{if(null==t)return;if(t in Sn&&e in Sn[t])return Sn[t][e];const n=qn(t);for(let r=0;r<n.length;r++){const o=Hn(n[r],e);if(o)return An(e,t,o)}};let Ln;const _n=We({});function xn(e){return e in Ln}function Hn(e,t){if(!xn(e))return null;const n=function(e){return Ln[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 Rn(e,...t){delete Sn[e],_n.update((n=>(n[e]=ot.all([n[e]||{},...t]),n)))}Ke([_n],(([e])=>Object.keys(e))),_n.subscribe((e=>Ln=e));const In={};function Pn(e){return In[e]}function On(e){return null!=e&&qn(e).some((e=>{var t;return null==(t=Pn(e))?void 0:t.size}))}function Mn(e,t){const n=Promise.all(t.map((t=>(function(e,t){In[e].delete(t),0===In[e].size&&delete In[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Rn(e,...t)))}const Nn={};function Dn(e){if(!On(e))return e in Nn?Nn[e]:Promise.resolve();const t=function(e){return qn(e).map((e=>{const t=Pn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Nn[e]=Promise.all(t.map((([e,t])=>Mn(e,t)))).then((()=>{if(On(e))return Dn(e);delete Nn[e]})),Nn[e]}const kn={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 Un(){return kn}const Gn=We(!1);var Fn=Object.defineProperty,jn=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let zn;const Yn=We(null);function Jn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function qn(e,t=Un().fallbackLocale){const n=Jn(e);return t?[...new Set([...n,...Jn(t)])]:n}function Qn(){return null!=zn?zn:void 0}Yn.subscribe((e=>{zn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const er=(tr=((e,t)=>{for(var n in t||(t={}))Kn.call(t,n)&&Xn(e,n,t[n]);if(Wn)for(var n of Wn(t))Zn.call(t,n)&&Xn(e,n,t[n]);return e})({},Yn),jn(tr,Vn({set:e=>{if(e&&function(e){if(null==e)return;const t=qn(e);for(let e=0;e<t.length;e++){const n=t[e];if(xn(n))return n}}(e)&&On(e)){const{loadingDelay:t}=Un();let n;return"undefined"!=typeof window&&null!=Qn()&&t?n=window.setTimeout((()=>Gn.set(!0)),t):Gn.set(!0),Dn(e).then((()=>{Yn.set(e)})).finally((()=>{clearTimeout(n),Gn.set(!1)}))}return Yn.set(e)}})));var tr;const nr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var rr=Object.defineProperty,or=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,ar=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lr=(e,t)=>{for(var n in t||(t={}))ir.call(t,n)&&ar(e,n,t[n]);if(or)for(var n of or(t))sr.call(t,n)&&ar(e,n,t[n]);return e},cr=(e,t)=>{var n={};for(var r in e)ir.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&or)for(var r of or(e))t.indexOf(r)<0&&sr.call(e,r)&&(n[r]=e[r]);return n};const ur=(e,t)=>{const{formats:n}=Un();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hr=nr((e=>{var t=e,{locale:n,format:r}=t,o=cr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=ur("number",r)),new Intl.NumberFormat(n,o)})),pr=nr((e=>{var t=e,{locale:n,format:r}=t,o=cr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=ur("date",r):0===Object.keys(o).length&&(o=ur("date","short")),new Intl.DateTimeFormat(n,o)})),fr=nr((e=>{var t=e,{locale:n,format:r}=t,o=cr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=ur("time",r):0===Object.keys(o).length&&(o=ur("time","short")),new Intl.DateTimeFormat(n,o)})),dr=nr((
695
695
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
696
- (e,t=qn())=>new Bn(e,t,kn().formats,{ignoreTag:kn().ignoreTag}))),dr=(e,t={})=>{var n,r,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=qn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=An(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==(r=(n=kn()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?o:c)?i:e;if(!a)return u;let h=u;try{h=fr(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},gr=(e,t)=>((e={})=>{var t=e,{locale:n=qn()}=t,r=lr(t,["locale"]);return pr(ar({locale:n},r))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:n=qn()}=t,r=lr(t,["locale"]);return hr(ar({locale:n},r))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:n=qn()}=t,r=lr(t,["locale"]);return ur(ar({locale:n},r))})(t).format(e),yr=(e,t=qn())=>An(e,t),vr=We([Qn,Ln],(()=>dr));We([Qn],(()=>gr)),We([Qn],(()=>mr)),We([Qn],(()=>br)),We([Qn,Ln],(()=>yr));const Er=e=>{(({withLocale:e,translations:t})=>{Qn.subscribe((n=>{null==n&&(Ln.set(t),Qn.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
696
+ (e,t=Qn())=>new Cn(e,t,Un().formats,{ignoreTag:Un().ignoreTag}))),gr=(e,t={})=>{var n,r,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Qn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=$n(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==(r=(n=Un()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?o:c)?i:e;if(!a)return u;let h=u;try{h=dr(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},mr=(e,t)=>((e={})=>{var t=e,{locale:n=Qn()}=t,r=cr(t,["locale"]);return fr(lr({locale:n},r))})(t).format(e),yr=(e,t)=>((e={})=>{var t=e,{locale:n=Qn()}=t,r=cr(t,["locale"]);return pr(lr({locale:n},r))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:n=Qn()}=t,r=cr(t,["locale"]);return hr(lr({locale:n},r))})(t).format(e),vr=(e,t=Qn())=>$n(e,t),Er=Ke([er,_n],(()=>gr));Ke([er],(()=>mr)),Ke([er],(()=>yr)),Ke([er],(()=>br)),Ke([er,_n],(()=>vr));const wr=(e,t)=>{Rn(e,t)},Tr=e=>{(({withLocale:e,translations:t})=>{er.subscribe((n=>{null==n&&(_n.set(t),er.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
697
697
  /*dictionary.set(translations);
698
- locale.set(_locale);*/})({withLocale:"en",translations:{}}),Object.keys(e).forEach((t=>{var n,r;n=t,r=e[t],xn(n,r)}))},wr=", ",Tr=["Info","InfoIcon","InfoText"],Br=e=>Tr.map((t=>[t,wr,e.map((e=>e.key+t)).join(wr)].join(""))).join(wr)
699
- /* ../casino-wagering-bonus/src/CasinoWageringBonus.svelte generated by Svelte v3.59.2 */;function Cr(e,t,n){const r=e.slice();return r[31]=t[n],r[33]=n,r}function Sr(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}function Ar(e,t,n){const r=e.slice();return r[37]=t[n],r}function _r(e,t,n){const r=e.slice();return r[40]=t[n],r}function Lr(e,t,n){const r=e.slice();return r[43]=t[n],r}function Hr(e,t,n){const r=e.slice();return r[43]=t[n],r}function $r(e,t,n){const r=e.slice();return r[48]=t[n],r}
698
+ locale.set(_locale);*/})({withLocale:"en",translations:{}}),Object.keys(e).forEach((t=>{wr(t,e[t])}))},Br=", ",Cr=["Info","InfoIcon","InfoText"],Sr=e=>Cr.map((t=>[t,Br,e.map((e=>e.key+t)).join(Br)].join(""))).join(Br)
699
+ /* ../casino-wagering-bonus/src/CasinoWageringBonus.svelte generated by Svelte v3.59.2 */;function Ar(e,t,n){const r=e.slice();return r[31]=t[n],r[33]=n,r}function $r(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}function Lr(e,t,n){const r=e.slice();return r[37]=t[n],r}function _r(e,t,n){const r=e.slice();return r[40]=t[n],r}function xr(e,t,n){const r=e.slice();return r[43]=t[n],r}function Hr(e,t,n){const r=e.slice();return r[43]=t[n],r}function Rr(e,t,n){const r=e.slice();return r[48]=t[n],r}
700
700
  // (147:0) {#if bonus}
701
- function xr(e){let n,r,o,i,s,a,l,c,u,m,v,E,w,T,C,S,A,L,H,$,x,R,I,P,O=/*bonus*/(e[0].name||/*bonus*/e[0].presentation?.name.content)+"",M=/*locale*/e[4]("rewards")+"",N=/*locale*/e[4]("includeBets")+"",D=[/*classWithPartMatchMobile*/e[12]("BonusInfoTitle")],k={};for(let e=0;e<D.length;e+=1)k=t(k,D[e]);let U=/*bonus*/e[0].status===fe.active&&Rr(e),G=[/*classWithPartMatchMobile*/e[12]("BonusInfoWrapper")],F={};for(let e=0;e<G.length;e+=1)F=t(F,G[e]);let j=!/*bonus*/e[0].status&&Ir(e),V=/*bonus*/e[0].status&&Pr(e),W=[/*classWithPartMatchMobile*/e[12]("BonusInfo")],K={};for(let e=0;e<W.length;e+=1)K=t(K,W[e]);let X=[/*classWithPartMatchMobile*/e[12]("RewardsTopBarTitle")],z={};for(let e=0;e<X.length;e+=1)z=t(z,X[e]);let Y=/*bonus*/e[0].status&&Dr(e),J=[/*classWithPartMatchMobile*/e[12]("RewardsTopBar")],q={};for(let e=0;e<J.length;e+=1)q=t(q,J[e]);let Q=/*bonus*/e[0].status&&kr(e),ee=!/*bonus*/e[0].status&&Wr(e),te=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevels")],ne={};for(let e=0;e<te.length;e+=1)ne=t(ne,te[e]);let re=[/*classWithPartMatchMobile*/e[12]("SupportsTitle")],oe={};for(let e=0;e<re.length;e+=1)oe=t(oe,re[e]);let ie=/*products*/e[11],se=[];for(let t=0;t<ie.length;t+=1)se[t]=eo(Cr(e,ie,t));let ae=/*products*/1===e[11].length&&to(),le=[/*classWithPartMatchMobile*/e[12]("SupportsList")],ce={};for(let e=0;e<le.length;e+=1)ce=t(ce,le[e]);let ue=[/*classWithPartMatchMobile*/e[12]("SupportsWrapper")],he={};for(let e=0;e<ue.length;e+=1)he=t(he,ue[e]);let pe=[/*classWithPartMatchMobile*/e[12]("BonusRewards")],de={};for(let e=0;e<pe.length;e+=1)de=t(de,pe[e]);let ge=[/*classWithPartMatchMobile*/e[12]("Root")],me={};for(let e=0;e<ge.length;e+=1)me=t(me,ge[e]);return{c(){n=g("section"),r=g("div"),o=g("section"),i=g("section"),s=b(O),a=y(),U&&U.c(),l=y(),j&&j.c(),c=y(),V&&V.c(),u=y(),m=g("div"),v=g("section"),E=g("div"),w=b(M),T=y(),Y&&Y.c(),C=y(),S=g("div"),Q&&Q.c(),A=y(),ee&&ee.c(),L=y(),H=g("div"),$=g("div"),x=b(N),R=y(),I=g("div");for(let e=0;e<se.length;e+=1)se[e].c();P=y(),ae&&ae.c(),B(i,k),B(o,F),B(r,K),B(E,z),B(v,q),B(S,ne),B($,oe),B(I,ce),B(H,he),B(m,de),B(n,me)},m(e,t){p(e,n,t),h(n,r),h(r,o),h(o,i),h(i,s),h(o,a),U&&U.m(o,null),h(r,l),j&&j.m(r,null),h(r,c),V&&V.m(r,null),h(n,u),h(n,m),h(m,v),h(v,E),h(E,w),h(v,T),Y&&Y.m(v,null),h(m,C),h(m,S),Q&&Q.m(S,null),h(S,A),ee&&ee.m(S,null),h(m,L),h(m,H),h(H,$),h($,x),h(H,R),h(H,I);for(let e=0;e<se.length;e+=1)se[e]&&se[e].m(I,null);h(I,P),ae&&ae.m(I,null)},p(e,t){if(/*bonus*/1&t[0]&&O!==(O=/*bonus*/(e[0].name||/*bonus*/e[0].presentation?.name.content)+"")&&_(s,O,k.contenteditable),B(i,k=Z(D,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfoTitle")])),/*bonus*/e[0].status===fe.active?U?U.p(e,t):(U=Rr(e),U.c(),U.m(o,null)):U&&(U.d(1),U=null),B(o,F=Z(G,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfoWrapper")])),/*bonus*/e[0].status?j&&(j.d(1),j=null):j?j.p(e,t):(j=Ir(e),j.c(),j.m(r,c)),/*bonus*/e[0].status?V?V.p(e,t):(V=Pr(e),V.c(),V.m(r,null)):V&&(V.d(1),V=null),B(r,K=Z(W,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfo")])),/*locale*/16&t[0]&&M!==(M=/*locale*/e[4]("rewards")+"")&&_(w,M,z.contenteditable),B(E,z=Z(X,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("RewardsTopBarTitle")])),/*bonus*/e[0].status?Y?Y.p(e,t):(Y=Dr(e),Y.c(),Y.m(v,null)):Y&&(Y.d(1),Y=null),B(v,q=Z(J,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("RewardsTopBar")])),/*bonus*/e[0].status?Q?Q.p(e,t):(Q=kr(e),Q.c(),Q.m(S,A)):Q&&(Q.d(1),Q=null),/*bonus*/e[0].status?ee&&(ee.d(1),ee=null):ee?ee.p(e,t):(ee=Wr(e),ee.c(),ee.m(S,null)),B(S,ne=Z(te,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevels")])),/*locale*/16&t[0]&&N!==(N=/*locale*/e[4]("includeBets")+"")&&_(x,N,oe.contenteditable),B($,oe=Z(re,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("SupportsTitle")])),/*products*/2048&t[0]){let n;for(ie=/*products*/e[11],n=0;n<ie.length;n+=1){const r=Cr(e,ie,n);se[n]?se[n].p(r,t):(se[n]=eo(r),se[n].c(),se[n].m(I,P))}for(;n<se.length;n+=1)se[n].d(1);se.length=ie.length}/*products*/1===e[11].length?ae||(ae=to(),ae.c(),ae.m(I,null)):ae&&(ae.d(1),ae=null),B(I,ce=Z(le,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("SupportsList")])),B(H,he=Z(ue,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("SupportsWrapper")])),B(m,de=Z(pe,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewards")])),B(n,me=Z(ge,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("Root")]))},d(e){e&&f(n),U&&U.d(),j&&j.d(),V&&V.d(),Y&&Y.d(),Q&&Q.d(),ee&&ee.d(),d(se,e),ae&&ae.d()}}}
702
- // (155:8) {#if bonus.status === BonusStatus.active}
703
- function Rr(e){let n,r=[{infos:JSON.stringify(/*timeInfos*/e[8]),exportparts:Br(/*timeInfos*/e[8])}],o={};for(let e=0;e<r.length;e+=1)o=t(o,r[e]);return{c(){n=g("private-casino-wagering-bonus-info"),B(n,o)},m(e,t){p(e,n,t)},p(e,t){B(n,o=Z(r,[/*timeInfos*/256&t[0]&&{infos:JSON.stringify(/*timeInfos*/e[8]),exportparts:Br(/*timeInfos*/e[8])}]))},d(e){e&&f(n)}}}
701
+ function Ir(e){let n,r,o,i,s,a,l,c,u,m,v,E,w,T,C,S,A,L,_,x,H,R,I,P,O=/*bonus*/(e[0].name||/*bonus*/e[0].presentation?.name.content)+"",M=/*locale*/e[4]("rewards")+"",N=/*locale*/e[4]("includeBets")+"",D=[/*classWithPartMatchMobile*/e[12]("BonusInfoTitle")],k={};for(let e=0;e<D.length;e+=1)k=t(k,D[e]);let U=/*bonus*/e[0].status===fe.active&&/*timeInfos*/e[8]&&Pr(e),G=[/*classWithPartMatchMobile*/e[12]("BonusInfoWrapper")],F={};for(let e=0;e<G.length;e+=1)F=t(F,G[e]);let j=!/*bonus*/e[0].status&&Or(e),V=/*bonus*/e[0].status&&Mr(e),W=[/*classWithPartMatchMobile*/e[12]("BonusInfo")],K={};for(let e=0;e<W.length;e+=1)K=t(K,W[e]);let X=[/*classWithPartMatchMobile*/e[12]("RewardsTopBarTitle")],z={};for(let e=0;e<X.length;e+=1)z=t(z,X[e]);let Y=/*bonus*/e[0].status&&Ur(e),J=[/*classWithPartMatchMobile*/e[12]("RewardsTopBar")],q={};for(let e=0;e<J.length;e+=1)q=t(q,J[e]);let Q=/*bonus*/e[0].status&&Gr(e),ee=!/*bonus*/e[0].status&&Zr(e),te=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevels")],ne={};for(let e=0;e<te.length;e+=1)ne=t(ne,te[e]);let re=[/*classWithPartMatchMobile*/e[12]("SupportsTitle")],oe={};for(let e=0;e<re.length;e+=1)oe=t(oe,re[e]);let ie=/*products*/e[11],se=[];for(let t=0;t<ie.length;t+=1)se[t]=no(Ar(e,ie,t));let ae=/*products*/1===e[11].length&&ro(),le=[/*classWithPartMatchMobile*/e[12]("SupportsList")],ce={};for(let e=0;e<le.length;e+=1)ce=t(ce,le[e]);let ue=[/*classWithPartMatchMobile*/e[12]("SupportsWrapper")],he={};for(let e=0;e<ue.length;e+=1)he=t(he,ue[e]);let pe=[/*classWithPartMatchMobile*/e[12]("BonusRewards")],de={};for(let e=0;e<pe.length;e+=1)de=t(de,pe[e]);let ge=[/*classWithPartMatchMobile*/e[12]("Root")],me={};for(let e=0;e<ge.length;e+=1)me=t(me,ge[e]);return{c(){n=g("section"),r=g("div"),o=g("section"),i=g("section"),s=y(O),a=b(),U&&U.c(),l=b(),j&&j.c(),c=b(),V&&V.c(),u=b(),m=g("div"),v=g("section"),E=g("div"),w=y(M),T=b(),Y&&Y.c(),C=b(),S=g("div"),Q&&Q.c(),A=b(),ee&&ee.c(),L=b(),_=g("div"),x=g("div"),H=y(N),R=b(),I=g("div");for(let e=0;e<se.length;e+=1)se[e].c();P=b(),ae&&ae.c(),B(i,k),B(o,F),B(r,K),B(E,z),B(v,q),B(S,ne),B(x,oe),B(I,ce),B(_,he),B(m,de),B(n,me)},m(e,t){p(e,n,t),h(n,r),h(r,o),h(o,i),h(i,s),h(o,a),U&&U.m(o,null),h(r,l),j&&j.m(r,null),h(r,c),V&&V.m(r,null),h(n,u),h(n,m),h(m,v),h(v,E),h(E,w),h(v,T),Y&&Y.m(v,null),h(m,C),h(m,S),Q&&Q.m(S,null),h(S,A),ee&&ee.m(S,null),h(m,L),h(m,_),h(_,x),h(x,H),h(_,R),h(_,I);for(let e=0;e<se.length;e+=1)se[e]&&se[e].m(I,null);h(I,P),ae&&ae.m(I,null)},p(e,t){if(/*bonus*/1&t[0]&&O!==(O=/*bonus*/(e[0].name||/*bonus*/e[0].presentation?.name.content)+"")&&$(s,O,k.contenteditable),B(i,k=Z(D,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfoTitle")])),/*bonus*/e[0].status===fe.active&&/*timeInfos*/e[8]?U?U.p(e,t):(U=Pr(e),U.c(),U.m(o,null)):U&&(U.d(1),U=null),B(o,F=Z(G,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfoWrapper")])),/*bonus*/e[0].status?j&&(j.d(1),j=null):j?j.p(e,t):(j=Or(e),j.c(),j.m(r,c)),/*bonus*/e[0].status?V?V.p(e,t):(V=Mr(e),V.c(),V.m(r,null)):V&&(V.d(1),V=null),B(r,K=Z(W,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfo")])),/*locale*/16&t[0]&&M!==(M=/*locale*/e[4]("rewards")+"")&&$(w,M,z.contenteditable),B(E,z=Z(X,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("RewardsTopBarTitle")])),/*bonus*/e[0].status?Y?Y.p(e,t):(Y=Ur(e),Y.c(),Y.m(v,null)):Y&&(Y.d(1),Y=null),B(v,q=Z(J,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("RewardsTopBar")])),/*bonus*/e[0].status?Q?Q.p(e,t):(Q=Gr(e),Q.c(),Q.m(S,A)):Q&&(Q.d(1),Q=null),/*bonus*/e[0].status?ee&&(ee.d(1),ee=null):ee?ee.p(e,t):(ee=Zr(e),ee.c(),ee.m(S,null)),B(S,ne=Z(te,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevels")])),/*locale*/16&t[0]&&N!==(N=/*locale*/e[4]("includeBets")+"")&&$(H,N,oe.contenteditable),B(x,oe=Z(re,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("SupportsTitle")])),/*products*/2048&t[0]){let n;for(ie=/*products*/e[11],n=0;n<ie.length;n+=1){const r=Ar(e,ie,n);se[n]?se[n].p(r,t):(se[n]=no(r),se[n].c(),se[n].m(I,P))}for(;n<se.length;n+=1)se[n].d(1);se.length=ie.length}/*products*/1===e[11].length?ae||(ae=ro(),ae.c(),ae.m(I,null)):ae&&(ae.d(1),ae=null),B(I,ce=Z(le,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("SupportsList")])),B(_,he=Z(ue,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("SupportsWrapper")])),B(m,de=Z(pe,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewards")])),B(n,me=Z(ge,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("Root")]))},d(e){e&&f(n),U&&U.d(),j&&j.d(),V&&V.d(),Y&&Y.d(),Q&&Q.d(),ee&&ee.d(),d(se,e),ae&&ae.d()}}}
702
+ // (155:8) {#if bonus.status === BonusStatus.active && timeInfos}
703
+ function Pr(e){let n,r=[{infos:JSON.stringify(/*timeInfos*/e[8]),exportparts:Sr(/*timeInfos*/e[8])}],o={};for(let e=0;e<r.length;e+=1)o=t(o,r[e]);return{c(){n=g("private-casino-wagering-bonus-info"),B(n,o)},m(e,t){p(e,n,t)},p(e,t){B(n,o=Z(r,[/*timeInfos*/256&t[0]&&{infos:JSON.stringify(/*timeInfos*/e[8]),exportparts:Sr(/*timeInfos*/e[8])}]))},d(e){e&&f(n)}}}
704
704
  // (164:6) {#if !bonus.status}
705
- function Ir(e){let n,r,o,i,s,a,l,c,u,d,m,v,T,C,S,L,H,$,x,R=/*bonus*/(e[0].description||"")+"",I=/*locale*/e[4]("startChallenge")+"",P=/*locale*/e[4]("terms")+"",O=[/*classWithPartMatchMobile*/e[12]("BonusInfoDescription")],M={};for(let e=0;e<O.length;e+=1)M=t(M,O[e]);let N=[{infos:JSON.stringify(/*statusClaimableInfos*/e[10]),exportparts:Br(/*statusClaimableInfos*/e[10])}],D={};for(let e=0;e<N.length;e+=1)D=t(D,N[e]);let k=[
706
- /*classWithPartMatchMobile*/e[12]("StatusClaimableCommandButton"),{type:"button"},{disabled:v=!/*isButtonClickable*/e[6]}],U={};for(let e=0;e<k.length;e+=1)U=t(U,k[e]);let G=[/*classWithPartMatchMobile*/e[12]("StatusClaimableCommandTerms","terms")],F={};for(let e=0;e<G.length;e+=1)F=t(F,G[e]);let j=[/*classWithPartMatchMobile*/e[12]("StatusClaimableCommand")],V={};for(let e=0;e<j.length;e+=1)V=t(V,j[e]);let W=[/*classWithPartMatchMobile*/e[12]("StatusClaimable")],K={};for(let e=0;e<W.length;e+=1)K=t(K,W[e]);return{c(){n=g("div"),r=b(R),o=y(),i=g("hr"),s=y(),a=g("section"),l=g("private-casino-wagering-bonus-info"),c=y(),u=g("div"),d=g("button"),m=b(I),T=y(),C=g("div"),S=g("a"),L=b(P),B(n,M),B(l,D),B(d,U),w(S,"href",H=/*bonus*/e[0].termsUrl),w(S,"target","__blank"),B(C,F),B(u,V),B(a,K)},m(t,f){p(t,n,f),h(n,r),p(t,o,f),p(t,i,f),p(t,s,f),p(t,a,f),h(a,l),h(a,c),h(a,u),h(u,d),h(d,m),d.autofocus&&d.focus(),h(u,T),h(u,C),h(C,S),h(S,L),$||(x=E(d,"click",/*eventStartChallenge*/e[13]),$=!0)},p(e,t){/*bonus*/1&t[0]&&R!==(R=/*bonus*/(e[0].description||"")+"")&&_(r,R,M.contenteditable),B(n,M=Z(O,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfoDescription")])),B(l,D=Z(N,[/*statusClaimableInfos*/1024&t[0]&&{infos:JSON.stringify(/*statusClaimableInfos*/e[10]),exportparts:Br(/*statusClaimableInfos*/e[10])}])),/*locale*/16&t[0]&&I!==(I=/*locale*/e[4]("startChallenge")+"")&&_(m,I,U.contenteditable),B(d,U=Z(k,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimableCommandButton"),{type:"button"},/*isButtonClickable*/64&t[0]&&v!==(v=!/*isButtonClickable*/e[6])&&{disabled:v}])),/*locale*/16&t[0]&&P!==(P=/*locale*/e[4]("terms")+"")&&A(L,P),/*bonus*/1&t[0]&&H!==(H=/*bonus*/e[0].termsUrl)&&w(S,"href",H),B(C,F=Z(G,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimableCommandTerms","terms")])),B(u,V=Z(j,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimableCommand")])),B(a,K=Z(W,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimable")]))},d(e){e&&f(n),e&&f(o),e&&f(i),e&&f(s),e&&f(a),$=!1,x()}}}
705
+ function Or(e){let n,r,o,i,s,a,l,c,u,d,m,v,T,C,S,L,_,x,H,R=/*bonus*/(e[0].description||"")+"",I=/*locale*/e[4]("startChallenge")+"",P=/*locale*/e[4]("terms")+"",O=[/*classWithPartMatchMobile*/e[12]("BonusInfoDescription")],M={};for(let e=0;e<O.length;e+=1)M=t(M,O[e]);let N=[{infos:JSON.stringify(/*statusClaimableInfos*/e[10]),exportparts:Sr(/*statusClaimableInfos*/e[10])}],D={};for(let e=0;e<N.length;e+=1)D=t(D,N[e]);let k=[
706
+ /*classWithPartMatchMobile*/e[12]("StatusClaimableCommandButton"),{type:"button"},{disabled:v=!/*isButtonClickable*/e[6]}],U={};for(let e=0;e<k.length;e+=1)U=t(U,k[e]);let G=[/*classWithPartMatchMobile*/e[12]("StatusClaimableCommandTerms","terms")],F={};for(let e=0;e<G.length;e+=1)F=t(F,G[e]);let j=[/*classWithPartMatchMobile*/e[12]("StatusClaimableCommand")],V={};for(let e=0;e<j.length;e+=1)V=t(V,j[e]);let W=[/*classWithPartMatchMobile*/e[12]("StatusClaimable")],K={};for(let e=0;e<W.length;e+=1)K=t(K,W[e]);return{c(){n=g("div"),r=y(R),o=b(),i=g("hr"),s=b(),a=g("section"),l=g("private-casino-wagering-bonus-info"),c=b(),u=g("div"),d=g("button"),m=y(I),T=b(),C=g("div"),S=g("a"),L=y(P),B(n,M),B(l,D),B(d,U),w(S,"href",_=/*bonus*/e[0].termsUrl),w(S,"target","__blank"),B(C,F),B(u,V),B(a,K)},m(t,f){p(t,n,f),h(n,r),p(t,o,f),p(t,i,f),p(t,s,f),p(t,a,f),h(a,l),h(a,c),h(a,u),h(u,d),h(d,m),d.autofocus&&d.focus(),h(u,T),h(u,C),h(C,S),h(S,L),x||(H=E(d,"click",/*eventStartChallenge*/e[13]),x=!0)},p(e,t){/*bonus*/1&t[0]&&R!==(R=/*bonus*/(e[0].description||"")+"")&&$(r,R,M.contenteditable),B(n,M=Z(O,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusInfoDescription")])),B(l,D=Z(N,[/*statusClaimableInfos*/1024&t[0]&&{infos:JSON.stringify(/*statusClaimableInfos*/e[10]),exportparts:Sr(/*statusClaimableInfos*/e[10])}])),/*locale*/16&t[0]&&I!==(I=/*locale*/e[4]("startChallenge")+"")&&$(m,I,U.contenteditable),B(d,U=Z(k,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimableCommandButton"),{type:"button"},/*isButtonClickable*/64&t[0]&&v!==(v=!/*isButtonClickable*/e[6])&&{disabled:v}])),/*locale*/16&t[0]&&P!==(P=/*locale*/e[4]("terms")+"")&&A(L,P),/*bonus*/1&t[0]&&_!==(_=/*bonus*/e[0].termsUrl)&&w(S,"href",_),B(C,F=Z(G,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimableCommandTerms","terms")])),B(u,V=Z(j,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimableCommand")])),B(a,K=Z(W,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("StatusClaimable")]))},d(e){e&&f(n),e&&f(o),e&&f(i),e&&f(s),e&&f(a),x=!1,H()}}}
707
707
  // (199:6) {#if bonus.status}
708
- function Pr(e){let n,r,o,i,s,a,l,c,u,m,v,E,w,T,C,A,L,H,$,x=/*locale*/e[4]("level")+"",R=/*levelsCurrent*/e[2].textWithLength+"",I=/*locale*/e[4]("termsTip",{tcUrl:/*bonus*/e[0]?.url})+"",P=!/*isMobileView*/e[5]&&Or(),O=[/*classWithPartMatchMobile*/e[12]("LevelStatus")],M={};for(let e=0;e<O.length;e+=1)M=t(M,O[e]);let N=[/*classWithPartMatchMobile*/e[12]("LevelStatusWrapper")],D={};for(let e=0;e<N.length;e+=1)D=t(D,N[e]);let k=[Me(/*bonus*/e[0],/*levels*/e[1])],U=[];for(let t=0;t<1;t+=1)U[t]=Nr($r(e,k,t));let G=[/*classWithPartMatchMobile*/e[12]("BonusType")],F={};for(let e=0;e<G.length;e+=1)F=t(F,G[e]);let j=[/*classWithPartMatchMobile*/e[12]("BonusTerms")],V={};for(let e=0;e<j.length;e+=1)V=t(V,j[e]);let W=[/*classWithPartMatchMobile*/e[12]("BonusTypeWrapper")],K={};for(let e=0;e<W.length;e+=1)K=t(K,W[e]);let X=[/*classWithPartMatchMobile*/e[12]("AfterClaimedWrapper")],z={};for(let e=0;e<X.length;e+=1)z=t(z,X[e]);return{c(){P&&P.c(),n=y(),r=g("section"),o=g("div"),i=g("casino-wagering-bonus-progress"),l=y(),c=g("div"),u=b(x),m=y(),v=b(R),E=y(),w=g("div"),T=g("div");for(let e=0;e<1;e+=1)U[e].c();C=y(),A=g("private-casino-wagering-bonus-info"),H=y(),$=g("div"),S(i,"percent",s=De(/*bonus*/e[0])),S(i,"status",a=/*bonus*/e[0]?.status),B(c,M),B(o,D),S(A,"infos",L=JSON.stringify(/*statusFinishedInfos*/e[9])),B(T,F),B($,V),B(w,K),B(r,z)},m(e,t){P&&P.m(e,t),p(e,n,t),p(e,r,t),h(r,o),h(o,i),h(o,l),h(o,c),h(c,u),h(c,m),h(c,v),h(r,E),h(r,w),h(w,T);for(let e=0;e<1;e+=1)U[e]&&U[e].m(T,null);h(T,C),h(T,A),h(w,H),h(w,$),$.innerHTML=I},p(e,t){if(/*isMobileView*/e[5]?P&&(P.d(1),P=null):P||(P=Or(),P.c(),P.m(n.parentNode,n)),/*bonus*/1&t[0]&&s!==(s=De(/*bonus*/e[0]))&&S(i,"percent",s),/*bonus*/1&t[0]&&a!==(a=/*bonus*/e[0]?.status)&&S(i,"status",a),/*locale*/16&t[0]&&x!==(x=/*locale*/e[4]("level")+"")&&_(u,x,M.contenteditable),/*levelsCurrent*/4&t[0]&&R!==(R=/*levelsCurrent*/e[2].textWithLength+"")&&_(v,R,M.contenteditable),B(c,M=Z(O,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("LevelStatus")])),B(o,D=Z(N,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("LevelStatusWrapper")])),/*classWithPartMatchMobile, locale, bonus, levels*/4115&t[0]){let n;for(k=[Me(/*bonus*/e[0],/*levels*/e[1])],n=0;n<1;n+=1){const r=$r(e,k,n);U[n]?U[n].p(r,t):(U[n]=Nr(r),U[n].c(),U[n].m(T,C))}for(;n<1;n+=1)U[n].d(1)}/*statusFinishedInfos*/512&t[0]&&L!==(L=JSON.stringify(/*statusFinishedInfos*/e[9]))&&S(A,"infos",L),B(T,F=Z(G,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusType")])),/*locale, bonus*/17&t[0]&&I!==(I=/*locale*/e[4]("termsTip",{tcUrl:/*bonus*/e[0]?.url})+"")&&($.innerHTML=I),B($,V=Z(j,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTerms")])),B(w,K=Z(W,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeWrapper")])),B(r,z=Z(X,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("AfterClaimedWrapper")]))},d(e){P&&P.d(e),e&&f(n),e&&f(r),d(U,e)}}}
708
+ function Mr(e){let n,r,o,i,s,a,l,c,u,m,v,E,w,T,C,A,L,_,x,H=/*locale*/e[4]("level")+"",R=/*levelsCurrent*/e[2].textWithLength+"",I=/*locale*/e[4]("termsTip",{tcUrl:/*bonus*/e[0]?.url})+"",P=!/*isMobileView*/e[5]&&Nr(),O=[/*classWithPartMatchMobile*/e[12]("LevelStatus")],M={};for(let e=0;e<O.length;e+=1)M=t(M,O[e]);let N=[/*classWithPartMatchMobile*/e[12]("LevelStatusWrapper")],D={};for(let e=0;e<N.length;e+=1)D=t(D,N[e]);let k=[Ne(/*bonus*/e[0],/*levels*/e[1])],U=[];for(let t=0;t<1;t+=1)U[t]=kr(Rr(e,k,t));let G=[/*classWithPartMatchMobile*/e[12]("BonusType")],F={};for(let e=0;e<G.length;e+=1)F=t(F,G[e]);let j=[/*classWithPartMatchMobile*/e[12]("BonusTerms")],V={};for(let e=0;e<j.length;e+=1)V=t(V,j[e]);let W=[/*classWithPartMatchMobile*/e[12]("BonusTypeWrapper")],K={};for(let e=0;e<W.length;e+=1)K=t(K,W[e]);let X=[/*classWithPartMatchMobile*/e[12]("AfterClaimedWrapper")],z={};for(let e=0;e<X.length;e+=1)z=t(z,X[e]);return{c(){P&&P.c(),n=b(),r=g("section"),o=g("div"),i=g("casino-wagering-bonus-progress"),l=b(),c=g("div"),u=y(H),m=b(),v=y(R),E=b(),w=g("div"),T=g("div");for(let e=0;e<1;e+=1)U[e].c();C=b(),A=g("private-casino-wagering-bonus-info"),_=b(),x=g("div"),S(i,"percent",s=ke(/*bonus*/e[0])),S(i,"status",a=/*bonus*/e[0]?.status),B(c,M),B(o,D),S(A,"infos",L=JSON.stringify(/*statusFinishedInfos*/e[9])),B(T,F),B(x,V),B(w,K),B(r,z)},m(e,t){P&&P.m(e,t),p(e,n,t),p(e,r,t),h(r,o),h(o,i),h(o,l),h(o,c),h(c,u),h(c,m),h(c,v),h(r,E),h(r,w),h(w,T);for(let e=0;e<1;e+=1)U[e]&&U[e].m(T,null);h(T,C),h(T,A),h(w,_),h(w,x),x.innerHTML=I},p(e,t){if(/*isMobileView*/e[5]?P&&(P.d(1),P=null):P||(P=Nr(),P.c(),P.m(n.parentNode,n)),/*bonus*/1&t[0]&&s!==(s=ke(/*bonus*/e[0]))&&S(i,"percent",s),/*bonus*/1&t[0]&&a!==(a=/*bonus*/e[0]?.status)&&S(i,"status",a),/*locale*/16&t[0]&&H!==(H=/*locale*/e[4]("level")+"")&&$(u,H,M.contenteditable),/*levelsCurrent*/4&t[0]&&R!==(R=/*levelsCurrent*/e[2].textWithLength+"")&&$(v,R,M.contenteditable),B(c,M=Z(O,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("LevelStatus")])),B(o,D=Z(N,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("LevelStatusWrapper")])),/*classWithPartMatchMobile, locale, bonus, levels*/4115&t[0]){let n;for(k=[Ne(/*bonus*/e[0],/*levels*/e[1])],n=0;n<1;n+=1){const r=Rr(e,k,n);U[n]?U[n].p(r,t):(U[n]=kr(r),U[n].c(),U[n].m(T,C))}for(;n<1;n+=1)U[n].d(1)}/*statusFinishedInfos*/512&t[0]&&L!==(L=JSON.stringify(/*statusFinishedInfos*/e[9]))&&S(A,"infos",L),B(T,F=Z(G,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusType")])),/*locale, bonus*/17&t[0]&&I!==(I=/*locale*/e[4]("termsTip",{tcUrl:/*bonus*/e[0]?.url})+"")&&(x.innerHTML=I),B(x,V=Z(j,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTerms")])),B(w,K=Z(W,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeWrapper")])),B(r,z=Z(X,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("AfterClaimedWrapper")]))},d(e){P&&P.d(e),e&&f(n),e&&f(r),d(U,e)}}}
709
709
  // (201:8) {#if !isMobileView}
710
- function Or(e){let t;return{c(){t=g("hr")},m(e,n){p(e,t,n)},d(e){e&&f(t)}}}
710
+ function Nr(e){let t;return{c(){t=g("hr")},m(e,n){p(e,t,n)},d(e){e&&f(t)}}}
711
711
  // (234:14) {#if bonus.status === BonusStatus.active}
712
- function Mr(e){let n,r,o,i,s,a=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.remaining`/*bonusInfo*/,e[48])+"",l=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.wagered`,{.../*bonusInfo*/e[48],wagered:Ne(/*bonus*/e[0])})+"",c=[/*classWithPartMatchMobile*/e[12]("BonusTypeRemaining")],u={};for(let e=0;e<c.length;e+=1)u=t(u,c[e]);let d=[/*classWithPartMatchMobile*/e[12]("BonusTypeGot")],m={};for(let e=0;e<d.length;e+=1)m=t(m,d[e]);return{c(){n=g("div"),r=b(a),o=y(),i=g("div"),s=b(l),B(n,u),B(i,m)},m(e,t){p(e,n,t),h(n,r),p(e,o,t),p(e,i,t),h(i,s)},p(e,t){/*locale, bonus, levels*/19&t[0]&&a!==(a=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.remaining`/*bonusInfo*/,e[48])+"")&&_(r,a,u.contenteditable),B(n,u=Z(c,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeRemaining")])),/*locale, bonus, levels*/19&t[0]&&l!==(l=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.wagered`,{.../*bonusInfo*/e[48],wagered:Ne(/*bonus*/e[0])})+"")&&_(s,l,m.contenteditable),B(i,m=Z(d,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeGot")]))},d(e){e&&f(n),e&&f(o),e&&f(i)}}}
712
+ function Dr(e){let n,r,o,i,s,a=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.remaining`/*bonusInfo*/,e[48])+"",l=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.wagered`,{.../*bonusInfo*/e[48],wagered:De(/*bonus*/e[0])})+"",c=[/*classWithPartMatchMobile*/e[12]("BonusTypeRemaining")],u={};for(let e=0;e<c.length;e+=1)u=t(u,c[e]);let d=[/*classWithPartMatchMobile*/e[12]("BonusTypeGot")],m={};for(let e=0;e<d.length;e+=1)m=t(m,d[e]);return{c(){n=g("div"),r=y(a),o=b(),i=g("div"),s=y(l),B(n,u),B(i,m)},m(e,t){p(e,n,t),h(n,r),p(e,o,t),p(e,i,t),h(i,s)},p(e,t){/*locale, bonus, levels*/19&t[0]&&a!==(a=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.remaining`/*bonusInfo*/,e[48])+"")&&$(r,a,u.contenteditable),B(n,u=Z(c,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeRemaining")])),/*locale, bonus, levels*/19&t[0]&&l!==(l=/*locale*/e[4](`${/*bonus*/e[0].wageringType}.wagered`,{.../*bonusInfo*/e[48],wagered:De(/*bonus*/e[0])})+"")&&$(s,l,m.contenteditable),B(i,m=Z(d,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeGot")]))},d(e){e&&f(n),e&&f(o),e&&f(i)}}}
713
713
  // (222:12) {#each [getBonusInfoData(bonus, levels)] as bonusInfo}
714
- function Nr(e){let n,r,o,i,s=He(/*bonus*/e[0].status,{active:a,other:/*func_1*/e[24]})+"";function a(){/*func*/
715
- return e[23](/*bonusInfo*/e[48])}let l=[/*classWithPartMatchMobile*/e[12]("BonusTypeTarget")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);let u=/*bonus*/e[0].status===fe.active&&Mr(e);return{c(){n=g("div"),r=b(s),o=y(),u&&u.c(),i=v(),B(n,c)},m(e,t){p(e,n,t),h(n,r),p(e,o,t),u&&u.m(e,t),p(e,i,t)},p(t,o){e=t,/*bonus, levels, locale*/19&o[0]&&s!==(s=He(/*bonus*/e[0].status,{active:a,other:/*func_1*/e[24]})+"")&&_(r,s,c.contenteditable),B(n,c=Z(l,[/*classWithPartMatchMobile*/4096&o[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeTarget")])),/*bonus*/e[0].status===fe.active?u?u.p(e,o):(u=Mr(e),u.c(),u.m(i.parentNode,i)):u&&(u.d(1),u=null)},d(e){e&&f(n),e&&f(o),u&&u.d(e),e&&f(i)}}}
714
+ function kr(e){let n,r,o,i,s=xe(/*bonus*/e[0].status,{active:a,other:/*func_1*/e[24]})+"";function a(){/*func*/
715
+ return e[23](/*bonusInfo*/e[48])}let l=[/*classWithPartMatchMobile*/e[12]("BonusTypeTarget")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);let u=/*bonus*/e[0].status===fe.active&&Dr(e);return{c(){n=g("div"),r=y(s),o=b(),u&&u.c(),i=v(),B(n,c)},m(e,t){p(e,n,t),h(n,r),p(e,o,t),u&&u.m(e,t),p(e,i,t)},p(t,o){e=t,/*bonus, levels, locale*/19&o[0]&&s!==(s=xe(/*bonus*/e[0].status,{active:a,other:/*func_1*/e[24]})+"")&&$(r,s,c.contenteditable),B(n,c=Z(l,[/*classWithPartMatchMobile*/4096&o[0]&&/*classWithPartMatchMobile*/e[12]("BonusTypeTarget")])),/*bonus*/e[0].status===fe.active?u?u.p(e,o):(u=Dr(e),u.c(),u.m(i.parentNode,i)):u&&(u.d(1),u=null)},d(e){e&&f(n),e&&f(o),u&&u.d(e),e&&f(i)}}}
716
716
  // (265:8) {#if bonus.status}
717
- function Dr(e){let n,r,o,i,s,a=/*locale*/e[4]("allRewards")+"",l=[/*classWithPartMatchMobile*/e[12]("RewardsTopBarLinkToDetail")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);return{c(){n=g("div"),r=g("a"),o=b(a),w(r,"href","javascript:void(0)"),B(n,c)},m(t,a){p(t,n,a),h(n,r),h(r,o),i||(s=E(r,"click",/*click_handler*/e[25]),i=!0)},p(e,t){/*locale*/16&t[0]&&a!==(a=/*locale*/e[4]("allRewards")+"")&&A(o,a),B(n,c=Z(l,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("RewardsTopBarLinkToDetail")]))},d(e){e&&f(n),i=!1,s()}}}
717
+ function Ur(e){let n,r,o,i,s,a=/*locale*/e[4]("allRewards")+"",l=[/*classWithPartMatchMobile*/e[12]("RewardsTopBarLinkToDetail")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);return{c(){n=g("div"),r=g("a"),o=y(a),w(r,"href","javascript:void(0)"),B(n,c)},m(t,a){p(t,n,a),h(n,r),h(r,o),i||(s=E(r,"click",/*click_handler*/e[25]),i=!0)},p(e,t){/*locale*/16&t[0]&&a!==(a=/*locale*/e[4]("allRewards")+"")&&A(o,a),B(n,c=Z(l,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("RewardsTopBarLinkToDetail")]))},d(e){e&&f(n),i=!1,s()}}}
718
718
  // (283:8) {#if bonus.status}
719
- function kr(e){let t,n=Oe(/*bonus*/e[0],/*levels*/e[1],/*locale*/e[4]),r=[];for(let t=0;t<n.length;t+=1)r[t]=Vr(_r(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=v()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);p(e,t,n)},p(e,o){if(/*classWithPartMatchMobile, bonus, levels, locale*/4115&o[0]){let i;for(n=Oe(/*bonus*/e[0],/*levels*/e[1],/*locale*/e[4]),i=0;i<n.length;i+=1){const s=_r(e,n,i);r[i]?r[i].p(s,o):(r[i]=Vr(s),r[i].c(),r[i].m(t.parentNode,t))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(e){d(r,e),e&&f(t)}}}
719
+ function Gr(e){let t,n=Me(/*bonus*/e[0],/*levels*/e[1],/*locale*/e[4]),r=[];for(let t=0;t<n.length;t+=1)r[t]=Kr(_r(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=v()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);p(e,t,n)},p(e,o){if(/*classWithPartMatchMobile, bonus, levels, locale*/4115&o[0]){let i;for(n=Me(/*bonus*/e[0],/*levels*/e[1],/*locale*/e[4]),i=0;i<n.length;i+=1){const s=_r(e,n,i);r[i]?r[i].p(s,o):(r[i]=Kr(s),r[i].c(),r[i].m(t.parentNode,t))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(e){d(r,e),e&&f(t)}}}
720
720
  // (296:12) {:else}
721
- function Ur(e){let n,r,o,i,s,a=/*locale*/e[4](/*reward*/e[40].key)+"",l=/*locale*/e[4]("level")+"",c=/*reward*/e[40].descriptions,u=[];for(let t=0;t<c.length;t+=1)u[t]=Fr(Lr(e,c,t));let m=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")],v={};for(let e=0;e<m.length;e+=1)v=t(v,m[e]);return{c(){n=g("div"),r=b(a),o=y(),i=b(l),s=b(":\n ");for(let e=0;e<u.length;e+=1)u[e].c();B(n,v)},m(e,t){p(e,n,t),h(n,r),h(n,o),h(n,i),h(n,s);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(n,null)},p(e,t){if(/*locale, bonus, levels*/19&t[0]&&a!==(a=/*locale*/e[4](/*reward*/e[40].key)+"")&&_(r,a,v.contenteditable),/*locale*/16&t[0]&&l!==(l=/*locale*/e[4]("level")+"")&&_(i,l,v.contenteditable),/*bonus, levels, locale*/19&t[0]){let r;for(c=/*reward*/e[40].descriptions,r=0;r<c.length;r+=1){const o=Lr(e,c,r);u[r]?u[r].p(o,t):(u[r]=Fr(o),u[r].c(),u[r].m(n,null))}for(;r<u.length;r+=1)u[r].d(1);u.length=c.length}B(n,v=Z(m,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")]))},d(e){e&&f(n),d(u,e)}}}
721
+ function Fr(e){let n,r,o,i,s,a=/*locale*/e[4](/*reward*/e[40].key)+"",l=/*locale*/e[4]("level")+"",c=/*reward*/e[40].descriptions,u=[];for(let t=0;t<c.length;t+=1)u[t]=Vr(xr(e,c,t));let m=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")],v={};for(let e=0;e<m.length;e+=1)v=t(v,m[e]);return{c(){n=g("div"),r=y(a),o=b(),i=y(l),s=y(":\n ");for(let e=0;e<u.length;e+=1)u[e].c();B(n,v)},m(e,t){p(e,n,t),h(n,r),h(n,o),h(n,i),h(n,s);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(n,null)},p(e,t){if(/*locale, bonus, levels*/19&t[0]&&a!==(a=/*locale*/e[4](/*reward*/e[40].key)+"")&&$(r,a,v.contenteditable),/*locale*/16&t[0]&&l!==(l=/*locale*/e[4]("level")+"")&&$(i,l,v.contenteditable),/*bonus, levels, locale*/19&t[0]){let r;for(c=/*reward*/e[40].descriptions,r=0;r<c.length;r+=1){const o=xr(e,c,r);u[r]?u[r].p(o,t):(u[r]=Vr(o),u[r].c(),u[r].m(n,null))}for(;r<u.length;r+=1)u[r].d(1);u.length=c.length}B(n,v=Z(m,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")]))},d(e){e&&f(n),d(u,e)}}}
722
722
  // (287:12) {#if reward.descriptions.length > 1}
723
- function Gr(e){let n,r,o,i,s,a,l,c=/*locale*/e[4](/*reward*/e[40].key)+"",u=/*locale*/e[4]("level")+"",m=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")],v={};for(let e=0;e<m.length;e+=1)v=t(v,m[e]);let E=/*reward*/e[40].descriptions,w=[];for(let t=0;t<E.length;t+=1)w[t]=jr(Hr(e,E,t));return{c(){n=g("div"),r=b(c),o=y(),i=b(u),s=b(":"),a=y(),l=g("div");for(let e=0;e<w.length;e+=1)w[e].c();B(n,v)},m(e,t){p(e,n,t),h(n,r),h(n,o),h(n,i),h(n,s),p(e,a,t),p(e,l,t);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(l,null)},p(e,t){if(/*locale, bonus, levels*/19&t[0]&&c!==(c=/*locale*/e[4](/*reward*/e[40].key)+"")&&_(r,c,v.contenteditable),/*locale*/16&t[0]&&u!==(u=/*locale*/e[4]("level")+"")&&_(i,u,v.contenteditable),B(n,v=Z(m,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")])),/*bonus, levels, locale*/19&t[0]){let n;for(E=/*reward*/e[40].descriptions,n=0;n<E.length;n+=1){const r=Hr(e,E,n);w[n]?w[n].p(r,t):(w[n]=jr(r),w[n].c(),w[n].m(l,null))}for(;n<w.length;n+=1)w[n].d(1);w.length=E.length}},d(e){e&&f(n),e&&f(a),e&&f(l),d(w,e)}}}
723
+ function jr(e){let n,r,o,i,s,a,l,c=/*locale*/e[4](/*reward*/e[40].key)+"",u=/*locale*/e[4]("level")+"",m=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")],v={};for(let e=0;e<m.length;e+=1)v=t(v,m[e]);let E=/*reward*/e[40].descriptions,w=[];for(let t=0;t<E.length;t+=1)w[t]=Wr(Hr(e,E,t));return{c(){n=g("div"),r=y(c),o=b(),i=y(u),s=y(":"),a=b(),l=g("div");for(let e=0;e<w.length;e+=1)w[e].c();B(n,v)},m(e,t){p(e,n,t),h(n,r),h(n,o),h(n,i),h(n,s),p(e,a,t),p(e,l,t);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(l,null)},p(e,t){if(/*locale, bonus, levels*/19&t[0]&&c!==(c=/*locale*/e[4](/*reward*/e[40].key)+"")&&$(r,c,v.contenteditable),/*locale*/16&t[0]&&u!==(u=/*locale*/e[4]("level")+"")&&$(i,u,v.contenteditable),B(n,v=Z(m,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")])),/*bonus, levels, locale*/19&t[0]){let n;for(E=/*reward*/e[40].descriptions,n=0;n<E.length;n+=1){const r=Hr(e,E,n);w[n]?w[n].p(r,t):(w[n]=Wr(r),w[n].c(),w[n].m(l,null))}for(;n<w.length;n+=1)w[n].d(1);w.length=E.length}},d(e){e&&f(n),e&&f(a),e&&f(l),d(w,e)}}}
724
724
  // (299:16) {#each reward.descriptions as description}
725
- function Fr(e){let t,n=/*description*/e[43]+"";return{c(){t=b(n)},m(e,n){p(e,t,n)},p(e,r){/*bonus, levels, locale*/19&r[0]&&n!==(n=/*description*/e[43]+"")&&A(t,n)},d(e){e&&f(t)}}}
725
+ function Vr(e){let t,n=/*description*/e[43]+"";return{c(){t=y(n)},m(e,n){p(e,t,n)},p(e,r){/*bonus, levels, locale*/19&r[0]&&n!==(n=/*description*/e[43]+"")&&A(t,n)},d(e){e&&f(t)}}}
726
726
  // (292:16) {#each reward.descriptions as description}
727
- function jr(e){let t,n,r=/*description*/e[43]+"";return{c(){t=g("p"),n=b(r)},m(e,r){p(e,t,r),h(t,n)},p(e,t){/*bonus, levels, locale*/19&t[0]&&r!==(r=/*description*/e[43]+"")&&A(n,r)},d(e){e&&f(t)}}}
727
+ function Wr(e){let t,n,r=/*description*/e[43]+"";return{c(){t=g("p"),n=y(r)},m(e,r){p(e,t,r),h(t,n)},p(e,t){/*bonus, levels, locale*/19&t[0]&&r!==(r=/*description*/e[43]+"")&&A(n,r)},d(e){e&&f(t)}}}
728
728
  // (284:10) {#each (getRewards(bonus, levels, locale)) as reward}
729
- function Vr(e){let n,r;function o(e,t){/*reward*/
730
- return e[40].descriptions.length>1?Gr:Ur}let i=o(e),s=i(e),a=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")],l={};for(let e=0;e<a.length;e+=1)l=t(l,a[e]);return{c(){n=g("div"),s.c(),r=y(),B(n,l)},m(e,t){p(e,n,t),s.m(n,null),h(n,r)},p(e,t){i===(i=o(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n,r))),B(n,l=Z(a,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")]))},d(e){e&&f(n),s.d()}}}
729
+ function Kr(e){let n,r;function o(e,t){/*reward*/
730
+ return e[40].descriptions.length>1?jr:Fr}let i=o(e),s=i(e),a=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")],l={};for(let e=0;e<a.length;e+=1)l=t(l,a[e]);return{c(){n=g("div"),s.c(),r=b(),B(n,l)},m(e,t){p(e,n,t),s.m(n,null),h(n,r)},p(e,t){i===(i=o(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n,r))),B(n,l=Z(a,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")]))},d(e){e&&f(n),s.d()}}}
731
731
  // (309:8) {#if !bonus.status}
732
- function Wr(e){let t,n,r,o=/*bonus*/e[0].levels,i=[];for(let t=0;t<o.length;t+=1)i[t]=Yr(Sr(e,o,t));let s=/*bonus*/1===e[0].levels.length&&Jr(e);function a(e,t){/*bonus*/
733
- return e[0].levels.length>=3?Qr:qr}let l=a(e),c=l(e);return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=y(),s&&s.c(),n=y(),c.c(),r=v()},m(e,o){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,o);p(e,t,o),s&&s.m(e,o),p(e,n,o),c.m(e,o),p(e,r,o)},p(e,u){if(/*classWithPartMatchMobile, bonus, locale, isShowMore*/4241&u[0]){let n;for(o=/*bonus*/e[0].levels,n=0;n<o.length;n+=1){const r=Sr(e,o,n);i[n]?i[n].p(r,u):(i[n]=Yr(r),i[n].c(),i[n].m(t.parentNode,t))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}/*bonus*/1===e[0].levels.length?s?s.p(e,u):(s=Jr(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null),l===(l=a(e))&&c?c.p(e,u):(c.d(1),c=l(e),c&&(c.c(),c.m(r.parentNode,r)))},d(e){d(i,e),e&&f(t),s&&s.d(e),e&&f(n),c.d(e),e&&f(r)}}}
732
+ function Zr(e){let t,n,r,o=/*bonus*/e[0].levels,i=[];for(let t=0;t<o.length;t+=1)i[t]=qr($r(e,o,t));let s=/*bonus*/1===e[0].levels.length&&Qr(e);function a(e,t){/*bonus*/
733
+ return e[0].levels.length>=3?to:eo}let l=a(e),c=l(e);return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=b(),s&&s.c(),n=b(),c.c(),r=v()},m(e,o){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,o);p(e,t,o),s&&s.m(e,o),p(e,n,o),c.m(e,o),p(e,r,o)},p(e,u){if(/*classWithPartMatchMobile, bonus, locale, isShowMore*/4241&u[0]){let n;for(o=/*bonus*/e[0].levels,n=0;n<o.length;n+=1){const r=$r(e,o,n);i[n]?i[n].p(r,u):(i[n]=qr(r),i[n].c(),i[n].m(t.parentNode,t))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}/*bonus*/1===e[0].levels.length?s?s.p(e,u):(s=Qr(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null),l===(l=a(e))&&c?c.p(e,u):(c.d(1),c=l(e),c&&(c.c(),c.m(r.parentNode,r)))},d(e){d(i,e),e&&f(t),s&&s.d(e),e&&f(n),c.d(e),e&&f(r)}}}
734
734
  // (312:12) {#if isShowMore ? true : index < 2}
735
- function Kr(e){let n,r,o,i,s;function a(e,t){/*level*/
736
- return e[34].maxRepeats>0?Xr:Zr}let l=a(e),c=l(e),u=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")],m={};for(let e=0;e<u.length;e+=1)m=t(m,u[e]);let b=/*level*/e[34].bonuses,v=[];for(let t=0;t<b.length;t+=1)v[t]=zr(Ar(e,b,t));let E=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")],w={};for(let e=0;e<E.length;e+=1)w=t(w,E[e]);return{c(){n=g("div"),r=g("div"),c.c(),o=y(),i=g("div");for(let e=0;e<v.length;e+=1)v[e].c();s=y(),B(r,m),B(n,w)},m(e,t){p(e,n,t),h(n,r),c.m(r,null),h(n,o),h(n,i);for(let e=0;e<v.length;e+=1)v[e]&&v[e].m(i,null);h(n,s)},p(e,t){if(l===(l=a(e))&&c?c.p(e,t):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null))),B(r,m=Z(u,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")])),/*bonus, locale*/17&t[0]){let n;for(b=/*level*/e[34].bonuses,n=0;n<b.length;n+=1){const r=Ar(e,b,n);v[n]?v[n].p(r,t):(v[n]=zr(r),v[n].c(),v[n].m(i,null))}for(;n<v.length;n+=1)v[n].d(1);v.length=b.length}B(n,w=Z(E,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")]))},d(e){e&&f(n),c.d(),d(v,e)}}}
735
+ function Xr(e){let n,r,o,i,s;function a(e,t){/*level*/
736
+ return e[34].maxRepeats>0?Yr:zr}let l=a(e),c=l(e),u=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")],m={};for(let e=0;e<u.length;e+=1)m=t(m,u[e]);let y=/*level*/e[34].bonuses,v=[];for(let t=0;t<y.length;t+=1)v[t]=Jr(Lr(e,y,t));let E=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")],w={};for(let e=0;e<E.length;e+=1)w=t(w,E[e]);return{c(){n=g("div"),r=g("div"),c.c(),o=b(),i=g("div");for(let e=0;e<v.length;e+=1)v[e].c();s=b(),B(r,m),B(n,w)},m(e,t){p(e,n,t),h(n,r),c.m(r,null),h(n,o),h(n,i);for(let e=0;e<v.length;e+=1)v[e]&&v[e].m(i,null);h(n,s)},p(e,t){if(l===(l=a(e))&&c?c.p(e,t):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null))),B(r,m=Z(u,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItemPosition")])),/*bonus, locale*/17&t[0]){let n;for(y=/*level*/e[34].bonuses,n=0;n<y.length;n+=1){const r=Lr(e,y,n);v[n]?v[n].p(r,t):(v[n]=Jr(r),v[n].c(),v[n].m(i,null))}for(;n<v.length;n+=1)v[n].d(1);v.length=y.length}B(n,w=Z(E,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")]))},d(e){e&&f(n),c.d(),d(v,e)}}}
737
737
  // (318:16) {:else}
738
- function Zr(e){let t,n,r=/*locale*/e[4]("eachLevel")+"";return{c(){t=b(r),n=b(":")},m(e,r){p(e,t,r),p(e,n,r)},p(e,n){/*locale*/16&n[0]&&r!==(r=/*locale*/e[4]("eachLevel")+"")&&A(t,r)},d(e){e&&f(t),e&&f(n)}}}
738
+ function zr(e){let t,n,r=/*locale*/e[4]("eachLevel")+"";return{c(){t=y(r),n=y(":")},m(e,r){p(e,t,r),p(e,n,r)},p(e,n){/*locale*/16&n[0]&&r!==(r=/*locale*/e[4]("eachLevel")+"")&&A(t,r)},d(e){e&&f(t),e&&f(n)}}}
739
739
  // (316:16) {#if level.maxRepeats > 0}
740
- function Xr(e){let t,n,r=`${/*locale*/e[4]("level")} ${Fe(/*index*/e[36],/*level*/e[34],/*bonus*/e[0])}`;return{c(){t=b(r),n=b(":")},m(e,r){p(e,t,r),p(e,n,r)},p(e,n){/*locale, bonus*/17&n[0]&&r!==(r=`${/*locale*/e[4]("level")} ${Fe(/*index*/e[36],/*level*/e[34],/*bonus*/e[0])}`)&&A(t,r)},d(e){e&&f(t),e&&f(n)}}}
740
+ function Yr(e){let t,n,r=`${/*locale*/e[4]("level")} ${je(/*index*/e[36],/*level*/e[34],/*bonus*/e[0])}`;return{c(){t=y(r),n=y(":")},m(e,r){p(e,t,r),p(e,n,r)},p(e,n){/*locale, bonus*/17&n[0]&&r!==(r=`${/*locale*/e[4]("level")} ${je(/*index*/e[36],/*level*/e[34],/*bonus*/e[0])}`)&&A(t,r)},d(e){e&&f(t),e&&f(n)}}}
741
741
  // (324:16) {#each level.bonuses as levelBonus}
742
- function zr(e){let t,n,r=Pe(/*level*/e[34],/*levelBonus*/e[37],/*locale*/e[4])+"";return{c(){t=g("p"),n=b(r)},m(e,r){p(e,t,r),h(t,n)},p(e,t){/*bonus, locale*/17&t[0]&&r!==(r=Pe(/*level*/e[34],/*levelBonus*/e[37],/*locale*/e[4])+"")&&A(n,r)},d(e){e&&f(t)}}}
742
+ function Jr(e){let t,n,r=Oe(/*level*/e[34],/*levelBonus*/e[37],/*locale*/e[4])+"";return{c(){t=g("p"),n=y(r)},m(e,r){p(e,t,r),h(t,n)},p(e,t){/*bonus, locale*/17&t[0]&&r!==(r=Oe(/*level*/e[34],/*levelBonus*/e[37],/*locale*/e[4])+"")&&A(n,r)},d(e){e&&f(t)}}}
743
743
  // (310:10) {#each bonus.levels as level, index}
744
- function Yr(e){let t,n=/*isShowMore*/(!!e[7]||/*index*/e[36]<2)&&Kr(e);return{c(){n&&n.c(),t=v()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,r){/*isShowMore*/e[7]||/*index*/e[36]<2?n?n.p(e,r):(n=Kr(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&f(t)}}}
744
+ function qr(e){let t,n=/*isShowMore*/(!!e[7]||/*index*/e[36]<2)&&Xr(e);return{c(){n&&n.c(),t=v()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,r){/*isShowMore*/e[7]||/*index*/e[36]<2?n?n.p(e,r):(n=Xr(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&f(t)}}}
745
745
  // (334:10) {#if bonus.levels.length === 1}
746
- function Jr(e){let n,r,o=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")],i={};for(let e=0;e<o.length;e+=1)i=t(i,o[e]);return{c(){n=g("div"),r=g("p"),r.textContent=" ",B(n,i)},m(e,t){p(e,n,t),h(n,r)},p(e,t){B(n,i=Z(o,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")]))},d(e){e&&f(n)}}}
746
+ function Qr(e){let n,r,o=[/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")],i={};for(let e=0;e<o.length;e+=1)i=t(i,o[e]);return{c(){n=g("div"),r=g("p"),r.textContent=" ",B(n,i)},m(e,t){p(e,n,t),h(n,r)},p(e,t){B(n,i=Z(o,[/*classWithPartMatchMobile*/4096&t[0]&&/*classWithPartMatchMobile*/e[12]("BonusRewardsLevelsItem")]))},d(e){e&&f(n)}}}
747
747
  // (344:10) {:else}
748
- function qr(t){let n;return{c(){n=g("div"),n.textContent=" ",w(n,"class","ShowMore NoCursorTip")},m(e,t){p(e,n,t)},p:e,d(e){e&&f(n)}}}
748
+ function eo(t){let n;return{c(){n=g("div"),n.textContent=" ",w(n,"class","ShowMore NoCursorTip")},m(e,t){p(e,n,t)},p:e,d(e){e&&f(n)}}}
749
749
  // (340:10) {#if bonus.levels.length >= 3}
750
- function Qr(e){let t,n,r,o,i=(/*isShowMore*/e[7]?/*locale*/e[4]("collapse"):/*locale*/e[4]("showMore"))+"";return{c(){t=g("div"),n=b(i),w(t,"class","ShowMore")},m(i,s){p(i,t,s),h(t,n),r||(o=E(t,"click",/*click_handler_1*/e[26]),r=!0)},p(e,t){/*isShowMore, locale*/144&t[0]&&i!==(i=(/*isShowMore*/e[7]?/*locale*/e[4]("collapse"):/*locale*/e[4]("showMore"))+"")&&A(n,i)},d(e){e&&f(t),r=!1,o()}}}
750
+ function to(e){let t,n,r,o,i=(/*isShowMore*/e[7]?/*locale*/e[4]("collapse"):/*locale*/e[4]("showMore"))+"";return{c(){t=g("div"),n=y(i),w(t,"class","ShowMore")},m(i,s){p(i,t,s),h(t,n),r||(o=E(t,"click",/*click_handler_1*/e[26]),r=!0)},p(e,t){/*isShowMore, locale*/144&t[0]&&i!==(i=(/*isShowMore*/e[7]?/*locale*/e[4]("collapse"):/*locale*/e[4]("showMore"))+"")&&A(n,i)},d(e){e&&f(t),r=!1,o()}}}
751
751
  // (356:10) {#each products as support, i}
752
- function eo(e){let t,n,r,o,i,s,a=/*support*/e[31]+"";function l(){/*click_handler_2*/
753
- return e[27](/*support*/e[31])}return{c(){t=g("div"),n=g("a"),r=b(a),o=y(),w(n,"href","javascript:void(0)")},m(e,a){p(e,t,a),h(t,n),h(n,r),h(t,o),i||(s=E(n,"click",l),i=!0)},p(t,n){e=t,/*products*/2048&n[0]&&a!==(a=/*support*/e[31]+"")&&A(r,a)},d(e){e&&f(t),i=!1,s()}}}
752
+ function no(e){let t,n,r,o,i,s,a=/*support*/e[31]+"";function l(){/*click_handler_2*/
753
+ return e[27](/*support*/e[31])}return{c(){t=g("div"),n=g("a"),r=y(a),o=b(),w(n,"href","javascript:void(0)")},m(e,a){p(e,t,a),h(t,n),h(n,r),h(t,o),i||(s=E(n,"click",l),i=!0)},p(t,n){e=t,/*products*/2048&n[0]&&a!==(a=/*support*/e[31]+"")&&A(r,a)},d(e){e&&f(t),i=!1,s()}}}
754
754
  // (371:10) {#if products.length === 1}
755
- function to(e){let t;return{c(){t=g("div"),t.textContent=" "},m(e,n){p(e,t,n)},d(e){e&&f(t)}}}function no(t){let n,r,o;G(/*onwindowresize*/t[22]);let i=/*bonus*/t[0]&&xr(t);return{c(){i&&i.c(),n=v(),this.c=e},m(e,s){i&&i.m(e,s),p(e,n,s),r||(o=E(window,"resize",/*onwindowresize*/t[22]),r=!0)},p(e,t){/*bonus*/e[0]?i?i.p(e,t):(i=xr(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:e,o:e,d(e){i&&i.d(e),e&&f(n),r=!1,o()}}}function ro(e,t,n){let r,o,i,s,a,l,u,h;c(e,vr,(e=>n(21,h=e)));let p,f,d,{rawbonus:g=""}=t,{endpoint:m=""}=t,{currency:b="EUR"}=t,{lang:y=be.en}=t,{session:v=""}=t,E=[],w="",T=!0,B=3e4,C=!1;const S=()=>{try{n(0,p=Object.assign({},JSON.parse(g)))}catch(e){console.error(e)}p&&(n(1,E=(e=>{const t=[];return e.map((e=>{const{maxRepeats:n,completedTime:r}=e,o=ve(e,["maxRepeats","completedTime"]);if(n>0)for(let e=0;e<n;e++)t.push(Object.assign({},o));else t.push(Object.assign({},o))})),t})(p.levels)),A())},A=()=>{p&&(Ue(p.expiryDate,B,(()=>n(19,d="Expired")),(e=>n(19,d=e))),Ue(p.endTime||p.trigger.endTime,B,(()=>n(20,w="Ended")),(e=>n(20,w=e))))};let _;P((()=>{const e=setInterval((()=>{A()}),B);return()=>{clearInterval(e)}})),Ce({OnWageringBonusButtonStateChanged:e=>n(6,T=e.clickable)});return e.$$set=e=>{"rawbonus"in e&&n(14,g=e.rawbonus),"endpoint"in e&&n(15,m=e.endpoint),"currency"in e&&n(16,b=e.currency),"lang"in e&&n(17,y=e.lang),"session"in e&&n(18,v=e.session)},e.$$.update=()=>{var t;/*rawbonus*/16384&e.$$.dirty[0]&&g&&S(),/*lang*/131072&e.$$.dirty[0]&&y&&(t=y,Qn.set(t)),/*innerWidth*/8&e.$$.dirty[0]&&n(5,r=_<=648),/*isMobileView*/32&e.$$.dirty[0]&&n(12,o=(e,t="")=>re(`${e}${r?` ${e}Mobile`:""}`,t)),/*bonus, levels*/3&e.$$.dirty[0]&&n(2,f=(null==p?void 0:p.bonusWalletID)&&((e,t)=>{const n=ke(e,"∞",t.length);return $e(e.status,{completed:()=>({text:t.length,textWithLength:`${t.length}/${t.length}`}),current:()=>{if(!e.wageringProgress)return{current:"0",textWithLength:`0/${n}`};const{currentLevel:t}=e.wageringProgress;return{text:t,textWithLength:`${t}/${n}`}}})})(p,E)),/*bonus*/1&e.$$.dirty[0]&&n(11,i=p?p.status?p.products||[]:p.wallet?Object.keys(p.wallet).filter((e=>["sports","casino"].includes(e))):[]:[]),/*$_*/2097152&e.$$.dirty[0]&&n(4,u=(e,t={})=>h("wageringBonuses."+e,{values:t})),/*bonus, locale, levels, endTime*/1048595&e.$$.dirty[0]&&n(10,s=p&&!p.status?[{key:"Levels",svg:ue,text:ke(p,`${u("infinite")} ${u("levels")}`,`${E.length} ${E.length>1?u("levels"):u("level")}`)},{key:"Period",svg:ce,text:w}]:[]),/*bonus, levelsCurrent*/5&e.$$.dirty[0]&&n(9,a=(()=>{const e=[fe.completed,fe.released].includes(null==p?void 0:p.status);return p&&e?[{key:"Status",svg:ce,text:"Completed"},{key:"Levels",svg:ue,text:`Levels finished: ${f.textWithLength}`}]:[]})()),/*expiryTime*/524288&e.$$.dirty[0]&&n(8,l=[{key:"ExpiryTime",svg:"data:image/svg+xml,%3csvg width='26' height='25' viewBox='0 0 26 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3490_603)'%3e%3cpath d='M12.502 0C5.60958 0 0.00195312 5.60762 0.00195312 12.5C0.00195312 19.3924 5.60958 25 12.502 25C19.3943 25 25.002 19.3924 25.002 12.5C25.002 5.60762 19.3943 0 12.502 0ZM12.502 23.4375C6.47091 23.4375 1.56446 18.531 1.56446 12.5C1.56446 6.46896 6.47091 1.56251 12.502 1.56251C18.533 1.56251 23.4394 6.46896 23.4394 12.5C23.4394 18.531 18.533 23.4375 12.502 23.4375Z' fill='black'/%3e%3cpath d='M13.2832 4.6875H11.7207V12.8235L16.6371 17.7398L17.7418 16.6351L13.2832 12.1765V4.6875Z' fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3490_603'%3e%3crect width='25' height='25' fill='white' transform='translate(0.00195312)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",text:d}]),/*expiryTime, bonus*/524289&e.$$.dirty[0]&&d&&p.status===fe.active&&["Expired","Ended"].includes(d)&&setTimeout((()=>Be({type:"OnWageringBonusExpired"})),5e3)},[p,E,f,_,u,r,T,C,l,a,s,i,o,async()=>{if(!v)return;Be({type:"OnWageringBonusJoinRequest",bonusID:p.bonusID}),Be({type:"OnWageringBonusButtonStateChanged",clickable:!1});(await Re(new AbortController,m,v,p.code,b)).success&&Be({type:"OnWageringBonusClaimed"}),Be({type:"OnWageringBonusButtonStateChanged",clickable:!0})},g,m,b,y,v,d,w,h,function(){n(3,_=window.innerWidth)},e=>{const{maxContribution:t="undefined",minStake:n="undefined"}=e.levelInfo,r={...e,maxContribution:t,minStake:n};return u(`${p.wageringType}.target`,r)},()=>u("targetOther",{status:p.status}),()=>Be({type:"OnWageringBonusAllRewardsClick",bonusWalletID:p.id}),()=>n(7,C=!C),e=>Be({type:"OnWageringBonusSupportClicked",support:e})]}var oo,io;
755
+ function ro(e){let t;return{c(){t=g("div"),t.textContent=" "},m(e,n){p(e,t,n)},d(e){e&&f(t)}}}function oo(t){let n,r,o;G(/*onwindowresize*/t[22]);let i=/*bonus*/t[0]&&Ir(t);return{c(){i&&i.c(),n=v(),this.c=e},m(e,s){i&&i.m(e,s),p(e,n,s),r||(o=E(window,"resize",/*onwindowresize*/t[22]),r=!0)},p(e,t){/*bonus*/e[0]?i?i.p(e,t):(i=Ir(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:e,o:e,d(e){i&&i.d(e),e&&f(n),r=!1,o()}}}function io(e,t,n){let r,o,i,s,a,l,u,h;c(e,Er,(e=>n(21,h=e)));let p,f,d,{rawbonus:g=""}=t,{endpoint:m=""}=t,{currency:y="EUR"}=t,{lang:b=ye.en}=t,{session:v=""}=t,E=[],w="",T=!0,B=3e4,C=!1;const S=()=>{try{n(0,p=Object.assign({},JSON.parse(g)))}catch(e){console.error(e)}p&&(n(1,E=(e=>{const t=[];return e.map((e=>{const{maxRepeats:n,completedTime:r}=e,o=ve(e,["maxRepeats","completedTime"]);if(n>0)for(let e=0;e<n;e++)t.push(Object.assign({},o));else t.push(Object.assign({},o))})),t})(p.levels)),A())},A=()=>{p&&(Ge(p.expiryDate,B,(()=>n(19,d="Expired")),(e=>n(19,d=e))),Ge(p.endTime||p.trigger.endTime,B,(()=>n(20,w="Ended")),(e=>n(20,w=e))))};let $;P((()=>{const e=setInterval((()=>{A()}),B);return()=>{clearInterval(e)}})),Ce({OnWageringBonusButtonStateChanged:e=>n(6,T=e.clickable)});return e.$$set=e=>{"rawbonus"in e&&n(14,g=e.rawbonus),"endpoint"in e&&n(15,m=e.endpoint),"currency"in e&&n(16,y=e.currency),"lang"in e&&n(17,b=e.lang),"session"in e&&n(18,v=e.session)},e.$$.update=()=>{var t;/*rawbonus*/16384&e.$$.dirty[0]&&g&&S(),/*lang*/131072&e.$$.dirty[0]&&b&&(t=b,er.set(t)),/*innerWidth*/8&e.$$.dirty[0]&&n(5,r=$<=648),/*isMobileView*/32&e.$$.dirty[0]&&n(12,o=(e,t="")=>re(`${e}${r?` ${e}Mobile`:""}`,t)),/*bonus, levels*/3&e.$$.dirty[0]&&n(2,f=(null==p?void 0:p.bonusWalletID)&&((e,t)=>{const n=Ue(e,"∞",t.length);return He(e.status,{completed:()=>({text:t.length,textWithLength:`${t.length}/${t.length}`}),current:()=>{if(!e.wageringProgress)return{current:"0",textWithLength:`0/${n}`};const{currentLevel:t}=e.wageringProgress;return{text:t,textWithLength:`${t}/${n}`}}})})(p,E)),/*bonus*/1&e.$$.dirty[0]&&n(11,i=p?p.status?p.products||[]:p.wallet?Object.keys(p.wallet).filter((e=>["sports","casino"].includes(e))):[]:[]),/*$_*/2097152&e.$$.dirty[0]&&n(4,u=(e,t={})=>h("wageringBonuses."+e,{values:t})),/*bonus, locale, levels, endTime*/1048595&e.$$.dirty[0]&&n(10,s=p&&!p.status?[{key:"Levels",svg:ue,text:Ue(p,`${u("infinite")} ${u("levels")}`,`${E.length} ${E.length>1?u("levels"):u("level")}`)},{key:"Period",svg:ce,text:w}]:[]),/*bonus, levelsCurrent*/5&e.$$.dirty[0]&&n(9,a=(()=>{const e=[fe.completed,fe.released].includes(null==p?void 0:p.status);return p&&e?[{key:"Status",svg:ce,text:"Completed"},{key:"Levels",svg:ue,text:`Levels finished: ${f.textWithLength}`}]:[]})()),/*expiryTime*/524288&e.$$.dirty[0]&&n(8,l=d&&[{key:"ExpiryTime",svg:"data:image/svg+xml,%3csvg width='26' height='25' viewBox='0 0 26 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3490_603)'%3e%3cpath d='M12.502 0C5.60958 0 0.00195312 5.60762 0.00195312 12.5C0.00195312 19.3924 5.60958 25 12.502 25C19.3943 25 25.002 19.3924 25.002 12.5C25.002 5.60762 19.3943 0 12.502 0ZM12.502 23.4375C6.47091 23.4375 1.56446 18.531 1.56446 12.5C1.56446 6.46896 6.47091 1.56251 12.502 1.56251C18.533 1.56251 23.4394 6.46896 23.4394 12.5C23.4394 18.531 18.533 23.4375 12.502 23.4375Z' fill='black'/%3e%3cpath d='M13.2832 4.6875H11.7207V12.8235L16.6371 17.7398L17.7418 16.6351L13.2832 12.1765V4.6875Z' fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3490_603'%3e%3crect width='25' height='25' fill='white' transform='translate(0.00195312)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",text:d}]),/*expiryTime, bonus*/524289&e.$$.dirty[0]&&d&&p.status===fe.active&&["Expired","Ended"].includes(d)&&setTimeout((()=>Be({type:"OnWageringBonusExpired"})),5e3)},[p,E,f,$,u,r,T,C,l,a,s,i,o,async()=>{if(!v)return;Be({type:"OnWageringBonusJoinRequest",bonusID:p.bonusID}),Be({type:"OnWageringBonusButtonStateChanged",clickable:!1});(await Ie(new AbortController,m,v,p.code,y)).success&&Be({type:"OnWageringBonusClaimed"}),Be({type:"OnWageringBonusButtonStateChanged",clickable:!0})},g,m,y,b,v,d,w,h,function(){n(3,$=window.innerWidth)},e=>{const{maxContribution:t="undefined",minStake:n="undefined"}=e.levelInfo,r={...e,maxContribution:t,minStake:n};return u(`${p.wageringType}.target`,r)},()=>u("targetOther",{status:p.status}),()=>Be({type:"OnWageringBonusAllRewardsClick",bonusWalletID:p.id}),()=>n(7,C=!C),e=>Be({type:"OnWageringBonusSupportClicked",support:e})]}var so,ao;
756
756
  /* ../general-animation-loading/src/GeneralAnimationLoading.svelte generated by Svelte v3.59.2 */
757
- function so(t){let n;return{c(){n=g("div"),n.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>',this.c=e},m(e,r){p(e,n,r),
757
+ function lo(t){let n;return{c(){n=g("div"),n.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>',this.c=e},m(e,r){p(e,n,r),
758
758
  /*div5_binding*/t[3](n)},p:e,i:e,o:e,d(e){e&&f(n)
759
- /*div5_binding*/,t[3](null)}}}function ao(e,t,n){let r,{clientstyling:o=""}=t,{clientstylingurl:i=""}=t;return e.$$set=e=>{"clientstyling"in e&&n(1,o=e.clientstyling),"clientstylingurl"in e&&n(2,i=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/3&e.$$.dirty&&o&&r&&(()=>{let e=document.createElement("style");e.innerHTML=o,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/5&e.$$.dirty&&i&&r&&(()=>{let e=new URL(i),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[r,o,i,function(e){M[e?"unshift":"push"]((()=>{r=e,n(0,r)}))}]}oo="casino-wagering-bonus",io=class extends J{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";font-family:"Roboto";font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}private-casino-wagering-bonus-info::part(ExpiryTimeInfo){margin:0}private-casino-wagering-bonus-info::part(ExpiryTimeInfoText){color:#DC0D1F}hr{margin:11.0175975516px 0;border-top:1px solid #00AEEF}.BonusTerms{font-size:11.0175975516px;line-height:12.8538638103px;max-width:180px}.BonusTermsMobile{font-size:3.0769230769vw;line-height:3.6051282051vw;max-width:unset}.ShowMore{cursor:pointer;color:#00AEEF;text-align:right}.ShowMore.NoCursorTip{cursor:unset}.Root{display:flex;flex-direction:row;justify-content:space-between;width:648px;border:1px solid #00AEEF;padding:17.1384850803px 0;font-size:14.6901300689px;line-height:17.1384850803px}.Root>div{width:100%}.RootMobile{font-size:4.1025641026vw;line-height:4.8076923077vw;font-weight:400;width:inherit;flex-direction:column;padding:3.5897435897vw 0.7692307692vw;border-radius:1.0256410256vw}.BonusInfo{padding:0 17.1384850803px}.BonusInfoMobile{padding:0 6px}.BonusInfoWrapper,.AfterClaimedWrapper,.RewardsTopBar,.StatusClaimable{display:flex;flex-direction:row;justify-content:space-between}.BonusTypeTarget{max-width:180px;font-weight:400;padding:6.1208875287px 0;font-weight:700}.BonusTypeTargetMobile{max-width:unset}.SupportsTitle{font-weight:700}.BonusInfoWrapperMobile{margin-bottom:3.0769230769vw}.BonusInfoMobile{padding-bottom:4.6153846154vw}.BonusRewards{padding:0 17.1384850803px;border-left:1px solid #00AEEF}.BonusRewardsMobile{border-left:none;border-top:1px solid #00AEEF;padding-top:4.6153846154vw}.BonusInfoTitle{font-weight:700;color:#59CA00}.BonusInfoDescription{margin-top:12.2417750574px}.StatusClaimableCommand{margin-left:18.3626625861px}.StatusClaimableCommandMobile{margin-left:0}.StatusClaimableCommandButton{background:#00AEEF;border:1px solid #00AEEF;color:#FFFFFF;cursor:pointer;transition:0.6s;transition-property:opacity;font-size:12.2417750574px;line-height:14.7697016067px;font-weight:400;padding:14.6901300689px}.StatusClaimableCommandButton:disabled{opacity:0.3}.StatusClaimableCommandButtonMobile{font-size:4.1025641026vw;line-height:4.8076923077vw;font-weight:700;padding:4.6153846154vw 5.8974358974vw}.StatusClaimableCommandTerms{font-size:11px;font-weight:400;margin-top:6.1208875287px;text-align:center}.StatusClaimableCommandTerms a{color:#000000}.StatusClaimableCommandTermsMobile{margin:2.0512820513vw 0;font-size:3.0769230769vw;line-height:3.6051282051vw}.LevelStatus{text-align:center;margin-top:6.1208875287px}.BonusTypeWrapper{margin-left:18.3626625861px}.BonusTypeRemaining{font-weight:400;padding:6.1208875287px 0;color:#00AEEF}.BonusTypeTargetMobile,.BonusTypeRemainingMobile{padding:2.0512820513vw 0}.BonusTypeGot{font-weight:400;padding:6.1208875287px 0;color:#7884A0}.BonusTypeGotMobile{padding:2.0512820513vw 0}.RewardsTopBarTitle{font-weight:700;color:#252631}.BonusRewardsLevels{margin-top:3.0604437643px}.BonusRewardsLevelsMobile{margin-top:3.0769230769vw}.BonusRewardsLevelsItem{display:flex;margin-bottom:3.0604437643px;padding:7.3450650344px 0}.BonusRewardsLevelsItemMobile{margin-bottom:1.2820512821vw;padding:0}.BonusRewardsLevelsItemPosition{margin-right:3.0604437643px}.SupportsWrapper{margin-top:21.4231063504px}.SupportsWrapper div{margin-top:9.181331293px}.SupportsWrapperMobile{margin-top:6.1538461538vw}.SupportsWrapperMobile div{margin-top:2.0512820513vw}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},ro,no,s,{rawbonus:14,endpoint:15,currency:16,lang:17,session:18},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["rawbonus","endpoint","currency","lang","session"]}get rawbonus(){return this.$$.ctx[14]}set rawbonus(e){this.$$set({rawbonus:e}),V()}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),V()}get currency(){return this.$$.ctx[16]}set currency(e){this.$$set({currency:e}),V()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),V()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),V()}},!customElements.get(oo)&&customElements.define(oo,io);!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends J{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},ao,so,s,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),V()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),V()}});const lo={en:{wageringBonuses:{wageringBonus:"Wagering Bonus",levels:"Levels",level:"Level",eachLevel:"Each Level",infinite:"Infinite",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",terms:"Terms and Conditions",termsTip:'Learn more about the challenge rules and included games or events in <a target="__blank" href={tcUrl} > Terms and Conditions </a> section',rewards:"Rewards",allRewards:"All Rewards",includeBets:"Include bets",showMore:"Show More",collapse:"Collapse",claimable:"Claimable",active:"Active",completed:"Completed",locked:"Locked",inProgress:"InProgress",noBonuses:"No wagering bonuses found",status:"Status",target:"Target",targetOther:"This bonus is {status}",money:{target:"Play for {currencySymbol}{currentLevelIncrement} in total",remaining:"Remaining: {currencySymbol}{gap}",wagered:"Wagered: {currencySymbol}{wagered}"},betCount:{target:"Place {currentLevelIncrement}/{maxContribution} bets of at least {minStake} each",remaining:"Bets Remaining: {gap} bets",wagered:"Bets Placed: {wagered} bets"},reward:{cashBack:"Enroll to Cash Back",tournamentTicket:"Enroll to Tournament Ticket",oddsBoost:"Enroll to Odds Boost",freeRound:"{freespinNumber} Free Spins",percentage:"{bonusAmount}% up to {currency}{capAmount}",fixed:"{currency}{bonusAmount}",standard:"Bonus Money",freeBet:"Free Bet"},forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyWageringBonuses:"See My Wagering Bonuses"}}};
760
- /* src/CasinoWageringBonusesController.svelte generated by Svelte v3.59.2 */function co(e,t,n){const r=e.slice();return r[22]=t[n],r}function uo(e,t,n){const r=e.slice();return r[25]=t[n],r}
761
- // (95:4) {#each Object.values(BonusStatusFilterType) as statusFilter}
762
- function ho(e){let n,r,o,i,s,a=/*locale*/e[9](/*statusFilter*/e[25])+"",l=[/*classWithPartMatchMobile*/e[10]("WageringTab")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);function u(){/*click_handler*/
763
- return e[16](/*statusFilter*/e[25])}return{c(){n=g("div"),r=b(a),o=y(),B(n,c),x(n,"active",/*filter*/e[0]===/*statusFilter*/e[25])},m(e,t){p(e,n,t),h(n,r),h(n,o),i||(s=E(n,"click",u),i=!0)},p(t,o){e=t,/*locale*/512&o&&a!==(a=/*locale*/e[9](/*statusFilter*/e[25])+"")&&_(r,a,c.contenteditable),B(n,c=Z(l,[/*classWithPartMatchMobile*/1024&o&&/*classWithPartMatchMobile*/e[10]("WageringTab")])),x(n,"active",/*filter*/e[0]===/*statusFilter*/e[25])},d(e){e&&f(n),i=!1,s()}}}
764
- // (113:4) {:else}
765
- function po(e){let n;function r(e,t){/*bonuses*/
766
- return e[6].length>0?bo:/*errorMessage*/e[8]?mo:go}let o=r(e),i=o(e),s=[/*classWithPartMatchMobile*/e[10]("Bonuses")],a={};for(let e=0;e<s.length;e+=1)a=t(a,s[e]);return{c(){n=g("div"),i.c(),B(n,a)},m(e,t){p(e,n,t),i.m(n,null)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(n,null))),B(n,a=Z(s,[/*classWithPartMatchMobile*/1024&t&&/*classWithPartMatchMobile*/e[10]("Bonuses")]))},d(e){e&&f(n),i.d()}}}
767
- // (111:4) {#if isLoading}
768
- function fo(t){let n;return{c(){n=g("general-animation-loading")},m(e,t){p(e,n,t)},p:e,d(e){e&&f(n)}}}
769
- // (133:8) {:else}
770
- function go(e){let t,n=/*locale*/e[9]("noBonuses")+"";return{c(){t=b(n)},m(e,n){p(e,t,n)},p(e,r){/*locale*/512&r&&n!==(n=/*locale*/e[9]("noBonuses")+"")&&A(t,n)},d(e){e&&f(t)}}}
771
- // (131:8) {#if errorMessage}
772
- function mo(e){let t,n,r;return{c(){t=g("div"),n=b("Error: "),r=b(/*errorMessage*/e[8]),w(t,"class","Error")},m(e,o){p(e,t,o),h(t,n),h(t,r)},p(e,t){/*errorMessage*/256&t&&A(r,/*errorMessage*/e[8])},d(e){e&&f(t)}}}
773
- // (115:6) {#if bonuses.length > 0}
774
- function bo(e){let t,n=/*bonuses*/e[6],r=[];for(let t=0;t<n.length;t+=1)r[t]=yo(co(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=v()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);p(e,t,n)},p(e,o){if(/*endpoint, session, lang, currency, JSON, bonuses, infoParts*/94&o){let i;for(n=/*bonuses*/e[6],i=0;i<n.length;i+=1){const s=co(e,n,i);r[i]?r[i].p(s,o):(r[i]=yo(s),r[i].c(),r[i].m(t.parentNode,t))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(e){d(r,e),e&&f(t)}}}
775
- // (116:8) {#each bonuses as item}
776
- function yo(e){let n,r=[{endpoint:/*endpoint*/e[1],session:/*session*/e[3],lang:/*lang*/e[2],currency:/*currency*/e[4],rawbonus:JSON.stringify(/*item*/e[22]),exportparts:Br([{key:"ExpiryTime"},{key:"Status"},{key:"Levels"}])}],o={};for(let e=0;e<r.length;e+=1)o=t(o,r[e]);return{c(){n=g("casino-wagering-bonus"),B(n,o)},m(e,t){p(e,n,t)},p(e,t){B(n,o=Z(r,[/*endpoint, session, lang, currency, bonuses*/94&t&&{endpoint:/*endpoint*/e[1],session:/*session*/e[3],lang:/*lang*/e[2],currency:/*currency*/e[4],rawbonus:JSON.stringify(/*item*/e[22]),exportparts:Br([{key:"ExpiryTime"},{key:"Status"},{key:"Levels"}])}]))},d(e){e&&f(n)}}}function vo(n){let r,o,i,s,a,l=Object.values(de),c=[];for(let e=0;e<l.length;e+=1)c[e]=ho(uo(n,l,e));let u=[/*classWithPartMatchMobile*/n[10]("WageringTabs")],m={};for(let e=0;e<u.length;e+=1)m=t(m,u[e]);function b(e,t){/*isLoading*/
777
- return e[7]?fo:po}let v=b(n),w=v(n),T=[/*classWithPartMatchMobile*/n[10]("Root")],C={};for(let e=0;e<T.length;e+=1)C=t(C,T[e]);return{c(){r=g("div"),o=g("section");for(let e=0;e<c.length;e+=1)c[e].c();i=y(),s=g("div"),w.c(),this.c=e,B(o,m),B(r,C),G((()=>/*div1_elementresize_handler*/n[17].call(r)))},m(e,t){p(e,r,t),h(r,o);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(o,null);h(r,i),h(r,s),w.m(s,null),a=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=g("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=$();let o;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=E(window,"message",(e=>{e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=()=>{o=E(n.contentWindow,"resize",t),
759
+ /*div5_binding*/,t[3](null)}}}function co(e,t,n){let r,{clientstyling:o=""}=t,{clientstylingurl:i=""}=t;return e.$$set=e=>{"clientstyling"in e&&n(1,o=e.clientstyling),"clientstylingurl"in e&&n(2,i=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/3&e.$$.dirty&&o&&r&&(()=>{let e=document.createElement("style");e.innerHTML=o,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/5&e.$$.dirty&&i&&r&&(()=>{let e=new URL(i),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[r,o,i,function(e){M[e?"unshift":"push"]((()=>{r=e,n(0,r)}))}]}so="casino-wagering-bonus",ao=class extends J{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";font-family:"Roboto";font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}private-casino-wagering-bonus-info::part(ExpiryTimeInfo){margin:0}private-casino-wagering-bonus-info::part(ExpiryTimeInfoText){color:#DC0D1F}hr{margin:11.0175975516px 0;border-top:1px solid #00AEEF}.BonusTerms{font-size:11.0175975516px;line-height:12.8538638103px;max-width:180px}.BonusTermsMobile{font-size:3.0769230769vw;line-height:3.6051282051vw;max-width:unset}.ShowMore{cursor:pointer;color:#00AEEF;text-align:right}.ShowMore.NoCursorTip{cursor:unset}.Root{display:flex;flex-direction:row;justify-content:space-between;width:648px;border:1px solid #00AEEF;padding:17.1384850803px 0;font-size:14.6901300689px;line-height:17.1384850803px}.Root>div{width:100%}.RootMobile{font-size:4.1025641026vw;line-height:4.8076923077vw;font-weight:400;width:inherit;flex-direction:column;padding:3.5897435897vw 0.7692307692vw;border-radius:1.0256410256vw}.BonusInfo{padding:0 17.1384850803px}.BonusInfoMobile{padding:0 6px}.BonusInfoWrapper,.AfterClaimedWrapper,.RewardsTopBar,.StatusClaimable{display:flex;flex-direction:row;justify-content:space-between}.BonusTypeTarget{max-width:180px;font-weight:400;padding:6.1208875287px 0;font-weight:700}.BonusTypeTargetMobile{max-width:unset}.SupportsTitle{font-weight:700}.BonusInfoWrapperMobile{margin-bottom:3.0769230769vw}.BonusInfoMobile{padding-bottom:4.6153846154vw}.BonusRewards{padding:0 17.1384850803px;border-left:1px solid #00AEEF}.BonusRewardsMobile{border-left:none;border-top:1px solid #00AEEF;padding-top:4.6153846154vw}.BonusInfoTitle{font-weight:700;color:#59CA00}.BonusInfoDescription{margin-top:12.2417750574px}.StatusClaimableCommand{margin-left:18.3626625861px}.StatusClaimableCommandMobile{margin-left:0}.StatusClaimableCommandButton{background:#00AEEF;border:1px solid #00AEEF;color:#FFFFFF;cursor:pointer;transition:0.6s;transition-property:opacity;font-size:12.2417750574px;line-height:14.7697016067px;font-weight:400;padding:14.6901300689px}.StatusClaimableCommandButton:disabled{opacity:0.3}.StatusClaimableCommandButtonMobile{font-size:4.1025641026vw;line-height:4.8076923077vw;font-weight:700;padding:4.6153846154vw 5.8974358974vw}.StatusClaimableCommandTerms{font-size:11px;font-weight:400;margin-top:6.1208875287px;text-align:center}.StatusClaimableCommandTerms a{color:#000000}.StatusClaimableCommandTermsMobile{margin:2.0512820513vw 0;font-size:3.0769230769vw;line-height:3.6051282051vw}.LevelStatus{text-align:center;margin-top:6.1208875287px}.BonusTypeWrapper{margin-left:18.3626625861px}.BonusTypeRemaining{font-weight:400;padding:6.1208875287px 0;color:#00AEEF}.BonusTypeTargetMobile,.BonusTypeRemainingMobile{padding:2.0512820513vw 0}.BonusTypeGot{font-weight:400;padding:6.1208875287px 0;color:#7884A0}.BonusTypeGotMobile{padding:2.0512820513vw 0}.RewardsTopBarTitle{font-weight:700;color:#252631}.BonusRewardsLevels{margin-top:3.0604437643px}.BonusRewardsLevelsMobile{margin-top:3.0769230769vw}.BonusRewardsLevelsItem{display:flex;margin-bottom:3.0604437643px;padding:7.3450650344px 0}.BonusRewardsLevelsItemMobile{margin-bottom:1.2820512821vw;padding:0}.BonusRewardsLevelsItemPosition{margin-right:3.0604437643px}.SupportsWrapper{margin-top:21.4231063504px}.SupportsWrapper div{margin-top:9.181331293px}.SupportsWrapperMobile{margin-top:6.1538461538vw}.SupportsWrapperMobile div{margin-top:2.0512820513vw}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},io,oo,s,{rawbonus:14,endpoint:15,currency:16,lang:17,session:18},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["rawbonus","endpoint","currency","lang","session"]}get rawbonus(){return this.$$.ctx[14]}set rawbonus(e){this.$$set({rawbonus:e}),V()}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),V()}get currency(){return this.$$.ctx[16]}set currency(e){this.$$set({currency:e}),V()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),V()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),V()}},!customElements.get(so)&&customElements.define(so,ao);!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends J{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},co,lo,s,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),V()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),V()}});const uo={en:{wageringBonuses:{wageringBonus:"Wagering Bonus",levels:"Levels",level:"Level",eachLevel:"Each Level",infinite:"Infinite",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",terms:"Terms and Conditions",termsTip:'Learn more about the challenge rules and included games or events in <a target="__blank" href={tcUrl} > Terms and Conditions </a> section',rewards:"Rewards",allRewards:"All Rewards",includeBets:"Include bets",showMore:"Show More",collapse:"Collapse",claimable:"Claimable",active:"Active",completed:"Completed",locked:"Locked",inProgress:"InProgress",noBonuses:"No wagering bonuses found",status:"Status",target:"Target",targetOther:"This bonus is {status}",money:{target:"Play for {currencySymbol}{currentLevelIncrement} in total",remaining:"Remaining: {currencySymbol}{gap}",wagered:"Wagered: {currencySymbol}{wagered}"},betCount:{target:"Place {currentLevelIncrement}/{maxContribution} bets of at least {minStake} each",remaining:"Bets Remaining: {gap} bets",wagered:"Bets Placed: {wagered} bets"},reward:{cashBack:"Enroll to Cash Back",tournamentTicket:"Enroll to Tournament Ticket",oddsBoost:"Enroll to Odds Boost",freeRound:"{freespinNumber} Free Spins",percentage:"{bonusAmount}% up to {currency}{capAmount}",fixed:"{currency}{bonusAmount}",standard:"Bonus Money",freeBet:"Free Bet"},forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyWageringBonuses:"See My Wagering Bonuses"}}};
760
+ /* src/CasinoWageringBonusesController.svelte generated by Svelte v3.59.2 */
761
+ function ho(e,t,n){const r=e.slice();return r[30]=t[n],r}function po(e,t,n){const r=e.slice();return r[33]=t[n],r}
762
+ // (117:4) {#each Object.values(BonusStatusFilterType) as statusFilter}
763
+ function fo(e){let n,r,o,i,s,a=/*locale*/e[10](/*statusFilter*/e[33])+"",l=[/*classWithPartMatchMobile*/e[11]("WageringTab")],c={};for(let e=0;e<l.length;e+=1)c=t(c,l[e]);function u(){/*click_handler*/
764
+ return e[21](/*statusFilter*/e[33])}return{c(){n=g("div"),r=y(a),o=b(),B(n,c),H(n,"active",/*filter*/e[0]===/*statusFilter*/e[33])},m(e,t){p(e,n,t),h(n,r),h(n,o),i||(s=E(n,"click",u),i=!0)},p(t,o){e=t,/*locale*/1024&o[0]&&a!==(a=/*locale*/e[10](/*statusFilter*/e[33])+"")&&$(r,a,c.contenteditable),B(n,c=Z(l,[/*classWithPartMatchMobile*/2048&o[0]&&/*classWithPartMatchMobile*/e[11]("WageringTab")])),H(n,"active",/*filter*/e[0]===/*statusFilter*/e[33])},d(e){e&&f(n),i=!1,s()}}}
765
+ // (135:4) {:else}
766
+ function go(e){let n;function r(e,t){/*bonuses*/
767
+ return e[7].length>0?vo:/*errorMessage*/e[9]?bo:yo}let o=r(e),i=o(e),s=[/*classWithPartMatchMobile*/e[11]("Bonuses")],a={};for(let e=0;e<s.length;e+=1)a=t(a,s[e]);return{c(){n=g("div"),i.c(),B(n,a)},m(e,t){p(e,n,t),i.m(n,null)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(n,null))),B(n,a=Z(s,[/*classWithPartMatchMobile*/2048&t[0]&&/*classWithPartMatchMobile*/e[11]("Bonuses")]))},d(e){e&&f(n),i.d()}}}
768
+ // (133:4) {#if isLoading}
769
+ function mo(t){let n;return{c(){n=g("general-animation-loading")},m(e,t){p(e,n,t)},p:e,d(e){e&&f(n)}}}
770
+ // (155:8) {:else}
771
+ function yo(e){let t,n=/*locale*/e[10]("noBonuses")+"";return{c(){t=y(n)},m(e,n){p(e,t,n)},p(e,r){/*locale*/1024&r[0]&&n!==(n=/*locale*/e[10]("noBonuses")+"")&&A(t,n)},d(e){e&&f(t)}}}
772
+ // (153:8) {#if errorMessage}
773
+ function bo(e){let t,n,r;return{c(){t=g("div"),n=y("Error: "),r=y(/*errorMessage*/e[9]),w(t,"class","Error")},m(e,o){p(e,t,o),h(t,n),h(t,r)},p(e,t){/*errorMessage*/512&t[0]&&A(r,/*errorMessage*/e[9])},d(e){e&&f(t)}}}
774
+ // (137:6) {#if bonuses.length > 0}
775
+ function vo(e){let t,n=/*bonuses*/e[7],r=[];for(let t=0;t<n.length;t+=1)r[t]=Eo(ho(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=v()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);p(e,t,n)},p(e,o){if(/*endpoint, session, lang, currency, bonuses*/158&o[0]){let i;for(n=/*bonuses*/e[7],i=0;i<n.length;i+=1){const s=ho(e,n,i);r[i]?r[i].p(s,o):(r[i]=Eo(s),r[i].c(),r[i].m(t.parentNode,t))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(e){d(r,e),e&&f(t)}}}
776
+ // (138:8) {#each bonuses as item}
777
+ function Eo(e){let n,r=[{endpoint:/*endpoint*/e[1],session:/*session*/e[3],lang:/*lang*/e[2],currency:/*currency*/e[4],rawbonus:JSON.stringify(/*item*/e[30]),exportparts:Sr([{key:"ExpiryTime"},{key:"Status"},{key:"Levels"}])}],o={};for(let e=0;e<r.length;e+=1)o=t(o,r[e]);return{c(){n=g("casino-wagering-bonus"),B(n,o)},m(e,t){p(e,n,t)},p(e,t){B(n,o=Z(r,[/*endpoint, session, lang, currency, bonuses*/158&t[0]&&{endpoint:/*endpoint*/e[1],session:/*session*/e[3],lang:/*lang*/e[2],currency:/*currency*/e[4],rawbonus:JSON.stringify(/*item*/e[30]),exportparts:Sr([{key:"ExpiryTime"},{key:"Status"},{key:"Levels"}])}]))},d(e){e&&f(n)}}}function wo(n){let r,o,i,s,a,l=Object.values(de),c=[];for(let e=0;e<l.length;e+=1)c[e]=fo(po(n,l,e));let u=[/*classWithPartMatchMobile*/n[11]("WageringTabs")],m={};for(let e=0;e<u.length;e+=1)m=t(m,u[e]);function y(e,t){/*isLoading*/
778
+ return e[8]?mo:go}let v=y(n),w=v(n),T=[/*classWithPartMatchMobile*/n[11]("Root")],C={};for(let e=0;e<T.length;e+=1)C=t(C,T[e]);return{c(){r=g("div"),o=g("section");for(let e=0;e<c.length;e+=1)c[e].c();i=b(),s=g("div"),w.c(),this.c=e,B(o,m),B(r,C),G((()=>/*div1_elementresize_handler*/n[23].call(r)))},m(e,t){p(e,r,t),h(r,o);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(o,null);h(r,i),h(r,s),w.m(s,null),
779
+ /*div1_binding*/n[22](r),a=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=g("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=x();let o;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=E(window,"message",(e=>{e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=()=>{o=E(n.contentWindow,"resize",t),
778
780
  // make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)
779
781
  // see https://github.com/sveltejs/svelte/issues/4233
780
- t()}),h(e,n),()=>{(r||o&&n.contentWindow)&&o(),f(n)}}(r,/*div1_elementresize_handler*/n[17].bind(r))},p(e,[t]){if(/*classWithPartMatchMobile, filter, Object, BonusStatusFilterType, init, locale*/3585&t){let n;for(l=Object.values(de),n=0;n<l.length;n+=1){const r=uo(e,l,n);c[n]?c[n].p(r,t):(c[n]=ho(r),c[n].c(),c[n].m(o,null))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}B(o,m=Z(u,[/*classWithPartMatchMobile*/1024&t&&/*classWithPartMatchMobile*/e[10]("WageringTabs")])),v===(v=b(e))&&w?w.p(e,t):(w.d(1),w=v(e),w&&(w.c(),w.m(s,null))),B(r,C=Z(T,[/*classWithPartMatchMobile*/1024&t&&/*classWithPartMatchMobile*/e[10]("Root")]))},i:e,o:e,d(e){e&&f(r),d(c,e),w.d(),a()}}}function Eo(e,t,n){let r,o,i,s;c(e,vr,(e=>n(15,s=e)));let{endpoint:a=""}=t,{lang:l=be.en}=t,{session:u=""}=t,{currency:h="EUR"}=t,{filter:p=de.claimable}=t,{limit:f=""}=t,d=!1;P((()=>(n(13,d=!0),()=>{n(13,d=!1)})));let g,m,b=[],y=!0,v="";Er(lo);const E=(w={WageringProgressUpdate:e=>{n(6,b=b.map((t=>{let n=null==e?void 0:e.items[t.bonusWalletID];if(!n)return t;let{status:r,level:o,levelIncrement:i,gap:s}=n,a=Object.assign({},t);return a=Object.assign(Object.assign({},a),{wageringProgress:Object.assign(Object.assign({},a.wageringProgress),{currentLevel:o,currentLevelIncrement:i,gap:s})}),r&&(a=Object.assign(Object.assign({},a),{status:r}),setTimeout((()=>T()),500),r!==p)?null:a})).filter((e=>e)))}},e=>{let t=e.data;if(t)try{let e=JSON.parse(t);if(!e)return;Object.keys(w).map((t=>{if(e.messageType==t){const{messageType:n}=e,r=ve(e,["messageType"]);
782
+ t()}),h(e,n),()=>{(r||o&&n.contentWindow)&&o(),f(n)}}(r,/*div1_elementresize_handler*/n[23].bind(r))},p(e,t){if(/*classWithPartMatchMobile, filter, init, locale*/7169&t[0]){let n;for(l=Object.values(de),n=0;n<l.length;n+=1){const r=po(e,l,n);c[n]?c[n].p(r,t):(c[n]=fo(r),c[n].c(),c[n].m(o,null))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}B(o,m=Z(u,[/*classWithPartMatchMobile*/2048&t[0]&&/*classWithPartMatchMobile*/e[11]("WageringTabs")])),v===(v=y(e))&&w?w.p(e,t):(w.d(1),w=v(e),w&&(w.c(),w.m(s,null))),B(r,C=Z(T,[/*classWithPartMatchMobile*/2048&t[0]&&/*classWithPartMatchMobile*/e[11]("Root")]))},i:e,o:e,d(e){e&&f(r),d(c,e),w.d(),
783
+ /*div1_binding*/n[22](null),a()}}}function To(e,t,n){let r,o,i,s;c(e,Er,(e=>n(20,s=e)));let a,{endpoint:l=""}=t,{lang:u=ye.en}=t,{session:h=""}=t,{currency:p="EUR"}=t,{filter:f=de.claimable}=t,{limit:d=""}=t,{sortorder:g="desc"}=t,{clientstyling:m=""}=t,{clientstylingurl:y=""}=t,{translationurl:b=""}=t,v=!1;P((()=>(n(18,v=!0),()=>{n(18,v=!1)})));let E,w,T=[],B={},C=!0,S="";Tr(uo);const A=($={WageringProgressUpdate:e=>{n(7,T=T.map((t=>{let n=null==e?void 0:e.items[t.bonusWalletID];if(!n)return t;const{maxIdObj:r,maxId:o}=(e=>{
784
+ // @ts-ignore
785
+ const t=window.BigInt;if(!e||null==e||0===e.length)return;let n=t(e[0].id);return{maxIdObj:e.reduce(((e,r)=>{const o=t(r.id);return o>n?(n=o,r):e}),e[0]),maxId:n.toString()}})(n);let{status:i,level:s,levelIncrement:a,gap:l}=r;B[t.id]=o;let c=Object.assign({},t);return c=Object.assign(Object.assign({},c),{wageringProgress:Object.assign(Object.assign({},c.wageringProgress),{currentLevel:s,currentLevelIncrement:a,gap:l})}),i&&(c=Object.assign(Object.assign({},c),{status:i}),setTimeout((()=>_()),500),i!==f)?null:c})).filter((e=>e)))}},e=>{let t=e.data;if(t)try{let e=JSON.parse(t);if(!e)return;Object.keys($).map((t=>{if(e.messageType==t){const{messageType:n}=e,r=ve(e,["messageType"]);
781
786
  // console.log(messageType, restData);
782
- w[t](r)}}))}catch(e){console.error(e)}});var w;const T=async()=>{d&&p&&l&&u&&a&&(n(7,y=!0),await(async()=>{null==m||m.abort(),m=new AbortController;const e=await xe(m,a,u,{lang:l,status:"claimable"===p?"claimable":Ge(p),limit:f});e.success?(n(6,b=e.items||e.bonuses),Se(g,E),p===de.active&&(g=Le(a,u,b,E))):n(8,v=e.errorMessage)})(),n(7,y=!1))};let B;Ce({OnWageringBonusClaimed:()=>T(),OnWageringBonusExpired:()=>T()}),P((()=>()=>Se(g,E)));return e.$$set=e=>{"endpoint"in e&&n(1,a=e.endpoint),"lang"in e&&n(2,l=e.lang),"session"in e&&n(3,u=e.session),"currency"in e&&n(4,h=e.currency),"filter"in e&&n(0,p=e.filter),"limit"in e&&n(12,f=e.limit)},e.$$.update=()=>{/*isMounted*/8192&e.$$.dirty&&d&&T(),/*endpoint*/2&e.$$.dirty&&a&&T(),/*lang*/4&e.$$.dirty&&l&&T(),/*session*/8&e.$$.dirty&&u&&T(),/*innerWidth*/32&e.$$.dirty&&n(14,r=B<=648),/*isMobileView*/16384&e.$$.dirty&&n(10,o=e=>re(`${e}${r?` ${e}Mobile`:""}`)),/*$_*/32768&e.$$.dirty&&n(9,i=(e,t={})=>s("wageringBonuses."+e,{values:t}))},[p,a,l,u,h,B,b,y,v,i,o,T,f,d,r,s,e=>{p!==e&&(n(0,p=e),T())},function(){B=this.clientWidth,n(5,B)}]}class wo extends J{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}casino-wagering-bonus::part(Root){margin-bottom:30px}.Bonuses{display:flex;flex-wrap:wrap;justify-content:left;margin-top:10px;column-gap:10px}.BonusesMobile>casino-wagering-bonus{width:100%}.WageringTabs{margin:20px 0;font-size:16px}.WageringTab{display:inline;padding:8px;cursor:pointer;color:#000000;border-bottom:1px solid #00AEEF}.WageringTab.active{color:#00AEEF;border-bottom-width:3px;padding-bottom:6px;font-weight:700}.WageringTabsMobile{display:flex;justify-content:space-around}.WageringTabMobile{width:100%;text-align:center}.Error{color:red}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},Eo,vo,s,{endpoint:1,lang:2,session:3,currency:4,filter:0,limit:12},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["endpoint","lang","session","currency","filter","limit"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),V()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),V()}get session(){return this.$$.ctx[3]}set session(e){this.$$set({session:e}),V()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),V()}get filter(){return this.$$.ctx[0]}set filter(e){this.$$set({filter:e}),V()}get limit(){return this.$$.ctx[12]}set limit(e){this.$$set({limit:e}),V()}}
787
+ $[t](r)}}))}catch(e){console.error(e)}});var $;const L=()=>{Se(E,A),E=_e(l,h,T,A,B),E.onerror=()=>{L()}},_=async()=>{v&&f&&u&&h&&l&&(n(8,C=!0),await(async()=>{null==w||w.abort(),w=new AbortController;const e=await Re(w,l,h,{lang:u,status:"claimable"===f?"claimable":Fe(f),limit:d,sortOrder:g||"desc"});e.success?(n(7,T=e.items||e.bonuses),Se(E,A),f===de.active&&L()):n(9,S=e.errorMessage)})(),n(8,C=!1))};let x;Ce({OnWageringBonusClaimed:()=>_(),OnWageringBonusExpired:()=>_()}),P((()=>()=>Se(E,A)));return e.$$set=e=>{"endpoint"in e&&n(1,l=e.endpoint),"lang"in e&&n(2,u=e.lang),"session"in e&&n(3,h=e.session),"currency"in e&&n(4,p=e.currency),"filter"in e&&n(0,f=e.filter),"limit"in e&&n(13,d=e.limit),"sortorder"in e&&n(14,g=e.sortorder),"clientstyling"in e&&n(15,m=e.clientstyling),"clientstylingurl"in e&&n(16,y=e.clientstylingurl),"translationurl"in e&&n(17,b=e.translationurl)},e.$$.update=()=>{/*customStylingContainer, clientstyling*/32800&e.$$.dirty[0]&&a&&m&&((e,t)=>{let n=document.createElement("style");n.innerHTML=t,e.appendChild(n)})(a,m),/*customStylingContainer, clientstylingurl*/65568&e.$$.dirty[0]&&a&&y&&((e,t)=>{let n=new URL(t),r=document.createElement("style");fetch(n.href).then((e=>e.text())).then((t=>{r.innerHTML=t,setTimeout((()=>{e.appendChild(r)}),1)}))})(a,y),/*translationurl*/131072&e.$$.dirty[0]&&b&&((e,t)=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((n=>{t(n,e[n])}))})).catch((e=>{console.log(e)}))})(b,wr),/*isMounted*/262144&e.$$.dirty[0]&&v&&_(),/*endpoint*/2&e.$$.dirty[0]&&l&&_(),/*lang*/4&e.$$.dirty[0]&&u&&_(),/*session*/8&e.$$.dirty[0]&&h&&_(),/*sortorder*/16384&e.$$.dirty[0]&&g&&_(),/*innerWidth*/64&e.$$.dirty[0]&&n(19,r=x<=648),/*isMobileView*/524288&e.$$.dirty[0]&&n(11,o=e=>re(`${e}${r?` ${e}Mobile`:""}`)),/*$_*/1048576&e.$$.dirty[0]&&n(10,i=(e,t={})=>s("wageringBonuses."+e,{values:t}))},[f,l,u,h,p,a,x,T,C,S,i,o,_,d,g,m,y,b,v,r,s,e=>{f!==e&&(n(0,f=e),_())},function(e){M[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},function(){x=this.clientWidth,n(6,x)}]}class Bo extends J{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}casino-wagering-bonus::part(Root){margin-bottom:30px}.Root{background:var(--emfe-w-color-white, #FFFFFF);padding:20px;color:var(--emfe-w-color-black, #000000)}.Bonuses{display:flex;flex-wrap:wrap;justify-content:left;margin-top:10px;column-gap:10px}.BonusesMobile>casino-wagering-bonus{width:100%}.WageringTabs{margin:20px 0;font-size:16px}.WageringTab{display:inline;padding:8px;cursor:pointer;color:#000000;border-bottom:1px solid #00AEEF}.WageringTab.active{color:#00AEEF;border-bottom-width:3px;padding-bottom:6px;font-weight:700}.WageringTabsMobile{display:flex;justify-content:space-around}.WageringTabMobile{width:100%;text-align:center}.Error{color:red}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},To,wo,s,{endpoint:1,lang:2,session:3,currency:4,filter:0,limit:13,sortorder:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),V()))}static get observedAttributes(){return["endpoint","lang","session","currency","filter","limit","sortorder","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),V()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),V()}get session(){return this.$$.ctx[3]}set session(e){this.$$set({session:e}),V()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),V()}get filter(){return this.$$.ctx[0]}set filter(e){this.$$set({filter:e}),V()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),V()}get sortorder(){return this.$$.ctx[14]}set sortorder(e){this.$$set({sortorder:e}),V()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),V()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),V()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),V()}}
783
788
  // @ts-ignore
784
- return!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",wo),wo}));
789
+ return!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",Bo),Bo}));
785
790
  //# sourceMappingURL=casino-wagering-bonuses-controller.js.map