@everymatrix/casino-bonuses-controller 1.64.2 → 1.64.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Sd=Object.defineProperty,kd=Object.defineProperties;var Dd=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var Vo=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable;var ni=(t,e,n)=>e in t?Sd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Et=(t,e)=>{for(var n in e||(e={}))Vo.call(e,n)&&ni(t,n,e[n]);if(Yn)for(var n of Yn(e))jo.call(e,n)&&ni(t,n,e[n]);return t},ln=(t,e)=>kd(t,Dd(e));var ri=(t,e)=>{var n={};for(var r in t)Vo.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Yn)for(var r of Yn(t))e.indexOf(r)<0&&jo.call(t,r)&&(n[r]=t[r]);return n};var Ve=(t,e,n)=>(ni(t,typeof e!="symbol"?e+"":e,n),n);var Ue=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(u){i(u)}},s=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function D(t,e){for(const n in e)t[n]=e[n];return t}function dl(t){return t()}function Go(){return Object.create(null)}function Ye(t){t.forEach(dl)}function Ln(t){return typeof t=="function"}function Fn(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let qn;function Yo(t,e){return t===e?!0:(qn||(qn=document.createElement("a")),qn.href=e,t===qn.href)}function Bd(t){return Object.keys(t).length===0}function cl(t,...e){if(t==null){for(const r of e)r(void 0);return Pe}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function hl(t,e,n){t.$$.on_destroy.push(cl(e,n))}function Hn(t,e,n,r){if(t){const i=fl(t,e,n,r);return t[0](i)}}function fl(t,e,n,r){return t[1]&&r?D(n.ctx.slice(),t[1](r(e))):n.ctx}function Rn(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function zn(t,e,n,r,i,o){if(i){const s=fl(e,n,r,o);t.p(s,i)}}function Un(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Md(t){return t&&Ln(t.destroy)?t.destroy:Pe}const Od=["",!0,1,"true","contenteditable"];function p(t,e){t.appendChild(e)}function Tr(t,e,n){const r=Nd(t);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=n,Id(r,i)}}function Nd(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Id(t,e){return p(t.head||t,e),e.sheet}function I(t,e,n){t.insertBefore(e,n||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function bt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function ee(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function B(t){return document.createTextNode(t)}function U(){return B(" ")}function Ke(){return B("")}function Se(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function m(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ld=["width","height"];function S(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Ld.indexOf(r)===-1?t[r]=e[r]:m(t,r,e[r])}function pl(t,e){for(const n in e)m(t,n,e[n])}function He(t,e,n){const r=e.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:m(t,e,n)}function ml(t){return t===""?null:+t}function Fd(t){return Array.from(t.childNodes)}function fe(t,e){e=""+e,t.data!==e&&(t.data=e)}function Hd(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function te(t,e,n){~Od.indexOf(n)?Hd(t,e):fe(t,e)}function ur(t,e){t.value=e==null?"":e}function qo(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function se(t,e,n){t.classList.toggle(e,!!n)}function Rd(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let xn;function vn(t){xn=t}function zd(){if(!xn)throw new Error("Function called outside component initialization");return xn}function Pr(t){zd().$$.on_mount.push(t)}const Ut=[],ot=[];let Wt=[];const Xo=[],Ud=Promise.resolve();let Bi=!1;function $d(){Bi||(Bi=!0,Ud.then(de))}function Mi(t){Wt.push(t)}const ii=new Set;let Ft=0;function de(){if(Ft!==0)return;const t=xn;do{try{for(;Ft<Ut.length;){const e=Ut[Ft];Ft++,vn(e),Wd(e.$$)}}catch(e){throw Ut.length=0,Ft=0,e}for(vn(null),Ut.length=0,Ft=0;ot.length;)ot.pop()();for(let e=0;e<Wt.length;e+=1){const n=Wt[e];ii.has(n)||(ii.add(n),n())}Wt.length=0}while(Ut.length);for(;Xo.length;)Xo.pop()();Bi=!1,ii.clear(),vn(t)}function Wd(t){if(t.fragment!==null){t.update(),Ye(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Mi)}}function Vd(t){const e=[],n=[];Wt.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Wt=e}const nr=new Set;let Tt;function _l(){Tt={r:0,c:[],p:Tt}}function gl(){Tt.r||Ye(Tt.c),Tt=Tt.p}function Ge(t,e){t&&t.i&&(nr.delete(t),t.i(e))}function lt(t,e,n,r){if(t&&t.o){if(nr.has(t))return;nr.add(t),Tt.c.push(()=>{nr.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function Le(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function De(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=e[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(n[l]=a[l],i[l]=1);t[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in n||(n[s]=void 0);return n}function jd(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Mi(()=>{const o=t.$$.on_mount.map(dl).filter(Ln);t.$$.on_destroy?t.$$.on_destroy.push(...o):Ye(o),t.$$.on_mount=[]}),i.forEach(Mi)}function Gd(t,e){const n=t.$$;n.fragment!==null&&(Vd(n.after_update),Ye(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Yd(t,e){t.$$.dirty[0]===-1&&(Ut.push(t),$d(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Sr(t,e,n,r,i,o,s=null,a=[-1]){const l=xn;vn(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Pe,not_equal:i,bound:Go(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Go(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(t,e.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&Yd(t,c)),h}):[],u.update(),d=!0,Ye(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Fd(e.target);u.fragment&&u.fragment.l(c),c.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&Ge(t.$$.fragment),jd(t,e.target,e.anchor),de()}vn(l)}let bl;typeof HTMLElement=="function"&&(bl=class extends HTMLElement{constructor(e,n,r){super();Ve(this,"$$ctor");Ve(this,"$$s");Ve(this,"$$c");Ve(this,"$$cn",!1);Ve(this,"$$d",{});Ve(this,"$$r",!1);Ve(this,"$$p_d",{});Ve(this,"$$l",{});Ve(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){I(u,s,d)},d:function(u){u&&N(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Rd(this);for(const o of this.$$s)o in r&&(n[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=rr(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ln(Et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=rr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=rr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function rr(t,e,n,r){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function kr(t,e,n,r,i,o){let s=class extends bl{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=rr(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class Dr{constructor(){Ve(this,"$$");Ve(this,"$$set")}$destroy(){Gd(this,1),this.$destroy=Pe}$on(e,n){if(!Ln(n))return Pe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Bd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const qd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qd);const Ht=[];function Xd(t,e){return{subscribe:Br(t,e).subscribe}}function Br(t,e=Pe){let n;const r=new Set;function i(a){if(Fn(t,a)&&(t=a,n)){const l=!Ht.length;for(const u of r)u[1](),Ht.push(u,t);if(l){for(let u=0;u<Ht.length;u+=2)Ht[u][0](Ht[u+1]);Ht.length=0}}}function o(a){i(a(t))}function s(a,l=Pe){const u=[a,l];return r.add(u),r.size===1&&(n=e(i,o)||Pe),a(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function nn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return Xd(n,(s,a)=>{let l=!1;const u=[];let d=0,c=Pe;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=Ln(b)?b:Pe},f=i.map((b,_)=>cl(b,y=>{u[_]=y,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){Ye(f),c(),l=!1}})}function Zd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kd=function(e){return Jd(e)&&!Qd(e)};function Jd(t){return!!t&&typeof t=="object"}function Qd(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||nc(t)}var ec=typeof Symbol=="function"&&Symbol.for,tc=ec?Symbol.for("react.element"):60103;function nc(t){return t.$$typeof===tc}function rc(t){return Array.isArray(t)?[]:{}}function An(t,e){return e.clone!==!1&&e.isMergeableObject(t)?qt(rc(t),t,e):t}function ic(t,e,n){return t.concat(e).map(function(r){return An(r,n)})}function oc(t,e){if(!e.customMerge)return qt;var n=e.customMerge(t);return typeof n=="function"?n:qt}function sc(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Zo(t){return Object.keys(t).concat(sc(t))}function vl(t,e){try{return e in t}catch(n){return!1}}function ac(t,e){return vl(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function lc(t,e,n){var r={};return n.isMergeableObject(t)&&Zo(t).forEach(function(i){r[i]=An(t[i],n)}),Zo(e).forEach(function(i){ac(t,i)||(vl(t,i)&&n.isMergeableObject(e[i])?r[i]=oc(i,n)(t[i],e[i],n):r[i]=An(e[i],n))}),r}function qt(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||ic,n.isMergeableObject=n.isMergeableObject||Kd,n.cloneUnlessOtherwiseSpecified=An;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):lc(t,e,n):An(e,n)}qt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return qt(r,i,n)},{})};var uc=qt,dc=uc;const cc=Zd(dc);var Oi=function(t,e){return Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Oi(t,e)};function Mr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Oi(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Ze=function(){return Ze=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ze.apply(this,arguments)};function hc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function oi(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function si(t,e){var n=e&&e.cache?e.cache:vc,r=e&&e.serializer?e.serializer:gc,i=e&&e.strategy?e.strategy:mc;return i(t,{cache:n,serializer:r})}function fc(t){return t==null||typeof t=="number"||typeof t=="boolean"}function pc(t,e,n,r){var i=fc(r)?r:n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.call(this,r),e.set(i,o)),o}function yl(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.apply(this,r),e.set(i,o)),o}function wl(t,e,n,r,i){return n.bind(e,t,r,i)}function mc(t,e){var n=t.length===1?pc:yl;return wl(t,this,n,e.cache.create(),e.serializer)}function _c(t,e){return wl(t,this,yl,e.cache.create(),e.serializer)}var gc=function(){return JSON.stringify(arguments)},bc=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t}(),vc={create:function(){return new bc}},ai={variadic:_c},dr=function(){return dr=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)};var ce;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ce||(ce={}));var Ee;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ee||(Ee={}));var Xt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Xt||(Xt={}));function Ko(t){return t.type===Ee.literal}function yc(t){return t.type===Ee.argument}function Cl(t){return t.type===Ee.number}function El(t){return t.type===Ee.date}function xl(t){return t.type===Ee.time}function Al(t){return t.type===Ee.select}function Tl(t){return t.type===Ee.plural}function wc(t){return t.type===Ee.pound}function Pl(t){return t.type===Ee.tag}function Sl(t){return!!(t&&typeof t=="object"&&t.type===Xt.number)}function Ni(t){return!!(t&&typeof t=="object"&&t.type===Xt.dateTime)}var kl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cc=/(?:[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;function Ec(t){var e={};return t.replace(Cc,function(n){var r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Te=function(){return Te=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Te.apply(this,arguments)};var xc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ac(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(xc).filter(function(h){return h.length>0}),n=[],r=0,i=e;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function Tc(t){return t.replace(/^(.*?)-/,"")}var Jo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dl=/^(@+)?(\+|#+)?[rs]?$/g,Pc=/(\*)(0+)|(#+)(0+)|(0+)/g,Bl=/^(0+)$/;function Qo(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Dl,function(n,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Ml(t){switch(t){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 Sc(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Bl.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function es(t){var e={},n=Ml(t);return n||e}function kc(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Tc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Te(Te(Te({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Te(Te({},l),es(u))},{}));continue;case"engineering":e=Te(Te(Te({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Te(Te({},l),es(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Pc,function(l,u,d,c,h,f){if(u)e.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Bl.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(Jo.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jo,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Te(Te({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Te(Te({},e),Qo(o)));continue}if(Dl.test(i.stem)){e=Te(Te({},e),Qo(i.stem));continue}var s=Ml(i.stem);s&&(e=Te(Te({},e),s));var a=Sc(i.stem);a&&(e=Te(Te({},e),a))}return e}var Xn={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Dc(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Bc(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Bc(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,r;n!=="root"&&(r=t.maximize().region);var i=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return i[0]}var li,Mc=new RegExp("^".concat(kl.source,"*")),Oc=new RegExp("".concat(kl.source,"*$"));function he(t,e){return{start:t,end:e}}var Nc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ic=!!String.fromCodePoint,Lc=!!Object.fromEntries,Fc=!!String.prototype.codePointAt,Hc=!!String.prototype.trimStart,Rc=!!String.prototype.trimEnd,zc=!!Number.isSafeInteger,Uc=zc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ii=!0;try{var $c=Nl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ii=((li=$c.exec("a"))===null||li===void 0?void 0:li[0])==="a"}catch(t){Ii=!1}var ts=Nc?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},Li=Ic?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ns=Lc?Object.fromEntries:function(e){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Ol=Fc?function(e,n){return e.codePointAt(n)}:function(e,n){var r=e.length;if(!(n<0||n>=r)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Wc=Hc?function(e){return e.trimStart()}:function(e){return e.replace(Mc,"")},Vc=Rc?function(e){return e.trimEnd()}:function(e){return e.replace(Oc,"")};function Nl(t,e){return new RegExp(t,e)}var Fi;if(Ii){var rs=Nl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fi=function(e,n){var r;rs.lastIndex=n;var i=rs.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else Fi=function(e,n){for(var r=[];;){var i=Ol(e,n);if(i===void 0||Il(i)||qc(i))break;r.push(i),n+=i>=65536?2:1}return Li.apply(void 0,r)};var jc=function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Hi(this.peek()||0)){var s=this.parseTag(e,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hi(this.char()))return this.error(ce.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,he(r,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Yc(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=he(r,this.clonePosition());return{val:{type:Ee.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Gc(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Li.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&e>0?null:(this.bump(),Li(r))},t.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(e,n,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=Fi(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(e,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(e,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,he(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=Vc(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var f=he(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=he(i,this.clonePosition());if(u&&ts(u==null?void 0:u.style,"::",0)){var y=Wc(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var w=y;this.locale&&(w=Dc(y,this.locale));var h={type:Xt.dateTime,pattern:w,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ec(w):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:_,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,he(A,dr({},A)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),k=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),v=this.parseIdentifierIfPossible(),k=c.val}var x=this.tryParsePluralOrSelectOptions(e,a,n,v);if(x.err)return x;var b=this.tryParseArgumentClose(i);if(b.err)return b;var L=he(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:ns(x.val),location:L},err:null}:{val:{type:Ee.plural,value:r,options:ns(x.val),offset:k,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,he(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=Ac(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,n)}return{val:{type:Xt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?kc(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=he(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,n,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.val,location:he(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=he(i,this.clonePosition());return o?(s*=r,Uc(s)?{val:s,err:null}:this.error(n,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=Ol(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ts(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.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 n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Il(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return r!=null?r:null},t}();function Hi(t){return t>=97&&t<=122||t>=65&&t<=90}function Gc(t){return Hi(t)||t===47}function Yc(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Il(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function qc(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Ri(t){t.forEach(function(e){if(delete e.location,Al(e)||Tl(e))for(var n in e.options)delete e.options[n].location,Ri(e.options[n].value);else Cl(e)&&Sl(e.style)||(El(e)||xl(e))&&Ni(e.style)?delete e.style.location:Pl(e)&&Ri(e.children)})}function Xc(t,e){e===void 0&&(e={}),e=dr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new jc(t,e).parse();if(n.err){var r=SyntaxError(ce[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return e!=null&&e.captureLocation||Ri(n.val),n.val}var Zt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Zt||(Zt={}));var Or=function(t){Mr(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),is=function(t){Mr(e,t);function e(n,r,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Zt.INVALID_VALUE,o)||this}return e}(Or),Zc=function(t){Mr(e,t);function e(n,r,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Zt.INVALID_VALUE,i)||this}return e}(Or),Kc=function(t){Mr(e,t);function e(n,r){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Zt.MISSING_VALUE,r)||this}return e}(Or),Fe;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(Fe||(Fe={}));function Jc(t){return t.length<2?t:t.reduce(function(e,n){var r=e[e.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?e.push(n):r.value+=n.value,e},[])}function Qc(t){return typeof t=="function"}function ir(t,e,n,r,i,o,s){if(t.length===1&&Ko(t[0]))return[{type:Fe.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var d=u[l];if(Ko(d)){a.push({type:Fe.literal,value:d.value});continue}if(wc(d)){typeof o=="number"&&a.push({type:Fe.literal,value:n.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new Kc(c,s);var h=i[c];if(yc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Fe.literal:Fe.object,value:h});continue}if(El(d)){var f=typeof d.style=="string"?r.date[d.style]:Ni(d.style)?d.style.parsedOptions:void 0;a.push({type:Fe.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(xl(d)){var f=typeof d.style=="string"?r.time[d.style]:Ni(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:Fe.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(Cl(d)){var f=typeof d.style=="string"?r.number[d.style]:Sl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Fe.literal,value:n.getNumberFormat(e,f).format(h)});continue}if(Pl(d)){var b=d.children,_=d.value,y=i[_];if(!Qc(y))throw new Zc(_,"function",s);var w=ir(b,e,n,r,i,o),g=y(w.map(function(k){return k.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(k){return{type:typeof k=="string"?Fe.literal:Fe.object,value:k}}))}if(Al(d)){var A=d.options[h]||d.options.other;if(!A)throw new is(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,e,n,r,i));continue}if(Tl(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new Or(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var Sd=Object.defineProperty,kd=Object.defineProperties;var Dd=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var Vo=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable;var ni=(t,e,n)=>e in t?Sd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Et=(t,e)=>{for(var n in e||(e={}))Vo.call(e,n)&&ni(t,n,e[n]);if(Yn)for(var n of Yn(e))jo.call(e,n)&&ni(t,n,e[n]);return t},ln=(t,e)=>kd(t,Dd(e));var ri=(t,e)=>{var n={};for(var r in t)Vo.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Yn)for(var r of Yn(t))e.indexOf(r)<0&&jo.call(t,r)&&(n[r]=t[r]);return n};var Ve=(t,e,n)=>(ni(t,typeof e!="symbol"?e+"":e,n),n);var Ue=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(u){i(u)}},s=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function D(t,e){for(const n in e)t[n]=e[n];return t}function dl(t){return t()}function Go(){return Object.create(null)}function Ye(t){t.forEach(dl)}function Ln(t){return typeof t=="function"}function Fn(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let qn;function Yo(t,e){return t===e?!0:(qn||(qn=document.createElement("a")),qn.href=e,t===qn.href)}function Bd(t){return Object.keys(t).length===0}function cl(t,...e){if(t==null){for(const r of e)r(void 0);return Pe}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function hl(t,e,n){t.$$.on_destroy.push(cl(e,n))}function Hn(t,e,n,r){if(t){const i=fl(t,e,n,r);return t[0](i)}}function fl(t,e,n,r){return t[1]&&r?D(n.ctx.slice(),t[1](r(e))):n.ctx}function Rn(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function zn(t,e,n,r,i,o){if(i){const s=fl(e,n,r,o);t.p(s,i)}}function Un(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Md(t){return t&&Ln(t.destroy)?t.destroy:Pe}const Od=["",!0,1,"true","contenteditable"];function p(t,e){t.appendChild(e)}function Tr(t,e,n){const r=Nd(t);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=n,Id(r,i)}}function Nd(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Id(t,e){return p(t.head||t,e),e.sheet}function I(t,e,n){t.insertBefore(e,n||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function bt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function ee(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function B(t){return document.createTextNode(t)}function U(){return B(" ")}function Ke(){return B("")}function ke(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function m(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ld=["width","height"];function S(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Ld.indexOf(r)===-1?t[r]=e[r]:m(t,r,e[r])}function pl(t,e){for(const n in e)m(t,n,e[n])}function He(t,e,n){const r=e.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:m(t,e,n)}function ml(t){return t===""?null:+t}function Fd(t){return Array.from(t.childNodes)}function fe(t,e){e=""+e,t.data!==e&&(t.data=e)}function Hd(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function te(t,e,n){~Od.indexOf(n)?Hd(t,e):fe(t,e)}function ur(t,e){t.value=e==null?"":e}function qo(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function se(t,e,n){t.classList.toggle(e,!!n)}function Rd(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let xn;function vn(t){xn=t}function zd(){if(!xn)throw new Error("Function called outside component initialization");return xn}function Pr(t){zd().$$.on_mount.push(t)}const Ut=[],ot=[];let Wt=[];const Xo=[],Ud=Promise.resolve();let Bi=!1;function $d(){Bi||(Bi=!0,Ud.then(de))}function Mi(t){Wt.push(t)}const ii=new Set;let Ft=0;function de(){if(Ft!==0)return;const t=xn;do{try{for(;Ft<Ut.length;){const e=Ut[Ft];Ft++,vn(e),Wd(e.$$)}}catch(e){throw Ut.length=0,Ft=0,e}for(vn(null),Ut.length=0,Ft=0;ot.length;)ot.pop()();for(let e=0;e<Wt.length;e+=1){const n=Wt[e];ii.has(n)||(ii.add(n),n())}Wt.length=0}while(Ut.length);for(;Xo.length;)Xo.pop()();Bi=!1,ii.clear(),vn(t)}function Wd(t){if(t.fragment!==null){t.update(),Ye(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Mi)}}function Vd(t){const e=[],n=[];Wt.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Wt=e}const nr=new Set;let Tt;function _l(){Tt={r:0,c:[],p:Tt}}function gl(){Tt.r||Ye(Tt.c),Tt=Tt.p}function Ge(t,e){t&&t.i&&(nr.delete(t),t.i(e))}function lt(t,e,n,r){if(t&&t.o){if(nr.has(t))return;nr.add(t),Tt.c.push(()=>{nr.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function Le(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Se(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=e[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(n[l]=a[l],i[l]=1);t[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in n||(n[s]=void 0);return n}function jd(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Mi(()=>{const o=t.$$.on_mount.map(dl).filter(Ln);t.$$.on_destroy?t.$$.on_destroy.push(...o):Ye(o),t.$$.on_mount=[]}),i.forEach(Mi)}function Gd(t,e){const n=t.$$;n.fragment!==null&&(Vd(n.after_update),Ye(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Yd(t,e){t.$$.dirty[0]===-1&&(Ut.push(t),$d(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Sr(t,e,n,r,i,o,s=null,a=[-1]){const l=xn;vn(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Pe,not_equal:i,bound:Go(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Go(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(t,e.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&Yd(t,c)),h}):[],u.update(),d=!0,Ye(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Fd(e.target);u.fragment&&u.fragment.l(c),c.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&Ge(t.$$.fragment),jd(t,e.target,e.anchor),de()}vn(l)}let bl;typeof HTMLElement=="function"&&(bl=class extends HTMLElement{constructor(e,n,r){super();Ve(this,"$$ctor");Ve(this,"$$s");Ve(this,"$$c");Ve(this,"$$cn",!1);Ve(this,"$$d",{});Ve(this,"$$r",!1);Ve(this,"$$p_d",{});Ve(this,"$$l",{});Ve(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){I(u,s,d)},d:function(u){u&&N(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Rd(this);for(const o of this.$$s)o in r&&(n[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=rr(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ln(Et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=rr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=rr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function rr(t,e,n,r){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function kr(t,e,n,r,i,o){let s=class extends bl{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=rr(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class Dr{constructor(){Ve(this,"$$");Ve(this,"$$set")}$destroy(){Gd(this,1),this.$destroy=Pe}$on(e,n){if(!Ln(n))return Pe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Bd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const qd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qd);const Ht=[];function Xd(t,e){return{subscribe:Br(t,e).subscribe}}function Br(t,e=Pe){let n;const r=new Set;function i(a){if(Fn(t,a)&&(t=a,n)){const l=!Ht.length;for(const u of r)u[1](),Ht.push(u,t);if(l){for(let u=0;u<Ht.length;u+=2)Ht[u][0](Ht[u+1]);Ht.length=0}}}function o(a){i(a(t))}function s(a,l=Pe){const u=[a,l];return r.add(u),r.size===1&&(n=e(i,o)||Pe),a(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function nn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return Xd(n,(s,a)=>{let l=!1;const u=[];let d=0,c=Pe;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=Ln(b)?b:Pe},f=i.map((b,_)=>cl(b,y=>{u[_]=y,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){Ye(f),c(),l=!1}})}function Zd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kd=function(e){return Jd(e)&&!Qd(e)};function Jd(t){return!!t&&typeof t=="object"}function Qd(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||nc(t)}var ec=typeof Symbol=="function"&&Symbol.for,tc=ec?Symbol.for("react.element"):60103;function nc(t){return t.$$typeof===tc}function rc(t){return Array.isArray(t)?[]:{}}function An(t,e){return e.clone!==!1&&e.isMergeableObject(t)?qt(rc(t),t,e):t}function ic(t,e,n){return t.concat(e).map(function(r){return An(r,n)})}function oc(t,e){if(!e.customMerge)return qt;var n=e.customMerge(t);return typeof n=="function"?n:qt}function sc(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Zo(t){return Object.keys(t).concat(sc(t))}function vl(t,e){try{return e in t}catch(n){return!1}}function ac(t,e){return vl(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function lc(t,e,n){var r={};return n.isMergeableObject(t)&&Zo(t).forEach(function(i){r[i]=An(t[i],n)}),Zo(e).forEach(function(i){ac(t,i)||(vl(t,i)&&n.isMergeableObject(e[i])?r[i]=oc(i,n)(t[i],e[i],n):r[i]=An(e[i],n))}),r}function qt(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||ic,n.isMergeableObject=n.isMergeableObject||Kd,n.cloneUnlessOtherwiseSpecified=An;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):lc(t,e,n):An(e,n)}qt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return qt(r,i,n)},{})};var uc=qt,dc=uc;const cc=Zd(dc);var Oi=function(t,e){return Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Oi(t,e)};function Mr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Oi(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Ze=function(){return Ze=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ze.apply(this,arguments)};function hc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function oi(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function si(t,e){var n=e&&e.cache?e.cache:vc,r=e&&e.serializer?e.serializer:gc,i=e&&e.strategy?e.strategy:mc;return i(t,{cache:n,serializer:r})}function fc(t){return t==null||typeof t=="number"||typeof t=="boolean"}function pc(t,e,n,r){var i=fc(r)?r:n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.call(this,r),e.set(i,o)),o}function yl(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.apply(this,r),e.set(i,o)),o}function wl(t,e,n,r,i){return n.bind(e,t,r,i)}function mc(t,e){var n=t.length===1?pc:yl;return wl(t,this,n,e.cache.create(),e.serializer)}function _c(t,e){return wl(t,this,yl,e.cache.create(),e.serializer)}var gc=function(){return JSON.stringify(arguments)},bc=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t}(),vc={create:function(){return new bc}},ai={variadic:_c},dr=function(){return dr=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)};var ce;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ce||(ce={}));var Ee;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ee||(Ee={}));var Xt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Xt||(Xt={}));function Ko(t){return t.type===Ee.literal}function yc(t){return t.type===Ee.argument}function Cl(t){return t.type===Ee.number}function El(t){return t.type===Ee.date}function xl(t){return t.type===Ee.time}function Al(t){return t.type===Ee.select}function Tl(t){return t.type===Ee.plural}function wc(t){return t.type===Ee.pound}function Pl(t){return t.type===Ee.tag}function Sl(t){return!!(t&&typeof t=="object"&&t.type===Xt.number)}function Ni(t){return!!(t&&typeof t=="object"&&t.type===Xt.dateTime)}var kl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cc=/(?:[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;function Ec(t){var e={};return t.replace(Cc,function(n){var r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Te=function(){return Te=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Te.apply(this,arguments)};var xc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ac(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(xc).filter(function(h){return h.length>0}),n=[],r=0,i=e;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function Tc(t){return t.replace(/^(.*?)-/,"")}var Jo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dl=/^(@+)?(\+|#+)?[rs]?$/g,Pc=/(\*)(0+)|(#+)(0+)|(0+)/g,Bl=/^(0+)$/;function Qo(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Dl,function(n,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Ml(t){switch(t){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 Sc(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Bl.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function es(t){var e={},n=Ml(t);return n||e}function kc(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Tc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Te(Te(Te({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Te(Te({},l),es(u))},{}));continue;case"engineering":e=Te(Te(Te({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Te(Te({},l),es(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Pc,function(l,u,d,c,h,f){if(u)e.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Bl.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(Jo.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jo,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Te(Te({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Te(Te({},e),Qo(o)));continue}if(Dl.test(i.stem)){e=Te(Te({},e),Qo(i.stem));continue}var s=Ml(i.stem);s&&(e=Te(Te({},e),s));var a=Sc(i.stem);a&&(e=Te(Te({},e),a))}return e}var Xn={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Dc(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Bc(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Bc(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,r;n!=="root"&&(r=t.maximize().region);var i=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return i[0]}var li,Mc=new RegExp("^".concat(kl.source,"*")),Oc=new RegExp("".concat(kl.source,"*$"));function he(t,e){return{start:t,end:e}}var Nc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ic=!!String.fromCodePoint,Lc=!!Object.fromEntries,Fc=!!String.prototype.codePointAt,Hc=!!String.prototype.trimStart,Rc=!!String.prototype.trimEnd,zc=!!Number.isSafeInteger,Uc=zc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ii=!0;try{var $c=Nl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ii=((li=$c.exec("a"))===null||li===void 0?void 0:li[0])==="a"}catch(t){Ii=!1}var ts=Nc?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},Li=Ic?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ns=Lc?Object.fromEntries:function(e){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Ol=Fc?function(e,n){return e.codePointAt(n)}:function(e,n){var r=e.length;if(!(n<0||n>=r)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Wc=Hc?function(e){return e.trimStart()}:function(e){return e.replace(Mc,"")},Vc=Rc?function(e){return e.trimEnd()}:function(e){return e.replace(Oc,"")};function Nl(t,e){return new RegExp(t,e)}var Fi;if(Ii){var rs=Nl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fi=function(e,n){var r;rs.lastIndex=n;var i=rs.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else Fi=function(e,n){for(var r=[];;){var i=Ol(e,n);if(i===void 0||Il(i)||qc(i))break;r.push(i),n+=i>=65536?2:1}return Li.apply(void 0,r)};var jc=function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Hi(this.peek()||0)){var s=this.parseTag(e,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hi(this.char()))return this.error(ce.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,he(r,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Yc(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=he(r,this.clonePosition());return{val:{type:Ee.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Gc(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Li.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&e>0?null:(this.bump(),Li(r))},t.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(e,n,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=Fi(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(e,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(e,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,he(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=Vc(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var f=he(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=he(i,this.clonePosition());if(u&&ts(u==null?void 0:u.style,"::",0)){var y=Wc(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var w=y;this.locale&&(w=Dc(y,this.locale));var h={type:Xt.dateTime,pattern:w,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ec(w):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:_,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,he(A,dr({},A)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),k=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),v=this.parseIdentifierIfPossible(),k=c.val}var x=this.tryParsePluralOrSelectOptions(e,a,n,v);if(x.err)return x;var b=this.tryParseArgumentClose(i);if(b.err)return b;var L=he(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:ns(x.val),location:L},err:null}:{val:{type:Ee.plural,value:r,options:ns(x.val),offset:k,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,he(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=Ac(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,n)}return{val:{type:Xt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?kc(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=he(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,n,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.val,location:he(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=he(i,this.clonePosition());return o?(s*=r,Uc(s)?{val:s,err:null}:this.error(n,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=Ol(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ts(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.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 n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Il(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return r!=null?r:null},t}();function Hi(t){return t>=97&&t<=122||t>=65&&t<=90}function Gc(t){return Hi(t)||t===47}function Yc(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Il(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function qc(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Ri(t){t.forEach(function(e){if(delete e.location,Al(e)||Tl(e))for(var n in e.options)delete e.options[n].location,Ri(e.options[n].value);else Cl(e)&&Sl(e.style)||(El(e)||xl(e))&&Ni(e.style)?delete e.style.location:Pl(e)&&Ri(e.children)})}function Xc(t,e){e===void 0&&(e={}),e=dr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new jc(t,e).parse();if(n.err){var r=SyntaxError(ce[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return e!=null&&e.captureLocation||Ri(n.val),n.val}var Zt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Zt||(Zt={}));var Or=function(t){Mr(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),is=function(t){Mr(e,t);function e(n,r,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Zt.INVALID_VALUE,o)||this}return e}(Or),Zc=function(t){Mr(e,t);function e(n,r,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Zt.INVALID_VALUE,i)||this}return e}(Or),Kc=function(t){Mr(e,t);function e(n,r){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Zt.MISSING_VALUE,r)||this}return e}(Or),Fe;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(Fe||(Fe={}));function Jc(t){return t.length<2?t:t.reduce(function(e,n){var r=e[e.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?e.push(n):r.value+=n.value,e},[])}function Qc(t){return typeof t=="function"}function ir(t,e,n,r,i,o,s){if(t.length===1&&Ko(t[0]))return[{type:Fe.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var d=u[l];if(Ko(d)){a.push({type:Fe.literal,value:d.value});continue}if(wc(d)){typeof o=="number"&&a.push({type:Fe.literal,value:n.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new Kc(c,s);var h=i[c];if(yc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Fe.literal:Fe.object,value:h});continue}if(El(d)){var f=typeof d.style=="string"?r.date[d.style]:Ni(d.style)?d.style.parsedOptions:void 0;a.push({type:Fe.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(xl(d)){var f=typeof d.style=="string"?r.time[d.style]:Ni(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:Fe.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(Cl(d)){var f=typeof d.style=="string"?r.number[d.style]:Sl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Fe.literal,value:n.getNumberFormat(e,f).format(h)});continue}if(Pl(d)){var b=d.children,_=d.value,y=i[_];if(!Qc(y))throw new Zc(_,"function",s);var w=ir(b,e,n,r,i,o),g=y(w.map(function(k){return k.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(k){return{type:typeof k=="string"?Fe.literal:Fe.object,value:k}}))}if(Al(d)){var A=d.options[h]||d.options.other;if(!A)throw new is(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,e,n,r,i));continue}if(Tl(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new Or(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,Zt.MISSING_INTL_API,s);var v=n.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));A=d.options[v]||d.options.other}if(!A)throw new is(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,e,n,r,i,h-(d.offset||0)));continue}}return Jc(a)}function eh(t,e){return e?Ze(Ze(Ze({},t||{}),e||{}),Object.keys(t).reduce(function(n,r){return n[r]=Ze(Ze({},t[r]),e[r]||{}),n},{})):t}function th(t,e){return e?Object.keys(t).reduce(function(n,r){return n[r]=eh(t[r],e[r]),n},Ze({},t)):t}function ui(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function nh(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:si(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,oi([void 0],n,!1)))},{cache:ui(t.number),strategy:ai.variadic}),getDateTimeFormat:si(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,oi([void 0],n,!1)))},{cache:ui(t.dateTime),strategy:ai.variadic}),getPluralRules:si(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,oi([void 0],n,!1)))},{cache:ui(t.pluralRules),strategy:ai.variadic})}}var rh=function(){function t(e,n,r,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==Fe.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return ir(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=hc(s,["formatters"]);this.ast=t.__parse(e,Ze(Ze({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=th(t.formats,r),this.formatters=i&&i.formatters||nh(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=Xc,t.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"}}},t}();function ih(t,e){if(e==null)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const mt={},oh=(t,e,n)=>n&&(e in mt||(mt[e]={}),t in mt[e]||(mt[e][t]=n),n),Ll=(t,e)=>{if(e==null)return;if(e in mt&&t in mt[e])return mt[e][t];const n=Nr(e);for(let r=0;r<n.length;r++){const i=n[r],o=ah(i,t);if(o)return oh(t,e,o)}};let bo;const $n=Br({});function sh(t){return bo[t]||null}function Fl(t){return t in bo}function ah(t,e){if(!Fl(t))return null;const n=sh(t);return ih(n,e)}function lh(t){if(t==null)return;const e=Nr(t);for(let n=0;n<e.length;n++){const r=e[n];if(Fl(r))return r}}function Hl(t,...e){delete mt[t],$n.update(n=>(n[t]=cc.all([n[t]||{},...e]),n))}nn([$n],([t])=>Object.keys(t));$n.subscribe(t=>bo=t);const or={};function uh(t,e){or[t].delete(e),or[t].size===0&&delete or[t]}function Rl(t){return or[t]}function dh(t){return Nr(t).map(e=>{const n=Rl(e);return[e,n?[...n]:[]]}).filter(([,e])=>e.length>0)}function zi(t){return t==null?!1:Nr(t).some(e=>{var n;return(n=Rl(e))==null?void 0:n.size})}function ch(t,e){return Promise.all(e.map(r=>(uh(t,r),r().then(i=>i.default||i)))).then(r=>Hl(t,...r))}const un={};function zl(t){if(!zi(t))return t in un?un[t]:Promise.resolve();const e=dh(t);return un[t]=Promise.all(e.map(([n,r])=>ch(n,r))).then(()=>{if(zi(t))return zl(t);delete un[t]}),un[t]}const hh={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"}}},fh={fallbackLocale:null,loadingDelay:200,formats:hh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ph=fh;function Kt(){return ph}const di=Br(!1);var mh=Object.defineProperty,_h=Object.defineProperties,gh=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,bh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,ss=(t,e,n)=>e in t?mh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yh=(t,e)=>{for(var n in e||(e={}))bh.call(e,n)&&ss(t,n,e[n]);if(os)for(var n of os(e))vh.call(e,n)&&ss(t,n,e[n]);return t},wh=(t,e)=>_h(t,gh(e));let Ui;const cr=Br(null);function as(t){return t.split("-").map((e,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Nr(t,e=Kt().fallbackLocale){const n=as(t);return e?[...new Set([...n,...as(e)])]:n}function Mt(){return Ui!=null?Ui:void 0}cr.subscribe(t=>{Ui=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const Ch=t=>{if(t&&lh(t)&&zi(t)){const{loadingDelay:e}=Kt();let n;return typeof window!="undefined"&&Mt()!=null&&e?n=window.setTimeout(()=>di.set(!0),e):di.set(!0),zl(t).then(()=>{cr.set(t)}).finally(()=>{clearTimeout(n),di.set(!1)})}return cr.set(t)},rn=wh(yh({},cr),{set:Ch}),Ir=t=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=t(r)}};var Eh=Object.defineProperty,hr=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,ls=(t,e,n)=>e in t?Eh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vo=(t,e)=>{for(var n in e||(e={}))Ul.call(e,n)&&ls(t,n,e[n]);if(hr)for(var n of hr(e))$l.call(e,n)&&ls(t,n,e[n]);return t},on=(t,e)=>{var n={};for(var r in t)Ul.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hr)for(var r of hr(t))e.indexOf(r)<0&&$l.call(t,r)&&(n[r]=t[r]);return n};const Tn=(t,e)=>{const{formats:n}=Kt();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},xh=Ir(t=>{var e=t,{locale:n,format:r}=e,i=on(e,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Tn("number",r)),new Intl.NumberFormat(n,i)}),Ah=Ir(t=>{var e=t,{locale:n,format:r}=e,i=on(e,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Tn("date",r):Object.keys(i).length===0&&(i=Tn("date","short")),new Intl.DateTimeFormat(n,i)}),Th=Ir(t=>{var e=t,{locale:n,format:r}=e,i=on(e,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Tn("time",r):Object.keys(i).length===0&&(i=Tn("time","short")),new Intl.DateTimeFormat(n,i)}),Ph=(t={})=>{var e=t,{locale:n=Mt()}=e,r=on(e,["locale"]);return xh(vo({locale:n},r))},Sh=(t={})=>{var e=t,{locale:n=Mt()}=e,r=on(e,["locale"]);return Ah(vo({locale:n},r))},kh=(t={})=>{var e=t,{locale:n=Mt()}=e,r=on(e,["locale"]);return Th(vo({locale:n},r))},Dh=Ir((t,e=Mt())=>new rh(t,e,Kt().formats,{ignoreTag:Kt().ignoreTag})),Bh=(t,e={})=>{var n,r,i,o;let s=e;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=Mt(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Ll(t,l);if(!d)d=(o=(i=(r=(n=Kt()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:t,defaultValue:u}))!=null?i:u)!=null?o:t;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=Dh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,h.message)}return c},Mh=(t,e)=>kh(e).format(t),Oh=(t,e)=>Sh(e).format(t),Nh=(t,e)=>Ph(e).format(t),Ih=(t,e=Mt())=>Ll(t,e),Wl=nn([rn,$n],()=>Bh);nn([rn],()=>Mh);nn([rn],()=>Oh);nn([rn],()=>Nh);nn([rn,$n],()=>Ih);function fr(t,e){Hl(t,e)}function Vl(t){rn.set(t)}/*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
@@ -15,7 +15,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */var $i=function(t,e){return $i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},$i(t,e)};function Wn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Wi(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vi(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function ji(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||e)}function st(t){return typeof t=="function"}function jl(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ci=jl(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
17
17
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Gi(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Lr=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Wi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(st(d))try{d()}catch(_){o=_ instanceof ci?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Wi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{us(b)}catch(_){o=o!=null?o:[],_ instanceof ci?o=ji(ji([],Vi(o)),Vi(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new ci(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)us(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Gi(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Gi(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Gl=Lr.EMPTY;function Yl(t){return t instanceof Lr||t&&"closed"in t&&st(t.remove)&&st(t.add)&&st(t.unsubscribe)}function us(t){st(t)?t():t.unsubscribe()}var Lh={Promise:void 0},Fh={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,ji([t,e],Vi(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Hh(t){Fh.setTimeout(function(){throw t})}function ds(){}function sr(t){t()}var ql=function(t){Wn(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Yl(n)&&n.add(r)):r.destination=Uh,r}return e.create=function(n,r,i){return new Yi(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Lr),Rh=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){Zn(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){Zn(r)}else Zn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){Zn(n)}},t}(),Yi=function(t){Wn(e,t);function e(n,r,i){var o=t.call(this)||this,s;return st(n)||!n?s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=n,o.destination=new Rh(s),o}return e}(ql);function Zn(t){Hh(t)}function zh(t){throw t}var Uh={closed:!0,next:ds,error:zh,complete:ds},$h=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Wh(t){return t}function Vh(t){return t.length===0?Wh:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var cs=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,o=Gh(e)?e:new Yi(e,n,r);return sr(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=hs(n),new n(function(i,o){var s=new Yi({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[$h]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Vh(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=hs(e),new e(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function hs(t){var e;return(e=t!=null?t:Lh.Promise)!==null&&e!==void 0?e:Promise}function jh(t){return t&&st(t.next)&&st(t.error)&&st(t.complete)}function Gh(t){return t&&t instanceof ql||jh(t)&&Yl(t)}var Yh=jl(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xl=function(t){Wn(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new fs(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Yh},e.prototype.next=function(n){var r=this;sr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Wi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;sr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;sr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Gl:(this.currentObservers=null,a.push(n),new Lr(function(){r.currentObservers=null,Gi(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},e.prototype.asObservable=function(){var n=new cs;return n.source=this,n},e.create=function(n,r){return new fs(n,r)},e}(cs),fs=function(t){Wn(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Gl},e}(Xl),Zl={now:function(){return(Zl.delegate||Date).now()},delegate:void 0},qh=function(t){Wn(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Zl);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!n.closed;l+=o?1:2)n.next(a[l]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(Xl);const ps=[],ms={},Xh=(t,e=0)=>{if(ps.indexOf(t)==-1){const n=new qh(e);ms[t]=n,ps.push(t)}return ms[t]};window.emWidgets={topic:Xh};const Kl=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),pr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement"}}};function Fr(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Hr(t,e){const n=new URL(e);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,t&&t.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Rr(t,e,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,t&&t.appendChild(r)})}}function mr(t){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(t)}function ut(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ie(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function qe(t){Ie(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||mr(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Zh(t,e){Ie(2,arguments);var n=qe(t),r=ut(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Kh(t,e){Ie(2,arguments);var n=qe(t).getTime(),r=ut(e);return new Date(n+r)}var Jh={};function zr(){return Jh}function Qh(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function ef(t){return Ie(1,arguments),t instanceof Date||mr(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function tf(t){if(Ie(1,arguments),!ef(t)&&typeof t!="number")return!1;var e=qe(t);return!isNaN(Number(e))}function nf(t,e){Ie(2,arguments);var n=ut(e);return Kh(t,-n)}var rf=864e5;function of(t){Ie(1,arguments);var e=qe(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/rf)+1}function _r(t){Ie(1,arguments);var e=1,n=qe(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Jl(t){Ie(1,arguments);var e=qe(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=_r(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=_r(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function sf(t){Ie(1,arguments);var e=Jl(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=_r(n);return r}var af=6048e5;function lf(t){Ie(1,arguments);var e=qe(t),n=_r(e).getTime()-sf(e).getTime();return Math.round(n/af)+1}function gr(t,e){var n,r,i,o,s,a,l,u;Ie(1,arguments);var d=zr(),c=ut((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=qe(t),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function Ql(t,e){var n,r,i,o,s,a,l,u;Ie(1,arguments);var d=qe(t),c=d.getUTCFullYear(),h=zr(),f=ut((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=gr(b,e),y=new Date(0);y.setUTCFullYear(c,0,f),y.setUTCHours(0,0,0,0);var w=gr(y,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=w.getTime()?c:c-1}function uf(t,e){var n,r,i,o,s,a,l,u;Ie(1,arguments);var d=zr(),c=ut((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Ql(t,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=gr(f,e);return b}var df=6048e5;function cf(t,e){Ie(1,arguments);var n=qe(t),r=gr(n,e).getTime()-uf(n,e).getTime();return Math.round(r/df)+1}function ye(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var ft={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ye(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):ye(r+1,2)},d:function(e,n){return ye(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return ye(e.getUTCHours()%12||12,n.length)},H:function(e,n){return ye(e.getUTCHours(),n.length)},m:function(e,n){return ye(e.getUTCMinutes(),n.length)},s:function(e,n){return ye(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ye(o,n.length)}},Rt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hf={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return ft.y(e,n)},Y:function(e,n,r,i){var o=Ql(e,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return ye(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ye(s,n.length)},R:function(e,n){var r=Jl(e);return ye(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return ye(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return ye(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return ye(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return ft.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return ye(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var o=cf(e,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,n.length)},I:function(e,n,r){var i=lf(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):ye(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ft.d(e,n)},D:function(e,n,r){var i=of(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ye(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ye(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ye(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return ye(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),o;switch(i===12?o=Rt.noon:i===0?o=Rt.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),o;switch(i>=17?o=Rt.evening:i>=12?o=Rt.afternoon:i>=4?o=Rt.morning:o=Rt.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ft.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ft.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ft.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ft.s(e,n)},S:function(e,n){return ft.S(e,n)},X:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return gs(s);case"XXXX":case"XX":return At(s);case"XXXXX":case"XXX":default:return At(s,":")}},x:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"x":return gs(s);case"xxxx":case"xx":return At(s);case"xxxxx":case"xxx":default:return At(s,":")}},O:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+_s(s,":");case"OOOO":default:return"GMT"+At(s,":")}},z:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+_s(s,":");case"zzzz":default:return"GMT"+At(s,":")}},t:function(e,n,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ye(s,n.length)},T:function(e,n,r,i){var o=i._originalDate||e,s=o.getTime();return ye(s,n.length)}};function _s(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=e;return n+String(i)+s+ye(o,2)}function gs(t,e){if(t%60===0){var n=t>0?"-":"+";return n+ye(Math.abs(t)/60,2)}return At(t,e)}function At(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=ye(Math.floor(i/60),2),s=ye(i%60,2);return r+o+n+s}var bs=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},eu=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},ff=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return bs(e,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",bs(i,n)).replace("{{time}}",eu(o,n))},pf={p:eu,P:ff},mf=["D","DD"],_f=["YY","YYYY"];function gf(t){return mf.indexOf(t)!==-1}function bf(t){return _f.indexOf(t)!==-1}function vs(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yf=function(e,n,r){var i,o=vf[e];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function hi(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var wf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ef={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xf={date:hi({formats:wf,defaultWidth:"full"}),time:hi({formats:Cf,defaultWidth:"full"}),dateTime:hi({formats:Ef,defaultWidth:"full"})},Af={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tf=function(e,n,r,i){return Af[e]};function dn(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var Pf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Df={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Of=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Nf={ordinalNumber:Of,era:dn({values:Pf,defaultWidth:"wide"}),quarter:dn({values:Sf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dn({values:kf,defaultWidth:"wide"}),day:dn({values:Df,defaultWidth:"wide"}),dayPeriod:dn({values:Bf,defaultWidth:"wide",formattingValues:Mf,defaultFormattingWidth:"wide"})};function cn(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Lf(a,function(c){return c.test(s)}):If(a,function(c){return c.test(s)}),u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function If(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Lf(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function Ff(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Hf=/^(\d+)(th|st|nd|rd)?/i,Rf=/\d+/i,zf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Uf={any:[/^b/i,/^(a|c)/i]},$f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wf={any:[/1/i,/2/i,/3/i,/4/i]},Vf={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jf={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gf={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Yf={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xf={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zf={ordinalNumber:Ff({matchPattern:Hf,parsePattern:Rf,valueCallback:function(e){return parseInt(e,10)}}),era:cn({matchPatterns:zf,defaultMatchWidth:"wide",parsePatterns:Uf,defaultParseWidth:"any"}),quarter:cn({matchPatterns:$f,defaultMatchWidth:"wide",parsePatterns:Wf,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:cn({matchPatterns:Vf,defaultMatchWidth:"wide",parsePatterns:jf,defaultParseWidth:"any"}),day:cn({matchPatterns:Gf,defaultMatchWidth:"wide",parsePatterns:Yf,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:qf,defaultMatchWidth:"any",parsePatterns:Xf,defaultParseWidth:"any"})},Kf={code:"en-US",formatDistance:yf,formatLong:xf,formatRelative:Tf,localize:Nf,match:Zf,options:{weekStartsOn:0,firstWeekContainsDate:1}},Jf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ep=/^'([^]*?)'?$/,tp=/''/g,np=/[a-zA-Z]/;function yn(t,e,n){var r,i,o,s,a,l,u,d,c,h,f,b,_,y;Ie(2,arguments);var w=String(e),g=zr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:Kf,v=ut((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=ut((c=(h=(f=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=qe(t);if(!tf(x))throw new RangeError("Invalid time value");var L=Qh(x),W=nf(x,L),G={firstWeekContainsDate:v,weekStartsOn:k,locale:A,_originalDate:x},F=w.match(Qf).map(function(M){var R=M[0];if(R==="p"||R==="P"){var K=pf[R];return K(M,A.formatLong)}return M}).join("").match(Jf).map(function(M){if(M==="''")return"'";var R=M[0];if(R==="'")return rp(M);var K=hf[R];if(K)return bf(M)&&vs(M,e,String(t)),gf(M)&&vs(M,e,String(t)),K(W,M,A.localize,G);if(R.match(np))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return M}).join("");return F}function rp(t){var e=t.match(ep);return e?e[1].replace(tp,"'"):t}function ys(t,e){Ie(2,arguments);var n=ut(e);return Zh(t,-n)}/**
18
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Gi(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Lr=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Wi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(st(d))try{d()}catch(_){o=_ instanceof ci?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Wi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{us(b)}catch(_){o=o!=null?o:[],_ instanceof ci?o=ji(ji([],Vi(o)),Vi(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new ci(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)us(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Gi(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Gi(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Gl=Lr.EMPTY;function Yl(t){return t instanceof Lr||t&&"closed"in t&&st(t.remove)&&st(t.add)&&st(t.unsubscribe)}function us(t){st(t)?t():t.unsubscribe()}var Lh={Promise:void 0},Fh={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,ji([t,e],Vi(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Hh(t){Fh.setTimeout(function(){throw t})}function ds(){}function sr(t){t()}var ql=function(t){Wn(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Yl(n)&&n.add(r)):r.destination=Uh,r}return e.create=function(n,r,i){return new Yi(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Lr),Rh=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){Zn(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){Zn(r)}else Zn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){Zn(n)}},t}(),Yi=function(t){Wn(e,t);function e(n,r,i){var o=t.call(this)||this,s;return st(n)||!n?s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=n,o.destination=new Rh(s),o}return e}(ql);function Zn(t){Hh(t)}function zh(t){throw t}var Uh={closed:!0,next:ds,error:zh,complete:ds},$h=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Wh(t){return t}function Vh(t){return t.length===0?Wh:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var cs=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,o=Gh(e)?e:new Yi(e,n,r);return sr(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=hs(n),new n(function(i,o){var s=new Yi({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[$h]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Vh(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=hs(e),new e(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function hs(t){var e;return(e=t!=null?t:Lh.Promise)!==null&&e!==void 0?e:Promise}function jh(t){return t&&st(t.next)&&st(t.error)&&st(t.complete)}function Gh(t){return t&&t instanceof ql||jh(t)&&Yl(t)}var Yh=jl(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xl=function(t){Wn(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new fs(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Yh},e.prototype.next=function(n){var r=this;sr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Wi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;sr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;sr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Gl:(this.currentObservers=null,a.push(n),new Lr(function(){r.currentObservers=null,Gi(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},e.prototype.asObservable=function(){var n=new cs;return n.source=this,n},e.create=function(n,r){return new fs(n,r)},e}(cs),fs=function(t){Wn(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Gl},e}(Xl),Zl={now:function(){return(Zl.delegate||Date).now()},delegate:void 0},qh=function(t){Wn(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Zl);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!n.closed;l+=o?1:2)n.next(a[l]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(Xl);const ps=[],ms={},Xh=(t,e=0)=>{if(ps.indexOf(t)==-1){const n=new qh(e);ms[t]=n,ps.push(t)}return ms[t]};window.emWidgets={topic:Xh};const Kl=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),pr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement"}}};function Fr(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Hr(t,e){const n=new URL(e);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,t&&t.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Rr(t,e,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,t&&t.appendChild(r)})}}function mr(t){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(t)}function ut(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ie(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function qe(t){Ie(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||mr(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Zh(t,e){Ie(2,arguments);var n=qe(t),r=ut(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Kh(t,e){Ie(2,arguments);var n=qe(t).getTime(),r=ut(e);return new Date(n+r)}var Jh={};function zr(){return Jh}function Qh(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function ef(t){return Ie(1,arguments),t instanceof Date||mr(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function tf(t){if(Ie(1,arguments),!ef(t)&&typeof t!="number")return!1;var e=qe(t);return!isNaN(Number(e))}function nf(t,e){Ie(2,arguments);var n=ut(e);return Kh(t,-n)}var rf=864e5;function of(t){Ie(1,arguments);var e=qe(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/rf)+1}function _r(t){Ie(1,arguments);var e=1,n=qe(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Jl(t){Ie(1,arguments);var e=qe(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=_r(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=_r(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function sf(t){Ie(1,arguments);var e=Jl(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=_r(n);return r}var af=6048e5;function lf(t){Ie(1,arguments);var e=qe(t),n=_r(e).getTime()-sf(e).getTime();return Math.round(n/af)+1}function gr(t,e){var n,r,i,o,s,a,l,u;Ie(1,arguments);var d=zr(),c=ut((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=qe(t),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function Ql(t,e){var n,r,i,o,s,a,l,u;Ie(1,arguments);var d=qe(t),c=d.getUTCFullYear(),h=zr(),f=ut((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=gr(b,e),y=new Date(0);y.setUTCFullYear(c,0,f),y.setUTCHours(0,0,0,0);var w=gr(y,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=w.getTime()?c:c-1}function uf(t,e){var n,r,i,o,s,a,l,u;Ie(1,arguments);var d=zr(),c=ut((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Ql(t,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=gr(f,e);return b}var df=6048e5;function cf(t,e){Ie(1,arguments);var n=qe(t),r=gr(n,e).getTime()-uf(n,e).getTime();return Math.round(r/df)+1}function ye(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var ft={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ye(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):ye(r+1,2)},d:function(e,n){return ye(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return ye(e.getUTCHours()%12||12,n.length)},H:function(e,n){return ye(e.getUTCHours(),n.length)},m:function(e,n){return ye(e.getUTCMinutes(),n.length)},s:function(e,n){return ye(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ye(o,n.length)}},Rt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hf={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return ft.y(e,n)},Y:function(e,n,r,i){var o=Ql(e,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return ye(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ye(s,n.length)},R:function(e,n){var r=Jl(e);return ye(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return ye(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return ye(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return ye(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return ft.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return ye(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var o=cf(e,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,n.length)},I:function(e,n,r){var i=lf(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):ye(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ft.d(e,n)},D:function(e,n,r){var i=of(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ye(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ye(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ye(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return ye(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),o;switch(i===12?o=Rt.noon:i===0?o=Rt.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),o;switch(i>=17?o=Rt.evening:i>=12?o=Rt.afternoon:i>=4?o=Rt.morning:o=Rt.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ft.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ft.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ft.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ft.s(e,n)},S:function(e,n){return ft.S(e,n)},X:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return gs(s);case"XXXX":case"XX":return At(s);case"XXXXX":case"XXX":default:return At(s,":")}},x:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"x":return gs(s);case"xxxx":case"xx":return At(s);case"xxxxx":case"xxx":default:return At(s,":")}},O:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+_s(s,":");case"OOOO":default:return"GMT"+At(s,":")}},z:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+_s(s,":");case"zzzz":default:return"GMT"+At(s,":")}},t:function(e,n,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ye(s,n.length)},T:function(e,n,r,i){var o=i._originalDate||e,s=o.getTime();return ye(s,n.length)}};function _s(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=e;return n+String(i)+s+ye(o,2)}function gs(t,e){if(t%60===0){var n=t>0?"-":"+";return n+ye(Math.abs(t)/60,2)}return At(t,e)}function At(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=ye(Math.floor(i/60),2),s=ye(i%60,2);return r+o+n+s}var bs=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},eu=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},ff=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return bs(e,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",bs(i,n)).replace("{{time}}",eu(o,n))},pf={p:eu,P:ff},mf=["D","DD"],_f=["YY","YYYY"];function gf(t){return mf.indexOf(t)!==-1}function bf(t){return _f.indexOf(t)!==-1}function vs(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yf=function(e,n,r){var i,o=vf[e];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function hi(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var wf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ef={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xf={date:hi({formats:wf,defaultWidth:"full"}),time:hi({formats:Cf,defaultWidth:"full"}),dateTime:hi({formats:Ef,defaultWidth:"full"})},Af={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tf=function(e,n,r,i){return Af[e]};function dn(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var Pf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Df={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Of=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Nf={ordinalNumber:Of,era:dn({values:Pf,defaultWidth:"wide"}),quarter:dn({values:Sf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dn({values:kf,defaultWidth:"wide"}),day:dn({values:Df,defaultWidth:"wide"}),dayPeriod:dn({values:Bf,defaultWidth:"wide",formattingValues:Mf,defaultFormattingWidth:"wide"})};function cn(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Lf(a,function(c){return c.test(s)}):If(a,function(c){return c.test(s)}),u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function If(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Lf(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function Ff(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Hf=/^(\d+)(th|st|nd|rd)?/i,Rf=/\d+/i,zf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Uf={any:[/^b/i,/^(a|c)/i]},$f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wf={any:[/1/i,/2/i,/3/i,/4/i]},Vf={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jf={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gf={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Yf={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xf={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zf={ordinalNumber:Ff({matchPattern:Hf,parsePattern:Rf,valueCallback:function(e){return parseInt(e,10)}}),era:cn({matchPatterns:zf,defaultMatchWidth:"wide",parsePatterns:Uf,defaultParseWidth:"any"}),quarter:cn({matchPatterns:$f,defaultMatchWidth:"wide",parsePatterns:Wf,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:cn({matchPatterns:Vf,defaultMatchWidth:"wide",parsePatterns:jf,defaultParseWidth:"any"}),day:cn({matchPatterns:Gf,defaultMatchWidth:"wide",parsePatterns:Yf,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:qf,defaultMatchWidth:"any",parsePatterns:Xf,defaultParseWidth:"any"})},Kf={code:"en-US",formatDistance:yf,formatLong:xf,formatRelative:Tf,localize:Nf,match:Zf,options:{weekStartsOn:0,firstWeekContainsDate:1}},Jf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ep=/^'([^]*?)'?$/,tp=/''/g,np=/[a-zA-Z]/;function yn(t,e,n){var r,i,o,s,a,l,u,d,c,h,f,b,_,y;Ie(2,arguments);var w=String(e),g=zr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:Kf,v=ut((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=ut((c=(h=(f=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=qe(t);if(!tf(x))throw new RangeError("Invalid time value");var L=Qh(x),W=nf(x,L),Y={firstWeekContainsDate:v,weekStartsOn:k,locale:A,_originalDate:x},F=w.match(Qf).map(function(O){var R=O[0];if(R==="p"||R==="P"){var Z=pf[R];return Z(O,A.formatLong)}return O}).join("").match(Jf).map(function(O){if(O==="''")return"'";var R=O[0];if(R==="'")return rp(O);var Z=hf[R];if(Z)return bf(O)&&vs(O,e,String(t)),gf(O)&&vs(O,e,String(t)),Z(W,O,A.localize,Y);if(R.match(np))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return O}).join("");return F}function rp(t){var e=t.match(ep);return e?e[1].replace(tp,"'"):t}function ys(t,e){Ie(2,arguments);var n=ut(e);return Zh(t,-n)}/**
19
19
  * @license
20
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
21
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -50,7 +50,7 @@ PERFORMANCE OF THIS SOFTWARE.
50
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
51
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
52
  */const au=[],Xi=new Set,xo=new Set;function lu(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Ep(t){return lu(customElements.get(t))}function xp(t=[]){return[t].flat(1/0).filter(e=>e instanceof Co?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function uu(t,e){return(t||"").split(" ").some(n=>new RegExp(`^${n.split("*").join(".*")}$`,"u").test(e))}function du(t){return t.map(e=>e.cssText).join(`
53
- `)}const vr="vaadin-themable-mixin-style";function Ap(t,e){const n=document.createElement("style");n.id=vr,n.textContent=du(t),e.content.appendChild(n)}function Tp(t){if(!t.shadowRoot)return;const e=t.constructor;if(t instanceof Vt)[...t.shadowRoot.querySelectorAll("style")].forEach(n=>n.remove()),tu(t.shadowRoot,e.elementStyles);else{const n=t.shadowRoot.getElementById(vr),r=e.prototype._template;n.textContent=r.content.getElementById(vr).textContent}}function Pp(t){Xi.forEach(e=>{const n=e.deref();n instanceof t?Tp(n):n||Xi.delete(e)})}function cu(t){if(t.prototype instanceof Vt)t.elementStyles=t.finalizeStyles(t.styles);else{const e=t.prototype._template;e.content.getElementById(vr).textContent=du(t.getStylesForThis())}xo.forEach(e=>{const n=customElements.get(e);n!==t&&n.prototype instanceof t&&cu(n)})}function Sp(t,e){const n=t.__themes;return!n||!e?!1:n.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function ke(t,e,n={}){e=xp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,n):au.push({themeFor:t,styles:e,include:n.include,moduleId:n.moduleId}),t&&xo.forEach(r=>{if(uu(t,r)&&Ep(r)){const i=customElements.get(r);Sp(i,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),cu(i),Pp(i)}})}function Zi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():au}function kp(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function hu(t){const e=[];return t.include&&[].concat(t.include).forEach(n=>{const r=Zi().find(i=>i.moduleId===n);r?e.push(...hu(r),...r.styles):console.warn(`Included moduleId ${n} not found in style registry`)},t.styles),e}function Dp(t){const e=`${t}-default-theme`,n=Zi().filter(r=>r.moduleId!==e&&uu(r.themeFor,t)).map(r=>ln(Et({},r),{styles:[...hu(r),...r.styles],includePriority:kp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return n.length>0?n:Zi().filter(r=>r.moduleId===e)}const Ot=t=>class extends Cp(t){constructor(){super(),Xi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&xo.add(this.is),this.elementStyles)return;const n=this.prototype._template;!n||lu(this)||Ap(this.getStylesForThis(),n)}static finalizeStyles(n){const r=this.getStylesForThis();return n?[...[n].flat(1/0),...r]:r}static getStylesForThis(){const n=t.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...n,...i,...Dp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
53
+ `)}const vr="vaadin-themable-mixin-style";function Ap(t,e){const n=document.createElement("style");n.id=vr,n.textContent=du(t),e.content.appendChild(n)}function Tp(t){if(!t.shadowRoot)return;const e=t.constructor;if(t instanceof Vt)[...t.shadowRoot.querySelectorAll("style")].forEach(n=>n.remove()),tu(t.shadowRoot,e.elementStyles);else{const n=t.shadowRoot.getElementById(vr),r=e.prototype._template;n.textContent=r.content.getElementById(vr).textContent}}function Pp(t){Xi.forEach(e=>{const n=e.deref();n instanceof t?Tp(n):n||Xi.delete(e)})}function cu(t){if(t.prototype instanceof Vt)t.elementStyles=t.finalizeStyles(t.styles);else{const e=t.prototype._template;e.content.getElementById(vr).textContent=du(t.getStylesForThis())}xo.forEach(e=>{const n=customElements.get(e);n!==t&&n.prototype instanceof t&&cu(n)})}function Sp(t,e){const n=t.__themes;return!n||!e?!1:n.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function De(t,e,n={}){e=xp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,n):au.push({themeFor:t,styles:e,include:n.include,moduleId:n.moduleId}),t&&xo.forEach(r=>{if(uu(t,r)&&Ep(r)){const i=customElements.get(r);Sp(i,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),cu(i),Pp(i)}})}function Zi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():au}function kp(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function hu(t){const e=[];return t.include&&[].concat(t.include).forEach(n=>{const r=Zi().find(i=>i.moduleId===n);r?e.push(...hu(r),...r.styles):console.warn(`Included moduleId ${n} not found in style registry`)},t.styles),e}function Dp(t){const e=`${t}-default-theme`,n=Zi().filter(r=>r.moduleId!==e&&uu(r.themeFor,t)).map(r=>ln(Et({},r),{styles:[...hu(r),...r.styles],includePriority:kp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return n.length>0?n:Zi().filter(r=>r.moduleId===e)}const Ot=t=>class extends Cp(t){constructor(){super(),Xi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&xo.add(this.is),this.elementStyles)return;const n=this.prototype._template;!n||lu(this)||Ap(this.getStylesForThis(),n)}static finalizeStyles(n){const r=this.getStylesForThis();return n?[...[n].flat(1/0),...r]:r}static getStylesForThis(){const n=t.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...n,...i,...Dp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -412,7 +412,7 @@ PERFORMANCE OF THIS SOFTWARE.
412
412
  pre code {
413
413
  background: transparent;
414
414
  }
415
- `;ke("",Lp,{moduleId:"lumo-color"});/**
415
+ `;De("",Lp,{moduleId:"lumo-color"});/**
416
416
  * @license
417
417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
418
418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -528,7 +528,7 @@ PERFORMANCE OF THIS SOFTWARE.
528
528
  border-left: none;
529
529
  border-right: 2px solid var(--lumo-contrast-30pct);
530
530
  }
531
- `;ke("",Hp,{moduleId:"lumo-typography"});sn("typography-props",Fp);/**
531
+ `;De("",Hp,{moduleId:"lumo-typography"});sn("typography-props",Fp);/**
532
532
  * @license
533
533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
534
534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -597,7 +597,7 @@ PERFORMANCE OF THIS SOFTWARE.
597
597
  opacity: 1;
598
598
  }
599
599
  }
600
- `;ke("",fu,{moduleId:"lumo-overlay"});/**
600
+ `;De("",fu,{moduleId:"lumo-overlay"});/**
601
601
  * @license
602
602
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
603
603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -631,7 +631,7 @@ PERFORMANCE OF THIS SOFTWARE.
631
631
  opacity: 0;
632
632
  }
633
633
  }
634
- `;ke("",pu,{moduleId:"lumo-menu-overlay-core"});const Rp=pe`
634
+ `;De("",pu,{moduleId:"lumo-menu-overlay-core"});const Rp=pe`
635
635
  /* Small viewport (bottom sheet) styles */
636
636
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
637
637
  @media (max-width: 450px), (max-height: 450px) {
@@ -693,7 +693,7 @@ PERFORMANCE OF THIS SOFTWARE.
693
693
  transform: translateY(150%);
694
694
  }
695
695
  }
696
- `,mu=[fu,pu,Rp];ke("",mu,{moduleId:"lumo-menu-overlay"});const zp=pe`
696
+ `,mu=[fu,pu,Rp];De("",mu,{moduleId:"lumo-menu-overlay"});const zp=pe`
697
697
  [part='overlay'] {
698
698
  /*
699
699
  Width:
@@ -738,7 +738,7 @@ PERFORMANCE OF THIS SOFTWARE.
738
738
  max-height: 70vh;
739
739
  }
740
740
  }
741
- `;ke("vaadin-date-picker-overlay",[mu,zp],{moduleId:"lumo-date-picker-overlay"});const Up=pe`
741
+ `;De("vaadin-date-picker-overlay",[mu,zp],{moduleId:"lumo-date-picker-overlay"});const Up=pe`
742
742
  :host {
743
743
  /* Sizing */
744
744
  --lumo-button-size: var(--lumo-size-m);
@@ -1014,7 +1014,7 @@ PERFORMANCE OF THIS SOFTWARE.
1014
1014
  margin-left: 0;
1015
1015
  margin-right: 0;
1016
1016
  }
1017
- `;ke("vaadin-button",Up,{moduleId:"lumo-button"});ke("vaadin-date-picker-year",pe`
1017
+ `;De("vaadin-button",Up,{moduleId:"lumo-button"});De("vaadin-date-picker-year",pe`
1018
1018
  :host([current]) [part='year-number'] {
1019
1019
  color: var(--lumo-primary-text-color);
1020
1020
  }
@@ -1038,7 +1038,7 @@ PERFORMANCE OF THIS SOFTWARE.
1038
1038
  color: var(--lumo-disabled-text-color);
1039
1039
  content: '\\2022';
1040
1040
  }
1041
- `,{moduleId:"lumo-date-picker-year"});ke("vaadin-date-picker-overlay-content",pe`
1041
+ `,{moduleId:"lumo-date-picker-year"});De("vaadin-date-picker-overlay-content",pe`
1042
1042
  :host {
1043
1043
  position: relative;
1044
1044
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1188,7 +1188,7 @@ PERFORMANCE OF THIS SOFTWARE.
1188
1188
  padding-left: 50px;
1189
1189
  }
1190
1190
  }
1191
- `,{moduleId:"lumo-date-picker-overlay-content"});ke("vaadin-month-calendar",pe`
1191
+ `,{moduleId:"lumo-date-picker-overlay-content"});De("vaadin-month-calendar",pe`
1192
1192
  :host {
1193
1193
  -moz-user-select: none;
1194
1194
  -webkit-user-select: none;
@@ -1335,7 +1335,7 @@ PERFORMANCE OF THIS SOFTWARE.
1335
1335
  :host([disabled]) * {
1336
1336
  color: var(--lumo-disabled-text-color) !important;
1337
1337
  }
1338
- `,{moduleId:"lumo-month-calendar"});ke("vaadin-input-container",pe`
1338
+ `,{moduleId:"lumo-month-calendar"});De("vaadin-input-container",pe`
1339
1339
  :host {
1340
1340
  background: var(--_background);
1341
1341
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -1601,7 +1601,7 @@ PERFORMANCE OF THIS SOFTWARE.
1601
1601
  font-family: 'lumo-icons';
1602
1602
  display: block;
1603
1603
  }
1604
- `;ke("",_u,{moduleId:"lumo-field-button"});/**
1604
+ `;De("",_u,{moduleId:"lumo-field-button"});/**
1605
1605
  * @license
1606
1606
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1607
1607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1777,7 +1777,7 @@ PERFORMANCE OF THIS SOFTWARE.
1777
1777
  margin-left: 0;
1778
1778
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1779
1779
  }
1780
- `;ke("",gu,{moduleId:"lumo-required-field"});/**
1780
+ `;De("",gu,{moduleId:"lumo-required-field"});/**
1781
1781
  * @license
1782
1782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1783
1783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1912,7 +1912,7 @@ PERFORMANCE OF THIS SOFTWARE.
1912
1912
  [part='clear-button']::before {
1913
1913
  content: var(--lumo-icons-cross);
1914
1914
  }
1915
- `,bu=[gu,_u,Wp,Vp];ke("",bu,{moduleId:"lumo-input-field-shared-styles"});const jp=pe`
1915
+ `,bu=[gu,_u,Wp,Vp];De("",bu,{moduleId:"lumo-input-field-shared-styles"});const jp=pe`
1916
1916
  [part='toggle-button']::before {
1917
1917
  content: var(--lumo-icons-calendar);
1918
1918
  }
@@ -1934,7 +1934,7 @@ PERFORMANCE OF THIS SOFTWARE.
1934
1934
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1935
1935
  --_lumo-text-field-overflow-mask-image: none;
1936
1936
  }
1937
- `;ke("vaadin-date-picker",[bu,jp],{moduleId:"lumo-date-picker"});/**
1937
+ `;De("vaadin-date-picker",[bu,jp],{moduleId:"lumo-date-picker"});/**
1938
1938
  @license
1939
1939
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1940
1940
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2171,7 +2171,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2171
2171
  * @license
2172
2172
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2173
2173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2174
- */ke("vaadin-input-container",g_,{moduleId:"vaadin-input-container-styles"});class b_ extends __(Ot(Wr(vt))){static get is(){return"vaadin-input-container"}static get template(){return It`
2174
+ */De("vaadin-input-container",g_,{moduleId:"vaadin-input-container-styles"});class b_ extends __(Ot(Wr(vt))){static get is(){return"vaadin-input-container"}static get template(){return It`
2175
2175
  <slot name="prefix"></slot>
2176
2176
  <slot></slot>
2177
2177
  <slot name="suffix"></slot>
@@ -2325,7 +2325,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2325
2325
  * @license
2326
2326
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2327
2327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2328
- */ke("vaadin-date-picker-overlay",[v_,X_],{moduleId:"vaadin-date-picker-overlay-styles"});class Z_ extends q_(Wr(Ot(vt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return It`
2328
+ */De("vaadin-date-picker-overlay",[v_,X_],{moduleId:"vaadin-date-picker-overlay-styles"});class Z_ extends q_(Wr(Ot(vt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return It`
2329
2329
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2330
2330
  <div part="overlay" id="overlay">
2331
2331
  <div part="content" id="content">
@@ -2959,7 +2959,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2959
2959
  * @license
2960
2960
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2961
2961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2962
- */ke("vaadin-button",h0,{moduleId:"vaadin-button-styles"});class M0 extends B0(td(Ot(an(vt)))){static get is(){return"vaadin-button"}static get template(){return f0(It)}ready(){super.ready(),this._tooltipController=new rd(this),this.addController(this._tooltipController)}}Je(M0);/**
2962
+ */De("vaadin-button",h0,{moduleId:"vaadin-button-styles"});class M0 extends B0(td(Ot(an(vt)))){static get is(){return"vaadin-button"}static get template(){return f0(It)}ready(){super.ready(),this._tooltipController=new rd(this),this.addController(this._tooltipController)}}Je(M0);/**
2963
2963
  * @license
2964
2964
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2965
2965
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3204,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3207
- */ke("vaadin-month-calendar",sg,{moduleId:"vaadin-month-calendar-styles"});class ag extends og(Ot(vt)){static get template(){return It`
3207
+ */De("vaadin-month-calendar",sg,{moduleId:"vaadin-month-calendar-styles"});class ag extends og(Ot(vt)){static get template(){return It`
3208
3208
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3209
3209
  <table
3210
3210
  id="monthGrid"
@@ -3322,7 +3322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3322
3322
  * @license
3323
3323
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3324
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3325
- */ke("vaadin-date-picker-overlay-content",ug,{moduleId:"vaadin-date-picker-overlay-content-styles"});class dg extends lg(an(Ot(Wr(vt)))){static get template(){return It`
3325
+ */De("vaadin-date-picker-overlay-content",ug,{moduleId:"vaadin-date-picker-overlay-content-styles"});class dg extends lg(an(Ot(Wr(vt)))){static get template(){return It`
3326
3326
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3327
3327
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3328
3328
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */ke("vaadin-date-picker",[Bg,Ig],{moduleId:"vaadin-date-picker-styles"});class Lg extends Ng(Ag(Ot(td(vt)))){static get is(){return"vaadin-date-picker"}static get template(){return It`
3530
+ */De("vaadin-date-picker",[Bg,Ig],{moduleId:"vaadin-date-picker-styles"});class Lg extends Ng(Ag(Ot(td(vt)))){static get is(){return"vaadin-date-picker"}static get template(){return It`
3531
3531
  <div class="vaadin-date-picker-container">
3532
3532
  <div part="label">
3533
3533
  <slot name="label"></slot>
@@ -3569,9 +3569,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3569
3569
  ></vaadin-date-picker-overlay>
3570
3570
 
3571
3571
  <slot name="tooltip"></slot>
3572
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Tg(this,n=>{this._setInputElement(n),this._setFocusElement(n),this.stateTarget=n,this.ariaTarget=n},{uniqueIdPrefix:"search-input"})),this.addController(new Pg(this.inputElement,this._labelController)),this._tooltipController=new rd(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(n=>!n.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",n=>n.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Je(Lg);function Fg(t){Tr(t,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function Hg(t){let e,n,r;return{c(){e=E("span"),n=B(t[0]),r=B(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){I(i,e,o),p(e,n),p(e,r)},p(i,o){o&1&&fe(n,i[0])},d(i){i&&N(e)}}}function Rg(t){let e,n,r,i,o,s,a,l,u;const d=t[10].default,c=Hn(d,t,t[9],null),h=c||Hg(t);return{c(){e=E("div"),n=ee("svg"),r=ee("circle"),i=ee("circle"),s=ee("circle"),a=U(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",t[5]),m(i,"stroke-dashoffset",o=t[4]()),se(i,"Completed",t[1]==="completed"),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),se(s,"Completed",t[1]==="completed"),m(n,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,b){I(f,e,b),p(e,n),p(n,r),p(n,i),t[11](i),p(n,s),p(e,a),p(e,l),h&&h.m(l,null),t[12](e),u=!0},p(f,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&se(i,"Completed",f[1]==="completed"),(!u||b&2)&&se(s,"Completed",f[1]==="completed"),c?c.p&&(!u||b&512)&&zn(c,d,f,f[9],u?Rn(d,f[9],b,null):Un(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ge(h,f),u=!0)},o(f){lt(h,f),u=!1},d(f){f&&N(e),t[11](null),h&&h.d(f),t[12](null)}}}let aa=64.5;function zg(t,e,n){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(aa*2),f;Pr(()=>()=>{});function b(y){ot[y?"unshift":"push"](()=>{c=y,n(3,c)})}function _(y){ot[y?"unshift":"push"](()=>{f=y,n(2,f)})}return t.$$set=y=>{"value"in y&&n(0,s=y.value),"status"in y&&n(1,a=y.status),"mbsource"in y&&n(6,l=y.mbsource),"clientstyling"in y&&n(7,u=y.clientstyling),"clientstylingurl"in y&&n(8,d=y.clientstylingurl),"$$scope"in y&&n(9,o=y.$$scope)},t.$$.update=()=>{t.$$.dirty&132&&u&&f&&Fr(f,u),t.$$.dirty&260&&d&&f&&Hr(f,d),t.$$.dirty&68&&l&&f&&Rr(f,`${l}.Style`),t.$$.dirty&1&&n(4,r=()=>{var y=Math.PI*(aa*2);return s<0&&n(0,s=0),s>100&&n(0,s=100),(100-s)/100*y})},[s,a,f,c,r,h,l,u,d,o,i,b,_]}class Ug extends Dr{constructor(e){super(),Sr(this,e,zg,Rg,Fn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Fg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),de()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-progress",kr(Ug,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const la=t=>$g[t],$g={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$"};function Wg(t){Tr(t,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function ua(t,e,n){const r=t.slice();return r[82]=e[n],r[84]=n,r}function da(t,e,n){const r=t.slice();return r[85]=e[n],r}function ca(t,e,n){const r=t.slice();return r[76]=e[n],r}function ha(t,e,n){const r=t.slice();return r[79]=e[n],r}function fa(t,e,n){const r=t.slice();return r[88]=e[n],r[90]=n,r}function pa(t){var ne;let e,n,r,i,o,s=t[33](t[5]).indexOf("Casino")>-1,a,l=t[33](t[5]).indexOf("Sports")>-1,u,d=(t[5].name||((ne=t[5].presentation)==null?void 0:ne.name.content))+"",c,h,f,b,_,y,w,g=s&&ma(t),A=l&&_a(t),v=[t[41]("TitleIcon")],k={};for(let C=0;C<v.length;C+=1)k=D(k,v[C]);let x=[t[41]("BonusCardRowTitle")],L={};for(let C=0;C<x.length;C+=1)L=D(L,x[C]);function W(C,O){if(C[0]==="active")return jg;if(C[0]==="completed")return Vg}let G=W(t),F=G&&G(t),M=[t[41]("BonusCardHeader")],R={};for(let C=0;C<M.length;C+=1)R=D(R,M[C]);let K=Gg(t),X=t[10]&&Ba(t);function P(C,O){return C[14]?hb:cb}let z=P(t),re=z(t),be=[t[41]("BonusCardFooter")],oe={};for(let C=0;C<be.length;C+=1)oe=D(oe,be[C]);let j=[t[41]("BonusCardInfo")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let Y=t[9]&&za(t),ae=[t[41]("BonusCard")],J={};for(let C=0;C<ae.length;C+=1)J=D(J,ae[C]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=U(),A&&A.c(),u=U(),c=B(d),h=U(),F&&F.c(),f=U(),K&&K.c(),b=U(),_=E("div"),X&&X.c(),y=U(),re.c(),w=U(),Y&&Y.c(),S(o,k),S(i,L),S(r,R),S(_,oe),se(_,"Active",t[11]||t[12]),S(n,ie),S(e,J)},m(C,O){I(C,e,O),p(e,n),p(n,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),F&&F.m(r,null),p(n,f),K&&K.m(n,null),p(n,b),p(n,_),X&&X.m(_,null),p(_,y),re.m(_,null),p(e,w),Y&&Y.m(e,null),t[59](e)},p(C,O){var ue;O[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g?g.p(C,O):(g=ma(C),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?A?A.p(C,O):(A=_a(C),A.c(),A.m(o,null)):A&&(A.d(1),A=null),O[0]&32&&d!==(d=(C[5].name||((ue=C[5].presentation)==null?void 0:ue.name.content))+"")&&te(c,d,L.contenteditable),G===(G=W(C))&&F?F.p(C,O):(F&&F.d(1),F=G&&G(C),F&&(F.c(),F.m(r,null))),K.p(C,O),C[10]?X?X.p(C,O):(X=Ba(C),X.c(),X.m(_,y)):X&&(X.d(1),X=null),z===(z=P(C))&&re?re.p(C,O):(re.d(1),re=z(C),re&&(re.c(),re.m(_,null))),O[0]&6144&&se(_,"Active",C[11]||C[12]),C[9]?Y?Y.p(C,O):(Y=za(C),Y.c(),Y.m(e,null)):Y&&(Y.d(1),Y=null)},d(C){C&&N(e),g&&g.d(),A&&A.d(),F&&F.d(),K&&K.d(),X&&X.d(),re.d(),Y&&Y.d(),t[59](null)}}}function ma(t){let e,n,r,i,o,s,a,l,u,d,c,h,f,b=[t[41]("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){e=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(n,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(n,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),pl(e,_)},m(y,w){I(y,e,w),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},p:Pe,d(y){y&&N(e)}}}function _a(t){let e,n,r,i,o,s,a=[t[41]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){e=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),m(n,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(n,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),pl(e,l)},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s)},p:Pe,d(u){u&&N(e)}}}function Vg(t){let e,n=t[25](`bonusCard.${t[5].status}`)+"",r,i=[t[41]("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("p"),r=B(n),S(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&n!==(n=s[25](`bonusCard.${s[5].status}`)+"")&&te(r,n,o.contenteditable)},d(s){s&&N(e)}}}function jg(t){let e,n,r,i,o,s=[t[41]("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("span"),n=ee("svg"),r=ee("path"),i=U(),o=B(t[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(e,a)},m(l,u){I(l,e,u),p(e,n),p(n,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&te(o,l[18],a.contenteditable)},d(l){l&&N(e)}}}function Gg(t){let e,n,r;function i(h,f){return h[0]==="claimable"?qg:Yg}let o=i(t),s=o(t),a=[t[41]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=D(l,a[h]);let u=(t[0]==="active"||t[0]==="completed")&&Sa(t),d=[t[41]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){e=E("div"),n=E("div"),s.c(),r=U(),u&&u.c(),S(n,l),S(e,c)},m(h,f){I(h,e,f),p(e,n),s.m(n,null),p(e,r),u&&u.m(e,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(n,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=Sa(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&N(e),s.d(),u&&u.d()}}}function Yg(t){let e,n,r=t[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=t[25]("bonusCard.bonusType")+"",h,f,b,_,y=t[25](`bonusType.${t[5].type}`)+"",w,g,A,v,k,x,L=[t[41]("BonusCardLabel")],W={};for(let C=0;C<L.length;C+=1)W=D(W,L[C]);function G(C,O){return C[0]==="active"?Zg:Xg}let F=G(t),M=F(t),R=[t[41]("BonusCardRowText")],K={};for(let C=0;C<R.length;C+=1)K=D(K,R[C]);let X=[t[41]("BonusCardRow")],P={};for(let C=0;C<X.length;C+=1)P=D(P,X[C]);let z=[t[41]("BonusCardLabel")],re={};for(let C=0;C<z.length;C+=1)re=D(re,z[C]);let be=[t[41]("BonusCardRowText","Type")],oe={};for(let C=0;C<be.length;C+=1)oe=D(oe,be[C]);let j=[t[41]("BonusCardRow")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let Y=t[5].type==="standard"&&ga(t),ae=t[5].type==="freeBet"&&ba(t),J=t[5].type==="freeRound"&&va(t),ne=t[5].type==="wagering"&&Ca(t);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),M.c(),l=U(),u=E("p"),d=E("span"),h=B(c),f=B(":"),b=U(),_=E("span"),w=B(y),g=U(),Y&&Y.c(),A=U(),ae&&ae.c(),v=U(),J&&J.c(),k=U(),ne&&ne.c(),x=Ke(),S(n,W),S(a,K),se(a,"StatusActive",t[0]==="active"),se(a,"StatusCompleted",t[0]==="completed"),se(a,"StatusClaimable",t[0]==="claimable"),S(e,P),S(d,re),S(_,oe),S(u,ie)},m(C,O){I(C,e,O),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),M.m(a,null),I(C,l,O),I(C,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,w),I(C,g,O),Y&&Y.m(C,O),I(C,A,O),ae&&ae.m(C,O),I(C,v,O),J&&J.m(C,O),I(C,k,O),ne&&ne.m(C,O),I(C,x,O)},p(C,O){O[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&te(i,r,W.contenteditable),F===(F=G(C))&&M?M.p(C,O):(M.d(1),M=F(C),M&&(M.c(),M.m(a,null))),O[0]&1&&se(a,"StatusActive",C[0]==="active"),O[0]&1&&se(a,"StatusCompleted",C[0]==="completed"),O[0]&1&&se(a,"StatusClaimable",C[0]==="claimable"),O[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&te(h,c,re.contenteditable),O[0]&33554464&&y!==(y=C[25](`bonusType.${C[5].type}`)+"")&&te(w,y,oe.contenteditable),C[5].type==="standard"?Y?Y.p(C,O):(Y=ga(C),Y.c(),Y.m(A.parentNode,A)):Y&&(Y.d(1),Y=null),C[5].type==="freeBet"?ae?ae.p(C,O):(ae=ba(C),ae.c(),ae.m(v.parentNode,v)):ae&&(ae.d(1),ae=null),C[5].type==="freeRound"?J?J.p(C,O):(J=va(C),J.c(),J.m(k.parentNode,k)):J&&(J.d(1),J=null),C[5].type==="wagering"?ne?ne.p(C,O):(ne=Ca(C),ne.c(),ne.m(x.parentNode,x)):ne&&(ne.d(1),ne=null)},d(C){C&&(N(e),N(l),N(u),N(g),N(A),N(v),N(k),N(x)),M.d(),Y&&Y.d(C),ae&&ae.d(C),J&&J.d(C),ne&&ne.d(C)}}}function qg(t){let e,n,r=t[25]("bonusCard.bonusType")+"",i,o,s,a,l=t[25](`bonusType.${t[5].type}`)+"",u,d,c,h,f,b,_,y,w=t[25]("bonusCard.validity")+"",g,A,v,k,x=t[32](t[5])+"",L,W,G,F,M=t[25]("bonusCard.validUntil")+"",R,K,X,P,z=t[39](t[5].trigger.endTime)+"",re,be=[t[41]("BonusCardLabel")],oe={};for(let $=0;$<be.length;$+=1)oe=D(oe,be[$]);let j=[t[41]("BonusCardRowText","Type")],ie={};for(let $=0;$<j.length;$+=1)ie=D(ie,j[$]);let Y=[t[41]("BonusCardRow")],ae={};for(let $=0;$<Y.length;$+=1)ae=D(ae,Y[$]);let J=t[5].type==="standard"&&xa(t),ne=t[5].type==="freeBet"&&Aa(t),C=t[5].type==="freeRound"&&Ta(t),O=t[5].type==="wagering"&&Pa(t),ue=[t[41]("BonusCardLabel")],q={};for(let $=0;$<ue.length;$+=1)q=D(q,ue[$]);let Ce=[t[41]("BonusCardRowText")],Z={};for(let $=0;$<Ce.length;$+=1)Z=D(Z,Ce[$]);let Ae=[t[41]("BonusCardRow")],ge={};for(let $=0;$<Ae.length;$+=1)ge=D(ge,Ae[$]);let Qe=[t[41]("BonusCardLabel")],et={};for(let $=0;$<Qe.length;$+=1)et=D(et,Qe[$]);let dt=[t[41]("BonusCardRowText")],tt={};for(let $=0;$<dt.length;$+=1)tt=D(tt,dt[$]);let wt=[t[41]("BonusCardRow")],Ct={};for(let $=0;$<wt.length;$+=1)Ct=D(Ct,wt[$]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),J&&J.c(),c=U(),ne&&ne.c(),h=U(),C&&C.c(),f=U(),O&&O.c(),b=U(),_=E("p"),y=E("span"),g=B(w),A=B(":"),v=U(),k=E("span"),L=B(x),W=U(),G=E("p"),F=E("span"),R=B(M),K=B(":"),X=U(),P=E("span"),re=B(z),S(n,oe),S(a,ie),S(e,ae),S(y,q),S(k,Z),S(_,ge),S(F,et),S(P,tt),S(G,Ct)},m($,ve){I($,e,ve),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I($,d,ve),J&&J.m($,ve),I($,c,ve),ne&&ne.m($,ve),I($,h,ve),C&&C.m($,ve),I($,f,ve),O&&O.m($,ve),I($,b,ve),I($,_,ve),p(_,y),p(y,g),p(y,A),p(_,v),p(_,k),p(k,L),I($,W,ve),I($,G,ve),p(G,F),p(F,R),p(F,K),p(G,X),p(G,P),p(P,re)},p($,ve){ve[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&te(i,r,oe.contenteditable),ve[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&te(u,l,ie.contenteditable),$[5].type==="standard"?J?J.p($,ve):(J=xa($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?ne?ne.p($,ve):(ne=Aa($),ne.c(),ne.m(h.parentNode,h)):ne&&(ne.d(1),ne=null),$[5].type==="freeRound"?C?C.p($,ve):(C=Ta($),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),$[5].type==="wagering"?O?O.p($,ve):(O=Pa($),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),ve[0]&33554432&&w!==(w=$[25]("bonusCard.validity")+"")&&te(g,w,q.contenteditable),ve[0]&32&&x!==(x=$[32]($[5])+"")&&te(L,x,Z.contenteditable),ve[0]&33554432&&M!==(M=$[25]("bonusCard.validUntil")+"")&&te(R,M,et.contenteditable),ve[0]&32&&z!==(z=$[39]($[5].trigger.endTime)+"")&&te(re,z,tt.contenteditable)},d($){$&&(N(e),N(d),N(c),N(h),N(f),N(b),N(_),N(W),N(G)),J&&J.d($),ne&&ne.d($),C&&C.d($),O&&O.d($)}}}function Xg(t){let e=t[25](`bonusCard.${t[5].status}`)+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&fe(n,e)},d(r){r&&N(n)}}}function Zg(t){let e=t[25](`bonusCard.${t[0]}`)+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&fe(n,e)},d(r){r&&N(n)}}}function ga(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h,f,b=t[5].amount+"",_,y,w,g,A,v=t[25]("bonusCard.wageredAmount")+"",k,x,L,W,G=t[29](t[5])+t[17]+"",F,M,R=[t[41]("BonusCardLabel")],K={};for(let O=0;O<R.length;O+=1)K=D(K,R[O]);let X=[t[41]("BonusCardRowText")],P={};for(let O=0;O<X.length;O+=1)P=D(P,X[O]);let z=[t[41]("BonusCardRow")],re={};for(let O=0;O<z.length;O+=1)re=D(re,z[O]);let be=[t[41]("BonusCardLabel")],oe={};for(let O=0;O<be.length;O+=1)oe=D(oe,be[O]);function j(O,ue){return O[5].initialWagerRequirementAmount>=2147483647?Jg:Kg}let ie=j(t),Y=ie(t),ae=[t[41]("BonusCardRowText")],J={};for(let O=0;O<ae.length;O+=1)J=D(J,ae[O]);let ne=[t[41]("BonusCardRow")],C={};for(let O=0;O<ne.length;O+=1)C=D(C,ne[O]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),h=B(` /
3573
- `),f=E("span"),_=B(b),y=B(t[17]),w=U(),g=E("p"),A=E("span"),k=B(v),x=B(":"),L=U(),W=E("span"),F=B(G),M=B(` /
3574
- `),Y.c(),S(n,K),se(l,"BonusAmount",t[0]==="active"),se(f,"Amount",t[0]==="active"),S(a,P),S(e,re),S(A,oe),S(W,J),S(g,C)},m(O,ue){I(O,e,ue),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,y),I(O,w,ue),I(O,g,ue),p(g,A),p(A,k),p(A,x),p(g,L),p(g,W),p(W,F),p(W,M),Y.m(W,null)},p(O,ue){ue[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&te(i,r,K.contenteditable),ue[0]&32&&u!==(u=O[5].remainingAmount+"")&&fe(d,u),ue[0]&131072&&fe(c,O[17]),ue[0]&1&&se(l,"BonusAmount",O[0]==="active"),ue[0]&32&&b!==(b=O[5].amount+"")&&fe(_,b),ue[0]&131072&&fe(y,O[17]),ue[0]&1&&se(f,"Amount",O[0]==="active"),ue[0]&33554432&&v!==(v=O[25]("bonusCard.wageredAmount")+"")&&te(k,v,oe.contenteditable),ue[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&te(F,G,J.contenteditable),ie===(ie=j(O))&&Y?Y.p(O,ue):(Y.d(1),Y=ie(O),Y&&(Y.c(),Y.m(W,null)))},d(O){O&&(N(e),N(w),N(g)),Y.d()}}}function Kg(t){let e=t[5].initialWagerRequirementAmount+t[17]+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,e)},d(r){r&&N(n)}}}function Jg(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function ba(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h=[t[41]("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=[t[41]("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=D(_,b[g]);let y=[t[41]("BonusCardRow")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),S(n,f),se(l,"BonusAmount",t[0]==="active"),S(a,_),S(e,w)},m(g,A){I(g,e,A),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&fe(d,u),A[0]&131072&&fe(c,g[17]),A[0]&1&&se(l,"BonusAmount",g[0]==="active")},d(g){g&&N(e)}}}function va(t){let e,n=t[5].status==="active"&&ya(t);return{c(){n&&n.c(),e=Ke()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5].status==="active"?n?n.p(r,i):(n=ya(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){r&&N(e),n&&n.d(r)}}}function ya(t){let e,n,r=t[25]("bonusCard.roundNumber")+"",i,o,s,a,l=t[5].numberOfFreeSpin+"",u,d,c,h,f=t[25]("bonusCard.game")+"",b,_,y,w,g,A,v,k,x,L,W,G,F,M,R,K,X,P,z,re=[t[41]("BonusCardLabel")],be={};for(let Z=0;Z<re.length;Z+=1)be=D(be,re[Z]);let oe=[t[41]("BonusCardRowText")],j={};for(let Z=0;Z<oe.length;Z+=1)j=D(j,oe[Z]);let ie=[t[41]("BonusCardRow")],Y={};for(let Z=0;Z<ie.length;Z+=1)Y=D(Y,ie[Z]);let ae=[t[41]("BonusCardLabel")],J={};for(let Z=0;Z<ae.length;Z+=1)J=D(J,ae[Z]);let ne=Le(t[23]),C=[];for(let Z=0;Z<ne.length;Z+=1)C[Z]=wa(fa(t,ne,Z));let O=[t[41]("BonusCardRowText")],ue={};for(let Z=0;Z<O.length;Z+=1)ue=D(ue,O[Z]);let q=[t[41]("BonusCardRow")],Ce={};for(let Z=0;Z<q.length;Z+=1)Ce=D(Ce,q[Z]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("div"),h=E("div"),b=B(f),_=B(":"),y=U(),w=E("div"),g=E("div"),A=E("button"),v=ee("svg"),k=ee("path"),L=U(),W=E("div"),G=E("span");for(let Z=0;Z<C.length;Z+=1)C[Z].c();F=U(),M=E("button"),R=ee("svg"),K=ee("path"),S(n,be),S(a,j),S(e,Y),S(h,J),m(k,"stroke-linecap","round"),m(k,"stroke-linejoin","round"),m(k,"stroke-width","2"),m(k,"d","M15 19l-7-7 7-7"),m(v,"fill","none"),m(v,"stroke","currentColor"),m(v,"viewBox","0 0 24 24"),m(v,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=t[24]==0,se(A,"Hide",t[23].length<=3),m(G,"class","Games"),qo(G,"transform","translateX("+t[24]+"px)"),m(W,"class","Main"),m(K,"stroke-linecap","round"),m(K,"stroke-linejoin","round"),m(K,"stroke-width","2"),m(K,"d","M9 5l7 7-7 7"),m(R,"fill","none"),m(R,"stroke","currentColor"),m(R,"viewBox","0 0 24 24"),m(R,"xmlns","http://www.w3.org/2000/svg"),m(M,"class","SliderNavButton"),m(M,"part","SliderNavButton"),M.disabled=X=t[24]<=-(t[23].length-3)*100,se(M,"Hide",t[23].length<=3),m(g,"class","BonusGamesSlider"),S(w,ue),S(c,Ce)},m(Z,Ae){I(Z,e,Ae),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(Z,d,Ae),I(Z,c,Ae),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),p(w,g),p(g,A),p(A,v),p(v,k),p(g,L),p(g,W),p(W,G);for(let ge=0;ge<C.length;ge+=1)C[ge]&&C[ge].m(G,null);p(g,F),p(g,M),p(M,R),p(R,K),P||(z=[Se(A,"click",t[52]),Se(M,"click",t[56])],P=!0)},p(Z,Ae){if(Ae[0]&33554432&&r!==(r=Z[25]("bonusCard.roundNumber")+"")&&te(i,r,be.contenteditable),Ae[0]&32&&l!==(l=Z[5].numberOfFreeSpin+"")&&te(u,l,j.contenteditable),Ae[0]&33554432&&f!==(f=Z[25]("bonusCard.game")+"")&&te(b,f,J.contenteditable),Ae[0]&16777216&&x!==(x=Z[24]==0)&&(A.disabled=x),Ae[0]&8388608&&se(A,"Hide",Z[23].length<=3),Ae[0]&48234496|Ae[1]&14336){ne=Le(Z[23]);let ge;for(ge=0;ge<ne.length;ge+=1){const Qe=fa(Z,ne,ge);C[ge]?C[ge].p(Qe,Ae):(C[ge]=wa(Qe),C[ge].c(),C[ge].m(G,null))}for(;ge<C.length;ge+=1)C[ge].d(1);C.length=ne.length}Ae[0]&16777216&&qo(G,"transform","translateX("+Z[24]+"px)"),Ae[0]&25165824&&X!==(X=Z[24]<=-(Z[23].length-3)*100)&&(M.disabled=X),Ae[0]&8388608&&se(M,"Hide",Z[23].length<=3)},d(Z){Z&&(N(e),N(d),N(c)),bt(C,Z),P=!1,Ye(z)}}}function wa(t){let e,n,r=t[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return t[53](t[88])}function y(){return t[54](t[90])}return{c(){e=E("span"),n=E("span"),i=B(r),a=U(),l=E("img"),h=U(),m(n,"class",o="PlayNowButton "+(t[21]&&t[22]==t[90]?"ItemHover":"")),m(n,"part",s="PlayNowButton "+(t[21]&&t[22]==t[90]?"itemHover":"")),Yo(l.src,u=t[88].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=t[88].name),m(l,"title",c=t[88].name),m(e,"class","Game"),m(e,"part","Game")},m(w,g){I(w,e,g),p(e,n),p(n,i),p(e,a),p(e,l),p(e,h),f||(b=[Se(e,"click",_),Se(e,"mouseenter",y),Se(e,"mouseleave",t[55])],f=!0)},p(w,g){t=w,g[0]&33554432&&r!==(r=t[25]("bonusCard.playNow")+"")&&fe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(t[21]&&t[22]==t[90]?"ItemHover":""))&&m(n,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(t[21]&&t[22]==t[90]?"itemHover":""))&&m(n,"part",s),g[0]&8388608&&!Yo(l.src,u=t[88].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=t[88].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=t[88].name)&&m(l,"title",c)},d(w){w&&N(e),f=!1,Ye(b)}}}function Ca(t){let e,n,r=t[25]("bonusCard.wageringType")+"",i,o,s,a,l=t[25](`bonusCard.${t[5].wageringType}`)+"",u,d,c,h,f=t[25]("bonusCard.wagered")+"",b,_,y,w,g=[t[41]("BonusCardLabel")],A={};for(let P=0;P<g.length;P+=1)A=D(A,g[P]);let v=[t[41]("BonusCardRowText")],k={};for(let P=0;P<v.length;P+=1)k=D(k,v[P]);let x=[t[41]("BonusCardRow")],L={};for(let P=0;P<x.length;P+=1)L=D(L,x[P]);let W=[t[41]("BonusCardLabel")],G={};for(let P=0;P<W.length;P+=1)G=D(G,W[P]);let F=t[5].wageringType==="money"&&Ea(t),M=[t[41]("BonusCardRowText")],R={};for(let P=0;P<M.length;P+=1)R=D(R,M[P]);let K=[t[41]("BonusCardRow")],X={};for(let P=0;P<K.length;P+=1)X=D(X,K[P]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("p"),h=E("span"),b=B(f),_=B(":"),y=U(),w=E("span"),F&&F.c(),S(n,A),S(a,k),S(e,L),S(h,G),S(w,R),S(c,X)},m(P,z){I(P,e,z),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(P,d,z),I(P,c,z),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),F&&F.m(w,null)},p(P,z){z[0]&33554432&&r!==(r=P[25]("bonusCard.wageringType")+"")&&te(i,r,A.contenteditable),z[0]&33554464&&l!==(l=P[25](`bonusCard.${P[5].wageringType}`)+"")&&te(u,l,k.contenteditable),z[0]&33554432&&f!==(f=P[25]("bonusCard.wagered")+"")&&te(b,f,G.contenteditable),P[5].wageringType==="money"?F?F.p(P,z):(F=Ea(P),F.c(),F.m(w,null)):F&&(F.d(1),F=null)},d(P){P&&(N(e),N(d),N(c)),F&&F.d()}}}function Ea(t){let e;function n(o,s){return o[0]==="active"?eb:Qg}let r=n(t),i=r(t);return{c(){i.c(),e=Ke()},m(o,s){i.m(o,s),I(o,e,s)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&N(e),i.d(o)}}}function Qg(t){let e=t[29](t[5])+t[17]+"",n,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?nb:tb}let s=o(t),a=s(t);return{c(){n=B(e),r=B(` /
3572
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Tg(this,n=>{this._setInputElement(n),this._setFocusElement(n),this.stateTarget=n,this.ariaTarget=n},{uniqueIdPrefix:"search-input"})),this.addController(new Pg(this.inputElement,this._labelController)),this._tooltipController=new rd(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(n=>!n.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",n=>n.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Je(Lg);function Fg(t){Tr(t,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function Hg(t){let e,n,r;return{c(){e=E("span"),n=B(t[0]),r=B(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){I(i,e,o),p(e,n),p(e,r)},p(i,o){o&1&&fe(n,i[0])},d(i){i&&N(e)}}}function Rg(t){let e,n,r,i,o,s,a,l,u;const d=t[10].default,c=Hn(d,t,t[9],null),h=c||Hg(t);return{c(){e=E("div"),n=ee("svg"),r=ee("circle"),i=ee("circle"),s=ee("circle"),a=U(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",t[5]),m(i,"stroke-dashoffset",o=t[4]()),se(i,"Completed",t[1]==="completed"),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),se(s,"Completed",t[1]==="completed"),m(n,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,b){I(f,e,b),p(e,n),p(n,r),p(n,i),t[11](i),p(n,s),p(e,a),p(e,l),h&&h.m(l,null),t[12](e),u=!0},p(f,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&se(i,"Completed",f[1]==="completed"),(!u||b&2)&&se(s,"Completed",f[1]==="completed"),c?c.p&&(!u||b&512)&&zn(c,d,f,f[9],u?Rn(d,f[9],b,null):Un(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ge(h,f),u=!0)},o(f){lt(h,f),u=!1},d(f){f&&N(e),t[11](null),h&&h.d(f),t[12](null)}}}let aa=64.5;function zg(t,e,n){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(aa*2),f;Pr(()=>()=>{});function b(y){ot[y?"unshift":"push"](()=>{c=y,n(3,c)})}function _(y){ot[y?"unshift":"push"](()=>{f=y,n(2,f)})}return t.$$set=y=>{"value"in y&&n(0,s=y.value),"status"in y&&n(1,a=y.status),"mbsource"in y&&n(6,l=y.mbsource),"clientstyling"in y&&n(7,u=y.clientstyling),"clientstylingurl"in y&&n(8,d=y.clientstylingurl),"$$scope"in y&&n(9,o=y.$$scope)},t.$$.update=()=>{t.$$.dirty&132&&u&&f&&Fr(f,u),t.$$.dirty&260&&d&&f&&Hr(f,d),t.$$.dirty&68&&l&&f&&Rr(f,`${l}.Style`),t.$$.dirty&1&&n(4,r=()=>{var y=Math.PI*(aa*2);return s<0&&n(0,s=0),s>100&&n(0,s=100),(100-s)/100*y})},[s,a,f,c,r,h,l,u,d,o,i,b,_]}class Ug extends Dr{constructor(e){super(),Sr(this,e,zg,Rg,Fn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Fg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),de()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-progress",kr(Ug,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const la=t=>$g[t],$g={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$"};function Wg(t){Tr(t,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function ua(t,e,n){const r=t.slice();return r[82]=e[n],r[84]=n,r}function da(t,e,n){const r=t.slice();return r[85]=e[n],r}function ca(t,e,n){const r=t.slice();return r[76]=e[n],r}function ha(t,e,n){const r=t.slice();return r[79]=e[n],r}function fa(t,e,n){const r=t.slice();return r[88]=e[n],r[90]=n,r}function pa(t){var re;let e,n,r,i,o,s=t[33](t[5]).indexOf("Casino")>-1,a,l=t[33](t[5]).indexOf("Sports")>-1,u,d=(t[5].name||((re=t[5].presentation)==null?void 0:re.name.content))+"",c,h,f,b,_,y,w,g=s&&ma(t),A=l&&_a(t),v=[t[41]("TitleIcon")],k={};for(let C=0;C<v.length;C+=1)k=D(k,v[C]);let x=[t[41]("BonusCardRowTitle")],L={};for(let C=0;C<x.length;C+=1)L=D(L,x[C]);function W(C,M){if(C[0]==="active")return jg;if(C[0]==="completed")return Vg}let Y=W(t),F=Y&&Y(t),O=[t[41]("BonusCardHeader")],R={};for(let C=0;C<O.length;C+=1)R=D(R,O[C]);let Z=Gg(t),q=t[10]&&Ba(t);function P(C,M){return C[14]?hb:cb}let z=P(t),ne=z(t),ge=[t[41]("BonusCardFooter")],oe={};for(let C=0;C<ge.length;C+=1)oe=D(oe,ge[C]);let j=[t[41]("BonusCardInfo")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let X=t[9]&&za(t),ae=[t[41]("BonusCard")],J={};for(let C=0;C<ae.length;C+=1)J=D(J,ae[C]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=U(),A&&A.c(),u=U(),c=B(d),h=U(),F&&F.c(),f=U(),Z&&Z.c(),b=U(),_=E("div"),q&&q.c(),y=U(),ne.c(),w=U(),X&&X.c(),S(o,k),S(i,L),S(r,R),S(_,oe),se(_,"Active",t[11]||t[12]),S(n,ie),S(e,J)},m(C,M){I(C,e,M),p(e,n),p(n,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),F&&F.m(r,null),p(n,f),Z&&Z.m(n,null),p(n,b),p(n,_),q&&q.m(_,null),p(_,y),ne.m(_,null),p(e,w),X&&X.m(e,null),t[59](e)},p(C,M){var ue;M[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g?g.p(C,M):(g=ma(C),g.c(),g.m(o,a)):g&&(g.d(1),g=null),M[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?A?A.p(C,M):(A=_a(C),A.c(),A.m(o,null)):A&&(A.d(1),A=null),M[0]&32&&d!==(d=(C[5].name||((ue=C[5].presentation)==null?void 0:ue.name.content))+"")&&te(c,d,L.contenteditable),Y===(Y=W(C))&&F?F.p(C,M):(F&&F.d(1),F=Y&&Y(C),F&&(F.c(),F.m(r,null))),Z.p(C,M),C[10]?q?q.p(C,M):(q=Ba(C),q.c(),q.m(_,y)):q&&(q.d(1),q=null),z===(z=P(C))&&ne?ne.p(C,M):(ne.d(1),ne=z(C),ne&&(ne.c(),ne.m(_,null))),M[0]&6144&&se(_,"Active",C[11]||C[12]),C[9]?X?X.p(C,M):(X=za(C),X.c(),X.m(e,null)):X&&(X.d(1),X=null)},d(C){C&&N(e),g&&g.d(),A&&A.d(),F&&F.d(),Z&&Z.d(),q&&q.d(),ne.d(),X&&X.d(),t[59](null)}}}function ma(t){let e,n,r,i,o,s,a,l,u,d,c,h,f,b=[t[41]("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){e=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(n,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(n,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),pl(e,_)},m(y,w){I(y,e,w),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},p:Pe,d(y){y&&N(e)}}}function _a(t){let e,n,r,i,o,s,a=[t[41]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){e=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),m(n,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(n,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),pl(e,l)},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s)},p:Pe,d(u){u&&N(e)}}}function Vg(t){let e,n=t[25](`bonusCard.${t[5].status}`)+"",r,i=[t[41]("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("p"),r=B(n),S(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&n!==(n=s[25](`bonusCard.${s[5].status}`)+"")&&te(r,n,o.contenteditable)},d(s){s&&N(e)}}}function jg(t){let e,n,r,i,o,s=[t[41]("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("span"),n=ee("svg"),r=ee("path"),i=U(),o=B(t[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(e,a)},m(l,u){I(l,e,u),p(e,n),p(n,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&te(o,l[18],a.contenteditable)},d(l){l&&N(e)}}}function Gg(t){let e,n,r;function i(h,f){return h[0]==="claimable"?qg:Yg}let o=i(t),s=o(t),a=[t[41]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=D(l,a[h]);let u=(t[0]==="active"||t[0]==="completed")&&Sa(t),d=[t[41]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){e=E("div"),n=E("div"),s.c(),r=U(),u&&u.c(),S(n,l),S(e,c)},m(h,f){I(h,e,f),p(e,n),s.m(n,null),p(e,r),u&&u.m(e,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(n,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=Sa(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&N(e),s.d(),u&&u.d()}}}function Yg(t){let e,n,r=t[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=t[25]("bonusCard.bonusType")+"",h,f,b,_,y=t[25](`bonusType.${t[5].type}`)+"",w,g,A,v,k,x,L=[t[41]("BonusCardLabel")],W={};for(let C=0;C<L.length;C+=1)W=D(W,L[C]);function Y(C,M){return C[0]==="active"?Zg:Xg}let F=Y(t),O=F(t),R=[t[41]("BonusCardRowText")],Z={};for(let C=0;C<R.length;C+=1)Z=D(Z,R[C]);let q=[t[41]("BonusCardRow")],P={};for(let C=0;C<q.length;C+=1)P=D(P,q[C]);let z=[t[41]("BonusCardLabel")],ne={};for(let C=0;C<z.length;C+=1)ne=D(ne,z[C]);let ge=[t[41]("BonusCardRowText","Type")],oe={};for(let C=0;C<ge.length;C+=1)oe=D(oe,ge[C]);let j=[t[41]("BonusCardRow")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let X=t[5].type==="standard"&&ga(t),ae=t[5].type==="freeBet"&&ba(t),J=t[5].type==="freeRound"&&va(t),re=t[5].type==="wagering"&&Ca(t);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),O.c(),l=U(),u=E("p"),d=E("span"),h=B(c),f=B(":"),b=U(),_=E("span"),w=B(y),g=U(),X&&X.c(),A=U(),ae&&ae.c(),v=U(),J&&J.c(),k=U(),re&&re.c(),x=Ke(),S(n,W),S(a,Z),se(a,"StatusActive",t[0]==="active"),se(a,"StatusCompleted",t[0]==="completed"),se(a,"StatusClaimable",t[0]==="claimable"),S(e,P),S(d,ne),S(_,oe),S(u,ie)},m(C,M){I(C,e,M),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),O.m(a,null),I(C,l,M),I(C,u,M),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,w),I(C,g,M),X&&X.m(C,M),I(C,A,M),ae&&ae.m(C,M),I(C,v,M),J&&J.m(C,M),I(C,k,M),re&&re.m(C,M),I(C,x,M)},p(C,M){M[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&te(i,r,W.contenteditable),F===(F=Y(C))&&O?O.p(C,M):(O.d(1),O=F(C),O&&(O.c(),O.m(a,null))),M[0]&1&&se(a,"StatusActive",C[0]==="active"),M[0]&1&&se(a,"StatusCompleted",C[0]==="completed"),M[0]&1&&se(a,"StatusClaimable",C[0]==="claimable"),M[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&te(h,c,ne.contenteditable),M[0]&33554464&&y!==(y=C[25](`bonusType.${C[5].type}`)+"")&&te(w,y,oe.contenteditable),C[5].type==="standard"?X?X.p(C,M):(X=ga(C),X.c(),X.m(A.parentNode,A)):X&&(X.d(1),X=null),C[5].type==="freeBet"?ae?ae.p(C,M):(ae=ba(C),ae.c(),ae.m(v.parentNode,v)):ae&&(ae.d(1),ae=null),C[5].type==="freeRound"?J?J.p(C,M):(J=va(C),J.c(),J.m(k.parentNode,k)):J&&(J.d(1),J=null),C[5].type==="wagering"?re?re.p(C,M):(re=Ca(C),re.c(),re.m(x.parentNode,x)):re&&(re.d(1),re=null)},d(C){C&&(N(e),N(l),N(u),N(g),N(A),N(v),N(k),N(x)),O.d(),X&&X.d(C),ae&&ae.d(C),J&&J.d(C),re&&re.d(C)}}}function qg(t){let e,n,r=t[25]("bonusCard.bonusType")+"",i,o,s,a,l=t[25](`bonusType.${t[5].type}`)+"",u,d,c,h,f,b,_,y,w=t[25]("bonusCard.validity")+"",g,A,v,k,x=t[32](t[5])+"",L,W,Y,F,O=t[25]("bonusCard.validUntil")+"",R,Z,q,P,z=t[39](t[5].trigger.endTime)+"",ne,ge=[t[41]("BonusCardLabel")],oe={};for(let $=0;$<ge.length;$+=1)oe=D(oe,ge[$]);let j=[t[41]("BonusCardRowText","Type")],ie={};for(let $=0;$<j.length;$+=1)ie=D(ie,j[$]);let X=[t[41]("BonusCardRow")],ae={};for(let $=0;$<X.length;$+=1)ae=D(ae,X[$]);let J=t[5].type==="standard"&&xa(t),re=t[5].type==="freeBet"&&Aa(t),C=t[5].type==="freeRound"&&Ta(t),M=t[5].type==="wagering"&&Pa(t),ue=[t[41]("BonusCardLabel")],G={};for(let $=0;$<ue.length;$+=1)G=D(G,ue[$]);let Ce=[t[41]("BonusCardRowText")],K={};for(let $=0;$<Ce.length;$+=1)K=D(K,Ce[$]);let Ae=[t[41]("BonusCardRow")],be={};for(let $=0;$<Ae.length;$+=1)be=D(be,Ae[$]);let Qe=[t[41]("BonusCardLabel")],et={};for(let $=0;$<Qe.length;$+=1)et=D(et,Qe[$]);let dt=[t[41]("BonusCardRowText")],tt={};for(let $=0;$<dt.length;$+=1)tt=D(tt,dt[$]);let wt=[t[41]("BonusCardRow")],Ct={};for(let $=0;$<wt.length;$+=1)Ct=D(Ct,wt[$]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),J&&J.c(),c=U(),re&&re.c(),h=U(),C&&C.c(),f=U(),M&&M.c(),b=U(),_=E("p"),y=E("span"),g=B(w),A=B(":"),v=U(),k=E("span"),L=B(x),W=U(),Y=E("p"),F=E("span"),R=B(O),Z=B(":"),q=U(),P=E("span"),ne=B(z),S(n,oe),S(a,ie),S(e,ae),S(y,G),S(k,K),S(_,be),S(F,et),S(P,tt),S(Y,Ct)},m($,ve){I($,e,ve),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I($,d,ve),J&&J.m($,ve),I($,c,ve),re&&re.m($,ve),I($,h,ve),C&&C.m($,ve),I($,f,ve),M&&M.m($,ve),I($,b,ve),I($,_,ve),p(_,y),p(y,g),p(y,A),p(_,v),p(_,k),p(k,L),I($,W,ve),I($,Y,ve),p(Y,F),p(F,R),p(F,Z),p(Y,q),p(Y,P),p(P,ne)},p($,ve){ve[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&te(i,r,oe.contenteditable),ve[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&te(u,l,ie.contenteditable),$[5].type==="standard"?J?J.p($,ve):(J=xa($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?re?re.p($,ve):(re=Aa($),re.c(),re.m(h.parentNode,h)):re&&(re.d(1),re=null),$[5].type==="freeRound"?C?C.p($,ve):(C=Ta($),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),$[5].type==="wagering"?M?M.p($,ve):(M=Pa($),M.c(),M.m(b.parentNode,b)):M&&(M.d(1),M=null),ve[0]&33554432&&w!==(w=$[25]("bonusCard.validity")+"")&&te(g,w,G.contenteditable),ve[0]&32&&x!==(x=$[32]($[5])+"")&&te(L,x,K.contenteditable),ve[0]&33554432&&O!==(O=$[25]("bonusCard.validUntil")+"")&&te(R,O,et.contenteditable),ve[0]&32&&z!==(z=$[39]($[5].trigger.endTime)+"")&&te(ne,z,tt.contenteditable)},d($){$&&(N(e),N(d),N(c),N(h),N(f),N(b),N(_),N(W),N(Y)),J&&J.d($),re&&re.d($),C&&C.d($),M&&M.d($)}}}function Xg(t){let e=t[25](`bonusCard.${t[5].status}`)+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&fe(n,e)},d(r){r&&N(n)}}}function Zg(t){let e=t[25](`bonusCard.${t[0]}`)+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&fe(n,e)},d(r){r&&N(n)}}}function ga(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h,f,b=t[5].amount+"",_,y,w,g,A,v=t[25]("bonusCard.wageredAmount")+"",k,x,L,W,Y=t[29](t[5])+t[17]+"",F,O,R=[t[41]("BonusCardLabel")],Z={};for(let M=0;M<R.length;M+=1)Z=D(Z,R[M]);let q=[t[41]("BonusCardRowText")],P={};for(let M=0;M<q.length;M+=1)P=D(P,q[M]);let z=[t[41]("BonusCardRow")],ne={};for(let M=0;M<z.length;M+=1)ne=D(ne,z[M]);let ge=[t[41]("BonusCardLabel")],oe={};for(let M=0;M<ge.length;M+=1)oe=D(oe,ge[M]);function j(M,ue){return M[5].initialWagerRequirementAmount>=2147483647?Jg:Kg}let ie=j(t),X=ie(t),ae=[t[41]("BonusCardRowText")],J={};for(let M=0;M<ae.length;M+=1)J=D(J,ae[M]);let re=[t[41]("BonusCardRow")],C={};for(let M=0;M<re.length;M+=1)C=D(C,re[M]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),h=B(` /
3573
+ `),f=E("span"),_=B(b),y=B(t[17]),w=U(),g=E("p"),A=E("span"),k=B(v),x=B(":"),L=U(),W=E("span"),F=B(Y),O=B(` /
3574
+ `),X.c(),S(n,Z),se(l,"BonusAmount",t[0]==="active"),se(f,"Amount",t[0]==="active"),S(a,P),S(e,ne),S(A,oe),S(W,J),S(g,C)},m(M,ue){I(M,e,ue),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,y),I(M,w,ue),I(M,g,ue),p(g,A),p(A,k),p(A,x),p(g,L),p(g,W),p(W,F),p(W,O),X.m(W,null)},p(M,ue){ue[0]&33554432&&r!==(r=M[25]("bonusCard.bonusAmount")+"")&&te(i,r,Z.contenteditable),ue[0]&32&&u!==(u=M[5].remainingAmount+"")&&fe(d,u),ue[0]&131072&&fe(c,M[17]),ue[0]&1&&se(l,"BonusAmount",M[0]==="active"),ue[0]&32&&b!==(b=M[5].amount+"")&&fe(_,b),ue[0]&131072&&fe(y,M[17]),ue[0]&1&&se(f,"Amount",M[0]==="active"),ue[0]&33554432&&v!==(v=M[25]("bonusCard.wageredAmount")+"")&&te(k,v,oe.contenteditable),ue[0]&131104&&Y!==(Y=M[29](M[5])+M[17]+"")&&te(F,Y,J.contenteditable),ie===(ie=j(M))&&X?X.p(M,ue):(X.d(1),X=ie(M),X&&(X.c(),X.m(W,null)))},d(M){M&&(N(e),N(w),N(g)),X.d()}}}function Kg(t){let e=t[5].initialWagerRequirementAmount+t[17]+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,e)},d(r){r&&N(n)}}}function Jg(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function ba(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h=[t[41]("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=[t[41]("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=D(_,b[g]);let y=[t[41]("BonusCardRow")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),S(n,f),se(l,"BonusAmount",t[0]==="active"),S(a,_),S(e,w)},m(g,A){I(g,e,A),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&fe(d,u),A[0]&131072&&fe(c,g[17]),A[0]&1&&se(l,"BonusAmount",g[0]==="active")},d(g){g&&N(e)}}}function va(t){let e,n=t[5].status==="active"&&ya(t);return{c(){n&&n.c(),e=Ke()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5].status==="active"?n?n.p(r,i):(n=ya(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){r&&N(e),n&&n.d(r)}}}function ya(t){let e,n,r=t[25]("bonusCard.roundNumber")+"",i,o,s,a,l=t[5].numberOfFreeSpin+"",u,d,c,h,f=t[25]("bonusCard.game")+"",b,_,y,w,g,A,v,k,x,L,W,Y,F,O,R,Z,q,P,z,ne=[t[41]("BonusCardLabel")],ge={};for(let K=0;K<ne.length;K+=1)ge=D(ge,ne[K]);let oe=[t[41]("BonusCardRowText")],j={};for(let K=0;K<oe.length;K+=1)j=D(j,oe[K]);let ie=[t[41]("BonusCardRow")],X={};for(let K=0;K<ie.length;K+=1)X=D(X,ie[K]);let ae=[t[41]("BonusCardLabel")],J={};for(let K=0;K<ae.length;K+=1)J=D(J,ae[K]);let re=Le(t[23]),C=[];for(let K=0;K<re.length;K+=1)C[K]=wa(fa(t,re,K));let M=[t[41]("BonusCardRowText")],ue={};for(let K=0;K<M.length;K+=1)ue=D(ue,M[K]);let G=[t[41]("BonusCardRow")],Ce={};for(let K=0;K<G.length;K+=1)Ce=D(Ce,G[K]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("div"),h=E("div"),b=B(f),_=B(":"),y=U(),w=E("div"),g=E("div"),A=E("button"),v=ee("svg"),k=ee("path"),L=U(),W=E("div"),Y=E("span");for(let K=0;K<C.length;K+=1)C[K].c();F=U(),O=E("button"),R=ee("svg"),Z=ee("path"),S(n,ge),S(a,j),S(e,X),S(h,J),m(k,"stroke-linecap","round"),m(k,"stroke-linejoin","round"),m(k,"stroke-width","2"),m(k,"d","M15 19l-7-7 7-7"),m(v,"fill","none"),m(v,"stroke","currentColor"),m(v,"viewBox","0 0 24 24"),m(v,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=t[24]==0,se(A,"Hide",t[23].length<=3),m(Y,"class","Games"),qo(Y,"transform","translateX("+t[24]+"px)"),m(W,"class","Main"),m(Z,"stroke-linecap","round"),m(Z,"stroke-linejoin","round"),m(Z,"stroke-width","2"),m(Z,"d","M9 5l7 7-7 7"),m(R,"fill","none"),m(R,"stroke","currentColor"),m(R,"viewBox","0 0 24 24"),m(R,"xmlns","http://www.w3.org/2000/svg"),m(O,"class","SliderNavButton"),m(O,"part","SliderNavButton"),O.disabled=q=t[24]<=-(t[23].length-3)*100,se(O,"Hide",t[23].length<=3),m(g,"class","BonusGamesSlider"),S(w,ue),S(c,Ce)},m(K,Ae){I(K,e,Ae),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(K,d,Ae),I(K,c,Ae),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),p(w,g),p(g,A),p(A,v),p(v,k),p(g,L),p(g,W),p(W,Y);for(let be=0;be<C.length;be+=1)C[be]&&C[be].m(Y,null);p(g,F),p(g,O),p(O,R),p(R,Z),P||(z=[ke(A,"click",t[52]),ke(O,"click",t[56])],P=!0)},p(K,Ae){if(Ae[0]&33554432&&r!==(r=K[25]("bonusCard.roundNumber")+"")&&te(i,r,ge.contenteditable),Ae[0]&32&&l!==(l=K[5].numberOfFreeSpin+"")&&te(u,l,j.contenteditable),Ae[0]&33554432&&f!==(f=K[25]("bonusCard.game")+"")&&te(b,f,J.contenteditable),Ae[0]&16777216&&x!==(x=K[24]==0)&&(A.disabled=x),Ae[0]&8388608&&se(A,"Hide",K[23].length<=3),Ae[0]&48234496|Ae[1]&14336){re=Le(K[23]);let be;for(be=0;be<re.length;be+=1){const Qe=fa(K,re,be);C[be]?C[be].p(Qe,Ae):(C[be]=wa(Qe),C[be].c(),C[be].m(Y,null))}for(;be<C.length;be+=1)C[be].d(1);C.length=re.length}Ae[0]&16777216&&qo(Y,"transform","translateX("+K[24]+"px)"),Ae[0]&25165824&&q!==(q=K[24]<=-(K[23].length-3)*100)&&(O.disabled=q),Ae[0]&8388608&&se(O,"Hide",K[23].length<=3)},d(K){K&&(N(e),N(d),N(c)),bt(C,K),P=!1,Ye(z)}}}function wa(t){let e,n,r=t[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return t[53](t[88])}function y(){return t[54](t[90])}return{c(){e=E("span"),n=E("span"),i=B(r),a=U(),l=E("img"),h=U(),m(n,"class",o="PlayNowButton "+(t[21]&&t[22]==t[90]?"ItemHover":"")),m(n,"part",s="PlayNowButton "+(t[21]&&t[22]==t[90]?"itemHover":"")),Yo(l.src,u=t[88].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=t[88].name),m(l,"title",c=t[88].name),m(e,"class","Game"),m(e,"part","Game")},m(w,g){I(w,e,g),p(e,n),p(n,i),p(e,a),p(e,l),p(e,h),f||(b=[ke(e,"click",_),ke(e,"mouseenter",y),ke(e,"mouseleave",t[55])],f=!0)},p(w,g){t=w,g[0]&33554432&&r!==(r=t[25]("bonusCard.playNow")+"")&&fe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(t[21]&&t[22]==t[90]?"ItemHover":""))&&m(n,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(t[21]&&t[22]==t[90]?"itemHover":""))&&m(n,"part",s),g[0]&8388608&&!Yo(l.src,u=t[88].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=t[88].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=t[88].name)&&m(l,"title",c)},d(w){w&&N(e),f=!1,Ye(b)}}}function Ca(t){let e,n,r=t[25]("bonusCard.wageringType")+"",i,o,s,a,l=t[25](`bonusCard.${t[5].wageringType}`)+"",u,d,c,h,f=t[25]("bonusCard.wagered")+"",b,_,y,w,g=[t[41]("BonusCardLabel")],A={};for(let P=0;P<g.length;P+=1)A=D(A,g[P]);let v=[t[41]("BonusCardRowText")],k={};for(let P=0;P<v.length;P+=1)k=D(k,v[P]);let x=[t[41]("BonusCardRow")],L={};for(let P=0;P<x.length;P+=1)L=D(L,x[P]);let W=[t[41]("BonusCardLabel")],Y={};for(let P=0;P<W.length;P+=1)Y=D(Y,W[P]);let F=t[5].wageringType==="money"&&Ea(t),O=[t[41]("BonusCardRowText")],R={};for(let P=0;P<O.length;P+=1)R=D(R,O[P]);let Z=[t[41]("BonusCardRow")],q={};for(let P=0;P<Z.length;P+=1)q=D(q,Z[P]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("p"),h=E("span"),b=B(f),_=B(":"),y=U(),w=E("span"),F&&F.c(),S(n,A),S(a,k),S(e,L),S(h,Y),S(w,R),S(c,q)},m(P,z){I(P,e,z),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(P,d,z),I(P,c,z),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),F&&F.m(w,null)},p(P,z){z[0]&33554432&&r!==(r=P[25]("bonusCard.wageringType")+"")&&te(i,r,A.contenteditable),z[0]&33554464&&l!==(l=P[25](`bonusCard.${P[5].wageringType}`)+"")&&te(u,l,k.contenteditable),z[0]&33554432&&f!==(f=P[25]("bonusCard.wagered")+"")&&te(b,f,Y.contenteditable),P[5].wageringType==="money"?F?F.p(P,z):(F=Ea(P),F.c(),F.m(w,null)):F&&(F.d(1),F=null)},d(P){P&&(N(e),N(d),N(c)),F&&F.d()}}}function Ea(t){let e;function n(o,s){return o[0]==="active"?eb:Qg}let r=n(t),i=r(t);return{c(){i.c(),e=Ke()},m(o,s){i.m(o,s),I(o,e,s)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&N(e),i.d(o)}}}function Qg(t){let e=t[29](t[5])+t[17]+"",n,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?nb:tb}let s=o(t),a=s(t);return{c(){n=B(e),r=B(` /
3575
3575
  `),a.c(),i=Ke()},m(l,u){I(l,n,u),I(l,r,u),a.m(l,u),I(l,i,u)},p(l,u){u[0]&131104&&e!==(e=l[29](l[5])+l[17]+"")&&fe(n,e),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(N(n),N(r),N(i)),a.d(l)}}}function eb(t){var d;let e=t[30](t[5])+"",n,r,i,o,s=((d=t[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){n=B(e),r=U(),i=B(t[17]),o=B(` /
3576
- `),a=B(s),l=U(),u=B(t[17])},m(c,h){I(c,n,h),I(c,r,h),I(c,i,h),I(c,o,h),I(c,a,h),I(c,l,h),I(c,u,h)},p(c,h){var f;h[0]&32&&e!==(e=c[30](c[5])+"")&&fe(n,e),h[0]&131072&&fe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&fe(a,s),h[0]&131072&&fe(u,c[17])},d(c){c&&(N(n),N(r),N(i),N(o),N(a),N(l),N(u))}}}function tb(t){let e=t[5].initialWagerRequirementAmount+t[17]+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,e)},d(r){r&&N(n)}}}function nb(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function xa(t){var be,oe;let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[36]((oe=(be=t[5].wallet.standard)==null?void 0:be.initialAmount)==null?void 0:oe.fixedAmount)+"",d,c,h,f,b,_=t[25]("bonusCard.wageringRequirement")+"",y,w,g,A,v=t[37](t[5])+t[17]+"",k,x=[t[41]("BonusCardLabel")],L={};for(let j=0;j<x.length;j+=1)L=D(L,x[j]);let W=[t[41]("BonusCardRowText")],G={};for(let j=0;j<W.length;j+=1)G=D(G,W[j]);let F=[t[41]("BonusCardRow")],M={};for(let j=0;j<F.length;j+=1)M=D(M,F[j]);let R=[t[41]("BonusCardLabel")],K={};for(let j=0;j<R.length;j+=1)K=D(K,R[j]);let X=[t[41]("BonusCardRowText")],P={};for(let j=0;j<X.length;j+=1)P=D(P,X[j]);let z=[t[41]("BonusCardRow")],re={};for(let j=0;j<z.length;j+=1)re=D(re,z[j]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),h=U(),f=E("p"),b=E("span"),y=B(_),w=B(":"),g=U(),A=E("span"),k=B(v),S(n,L),S(a,G),S(e,M),S(b,K),S(A,P),S(f,re)},m(j,ie){I(j,e,ie),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),I(j,h,ie),I(j,f,ie),p(f,b),p(b,y),p(b,w),p(f,g),p(f,A),p(A,k)},p(j,ie){var Y,ae;ie[0]&33554432&&r!==(r=j[25]("bonusCard.bonusAmount")+"")&&te(i,r,L.contenteditable),ie[0]&32&&u!==(u=j[36]((ae=(Y=j[5].wallet.standard)==null?void 0:Y.initialAmount)==null?void 0:ae.fixedAmount)+"")&&fe(d,u),ie[0]&131072&&fe(c,j[17]),ie[0]&33554432&&_!==(_=j[25]("bonusCard.wageringRequirement")+"")&&te(y,_,K.contenteditable),ie[0]&131104&&v!==(v=j[37](j[5])+j[17]+"")&&te(k,v,P.contenteditable)},d(j){j&&(N(e),N(h),N(f))}}}function Aa(t){var g,A;let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[36]((A=(g=t[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[t[41]("BonusCardLabel")],f={};for(let v=0;v<h.length;v+=1)f=D(f,h[v]);let b=[t[41]("BonusCardRowText")],_={};for(let v=0;v<b.length;v+=1)_=D(_,b[v]);let y=[t[41]("BonusCardRow")],w={};for(let v=0;v<y.length;v+=1)w=D(w,y[v]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),S(n,f),S(a,_),S(e,w)},m(v,k){I(v,e,k),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(v,k){var x,L;k[0]&33554432&&r!==(r=v[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),k[0]&32&&u!==(u=v[36]((L=(x=v[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:L.fixedAmount)+"")&&fe(d,u),k[0]&131072&&fe(c,v[17])},d(v){v&&N(e)}}}function Ta(t){let e,n,r=t[25]("bonusCard.roundNumber")+"",i,o,s,a,l=t[38](t[5])+"",u,d=[t[41]("BonusCardLabel")],c={};for(let y=0;y<d.length;y+=1)c=D(c,d[y]);let h=[t[41]("BonusCardRowText")],f={};for(let y=0;y<h.length;y+=1)f=D(f,h[y]);let b=[t[41]("BonusCardRow")],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),S(n,c),S(a,f),S(e,_)},m(y,w){I(y,e,w),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u)},p(y,w){w[0]&33554432&&r!==(r=y[25]("bonusCard.roundNumber")+"")&&te(i,r,c.contenteditable),w[0]&32&&l!==(l=y[38](y[5])+"")&&te(u,l,f.contenteditable)},d(y){y&&N(e)}}}function Pa(t){let e,n,r=t[25]("bonusCard.levels")+"",i,o,s,a,l=[t[41]("BonusCardLabel")],u={};for(let w=0;w<l.length;w+=1)u=D(u,l[w]);function d(w,g){return w[8]>0?ib:rb}let c=d(t),h=c(t),f=[t[41]("BonusCardRowText")],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[t[41]("BonusCardRow")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),h.c(),S(n,u),S(a,b),S(e,y)},m(w,g){I(w,e,g),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),h.m(a,null)},p(w,g){g[0]&33554432&&r!==(r=w[25]("bonusCard.levels")+"")&&te(i,r,u.contenteditable),c===(c=d(w))&&h?h.p(w,g):(h.d(1),h=c(w),h&&(h.c(),h.m(a,null)))},d(w){w&&N(e),h.d()}}}function rb(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function ib(t){let e;return{c(){e=B(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&N(e)}}}function Sa(t){let e,n,r=t[5].type==="standard"&&ka(t),i=t[5].type==="wagering"&&Da(t);return{c(){r&&r.c(),e=U(),i&&i.c(),n=Ke()},m(o,s){r&&r.m(o,s),I(o,e,s),i&&i.m(o,s),I(o,n,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=ka(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Da(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(o){o&&(N(e),N(n)),r&&r.d(o),i&&i.d(o)}}}function ka(t){let e,n,r,i=[t[41]("CircularProgress"),{value:r=t[31](t[5])},{status:t[0]},{clientstyling:t[2]},{clientstylingurl:t[3]},{mbsource:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[t[41]("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("div"),n=E("casino-bonus-progress"),S(n,o),S(e,a)},m(l,u){I(l,e,u),p(e,n)},p(l,u){S(n,o=De(i,[l[41]("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&N(e)}}}function Da(t){var k;let e,n,r,i,o,s=t[25]("bonusCard.level")+"",a,l,u=(((k=t[5].wageringProgress)==null?void 0:k.currentLevel)||1)+"",d,c,h=[t[41]("CircularProgress"),{value:r=t[31](t[5])},{status:t[0]},{clientstyling:t[2]},{clientstylingurl:t[3]},{mbsource:t[1]}],f={};for(let x=0;x<h.length;x+=1)f=D(f,h[x]);function b(x,L){return x[8]>0?sb:ob}let _=b(t),y=_(t),w=[t[41]("CircularProgressText")],g={};for(let x=0;x<w.length;x+=1)g=D(g,w[x]);let A=[t[41]("BonusCardProgress")],v={};for(let x=0;x<A.length;x+=1)v=D(v,A[x]);return{c(){e=E("div"),n=E("casino-bonus-progress"),i=U(),o=E("div"),a=B(s),l=B(": "),d=B(u),c=B(` /
3577
- `),y.c(),S(n,f),S(o,g),S(e,v)},m(x,L){I(x,e,L),p(e,n),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),y.m(o,null)},p(x,L){var W;S(n,f=De(h,[x[41]("CircularProgress"),L[0]&32&&r!==(r=x[31](x[5]))&&{value:r},L[0]&1&&{status:x[0]},L[0]&4&&{clientstyling:x[2]},L[0]&8&&{clientstylingurl:x[3]},L[0]&2&&{mbsource:x[1]}])),L[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&te(a,s,g.contenteditable),L[0]&32&&u!==(u=(((W=x[5].wageringProgress)==null?void 0:W.currentLevel)||1)+"")&&te(d,u,g.contenteditable),_===(_=b(x))&&y?y.p(x,L):(y.d(1),y=_(x),y&&(y.c(),y.m(o,null)))},d(x){x&&N(e),y.d()}}}function ob(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function sb(t){let e;return{c(){e=B(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&N(e)}}}function Ba(t){let e,n,r,i,o,s,a=t[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[t[41]("BonusCardAdditionalTitle")],_={};for(let F=0;F<b.length;F+=1)_=D(_,b[F]);function y(F,M){return F[11]?ab:lb}let w=y(t),g=w(t),A=[t[41]("BonusCardAdditionalButton")],v={};for(let F=0;F<A.length;F+=1)v=D(v,A[F]);let k=[t[41]("BonusCardAdditionalHeader")],x={};for(let F=0;F<k.length;F+=1)x=D(x,k[F]);let L=t[11]&&Ma(t),W=[t[41]("BonusCardAdditional")],G={};for(let F=0;F<W.length;F+=1)G=D(G,W[F]);return{c(){e=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),l=B(a),u=U(),d=E("span"),g.c(),c=U(),L&&L.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,_),S(d,v),S(n,x),se(n,"Active",t[11]),S(e,G)},m(F,M){I(F,e,M),p(e,n),p(n,r),p(r,i),p(i,o),p(r,s),p(r,l),p(n,u),p(n,d),g.m(d,null),p(e,c),L&&L.m(e,null),h||(f=Se(n,"click",t[57]),h=!0)},p(F,M){M[0]&33554432&&a!==(a=F[25]("bonusCard.rewards")+"")&&te(l,a,_.contenteditable),w!==(w=y(F))&&(g.d(1),g=w(F),g&&(g.c(),g.m(d,null))),M[0]&2048&&se(n,"Active",F[11]),F[11]?L?L.p(F,M):(L=Ma(F),L.c(),L.m(e,null)):L&&(L.d(1),L=null)},d(F){F&&N(e),g.d(),L&&L.d(),h=!1,f()}}}function ab(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function lb(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function Ma(t){let e,n=t[5].type==="wagering"&&Oa(t),r=[t[41]("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=D(i,r[o]);return{c(){e=E("div"),n&&n.c(),S(e,i)},m(o,s){I(o,e,s),n&&n.m(e,null)},p(o,s){o[5].type==="wagering"?n?n.p(o,s):(n=Oa(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&N(e),n&&n.d()}}}function Oa(t){let e,n=t[5].levels.length>Number(t[4]),r;function i(l,u){if(l[5].status)return db;if(l[5].levels)return ub}let o=i(t),s=o&&o(t),a=n&&Ha(t);return{c(){s&&s.c(),e=U(),a&&a.c(),r=Ke()},m(l,u){s&&s.m(l,u),I(l,e,u),a&&a.m(l,u),I(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(e.parentNode,e))),u[0]&48&&(n=l[5].levels.length>Number(l[4])),n?a?a.p(l,u):(a=Ha(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(N(e),N(r)),s&&s.d(l),a&&a.d(l)}}}function ub(t){let e,n=Le(t[5].levels.slice(0,t[4])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Ia(ua(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Ke()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&1048){n=Le(i[5].levels.slice(0,i[4]));let s;for(s=0;s<n.length;s+=1){const a=ua(i,n,s);r[s]?r[s].p(a,o):(r[s]=Ia(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(e),bt(r,i)}}}function db(t){let e,n=Le(t[40](t[5],t[7])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Fa(ca(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Ke()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&1536){n=Le(i[40](i[5],i[7]));let s;for(s=0;s<n.length;s+=1){const a=ca(i,n,s);r[s]?r[s].p(a,o):(r[s]=Fa(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(e),bt(r,i)}}}function Na(t){let e=t[35](t[82],t[85])+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&fe(n,e)},d(r){r&&N(n)}}}function Ia(t){let e,n,r=t[25]("bonusCard.level")+"",i,o,s=t[34](t[5].levels,t[84])+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Le(t[82].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Na(da(t,b,g));let y=[t[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){e=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(e,w)},m(g,A){I(g,e,A),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(e,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&te(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&te(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Le(g[82].bonuses);let v;for(v=0;v<b.length;v+=1){const k=da(g,b,v);_[v]?_[v].p(k,A):(_[v]=Na(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(e),bt(_,g)}}}function La(t){let e=t[79]+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&fe(n,e)},d(r){r&&N(n)}}}function Fa(t){let e,n,r=t[25](`bonusCard.${t[76].label}`)+"",i,o,s=t[25]("bonusCard.level")+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Le(t[76].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=La(ha(t,b,g));let y=[t[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){e=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(e,w)},m(g,A){I(g,e,A),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&te(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&te(a,s,f.contenteditable),A[0]&160|A[1]&512){b=Le(g[76].desc);let v;for(v=0;v<b.length;v+=1){const k=ha(g,b,v);_[v]?_[v].p(k,A):(_[v]=La(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(e),bt(_,g)}}}function Ha(t){let e,n=t[25]("bonusCard.allRewards")+"",r,i,o,s=[t[41]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("a"),r=B(n),S(e,a)},m(l,u){I(l,e,u),p(e,r),i||(o=Se(e,"click",t[28]),i=!0)},p(l,u){u[0]&33554432&&n!==(n=l[25]("bonusCard.allRewards")+"")&&te(r,n,a.contenteditable)},d(l){l&&N(e),i=!1,o()}}}function cb(t){let e,n,r,i,o,s,a,l,u,d,c=t[25]("bonusCard.terms")+"",h,f=[t[41]("BonusCardTermsLink"),{href:t[20]},{target:"__blank"}],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[t[41]("BonusCardTerms")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){e=E("div"),n=E("a"),r=ee("svg"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=U(),h=B(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),S(n,b),S(e,y)},m(w,g){I(w,e,g),p(e,n),p(n,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(n,d),p(n,h)},p(w,g){g[0]&33554432&&c!==(c=w[25]("bonusCard.terms")+"")&&te(h,c,b.contenteditable),S(n,b=De(f,[w[41]("BonusCardTermsLink"),g[0]&1048576&&{href:w[20]},{target:"__blank"}]))},d(w){w&&N(e)}}}function hb(t){let e,n,r,i,o,s,a,l,u,d,c,h=t[25]("bonusCard.terms")+"",f,b,_,y,w,g,A=[t[41]("BonusCardTermsTitle")],v={};for(let P=0;P<A.length;P+=1)v=D(v,A[P]);function k(P,z){return P[12]?fb:pb}let x=k(t),L=x(t),W=[t[41]("BonusCardTermsButton")],G={};for(let P=0;P<W.length;P+=1)G=D(G,W[P]);let F=[t[41]("BonusCardTermsHeader")],M={};for(let P=0;P<F.length;P+=1)M=D(M,F[P]);let R=t[12]&&Ra(t),K=[t[41]("BonusCardTerms")],X={};for(let P=0;P<K.length;P+=1)X=D(X,K[P]);return{c(){e=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=U(),f=B(h),b=U(),_=E("span"),L.c(),y=U(),R&&R.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,v),S(_,G),S(n,M),se(n,"Active",t[12]),S(e,X)},m(P,z){I(P,e,z),p(e,n),p(n,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(n,b),p(n,_),L.m(_,null),p(e,y),R&&R.m(e,null),w||(g=Se(n,"click",t[58]),w=!0)},p(P,z){z[0]&33554432&&h!==(h=P[25]("bonusCard.terms")+"")&&te(f,h,v.contenteditable),x!==(x=k(P))&&(L.d(1),L=x(P),L&&(L.c(),L.m(_,null))),z[0]&4096&&se(n,"Active",P[12]),P[12]?R?R.p(P,z):(R=Ra(P),R.c(),R.m(e,null)):R&&(R.d(1),R=null)},d(P){P&&N(e),L.d(),R&&R.d(),w=!1,g()}}}function fb(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function pb(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function Ra(t){let e,n,r,i,o=[t[41]("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=D(s,o[a]);return{c(){e=E("div"),S(e,s)},m(a,l){I(a,e,l),r||(i=Md(n=t[45].call(null,e,t[16].terms_and_conditions)),r=!0)},p(a,l){n&&Ln(n.update)&&l[0]&65536&&n.update.call(null,a[16].terms_and_conditions)},d(a){a&&N(e),r=!1,i()}}}function za(t){let e,n,r,i=t[0]==="claimable"&&Ua(t),o=t[0]==="active"&&t[5].status==="active"&&Wa(t),s=[t[41]("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=D(a,s[d]);let l=[t[41]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=D(u,l[d]);return{c(){e=E("div"),n=E("div"),i&&i.c(),r=U(),o&&o.c(),S(n,a),S(e,u)},m(d,c){I(d,e,c),p(e,n),i&&i.m(n,null),p(n,r),o&&o.m(n,null)},p(d,c){d[0]==="claimable"?i?i.p(d,c):(i=Ua(d),i.c(),i.m(n,r)):i&&(i.d(1),i=null),d[0]==="active"&&d[5].status==="active"?o?o.p(d,c):(o=Wa(d),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},d(d){d&&N(e),i&&i.d(),o&&o.d()}}}function Ua(t){let e,n,r,i,o,s,a,l,u,d=t[25]("bonusCard.join")+"",c,h,f,b,_=t[15]===!0&&$a(t),y=[t[41]("BonusCardJoinCountdown")],w={};for(let x=0;x<y.length;x+=1)w=D(w,y[x]);let g=[t[41]("BonusJoinButton"),{type:"button"},{disabled:h=!t[13]}],A={};for(let x=0;x<g.length;x+=1)A=D(A,g[x]);let v=[t[41]("BonusCardJoinWrapper")],k={};for(let x=0;x<v.length;x+=1)k=D(k,v[x]);return{c(){e=E("div"),_&&_.c(),n=U(),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),a=B(t[19]),l=U(),u=E("button"),c=B(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,w),S(u,A),S(e,k)},m(x,L){I(x,e,L),_&&_.m(e,null),p(e,n),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(b=Se(u,"click",t[26]),f=!0)},p(x,L){x[15]===!0?_?_.p(x,L):(_=$a(x),_.c(),_.m(e,n)):_&&(_.d(1),_=null),L[0]&524288&&te(a,x[19],w.contenteditable),L[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&te(c,d,A.contenteditable),S(u,A=De(g,[x[41]("BonusJoinButton"),{type:"button"},L[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&N(e),_&&_.d(),f=!1,b()}}}function $a(t){let e,n=t[25]("bonusCard.error")+"",r,i=[t[41]("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("span"),r=B(n),S(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&n!==(n=s[25]("bonusCard.error")+"")&&te(r,n,o.contenteditable)},d(s){s&&N(e)}}}function Wa(t){let e,n=t[25]("bonusCard.forfeit")+"",r,i,o,s,a=[t[41]("BonusForfeitButton"),{type:"button"},{disabled:i=!t[13]}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){e=E("button"),r=B(n),S(e,l)},m(u,d){I(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Se(e,"click",t[27]),o=!0)},p(u,d){d[0]&33554432&&n!==(n=u[25]("bonusCard.forfeit")+"")&&te(r,n,l.contenteditable),S(e,l=De(a,[u[41]("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&N(e),o=!1,s()}}}function mb(t){let e,n=t[5]&&pa(t);return{c(){n&&n.c(),e=Ke()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5]?n?n.p(r,i):(n=pa(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:Pe,o:Pe,d(r){r&&N(e),n&&n.d(r)}}}function _b(t,e,n){let r,i;hl(t,Wl,T=>n(25,i=T));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_,y=[],w,g=!1,A=!1,v=!1,k=!1,x=!0,L=!1,W=!1,G={},F,M,R="",K=1e3*30,X,P="",z=!1,re,be=[],oe=0;const j=()=>{fetch(h).then(H=>H.json()).then(H=>{Object.keys(H).forEach(Q=>{fr(Q,H[Q])})}).catch(H=>{console.log(H)})};Object.keys(pr).forEach(T=>{fr(T,pr[T])}),Pr(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));const ie=()=>{var T,H;try{n(5,_=JSON.parse(o))}catch(Q){}_&&(_.type==="wagering"&&n(10,A=!0),n(17,F=la(_.currency||b)),n(7,y=ae(_.levels||((H=(T=_.wallet)==null?void 0:T.wagering)==null?void 0:H.levels))),_.type==="freeRound"&&n(23,be=Y(_.freeSpin)),Ae())},Y=T=>{if(!T||!T.vendorGamesDetail)return[];let H=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(Q=>{H=T.vendorGamesDetail[Q]}),H},ae=T=>{if(!T)return[];const H=[];let Q=!1;return T.map((le,me)=>{const ht=le,{maxRepeats:xe,completedTime:nt}=ht,We=ri(ht,["maxRepeats","completedTime"]);xe===0&&(Q=!0);for(let ze=0;ze<xe;ze++)H.push(Et({},We))}),Q?n(8,w=0):n(8,w=H.length),H},J=()=>{n(13,x=!1),n(15,W=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},ne=()=>{n(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},C=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},O=T=>{switch(T.data.type){case"OnBonusClaimedDone":n(13,x=!0);break;case"OnBonusForfeitedDone":n(13,x=!0);case"OnBonusClaimError":T.data.bonusCode===_.code&&n(15,W=!0);break}},ue=(T,H)=>({remainder:T%H,quotient:Math.floor(T/H)}),q=T=>{const H=new Date;return new Date(T).getTime()-H.getTime()},Ce=T=>{const H=q(T)/6e4,{quotient:Q,remainder:le}=ue(H,1440),{quotient:me,remainder:xe}=ue(le,60),nt=Math.floor(xe),We=ze=>Math.abs(ze)<10?`0${ze}`:ze;return[{value:Q,symbol:"d"},{value:me,symbol:"h"},{value:nt,symbol:"m"}].map(ze=>We(ze.value)+ze.symbol).join(" ")},Z=(T,H,Q,le)=>{const me=q(T);me<0?Q():(le(Ce(T)),me<H&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},me))},Ae=()=>{var Q;if(!_)return;const T=(le,me,xe)=>{Z(le,K,()=>me(xe),me)},H=_.endTime||((Q=_.trigger)==null?void 0:Q.endTime);H&&T(H,le=>{n(19,R=le),n(18,M=le)},"Expired"),_.expiryDate&&T(_.expiryDate,le=>n(18,M=le),"Expired")},ge=T=>{let H=(T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount).toFixed(2);return T.status==="released"&&T.type==="wagering"&&(H=(Number(H)+T.remainingAmount).toFixed(2)),parseFloat(H).toString()},Qe=T=>{var H,Q;return(((H=T.wageringProgress)==null?void 0:H.currentLevelIncrement)-((Q=T.wageringProgress)==null?void 0:Q.gap)).toFixed(2)},et=T=>{var le,me,xe;let H,Q;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(Q=(le=T.wageringProgress)==null?void 0:le.currentLevelIncrement,Q!=0&&(H=((((me=T.wageringProgress)==null?void 0:me.currentLevelIncrement)-((xe=T.wageringProgress)==null?void 0:xe.gap))/Q*100).toFixed(2))):T.status=="released"?H=100:(Q=T.initialWagerRequirementAmount,Q!=0&&(H=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/Q*100).toFixed(2))),Number(H)},dt=T=>{if(!T.wallet)return"";const H=T.type==="freeBet"||T.type==="freeRound"?T.wallet[T.type]:T.wallet,{validityMinutes:Q,expiryTime:le}=H;if(Q===0)return le?yn(new Date(le),"yyyy-MM-dd HH:mm:ss"):"infinite";{const me=Math.round(Q/1440);return me===1?`${me} day`:`${me} days`}},tt=T=>{if(T.products)return T.products;{let H=[];return T.wallet&&(T.wallet.casino&&H.push("Casino"),T.wallet.sports&&H.push("Sports")),H}},wt=(T,H)=>{const Q=i(`bonusType.${H.type}`),le=la(Object.keys(T.increment)[0]);return H.mode==="percentage"?`${H.bonusAmount*100}% up to ${le}${H.capAmount} ${Q}`:H.mode==="fixed"?`${le}${H.bonusAmount} ${Q}`:Q},Ct=(T,H)=>{const Q=We=>We===0?0:T.slice(0,We).reduce((ht,ze)=>ht+ze.maxRepeats,0),le=T[H],xe=Q(H)+1,nt=xe+le.maxRepeats-1;return le.maxRepeats>1?`${xe}-${nt}`:`${H+1}`},$=(T,H)=>{switch(H.type){case"standard":case"freeBet":return wt(T,H);case"freeRound":return`${H.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},ve=T=>{var H,Q;return Number((Q=(H=T==null?void 0:T[b])!=null?H:T==null?void 0:T.EUR)!=null?Q:0)},Yr=T=>{var le,me,xe,nt;const H=ve((xe=(me=(le=T.wallet)==null?void 0:le.standard)==null?void 0:me.initialAmount)==null?void 0:xe.fixedAmount),Q=((nt=T.wallet)==null?void 0:nt.wageringRequirementCoefficient)||0;return Number((H*Q).toFixed(2))},qr=T=>{var le,me,xe;const H=(me=(le=T.wallet)==null?void 0:le.freeRound)==null?void 0:me.vendor;if(!H)return 0;const Q=Object.keys(H)[0];return((xe=H[Q])==null?void 0:xe.roundNumber)||0},Xr=T=>T===void 0?"":yn(new Date(T),"yyyy-MM-dd HH:mm:ss"),Zr=(T,H)=>{var xe;const Q=((xe=T.wageringProgress)==null?void 0:xe.currentLevel)-1||0,le=H.length-1,me=nt=>nt.filter(We=>We.index>=0&&We.index<=le).map(We=>{const ht=H[We.index];return{label:We.label,desc:ht.bonuses.map(ze=>$(ht,ze))}});return T.status==="active"?me([{label:"current",index:Q},{label:"next",index:Q+1}]):T.status?me([{label:"last",index:le},{label:"previous",index:le-1}]):me([{label:"first",index:0},{label:"next",index:1}])},Kr=T=>{var H,Q;n(20,P=T.url?T.url:(Q=(H=T.presentation)==null?void 0:H.url)==null?void 0:Q.content)},Jr=(T,H="")=>({part:T,class:[T,H].join(" ")}),jn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Gn=T=>{n(21,z=!0),n(22,re=T)},V=()=>{n(21,z=!1),n(22,re=-1)},we=T=>{fetch(`${c}/${s}/bonuses-information/${T}`).then(H=>H.json()).then(H=>{H&&H[T]&&(n(14,L=!0),n(16,G=H[T]))})},Me=(T,H)=>{let Q=document.createElement("div");Q.innerHTML=H,T.append(Q)},Lt=()=>n(24,oe+=300),ct=T=>jn(T),Ad=T=>Gn(T),Td=()=>V(),Pd=()=>n(24,oe-=300),Qr=()=>{n(11,v=!v)},ei=()=>{n(12,k=!k)};function ti(T){ot[T?"unshift":"push"](()=>{X=T,n(6,X)})}return t.$$set=T=>{"rawbonus"in T&&n(46,o=T.rawbonus),"lang"in T&&n(47,s=T.lang),"status"in T&&n(0,a=T.status),"mbsource"in T&&n(1,l=T.mbsource),"clientstyling"in T&&n(2,u=T.clientstyling),"clientstylingurl"in T&&n(3,d=T.clientstylingurl),"cmsendpoint"in T&&n(48,c=T.cmsendpoint),"translationurl"in T&&n(49,h=T.translationurl),"levelcountlimit"in T&&n(4,f=T.levelcountlimit),"currency"in T&&n(50,b=T.currency)},t.$$.update=()=>{t.$$.dirty[0]&1&&(a==="claimable"&&n(9,g=!0),a==="active"&&n(9,g=!0)),t.$$.dirty[0]&1|t.$$.dirty[1]&98304&&n(51,r=o&&s&&a),t.$$.dirty[1]&1048576&&r&&ie(),t.$$.dirty[0]&32|t.$$.dirty[1]&1245184&&r&&_&&(s&&Vl(s),c?we(_.id):Kr(_)),t.$$.dirty[0]&68&&u&&X&&Fr(X,u),t.$$.dirty[0]&72&&d&&X&&Hr(X,d),t.$$.dirty[0]&66&&l&&X&&Rr(X,`${l}.Style`),t.$$.dirty[1]&262144&&h&&j()},[a,l,u,d,f,_,X,y,w,g,A,v,k,x,L,W,G,F,M,R,P,z,re,be,oe,i,J,ne,C,ge,Qe,et,dt,tt,Ct,$,ve,Yr,qr,Xr,Zr,Jr,jn,Gn,V,Me,o,s,c,h,b,r,Lt,ct,Ad,Td,Pd,Qr,ei,ti]}class gb extends Dr{constructor(e){super(),Sr(this,e,_b,mb,Fn,{rawbonus:46,lang:47,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:48,translationurl:49,levelcountlimit:4,currency:50},Wg,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[46]}set rawbonus(e){this.$$set({rawbonus:e}),de()}get lang(){return this.$$.ctx[47]}set lang(e){this.$$set({lang:e}),de()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get cmsendpoint(){return this.$$.ctx[48]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get translationurl(){return this.$$.ctx[49]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get currency(){return this.$$.ctx[50]}set currency(e){this.$$set({currency:e}),de()}}customElements.define("casino-bonus-card",kr(gb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function bb({totalItems:t,pageSize:e,currentPage:n,limit:r}){const i=Math.ceil(t/e),s=r&&i>wb(r)?yb({totalPages:i,limit:r,currentPage:n}):vb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:n<=1?1:n-1},...s||[],{type:"symbol",symbol:"&gt;",value:n>=i?i:n+1}]}function vb({totalPages:t}){return new Array(t).fill(null).map((e,n)=>({type:"number",value:n+1}))}function yb({totalPages:t,limit:e,currentPage:n}){const r=e*2+2,i=1+r,o=t-r,s=i+2;return n<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):n>=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):n>=i-e&&n<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:n-e+(l-2)}:l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:n+e+1}:{type:"number",value:n-e+(l-2)}):[]}function wb(t){return t*2+3+2}function Cb(t){Tr(t,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Va(t,e,n){const r=t.slice();return r[29]=e[n],r}const Eb=t=>({}),ja=t=>({}),xb=t=>({}),Ga=t=>({}),Ab=t=>({}),Ya=t=>({}),Tb=t=>({value:t[0]&32}),qa=t=>({value:t[29].value});function Pb(t){let e;const n=t[21].next,r=Hn(n,t,t[20],ja),i=r||Bb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,Eb):Un(o[20]),ja)},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Sb(t){let e;const n=t[21].prev,r=Hn(n,t,t[20],Ga),i=r||Mb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,xb):Un(o[20]),Ga)},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function kb(t){let e;const n=t[21].ellipsis,r=Hn(n,t,t[20],Ya),i=r||Ob();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,Ab):Un(o[20]),Ya)},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Db(t){let e;const n=t[21].number,r=Hn(n,t,t[20],qa),i=r||Nb(t);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,Tb):Un(o[20]),qa):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Bb(t){let e;return{c(){e=B(">")},m(n,r){I(n,e,r)},d(n){n&&N(e)}}}function Mb(t){let e;return{c(){e=B("<")},m(n,r){I(n,e,r)},d(n){n&&N(e)}}}function Ob(t){let e;return{c(){e=E("span"),e.textContent="..."},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function Nb(t){let e,n=t[29].value+"",r;return{c(){e=E("span"),r=B(n)},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&32&&n!==(n=i[29].value+"")&&fe(r,n)},d(i){i&&N(e)}}}function Xa(t){let e,n,r,i,o,s,a,l;const u=[Db,kb,Sb,Pb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(n=c(t))&&(r=d[n]=u[n](t));function h(){return t[22](t[29])}return{c(){e=E("button"),r&&r.c(),i=U(),e.disabled=o=t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1,m(e,"class","option"),m(e,"role","presentation"),se(e,"number",t[29].type==="number"),se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="&lt;"),se(e,"next",t[29].type==="symbol"&&t[29].symbol==="&gt;"),se(e,"disabled",t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1),se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),se(e,"active",t[29].type==="number"&&t[29].value===t[1])},m(f,b){I(f,e,b),~n&&d[n].m(e,null),p(e,i),s=!0,a||(l=Se(e,"click",h),a=!0)},p(f,b){t=f;let _=n;n=c(t),n===_?~n&&d[n].p(t,b):(r&&(_l(),lt(d[_],1,1,()=>{d[_]=null}),gl()),~n?(r=d[n],r?r.p(t,b):(r=d[n]=u[n](t),r.c()),Ge(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&se(e,"number",t[29].type==="number"),(!s||b[0]&32)&&se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="&lt;"),(!s||b[0]&32)&&se(e,"next",t[29].type==="symbol"&&t[29].symbol==="&gt;"),(!s||b[0]&98)&&se(e,"disabled",t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1),(!s||b[0]&32)&&se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),(!s||b[0]&34)&&se(e,"active",t[29].type==="number"&&t[29].value===t[1])},i(f){s||(Ge(r),s=!0)},o(f){lt(r),s=!1},d(f){f&&N(e),~n&&d[n].d(),a=!1,l()}}}function Za(t){let e,n,r,i,o,s,a,l;return{c(){e=E("div"),n=E("span"),n.textContent="Go To Page",r=U(),i=E("input"),o=U(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(e,"class","PaginationInputWrapper")},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),ur(i,t[3]),p(e,o),p(e,s),a||(l=[Se(i,"input",t[23]),Se(i,"change",t[24]),Se(s,"click",t[25])],a=!0)},p(u,d){d[0]&8&&ml(i.value)!==u[3]&&ur(i,u[3])},d(u){u&&N(e),a=!1,Ye(l)}}}function Ib(t){let e,n,r,i,o,s,a=Le(t[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Xa(Va(t,a,c));const u=c=>lt(l[c],1,1,()=>{l[c]=null});let d=t[7]&&Za(t);return{c(){e=E("div"),n=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=U(),d&&d.c(),m(n,"class",r="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(n,"part",i="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){I(c,e,h),p(e,n);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(n,null);p(e,o),d&&d.m(e,null),t[26](e),s=!0},p(c,h){if(h[0]&1048930){a=Le(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Va(c,a,f);l[f]?(l[f].p(b,h),Ge(l[f],1)):(l[f]=Xa(b),l[f].c(),Ge(l[f],1),l[f].m(n,null))}for(_l(),f=a.length;f<l.length;f+=1)u(f);gl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"part",i),c[7]?d?d.p(c,h):(d=Za(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ge(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)lt(l[h]);s=!1},d(c){c&&N(e),bt(l,c),d&&d.d(),t[26](null)}}}function Lb(t,e,n){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:b=""}=e,{mbsource:_}=e,{clientstyling:y=""}=e,{clientstylingurl:w=""}=e,g=window.navigator.userAgent,A=!1,v;Kl(g)&&(A=!0);let k,x,L;const W=P=>{window.postMessage({type:"PaginationChange",page:P.value})},G=P=>{n(4,x=P>a?a:P)};Pr(()=>()=>{});const F=P=>W(P);function M(){k=ml(this.value),n(3,k)}const R=()=>G(k),K=()=>W({value:x});function X(P){ot[P?"unshift":"push"](()=>{v=P,n(0,v)})}return t.$$set=P=>{"totalitems"in P&&n(10,d=P.totalitems),"pagesize"in P&&n(11,c=P.pagesize),"currentpage"in P&&n(12,h=P.currentpage),"limit"in P&&n(13,f=P.limit),"showinput"in P&&n(14,b=P.showinput),"mbsource"in P&&n(15,_=P.mbsource),"clientstyling"in P&&n(16,y=P.clientstyling),"clientstylingurl"in P&&n(17,w=P.clientstylingurl),"$$scope"in P&&n(20,u=P.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&65537&&y&&v&&Fr(v,y),t.$$.dirty[0]&131073&&w&&v&&Hr(v,w),t.$$.dirty[0]&32769&&_&&v&&Rr(v,`${_}.Style`),t.$$.dirty[0]&1024&&n(19,r=Number(d)),t.$$.dirty[0]&16384&&n(7,i=b),t.$$.dirty[0]&4096&&n(1,o=Number(h)),t.$$.dirty[0]&2048&&n(18,s=c),t.$$.dirty[0]&794626&&n(5,L=bb({totalItems:r,pageSize:s,currentPage:o,limit:f})),t.$$.dirty[0]&786432&&n(6,a=Math.ceil(r/s))},[v,o,A,k,x,L,a,i,W,G,d,c,h,f,b,_,y,w,s,r,u,l,F,M,R,K,X]}class Fb extends Dr{constructor(e){super(),Sr(this,e,Lb,Ib,Fn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Cb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),de()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),de()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-pagination",kr(Fb,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Hb(t){Tr(t,"svelte-1vc0na6",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:16px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function Ka(t,e,n){const r=t.slice();return r[65]=e[n],r}function Ja(t,e,n){const r=t.slice();return r[68]=e[n],r}function Qa(t){let e,n=t[26](`bonusCard.${t[68]}`)+"",r,i,o,s,a=[{type:"button"},t[25]("BonusStatusFilter"),{disabled:t[13]}],l={};for(let d=0;d<a.length;d+=1)l=D(l,a[d]);function u(){return t[41](t[68])}return{c(){e=E("button"),r=B(n),i=U(),S(e,l),se(e,"active",t[68]===t[22])},m(d,c){I(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Se(e,"click",u),o=!0)},p(d,c){t=d,c[0]&67108864&&n!==(n=t[26](`bonusCard.${t[68]}`)+"")&&te(r,n,l.contenteditable),S(e,l=De(a,[{type:"button"},c[0]&33554432&&t[25]("BonusStatusFilter"),c[0]&8192&&{disabled:t[13]}])),se(e,"active",t[68]===t[22])},d(d){d&&N(e),o=!1,s()}}}function Rb(t){let e,n,r=t[26]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=t[26]("bonus.from")+"",c,h,f,b,_,y,w=t[26]("bonus.to")+"",g,A,v,k,x,L=t[26]("bonus.filter")+"",W,G,F,M=[t[35]("BonusCalendarTitle")],R={};for(let q=0;q<M.length;q+=1)R=D(R,M[q]);let K=[{min:t[27]},{max:t[28]},{value:t[29]},{placeholder:"From"},t[35]("VaadinDatePicker")],X={};for(let q=0;q<K.length;q+=1)X=D(X,K[q]);let P=[t[25]("BonusCalendarStartDate")],z={};for(let q=0;q<P.length;q+=1)z=D(z,P[q]);let re=[{min:t[27]},{max:t[28]},{value:t[28]},{placeholder:"To"},t[35]("VaadinDatePicker")],be={};for(let q=0;q<re.length;q+=1)be=D(be,re[q]);let oe=[t[25]("BonusCalendarEndDate")],j={};for(let q=0;q<oe.length;q+=1)j=D(j,oe[q]);let ie=[t[25]("BonusCalendarContainer")],Y={};for(let q=0;q<ie.length;q+=1)Y=D(Y,ie[q]);let ae=[t[25]("BonusFilterButton"),{disabled:t[13]}],J={};for(let q=0;q<ae.length;q+=1)J=D(J,ae[q]);let ne=[t[35]("BonusCalendarContent")],C={};for(let q=0;q<ne.length;q+=1)C=D(C,ne[q]);let O=[t[25]("BonusCalendarWrapper")],ue={};for(let q=0;q<O.length;q+=1)ue=D(ue,O[q]);return{c(){e=E("div"),n=E("div"),i=B(r),o=U(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=B(d),h=U(),f=E("vaadin-date-picker"),b=U(),_=E("div"),y=E("label"),g=B(w),A=U(),v=E("vaadin-date-picker"),k=U(),x=E("button"),W=B(L),S(n,R),m(u,"for","BonusCalendarStartDate"),S(f,X),S(l,z),m(y,"for","BonusCalendarEndDate"),S(v,be),S(_,j),S(a,Y),S(x,J),S(s,C),S(e,ue)},m(q,Ce){I(q,e,Ce),p(e,n),p(n,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),t[44](f),p(a,b),p(a,_),p(_,y),p(y,g),p(_,A),p(_,v),t[45](v),p(s,k),p(s,x),p(x,W),x.autofocus&&x.focus(),G||(F=Se(x,"click",t[46]),G=!0)},p(q,Ce){Ce[0]&67108864&&r!==(r=q[26]("bonus.canlendarTitle")+"")&&te(i,r,R.contenteditable),Ce[0]&67108864&&d!==(d=q[26]("bonus.from")+"")&&fe(c,d),S(l,z=De(P,[Ce[0]&33554432&&q[25]("BonusCalendarStartDate")])),Ce[0]&67108864&&w!==(w=q[26]("bonus.to")+"")&&fe(g,w),S(_,j=De(oe,[Ce[0]&33554432&&q[25]("BonusCalendarEndDate")])),S(a,Y=De(ie,[Ce[0]&33554432&&q[25]("BonusCalendarContainer")])),Ce[0]&67108864&&L!==(L=q[26]("bonus.filter")+"")&&te(W,L,J.contenteditable),S(x,J=De(ae,[Ce[0]&33554432&&q[25]("BonusFilterButton"),Ce[0]&8192&&{disabled:q[13]}])),S(e,ue=De(O,[Ce[0]&33554432&&q[25]("BonusCalendarWrapper")]))},d(q){q&&N(e),t[44](null),t[45](null),G=!1,F()}}}function zb(t){let e,n,r,i=t[26]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=t[26]("bonus.claim")+"",f,b,_,y,w,g=[t[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=t[26]("bonus.placeholder")}],A={};for(let M=0;M<g.length;M+=1)A=D(A,g[M]);let v=[t[25]("BonusClaimButton"),{disabled:b=t[19]||!t[23]}],k={};for(let M=0;M<v.length;M+=1)k=D(k,v[M]);let x=[t[25]("BonusCodeWrapper")],L={};for(let M=0;M<x.length;M+=1)L=D(L,x[M]);let W=t[20]&&el(t),G=[t[25]("BonusCodeContainer")],F={};for(let M=0;M<G.length;M+=1)F=D(F,G[M]);return{c(){e=E("div"),n=E("label"),r=E("span"),r.textContent="*",o=B(i),s=U(),a=E("div"),l=E("input"),d=U(),c=E("button"),f=B(h),_=U(),W&&W.c(),m(r,"class","Asterisk"),m(n,"for","BonusCode"),S(l,A),S(c,k),S(a,L),S(e,F)},m(M,R){I(M,e,R),p(e,n),p(n,r),p(n,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),ur(l,t[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),W&&W.m(e,null),y||(w=[Se(l,"input",t[42]),Se(l,"keyup",t[36]),Se(c,"click",t[43])],y=!0)},p(M,R){R[0]&67108864&&i!==(i=M[26]("bonus.bonusCode")+"")&&fe(o,i),S(l,A=De(g,[R[0]&33554432&&M[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},R[0]&67108864&&u!==(u=M[26]("bonus.placeholder"))&&{placeholder:u}])),R[0]&262144&&l.value!==M[18]&&ur(l,M[18]),R[0]&67108864&&h!==(h=M[26]("bonus.claim")+"")&&te(f,h,k.contenteditable),S(c,k=De(v,[R[0]&33554432&&M[25]("BonusClaimButton"),R[0]&8912896&&b!==(b=M[19]||!M[23])&&{disabled:b}])),S(a,L=De(x,[R[0]&33554432&&M[25]("BonusCodeWrapper")])),M[20]?W?W.p(M,R):(W=el(M),W.c(),W.m(e,null)):W&&(W.d(1),W=null),S(e,F=De(G,[R[0]&33554432&&M[25]("BonusCodeContainer")]))},d(M){M&&N(e),W&&W.d(),y=!1,Ye(w)}}}function el(t){let e,n=t[26]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=B(n),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&67108864&&n!==(n=i[26]("bonus.invalidBonusCode")+"")&&fe(r,n)},d(i){i&&N(e)}}}function Ub(t){let e,n;function r(a,l){return a[12].length>0?jb:a[14]?Vb:Wb}let i=r(t),o=i(t),s=t[12].length!==0&&nl(t);return{c(){o.c(),e=U(),s&&s.c(),n=Ke()},m(a,l){o.m(a,l),I(a,e,l),s&&s.m(a,l),I(a,n,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=nl(a),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(a){a&&(N(e),N(n)),o.d(a),s&&s.d(a)}}}function $b(t){let e,n=[t[35]("ModalLoader")],r={};for(let i=0;i<n.length;i+=1)r=D(r,n[i]);return{c(){e=E("div"),S(e,r)},m(i,o){I(i,e,o)},p:Pe,d(i){i&&N(e)}}}function Wb(t){let e,n=t[26]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=B(n),m(e,"class","NoBonus")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&67108864&&n!==(n=i[26]("bonus.noBonus")+"")&&fe(r,n)},d(i){i&&N(e)}}}function Vb(t){let e,n=t[26]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=B(n),i=B(": "),o=B(t[14]),m(e,"class","BonusError")},m(s,a){I(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&67108864&&n!==(n=s[26]("bonus.error")+"")&&fe(r,n),a[0]&16384&&fe(o,s[14])},d(s){s&&N(e)}}}function jb(t){let e,n=Le(t[12]),r=[];for(let s=0;s<n.length;s+=1)r[s]=tl(Ka(t,n,s));let i=[t[35]("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();S(e,o)},m(s,a){I(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&37753339){n=Le(s[12]);let l;for(l=0;l<n.length;l+=1){const u=Ka(s,n,l);r[l]?r[l].p(u,a):(r[l]=tl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&N(e),bt(r,s)}}}function tl(t){let e,n,r,i=[{rawbonus:JSON.stringify(t[65]),status:t[22],cmsendpoint:t[3],lang:t[0],clientstyling:t[5],clientstylingurl:t[6],mbsource:t[4],translationurl:t[7],levelcountlimit:t[8],currency:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[t[25]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("li"),n=E("casino-bonus-card"),r=U(),S(n,o),S(e,a)},m(l,u){I(l,e,u),p(e,n),p(e,r)},p(l,u){S(n,o=De(i,[u[0]&4198907&&{rawbonus:JSON.stringify(l[65]),status:l[22],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),S(e,a=De(s,[u[0]&33554432&&l[25]("BonusItem")]))},d(l){l&&N(e)}}}function nl(t){let e;return{c(){e=E("casino-bonus-pagination"),He(e,"totalitems",t[16]),He(e,"currentpage",t[15]),He(e,"pagesize",t[2]),He(e,"limit",t[17]),He(e,"clientstyling",t[5]),He(e,"clientstylingurl",t[6]),He(e,"mbsource",t[4])},m(n,r){I(n,e,r)},p(n,r){r[0]&65536&&He(e,"totalitems",n[16]),r[0]&32768&&He(e,"currentpage",n[15]),r[0]&4&&He(e,"pagesize",n[2]),r[0]&131072&&He(e,"limit",n[17]),r[0]&32&&He(e,"clientstyling",n[5]),r[0]&64&&He(e,"clientstylingurl",n[6]),r[0]&16&&He(e,"mbsource",n[4])},d(n){n&&N(e)}}}function rl(t){let e,n,r,i,o=t[26]("bonus.forfeitMessage")+"",s,a,l,u,d=t[26]("bonus.forfeitCancel")+"",c,h,f,b=t[26]("bonus.forfeitConfirm")+"",_,y,w,g=[t[35]("ModalText")],A={};for(let z=0;z<g.length;z+=1)A=D(A,g[z]);let v=[t[35]("ModalCancel")],k={};for(let z=0;z<v.length;z+=1)k=D(k,v[z]);let x=[t[35]("ModalConfirm")],L={};for(let z=0;z<x.length;z+=1)L=D(L,x[z]);let W=[t[35]("ModalButtons")],G={};for(let z=0;z<W.length;z+=1)G=D(G,W[z]);let F=[t[35]("ModalBody")],M={};for(let z=0;z<F.length;z+=1)M=D(M,F[z]);let R=[t[35]("ModalContent")],K={};for(let z=0;z<R.length;z+=1)K=D(K,R[z]);let X=[t[25]("ModalWrapper")],P={};for(let z=0;z<X.length;z+=1)P=D(P,X[z]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),s=B(o),a=U(),l=E("div"),u=E("button"),c=B(d),h=U(),f=E("button"),_=B(b),S(i,A),S(u,k),S(f,L),S(l,G),S(r,M),S(n,K),S(e,P)},m(z,re){I(z,e,re),p(e,n),p(n,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,_),f.autofocus&&f.focus(),y||(w=[Se(u,"click",t[33]),Se(f,"click",t[47])],y=!0)},p(z,re){re[0]&67108864&&o!==(o=z[26]("bonus.forfeitMessage")+"")&&te(s,o,A.contenteditable),re[0]&67108864&&d!==(d=z[26]("bonus.forfeitCancel")+"")&&te(c,d,k.contenteditable),re[0]&67108864&&b!==(b=z[26]("bonus.forfeitConfirm")+"")&&te(_,b,L.contenteditable),S(e,P=De(X,[re[0]&33554432&&z[25]("ModalWrapper")]))},d(z){z&&N(e),y=!1,Ye(w)}}}function Gb(t){let e,n,r,i,o,s,a=Le(t[30]),l=[];for(let v=0;v<a.length;v+=1)l[v]=Qa(Ja(t,a,v));let u=[t[25]("BonusFilterWrapper")],d={};for(let v=0;v<u.length;v+=1)d=D(d,u[v]);function c(v,k){if(v[22]==="claimable")return zb;if(v[22]==="completed")return Rb}let h=c(t),f=h&&h(t);function b(v,k){return v[13]?$b:Ub}let _=b(t),y=_(t),w=t[21]&&rl(t),g=[t[35]("BonusesController")],A={};for(let v=0;v<g.length;v+=1)A=D(A,g[v]);return{c(){e=E("div"),n=E("div"),r=E("div");for(let v=0;v<l.length;v+=1)l[v].c();i=U(),f&&f.c(),o=U(),y.c(),s=U(),w&&w.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),S(n,d),S(e,A)},m(v,k){I(v,e,k),p(e,n),p(n,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),y.m(e,null),p(e,s),w&&w.m(e,null),t[48](e)},p(v,k){if(k[0]&1178607616|k[1]&8){a=Le(v[30]);let x;for(x=0;x<a.length;x+=1){const L=Ja(v,a,x);l[x]?l[x].p(L,k):(l[x]=Qa(L),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}S(n,d=De(u,[k[0]&33554432&&v[25]("BonusFilterWrapper")])),h===(h=c(v))&&f?f.p(v,k):(f&&f.d(1),f=h&&h(v),f&&(f.c(),f.m(e,o))),_===(_=b(v))&&y?y.p(v,k):(y.d(1),y=_(v),y&&(y.c(),y.m(e,s))),v[21]?w?w.p(v,k):(w=rl(v),w.c(),w.m(e,null)):w&&(w.d(1),w=null)},i:Pe,o:Pe,d(v){v&&N(e),bt(l,v),f&&f.d(),y.d(),w&&w.d(),t[48](null)}}}function Yb(t,e,n){let r,i,o;hl(t,Wl,V=>n(26,o=V));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:y="3"}=e,w=window.navigator.userAgent,g=!1,A=[],v=!0,k="",x=1,L=0,W=2,G=yn(ys(new Date,6),"yyyy-MM-dd"),F=yn(new Date,"yyyy-MM-dd"),M=yn(ys(new Date,3),"yyyy-MM-dd"),R,K="",X=!0,P=!1,z=!1,re=M,be=F,oe,j,ie="active",Y=!0,ae=["active","completed","claimable"],J="";Kl(w)&&(g=!0,W=1);const ne=()=>{fetch(_).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Me=>{fr(Me,we[Me])})}).catch(we=>{console.log(we)})};Object.keys(pr).forEach(V=>{fr(V,pr[V])}),Pr(()=>(window.addEventListener("message",C,!1),()=>{oe==null||oe.removeEventListener("change",tt),j==null||j.removeEventListener("change",wt),window.removeEventListener("message",C)}));const C=V=>{switch(V.data.type){case"PaginationChange":n(15,x=V.data.page),ge(x);break;case"OnBonusClaimed":ue(V.data.bonusCode);break;case"OnBonusForfeit":n(24,J=V.data.bonus.id),n(21,z=!0)}},O=()=>Ue(this,null,function*(){ge(1)}),ue=(V,we)=>Ue(this,null,function*(){n(23,Y=!1);const Me=yield q(V);Me.success?(n(20,P=!1),ge(1)):(n(14,k=Me.errorMessage),we?n(20,P=!0):window.postMessage({type:"OnBonusClaimError",message:k,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),n(23,Y=!0)}),q=V=>Ue(this,null,function*(){return yield dt(s+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:V,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),Ce=V=>Ue(this,null,function*(){n(23,Y=!1);const we=yield Z(V);we.success?ge(1):n(14,k=we.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),n(23,Y=!0),n(21,z=!1)}),Z=V=>Ue(this,null,function*(){const we=new URL(`${s}/v1/bonus/forfeit`),Me={bonusID:V,lang:a};return Object.keys(Me).map(Lt=>{we.searchParams.append(Lt,Me[Lt])}),yield dt(we,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Ae=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),n(21,z=!1)},ge=V=>Ue(this,null,function*(){x!==V&&n(15,x=V);const we=(V-1)*Number(d);n(13,v=!0),n(12,A=[]);const Me=yield Qe(s,l,we,{lang:a,limit:d});Me.success?(n(16,L=Me.total),n(12,A=Me.items||Me.bonuses)):n(14,k=Me.errorMessage),n(13,v=!1)}),Qe=(ct,Ad,Td,...Pd)=>Ue(this,[ct,Ad,Td,...Pd],function*(V,we,Me,Lt={}){const le=Lt,{limit:Qr,lang:ei}=le,ti=ri(le,["limit","lang"]),T=(()=>{switch(ie){case"claimable":return ie;default:return"granted"}})(),H=ln(Et({pagination:`limit=${Qr},offset=${Me}`,language:ei},ti),{sortOrder:"desc"});if(ie==="completed"){let me=new Date(re).toISOString(),xe=new Date(be+" 23:59:59").toISOString();H.startTime=me,H.endTime=xe,H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="completed,released,forfeited,expired,closed"}ie==="active"&&(H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="active");const Q=new URL(`${V}/v1/bonus/${T}`);return ie!=="claimable"?Q.searchParams.append("expand","freeSpin"):delete H.sortOrder,Object.keys(H).map(me=>{Q.searchParams.append(me,H[me])}),yield dt(Q,{headers:Et({},we?{"x-SessionId":we}:{})})}),et=(V,we="")=>({part:V,class:[V,we].join(" ")}),dt=(Me,...Lt)=>Ue(this,[Me,...Lt],function*(V,we={}){let ct;return ct=yield fetch(V,we),ct.ok===!1?{errorMessage:ct.status}:(ct=yield ct.json(),ct)}),tt=V=>{re=V.target.value},wt=V=>{be=V.target.value},Ct=()=>{oe.addEventListener("change",tt,!1),j.addEventListener("change",wt,!1)},$=()=>(n(20,P=!1),!!K),ve=()=>{n(19,X=!$())},Yr=V=>{n(22,ie=V),ge(1)};function qr(){K=this.value,n(18,K)}const Xr=()=>{ue(K,!0)};function Zr(V){ot[V?"unshift":"push"](()=>{oe=V,n(10,oe)})}function Kr(V){ot[V?"unshift":"push"](()=>{j=V,n(11,j)})}const Jr=()=>ge(1),jn=()=>Ce(J);function Gn(V){ot[V?"unshift":"push"](()=>{R=V,n(9,R)})}return t.$$set=V=>{"endpoint"in V&&n(37,s=V.endpoint),"lang"in V&&n(0,a=V.lang),"session"in V&&n(38,l=V.session),"currency"in V&&n(1,u=V.currency),"limit"in V&&n(2,d=V.limit),"cmsendpoint"in V&&n(3,c=V.cmsendpoint),"mbsource"in V&&n(4,h=V.mbsource),"clientstyling"in V&&n(5,f=V.clientstyling),"clientstylingurl"in V&&n(6,b=V.clientstylingurl),"translationurl"in V&&n(7,_=V.translationurl),"levelcountlimit"in V&&n(8,y=V.levelcountlimit)},t.$$.update=()=>{t.$$.dirty[0]&3072&&oe&&j&&Ct(),t.$$.dirty[1]&256&&n(25,r=(V,we="")=>et(`${V}${g?` ${V}Mobile`:""}`,we)),t.$$.dirty[0]&1&&a&&Vl(a),t.$$.dirty[0]&5|t.$$.dirty[1]&192&&n(40,i=s&&l&&a&&d),t.$$.dirty[1]&512&&i&&O(),t.$$.dirty[0]&544&&f&&R&&Fr(R,f),t.$$.dirty[0]&576&&b&&R&&Hr(R,b),t.$$.dirty[0]&528&&h&&R&&Rr(R,`${h}.Style`),t.$$.dirty[0]&128&&_&&ne()},[a,u,d,c,h,f,b,_,y,R,oe,j,A,v,k,x,L,W,K,X,P,z,ie,Y,J,r,o,G,F,M,ae,ue,Ce,Ae,ge,et,ve,s,l,g,i,Yr,qr,Xr,Zr,Kr,Jr,jn,Gn]}class xd extends Dr{constructor(e){super(),Sr(this,e,Yb,Gb,Fn,{endpoint:37,lang:0,session:38,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8},Hb,[-1,-1,-1])}get endpoint(){return this.$$.ctx[37]}set endpoint(e){this.$$set({endpoint:e}),de()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),de()}get session(){return this.$$.ctx[38]}set session(e){this.$$set({session:e}),de()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),de()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}}kr(xd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{}},[],[],!0);exports.default=xd;
3576
+ `),a=B(s),l=U(),u=B(t[17])},m(c,h){I(c,n,h),I(c,r,h),I(c,i,h),I(c,o,h),I(c,a,h),I(c,l,h),I(c,u,h)},p(c,h){var f;h[0]&32&&e!==(e=c[30](c[5])+"")&&fe(n,e),h[0]&131072&&fe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&fe(a,s),h[0]&131072&&fe(u,c[17])},d(c){c&&(N(n),N(r),N(i),N(o),N(a),N(l),N(u))}}}function tb(t){let e=t[5].initialWagerRequirementAmount+t[17]+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,e)},d(r){r&&N(n)}}}function nb(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function xa(t){var ge,oe;let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[36]((oe=(ge=t[5].wallet.standard)==null?void 0:ge.initialAmount)==null?void 0:oe.fixedAmount)+"",d,c,h,f,b,_=t[25]("bonusCard.wageringRequirement")+"",y,w,g,A,v=t[37](t[5])+t[17]+"",k,x=[t[41]("BonusCardLabel")],L={};for(let j=0;j<x.length;j+=1)L=D(L,x[j]);let W=[t[41]("BonusCardRowText")],Y={};for(let j=0;j<W.length;j+=1)Y=D(Y,W[j]);let F=[t[41]("BonusCardRow")],O={};for(let j=0;j<F.length;j+=1)O=D(O,F[j]);let R=[t[41]("BonusCardLabel")],Z={};for(let j=0;j<R.length;j+=1)Z=D(Z,R[j]);let q=[t[41]("BonusCardRowText")],P={};for(let j=0;j<q.length;j+=1)P=D(P,q[j]);let z=[t[41]("BonusCardRow")],ne={};for(let j=0;j<z.length;j+=1)ne=D(ne,z[j]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),h=U(),f=E("p"),b=E("span"),y=B(_),w=B(":"),g=U(),A=E("span"),k=B(v),S(n,L),S(a,Y),S(e,O),S(b,Z),S(A,P),S(f,ne)},m(j,ie){I(j,e,ie),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),I(j,h,ie),I(j,f,ie),p(f,b),p(b,y),p(b,w),p(f,g),p(f,A),p(A,k)},p(j,ie){var X,ae;ie[0]&33554432&&r!==(r=j[25]("bonusCard.bonusAmount")+"")&&te(i,r,L.contenteditable),ie[0]&32&&u!==(u=j[36]((ae=(X=j[5].wallet.standard)==null?void 0:X.initialAmount)==null?void 0:ae.fixedAmount)+"")&&fe(d,u),ie[0]&131072&&fe(c,j[17]),ie[0]&33554432&&_!==(_=j[25]("bonusCard.wageringRequirement")+"")&&te(y,_,Z.contenteditable),ie[0]&131104&&v!==(v=j[37](j[5])+j[17]+"")&&te(k,v,P.contenteditable)},d(j){j&&(N(e),N(h),N(f))}}}function Aa(t){var g,A;let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[36]((A=(g=t[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[t[41]("BonusCardLabel")],f={};for(let v=0;v<h.length;v+=1)f=D(f,h[v]);let b=[t[41]("BonusCardRowText")],_={};for(let v=0;v<b.length;v+=1)_=D(_,b[v]);let y=[t[41]("BonusCardRow")],w={};for(let v=0;v<y.length;v+=1)w=D(w,y[v]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(t[17]),S(n,f),S(a,_),S(e,w)},m(v,k){I(v,e,k),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(v,k){var x,L;k[0]&33554432&&r!==(r=v[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),k[0]&32&&u!==(u=v[36]((L=(x=v[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:L.fixedAmount)+"")&&fe(d,u),k[0]&131072&&fe(c,v[17])},d(v){v&&N(e)}}}function Ta(t){let e,n,r=t[25]("bonusCard.roundNumber")+"",i,o,s,a,l=t[38](t[5])+"",u,d=[t[41]("BonusCardLabel")],c={};for(let y=0;y<d.length;y+=1)c=D(c,d[y]);let h=[t[41]("BonusCardRowText")],f={};for(let y=0;y<h.length;y+=1)f=D(f,h[y]);let b=[t[41]("BonusCardRow")],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),S(n,c),S(a,f),S(e,_)},m(y,w){I(y,e,w),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u)},p(y,w){w[0]&33554432&&r!==(r=y[25]("bonusCard.roundNumber")+"")&&te(i,r,c.contenteditable),w[0]&32&&l!==(l=y[38](y[5])+"")&&te(u,l,f.contenteditable)},d(y){y&&N(e)}}}function Pa(t){let e,n,r=t[25]("bonusCard.levels")+"",i,o,s,a,l=[t[41]("BonusCardLabel")],u={};for(let w=0;w<l.length;w+=1)u=D(u,l[w]);function d(w,g){return w[8]>0?ib:rb}let c=d(t),h=c(t),f=[t[41]("BonusCardRowText")],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[t[41]("BonusCardRow")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){e=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),h.c(),S(n,u),S(a,b),S(e,y)},m(w,g){I(w,e,g),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),h.m(a,null)},p(w,g){g[0]&33554432&&r!==(r=w[25]("bonusCard.levels")+"")&&te(i,r,u.contenteditable),c===(c=d(w))&&h?h.p(w,g):(h.d(1),h=c(w),h&&(h.c(),h.m(a,null)))},d(w){w&&N(e),h.d()}}}function rb(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function ib(t){let e;return{c(){e=B(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&N(e)}}}function Sa(t){let e,n,r=t[5].type==="standard"&&ka(t),i=t[5].type==="wagering"&&Da(t);return{c(){r&&r.c(),e=U(),i&&i.c(),n=Ke()},m(o,s){r&&r.m(o,s),I(o,e,s),i&&i.m(o,s),I(o,n,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=ka(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Da(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(o){o&&(N(e),N(n)),r&&r.d(o),i&&i.d(o)}}}function ka(t){let e,n,r,i=[t[41]("CircularProgress"),{value:r=t[31](t[5])},{status:t[0]},{clientstyling:t[2]},{clientstylingurl:t[3]},{mbsource:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[t[41]("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("div"),n=E("casino-bonus-progress"),S(n,o),S(e,a)},m(l,u){I(l,e,u),p(e,n)},p(l,u){S(n,o=Se(i,[l[41]("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&N(e)}}}function Da(t){var k;let e,n,r,i,o,s=t[25]("bonusCard.level")+"",a,l,u=(((k=t[5].wageringProgress)==null?void 0:k.currentLevel)||1)+"",d,c,h=[t[41]("CircularProgress"),{value:r=t[31](t[5])},{status:t[0]},{clientstyling:t[2]},{clientstylingurl:t[3]},{mbsource:t[1]}],f={};for(let x=0;x<h.length;x+=1)f=D(f,h[x]);function b(x,L){return x[8]>0?sb:ob}let _=b(t),y=_(t),w=[t[41]("CircularProgressText")],g={};for(let x=0;x<w.length;x+=1)g=D(g,w[x]);let A=[t[41]("BonusCardProgress")],v={};for(let x=0;x<A.length;x+=1)v=D(v,A[x]);return{c(){e=E("div"),n=E("casino-bonus-progress"),i=U(),o=E("div"),a=B(s),l=B(": "),d=B(u),c=B(` /
3577
+ `),y.c(),S(n,f),S(o,g),S(e,v)},m(x,L){I(x,e,L),p(e,n),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),y.m(o,null)},p(x,L){var W;S(n,f=Se(h,[x[41]("CircularProgress"),L[0]&32&&r!==(r=x[31](x[5]))&&{value:r},L[0]&1&&{status:x[0]},L[0]&4&&{clientstyling:x[2]},L[0]&8&&{clientstylingurl:x[3]},L[0]&2&&{mbsource:x[1]}])),L[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&te(a,s,g.contenteditable),L[0]&32&&u!==(u=(((W=x[5].wageringProgress)==null?void 0:W.currentLevel)||1)+"")&&te(d,u,g.contenteditable),_===(_=b(x))&&y?y.p(x,L):(y.d(1),y=_(x),y&&(y.c(),y.m(o,null)))},d(x){x&&N(e),y.d()}}}function ob(t){let e;return{c(){e=B("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function sb(t){let e;return{c(){e=B(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&N(e)}}}function Ba(t){let e,n,r,i,o,s,a=t[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[t[41]("BonusCardAdditionalTitle")],_={};for(let F=0;F<b.length;F+=1)_=D(_,b[F]);function y(F,O){return F[11]?ab:lb}let w=y(t),g=w(t),A=[t[41]("BonusCardAdditionalButton")],v={};for(let F=0;F<A.length;F+=1)v=D(v,A[F]);let k=[t[41]("BonusCardAdditionalHeader")],x={};for(let F=0;F<k.length;F+=1)x=D(x,k[F]);let L=t[11]&&Ma(t),W=[t[41]("BonusCardAdditional")],Y={};for(let F=0;F<W.length;F+=1)Y=D(Y,W[F]);return{c(){e=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),l=B(a),u=U(),d=E("span"),g.c(),c=U(),L&&L.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,_),S(d,v),S(n,x),se(n,"Active",t[11]),S(e,Y)},m(F,O){I(F,e,O),p(e,n),p(n,r),p(r,i),p(i,o),p(r,s),p(r,l),p(n,u),p(n,d),g.m(d,null),p(e,c),L&&L.m(e,null),h||(f=ke(n,"click",t[57]),h=!0)},p(F,O){O[0]&33554432&&a!==(a=F[25]("bonusCard.rewards")+"")&&te(l,a,_.contenteditable),w!==(w=y(F))&&(g.d(1),g=w(F),g&&(g.c(),g.m(d,null))),O[0]&2048&&se(n,"Active",F[11]),F[11]?L?L.p(F,O):(L=Ma(F),L.c(),L.m(e,null)):L&&(L.d(1),L=null)},d(F){F&&N(e),g.d(),L&&L.d(),h=!1,f()}}}function ab(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function lb(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function Ma(t){let e,n=t[5].type==="wagering"&&Oa(t),r=[t[41]("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=D(i,r[o]);return{c(){e=E("div"),n&&n.c(),S(e,i)},m(o,s){I(o,e,s),n&&n.m(e,null)},p(o,s){o[5].type==="wagering"?n?n.p(o,s):(n=Oa(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&N(e),n&&n.d()}}}function Oa(t){let e,n=t[5].levels.length>Number(t[4]),r;function i(l,u){if(l[5].status)return db;if(l[5].levels)return ub}let o=i(t),s=o&&o(t),a=n&&Ha(t);return{c(){s&&s.c(),e=U(),a&&a.c(),r=Ke()},m(l,u){s&&s.m(l,u),I(l,e,u),a&&a.m(l,u),I(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(e.parentNode,e))),u[0]&48&&(n=l[5].levels.length>Number(l[4])),n?a?a.p(l,u):(a=Ha(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(N(e),N(r)),s&&s.d(l),a&&a.d(l)}}}function ub(t){let e,n=Le(t[5].levels.slice(0,t[4])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Ia(ua(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Ke()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&1048){n=Le(i[5].levels.slice(0,i[4]));let s;for(s=0;s<n.length;s+=1){const a=ua(i,n,s);r[s]?r[s].p(a,o):(r[s]=Ia(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(e),bt(r,i)}}}function db(t){let e,n=Le(t[40](t[5],t[7])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Fa(ca(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Ke()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&1536){n=Le(i[40](i[5],i[7]));let s;for(s=0;s<n.length;s+=1){const a=ca(i,n,s);r[s]?r[s].p(a,o):(r[s]=Fa(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(e),bt(r,i)}}}function Na(t){let e=t[35](t[82],t[85])+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&fe(n,e)},d(r){r&&N(n)}}}function Ia(t){let e,n,r=t[25]("bonusCard.level")+"",i,o,s=t[34](t[5].levels,t[84])+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Le(t[82].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Na(da(t,b,g));let y=[t[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){e=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(e,w)},m(g,A){I(g,e,A),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(e,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&te(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&te(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Le(g[82].bonuses);let v;for(v=0;v<b.length;v+=1){const k=da(g,b,v);_[v]?_[v].p(k,A):(_[v]=Na(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(e),bt(_,g)}}}function La(t){let e=t[79]+"",n;return{c(){n=B(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&fe(n,e)},d(r){r&&N(n)}}}function Fa(t){let e,n,r=t[25](`bonusCard.${t[76].label}`)+"",i,o,s=t[25]("bonusCard.level")+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Le(t[76].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=La(ha(t,b,g));let y=[t[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){e=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(e,w)},m(g,A){I(g,e,A),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&te(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&te(a,s,f.contenteditable),A[0]&160|A[1]&512){b=Le(g[76].desc);let v;for(v=0;v<b.length;v+=1){const k=ha(g,b,v);_[v]?_[v].p(k,A):(_[v]=La(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(e),bt(_,g)}}}function Ha(t){let e,n=t[25]("bonusCard.allRewards")+"",r,i,o,s=[t[41]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("a"),r=B(n),S(e,a)},m(l,u){I(l,e,u),p(e,r),i||(o=ke(e,"click",t[28]),i=!0)},p(l,u){u[0]&33554432&&n!==(n=l[25]("bonusCard.allRewards")+"")&&te(r,n,a.contenteditable)},d(l){l&&N(e),i=!1,o()}}}function cb(t){let e,n,r,i,o,s,a,l,u,d,c=t[25]("bonusCard.terms")+"",h,f=[t[41]("BonusCardTermsLink"),{href:t[20]},{target:"__blank"}],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[t[41]("BonusCardTerms")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){e=E("div"),n=E("a"),r=ee("svg"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=U(),h=B(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),S(n,b),S(e,y)},m(w,g){I(w,e,g),p(e,n),p(n,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(n,d),p(n,h)},p(w,g){g[0]&33554432&&c!==(c=w[25]("bonusCard.terms")+"")&&te(h,c,b.contenteditable),S(n,b=Se(f,[w[41]("BonusCardTermsLink"),g[0]&1048576&&{href:w[20]},{target:"__blank"}]))},d(w){w&&N(e)}}}function hb(t){let e,n,r,i,o,s,a,l,u,d,c,h=t[25]("bonusCard.terms")+"",f,b,_,y,w,g,A=[t[41]("BonusCardTermsTitle")],v={};for(let P=0;P<A.length;P+=1)v=D(v,A[P]);function k(P,z){return P[12]?fb:pb}let x=k(t),L=x(t),W=[t[41]("BonusCardTermsButton")],Y={};for(let P=0;P<W.length;P+=1)Y=D(Y,W[P]);let F=[t[41]("BonusCardTermsHeader")],O={};for(let P=0;P<F.length;P+=1)O=D(O,F[P]);let R=t[12]&&Ra(t),Z=[t[41]("BonusCardTerms")],q={};for(let P=0;P<Z.length;P+=1)q=D(q,Z[P]);return{c(){e=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=U(),f=B(h),b=U(),_=E("span"),L.c(),y=U(),R&&R.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,v),S(_,Y),S(n,O),se(n,"Active",t[12]),S(e,q)},m(P,z){I(P,e,z),p(e,n),p(n,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(n,b),p(n,_),L.m(_,null),p(e,y),R&&R.m(e,null),w||(g=ke(n,"click",t[58]),w=!0)},p(P,z){z[0]&33554432&&h!==(h=P[25]("bonusCard.terms")+"")&&te(f,h,v.contenteditable),x!==(x=k(P))&&(L.d(1),L=x(P),L&&(L.c(),L.m(_,null))),z[0]&4096&&se(n,"Active",P[12]),P[12]?R?R.p(P,z):(R=Ra(P),R.c(),R.m(e,null)):R&&(R.d(1),R=null)},d(P){P&&N(e),L.d(),R&&R.d(),w=!1,g()}}}function fb(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function pb(t){let e,n;return{c(){e=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function Ra(t){let e,n,r,i,o=[t[41]("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=D(s,o[a]);return{c(){e=E("div"),S(e,s)},m(a,l){I(a,e,l),r||(i=Md(n=t[45].call(null,e,t[16].terms_and_conditions)),r=!0)},p(a,l){n&&Ln(n.update)&&l[0]&65536&&n.update.call(null,a[16].terms_and_conditions)},d(a){a&&N(e),r=!1,i()}}}function za(t){let e,n,r,i=t[0]==="claimable"&&Ua(t),o=t[0]==="active"&&t[5].status==="active"&&Wa(t),s=[t[41]("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=D(a,s[d]);let l=[t[41]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=D(u,l[d]);return{c(){e=E("div"),n=E("div"),i&&i.c(),r=U(),o&&o.c(),S(n,a),S(e,u)},m(d,c){I(d,e,c),p(e,n),i&&i.m(n,null),p(n,r),o&&o.m(n,null)},p(d,c){d[0]==="claimable"?i?i.p(d,c):(i=Ua(d),i.c(),i.m(n,r)):i&&(i.d(1),i=null),d[0]==="active"&&d[5].status==="active"?o?o.p(d,c):(o=Wa(d),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},d(d){d&&N(e),i&&i.d(),o&&o.d()}}}function Ua(t){let e,n,r,i,o,s,a,l,u,d=t[25]("bonusCard.join")+"",c,h,f,b,_=t[15]===!0&&$a(t),y=[t[41]("BonusCardJoinCountdown")],w={};for(let x=0;x<y.length;x+=1)w=D(w,y[x]);let g=[t[41]("BonusJoinButton"),{type:"button"},{disabled:h=!t[13]}],A={};for(let x=0;x<g.length;x+=1)A=D(A,g[x]);let v=[t[41]("BonusCardJoinWrapper")],k={};for(let x=0;x<v.length;x+=1)k=D(k,v[x]);return{c(){e=E("div"),_&&_.c(),n=U(),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),a=B(t[19]),l=U(),u=E("button"),c=B(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,w),S(u,A),S(e,k)},m(x,L){I(x,e,L),_&&_.m(e,null),p(e,n),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(b=ke(u,"click",t[26]),f=!0)},p(x,L){x[15]===!0?_?_.p(x,L):(_=$a(x),_.c(),_.m(e,n)):_&&(_.d(1),_=null),L[0]&524288&&te(a,x[19],w.contenteditable),L[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&te(c,d,A.contenteditable),S(u,A=Se(g,[x[41]("BonusJoinButton"),{type:"button"},L[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&N(e),_&&_.d(),f=!1,b()}}}function $a(t){let e,n=t[25]("bonusCard.error")+"",r,i=[t[41]("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("span"),r=B(n),S(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&n!==(n=s[25]("bonusCard.error")+"")&&te(r,n,o.contenteditable)},d(s){s&&N(e)}}}function Wa(t){let e,n=t[25]("bonusCard.forfeit")+"",r,i,o,s,a=[t[41]("BonusForfeitButton"),{type:"button"},{disabled:i=!t[13]}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){e=E("button"),r=B(n),S(e,l)},m(u,d){I(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=ke(e,"click",t[27]),o=!0)},p(u,d){d[0]&33554432&&n!==(n=u[25]("bonusCard.forfeit")+"")&&te(r,n,l.contenteditable),S(e,l=Se(a,[u[41]("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&N(e),o=!1,s()}}}function mb(t){let e,n=t[5]&&pa(t);return{c(){n&&n.c(),e=Ke()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5]?n?n.p(r,i):(n=pa(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:Pe,o:Pe,d(r){r&&N(e),n&&n.d(r)}}}function _b(t,e,n){let r,i;hl(t,Wl,T=>n(25,i=T));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_,y=[],w,g=!1,A=!1,v=!1,k=!1,x=!0,L=!1,W=!1,Y={},F,O,R="",Z=1e3*30,q,P="",z=!1,ne,ge=[],oe=0;const j=()=>{fetch(h).then(H=>H.json()).then(H=>{Object.keys(H).forEach(Q=>{fr(Q,H[Q])})}).catch(H=>{console.log(H)})};Object.keys(pr).forEach(T=>{fr(T,pr[T])}),Pr(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)}));const ie=()=>{var T,H;try{n(5,_=JSON.parse(o))}catch(Q){}_&&(_.type==="wagering"&&n(10,A=!0),n(17,F=la(_.currency||b)),n(7,y=ae(_.levels||((H=(T=_.wallet)==null?void 0:T.wagering)==null?void 0:H.levels))),_.type==="freeRound"&&n(23,ge=X(_.freeSpin)),Ae())},X=T=>{if(!T||!T.vendorGamesDetail)return[];let H=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(Q=>{H=T.vendorGamesDetail[Q]}),H},ae=T=>{if(!T)return[];const H=[];let Q=!1;return T.map((le,me)=>{const ht=le,{maxRepeats:xe,completedTime:nt}=ht,We=ri(ht,["maxRepeats","completedTime"]);xe===0&&(Q=!0);for(let ze=0;ze<xe;ze++)H.push(Et({},We))}),Q?n(8,w=0):n(8,w=H.length),H},J=()=>{n(13,x=!1),n(15,W=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},re=()=>{n(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},C=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},M=T=>{switch(T.data.type){case"OnBonusClaimedDone":n(13,x=!0);break;case"OnBonusForfeitedDone":n(13,x=!0);case"OnBonusClaimError":T.data.bonusCode===_.code&&n(15,W=!0);break}},ue=(T,H)=>({remainder:T%H,quotient:Math.floor(T/H)}),G=T=>{const H=new Date;return new Date(T).getTime()-H.getTime()},Ce=T=>{const H=G(T)/6e4,{quotient:Q,remainder:le}=ue(H,1440),{quotient:me,remainder:xe}=ue(le,60),nt=Math.floor(xe),We=ze=>Math.abs(ze)<10?`0${ze}`:ze;return[{value:Q,symbol:"d"},{value:me,symbol:"h"},{value:nt,symbol:"m"}].map(ze=>We(ze.value)+ze.symbol).join(" ")},K=(T,H,Q,le)=>{const me=G(T);me<0?Q():(le(Ce(T)),me<H&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},me))},Ae=()=>{var Q;if(!_)return;const T=(le,me,xe)=>{K(le,Z,()=>me(xe),me)},H=_.endTime||((Q=_.trigger)==null?void 0:Q.endTime);H&&T(H,le=>{n(19,R=le),n(18,O=le)},"Expired"),_.expiryDate&&T(_.expiryDate,le=>n(18,O=le),"Expired")},be=T=>{let H=(T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount).toFixed(2);return T.status==="released"&&T.type==="wagering"&&(H=(Number(H)+T.remainingAmount).toFixed(2)),parseFloat(H).toString()},Qe=T=>{var H,Q;return(((H=T.wageringProgress)==null?void 0:H.currentLevelIncrement)-((Q=T.wageringProgress)==null?void 0:Q.gap)).toFixed(2)},et=T=>{var le,me,xe;let H,Q;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(Q=(le=T.wageringProgress)==null?void 0:le.currentLevelIncrement,Q!=0&&(H=((((me=T.wageringProgress)==null?void 0:me.currentLevelIncrement)-((xe=T.wageringProgress)==null?void 0:xe.gap))/Q*100).toFixed(2))):T.status=="released"?H=100:(Q=T.initialWagerRequirementAmount,Q!=0&&(H=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/Q*100).toFixed(2))),Number(H)},dt=T=>{if(!T.wallet)return"";const H=T.type==="freeBet"||T.type==="freeRound"?T.wallet[T.type]:T.wallet,{validityMinutes:Q,expiryTime:le}=H;if(Q===0)return le?yn(new Date(le),"yyyy-MM-dd HH:mm:ss"):"infinite";{const me=Math.round(Q/1440);return me===1?`${me} day`:`${me} days`}},tt=T=>{if(T.products)return T.products;{let H=[];return T.wallet&&(T.wallet.casino&&H.push("Casino"),T.wallet.sports&&H.push("Sports")),H}},wt=(T,H)=>{const Q=i(`bonusType.${H.type}`),le=la(Object.keys(T.increment)[0]);return H.mode==="percentage"?`${H.bonusAmount*100}% up to ${le}${H.capAmount} ${Q}`:H.mode==="fixed"?`${le}${H.bonusAmount} ${Q}`:Q},Ct=(T,H)=>{const Q=We=>We===0?0:T.slice(0,We).reduce((ht,ze)=>ht+ze.maxRepeats,0),le=T[H],xe=Q(H)+1,nt=xe+le.maxRepeats-1;return le.maxRepeats>1?`${xe}-${nt}`:`${H+1}`},$=(T,H)=>{switch(H.type){case"standard":case"freeBet":return wt(T,H);case"freeRound":return`${H.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},ve=T=>{var H,Q;return Number((Q=(H=T==null?void 0:T[b])!=null?H:T==null?void 0:T.EUR)!=null?Q:0)},Yr=T=>{var le,me,xe,nt;const H=ve((xe=(me=(le=T.wallet)==null?void 0:le.standard)==null?void 0:me.initialAmount)==null?void 0:xe.fixedAmount),Q=((nt=T.wallet)==null?void 0:nt.wageringRequirementCoefficient)||0;return Number((H*Q).toFixed(2))},qr=T=>{var le,me,xe;const H=(me=(le=T.wallet)==null?void 0:le.freeRound)==null?void 0:me.vendor;if(!H)return 0;const Q=Object.keys(H)[0];return((xe=H[Q])==null?void 0:xe.roundNumber)||0},Xr=T=>T===void 0?"":yn(new Date(T),"yyyy-MM-dd HH:mm:ss"),Zr=(T,H)=>{var xe;const Q=((xe=T.wageringProgress)==null?void 0:xe.currentLevel)-1||0,le=H.length-1,me=nt=>nt.filter(We=>We.index>=0&&We.index<=le).map(We=>{const ht=H[We.index];return{label:We.label,desc:ht.bonuses.map(ze=>$(ht,ze))}});return T.status==="active"?me([{label:"current",index:Q},{label:"next",index:Q+1}]):T.status?me([{label:"last",index:le},{label:"previous",index:le-1}]):me([{label:"first",index:0},{label:"next",index:1}])},Kr=T=>{var H,Q;n(20,P=T.url?T.url:(Q=(H=T.presentation)==null?void 0:H.url)==null?void 0:Q.content)},Jr=(T,H="")=>({part:T,class:[T,H].join(" ")}),jn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Gn=T=>{n(21,z=!0),n(22,ne=T)},V=()=>{n(21,z=!1),n(22,ne=-1)},we=T=>{fetch(`${c}/${s}/bonuses-information/${T}`).then(H=>H.json()).then(H=>{H&&H[T]&&(n(14,L=!0),n(16,Y=H[T]))})},Me=(T,H)=>{let Q=document.createElement("div");Q.innerHTML=H,T.append(Q)},Lt=()=>n(24,oe+=300),ct=T=>jn(T),Ad=T=>Gn(T),Td=()=>V(),Pd=()=>n(24,oe-=300),Qr=()=>{n(11,v=!v)},ei=()=>{n(12,k=!k)};function ti(T){ot[T?"unshift":"push"](()=>{q=T,n(6,q)})}return t.$$set=T=>{"rawbonus"in T&&n(46,o=T.rawbonus),"lang"in T&&n(47,s=T.lang),"status"in T&&n(0,a=T.status),"mbsource"in T&&n(1,l=T.mbsource),"clientstyling"in T&&n(2,u=T.clientstyling),"clientstylingurl"in T&&n(3,d=T.clientstylingurl),"cmsendpoint"in T&&n(48,c=T.cmsendpoint),"translationurl"in T&&n(49,h=T.translationurl),"levelcountlimit"in T&&n(4,f=T.levelcountlimit),"currency"in T&&n(50,b=T.currency)},t.$$.update=()=>{t.$$.dirty[0]&1&&(a==="claimable"&&n(9,g=!0),a==="active"&&n(9,g=!0)),t.$$.dirty[0]&1|t.$$.dirty[1]&98304&&n(51,r=o&&s&&a),t.$$.dirty[1]&1048576&&r&&ie(),t.$$.dirty[0]&32|t.$$.dirty[1]&1245184&&r&&_&&(s&&Vl(s),c?we(_.id):Kr(_)),t.$$.dirty[0]&68&&u&&q&&Fr(q,u),t.$$.dirty[0]&72&&d&&q&&Hr(q,d),t.$$.dirty[0]&66&&l&&q&&Rr(q,`${l}.Style`),t.$$.dirty[1]&262144&&h&&j()},[a,l,u,d,f,_,q,y,w,g,A,v,k,x,L,W,Y,F,O,R,P,z,ne,ge,oe,i,J,re,C,be,Qe,et,dt,tt,Ct,$,ve,Yr,qr,Xr,Zr,Jr,jn,Gn,V,Me,o,s,c,h,b,r,Lt,ct,Ad,Td,Pd,Qr,ei,ti]}class gb extends Dr{constructor(e){super(),Sr(this,e,_b,mb,Fn,{rawbonus:46,lang:47,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:48,translationurl:49,levelcountlimit:4,currency:50},Wg,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[46]}set rawbonus(e){this.$$set({rawbonus:e}),de()}get lang(){return this.$$.ctx[47]}set lang(e){this.$$set({lang:e}),de()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get cmsendpoint(){return this.$$.ctx[48]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get translationurl(){return this.$$.ctx[49]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get currency(){return this.$$.ctx[50]}set currency(e){this.$$set({currency:e}),de()}}customElements.define("casino-bonus-card",kr(gb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function bb({totalItems:t,pageSize:e,currentPage:n,limit:r}){const i=Math.ceil(t/e),s=r&&i>wb(r)?yb({totalPages:i,limit:r,currentPage:n}):vb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:n<=1?1:n-1},...s||[],{type:"symbol",symbol:"&gt;",value:n>=i?i:n+1}]}function vb({totalPages:t}){return new Array(t).fill(null).map((e,n)=>({type:"number",value:n+1}))}function yb({totalPages:t,limit:e,currentPage:n}){const r=e*2+2,i=1+r,o=t-r,s=i+2;return n<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):n>=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):n>=i-e&&n<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:n-e+(l-2)}:l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:n+e+1}:{type:"number",value:n-e+(l-2)}):[]}function wb(t){return t*2+3+2}function Cb(t){Tr(t,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Va(t,e,n){const r=t.slice();return r[29]=e[n],r}const Eb=t=>({}),ja=t=>({}),xb=t=>({}),Ga=t=>({}),Ab=t=>({}),Ya=t=>({}),Tb=t=>({value:t[0]&32}),qa=t=>({value:t[29].value});function Pb(t){let e;const n=t[21].next,r=Hn(n,t,t[20],ja),i=r||Bb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,Eb):Un(o[20]),ja)},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Sb(t){let e;const n=t[21].prev,r=Hn(n,t,t[20],Ga),i=r||Mb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,xb):Un(o[20]),Ga)},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function kb(t){let e;const n=t[21].ellipsis,r=Hn(n,t,t[20],Ya),i=r||Ob();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,Ab):Un(o[20]),Ya)},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Db(t){let e;const n=t[21].number,r=Hn(n,t,t[20],qa),i=r||Nb(t);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&zn(r,n,o,o[20],e?Rn(n,o[20],s,Tb):Un(o[20]),qa):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ge(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Bb(t){let e;return{c(){e=B(">")},m(n,r){I(n,e,r)},d(n){n&&N(e)}}}function Mb(t){let e;return{c(){e=B("<")},m(n,r){I(n,e,r)},d(n){n&&N(e)}}}function Ob(t){let e;return{c(){e=E("span"),e.textContent="..."},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function Nb(t){let e,n=t[29].value+"",r;return{c(){e=E("span"),r=B(n)},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&32&&n!==(n=i[29].value+"")&&fe(r,n)},d(i){i&&N(e)}}}function Xa(t){let e,n,r,i,o,s,a,l;const u=[Db,kb,Sb,Pb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(n=c(t))&&(r=d[n]=u[n](t));function h(){return t[22](t[29])}return{c(){e=E("button"),r&&r.c(),i=U(),e.disabled=o=t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1,m(e,"class","option"),m(e,"role","presentation"),se(e,"number",t[29].type==="number"),se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="&lt;"),se(e,"next",t[29].type==="symbol"&&t[29].symbol==="&gt;"),se(e,"disabled",t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1),se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),se(e,"active",t[29].type==="number"&&t[29].value===t[1])},m(f,b){I(f,e,b),~n&&d[n].m(e,null),p(e,i),s=!0,a||(l=ke(e,"click",h),a=!0)},p(f,b){t=f;let _=n;n=c(t),n===_?~n&&d[n].p(t,b):(r&&(_l(),lt(d[_],1,1,()=>{d[_]=null}),gl()),~n?(r=d[n],r?r.p(t,b):(r=d[n]=u[n](t),r.c()),Ge(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&se(e,"number",t[29].type==="number"),(!s||b[0]&32)&&se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="&lt;"),(!s||b[0]&32)&&se(e,"next",t[29].type==="symbol"&&t[29].symbol==="&gt;"),(!s||b[0]&98)&&se(e,"disabled",t[29].type==="symbol"&&t[29].symbol==="&gt;"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="&lt;"&&t[1]<=1),(!s||b[0]&32)&&se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),(!s||b[0]&34)&&se(e,"active",t[29].type==="number"&&t[29].value===t[1])},i(f){s||(Ge(r),s=!0)},o(f){lt(r),s=!1},d(f){f&&N(e),~n&&d[n].d(),a=!1,l()}}}function Za(t){let e,n,r,i,o,s,a,l;return{c(){e=E("div"),n=E("span"),n.textContent="Go To Page",r=U(),i=E("input"),o=U(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(e,"class","PaginationInputWrapper")},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),ur(i,t[3]),p(e,o),p(e,s),a||(l=[ke(i,"input",t[23]),ke(i,"change",t[24]),ke(s,"click",t[25])],a=!0)},p(u,d){d[0]&8&&ml(i.value)!==u[3]&&ur(i,u[3])},d(u){u&&N(e),a=!1,Ye(l)}}}function Ib(t){let e,n,r,i,o,s,a=Le(t[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Xa(Va(t,a,c));const u=c=>lt(l[c],1,1,()=>{l[c]=null});let d=t[7]&&Za(t);return{c(){e=E("div"),n=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=U(),d&&d.c(),m(n,"class",r="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(n,"part",i="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){I(c,e,h),p(e,n);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(n,null);p(e,o),d&&d.m(e,null),t[26](e),s=!0},p(c,h){if(h[0]&1048930){a=Le(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Va(c,a,f);l[f]?(l[f].p(b,h),Ge(l[f],1)):(l[f]=Xa(b),l[f].c(),Ge(l[f],1),l[f].m(n,null))}for(_l(),f=a.length;f<l.length;f+=1)u(f);gl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"part",i),c[7]?d?d.p(c,h):(d=Za(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ge(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)lt(l[h]);s=!1},d(c){c&&N(e),bt(l,c),d&&d.d(),t[26](null)}}}function Lb(t,e,n){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:b=""}=e,{mbsource:_}=e,{clientstyling:y=""}=e,{clientstylingurl:w=""}=e,g=window.navigator.userAgent,A=!1,v;Kl(g)&&(A=!0);let k,x,L;const W=P=>{window.postMessage({type:"PaginationChange",page:P.value})},Y=P=>{n(4,x=P>a?a:P)};Pr(()=>()=>{});const F=P=>W(P);function O(){k=ml(this.value),n(3,k)}const R=()=>Y(k),Z=()=>W({value:x});function q(P){ot[P?"unshift":"push"](()=>{v=P,n(0,v)})}return t.$$set=P=>{"totalitems"in P&&n(10,d=P.totalitems),"pagesize"in P&&n(11,c=P.pagesize),"currentpage"in P&&n(12,h=P.currentpage),"limit"in P&&n(13,f=P.limit),"showinput"in P&&n(14,b=P.showinput),"mbsource"in P&&n(15,_=P.mbsource),"clientstyling"in P&&n(16,y=P.clientstyling),"clientstylingurl"in P&&n(17,w=P.clientstylingurl),"$$scope"in P&&n(20,u=P.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&65537&&y&&v&&Fr(v,y),t.$$.dirty[0]&131073&&w&&v&&Hr(v,w),t.$$.dirty[0]&32769&&_&&v&&Rr(v,`${_}.Style`),t.$$.dirty[0]&1024&&n(19,r=Number(d)),t.$$.dirty[0]&16384&&n(7,i=b),t.$$.dirty[0]&4096&&n(1,o=Number(h)),t.$$.dirty[0]&2048&&n(18,s=c),t.$$.dirty[0]&794626&&n(5,L=bb({totalItems:r,pageSize:s,currentPage:o,limit:f})),t.$$.dirty[0]&786432&&n(6,a=Math.ceil(r/s))},[v,o,A,k,x,L,a,i,W,Y,d,c,h,f,b,_,y,w,s,r,u,l,F,O,R,Z,q]}class Fb extends Dr{constructor(e){super(),Sr(this,e,Lb,Ib,Fn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Cb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),de()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),de()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-pagination",kr(Fb,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Hb(t){Tr(t,"svelte-1vc0na6",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:16px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function Ka(t,e,n){const r=t.slice();return r[65]=e[n],r}function Ja(t,e,n){const r=t.slice();return r[68]=e[n],r}function Qa(t){let e,n=t[28](`bonusCard.${t[68]}`)+"",r,i,o,s,a=[{type:"button"},t[27]("BonusStatusFilter"),{disabled:t[13]}],l={};for(let d=0;d<a.length;d+=1)l=D(l,a[d]);function u(){return t[42](t[68])}return{c(){e=E("button"),r=B(n),i=U(),S(e,l),se(e,"active",t[68]===t[24])},m(d,c){I(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=ke(e,"click",u),o=!0)},p(d,c){t=d,c[0]&268435456&&n!==(n=t[28](`bonusCard.${t[68]}`)+"")&&te(r,n,l.contenteditable),S(e,l=Se(a,[{type:"button"},c[0]&134217728&&t[27]("BonusStatusFilter"),c[0]&8192&&{disabled:t[13]}])),se(e,"active",t[68]===t[24])},d(d){d&&N(e),o=!1,s()}}}function Rb(t){let e,n,r=t[28]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=t[28]("bonus.from")+"",c,h,f,b,_,y,w=t[28]("bonus.to")+"",g,A,v,k,x,L=t[28]("bonus.filter")+"",W,Y,F,O=[t[36]("BonusCalendarTitle")],R={};for(let G=0;G<O.length;G+=1)R=D(R,O[G]);let Z=[{min:t[29]},{max:t[30]},{value:t[22]},{placeholder:"From"},t[36]("VaadinDatePicker")],q={};for(let G=0;G<Z.length;G+=1)q=D(q,Z[G]);let P=[t[27]("BonusCalendarStartDate")],z={};for(let G=0;G<P.length;G+=1)z=D(z,P[G]);let ne=[{min:t[29]},{max:t[30]},{value:t[23]},{placeholder:"To"},t[36]("VaadinDatePicker")],ge={};for(let G=0;G<ne.length;G+=1)ge=D(ge,ne[G]);let oe=[t[27]("BonusCalendarEndDate")],j={};for(let G=0;G<oe.length;G+=1)j=D(j,oe[G]);let ie=[t[27]("BonusCalendarContainer")],X={};for(let G=0;G<ie.length;G+=1)X=D(X,ie[G]);let ae=[t[27]("BonusFilterButton"),{disabled:t[13]}],J={};for(let G=0;G<ae.length;G+=1)J=D(J,ae[G]);let re=[t[36]("BonusCalendarContent")],C={};for(let G=0;G<re.length;G+=1)C=D(C,re[G]);let M=[t[27]("BonusCalendarWrapper")],ue={};for(let G=0;G<M.length;G+=1)ue=D(ue,M[G]);return{c(){e=E("div"),n=E("div"),i=B(r),o=U(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=B(d),h=U(),f=E("vaadin-date-picker"),b=U(),_=E("div"),y=E("label"),g=B(w),A=U(),v=E("vaadin-date-picker"),k=U(),x=E("button"),W=B(L),S(n,R),m(u,"for","BonusCalendarStartDate"),S(f,q),S(l,z),m(y,"for","BonusCalendarEndDate"),S(v,ge),S(_,j),S(a,X),S(x,J),S(s,C),S(e,ue)},m(G,Ce){I(G,e,Ce),p(e,n),p(n,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),t[45](f),p(a,b),p(a,_),p(_,y),p(y,g),p(_,A),p(_,v),t[46](v),p(s,k),p(s,x),p(x,W),x.autofocus&&x.focus(),Y||(F=ke(x,"click",t[47]),Y=!0)},p(G,Ce){Ce[0]&268435456&&r!==(r=G[28]("bonus.canlendarTitle")+"")&&te(i,r,R.contenteditable),Ce[0]&268435456&&d!==(d=G[28]("bonus.from")+"")&&fe(c,d),S(f,q=Se(Z,[{min:G[29]},{max:G[30]},Ce[0]&4194304&&{value:G[22]},{placeholder:"From"},G[36]("VaadinDatePicker")])),S(l,z=Se(P,[Ce[0]&134217728&&G[27]("BonusCalendarStartDate")])),Ce[0]&268435456&&w!==(w=G[28]("bonus.to")+"")&&fe(g,w),S(v,ge=Se(ne,[{min:G[29]},{max:G[30]},Ce[0]&8388608&&{value:G[23]},{placeholder:"To"},G[36]("VaadinDatePicker")])),S(_,j=Se(oe,[Ce[0]&134217728&&G[27]("BonusCalendarEndDate")])),S(a,X=Se(ie,[Ce[0]&134217728&&G[27]("BonusCalendarContainer")])),Ce[0]&268435456&&L!==(L=G[28]("bonus.filter")+"")&&te(W,L,J.contenteditable),S(x,J=Se(ae,[Ce[0]&134217728&&G[27]("BonusFilterButton"),Ce[0]&8192&&{disabled:G[13]}])),S(e,ue=Se(M,[Ce[0]&134217728&&G[27]("BonusCalendarWrapper")]))},d(G){G&&N(e),t[45](null),t[46](null),Y=!1,F()}}}function zb(t){let e,n,r,i=t[28]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=t[28]("bonus.claim")+"",f,b,_,y,w,g=[t[27]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=t[28]("bonus.placeholder")}],A={};for(let O=0;O<g.length;O+=1)A=D(A,g[O]);let v=[t[27]("BonusClaimButton"),{disabled:b=t[19]||!t[25]}],k={};for(let O=0;O<v.length;O+=1)k=D(k,v[O]);let x=[t[27]("BonusCodeWrapper")],L={};for(let O=0;O<x.length;O+=1)L=D(L,x[O]);let W=t[20]&&el(t),Y=[t[27]("BonusCodeContainer")],F={};for(let O=0;O<Y.length;O+=1)F=D(F,Y[O]);return{c(){e=E("div"),n=E("label"),r=E("span"),r.textContent="*",o=B(i),s=U(),a=E("div"),l=E("input"),d=U(),c=E("button"),f=B(h),_=U(),W&&W.c(),m(r,"class","Asterisk"),m(n,"for","BonusCode"),S(l,A),S(c,k),S(a,L),S(e,F)},m(O,R){I(O,e,R),p(e,n),p(n,r),p(n,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),ur(l,t[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),W&&W.m(e,null),y||(w=[ke(l,"input",t[43]),ke(l,"keyup",t[37]),ke(c,"click",t[44])],y=!0)},p(O,R){R[0]&268435456&&i!==(i=O[28]("bonus.bonusCode")+"")&&fe(o,i),S(l,A=Se(g,[R[0]&134217728&&O[27]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},R[0]&268435456&&u!==(u=O[28]("bonus.placeholder"))&&{placeholder:u}])),R[0]&262144&&l.value!==O[18]&&ur(l,O[18]),R[0]&268435456&&h!==(h=O[28]("bonus.claim")+"")&&te(f,h,k.contenteditable),S(c,k=Se(v,[R[0]&134217728&&O[27]("BonusClaimButton"),R[0]&34078720&&b!==(b=O[19]||!O[25])&&{disabled:b}])),S(a,L=Se(x,[R[0]&134217728&&O[27]("BonusCodeWrapper")])),O[20]?W?W.p(O,R):(W=el(O),W.c(),W.m(e,null)):W&&(W.d(1),W=null),S(e,F=Se(Y,[R[0]&134217728&&O[27]("BonusCodeContainer")]))},d(O){O&&N(e),W&&W.d(),y=!1,Ye(w)}}}function el(t){let e,n=t[28]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=B(n),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&268435456&&n!==(n=i[28]("bonus.invalidBonusCode")+"")&&fe(r,n)},d(i){i&&N(e)}}}function Ub(t){let e,n;function r(a,l){return a[12].length>0?jb:a[14]?Vb:Wb}let i=r(t),o=i(t),s=t[12].length!==0&&nl(t);return{c(){o.c(),e=U(),s&&s.c(),n=Ke()},m(a,l){o.m(a,l),I(a,e,l),s&&s.m(a,l),I(a,n,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=nl(a),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(a){a&&(N(e),N(n)),o.d(a),s&&s.d(a)}}}function $b(t){let e,n=[t[36]("ModalLoader")],r={};for(let i=0;i<n.length;i+=1)r=D(r,n[i]);return{c(){e=E("div"),S(e,r)},m(i,o){I(i,e,o)},p:Pe,d(i){i&&N(e)}}}function Wb(t){let e,n=t[28]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=B(n),m(e,"class","NoBonus")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&268435456&&n!==(n=i[28]("bonus.noBonus")+"")&&fe(r,n)},d(i){i&&N(e)}}}function Vb(t){let e,n=t[28]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=B(n),i=B(": "),o=B(t[14]),m(e,"class","BonusError")},m(s,a){I(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&268435456&&n!==(n=s[28]("bonus.error")+"")&&fe(r,n),a[0]&16384&&fe(o,s[14])},d(s){s&&N(e)}}}function jb(t){let e,n=Le(t[12]),r=[];for(let s=0;s<n.length;s+=1)r[s]=tl(Ka(t,n,s));let i=[t[36]("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();S(e,o)},m(s,a){I(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&150999547){n=Le(s[12]);let l;for(l=0;l<n.length;l+=1){const u=Ka(s,n,l);r[l]?r[l].p(u,a):(r[l]=tl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&N(e),bt(r,s)}}}function tl(t){let e,n,r,i=[{rawbonus:JSON.stringify(t[65]),status:t[24],cmsendpoint:t[3],lang:t[0],clientstyling:t[5],clientstylingurl:t[6],mbsource:t[4],translationurl:t[7],levelcountlimit:t[8],currency:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[t[27]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("li"),n=E("casino-bonus-card"),r=U(),S(n,o),S(e,a)},m(l,u){I(l,e,u),p(e,n),p(e,r)},p(l,u){S(n,o=Se(i,[u[0]&16781819&&{rawbonus:JSON.stringify(l[65]),status:l[24],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),S(e,a=Se(s,[u[0]&134217728&&l[27]("BonusItem")]))},d(l){l&&N(e)}}}function nl(t){let e;return{c(){e=E("casino-bonus-pagination"),He(e,"totalitems",t[16]),He(e,"currentpage",t[15]),He(e,"pagesize",t[2]),He(e,"limit",t[17]),He(e,"clientstyling",t[5]),He(e,"clientstylingurl",t[6]),He(e,"mbsource",t[4])},m(n,r){I(n,e,r)},p(n,r){r[0]&65536&&He(e,"totalitems",n[16]),r[0]&32768&&He(e,"currentpage",n[15]),r[0]&4&&He(e,"pagesize",n[2]),r[0]&131072&&He(e,"limit",n[17]),r[0]&32&&He(e,"clientstyling",n[5]),r[0]&64&&He(e,"clientstylingurl",n[6]),r[0]&16&&He(e,"mbsource",n[4])},d(n){n&&N(e)}}}function rl(t){let e,n,r,i,o=t[28]("bonus.forfeitMessage")+"",s,a,l,u,d=t[28]("bonus.forfeitCancel")+"",c,h,f,b=t[28]("bonus.forfeitConfirm")+"",_,y,w,g=[t[36]("ModalText")],A={};for(let z=0;z<g.length;z+=1)A=D(A,g[z]);let v=[t[36]("ModalCancel")],k={};for(let z=0;z<v.length;z+=1)k=D(k,v[z]);let x=[t[36]("ModalConfirm")],L={};for(let z=0;z<x.length;z+=1)L=D(L,x[z]);let W=[t[36]("ModalButtons")],Y={};for(let z=0;z<W.length;z+=1)Y=D(Y,W[z]);let F=[t[36]("ModalBody")],O={};for(let z=0;z<F.length;z+=1)O=D(O,F[z]);let R=[t[36]("ModalContent")],Z={};for(let z=0;z<R.length;z+=1)Z=D(Z,R[z]);let q=[t[27]("ModalWrapper")],P={};for(let z=0;z<q.length;z+=1)P=D(P,q[z]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),s=B(o),a=U(),l=E("div"),u=E("button"),c=B(d),h=U(),f=E("button"),_=B(b),S(i,A),S(u,k),S(f,L),S(l,Y),S(r,O),S(n,Z),S(e,P)},m(z,ne){I(z,e,ne),p(e,n),p(n,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,_),f.autofocus&&f.focus(),y||(w=[ke(u,"click",t[34]),ke(f,"click",t[48])],y=!0)},p(z,ne){ne[0]&268435456&&o!==(o=z[28]("bonus.forfeitMessage")+"")&&te(s,o,A.contenteditable),ne[0]&268435456&&d!==(d=z[28]("bonus.forfeitCancel")+"")&&te(c,d,k.contenteditable),ne[0]&268435456&&b!==(b=z[28]("bonus.forfeitConfirm")+"")&&te(_,b,L.contenteditable),S(e,P=Se(q,[ne[0]&134217728&&z[27]("ModalWrapper")]))},d(z){z&&N(e),y=!1,Ye(w)}}}function Gb(t){let e,n,r,i,o,s,a=Le(t[31]),l=[];for(let v=0;v<a.length;v+=1)l[v]=Qa(Ja(t,a,v));let u=[t[27]("BonusFilterWrapper")],d={};for(let v=0;v<u.length;v+=1)d=D(d,u[v]);function c(v,k){if(v[24]==="claimable")return zb;if(v[24]==="completed")return Rb}let h=c(t),f=h&&h(t);function b(v,k){return v[13]?$b:Ub}let _=b(t),y=_(t),w=t[21]&&rl(t),g=[t[36]("BonusesController")],A={};for(let v=0;v<g.length;v+=1)A=D(A,g[v]);return{c(){e=E("div"),n=E("div"),r=E("div");for(let v=0;v<l.length;v+=1)l[v].c();i=U(),f&&f.c(),o=U(),y.c(),s=U(),w&&w.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),S(n,d),S(e,A)},m(v,k){I(v,e,k),p(e,n),p(n,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),y.m(e,null),p(e,s),w&&w.m(e,null),t[49](e)},p(v,k){if(k[0]&419438592|k[1]&17){a=Le(v[31]);let x;for(x=0;x<a.length;x+=1){const L=Ja(v,a,x);l[x]?l[x].p(L,k):(l[x]=Qa(L),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}S(n,d=Se(u,[k[0]&134217728&&v[27]("BonusFilterWrapper")])),h===(h=c(v))&&f?f.p(v,k):(f&&f.d(1),f=h&&h(v),f&&(f.c(),f.m(e,o))),_===(_=b(v))&&y?y.p(v,k):(y.d(1),y=_(v),y&&(y.c(),y.m(e,s))),v[21]?w?w.p(v,k):(w=rl(v),w.c(),w.m(e,null)):w&&(w.d(1),w=null)},i:Pe,o:Pe,d(v){v&&N(e),bt(l,v),f&&f.d(),y.d(),w&&w.d(),t[49](null)}}}function Yb(t,e,n){let r,i,o;hl(t,Wl,V=>n(28,o=V));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:y="3"}=e,w=window.navigator.userAgent,g=!1,A=[],v=!0,k="",x=1,L=0,W=2,Y=yn(ys(new Date,6),"yyyy-MM-dd"),F=yn(new Date,"yyyy-MM-dd"),O=yn(ys(new Date,3),"yyyy-MM-dd"),R,Z="",q=!0,P=!1,z=!1,ne=O,ge=F,oe,j,ie="active",X=!0,ae=["active","completed","claimable"],J="";Kl(w)&&(g=!0,W=1);const re=()=>{fetch(_).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Me=>{fr(Me,we[Me])})}).catch(we=>{console.log(we)})};Object.keys(pr).forEach(V=>{fr(V,pr[V])}),Pr(()=>(window.addEventListener("message",C,!1),()=>{oe==null||oe.removeEventListener("change",tt),j==null||j.removeEventListener("change",wt),window.removeEventListener("message",C)}));const C=V=>{switch(V.data.type){case"PaginationChange":n(15,x=V.data.page),be(x);break;case"OnBonusClaimed":ue(V.data.bonusCode);break;case"OnBonusForfeit":n(26,J=V.data.bonus.id),n(21,z=!0)}},M=()=>Ue(this,null,function*(){be(1)}),ue=(V,we)=>Ue(this,null,function*(){n(25,X=!1);const Me=yield G(V);Me.success?(n(20,P=!1),be(1)):(n(14,k=Me.errorMessage),we?n(20,P=!0):window.postMessage({type:"OnBonusClaimError",message:k,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),n(25,X=!0)}),G=V=>Ue(this,null,function*(){return yield dt(s+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:V,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),Ce=V=>Ue(this,null,function*(){n(25,X=!1);const we=yield K(V);we.success?be(1):n(14,k=we.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),n(25,X=!0),n(21,z=!1)}),K=V=>Ue(this,null,function*(){const we=new URL(`${s}/v1/bonus/forfeit`),Me={bonusID:V,lang:a};return Object.keys(Me).map(Lt=>{we.searchParams.append(Lt,Me[Lt])}),yield dt(we,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Ae=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),n(21,z=!1)},be=V=>Ue(this,null,function*(){x!==V&&n(15,x=V);const we=(V-1)*Number(d);n(13,v=!0),n(12,A=[]);const Me=yield Qe(s,l,we,{lang:a,limit:d});Me.success?(n(16,L=Me.total),n(12,A=Me.items||Me.bonuses)):n(14,k=Me.errorMessage),n(13,v=!1)}),Qe=(ct,Ad,Td,...Pd)=>Ue(this,[ct,Ad,Td,...Pd],function*(V,we,Me,Lt={}){const le=Lt,{limit:Qr,lang:ei}=le,ti=ri(le,["limit","lang"]),T=(()=>{switch(ie){case"claimable":return ie;default:return"granted"}})(),H=ln(Et({pagination:`limit=${Qr},offset=${Me}`,language:ei},ti),{sortOrder:"desc"});if(ie==="completed"){let me=new Date(ne).toISOString(),xe=new Date(ge+" 23:59:59").toISOString();H.startTime=me,H.endTime=xe,H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="completed,released,forfeited,expired,closed"}ie==="active"&&(H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="active");const Q=new URL(`${V}/v1/bonus/${T}`);return ie!=="claimable"?Q.searchParams.append("expand","freeSpin"):delete H.sortOrder,Object.keys(H).map(me=>{Q.searchParams.append(me,H[me])}),yield dt(Q,{headers:Et({},we?{"x-SessionId":we}:{})})}),et=(V,we="")=>({part:V,class:[V,we].join(" ")}),dt=(Me,...Lt)=>Ue(this,[Me,...Lt],function*(V,we={}){let ct;return ct=yield fetch(V,we),ct.ok===!1?{errorMessage:ct.status}:(ct=yield ct.json(),ct)}),tt=V=>{n(22,ne=V.target.value)},wt=V=>{n(23,ge=V.target.value)},Ct=()=>{oe.addEventListener("change",tt,!1),j.addEventListener("change",wt,!1)},$=()=>(n(20,P=!1),!!Z),ve=()=>{n(19,q=!$())},Yr=V=>{n(24,ie=V),be(1)};function qr(){Z=this.value,n(18,Z)}const Xr=()=>{ue(Z,!0)};function Zr(V){ot[V?"unshift":"push"](()=>{oe=V,n(10,oe)})}function Kr(V){ot[V?"unshift":"push"](()=>{j=V,n(11,j)})}const Jr=()=>be(1),jn=()=>Ce(J);function Gn(V){ot[V?"unshift":"push"](()=>{R=V,n(9,R)})}return t.$$set=V=>{"endpoint"in V&&n(38,s=V.endpoint),"lang"in V&&n(0,a=V.lang),"session"in V&&n(39,l=V.session),"currency"in V&&n(1,u=V.currency),"limit"in V&&n(2,d=V.limit),"cmsendpoint"in V&&n(3,c=V.cmsendpoint),"mbsource"in V&&n(4,h=V.mbsource),"clientstyling"in V&&n(5,f=V.clientstyling),"clientstylingurl"in V&&n(6,b=V.clientstylingurl),"translationurl"in V&&n(7,_=V.translationurl),"levelcountlimit"in V&&n(8,y=V.levelcountlimit)},t.$$.update=()=>{t.$$.dirty[0]&3072&&oe&&j&&Ct(),t.$$.dirty[1]&512&&n(27,r=(V,we="")=>et(`${V}${g?` ${V}Mobile`:""}`,we)),t.$$.dirty[0]&1&&a&&Vl(a),t.$$.dirty[0]&5|t.$$.dirty[1]&384&&n(41,i=s&&l&&a&&d),t.$$.dirty[1]&1024&&i&&M(),t.$$.dirty[0]&544&&f&&R&&Fr(R,f),t.$$.dirty[0]&576&&b&&R&&Hr(R,b),t.$$.dirty[0]&528&&h&&R&&Rr(R,`${h}.Style`),t.$$.dirty[0]&128&&_&&re()},[a,u,d,c,h,f,b,_,y,R,oe,j,A,v,k,x,L,W,Z,q,P,z,ne,ge,ie,X,J,r,o,Y,F,ae,ue,Ce,Ae,be,et,ve,s,l,g,i,Yr,qr,Xr,Zr,Kr,Jr,jn,Gn]}class xd extends Dr{constructor(e){super(),Sr(this,e,Yb,Gb,Fn,{endpoint:38,lang:0,session:39,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8},Hb,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),de()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),de()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),de()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),de()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}}kr(xd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{}},[],[],!0);exports.default=xd;