@everymatrix/casino-wagering-bonus-slider-controller 1.34.1 → 1.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function u(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(t,e,r){t.$$.on_destroy.push(u(e,r))}function h(t,e){t.appendChild(e)}function f(t,e,r){t.insertBefore(e,r||null)}function p(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function m(t){return document.createTextNode(t)}function y(){return m(" ")}function b(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function v(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function E(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:v(t,e,r)}function w(t,e){e=""+e,t.data!==e&&(t.data=e)}function _(t){const e={};for(const r of t)e[r.name]=r.value;return e}function T(t){a=t}
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function u(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(t,e,r){t.$$.on_destroy.push(u(e,r))}function h(t,e){t.appendChild(e)}function f(t,e,r){t.insertBefore(e,r||null)}function p(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function m(t){return document.createTextNode(t)}function y(){return m(" ")}function b(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function v(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function E(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:v(t,e,r)}function w(t,e){e=""+e,t.data!==e&&(t.data=e)}function T(t){const e={};for(const r of t)e[r.name]=r.value;return e}function _(t){a=t}
2
2
  /**
3
3
  * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
4
4
  * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * https://svelte.dev/docs#run-time-svelte-onmount
10
10
  */
11
- function B(t){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(t)}const S=[],A=[];let H=[];const L=[],P=Promise.resolve();let C=!1;function O(t){H.push(t)}
11
+ function B(t){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(t)}const S=[],A=[];let H=[];const L=[],P=Promise.resolve();let C=!1;function I(t){H.push(t)}
12
12
  // flush() calls callbacks in this order:
13
13
  // 1. All beforeUpdate callbacks, in order: parents before children
14
14
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -27,29 +27,29 @@ function B(t){(function(){if(!a)throw new Error("Function called outside compone
27
27
  // 3. During afterUpdate, any updated components will NOT have their afterUpdate
28
28
  // callback called a second time; the seen_callbacks set, outside the flush()
29
29
  // function, guarantees this behavior.
30
- const I=new Set;let x=0;// Do *not* move this inside the flush() function
30
+ const x=new Set;let O=0;// Do *not* move this inside the flush() function
31
31
  function R(){
32
32
  // Do not reenter flush while dirty components are updated, as this can
33
33
  // result in an infinite loop. Instead, let the inner flush handle it.
34
34
  // Reentrancy is ok afterwards for bindings etc.
35
- if(0!==x)return;const t=a;do{
35
+ if(0!==O)return;const t=a;do{
36
36
  // first, call beforeUpdate functions
37
37
  // and update components
38
- try{for(;x<S.length;){const t=S[x];x++,T(t),N(t.$$)}}catch(t){
38
+ try{for(;O<S.length;){const t=S[O];O++,_(t),N(t.$$)}}catch(t){
39
39
  // reset dirty state to not end up in a deadlocked state and then rethrow
40
- throw S.length=0,x=0,t}for(T(null),S.length=0,x=0;A.length;)A.pop()();
40
+ throw S.length=0,O=0,t}for(_(null),S.length=0,O=0;A.length;)A.pop()();
41
41
  // then, once components are updated, call
42
42
  // afterUpdate functions. This may cause
43
43
  // subsequent updates...
44
- for(let t=0;t<H.length;t+=1){const e=H[t];I.has(e)||(
44
+ for(let t=0;t<H.length;t+=1){const e=H[t];x.has(e)||(
45
45
  // ...so guard against infinite loops
46
- I.add(e),e())}H.length=0}while(S.length);for(;L.length;)L.pop()();C=!1,I.clear(),T(t)}function N(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}
46
+ x.add(e),e())}H.length=0}while(S.length);for(;L.length;)L.pop()();C=!1,x.clear(),_(t)}function N(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I)}}
47
47
  /**
48
48
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
49
49
  */const M=new Set;function D(t,e){const r=t.$$;null!==r.fragment&&(!function(t){const e=[],r=[];H.forEach((n=>-1===t.indexOf(n)?e.push(n):r.push(n))),r.forEach((t=>t())),H=e}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(e),
50
50
  // TODO null out other refs, including component.$$ (but need to
51
51
  // preserve final state?)
52
- r.on_destroy=r.fragment=null,r.ctx=[])}function $(t,e){-1===t.$$.dirty[0]&&(S.push(t),C||(C=!0,P.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(i,s,l,u,c,h,f,d=[-1]){const g=a;T(i);const m=i.$$={fragment:null,ctx:[],
52
+ r.on_destroy=r.fragment=null,r.ctx=[])}function $(t,e){-1===t.$$.dirty[0]&&(S.push(t),C||(C=!0,P.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(i,s,l,u,c,h,f,d=[-1]){const g=a;_(i);const m=i.$$={fragment:null,ctx:[],
53
53
  // state
54
54
  props:h,update:t,not_equal:c,bound:r(),
55
55
  // lifecycle
@@ -63,14 +63,14 @@ m.fragment&&m.fragment.l(t),t.forEach(p)}else
63
63
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
64
64
  m.fragment&&m.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(M.delete(b),b.i(v))),function(t,r,i,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(r,i),s||
65
65
  // onMount happens before the initial afterUpdate
66
- O((()=>{const r=t.$$.on_mount.map(e).filter(o);
66
+ I((()=>{const r=t.$$.on_mount.map(e).filter(o);
67
67
  // if the component was destroyed immediately
68
68
  // it will update the `$$.on_destroy` reference to `null`.
69
69
  // the destructured on_destroy may still reference to the old array
70
70
  t.$$.on_destroy?t.$$.on_destroy.push(...r):
71
71
  // Edge case - component was destroyed immediately,
72
72
  // most likely as a result of a binding initialising
73
- n(r),t.$$.on_mount=[]})),l.forEach(O)}(i,s.target,s.anchor,s.customElement),R()}var b,v;T(g)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);
73
+ n(r),t.$$.on_mount=[]})),l.forEach(I)}(i,s.target,s.anchor,s.customElement),R()}var b,v;_(g)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);
74
74
  // @ts-ignore todo: improve typings
75
75
  for(const t in this.$$.slotted)
76
76
  // @ts-ignore todo: improve typings
@@ -130,7 +130,7 @@ self.fetch.bind(self);
130
130
  PERFORMANCE OF THIS SOFTWARE.
131
131
  ***************************************************************************** */
132
132
  /* global Reflect, Promise, SuppressedError, Symbol */
133
- var ft=function(t,e){return ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ft(t,e)};function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ft(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function dt(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function mt(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function yt(t){return"function"==typeof t}function bt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var vt=bt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Et(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var wt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=dt(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var l=this.initialTeardown;if(yt(l))try{l()}catch(t){o=t instanceof vt?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=dt(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{Bt(f)}catch(t){o=null!=o?o:[],t instanceof vt?o=mt(mt([],gt(o)),gt(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new vt(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Bt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Et(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&Et(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),_t=wt.EMPTY;function Tt(t){return t instanceof wt||t&&"closed"in t&&yt(t.remove)&&yt(t.add)&&yt(t.unsubscribe)}function Bt(t){yt(t)?t():t.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},At={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=At.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,mt([t,e],gt(r))):setTimeout.apply(void 0,mt([t,e],gt(r)))},clearTimeout:function(t){var e=At.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Ht(){}var Lt=null;function Pt(t){if(St.useDeprecatedSynchronousErrorHandling){var e=!Lt;if(e&&(Lt={errorThrown:!1,error:null}),t(),e){var r=Lt,n=r.errorThrown,o=r.error;if(Lt=null,n)throw o}}else t()}var Ct=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Tt(e)&&e.add(r)):r.destination=Mt,r}return pt(e,t),e.create=function(t,e,r){return new Rt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},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(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(wt),Ot=Function.prototype.bind;function It(t,e){return Ot.call(t,e)}var xt=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Nt(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Nt(t)}else Nt(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Nt(t)}},t}(),Rt=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;yt(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&St.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&It(e.next,i),error:e.error&&It(e.error,i),complete:e.complete&&It(e.complete,i)}):o=e;return s.destination=new xt(o),s}return pt(e,t),e}(Ct);function Nt(t){var e;e=t,At.setTimeout((function(){throw e}))}var Mt={closed:!0,next:Ht,error:function(t){throw t},complete:Ht},Dt="function"==typeof Symbol&&Symbol.observable||"@@observable";function $t(t){return t}var Ut=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Ct||function(t){return t&&yt(t.next)&&yt(t.error)&&yt(t.complete)}(n)&&Tt(n)?t:new Rt(t,e,r);return Pt((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Ft(e))((function(e,n){var o=new Rt({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Dt]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?$t:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Ft(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Ft(t){var e;return null!==(e=null!=t?t:St.Promise)&&void 0!==e?e:Promise}var Gt=bt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),kt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return pt(e,t),e.prototype.lift=function(t){var e=new jt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Gt},e.prototype.next=function(t){var e=this;Pt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=dt(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Pt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Pt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?_t:(this.currentObservers=null,i.push(t),new wt((function(){e.currentObservers=null,Et(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ut;return t.source=this,t},e.create=function(t,e){return new jt(t,e)},e}(Ut),jt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return pt(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:_t},e}(kt),Wt={now:function(){return(Wt.delegate||Date).now()},delegate:void 0},Xt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Wt);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return pt(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},e}(kt);let Vt=[],zt={};
133
+ var ft=function(t,e){return ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ft(t,e)};function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ft(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var dt=function(){return dt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},dt.apply(this,arguments)};function gt(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function yt(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function bt(t){return"function"==typeof t}function vt(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var Et=vt((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function wt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Tt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=gt(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var l=this.initialTeardown;if(bt(l))try{l()}catch(t){o=t instanceof Et?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=gt(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{St(f)}catch(t){o=null!=o?o:[],t instanceof Et?o=yt(yt([],mt(o)),mt(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new Et(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)St(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&wt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&wt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),_t=Tt.EMPTY;function Bt(t){return t instanceof Tt||t&&"closed"in t&&bt(t.remove)&&bt(t.add)&&bt(t.unsubscribe)}function St(t){bt(t)?t():t.unsubscribe()}var At={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ht={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ht.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,yt([t,e],mt(r))):setTimeout.apply(void 0,yt([t,e],mt(r)))},clearTimeout:function(t){var e=Ht.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Lt(){}var Pt=null;function Ct(t){if(At.useDeprecatedSynchronousErrorHandling){var e=!Pt;if(e&&(Pt={errorThrown:!1,error:null}),t(),e){var r=Pt,n=r.errorThrown,o=r.error;if(Pt=null,n)throw o}}else t()}var It=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Bt(e)&&e.add(r)):r.destination=Dt,r}return pt(e,t),e.create=function(t,e,r){return new Nt(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},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(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Tt),xt=Function.prototype.bind;function Ot(t,e){return xt.call(t,e)}var Rt=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Mt(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Mt(t)}else Mt(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Mt(t)}},t}(),Nt=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;bt(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&At.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Ot(e.next,i),error:e.error&&Ot(e.error,i),complete:e.complete&&Ot(e.complete,i)}):o=e;return s.destination=new Rt(o),s}return pt(e,t),e}(It);function Mt(t){var e;e=t,Ht.setTimeout((function(){throw e}))}var Dt={closed:!0,next:Lt,error:function(t){throw t},complete:Lt},$t="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ut(t){return t}var Ft=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof It||function(t){return t&&bt(t.next)&&bt(t.error)&&bt(t.complete)}(n)&&Bt(n)?t:new Nt(t,e,r);return Ct((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Gt(e))((function(e,n){var o=new Nt({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[$t]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ut:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Gt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Gt(t){var e;return null!==(e=null!=t?t:At.Promise)&&void 0!==e?e:Promise}var kt=vt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),jt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return pt(e,t),e.prototype.lift=function(t){var e=new Wt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new kt},e.prototype.next=function(t){var e=this;Ct((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=gt(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Ct((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Ct((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?_t:(this.currentObservers=null,i.push(t),new Tt((function(){e.currentObservers=null,wt(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ft;return t.source=this,t},e.create=function(t,e){return new Wt(t,e)},e}(Ft),Wt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return pt(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:_t},e}(jt),Xt={now:function(){return(Xt.delegate||Date).now()},delegate:void 0},Vt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Xt);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return pt(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},e}(jt);let zt=[],Kt={};
134
134
  /**
135
135
  * @name topic
136
136
  * @description A small wrapper over the rxjs to offer the topic method on top of it
@@ -138,38 +138,38 @@ var ft=function(t,e){return ft=Object.setPrototypeOf||{__proto__:[]}instanceof A
138
138
  * @param step [String] How many values to be buffed for new subscribers - default 0
139
139
  * @returns ReplaySubject
140
140
  */
141
- const Kt=[];
141
+ const Yt=[];
142
142
  /**
143
143
  * Create a `Writable` store that allows both updating and reading by subscription.
144
144
  * @param {*=}value initial value
145
145
  * @param {StartStopNotifier=} start
146
146
  */
147
- function Yt(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
148
- const t=!Kt.length;for(const t of o)t[1](),Kt.push(t,e);if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&n&&(n(),n=null)}}}}function Zt(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let i=!1;const c=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,e);l?e(n):f=o(n)?n:t},d=a.map(((t,e)=>u(t,(t=>{c[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f(),
147
+ function Zt(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
148
+ const t=!Yt.length;for(const t of o)t[1](),Yt.push(t,e);if(t){for(let t=0;t<Yt.length;t+=2)Yt[t][0](Yt[t+1]);Yt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&n&&(n(),n=null)}}}}function qt(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let i=!1;const c=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,e);l?e(n):f=o(n)?n:t},d=a.map(((t,e)=>u(t,(t=>{c[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f(),
149
149
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
150
150
  // Callbacks might already be placed in the queue which doesn't know it should no longer
151
151
  // invoke this derived store.
152
- i=!1}},{subscribe:Yt(i,c).subscribe};
152
+ i=!1}},{subscribe:Zt(i,c).subscribe};
153
153
  /**
154
154
  * Creates a `Readable` store that allows reading by subscription.
155
155
  * @param value initial value
156
156
  * @param {StartStopNotifier} [start]
157
157
  */
158
- var c}var qt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Jt}(t)}
158
+ var c}var Jt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Qt}(t)}
159
159
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
160
- (t)};var Jt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Qt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?oe((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function te(t,e,r){return t.concat(e).map((function(t){return Qt(t,r)}))}function ee(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function re(t,e){try{return e in t}catch(t){return!1}}
160
+ (t)};var Qt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function te(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ie((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function ee(t,e,r){return t.concat(e).map((function(t){return te(t,r)}))}function re(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function ne(t,e){try{return e in t}catch(t){return!1}}
161
161
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
162
- function ne(t,e,r){var n={};return r.isMergeableObject(t)&&ee(t).forEach((function(e){n[e]=Qt(t[e],r)})),ee(e).forEach((function(o){(function(t,e){return re(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
163
- })(t,o)||(re(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return oe;var r=e.customMerge(t);return"function"==typeof r?r:oe}(o,r)(t[o],e[o],r):n[o]=Qt(e[o],r))})),n}function oe(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||te,r.isMergeableObject=r.isMergeableObject||qt,
162
+ function oe(t,e,r){var n={};return r.isMergeableObject(t)&&re(t).forEach((function(e){n[e]=te(t[e],r)})),re(e).forEach((function(o){(function(t,e){return ne(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
163
+ })(t,o)||(ne(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return ie;var r=e.customMerge(t);return"function"==typeof r?r:ie}(o,r)(t[o],e[o],r):n[o]=te(e[o],r))})),n}function ie(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||ee,r.isMergeableObject=r.isMergeableObject||Jt,
164
164
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
165
165
  // implementations can use it. The caller may not replace it.
166
- r.cloneUnlessOtherwiseSpecified=Qt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):ne(t,e,r):Qt(e,r)}oe.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return oe(t,r,e)}),{})};var ie=oe,se=function(t,e){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},se(t,e)};function ae(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}se(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var le,ue,ce,he=function(){return he=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},he.apply(this,arguments)};function fe(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}
166
+ r.cloneUnlessOtherwiseSpecified=te;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):oe(t,e,r):te(e,r)}ie.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return ie(t,r,e)}),{})};var se,ae,le,ue=ie;
167
167
  /**
168
168
  * Type Guards
169
169
  */
170
- function pe(t){return t.type===ue.literal}function de(t){return t.type===ue.argument}function ge(t){return t.type===ue.number}function me(t){return t.type===ue.date}function ye(t){return t.type===ue.time}function be(t){return t.type===ue.select}function ve(t){return t.type===ue.plural}function Ee(t){return t.type===ue.pound}function we(t){return t.type===ue.tag}function _e(t){return!(!t||"object"!=typeof t||t.type!==ce.number)}function Te(t){return!(!t||"object"!=typeof t||t.type!==ce.dateTime)}
170
+ function ce(t){return t.type===ae.literal}function he(t){return t.type===ae.argument}function fe(t){return t.type===ae.number}function pe(t){return t.type===ae.date}function de(t){return t.type===ae.time}function ge(t){return t.type===ae.select}function me(t){return t.type===ae.plural}function ye(t){return t.type===ae.pound}function be(t){return t.type===ae.tag}function ve(t){return!(!t||"object"!=typeof t||t.type!==le.number)}function Ee(t){return!(!t||"object"!=typeof t||t.type!==le.dateTime)}
171
171
  // @generated from regex-gen.ts
172
- "function"==typeof SuppressedError&&SuppressedError,function(t){
172
+ !function(t){
173
173
  /** Argument is unclosed (e.g. `{0`) */
174
174
  t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
175
175
  /** Argument is empty (e.g. `{}`). */
@@ -229,7 +229,7 @@ t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
229
229
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
230
230
  t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
231
231
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
232
- t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(le||(le={})),function(t){
232
+ t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(se||(se={})),function(t){
233
233
  /**
234
234
  * Raw text
235
235
  */
@@ -266,7 +266,7 @@ t[t.pound=7]="pound",
266
266
  /**
267
267
  * XML-like tag
268
268
  */
269
- t[t.tag=8]="tag"}(ue||(ue={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(ce||(ce={}));var Be=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Se=/(?:[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;
269
+ t[t.tag=8]="tag"}(ae||(ae={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(le||(le={}));var we=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Te=/(?:[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;
270
270
  /**
271
271
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
272
272
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -278,7 +278,7 @@ t[t.tag=8]="tag"}(ue||(ue={})),function(t){t[t.number=0]="number",t[t.dateTime=1
278
278
  * @public
279
279
  * @param skeleton skeleton string
280
280
  */
281
- function Ae(t){var e={};return t.replace(Se,(function(t){var r=t.length;switch(t[0]){
281
+ function _e(t){var e={};return t.replace(Te,(function(t){var r=t.length;switch(t[0]){
282
282
  // Era
283
283
  case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
284
284
  // Year
@@ -312,33 +312,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
312
312
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
313
313
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
314
314
  // @generated from regex-gen.ts
315
- var He=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Pe=/^(@+)?(\+|#+)?[rs]?$/g,Ce=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Ie(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Pe,(function(t,r,n){
315
+ var Be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Se=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ae=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,Le=/^(0+)$/;function Pe(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Ae,(function(t,r,n){
316
316
  // @@@ case
317
- return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function xe(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 Re(t){
317
+ return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function Ce(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 Ie(t){
318
318
  // Engineering
319
- var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Oe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Ne(t){var e=xe(t);return e||{}}
319
+ var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Le.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function xe(t){var e=Ce(t);return e||{}}
320
320
  /**
321
321
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
322
- */function Me(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.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=o.options[0].replace(/^(.*?)-/,"");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=he(he(he({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return he(he({},t),Ne(e))}),{}));continue;case"engineering":e=he(he(he({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return he(he({},t),Ne(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
322
+ */function Oe(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.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=o.options[0].replace(/^(.*?)-/,"");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=dt(dt(dt({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return dt(dt({},t),xe(e))}),{}));continue;case"engineering":e=dt(dt(dt({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return dt(dt({},t),xe(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
323
323
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
324
324
  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(o.options[0]);continue;
325
325
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
326
- case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ce,(function(t,r,n,o,i,s){if(r)e.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
326
+ case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(He,(function(t,r,n,o,i,s){if(r)e.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
327
327
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
328
- if(Oe.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(Le.test(o.stem)){
328
+ if(Le.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(Se.test(o.stem)){
329
329
  // Precision
330
330
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
331
331
  // precision-integer case
332
- if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Le,(function(t,r,n,o,i,s){
332
+ if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Se,(function(t,r,n,o,i,s){
333
333
  // .000* case (before ICU67 it was .000+)
334
334
  return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&s?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var i=o.options[0];
335
335
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
336
- "w"===i?e=he(he({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=he(he({},e),Ie(i)))}
336
+ "w"===i?e=dt(dt({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=dt(dt({},e),Pe(i)))}
337
337
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
338
- else if(Pe.test(o.stem))e=he(he({},e),Ie(o.stem));else{var s=xe(o.stem);s&&(e=he(he({},e),s));var a=Re(o.stem);a&&(e=he(he({},e),a))}}return e}
338
+ else if(Ae.test(o.stem))e=dt(dt({},e),Pe(o.stem));else{var s=Ce(o.stem);s&&(e=dt(dt({},e),s));var a=Ie(o.stem);a&&(e=dt(dt({},e),a))}}return e}
339
339
  // @generated from time-data-gen.ts
340
340
  // prettier-ignore
341
- var De,$e={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
341
+ var Re,Ne={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
342
342
  /**
343
343
  * Returns the best matching date time pattern if a date time skeleton
344
344
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -351,7 +351,7 @@ var De,$e={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
351
351
  * of the given `locale` to the corresponding time pattern.
352
352
  * @param locale
353
353
  */
354
- function Ue(t){var e=t.hourCycle;if(void 0===e&&
354
+ function Me(t){var e=t.hourCycle;if(void 0===e&&
355
355
  // @ts-ignore hourCycle(s) is not identified yet
356
356
  t.hourCycles&&
357
357
  // @ts-ignore
@@ -359,37 +359,37 @@ t.hourCycles.length&&(
359
359
  // @ts-ignore
360
360
  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")}
361
361
  // TODO: Once hourCycle is fully supported remove the following with data generation
362
- var r,n=t.language;return"root"!==n&&(r=t.maximize().region),($e[r||""]||$e[n||""]||$e["".concat(n,"-001")]||$e["001"])[0]}var Fe=new RegExp("^".concat(Be.source,"*")),Ge=new RegExp("".concat(Be.source,"*$"));function ke(t,e){return{start:t,end:e}}
362
+ var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ne[r||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"])[0]}var De=new RegExp("^".concat(we.source,"*")),$e=new RegExp("".concat(we.source,"*$"));function Ue(t,e){return{start:t,end:e}}
363
363
  // #region Ponyfills
364
364
  // Consolidate these variables up top for easier toggling during debugging
365
- var je=!!String.prototype.startsWith,We=!!String.fromCodePoint,Xe=!!Object.fromEntries,Ve=!!String.prototype.codePointAt,ze=!!String.prototype.trimStart,Ke=!!String.prototype.trimEnd,Ye=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ze=!0;try{
365
+ var Fe=!!String.prototype.startsWith,Ge=!!String.fromCodePoint,ke=!!Object.fromEntries,je=!!String.prototype.codePointAt,We=!!String.prototype.trimStart,Xe=!!String.prototype.trimEnd,Ve=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ze=!0;try{
366
366
  /**
367
367
  * legacy Edge or Xbox One browser
368
368
  * Unicode flag support: supported
369
369
  * Pattern_Syntax support: not supported
370
370
  * See https://github.com/formatjs/formatjs/issues/2822
371
371
  */
372
- Ze="a"===(null===(De=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===De?void 0:De[0])}catch(t){Ze=!1}var qe,Je=je?// Native
372
+ ze="a"===(null===(Re=er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Re?void 0:Re[0])}catch(t){ze=!1}var Ke,Ye=Fe?// Native
373
373
  function(t,e,r){return t.startsWith(e,r)}:// For IE11
374
- function(t,e,r){return t.slice(r,r+e.length)===e},Qe=We?String.fromCodePoint:// IE11
375
- function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},tr=
374
+ function(t,e,r){return t.slice(r,r+e.length)===e},Ze=Ge?String.fromCodePoint:// IE11
375
+ function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},qe=
376
376
  // native
377
- Xe?Object.fromEntries:// Ponyfill
378
- function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},er=Ve?// Native
377
+ ke?Object.fromEntries:// Ponyfill
378
+ function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Je=je?// Native
379
379
  function(t,e){return t.codePointAt(e)}:// IE 11
380
- function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},rr=ze?// Native
380
+ function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Qe=We?// Native
381
381
  function(t){return t.trimStart()}:// Ponyfill
382
- function(t){return t.replace(Fe,"")},nr=Ke?// Native
382
+ function(t){return t.replace(De,"")},tr=Xe?// Native
383
383
  function(t){return t.trimEnd()}:// Ponyfill
384
- function(t){return t.replace(Ge,"")};
384
+ function(t){return t.replace($e,"")};
385
385
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
386
- function or(t,e){return new RegExp(t,e)}
386
+ function er(t,e){return new RegExp(t,e)}
387
387
  // #endregion
388
- if(Ze){
388
+ if(ze){
389
389
  // Native
390
- var ir=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=function(t,e){var r;return ir.lastIndex=e,null!==(r=ir.exec(t)[1])&&void 0!==r?r:""}}else
390
+ var rr=er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ke=function(t,e){var r;return rr.lastIndex=e,null!==(r=rr.exec(t)[1])&&void 0!==r?r:""}}else
391
391
  // IE11
392
- qe=function(t,e){for(var r=[];;){var n=er(t,e);if(void 0===n||lr(n)||ur(n))break;r.push(n),e+=n>=65536?2:1}return Qe.apply(void 0,r)};var sr=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(le.UNMATCHED_CLOSING_TAG,ke(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&ar(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ue.pound,location:ke(s,this.clonePosition())})}}}return{val:n,err:null}},
392
+ Ke=function(t,e){for(var r=[];;){var n=Je(t,e);if(void 0===n||ir(n)||sr(n))break;r.push(n),e+=n>=65536?2:1}return Ze.apply(void 0,r)};var nr=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(se.UNMATCHED_CLOSING_TAG,Ue(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&or(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ae.pound,location:Ue(s,this.clonePosition())})}}}return{val:n,err:null}},
393
393
  /**
394
394
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
395
395
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -411,14 +411,14 @@ qe=function(t,e){for(var r=[];;){var n=er(t,e);if(void 0===n||lr(n)||ur(n))break
411
411
  t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
412
412
  var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
413
413
  // Self closing tag
414
- return{val:{type:ue.literal,value:"<".concat(n,"/>"),location:ke(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();
414
+ return{val:{type:ae.literal,value:"<".concat(n,"/>"),location:Ue(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();
415
415
  // Expecting a close tag
416
- if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(le.INVALID_TAG,ke(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(le.UNMATCHED_CLOSING_TAG,ke(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ue.tag,value:n,children:i,location:ke(r,this.clonePosition())},err:null}:this.error(le.INVALID_TAG,ke(s,this.clonePosition())))}return this.error(le.UNCLOSED_TAG,ke(r,this.clonePosition()))}return this.error(le.INVALID_TAG,ke(r,this.clonePosition()))},
416
+ if(this.bumpIf("</")){if(this.isEOF()||!or(this.char()))return this.error(se.INVALID_TAG,Ue(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(se.UNMATCHED_CLOSING_TAG,Ue(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ae.tag,value:n,children:i,location:Ue(r,this.clonePosition())},err:null}:this.error(se.INVALID_TAG,Ue(s,this.clonePosition())))}return this.error(se.UNCLOSED_TAG,Ue(r,this.clonePosition()))}return this.error(se.INVALID_TAG,Ue(r,this.clonePosition()))},
417
417
  /**
418
418
  * This method assumes that the caller has peeked ahead for the first tag character.
419
419
  */
420
420
  t.prototype.parseTagName=function(){var t,e=this.offset();// the first tag name character
421
- for(this.bump();!this.isEOF()&&(45/* '-' */===(t=this.char())||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||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);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=ke(r,this.clonePosition());return{val:{type:ue.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(ar(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
421
+ for(this.bump();!this.isEOF()&&(45/* '-' */===(t=this.char())||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||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);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ue(r,this.clonePosition());return{val:{type:ae.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(or(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
422
422
  /** See `parseTag` function docs. */},
423
423
  /**
424
424
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
@@ -440,67 +440,67 @@ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'
440
440
  // Optional closing apostrophe.
441
441
  this.bump();break}e.push(39),
442
442
  // Bump one more time because we need to skip 2 characters.
443
- this.bump()}else e.push(r);this.bump()}return Qe.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===e||"selectordinal"===e)||125/* `}` */===r&&t>0?null:(this.bump(),Qe(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
444
- this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(le.EMPTY_ARGUMENT,ke(r,this.clonePosition()));
443
+ this.bump()}else e.push(r);this.bump()}return Ze.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===e||"selectordinal"===e)||125/* `}` */===r&&t>0?null:(this.bump(),Ze(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
444
+ this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(se.EMPTY_ARGUMENT,Ue(r,this.clonePosition()));
445
445
  // argument name
446
- var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(le.MALFORMED_ARGUMENT,ke(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(r,this.clonePosition()));switch(this.char()){
446
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(se.MALFORMED_ARGUMENT,Ue(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition()));switch(this.char()){
447
447
  // Simple argument: `{name}`
448
448
  case 125/* `}` */:// `}`
449
- return this.bump(),{val:{type:ue.argument,
449
+ return this.bump(),{val:{type:ae.argument,
450
450
  // value does not include the opening and closing braces.
451
- value:n,location:ke(r,this.clonePosition())},err:null};
451
+ value:n,location:Ue(r,this.clonePosition())},err:null};
452
452
  // Argument with options: `{name, format, ...}`
453
453
  case 44/* `,` */:return this.bump(),// `,`
454
- this.bumpSpace(),this.isEOF()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(le.MALFORMED_ARGUMENT,ke(r,this.clonePosition()))}},
454
+ this.bumpSpace(),this.isEOF()?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(se.MALFORMED_ARGUMENT,Ue(r,this.clonePosition()))}},
455
455
  /**
456
456
  * Advance the parser until the end of the identifier, if it is currently on
457
457
  * an identifier character. Return an empty string otherwise.
458
458
  */
459
- t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=qe(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:ke(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
459
+ t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Ke(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Ue(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
460
460
  // Parse this range:
461
461
  // {name, type, style}
462
462
  // ^---^
463
463
  switch(s){case"":
464
464
  // Expecting a style string number, date, time, plural, selectordinal, or select.
465
- return this.error(le.EXPECT_ARGUMENT_TYPE,ke(i,a));case"number":case"date":case"time":
465
+ return this.error(se.EXPECT_ARGUMENT_TYPE,Ue(i,a));case"number":case"date":case"time":
466
466
  // Parse this range:
467
467
  // {name, number, style}
468
468
  // ^-------^
469
- this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=nr(y.val)).length)return this.error(le.EXPECT_ARGUMENT_STYLE,ke(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ke(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=ke(n,this.clonePosition());
469
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=tr(y.val)).length)return this.error(se.EXPECT_ARGUMENT_STYLE,Ue(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Ue(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Ue(n,this.clonePosition());
470
470
  // Extract style or skeleton
471
- if(l&&Je(null==l?void 0:l.style,"::",0)){
471
+ if(l&&Ye(null==l?void 0:l.style,"::",0)){
472
472
  // Skeleton starts with `::`.
473
- var h=rr(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:ue.number,value:r,location:c,style:y.val},err:null};if(0===h.length)return this.error(le.EXPECT_DATE_TIME_SKELETON,c);var f=h;
473
+ var h=Qe(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:ae.number,value:r,location:c,style:y.val},err:null};if(0===h.length)return this.error(se.EXPECT_DATE_TIME_SKELETON,c);var f=h;
474
474
  // Get "best match" pattern only if locale is passed, if not, let it
475
475
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
476
476
  // for unsupported patterns.
477
- this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Ue(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:ce.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ae(f):{}};return{val:{type:"date"===s?ue.date:ue.time,value:r,location:c,style:p},err:null}}
477
+ this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Me(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:le.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?_e(f):{}};return{val:{type:"date"===s?ae.date:ae.time,value:r,location:c,style:p},err:null}}
478
478
  // Regular style or no style.
479
- return{val:{type:"number"===s?ue.number:"date"===s?ue.date:ue.time,value:r,location:c,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
479
+ return{val:{type:"number"===s?ae.number:"date"===s?ae.date:ae.time,value:r,location:c,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
480
480
  // Parse this range:
481
481
  // {name, plural, options}
482
482
  // ^---------^
483
- var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(le.EXPECT_SELECT_ARGUMENT_OPTIONS,ke(d,he({},d)));this.bumpSpace();
483
+ var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(se.EXPECT_SELECT_ARGUMENT_OPTIONS,Ue(d,dt({},d)));this.bumpSpace();
484
484
  // Parse offset:
485
485
  // {name, plural, offset:1, options}
486
486
  // ^-----^
487
487
  // or the first option:
488
488
  // {name, plural, one {...} other {...}}
489
489
  // ^--^
490
- var g=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ke(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
490
+ var g=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ue(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
491
491
  // Parse another identifier for option parsing
492
- this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,g);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=ke(n,this.clonePosition());return"select"===s?{val:{type:ue.select,value:r,options:tr(v.val),location:E},err:null}:{val:{type:ue.plural,value:r,options:tr(v.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(le.INVALID_ARGUMENT_TYPE,ke(i,a))}},t.prototype.tryParseArgumentClose=function(t){
492
+ this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,g);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=Ue(n,this.clonePosition());return"select"===s?{val:{type:ae.select,value:r,options:qe(v.val),location:E},err:null}:{val:{type:ae.plural,value:r,options:qe(v.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(se.INVALID_ARGUMENT_TYPE,Ue(i,a))}},t.prototype.tryParseArgumentClose=function(t){
493
493
  // Parse: {value, number, ::currency/GBP }
494
- return this.isEOF()||125/* `}` */!==this.char()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
494
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
495
495
  /**
496
496
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
497
497
  */
498
498
  t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
499
499
  // Treat apostrophe as quoting but include it in the style part.
500
500
  // Find the end of the quoted literal text.
501
- this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ke(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
501
+ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ue(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
502
502
  // Parse the skeleton
503
- for(var e=[],r=0,n=t.split(He).filter((function(t){return t.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:s})}return e}(t)}catch(t){return this.error(le.INVALID_NUMBER_SKELETON,e)}return{val:{type:ce.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Me(r):{}},err:null}},
503
+ for(var e=[],r=0,n=t.split(Be).filter((function(t){return t.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:s})}return e}(t)}catch(t){return this.error(se.INVALID_NUMBER_SKELETON,e)}return{val:{type:le.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Oe(r):{}},err:null}},
504
504
  /**
505
505
  * @param nesting_level The current nesting level of messages.
506
506
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -517,24 +517,24 @@ t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
517
517
  // ^--^
518
518
  for(var o,i=!1,s=[],a=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
519
519
  // Try parse `={number}` selector
520
- var h=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_SELECTOR,le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=ke(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
520
+ var h=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_SELECTOR,se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Ue(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
521
521
  // Duplicate selector clauses
522
- if(a.has(l))return this.error("select"===e?le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(i=!0),
522
+ if(a.has(l))return this.error("select"===e?se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(i=!0),
523
523
  // Parse:
524
524
  // one {one apple}
525
525
  // ^----------^
526
- this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ke(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([l,{value:p.val,location:ke(f,this.clonePosition())}]),
526
+ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([l,{value:p.val,location:Ue(f,this.clonePosition())}]),
527
527
  // Keep track of the existing selectors
528
528
  a.add(l),
529
529
  // Prep next selector clause.
530
- this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,ke(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(le.MISSING_OTHER_CLAUSE,ke(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=ke(n,this.clonePosition());return o?Ye(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
530
+ this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?se.EXPECT_SELECT_ARGUMENT_SELECTOR:se.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(se.MISSING_OTHER_CLAUSE,Ue(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=Ue(n,this.clonePosition());return o?Ve(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
531
531
  // This is much faster than `Object.assign` or spread.
532
532
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
533
533
  /**
534
534
  * Return the code point at the current position of the parser.
535
535
  * Throws if the index is out of bound.
536
536
  */
537
- t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=er(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
537
+ t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Je(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
538
538
  /** Bump the parser to the next UTF-16 code unit. */
539
539
  t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10/* '\n' */===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
540
540
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
@@ -545,7 +545,7 @@ this.position.offset+=t<65536?1:2)}},
545
545
  * following the prefix and return true. Otherwise, don't bump the parser
546
546
  * and return false.
547
547
  */
548
- t.prototype.bumpIf=function(t){if(Je(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
548
+ t.prototype.bumpIf=function(t){if(Ye(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
549
549
  /**
550
550
  * Bump the parser until the pattern character is found and return `true`.
551
551
  * Otherwise bump to the end of the file and return `false`.
@@ -557,7 +557,7 @@ t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e
557
557
  */
558
558
  t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
559
559
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
560
- t.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},
560
+ t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ir(this.char());)this.bump()},
561
561
  /**
562
562
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
563
563
  * If the input has been exhausted, then this returns null.
@@ -567,81 +567,81 @@ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this
567
567
  * This check if codepoint is alphabet (lower & uppercase)
568
568
  * @param codepoint
569
569
  * @returns
570
- */function ar(t){return t>=97&&t<=122||t>=65&&t<=90}
570
+ */function or(t){return t>=97&&t<=122||t>=65&&t<=90}
571
571
  /**
572
572
  * Code point equivalent of regex `\p{White_Space}`.
573
573
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
574
574
  */
575
- function lr(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
575
+ function ir(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
576
576
  /**
577
577
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
578
578
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
579
- */function ur(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||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||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||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||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||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||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||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||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||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||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function cr(t){t.forEach((function(t){if(delete t.location,be(t)||ve(t))for(var e in t.options)delete t.options[e].location,cr(t.options[e].value);else ge(t)&&_e(t.style)||(me(t)||ye(t))&&Te(t.style)?delete t.style.location:we(t)&&cr(t.children)}))}function hr(t,e){void 0===e&&(e={}),e=he({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new sr(t,e).parse();if(r.err){var n=SyntaxError(le[r.err.kind]);
579
+ */function sr(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||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||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||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||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||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||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||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||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||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||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ar(t){t.forEach((function(t){if(delete t.location,ge(t)||me(t))for(var e in t.options)delete t.options[e].location,ar(t.options[e].value);else fe(t)&&ve(t.style)||(pe(t)||de(t))&&Ee(t.style)?delete t.style.location:be(t)&&ar(t.children)}))}function lr(t,e){void 0===e&&(e={}),e=dt({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new nr(t,e).parse();if(r.err){var n=SyntaxError(se[r.err.kind]);
580
580
  // @ts-expect-error Assign to error object
581
581
  throw n.location=r.err.location,
582
582
  // @ts-expect-error Assign to error object
583
- n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||cr(r.val),r.val}
583
+ n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||ar(r.val),r.val}
584
584
 
585
585
  // Main
586
586
 
587
- function fr(t,e){var r=e&&e.cache?e.cache:Er,n=e&&e.serializer?e.serializer:yr;return(e&&e.strategy?e.strategy:mr)(t,{cache:r,serializer:n})}
587
+ function ur(t,e){var r=e&&e.cache?e.cache:yr,n=e&&e.serializer?e.serializer:dr;return(e&&e.strategy?e.strategy:pr)(t,{cache:r,serializer:n})}
588
588
 
589
589
  // Strategy
590
590
 
591
- function pr(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),s=e.get(i);return void 0===s&&(s=t.call(this,n),e.set(i,s)),s}function dr(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function gr(t,e,r,n,o){return r.bind(e,t,n,o)}function mr(t,e){return gr(t,this,1===t.length?pr:dr,e.cache.create(),e.serializer)}
591
+ function cr(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),s=e.get(i);return void 0===s&&(s=t.call(this,n),e.set(i,s)),s}function hr(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function fr(t,e,r,n,o){return r.bind(e,t,n,o)}function pr(t,e){return fr(t,this,1===t.length?cr:hr,e.cache.create(),e.serializer)}
592
592
  // Serializer
593
- var yr=function(){return JSON.stringify(arguments)};
593
+ var dr=function(){return JSON.stringify(arguments)};
594
594
 
595
595
  // Cache
596
596
 
597
- function br(){this.cache=Object.create(null)}br.prototype.get=function(t){return this.cache[t]},br.prototype.set=function(t,e){this.cache[t]=e};var vr,Er={create:function(){
597
+ function gr(){this.cache=Object.create(null)}gr.prototype.get=function(t){return this.cache[t]},gr.prototype.set=function(t,e){this.cache[t]=e};var mr,yr={create:function(){
598
598
  // @ts-ignore
599
- return new br}},wr={variadic:function(t,e){return gr(t,this,dr,e.cache.create(),e.serializer)},monadic:function(t,e){return gr(t,this,pr,e.cache.create(),e.serializer)}};!function(t){
599
+ return new gr}},br={variadic:function(t,e){return fr(t,this,hr,e.cache.create(),e.serializer)},monadic:function(t,e){return fr(t,this,cr,e.cache.create(),e.serializer)}};!function(t){
600
600
  // When we have a placeholder but no value to format
601
601
  t.MISSING_VALUE="MISSING_VALUE",
602
602
  // When value supplied is invalid
603
603
  t.INVALID_VALUE="INVALID_VALUE",
604
604
  // When we need specific Intl API but it's not available
605
- t.MISSING_INTL_API="MISSING_INTL_API"}(vr||(vr={}));var _r,Tr=/** @class */function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return ae(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Br=/** @class */function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),vr.INVALID_VALUE,o)||this}return ae(e,t),e}(Tr),Sr=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),vr.INVALID_VALUE,n)||this}return ae(e,t),e}(Tr),Ar=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),vr.MISSING_VALUE,r)||this}return ae(e,t),e}(Tr);function Hr(t){return"function"==typeof t}
605
+ t.MISSING_INTL_API="MISSING_INTL_API"}(mr||(mr={}));var vr,Er=/** @class */function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return pt(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),wr=/** @class */function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),mr.INVALID_VALUE,o)||this}return pt(e,t),e}(Er),Tr=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),mr.INVALID_VALUE,n)||this}return pt(e,t),e}(Er),_r=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),mr.MISSING_VALUE,r)||this}return pt(e,t),e}(Er);function Br(t){return"function"==typeof t}
606
606
  // TODO(skeleton): add skeleton support
607
- function Lr(t,e,r,n,o,i,
607
+ function Sr(t,e,r,n,o,i,
608
608
  // For debugging
609
609
  s){
610
610
  // Hot path for straight simple msg translations
611
- if(1===t.length&&pe(t[0]))return[{type:_r.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];
611
+ if(1===t.length&&ce(t[0]))return[{type:vr.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];
612
612
  // Exit early for string parts.
613
- if(pe(c))a.push({type:_r.literal,value:c.value});else
613
+ if(ce(c))a.push({type:vr.literal,value:c.value});else
614
614
  // TODO: should this part be literal type?
615
615
  // Replace `#` in plural rules with the actual numeric value.
616
- if(Ee(c))"number"==typeof i&&a.push({type:_r.literal,value:r.getNumberFormat(e).format(i)});else{var h=c.value;
616
+ if(ye(c))"number"==typeof i&&a.push({type:vr.literal,value:r.getNumberFormat(e).format(i)});else{var h=c.value;
617
617
  // Enforce that all required values are provided by the caller.
618
- if(!o||!(h in o))throw new Ar(h,s);var f=o[h];if(de(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?_r.literal:_r.object,value:f});else
618
+ if(!o||!(h in o))throw new _r(h,s);var f=o[h];if(he(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?vr.literal:vr.object,value:f});else
619
619
  // Recursively format plural and select parts' option — which can be a
620
620
  // nested pattern structure. The choosing of the option to use is
621
621
  // abstracted-by and delegated-to the part helper object.
622
- if(me(c)){var p="string"==typeof c.style?n.date[c.style]:Te(c.style)?c.style.parsedOptions:void 0;a.push({type:_r.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(ye(c)){p="string"==typeof c.style?n.time[c.style]:Te(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:_r.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(ge(c)){(p="string"==typeof c.style?n.number[c.style]:_e(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:_r.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(we(c)){var d=c.children,g=c.value,m=o[g];if(!Hr(m))throw new Sr(g,"function",s);var y=m(Lr(d,e,r,n,o,i).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?_r.literal:_r.object,value:t}})))}if(be(c)){if(!(b=c.options[f]||c.options.other))throw new Br(c.value,f,Object.keys(c.options),s);a.push.apply(a,Lr(b.value,e,r,n,o))}else if(ve(c)){var b;if(!(b=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new Tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vr.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new Br(c.value,f,Object.keys(c.options),s);a.push.apply(a,Lr(b.value,e,r,n,o,f-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===_r.literal&&e.type===_r.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
622
+ if(pe(c)){var p="string"==typeof c.style?n.date[c.style]:Ee(c.style)?c.style.parsedOptions:void 0;a.push({type:vr.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(de(c)){p="string"==typeof c.style?n.time[c.style]:Ee(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:vr.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(fe(c)){(p="string"==typeof c.style?n.number[c.style]:ve(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:vr.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(be(c)){var d=c.children,g=c.value,m=o[g];if(!Br(m))throw new Tr(g,"function",s);var y=m(Sr(d,e,r,n,o,i).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?vr.literal:vr.object,value:t}})))}if(ge(c)){if(!(b=c.options[f]||c.options.other))throw new wr(c.value,f,Object.keys(c.options),s);a.push.apply(a,Sr(b.value,e,r,n,o))}else if(me(c)){var b;if(!(b=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new Er('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',mr.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new wr(c.value,f,Object.keys(c.options),s);a.push.apply(a,Sr(b.value,e,r,n,o,f-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===vr.literal&&e.type===vr.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
623
623
  /*
624
624
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
625
625
  Copyrights licensed under the New BSD License.
626
626
  See the accompanying LICENSE file for terms.
627
627
  */
628
628
  // -- MessageFormat --------------------------------------------------------
629
- function Pr(t,e){return e?Object.keys(t).reduce((function(r,n){var o,i;return r[n]=(o=t[n],(i=e[n])?he(he(he({},o||{}),i||{}),Object.keys(o).reduce((function(t,e){return t[e]=he(he({},o[e]),i[e]||{}),t}),{})):o),r}),he({},t)):t}function Cr(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(_r||(_r={}));var Or=/** @class */function(){function t(e,r,n,o){var i,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
629
+ function Ar(t,e){return e?Object.keys(t).reduce((function(r,n){var o,i;return r[n]=(o=t[n],(i=e[n])?dt(dt(dt({},o||{}),i||{}),Object.keys(o).reduce((function(t,e){return t[e]=dt(dt({},o[e]),i[e]||{}),t}),{})):o),r}),dt({},t)):t}function Hr(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(vr||(vr={}));var Lr=/** @class */function(){function t(e,r,n,o){var i,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
630
630
  // Hot path for straight simple msg translations
631
- if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===_r.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Lr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
631
+ if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===vr.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Sr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
632
632
  // Defined first because it's used to build the format pattern.
633
633
  this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
634
634
  // Parse string messages into an AST.
635
635
  this.ast=t.__parse(e,{ignoreTag:null==o?void 0:o.ignoreTag,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.");
636
636
  // Creates a new object with the specified `formats` merged with the default
637
637
  // formats.
638
- this.formats=Pr(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,fe([void 0],e,!1)))}),{cache:Cr(i.number),strategy:wr.variadic}),getDateTimeFormat:fr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,fe([void 0],e,!1)))}),{cache:Cr(i.dateTime),strategy:wr.variadic}),getPluralRules:fr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,fe([void 0],e,!1)))}),{cache:Cr(i.pluralRules),strategy:wr.variadic})})}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(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=hr,
638
+ this.formats=Ar(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ur((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,yt([void 0],e,!1)))}),{cache:Hr(i.number),strategy:br.variadic}),getDateTimeFormat:ur((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,yt([void 0],e,!1)))}),{cache:Hr(i.dateTime),strategy:br.variadic}),getPluralRules:ur((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,yt([void 0],e,!1)))}),{cache:Hr(i.pluralRules),strategy:br.variadic})})}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(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=lr,
639
639
  // Default format options used as the prototype of the `formats` provided to the
640
640
  // constructor. These are used when constructing the internal Intl.NumberFormat
641
641
  // and Intl.DateTimeFormat instances.
642
- 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}();const Ir={},xr=(t,e,r)=>r?(e in Ir||(Ir[e]={}),t in Ir[e]||(Ir[e][t]=r),r):r,Rr=(t,e)=>{if(null==e)return;if(e in Ir&&t in Ir[e])return Ir[e][t];const r=sn(e);for(let n=0;n<r.length;n++){const o=$r(r[n],t);if(o)return xr(t,e,o)}};let Nr;const Mr=Yt({});function Dr(t){return t in Nr}function $r(t,e){if(!Dr(t))return null;const r=function(t){return Nr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Ur(t,...e){delete Ir[t],Mr.update((r=>(r[t]=ie.all([r[t]||{},...e]),r)))}Zt([Mr],(([t])=>Object.keys(t))),Mr.subscribe((t=>Nr=t));const Fr={};function Gr(t){return Fr[t]}function kr(t){return null!=t&&sn(t).some((t=>{var e;return null==(e=Gr(t))?void 0:e.size}))}function jr(t,e){const r=Promise.all(e.map((e=>(function(t,e){Fr[t].delete(e),0===Fr[t].size&&delete Fr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Ur(t,...e)))}const Wr={};function Xr(t){if(!kr(t))return t in Wr?Wr[t]:Promise.resolve();const e=function(t){return sn(t).map((t=>{const e=Gr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Wr[t]=Promise.all(e.map((([t,e])=>jr(t,e)))).then((()=>{if(kr(t))return Xr(t);delete Wr[t]})),Wr[t]}const Vr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function zr(){return Vr}const Kr=Yt(!1);var Yr=Object.defineProperty,Zr=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,Jr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,en=(t,e,r)=>e in t?Yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let rn;const nn=Yt(null);function on(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function sn(t,e=zr().fallbackLocale){const r=on(t);return e?[...new Set([...r,...on(e)])]:r}function an(){return null!=rn?rn:void 0}nn.subscribe((t=>{rn=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const ln=(un=((t,e)=>{for(var r in e||(e={}))Qr.call(e,r)&&en(t,r,e[r]);if(Jr)for(var r of Jr(e))tn.call(e,r)&&en(t,r,e[r]);return t})({},nn),Zr(un,qr({set:t=>{if(t&&function(t){if(null==t)return;const e=sn(t);for(let t=0;t<e.length;t++){const r=e[t];if(Dr(r))return r}}(t)&&kr(t)){const{loadingDelay:e}=zr();let r;return"undefined"!=typeof window&&null!=an()&&e?r=window.setTimeout((()=>Kr.set(!0)),e):Kr.set(!0),Xr(t).then((()=>{nn.set(t)})).finally((()=>{clearTimeout(r),Kr.set(!1)}))}return nn.set(t)}})));var un;const cn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var hn=Object.defineProperty,fn=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,gn=(t,e,r)=>e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mn=(t,e)=>{for(var r in e||(e={}))pn.call(e,r)&&gn(t,r,e[r]);if(fn)for(var r of fn(e))dn.call(e,r)&&gn(t,r,e[r]);return t},yn=(t,e)=>{var r={};for(var n in t)pn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&fn)for(var n of fn(t))e.indexOf(n)<0&&dn.call(t,n)&&(r[n]=t[n]);return r};const bn=(t,e)=>{const{formats:r}=zr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},vn=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=bn("number",n)),new Intl.NumberFormat(r,o)})),En=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=bn("date",n):0===Object.keys(o).length&&(o=bn("date","short")),new Intl.DateTimeFormat(r,o)})),wn=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=bn("time",n):0===Object.keys(o).length&&(o=bn("time","short")),new Intl.DateTimeFormat(r,o)})),_n=cn((
642
+ 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}();const Pr={},Cr=(t,e,r)=>r?(e in Pr||(Pr[e]={}),t in Pr[e]||(Pr[e][t]=r),r):r,Ir=(t,e)=>{if(null==e)return;if(e in Pr&&t in Pr[e])return Pr[e][t];const r=rn(e);for(let n=0;n<r.length;n++){const o=Nr(r[n],t);if(o)return Cr(t,e,o)}};let xr;const Or=Zt({});function Rr(t){return t in xr}function Nr(t,e){if(!Rr(t))return null;const r=function(t){return xr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Mr(t,...e){delete Pr[t],Or.update((r=>(r[t]=ue.all([r[t]||{},...e]),r)))}qt([Or],(([t])=>Object.keys(t))),Or.subscribe((t=>xr=t));const Dr={};function $r(t){return Dr[t]}function Ur(t){return null!=t&&rn(t).some((t=>{var e;return null==(e=$r(t))?void 0:e.size}))}function Fr(t,e){const r=Promise.all(e.map((e=>(function(t,e){Dr[t].delete(e),0===Dr[t].size&&delete Dr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Mr(t,...e)))}const Gr={};function kr(t){if(!Ur(t))return t in Gr?Gr[t]:Promise.resolve();const e=function(t){return rn(t).map((t=>{const e=$r(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Gr[t]=Promise.all(e.map((([t,e])=>Fr(t,e)))).then((()=>{if(Ur(t))return kr(t);delete Gr[t]})),Gr[t]}const jr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Wr(){return jr}const Xr=Zt(!1);var Vr=Object.defineProperty,zr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Jr=(t,e,r)=>e in t?Vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Qr;const tn=Zt(null);function en(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function rn(t,e=Wr().fallbackLocale){const r=en(t);return e?[...new Set([...r,...en(e)])]:r}function nn(){return null!=Qr?Qr:void 0}tn.subscribe((t=>{Qr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const on=(sn=((t,e)=>{for(var r in e||(e={}))Zr.call(e,r)&&Jr(t,r,e[r]);if(Yr)for(var r of Yr(e))qr.call(e,r)&&Jr(t,r,e[r]);return t})({},tn),zr(sn,Kr({set:t=>{if(t&&function(t){if(null==t)return;const e=rn(t);for(let t=0;t<e.length;t++){const r=e[t];if(Rr(r))return r}}(t)&&Ur(t)){const{loadingDelay:e}=Wr();let r;return"undefined"!=typeof window&&null!=nn()&&e?r=window.setTimeout((()=>Xr.set(!0)),e):Xr.set(!0),kr(t).then((()=>{tn.set(t)})).finally((()=>{clearTimeout(r),Xr.set(!1)}))}return tn.set(t)}})));var sn;const an=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var ln=Object.defineProperty,un=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,fn=(t,e,r)=>e in t?ln(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pn=(t,e)=>{for(var r in e||(e={}))cn.call(e,r)&&fn(t,r,e[r]);if(un)for(var r of un(e))hn.call(e,r)&&fn(t,r,e[r]);return t},dn=(t,e)=>{var r={};for(var n in t)cn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&un)for(var n of un(t))e.indexOf(n)<0&&hn.call(t,n)&&(r[n]=t[n]);return r};const gn=(t,e)=>{const{formats:r}=Wr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},mn=an((t=>{var e=t,{locale:r,format:n}=e,o=dn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=gn("number",n)),new Intl.NumberFormat(r,o)})),yn=an((t=>{var e=t,{locale:r,format:n}=e,o=dn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=gn("date",n):0===Object.keys(o).length&&(o=gn("date","short")),new Intl.DateTimeFormat(r,o)})),bn=an((t=>{var e=t,{locale:r,format:n}=e,o=dn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=gn("time",n):0===Object.keys(o).length&&(o=gn("time","short")),new Intl.DateTimeFormat(r,o)})),vn=an((
643
643
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
644
- (t,e=an())=>new Or(t,e,zr().formats,{ignoreTag:zr().ignoreTag}))),Tn=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=an(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rr(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(n=(r=zr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:u}))?o:u)?i:t;if(!a)return c;let h=c;try{h=_n(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Bn=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return wn(mn({locale:r},n))})(e).format(t),Sn=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return En(mn({locale:r},n))})(e).format(t),An=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return vn(mn({locale:r},n))})(e).format(t),Hn=(t,e=an())=>Rr(t,e),Ln=Zt([ln,Mr],(()=>Tn));Zt([ln],(()=>Bn)),Zt([ln],(()=>Sn)),Zt([ln],(()=>An)),Zt([ln,Mr],(()=>Hn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Vt.indexOf(t)){let r=new Xt(e);zt[t]=r,Vt.push(t)}return zt[t]}};function Pn(t,e){Ur(t,e)}const Cn={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},es:{wageringSlider:{title:"Bono de Apuesta",noWageringMsg:"You don't have any wagering bonus."}},el:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},ro:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}};var On=function(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}((function(t,e){
644
+ (t,e=nn())=>new Lr(t,e,Wr().formats,{ignoreTag:Wr().ignoreTag}))),En=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=nn(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ir(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(n=(r=Wr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:u}))?o:u)?i:t;if(!a)return c;let h=c;try{h=vn(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},wn=(t,e)=>((t={})=>{var e=t,{locale:r=nn()}=e,n=dn(e,["locale"]);return bn(pn({locale:r},n))})(e).format(t),Tn=(t,e)=>((t={})=>{var e=t,{locale:r=nn()}=e,n=dn(e,["locale"]);return yn(pn({locale:r},n))})(e).format(t),_n=(t,e)=>((t={})=>{var e=t,{locale:r=nn()}=e,n=dn(e,["locale"]);return mn(pn({locale:r},n))})(e).format(t),Bn=(t,e=nn())=>Ir(t,e),Sn=qt([on,Or],(()=>En));qt([on],(()=>wn)),qt([on],(()=>Tn)),qt([on],(()=>_n)),qt([on,Or],(()=>Bn)),window.emWidgets={topic:(t,e=0)=>{if(-1==zt.indexOf(t)){let r=new Vt(e);Kt[t]=r,zt.push(t)}return Kt[t]}};function An(t,e){Mr(t,e)}const Hn={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},es:{wageringSlider:{title:"Bono de Apuesta",noWageringMsg:"You don't have any wagering bonus."}},el:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},ro:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}};var Ln=function(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}((function(t,e){
645
645
  /** @license
646
646
  * eventsource.js
647
647
  * Available under MIT License (MIT)
@@ -661,7 +661,7 @@ i=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.cr
661
661
  // IE, Edge
662
662
  null!=p&&null!=d&&function(){try{return"test"===(new p).decode((new d).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(p=y);var b=function(){};function v(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=b,this.onload=b,this.onerror=b,this.onreadystatechange=b,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=b}function E(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function w(t){for(
663
663
  // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example
664
- var e=Object.create(null),r=t.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),i=o.shift(),s=o.join(": ");e[E(i)]=s}this._map=e}function _(){}function T(t){this._headers=t}function B(){}function S(){this._listeners=Object.create(null)}function A(t){n((function(){throw t}),0)}function H(t){this.type=t,this.target=void 0}function L(t,e){H.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function P(t,e){H.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function C(t,e){H.call(this,t),this.error=e.error}v.prototype.open=function(t,e){this._abort(!0);var r=this,s=this._xhr,a=1,l=0;this._abort=function(t){0!==r._sendTimeout&&(o(r._sendTimeout),r._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,s.onload=b,s.onerror=b,s.onabort=b,s.onprogress=b,s.onreadystatechange=b,
664
+ var e=Object.create(null),r=t.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),i=o.shift(),s=o.join(": ");e[E(i)]=s}this._map=e}function T(){}function _(t){this._headers=t}function B(){}function S(){this._listeners=Object.create(null)}function A(t){n((function(){throw t}),0)}function H(t){this.type=t,this.target=void 0}function L(t,e){H.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function P(t,e){H.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function C(t,e){H.call(this,t),this.error=e.error}v.prototype.open=function(t,e){this._abort(!0);var r=this,s=this._xhr,a=1,l=0;this._abort=function(t){0!==r._sendTimeout&&(o(r._sendTimeout),r._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,s.onload=b,s.onerror=b,s.onabort=b,s.onprogress=b,s.onreadystatechange=b,
665
665
  // IE 8 - 9: XDomainRequest#abort() does not fire any event
666
666
  // Opera < 10: XMLHttpRequest#abort() does not fire any event
667
667
  s.abort(),0!==l&&(o(l),l=0),t||(r.readyState=4,r.onabort(null),r.onreadystatechange())),a=0};var u=function(){if(1===a){
@@ -708,56 +708,56 @@ if("ontimeout"in i.prototype&&("sendAsBinary"in i.prototype||"mozAnon"in i.proto
708
708
  t.send(void 0)}catch(t){
709
709
  // Safari 5.1.7, Opera 12
710
710
  throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},w.prototype.get=function(t){return this._map[E(t)]},null!=i&&null==i.HEADERS_RECEIVED&&(// IE < 9, Firefox 3.6
711
- i.HEADERS_RECEIVED=2),_.prototype.open=function(t,e,r,n,o,s,a){t.open("GET",o);var l=0;for(var u in t.onprogress=function(){var e=t.responseText.slice(l);l+=e.length,r(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===i.HEADERS_RECEIVED){var r=t.status,n=t.statusText,o=t.getResponseHeader("Content-Type"),s=t.getAllResponseHeaders();e(r,n,o,new w(s))}},t.withCredentials=s,a)Object.prototype.hasOwnProperty.call(a,u)&&t.setRequestHeader(u,a[u]);return t.send(),t},T.prototype.get=function(t){return this._headers.get(t)},B.prototype.open=function(t,e,r,n,o,i,s){var a=null,l=new g,u=l.signal,f=new p;return h(o,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then((function(t){
711
+ i.HEADERS_RECEIVED=2),T.prototype.open=function(t,e,r,n,o,s,a){t.open("GET",o);var l=0;for(var u in t.onprogress=function(){var e=t.responseText.slice(l);l+=e.length,r(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===i.HEADERS_RECEIVED){var r=t.status,n=t.statusText,o=t.getResponseHeader("Content-Type"),s=t.getAllResponseHeaders();e(r,n,o,new w(s))}},t.withCredentials=s,a)Object.prototype.hasOwnProperty.call(a,u)&&t.setRequestHeader(u,a[u]);return t.send(),t},_.prototype.get=function(t){return this._headers.get(t)},B.prototype.open=function(t,e,r,n,o,i,s){var a=null,l=new g,u=l.signal,f=new p;return h(o,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then((function(t){
712
712
  // see https://github.com/promises-aplus/promises-spec/issues/179
713
- return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new T(t.headers)),new c((function(t,e){var n=function(){a.read().then((function(e){if(e.done)
713
+ return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new _(t.headers)),new c((function(t,e){var n=function(){a.read().then((function(e){if(e.done)
714
714
  //Note: bytes in textDecoder are ignored
715
- t(void 0);else{var o=f.decode(e.value,{stream:!0});r(o),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},S.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var r=e.length,n=0;n<r;n+=1){var o=e[n];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){A(t)}}},S.prototype.addEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];null==n&&(n=[],r[t]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===e&&(o=!0);o||n.push(e)},S.prototype.removeEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==e&&o.push(n[i]);0===o.length?delete r[t]:r[t]=o}},L.prototype=Object.create(H.prototype),P.prototype=Object.create(H.prototype),C.prototype=Object.create(H.prototype);var O=-1,I=0,x=1,R=2,N=-1,M=0,D=1,$=2,U=3,F=/^text\/event\-stream(;.*)?$/i,G=function(t,e){var r=null==t?e:parseInt(t,10);return r!=r&&(r=e),k(r)},k=function(t){return Math.min(Math.max(t,1e3),18e6)},j=function(t,e,r){try{"function"==typeof e&&e.call(t,r)}catch(t){A(t)}};function W(t,e){S.call(this),e=e||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,e,r){e=String(e);var a=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=k(1e3),c=G(r.heartbeatTimeout,45e3),h="",f=u,p=!1,d=0,g=r.headers||{},m=r.Transport,y=X&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=m&&"string"!=typeof m?new m:null==y?new B:new _,E=void 0,w=0,T=O,S="",A="",H="",W="",V=M,z=0,K=0,Y=function(e,r,n,o){if(T===I)if(200===e&&null!=n&&F.test(n)){T=x,p=Date.now(),f=u,t.readyState=x;var i=new P("open",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onopen,i)}else{var s="";200!==e?(r&&(r=r.replace(/\s+/g," ")),s="EventSource's response has a status "+e+" "+r+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",J();i=new P("error",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onerror,i),console.error(s)}},Z=function(e){if(T===x){for(var r=-1,i=0;i<e.length;i+=1){(l=e.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=i)}var s=(-1!==r?W:"")+e.slice(0,r+1);W=(-1===r?W:"")+e.slice(r+1),""!==e&&(p=Date.now(),d+=e.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(V===N&&l==="\n".charCodeAt(0))V=M;else if(V===N&&(V=M),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(V!==M){V===D&&(K=a+1);var g=s.slice(z,K-1),m=s.slice(K+(K<a&&s.charCodeAt(K)===" ".charCodeAt(0)?1:0),a);"data"===g?(S+="\n",S+=m):"id"===g?A=m:"event"===g?H=m:"retry"===g?(u=G(m,u),f=u):"heartbeatTimeout"===g&&(c=G(m,c),0!==w&&(o(w),w=n((function(){Q()}),c)))}if(V===M){if(""!==S){h=A,""===H&&(H="message");var y=new L(H,{data:S.slice(1),lastEventId:A});if(t.dispatchEvent(y),"open"===H?j(t,t.onopen,y):"message"===H?j(t,t.onmessage,y):"error"===H&&j(t,t.onerror,y),T===R)return}S="",H=""}V=l==="\r".charCodeAt(0)?N:M}else V===M&&(z=a,V=D),V===D?l===":".charCodeAt(0)&&(K=a+1,V=$):V===$&&(V=U)}}},q=function(e){if(T===x||T===I){T=O,0!==w&&(o(w),w=0),w=n((function(){Q()}),f),f=k(Math.min(16*u,2*f)),t.readyState=I;var r=new C("error",{error:e});t.dispatchEvent(r),j(t,t.onerror,r),null!=e&&console.error(e)}},J=function(){T=R,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),t.readyState=R},Q=function(){if(w=0,T===O){p=!1,d=0,w=n((function(){Q()}),c),T=I,S="",H="",A=h,W="",z=0,K=0,V=M;
715
+ t(void 0);else{var o=f.decode(e.value,{stream:!0});r(o),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},S.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var r=e.length,n=0;n<r;n+=1){var o=e[n];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){A(t)}}},S.prototype.addEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];null==n&&(n=[],r[t]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===e&&(o=!0);o||n.push(e)},S.prototype.removeEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==e&&o.push(n[i]);0===o.length?delete r[t]:r[t]=o}},L.prototype=Object.create(H.prototype),P.prototype=Object.create(H.prototype),C.prototype=Object.create(H.prototype);var I=-1,x=0,O=1,R=2,N=-1,M=0,D=1,$=2,U=3,F=/^text\/event\-stream(;.*)?$/i,G=function(t,e){var r=null==t?e:parseInt(t,10);return r!=r&&(r=e),k(r)},k=function(t){return Math.min(Math.max(t,1e3),18e6)},j=function(t,e,r){try{"function"==typeof e&&e.call(t,r)}catch(t){A(t)}};function W(t,e){S.call(this),e=e||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,e,r){e=String(e);var a=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=k(1e3),c=G(r.heartbeatTimeout,45e3),h="",f=u,p=!1,d=0,g=r.headers||{},m=r.Transport,y=X&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=m&&"string"!=typeof m?new m:null==y?new B:new T,E=void 0,w=0,_=I,S="",A="",H="",W="",V=M,z=0,K=0,Y=function(e,r,n,o){if(_===x)if(200===e&&null!=n&&F.test(n)){_=O,p=Date.now(),f=u,t.readyState=O;var i=new P("open",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onopen,i)}else{var s="";200!==e?(r&&(r=r.replace(/\s+/g," ")),s="EventSource's response has a status "+e+" "+r+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",J();i=new P("error",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onerror,i),console.error(s)}},Z=function(e){if(_===O){for(var r=-1,i=0;i<e.length;i+=1){(l=e.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=i)}var s=(-1!==r?W:"")+e.slice(0,r+1);W=(-1===r?W:"")+e.slice(r+1),""!==e&&(p=Date.now(),d+=e.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(V===N&&l==="\n".charCodeAt(0))V=M;else if(V===N&&(V=M),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(V!==M){V===D&&(K=a+1);var g=s.slice(z,K-1),m=s.slice(K+(K<a&&s.charCodeAt(K)===" ".charCodeAt(0)?1:0),a);"data"===g?(S+="\n",S+=m):"id"===g?A=m:"event"===g?H=m:"retry"===g?(u=G(m,u),f=u):"heartbeatTimeout"===g&&(c=G(m,c),0!==w&&(o(w),w=n((function(){Q()}),c)))}if(V===M){if(""!==S){h=A,""===H&&(H="message");var y=new L(H,{data:S.slice(1),lastEventId:A});if(t.dispatchEvent(y),"open"===H?j(t,t.onopen,y):"message"===H?j(t,t.onmessage,y):"error"===H&&j(t,t.onerror,y),_===R)return}S="",H=""}V=l==="\r".charCodeAt(0)?N:M}else V===M&&(z=a,V=D),V===D?l===":".charCodeAt(0)&&(K=a+1,V=$):V===$&&(V=U)}}},q=function(e){if(_===O||_===x){_=I,0!==w&&(o(w),w=0),w=n((function(){Q()}),f),f=k(Math.min(16*u,2*f)),t.readyState=x;var r=new C("error",{error:e});t.dispatchEvent(r),j(t,t.onerror,r),null!=e&&console.error(e)}},J=function(){_=R,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),t.readyState=R},Q=function(){if(w=0,_===I){p=!1,d=0,w=n((function(){Q()}),c),_=x,S="",H="",A=h,W="",z=0,K=0,V=M;
716
716
  // https://bugzilla.mozilla.org/show_bug.cgi?id=428916
717
717
  // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
718
718
  var r=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==h){
719
719
  // Remove the lastEventId parameter if it's already part of the request URL.
720
720
  var o=e.indexOf("?");r=-1===o?e:e.slice(0,o+1)+e.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===l?"":t})),
721
721
  // Append the current lastEventId to the request URL.
722
- r+=(-1===e.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=t.withCredentials,s={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);try{E=b.open(y,Y,Z,q,r,i,s)}catch(t){throw J(),t}}else if(p||null==E){var f=Math.max((p||Date.now())+c-Date.now(),1);p=!1,w=n((function(){Q()}),f)}else q(new Error("No activity within "+c+" milliseconds. "+(T===I?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};t.url=e,t.readyState=I,t.withCredentials=a,t.headers=g,t._close=J,Q()}(this,t,e)}var X=null!=h&&null!=f&&"body"in f.prototype;W.prototype=Object.create(S.prototype),W.prototype.CONNECTING=I,W.prototype.OPEN=x,W.prototype.CLOSED=R,W.prototype.close=function(){this._close()},W.CONNECTING=I,W.OPEN=x,W.CLOSED=R,W.prototype.withCredentials=void 0;var V,z=l;null==i||null!=l&&"withCredentials"in l.prototype||(
722
+ r+=(-1===e.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=t.withCredentials,s={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);try{E=b.open(y,Y,Z,q,r,i,s)}catch(t){throw J(),t}}else if(p||null==E){var f=Math.max((p||Date.now())+c-Date.now(),1);p=!1,w=n((function(){Q()}),f)}else q(new Error("No activity within "+c+" milliseconds. "+(_===x?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};t.url=e,t.readyState=x,t.withCredentials=a,t.headers=g,t._close=J,Q()}(this,t,e)}var X=null!=h&&null!=f&&"body"in f.prototype;W.prototype=Object.create(S.prototype),W.prototype.CONNECTING=x,W.prototype.OPEN=O,W.prototype.CLOSED=R,W.prototype.close=function(){this._close()},W.CONNECTING=x,W.OPEN=O,W.CLOSED=R,W.prototype.withCredentials=void 0;var V,z=l;null==i||null!=l&&"withCredentials"in l.prototype||(
723
723
  // Why replace a native EventSource ?
724
724
  // https://bugzilla.mozilla.org/show_bug.cgi?id=444328
725
725
  // https://bugzilla.mozilla.org/show_bug.cgi?id=831392
726
726
  // https://code.google.com/p/chromium/issues/detail?id=260144
727
727
  // https://code.google.com/p/chromium/issues/detail?id=225654
728
728
  // ...
729
- z=W),V=function(t){t.EventSourcePolyfill=W,t.NativeEventSource=l,t.EventSource=z}(e),void 0!==V&&(t.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ht:globalThis)})),In="data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e";function xn(t,e){Ur(t,e)}const Rn={en:{bets:"bets"},tr:{bets:"bets"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"}};
730
- /* ../general-icon-progress-bar/src/GeneralIconProgressBar.svelte generated by Svelte v3.59.2 */function Nn(e){let r,n,o,i,s;return{c(){r=d("div"),n=d("div"),o=d("span"),i=m(/*progressText*/e[3]),this.c=t,v(o,"part","progressText"),v(n,"class",s="stepBar "+/*curTatus*/e[4]),v(n,"part","stepBar"),v(r,"class","general-icon-progress-bar"),v(r,"part","totalBar")},m(t,s){f(t,r,s),h(r,n),h(n,o),h(o,i),
729
+ z=W),V=function(t){t.EventSourcePolyfill=W,t.NativeEventSource=l,t.EventSource=z}(e),void 0!==V&&(t.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ht:globalThis)})),Pn="data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e";function Cn(t,e){Mr(t,e)}const In={en:{bets:"bets"},tr:{bets:"bets"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"}};
730
+ /* ../general-icon-progress-bar/src/GeneralIconProgressBar.svelte generated by Svelte v3.59.2 */function xn(e){let r,n,o,i,s;return{c(){r=d("div"),n=d("div"),o=d("span"),i=m(/*progressText*/e[3]),this.c=t,v(o,"part","progressText"),v(n,"class",s="stepBar "+/*curTatus*/e[4]),v(n,"part","stepBar"),v(r,"class","general-icon-progress-bar"),v(r,"part","totalBar")},m(t,s){f(t,r,s),h(r,n),h(n,o),h(o,i),
731
731
  /*span_binding*/e[13](o),
732
732
  /*div0_binding*/e[14](n),
733
733
  /*div1_binding*/e[15](r)},p(t,[e]){/*progressText*/8&e&&w(i,/*progressText*/t[3]),/*curTatus*/16&e&&s!==(s="stepBar "+/*curTatus*/t[4])&&v(n,"class",s)},i:t,o:t,d(t){t&&p(r)
734
734
  /*span_binding*/,e[13](null),
735
735
  /*div0_binding*/e[14](null),
736
- /*div1_binding*/e[15](null)}}}function Mn(t,e,r){let n;c(t,Ln,(t=>r(20,n=t)));let o,i,s,a,l,u,h,{currentstep:f=0}=e,{total:p=1}=e,{showaspercent:d}=e,{lang:g="en"}=e,{status:m}=e,{translationurl:y=""}=e,{progressfractiondigit:b=1}=e,{triggerreset:v}=e,E="0px",w="active";!function({withLocale:t,translations:e}){ln.subscribe((r=>{null==r&&(Mr.set(e),ln.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
736
+ /*div1_binding*/e[15](null)}}}function On(t,e,r){let n;c(t,Sn,(t=>r(20,n=t)));let o,i,s,a,l,u,h,{currentstep:f=0}=e,{total:p=1}=e,{showaspercent:d}=e,{lang:g="en"}=e,{status:m}=e,{translationurl:y=""}=e,{progressfractiondigit:b=1}=e,{triggerreset:v}=e,E="0px",w="active";!function({withLocale:t,translations:e}){on.subscribe((r=>{null==r&&(Or.set(e),on.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
737
737
  /*dictionary.set(translations);
738
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Rn).forEach((t=>{xn(t,Rn[t])}));const _=()=>{var t;t=g,ln.set(t)};return t.$$set=t=>{"currentstep"in t&&r(5,f=t.currentstep),"total"in t&&r(6,p=t.total),"showaspercent"in t&&r(7,d=t.showaspercent),"lang"in t&&r(8,g=t.lang),"status"in t&&r(9,m=t.status),"translationurl"in t&&r(10,y=t.translationurl),"progressfractiondigit"in t&&r(11,b=t.progressfractiondigit),"triggerreset"in t&&r(12,v=t.triggerreset)},t.$$.update=()=>{/*triggerreset, total*/4160&t.$$.dirty&&v&&p&&setTimeout((()=>{(()=>{let t=(f/p*100).toFixed(b);setTimeout((()=>{r(3,a=d||"true"===d?`${t}%`:`${f}/${p} ${n("bets")}`)}),a?573:0),0==t||100==t?(u="0px",h="0px",E=100==t?"3px":"0px"):(u=`${o.offsetHeight}px`,l=u,h=o.offsetHeight/3+"px",E="0px"),i.style.setProperty("--parentElementHeight",l),s.style.setProperty("--currentStep",t+"%"),s.style.setProperty("--triangleHeight",u),s.style.setProperty("--halfOfTriangleHeight",h),s.style.setProperty("--stepBarBorderRadius",E)})()})),/*lang*/256&t.$$.dirty&&g&&_(),/*status*/512&t.$$.dirty&&m&&r(4,w="active"==m?"":"inactive"),/*translationurl*/1024&t.$$.dirty&&y&&fetch(y).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{xn(e,t[e])}))})).catch((t=>{console.log(t)}))},[o,i,s,a,w,f,p,d,g,m,y,b,v,function(t){A[t?"unshift":"push"]((()=>{i=t,r(1,i)}))},function(t){A[t?"unshift":"push"]((()=>{s=t,r(2,s)}))},function(t){A[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",class extends F{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}',this.shadowRoot.appendChild(e),U(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Mn,Nn,i,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},null),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["currentstep","total","showaspercent","lang","status","translationurl","progressfractiondigit","triggerreset"]}get currentstep(){return this.$$.ctx[5]}set currentstep(t){this.$$set({currentstep:t}),R()}get total(){return this.$$.ctx[6]}set total(t){this.$$set({total:t}),R()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(t){this.$$set({showaspercent:t}),R()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),R()}get status(){return this.$$.ctx[9]}set status(t){this.$$set({status:t}),R()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(t){this.$$set({triggerreset:t}),R()}});
738
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(In).forEach((t=>{Cn(t,In[t])}));const T=()=>{var t;t=g,on.set(t)};return t.$$set=t=>{"currentstep"in t&&r(5,f=t.currentstep),"total"in t&&r(6,p=t.total),"showaspercent"in t&&r(7,d=t.showaspercent),"lang"in t&&r(8,g=t.lang),"status"in t&&r(9,m=t.status),"translationurl"in t&&r(10,y=t.translationurl),"progressfractiondigit"in t&&r(11,b=t.progressfractiondigit),"triggerreset"in t&&r(12,v=t.triggerreset)},t.$$.update=()=>{/*triggerreset, total*/4160&t.$$.dirty&&v&&p&&setTimeout((()=>{(()=>{let t=(f/p*100).toFixed(b);setTimeout((()=>{r(3,a=d||"true"===d?`${t}%`:`${f}/${p} ${n("bets")}`)}),a?573:0),0==t||100==t?(u="0px",h="0px",E=100==t?"3px":"0px"):(u=`${o.offsetHeight}px`,l=u,h=o.offsetHeight/3+"px",E="0px"),i.style.setProperty("--parentElementHeight",l),s.style.setProperty("--currentStep",t+"%"),s.style.setProperty("--triangleHeight",u),s.style.setProperty("--halfOfTriangleHeight",h),s.style.setProperty("--stepBarBorderRadius",E)})()})),/*lang*/256&t.$$.dirty&&g&&T(),/*status*/512&t.$$.dirty&&m&&r(4,w="active"==m?"":"inactive"),/*translationurl*/1024&t.$$.dirty&&y&&fetch(y).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Cn(e,t[e])}))})).catch((t=>{console.log(t)}))},[o,i,s,a,w,f,p,d,g,m,y,b,v,function(t){A[t?"unshift":"push"]((()=>{i=t,r(1,i)}))},function(t){A[t?"unshift":"push"]((()=>{s=t,r(2,s)}))},function(t){A[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",class extends F{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}',this.shadowRoot.appendChild(e),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},On,xn,i,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},null),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["currentstep","total","showaspercent","lang","status","translationurl","progressfractiondigit","triggerreset"]}get currentstep(){return this.$$.ctx[5]}set currentstep(t){this.$$set({currentstep:t}),R()}get total(){return this.$$.ctx[6]}set total(t){this.$$set({total:t}),R()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(t){this.$$set({showaspercent:t}),R()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),R()}get status(){return this.$$.ctx[9]}set status(t){this.$$set({status:t}),R()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(t){this.$$set({triggerreset:t}),R()}});
739
739
  /* src/CasinoWageringBonusSliderController.svelte generated by Svelte v3.59.2 */
740
- function Dn(t,e,r){const n=t.slice();return n[60]=e[r],n[62]=r,n}
740
+ function Rn(t,e,r){const n=t.slice();return n[60]=e[r],n[62]=r,n}
741
741
  // (369:55)
742
- function $n(t){let e,r,n=/*$_*/t[10]("wageringSlider.noWageringMsg")+"";return{c(){e=d("div"),r=m(n),v(e,"class","NoWageringMsg")},m(t,n){f(t,e,n),h(e,r)},p(t,e){/*$_*/1024&e[0]&&n!==(n=/*$_*/t[10]("wageringSlider.noWageringMsg")+"")&&w(r,n)},d(t){t&&p(e)}}}
742
+ function Nn(t){let e,r,n=/*$_*/t[10]("wageringSlider.noWageringMsg")+"";return{c(){e=d("div"),r=m(n),v(e,"class","NoWageringMsg")},m(t,n){f(t,e,n),h(e,r)},p(t,e){/*$_*/1024&e[0]&&n!==(n=/*$_*/t[10]("wageringSlider.noWageringMsg")+"")&&w(r,n)},d(t){t&&p(e)}}}
743
743
  // (334:4) {#if wageringList && wageringList.length > 0}
744
- function Un(t){let e,r,o,i,s,a,l,u,c,E,_,T,B,S,A,H,L,P=/*$_*/t[10]("wageringSlider.title")+"",C=/*wageringList*/t[2],O=[];for(let e=0;e<C.length;e+=1)O[e]=Fn(Dn(t,C,e));return{c(){e=d("div"),r=g("svg"),o=g("path"),s=y(),a=d("div"),l=d("div"),u=m(P),c=y(),E=d("div");for(let t=0;t<O.length;t+=1)O[t].c();_=y(),T=d("div"),B=g("svg"),S=g("path"),v(o,"d","M3 7L1 4L3 1"),v(o,"stroke","currentColor"),v(o,"stroke-linecap","round"),v(o,"stroke-linejoin","round"),v(r,"part","LeftArrowSvg"),v(r,"width","6"),v(r,"height","14"),v(r,"viewBox","0 0 4 8"),v(r,"fill","none"),v(r,"xmlns","http://www.w3.org/2000/svg"),v(e,"class",i="LeftArrow "+(/*isFirst*/t[5]?"Disabled":"")),v(e,"part","LeftArrow"),v(l,"class","Title Top"),v(l,"part","WageringBonusTitle"),v(E,"class","WagerList"),v(E,"part","WageringBonusList"),v(a,"class","SliderCenter"),v(a,"part","WageringBonusContent"),v(S,"d","M1 1L3 4L1 7"),v(S,"stroke","currentColor"),v(S,"stroke-linecap","round"),v(S,"stroke-linejoin","round"),v(B,"width","6"),v(B,"height","14"),v(B,"viewBox","0 0 4 8"),v(B,"fill","none"),v(B,"xmlns","http://www.w3.org/2000/svg"),v(T,"part","RightRow"),v(T,"class",A="RightArrow "+(/*isLast*/t[6]?"Disabled":""))},m(n,i){f(n,e,i),h(e,r),h(r,o),f(n,s,i),f(n,a,i),h(a,l),h(l,u),h(a,c),h(a,E);for(let t=0;t<O.length;t+=1)O[t]&&O[t].m(E,null);f(n,_,i),f(n,T,i),h(T,B),h(B,S),H||(L=[b(e,"click",/*click_handler_1*/t[25]),b(e,"mouseenter",/*mouseenter_handler*/t[26]),b(e,"mouseleave",/*mouseleave_handler*/t[27]),b(T,"click",/*click_handler_3*/t[29])],H=!0)},p(t,r){if(/*isFirst*/32&r[0]&&i!==(i="LeftArrow "+(/*isFirst*/t[5]?"Disabled":""))&&v(e,"class",i),/*$_*/1024&r[0]&&P!==(P=/*$_*/t[10]("wageringSlider.title")+"")&&w(u,P),/*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/16909&r[0]){let e;for(C=/*wageringList*/t[2],e=0;e<C.length;e+=1){const n=Dn(t,C,e);O[e]?O[e].p(n,r):(O[e]=Fn(n),O[e].c(),O[e].m(E,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=C.length}/*isLast*/64&r[0]&&A!==(A="RightArrow "+(/*isLast*/t[6]?"Disabled":""))&&v(T,"class",A)},d(t){t&&p(e),t&&p(s),t&&p(a),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(O,t),t&&p(_),t&&p(T),H=!1,n(L)}}}
744
+ function Mn(t){let e,r,o,i,s,a,l,u,c,E,T,_,B,S,A,H,L,P=/*$_*/t[10]("wageringSlider.title")+"",C=/*wageringList*/t[2],I=[];for(let e=0;e<C.length;e+=1)I[e]=Dn(Rn(t,C,e));return{c(){e=d("div"),r=g("svg"),o=g("path"),s=y(),a=d("div"),l=d("div"),u=m(P),c=y(),E=d("div");for(let t=0;t<I.length;t+=1)I[t].c();T=y(),_=d("div"),B=g("svg"),S=g("path"),v(o,"d","M3 7L1 4L3 1"),v(o,"stroke","currentColor"),v(o,"stroke-linecap","round"),v(o,"stroke-linejoin","round"),v(r,"part","LeftArrowSvg"),v(r,"width","6"),v(r,"height","14"),v(r,"viewBox","0 0 4 8"),v(r,"fill","none"),v(r,"xmlns","http://www.w3.org/2000/svg"),v(e,"class",i="LeftArrow "+(/*isFirst*/t[5]?"Disabled":"")),v(e,"part","LeftArrow"),v(l,"class","Title Top"),v(l,"part","WageringBonusTitle"),v(E,"class","WagerList"),v(E,"part","WageringBonusList"),v(a,"class","SliderCenter"),v(a,"part","WageringBonusContent"),v(S,"d","M1 1L3 4L1 7"),v(S,"stroke","currentColor"),v(S,"stroke-linecap","round"),v(S,"stroke-linejoin","round"),v(B,"width","6"),v(B,"height","14"),v(B,"viewBox","0 0 4 8"),v(B,"fill","none"),v(B,"xmlns","http://www.w3.org/2000/svg"),v(_,"part","RightRow"),v(_,"class",A="RightArrow "+(/*isLast*/t[6]?"Disabled":""))},m(n,i){f(n,e,i),h(e,r),h(r,o),f(n,s,i),f(n,a,i),h(a,l),h(l,u),h(a,c),h(a,E);for(let t=0;t<I.length;t+=1)I[t]&&I[t].m(E,null);f(n,T,i),f(n,_,i),h(_,B),h(B,S),H||(L=[b(e,"click",/*click_handler_1*/t[25]),b(e,"mouseenter",/*mouseenter_handler*/t[26]),b(e,"mouseleave",/*mouseleave_handler*/t[27]),b(_,"click",/*click_handler_3*/t[29])],H=!0)},p(t,r){if(/*isFirst*/32&r[0]&&i!==(i="LeftArrow "+(/*isFirst*/t[5]?"Disabled":""))&&v(e,"class",i),/*$_*/1024&r[0]&&P!==(P=/*$_*/t[10]("wageringSlider.title")+"")&&w(u,P),/*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/16909&r[0]){let e;for(C=/*wageringList*/t[2],e=0;e<C.length;e+=1){const n=Rn(t,C,e);I[e]?I[e].p(n,r):(I[e]=Dn(n),I[e].c(),I[e].m(E,null))}for(;e<I.length;e+=1)I[e].d(1);I.length=C.length}/*isLast*/64&r[0]&&A!==(A="RightArrow "+(/*isLast*/t[6]?"Disabled":""))&&v(_,"class",A)},d(t){t&&p(e),t&&p(s),t&&p(a),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(I,t),t&&p(T),t&&p(_),H=!1,n(L)}}}
745
745
  // (344:8) {#each wageringList as wagerInfo, index}
746
- function Fn(t){let e,r,n,o,i,s,a,u,c,g,_,T,B,S,A,H,L,P,C,O,I=/*wagerInfo*/t[60].title+"";function x(){/*click_handler_2*/
747
- return t[28](/*wagerInfo*/t[60])}return{c(){var h,f,p,b;e=d("div"),r=d("div"),n=d("div"),o=d("img"),s=y(),a=d("div"),u=m(I),c=y(),g=d("div"),_=d("general-icon-progress-bar"),L=y(),v(o,"alt","crown"),v(o,"part","Icon"),v(o,"class","MiniIcon"),l(o.src,i=In)||v(o,"src",i),v(n,"class","trophy"),v(a,"class","gameInfo"),v(a,"part","WageringBonusTitleRow Title"),v(r,"class","bonusName"),h=r,f="display",null==(p="table")?h.style.removeProperty(f):h.style.setProperty(f,p,b?"important":""),v(r,"part","WageringBonusTitleRow"),E(_,"currentstep",T=/*wagerInfo*/t[60].currentStep),E(_,"status",B=/*wagerInfo*/t[60].status),E(_,"triggerreset",S=/*wagerInfo*/t[60].triggerreset),E(_,"total",A=/*wagerInfo*/t[60].levelIncrement),E(_,"progressfractiondigit",/*progressfractiondigit*/t[0]),E(_,"showaspercent",H=/*wagerInfo*/"money"==t[60].type),E(_,"lang",""),v(g,"class","ProgressBar bottom"),v(g,"part","ProgressBar"),v(e,"class",P="WageringBonusInfo "+(/*currentWagerIdx*/t[3]!=/*index*/t[62]?/*hiddenDivClass*/t[9]:"shownDiv")),v(e,"part","WageringBonusInfo")},m(t,i){f(t,e,i),h(e,r),h(r,n),h(n,o),h(r,s),h(r,a),h(a,u),h(e,c),h(e,g),h(g,_),h(e,L),C||(O=b(a,"click",x),C=!0)},p(r,n){t=r,/*wageringList*/4&n[0]&&I!==(I=/*wagerInfo*/t[60].title+"")&&w(u,I),/*wageringList*/4&n[0]&&T!==(T=/*wagerInfo*/t[60].currentStep)&&E(_,"currentstep",T),/*wageringList*/4&n[0]&&B!==(B=/*wagerInfo*/t[60].status)&&E(_,"status",B),/*wageringList*/4&n[0]&&S!==(S=/*wagerInfo*/t[60].triggerreset)&&E(_,"triggerreset",S),/*wageringList*/4&n[0]&&A!==(A=/*wagerInfo*/t[60].levelIncrement)&&E(_,"total",A),/*progressfractiondigit*/1&n[0]&&E(_,"progressfractiondigit",/*progressfractiondigit*/t[0]),/*wageringList*/4&n[0]&&H!==(H=/*wagerInfo*/"money"==t[60].type)&&E(_,"showaspercent",H),/*currentWagerIdx, hiddenDivClass*/520&n[0]&&P!==(P="WageringBonusInfo "+(/*currentWagerIdx*/t[3]!=/*index*/t[62]?/*hiddenDivClass*/t[9]:"shownDiv"))&&v(e,"class",P)},d(t){t&&p(e),C=!1,O()}}}function Gn(e){let r,o,i,s,a,u,c,g,m,E,w,_,T,B,S;function A(t,e){/*wageringList*/
748
- return t[2]&&/*wageringList*/t[2].length>0?Un:/*wageringList*/t[2]&&/*wageringList*/0==t[2].length?$n:void 0}let H=A(e),L=H&&H(e);return{c(){r=d("div"),o=d("div"),i=d("div"),i.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',s=y(),L&&L.c(),u=y(),c=d("section"),g=d("div"),m=d("img"),w=y(),_=d("div"),_.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',this.c=t,v(i,"class","hideButton"),v(i,"part","HideWidgetButton"),v(o,"part","SliderWrapper"),v(o,"class",a="SliderWrapper "+(/*isIconMode*/e[8]?"HiddenWidget":"ShowWidget")),v(m,"alt","crown"),v(m,"part","Icon"),v(m,"class","MiniIcon"),l(m.src,E=In)||v(m,"src",E),v(g,"class","svg"),v(g,"part","AnimatorIconWrapper"),v(_,"class","restoreButton"),v(_,"part","RestoreButton"),v(c,"id","animator"),v(c,"part","Animator"),v(c,"class",T="SliderIcon "+(/*isIconMode*/e[8]?"ShowWidget":"HiddenWidget")),v(r,"class","WageringBonusWrapper"),v(r,"part","WageringBonusWrapper")},m(t,n){f(t,r,n),h(r,o),h(o,i),h(o,s),L&&L.m(o,null)
749
- /*div1_binding*/,e[30](o),h(r,u),h(r,c),h(c,g),h(g,m),h(c,w),h(c,_),
746
+ function Dn(t){let e,r,n,o,i,s,a,u,c,g,T,_,B,S,A,H,L,P,C,I,x=/*wagerInfo*/t[60].title+"";function O(){/*click_handler_2*/
747
+ return t[28](/*wagerInfo*/t[60])}return{c(){var h,f,p,b;e=d("div"),r=d("div"),n=d("div"),o=d("img"),s=y(),a=d("div"),u=m(x),c=y(),g=d("div"),T=d("general-icon-progress-bar"),L=y(),v(o,"alt","crown"),v(o,"part","Icon"),v(o,"class","MiniIcon"),l(o.src,i=Pn)||v(o,"src",i),v(n,"class","trophy"),v(a,"class","gameInfo"),v(a,"part","WageringBonusTitleRow Title"),v(r,"class","bonusName"),h=r,f="display",null==(p="table")?h.style.removeProperty(f):h.style.setProperty(f,p,b?"important":""),v(r,"part","WageringBonusTitleRow"),E(T,"currentstep",_=/*wagerInfo*/t[60].currentStep),E(T,"status",B=/*wagerInfo*/t[60].status),E(T,"triggerreset",S=/*wagerInfo*/t[60].triggerreset),E(T,"total",A=/*wagerInfo*/t[60].levelIncrement),E(T,"progressfractiondigit",/*progressfractiondigit*/t[0]),E(T,"showaspercent",H=/*wagerInfo*/"money"==t[60].type),E(T,"lang",""),v(g,"class","ProgressBar bottom"),v(g,"part","ProgressBar"),v(e,"class",P="WageringBonusInfo "+(/*currentWagerIdx*/t[3]!=/*index*/t[62]?/*hiddenDivClass*/t[9]:"shownDiv")),v(e,"part","WageringBonusInfo")},m(t,i){f(t,e,i),h(e,r),h(r,n),h(n,o),h(r,s),h(r,a),h(a,u),h(e,c),h(e,g),h(g,T),h(e,L),C||(I=b(a,"click",O),C=!0)},p(r,n){t=r,/*wageringList*/4&n[0]&&x!==(x=/*wagerInfo*/t[60].title+"")&&w(u,x),/*wageringList*/4&n[0]&&_!==(_=/*wagerInfo*/t[60].currentStep)&&E(T,"currentstep",_),/*wageringList*/4&n[0]&&B!==(B=/*wagerInfo*/t[60].status)&&E(T,"status",B),/*wageringList*/4&n[0]&&S!==(S=/*wagerInfo*/t[60].triggerreset)&&E(T,"triggerreset",S),/*wageringList*/4&n[0]&&A!==(A=/*wagerInfo*/t[60].levelIncrement)&&E(T,"total",A),/*progressfractiondigit*/1&n[0]&&E(T,"progressfractiondigit",/*progressfractiondigit*/t[0]),/*wageringList*/4&n[0]&&H!==(H=/*wagerInfo*/"money"==t[60].type)&&E(T,"showaspercent",H),/*currentWagerIdx, hiddenDivClass*/520&n[0]&&P!==(P="WageringBonusInfo "+(/*currentWagerIdx*/t[3]!=/*index*/t[62]?/*hiddenDivClass*/t[9]:"shownDiv"))&&v(e,"class",P)},d(t){t&&p(e),C=!1,I()}}}function $n(e){let r,o,i,s,a,u,c,g,m,E,w,T,_,B,S;function A(t,e){/*wageringList*/
748
+ return t[2]&&/*wageringList*/t[2].length>0?Mn:/*wageringList*/t[2]&&/*wageringList*/0==t[2].length?Nn:void 0}let H=A(e),L=H&&H(e);return{c(){r=d("div"),o=d("div"),i=d("div"),i.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',s=y(),L&&L.c(),u=y(),c=d("section"),g=d("div"),m=d("img"),w=y(),T=d("div"),T.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',this.c=t,v(i,"class","hideButton"),v(i,"part","HideWidgetButton"),v(o,"part","SliderWrapper"),v(o,"class",a="SliderWrapper "+(/*isIconMode*/e[8]?"HiddenWidget":"ShowWidget")),v(m,"alt","crown"),v(m,"part","Icon"),v(m,"class","MiniIcon"),l(m.src,E=Pn)||v(m,"src",E),v(g,"class","svg"),v(g,"part","AnimatorIconWrapper"),v(T,"class","restoreButton"),v(T,"part","RestoreButton"),v(c,"id","animator"),v(c,"part","Animator"),v(c,"class",_="SliderIcon "+(/*isIconMode*/e[8]?"ShowWidget":"HiddenWidget")),v(r,"class","WageringBonusWrapper"),v(r,"part","WageringBonusWrapper")},m(t,n){f(t,r,n),h(r,o),h(o,i),h(o,s),L&&L.m(o,null)
749
+ /*div1_binding*/,e[30](o),h(r,u),h(r,c),h(c,g),h(g,m),h(c,w),h(c,T),
750
750
  /*section_binding*/e[31](c),
751
- /*div4_binding*/e[33](r),B||(S=[b(i,"click",/*click_handler*/e[24]),b(c,"click",/*click_handler_4*/e[32])],B=!0)},p(t,e){H===(H=A(t))&&L?L.p(t,e):(L&&L.d(1),L=H&&H(t),L&&(L.c(),L.m(o,null))),/*isIconMode*/256&e[0]&&a!==(a="SliderWrapper "+(/*isIconMode*/t[8]?"HiddenWidget":"ShowWidget"))&&v(o,"class",a),/*isIconMode*/256&e[0]&&T!==(T="SliderIcon "+(/*isIconMode*/t[8]?"ShowWidget":"HiddenWidget"))&&v(c,"class",T)},i:t,o:t,d(t){t&&p(r),L&&L.d()
751
+ /*div4_binding*/e[33](r),B||(S=[b(i,"click",/*click_handler*/e[24]),b(c,"click",/*click_handler_4*/e[32])],B=!0)},p(t,e){H===(H=A(t))&&L?L.p(t,e):(L&&L.d(1),L=H&&H(t),L&&(L.c(),L.m(o,null))),/*isIconMode*/256&e[0]&&a!==(a="SliderWrapper "+(/*isIconMode*/t[8]?"HiddenWidget":"ShowWidget"))&&v(o,"class",a),/*isIconMode*/256&e[0]&&_!==(_="SliderIcon "+(/*isIconMode*/t[8]?"ShowWidget":"HiddenWidget"))&&v(c,"class",_)},i:t,o:t,d(t){t&&p(r),L&&L.d()
752
752
  /*div1_binding*/,e[30](null),
753
753
  /*section_binding*/e[31](null),
754
- /*div4_binding*/e[33](null),B=!1,n(S)}}}function kn(t,e,r){let n;c(t,Ln,(t=>r(10,n=t)));let o,i,s,a,l,u,{endpoint:h}=e,{session:f}=e,{lang:p="en"}=e,{numberofrecords:d="5"}=e,{looptime:g="5"}=e,{translationurl:m=""}=e,{progressfractiondigit:y=1}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,E=window.navigator.userAgent,w=!0,_=!1,T=0,S=null,H=null,L=!1,P="Hidden",C={};!function({withLocale:t,translations:e}){ln.subscribe((r=>{null==r&&(Mr.set(e),ln.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
754
+ /*div4_binding*/e[33](null),B=!1,n(S)}}}function Un(t,e,r){let n;c(t,Sn,(t=>r(10,n=t)));let o,i,s,a,l,u,{endpoint:h}=e,{session:f}=e,{lang:p="en"}=e,{numberofrecords:d="5"}=e,{looptime:g="5"}=e,{translationurl:m=""}=e,{progressfractiondigit:y=1}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,E=window.navigator.userAgent,w=!0,T=!1,_=0,S=null,H=null,L=!1,P="Hidden",C={};!function({withLocale:t,translations:e}){on.subscribe((r=>{null==r&&(Or.set(e),on.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
755
755
  /*dictionary.set(translations);
756
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Cn).forEach((t=>{Pn(t,Cn[t])}));const O=()=>{var t;t=p,ln.set(t)},I=t=>{let e=0;for(let r of t.levels||[]){e+=r.maxRepeats||1}let r=t.wageringProgress;return{maxLevel:e,id:t.id,bonusWalletID:t.bonusWalletID,levelIncrement:r.currentLevelIncrement,gap:r.gap,currentStep:r.currentLevelIncrement-r.gap,title:t.name,description:t.description,type:t.wageringType,status:t.status,triggerreset:t.bonusWalletID}},x=()=>{"0"!=g&&(clearInterval(i),i=setInterval((()=>{if(s){
756
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Hn).forEach((t=>{An(t,Hn[t])}));const I=()=>{var t;t=p,on.set(t)},x=t=>{let e=0;for(let r of t.levels||[]){e+=r.maxRepeats||1}let r=t.wageringProgress;return{maxLevel:e,id:t.id,bonusWalletID:t.bonusWalletID,levelIncrement:r.currentLevelIncrement,gap:r.gap,currentStep:r.currentLevelIncrement-r.gap,title:t.name,description:t.description,type:t.wageringType,status:t.status,triggerreset:t.bonusWalletID}},O=()=>{"0"!=g&&(clearInterval(i),i=setInterval((()=>{if(s){
757
757
  //slideAuto();
758
- r(9,P="hiddenDiv");let t=T+1;if(t>=s.length)return void M();r(3,T=t),R(T)}}),1e3*Number(g)))},R=t=>{if(r(9,P="hiddenDiv"),t>0&&_||t<0&&w)return;x(),l.style.setProperty("--transformFromValue",t>0?"100%":"-100%"),l.style.setProperty("--transformToValue",t>0?"-100%":"100%");let e=T+t;e=e<0?0:e,e=e==s.length?s.length-1:e,r(3,T=e)},N=()=>{r(8,L=!1),r(3,T=0),x()},M=()=>{r(8,L=!0),clearInterval(i),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},D=t=>{s.forEach((e=>{let r=t[e.bonusWalletID];if(!r)return;const{maxIdObj:n,maxId:o}=(t=>{
758
+ r(9,P="hiddenDiv");let t=_+1;if(t>=s.length)return void M();r(3,_=t),R(_)}}),1e3*Number(g)))},R=t=>{if(r(9,P="hiddenDiv"),t>0&&T||t<0&&w)return;O(),l.style.setProperty("--transformFromValue",t>0?"100%":"-100%"),l.style.setProperty("--transformToValue",t>0?"-100%":"100%");let e=_+t;e=e<0?0:e,e=e==s.length?s.length-1:e,r(3,_=e)},N=()=>{r(8,L=!1),r(3,_=0),O()},M=()=>{r(8,L=!0),clearInterval(i),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},D=t=>{s.forEach((e=>{let r=t[e.bonusWalletID];if(!r)return;const{maxIdObj:n,maxId:o}=(t=>{
759
759
  // @ts-ignore
760
- const e=window.BigInt;if(!t||null==t||0===t.length)return;let r=e(t[0].id);return{maxIdObj:t.reduce(((t,n)=>{const o=e(n.id);return o>r?(r=o,n):t}),t[0]),maxId:r.toString()}})(r);C[e.id]=o;let i=n;e.status=i.status,0==i.levelIncrement&&(i.levelIncrement=1,i.gap),e.gap=i.gap,e.levelIncrement=i.levelIncrement,e.currentStep=e.levelIncrement-e.gap,e.triggerreset+=1})),r(2,s)},$=t=>{if(!t.data)return;let e=t.data;if(e)try{let t=JSON.parse(e);if(!t||!t.items)return;"WageringProgressUpdate"===t.messageType&&D(t.items)}catch(t){console.log(t)}},U=()=>{a&&(a.removeEventListener("message",$),a.close())},F=()=>{if((t=>{if(!t||"false"==t||"undefined"==t)return!0})(f))return;U();let t=`${h}/v1/bonus/wagering/updates?walletFilter=${((t,e)=>JSON.stringify(t.map((t=>({bonusWalletID:t.id,progressID:e[t.id]||0})))))(s,C)}&XSessionId=${f}`;a=new On.EventSourcePolyfill(t,{headers:{accept:"text/event-stream"}}),void 0!==a&&a.addEventListener("message",$),a.onerror=()=>F()},G=t=>{if(!h||!f)return;let e=new URL(`${t}/v1/bonus/granted`),n=new Headers;e.searchParams.append("language",p),e.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(E)),e.searchParams.append("status","active"),e.searchParams.append("type","wagering"),e.searchParams.append("pagination",`limit=${d},offset=0`),f&&n.append("X-SessionID",f),fetch(e,{method:"GET",headers:n}).then((t=>t.json())).then((t=>{if(e.searchParams.toString(),r(2,s=[]),t.items&&(t=>{let e=[];for(let r of t.items)e.push(I(r));r(3,T=0),r(2,s=e)})(t),t.errorMessage&&console.error(t.errorMessage),!s||0==s.length)return r(2,s=[...s]),void U();F()}))},k=t=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:t},window.location.href)},j=t=>{parseInt(g)>0&&(t?clearInterval(i):x())},W=t=>{const e=(t=>t.touches||t.originalEvent.touches)(t)[0];S=e.clientX,H=e.clientY},X=t=>{if(!S||!H)return;let e=t.touches[0].clientX,r=t.touches[0].clientY,n=S-e,o=H-r;Math.abs(n)>Math.abs(o)&&R(n>0?1:-1),S=null,H=null},V=t=>{t.data&&t.data.type}//TODO
760
+ const e=window.BigInt;if(!t||null==t||0===t.length)return;let r=e(t[0].id);return{maxIdObj:t.reduce(((t,n)=>{const o=e(n.id);return o>r?(r=o,n):t}),t[0]),maxId:r.toString()}})(r);C[e.id]=o;let i=n;e.status=i.status,0==i.levelIncrement&&(i.levelIncrement=1,i.gap),e.gap=i.gap,e.levelIncrement=i.levelIncrement,e.currentStep=e.levelIncrement-e.gap,e.triggerreset+=1})),r(2,s)},$=t=>{if(!t.data)return;let e=t.data;if(e)try{let t=JSON.parse(e);if(!t||!t.items)return;"WageringProgressUpdate"===t.messageType&&D(t.items)}catch(t){console.log(t)}},U=()=>{a&&(a.removeEventListener("message",$),a.close())},F=()=>{if((t=>{if(!t||"false"==t||"undefined"==t)return!0})(f))return;U();let t=`${h}/v1/bonus/wagering/updates?walletFilter=${((t,e)=>JSON.stringify(t.map((t=>({bonusWalletID:t.id,progressID:e[t.id]||0})))))(s,C)}&XSessionId=${f}`;a=new Ln.EventSourcePolyfill(t,{headers:{accept:"text/event-stream"}}),void 0!==a&&a.addEventListener("message",$),a.onerror=()=>F()},G=t=>{if(!h||!f)return;let e=new URL(`${t}/v1/bonus/granted`),n=new Headers;e.searchParams.append("language",p),e.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(E)),e.searchParams.append("status","active"),e.searchParams.append("type","wagering"),e.searchParams.append("pagination",`limit=${d},offset=0`),f&&n.append("X-SessionID",f),fetch(e,{method:"GET",headers:n}).then((t=>t.json())).then((t=>{if(e.searchParams.toString(),r(2,s=[]),t.items&&(t=>{let e=[];for(let r of t.items)e.push(x(r));r(3,_=0),r(2,s=e)})(t),t.errorMessage&&console.error(t.errorMessage),!s||0==s.length)return r(2,s=[...s]),void U();F()}))},k=t=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:t},window.location.href)},j=t=>{parseInt(g)>0&&(t?clearInterval(i):O())},W=t=>{const e=(t=>t.touches||t.originalEvent.touches)(t)[0];S=e.clientX,H=e.clientY},X=t=>{if(!S||!H)return;let e=t.touches[0].clientX,r=t.touches[0].clientY,n=S-e,o=H-r;Math.abs(n)>Math.abs(o)&&R(n>0?1:-1),S=null,H=null},V=t=>{t.data&&t.data.type}//TODO
761
761
  //getData(endpoint, 0, tournamentsShownNumber);
762
- B((()=>(x(),window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V,!1),l.removeEventListener("touchstart",W),l.removeEventListener("touchmove",X)})));return t.$$set=t=>{"endpoint"in t&&r(16,h=t.endpoint),"session"in t&&r(17,f=t.session),"lang"in t&&r(18,p=t.lang),"numberofrecords"in t&&r(19,d=t.numberofrecords),"looptime"in t&&r(20,g=t.looptime),"translationurl"in t&&r(21,m=t.translationurl),"progressfractiondigit"in t&&r(0,y=t.progressfractiondigit),"clientstyling"in t&&r(22,b=t.clientstyling),"clientstylingurl"in t&&r(23,v=t.clientstylingurl)},t.$$.update=()=>{/*customStylingContainer, clientstyling*/4194306&t.$$.dirty[0]&&o&&b&&((t,e)=>{let r=document.createElement("style");r.innerHTML=e,t.appendChild(r)})(o,b),/*customStylingContainer, clientstylingurl*/8388610&t.$$.dirty[0]&&o&&v&&((t,e)=>{let r=new URL(e),n=document.createElement("style");fetch(r.href).then((t=>t.text())).then((e=>{n.innerHTML=e,setTimeout((()=>{t.appendChild(n)}),1)}))})(o,v),/*lang, endpoint, session*/458752&t.$$.dirty[0]&&p&&h&&f&&G(h),/*lang*/262144&t.$$.dirty[0]&&p&&O(),/*wagerSlider*/16&t.$$.dirty[0]&&l&&(l.addEventListener("touchstart",W,{passive:!0}),l.addEventListener("touchmove",X,{passive:!0})),/*translationurl*/2097152&t.$$.dirty[0]&&m&&fetch(m).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Pn(e,t[e])}))})).catch((t=>{console.log(t)})),/*currentWagerIdx*/8&t.$$.dirty[0]&&r(5,w=0==T),/*wageringList, currentWagerIdx*/12&t.$$.dirty[0]&&r(6,_=!s||T==s.length-1)},[y,o,s,T,l,w,_,u,L,P,n,R,N,M,k,j,h,f,p,d,g,m,b,v,()=>{M()},()=>R(-1),()=>{j(!0)},()=>{j(!1)},t=>k(t.bonusWalletID),()=>R(1),function(t){A[t?"unshift":"push"]((()=>{l=t,r(4,l)}))},function(t){A[t?"unshift":"push"]((()=>{u=t,r(7,u)}))},()=>N(),function(t){A[t?"unshift":"push"]((()=>{o=t,r(1,o)}))}]}class jn extends F{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:#FF8364}.LeftArrow.Disabled,.RightArrow.Disabled{color:darkgrey}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:#FFD700;margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .bonusName{height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .bonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:#FFFFFF;vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:#FF8364;cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}",this.shadowRoot.appendChild(e),U(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},kn,Gn,i,{endpoint:16,session:17,lang:18,numberofrecords:19,looptime:20,translationurl:21,progressfractiondigit:0,clientstyling:22,clientstylingurl:23},null,[-1,-1,-1]),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","lang","numberofrecords","looptime","translationurl","progressfractiondigit","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),R()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),R()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),R()}get numberofrecords(){return this.$$.ctx[19]}set numberofrecords(t){this.$$set({numberofrecords:t}),R()}get looptime(){return this.$$.ctx[20]}set looptime(t){this.$$set({looptime:t}),R()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}}return!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",jn),jn}));
762
+ B((()=>(O(),window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V,!1),l.removeEventListener("touchstart",W),l.removeEventListener("touchmove",X)})));return t.$$set=t=>{"endpoint"in t&&r(16,h=t.endpoint),"session"in t&&r(17,f=t.session),"lang"in t&&r(18,p=t.lang),"numberofrecords"in t&&r(19,d=t.numberofrecords),"looptime"in t&&r(20,g=t.looptime),"translationurl"in t&&r(21,m=t.translationurl),"progressfractiondigit"in t&&r(0,y=t.progressfractiondigit),"clientstyling"in t&&r(22,b=t.clientstyling),"clientstylingurl"in t&&r(23,v=t.clientstylingurl)},t.$$.update=()=>{/*customStylingContainer, clientstyling*/4194306&t.$$.dirty[0]&&o&&b&&((t,e)=>{let r=document.createElement("style");r.innerHTML=e,t.appendChild(r)})(o,b),/*customStylingContainer, clientstylingurl*/8388610&t.$$.dirty[0]&&o&&v&&((t,e)=>{let r=new URL(e),n=document.createElement("style");fetch(r.href).then((t=>t.text())).then((e=>{n.innerHTML=e,setTimeout((()=>{t.appendChild(n)}),1)}))})(o,v),/*lang, endpoint, session*/458752&t.$$.dirty[0]&&p&&h&&f&&G(h),/*lang*/262144&t.$$.dirty[0]&&p&&I(),/*wagerSlider*/16&t.$$.dirty[0]&&l&&(l.addEventListener("touchstart",W,{passive:!0}),l.addEventListener("touchmove",X,{passive:!0})),/*translationurl*/2097152&t.$$.dirty[0]&&m&&fetch(m).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{An(e,t[e])}))})).catch((t=>{console.log(t)})),/*currentWagerIdx*/8&t.$$.dirty[0]&&r(5,w=0==_),/*wageringList, currentWagerIdx*/12&t.$$.dirty[0]&&r(6,T=!s||_==s.length-1)},[y,o,s,_,l,w,T,u,L,P,n,R,N,M,k,j,h,f,p,d,g,m,b,v,()=>{M()},()=>R(-1),()=>{j(!0)},()=>{j(!1)},t=>k(t.bonusWalletID),()=>R(1),function(t){A[t?"unshift":"push"]((()=>{l=t,r(4,l)}))},function(t){A[t?"unshift":"push"]((()=>{u=t,r(7,u)}))},()=>N(),function(t){A[t?"unshift":"push"]((()=>{o=t,r(1,o)}))}]}class Fn extends F{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:#FF8364}.LeftArrow.Disabled,.RightArrow.Disabled{color:darkgrey}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:#FFD700;margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .bonusName{height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .bonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:#FFFFFF;vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:#FF8364;cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}",this.shadowRoot.appendChild(e),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Un,$n,i,{endpoint:16,session:17,lang:18,numberofrecords:19,looptime:20,translationurl:21,progressfractiondigit:0,clientstyling:22,clientstylingurl:23},null,[-1,-1,-1]),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","lang","numberofrecords","looptime","translationurl","progressfractiondigit","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),R()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),R()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),R()}get numberofrecords(){return this.$$.ctx[19]}set numberofrecords(t){this.$$set({numberofrecords:t}),R()}get looptime(){return this.$$.ctx[20]}set looptime(t){this.$$set({looptime:t}),R()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}}return!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",Fn),Fn}));
763
763
  //# sourceMappingURL=casino-wagering-bonus-slider-controller.js.map