@everymatrix/casino-calendar 1.29.6 → 1.29.8

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,18 +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(){}const e=t=>t;function n(t){return t()}function r(){return Object.create(null)}function i(t){t.forEach(n)}function o(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a;function l(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}const c="undefined"!=typeof window;let u=c?()=>window.performance.now():()=>Date.now(),h=c?t=>requestAnimationFrame(t):t;const d=new Set;function p(t){d.forEach((e=>{e.c(t)||(d.delete(e),e.f())})),0!==d.size&&h(p)}
2
- /**
3
- * Creates a new task that runs on each raf frame
4
- * until it returns a falsy value or is aborted
5
- */function f(t,e){t.appendChild(e)}function y(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function m(t){const e=w("style");return function(t,e){f(t.head||t,e),e.sheet}(y(t),e),e.sheet}function g(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode&&t.parentNode.removeChild(t)}function v(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function w(t){return document.createElement(t)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function T(){return _(" ")}function x(){return _("")}function C(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function B(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function A(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:B(t,e,n)}function H(t,e){e=""+e,t.data!==e&&(t.data=e)}function S(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}
6
- // unfortunately this can't be a constant as that wouldn't be tree-shakeable
7
- // so we cache the result instead
8
- let P;function $(){if(void 0===P){P=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){P=!0}}return P}function L(t){const e={};for(const n of t)e[n.name]=n.value;return e}
9
- // we need to store the information for multiple documents because a Svelte application could also contain iframes
10
- // https://github.com/sveltejs/svelte/issues/3624
11
- const I=new Map;let M,O=0;
12
- // https://github.com/darkskyapp/string-hash/blob/master/index.js
13
- function R(t,e,n,r,i,o,s,a=0){const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*o(t);c+=100*t+`%{${s(r,1-r)}}\n`}const u=c+`100% {${s(n,1-n)}}\n}`,h=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${a}`,d=y(t),{stylesheet:p,rules:f}=I.get(d)||function(t,e){const n={stylesheet:m(e),rules:{}};return I.set(t,n),n}(d,t);f[h]||(f[h]=!0,p.insertRule(`@keyframes ${h} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${h} ${r}ms linear ${i}ms 1 both`,O+=1,h}function D(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),O-=i,O||h((()=>{O||(I.forEach((t=>{const{ownerNode:e}=t.stylesheet;
14
- // there is no ownerNode if it runs on jsdom.
15
- e&&b(e)})),I.clear())})))}function N(t){M=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 i(t){return"function"==typeof t}function o(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 c(t,e){t.appendChild(e)}function u(t,e,r){t.insertBefore(e,r||null)}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function p(t){return document.createElement(t)}function f(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function y(t){return document.createTextNode(t)}function m(){return y(" ")}function g(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function b(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function v(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:b(t,e,r)}function E(t,e){e=""+e,t.data!==e&&(t.data=e)}function w(t,e,r,n){null==r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}class T{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,r=null){this.e||(this.is_svg?this.e=f(e.nodeName):this.e=p(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)u(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(h)}}function _(t){const e={};for(const r of t)e[r.name]=r.value;return e}function x(t){a=t}
16
2
  /**
17
3
  * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
18
4
  * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
@@ -22,7 +8,7 @@ e&&b(e)})),I.clear())})))}function N(t){M=t}
22
8
  *
23
9
  * https://svelte.dev/docs#run-time-svelte-onmount
24
10
  */
25
- function k(t){(function(){if(!M)throw new Error("Function called outside component initialization");return M})().$$.on_mount.push(t)}const F=[],U=[];let G=[];const j=[],z=Promise.resolve();let V=!1;function X(t){G.push(t)}
11
+ function B(t){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(t)}const C=[],A=[];let H=[];const S=[],P=Promise.resolve();let L=!1;function I(t){H.push(t)}
26
12
  // flush() calls callbacks in this order:
27
13
  // 1. All beforeUpdate callbacks, in order: parents before children
28
14
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -41,74 +27,61 @@ function k(t){(function(){if(!M)throw new Error("Function called outside compone
41
27
  // 3. During afterUpdate, any updated components will NOT have their afterUpdate
42
28
  // callback called a second time; the seen_callbacks set, outside the flush()
43
29
  // function, guarantees this behavior.
44
- const W=new Set;let K,Y=0;// Do *not* move this inside the flush() function
45
- function Z(){
30
+ const O=new Set;let M=0;// Do *not* move this inside the flush() function
31
+ function N(){
46
32
  // Do not reenter flush while dirty components are updated, as this can
47
33
  // result in an infinite loop. Instead, let the inner flush handle it.
48
34
  // Reentrancy is ok afterwards for bindings etc.
49
- if(0!==Y)return;const t=M;do{
35
+ if(0!==M)return;const t=a;do{
50
36
  // first, call beforeUpdate functions
51
37
  // and update components
52
- try{for(;Y<F.length;){const t=F[Y];Y++,N(t),q(t.$$)}}catch(t){
38
+ try{for(;M<C.length;){const t=C[M];M++,x(t),D(t.$$)}}catch(t){
53
39
  // reset dirty state to not end up in a deadlocked state and then rethrow
54
- throw F.length=0,Y=0,t}for(N(null),F.length=0,Y=0;U.length;)U.pop()();
40
+ throw C.length=0,M=0,t}for(x(null),C.length=0,M=0;A.length;)A.pop()();
55
41
  // then, once components are updated, call
56
42
  // afterUpdate functions. This may cause
57
43
  // subsequent updates...
58
- for(let t=0;t<G.length;t+=1){const e=G[t];W.has(e)||(
44
+ for(let t=0;t<H.length;t+=1){const e=H[t];O.has(e)||(
59
45
  // ...so guard against infinite loops
60
- W.add(e),e())}G.length=0}while(F.length);for(;j.length;)j.pop()();V=!1,W.clear(),N(t)}function q(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(X)}}
46
+ O.add(e),e())}H.length=0}while(C.length);for(;S.length;)S.pop()();L=!1,O.clear(),x(t)}function D(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)}}
61
47
  /**
62
48
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
63
- */function J(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Q=new Set;let tt;function et(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function nt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),tt.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const rt={duration:0};function it(n,r,s,a){const l={direction:"both"};let c=r(n,s,l),f=a?0:1,y=null,m=null,g=null;function b(){g&&D(n,g)}function v(t,e){const n=t.b-f;return e*=Math.abs(n),{a:f,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function w(r){const{delay:o=0,duration:s=300,easing:a=e,tick:l=t,css:w}=c||rt,E={start:u()+o,b:r};r||(
64
- // @ts-ignore todo: improve typings
65
- E.group=tt,tt.r+=1),y||m?m=E:(
66
- // if this is an intro, and there's a delay, we need to do
67
- // an initial tick and/or apply CSS animation immediately
68
- w&&(b(),g=R(n,f,r,s,o,a,w)),r&&l(0,1),y=v(E,s),X((()=>J(n,r,"start"))),function(t){let e;0===d.size&&h(p),new Promise((n=>{d.add(e={c:t,f:n})}))}((t=>{if(m&&t>m.start&&(y=v(m,s),m=null,J(n,y.b,"start"),w&&(b(),g=R(n,f,y.b,y.duration,0,a,c.css))),y)if(t>=y.end)l(f=y.b,1-f),J(n,y.b,"end"),m||(
69
- // we're done
70
- y.b?
71
- // intro — we can tidy up immediately
72
- b():
73
- // outro — needs to be coordinated
74
- --y.group.r||i(y.group.c)),y=null;else if(t>=y.start){const e=t-y.start;f=y.a+y.d*a(e/y.duration),l(f,1-f)}return!(!y&&!m)})))}return{run(t){o(c)?(K||(K=Promise.resolve(),K.then((()=>{K=null}))),K).then((()=>{
75
- // @ts-ignore
76
- c=c(l),w(t)})):w(t)},end(){b(),y=m=null}}}function ot(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];G.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),G=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),
49
+ */const R=new Set;function $(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),
77
50
  // TODO null out other refs, including component.$$ (but need to
78
51
  // preserve final state?)
79
- n.on_destroy=n.fragment=null,n.ctx=[])}function st(t,e){-1===t.$$.dirty[0]&&(F.push(t),V||(V=!0,z.then(Z)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function at(e,s,a,l,c,u,h,d=[-1]){const p=M;N(e);const f=e.$$={fragment:null,ctx:[],
52
+ r.on_destroy=r.fragment=null,r.ctx=[])}function k(t,e){-1===t.$$.dirty[0]&&(C.push(t),L||(L=!0,P.then(N)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function F(o,s,l,c,u,d,p,f=[-1]){const y=a;x(o);const m=o.$$={fragment:null,ctx:[],
80
53
  // state
81
- props:u,update:t,not_equal:c,bound:r(),
54
+ props:d,update:t,not_equal:u,bound:r(),
82
55
  // lifecycle
83
- on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),
56
+ on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(y?y.$$.context:[])),
84
57
  // everything else
85
- callbacks:r(),dirty:d,skip_bound:!1,root:s.target||p.$$.root};h&&h(f.root);let y=!1;if(f.ctx=a?a(e,s.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return f.ctx&&c(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),y&&st(e,t)),n})):[],f.update(),y=!0,i(f.before_update),
58
+ callbacks:r(),dirty:f,skip_bound:!1,root:s.target||y.$$.root};p&&p(m.root);let g=!1;if(m.ctx=l?l(o,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return m.ctx&&u(m.ctx[t],m.ctx[t]=n)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](n),g&&k(o,t)),e})):[],m.update(),g=!0,n(m.before_update),
86
59
  // `false` as a special case of no DOM component
87
- f.fragment=!!l&&l(f.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
60
+ m.fragment=!!c&&c(m.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
88
61
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
89
- f.fragment&&f.fragment.l(t),t.forEach(b)}else
62
+ m.fragment&&m.fragment.l(t),t.forEach(h)}else
90
63
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
91
- f.fragment&&f.fragment.c();s.intro&&et(e.$$.fragment),function(t,e,r,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(e,r),s||
64
+ m.fragment&&m.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(R.delete(b),b.i(v))),function(t,r,o,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(r,o),s||
92
65
  // onMount happens before the initial afterUpdate
93
- X((()=>{const e=t.$$.on_mount.map(n).filter(o);
66
+ I((()=>{const r=t.$$.on_mount.map(e).filter(i);
94
67
  // if the component was destroyed immediately
95
68
  // it will update the `$$.on_destroy` reference to `null`.
96
69
  // the destructured on_destroy may still reference to the old array
97
- t.$$.on_destroy?t.$$.on_destroy.push(...e):
70
+ t.$$.on_destroy?t.$$.on_destroy.push(...r):
98
71
  // Edge case - component was destroyed immediately,
99
72
  // most likely as a result of a binding initialising
100
- i(e),t.$$.on_mount=[]})),l.forEach(X)}(e,s.target,s.anchor,s.customElement),Z()}N(p)}let lt;"function"==typeof HTMLElement&&(lt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(o);
73
+ n(r),t.$$.on_mount=[]})),l.forEach(I)}(o,s.target,s.anchor,s.customElement),N()}var b,v;x(y)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);
101
74
  // @ts-ignore todo: improve typings
102
75
  for(const t in this.$$.slotted)
103
76
  // @ts-ignore todo: improve typings
104
- this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){ot(this,1),this.$destroy=t}$on(e,n){
77
+ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){$(this,1),this.$destroy=t}$on(e,r){
105
78
  // TODO should this delegate to addEventListener?
106
- if(!o(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}})
107
- /* eslint-disable no-prototype-builtins */;var ct="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
79
+ if(!i(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const t=n.indexOf(r);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}})
80
+ /* eslint-disable no-prototype-builtins */;var G="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
108
81
  // eslint-disable-next-line no-undef
109
- "undefined"!=typeof global&&global||{},ut="URLSearchParams"in ct,ht="Symbol"in ct&&"iterator"in Symbol,dt="FileReader"in ct&&"Blob"in ct&&function(){try{return new Blob,!0}catch(t){return!1}}(),pt="FormData"in ct,ft="ArrayBuffer"in ct;if(ft)var yt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],mt=ArrayBuffer.isView||function(t){return t&&yt.indexOf(Object.prototype.toString.call(t))>-1};function gt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function bt(t){return"string"!=typeof t&&(t=String(t)),t}
82
+ "undefined"!=typeof global&&global||{},j="URLSearchParams"in G,z="Symbol"in G&&"iterator"in Symbol,V="FileReader"in G&&"Blob"in G&&function(){try{return new Blob,!0}catch(t){return!1}}(),X="FormData"in G,K="ArrayBuffer"in G;if(K)var W=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(t){return t&&W.indexOf(Object.prototype.toString.call(t))>-1};function Z(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function q(t){return"string"!=typeof t&&(t=String(t)),t}
110
83
  // Build a destructive iterator for the value list
111
- function vt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ht&&(e[Symbol.iterator]=function(){return e}),e}function wt(t){this.map={},t instanceof wt?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Et(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function _t(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function Tt(t){var e=new FileReader,n=_t(e);return e.readAsArrayBuffer(t),n}function xt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Ct(){return this.bodyUsed=!1,this._initBody=function(t){var e;
84
+ function J(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return z&&(e[Symbol.iterator]=function(){return e}),e}function Q(t){this.map={},t instanceof Q?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function tt(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function et(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function rt(t){var e=new FileReader,r=et(e);return e.readAsArrayBuffer(t),r}function nt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function it(){return this.bodyUsed=!1,this._initBody=function(t){var e;
112
85
  /*
113
86
  fetch-mock wraps the Response object in an ES6 Proxy to
114
87
  provide useful test harness features such as flush. However, on
@@ -120,28 +93,28 @@ function vt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,val
120
93
  _initBody is called.
121
94
  */
122
95
  // eslint-disable-next-line no-self-assign
123
- this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:dt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:pt&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ut&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():ft&&dt&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=xt(t.buffer),
96
+ this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:V&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:X&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:j&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():K&&V&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=nt(t.buffer),
124
97
  // IE 10-11 can't handle a DataView body.
125
- this._bodyInit=new Blob([this._bodyArrayBuffer])):ft&&(ArrayBuffer.prototype.isPrototypeOf(t)||mt(t))?this._bodyArrayBuffer=xt(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ut&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},dt&&(this.blob=function(){var t=Et(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=Et(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(dt)return this.blob().then(Tt);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t=Et(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=_t(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8";return e.readAsText(t,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pt&&(this.formData=function(){return this.text().then(Ht)}),this.json=function(){return this.text().then(JSON.parse)},this}
98
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):K&&(ArrayBuffer.prototype.isPrototypeOf(t)||Y(t))?this._bodyArrayBuffer=nt(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):j&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},V&&(this.blob=function(){var t=tt(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=tt(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(V)return this.blob().then(rt);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,i,o=tt(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=et(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:"utf-8",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},X&&(this.formData=function(){return this.text().then(at)}),this.json=function(){return this.text().then(JSON.parse)},this}
126
99
  // HTTP methods whose capitalization should be normalized
127
- wt.prototype.append=function(t,e){t=gt(t),e=bt(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},wt.prototype.delete=function(t){delete this.map[gt(t)]},wt.prototype.get=function(t){return t=gt(t),this.has(t)?this.map[t]:null},wt.prototype.has=function(t){return this.map.hasOwnProperty(gt(t))},wt.prototype.set=function(t,e){this.map[gt(t)]=bt(e)},wt.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},wt.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),vt(t)},wt.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),vt(t)},wt.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),vt(t)},ht&&(wt.prototype[Symbol.iterator]=wt.prototype.entries);var Bt=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function At(t,e){if(!(this instanceof At))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof At){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new wt(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new wt(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),Bt.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in ct)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
100
+ Q.prototype.append=function(t,e){t=Z(t),e=q(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Q.prototype.delete=function(t){delete this.map[Z(t)]},Q.prototype.get=function(t){return t=Z(t),this.has(t)?this.map[t]:null},Q.prototype.has=function(t){return this.map.hasOwnProperty(Z(t))},Q.prototype.set=function(t,e){this.map[Z(t)]=q(e)},Q.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Q.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),J(t)},Q.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),J(t)},Q.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),J(t)},z&&(Q.prototype[Symbol.iterator]=Q.prototype.entries);var ot=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function st(t,e){if(!(this instanceof st))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(e=e||{}).body;if(t instanceof st){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Q(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Q(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),ot.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in G)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
128
101
  // Search for a '_' parameter in the query string
129
102
  var o=/([?&])_=[^&]*/;if(o.test(this.url))
130
103
  // If it already exists then set the value with the current time
131
- this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ht(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function St(t,e){if(!(this instanceof St))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new wt(e.headers),this.url=e.url||"",this._initBody(t)}At.prototype.clone=function(){return new At(this,{body:this._bodyInit})},Ct.call(At.prototype),Ct.call(St.prototype),St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new wt(this.headers),url:this.url})},St.error=function(){var t=new St(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var Pt=[301,302,303,307,308];St.redirect=function(t,e){if(-1===Pt.indexOf(e))throw new RangeError("Invalid status code");return new St(null,{status:e,headers:{location:t}})};var $t=ct.DOMException;try{new $t}catch(t){($t=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),$t.prototype.constructor=$t}function Lt(t,e){return new Promise((function(n,r){var i=new At(t,e);if(i.signal&&i.signal.aborted)return r(new $t("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var t,e,r={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new wt,
104
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function at(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function lt(t,e){if(!(this instanceof lt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Q(e.headers),this.url=e.url||"",this._initBody(t)}st.prototype.clone=function(){return new st(this,{body:this._bodyInit})},it.call(st.prototype),it.call(lt.prototype),lt.prototype.clone=function(){return new lt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Q(this.headers),url:this.url})},lt.error=function(){var t=new lt(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var ct=[301,302,303,307,308];lt.redirect=function(t,e){if(-1===ct.indexOf(e))throw new RangeError("Invalid status code");return new lt(null,{status:e,headers:{location:t}})};var ut=G.DOMException;try{new ut}catch(t){(ut=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),ut.prototype.constructor=ut}function ht(t,e){return new Promise((function(r,n){var i=new st(t,e);if(i.signal&&i.signal.aborted)return n(new ut("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var t,e,n={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new Q,
132
105
  // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
133
106
  // https://github.com/github/fetch/issues/748
134
107
  // https://github.com/zloirock/core-js/issues/751
135
- t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{e.append(r,i)}catch(t){console.warn("Response "+t.message)}}})),e)};
108
+ t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{e.append(n,i)}catch(t){console.warn("Response "+t.message)}}})),e)};
136
109
  // This check if specifically for when a user fetches a file locally from the file system
137
110
  // Only if the status is out of a normal range
138
- i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new St(s,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new $t("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&ct.location.href?ct.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(dt?o.responseType="blob":ft&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof wt||ct.Headers&&e.headers instanceof ct.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(gt(t)),o.setRequestHeader(t,bt(e.headers[t]))})),i.headers.forEach((function(t,e){-1===a.indexOf(e)&&o.setRequestHeader(e,t)}))}else i.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
111
+ i.url.startsWith("file://")&&(o.status<200||o.status>599)?n.status=200:n.status=o.status,n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){r(new lt(s,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){n(new ut("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&G.location.href?G.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(V?o.responseType="blob":K&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof Q||G.Headers&&e.headers instanceof G.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(Z(t)),o.setRequestHeader(t,q(e.headers[t]))})),i.headers.forEach((function(t,e){-1===a.indexOf(e)&&o.setRequestHeader(e,t)}))}else i.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
139
112
  // DONE (success or failure)
140
- 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Lt.polyfill=!0,ct.fetch||(ct.fetch=Lt,ct.Headers=wt,ct.Request=At,ct.Response=St);
113
+ 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ht.polyfill=!0,G.fetch||(G.fetch=ht,G.Headers=Q,G.Request=st,G.Response=lt),
141
114
  // the whatwg-fetch polyfill installs the fetch() function
142
115
  // on the global object (window or self)
143
116
  // Return that as the export for use in Webpack, Browserify etc.
144
- var It=self.fetch.bind(self),Mt=function(t,e){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Mt(t,e)};
117
+ self.fetch.bind(self);
145
118
  /******************************************************************************
146
119
  Copyright (c) Microsoft Corporation.
147
120
 
@@ -156,7 +129,8 @@ var It=self.fetch.bind(self),Mt=function(t,e){return Mt=Object.setPrototypeOf||{
156
129
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
157
130
  PERFORMANCE OF THIS SOFTWARE.
158
131
  ***************************************************************************** */
159
- /* global Reflect, Promise, SuppressedError, Symbol */function Ot(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Rt(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Nt(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function kt(t){return"function"==typeof t}function Ft(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 Ut=Ft((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 Gt(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var jt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Rt(o),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 o.remove(this);var l=this.initialTeardown;if(kt(l))try{l()}catch(t){i=t instanceof Ut?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Rt(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Xt(d)}catch(t){i=null!=i?i:[],t instanceof Ut?i=Nt(Nt([],Dt(i)),Dt(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Ut(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Xt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).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)&&Gt(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&Gt(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),zt=jt.EMPTY;function Vt(t){return t instanceof jt||t&&"closed"in t&&kt(t.remove)&&kt(t.add)&&kt(t.unsubscribe)}function Xt(t){kt(t)?t():t.unsubscribe()}var Wt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kt={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Kt.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Nt([t,e],Dt(n))):setTimeout.apply(void 0,Nt([t,e],Dt(n)))},clearTimeout:function(t){var e=Kt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Yt(){}var Zt=null;function qt(t){if(Wt.useDeprecatedSynchronousErrorHandling){var e=!Zt;if(e&&(Zt={errorThrown:!1,error:null}),t(),e){var n=Zt,r=n.errorThrown,i=n.error;if(Zt=null,r)throw i}}else t()}var Jt=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vt(e)&&e.add(n)):n.destination=ie,n}return Ot(e,t),e.create=function(t,e,n){return new ne(t,e,n)},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}(jt),Qt=Function.prototype.bind;function te(t,e){return Qt.call(t,e)}var ee=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){re(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){re(t)}else re(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){re(t)}},t}(),ne=function(t){function e(e,n,r){var i,o,s=t.call(this)||this;kt(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Wt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&te(e.next,o),error:e.error&&te(e.error,o),complete:e.complete&&te(e.complete,o)}):i=e;return s.destination=new ee(i),s}return Ot(e,t),e}(Jt);function re(t){var e;e=t,Kt.setTimeout((function(){throw e}))}var ie={closed:!0,next:Yt,error:function(t){throw t},complete:Yt},oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function se(t){return t}var ae=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof Jt||function(t){return t&&kt(t.next)&&kt(t.error)&&kt(t.complete)}(r)&&Vt(r)?t:new ne(t,e,n);return qt((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=le(e))((function(e,r){var i=new ne({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[oe]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?se: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=le(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function le(t){var e;return null!==(e=null!=t?t:Wt.Promise)&&void 0!==e?e:Promise}var ce=Ft((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),ue=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 Ot(e,t),e.prototype.lift=function(t){var e=new he(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ce},e.prototype.next=function(t){var e=this;qt((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Rt(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;qt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;qt((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,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?zt:(this.currentObservers=null,o.push(t),new jt((function(){e.currentObservers=null,Gt(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ae;return t.source=this,t},e.create=function(t,e){return new he(t,e)},e}(ae),he=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Ot(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.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,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:zt},e}(ue),de={now:function(){return(de.delegate||Date).now()},delegate:void 0},pe=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=de);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}return Ot(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(e),!o&&i.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),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},e}(ue);let fe=[],ye={};
132
+ /* global Reflect, Promise, SuppressedError, Symbol */
133
+ var dt=function(t,e){return dt=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])},dt(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}dt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ft(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 yt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function mt(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function gt(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}return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ft(o),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 o.remove(this);var l=this.initialTeardown;if(gt(l))try{l()}catch(t){i=t instanceof vt?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=ft(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{xt(d)}catch(t){i=null!=i?i:[],t instanceof vt?i=mt(mt([],yt(i)),yt(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new vt(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)xt(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=function(){var e=new t;return e.closed=!0,e}(),t}(),Tt=wt.EMPTY;function _t(t){return t instanceof wt||t&&"closed"in t&&gt(t.remove)&&gt(t.add)&&gt(t.unsubscribe)}function xt(t){gt(t)?t():t.unsubscribe()}var Bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ct={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Ct.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,mt([t,e],yt(r))):setTimeout.apply(void 0,mt([t,e],yt(r)))},clearTimeout:function(t){var e=Ct.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function At(){}var Ht=null;function St(t){if(Bt.useDeprecatedSynchronousErrorHandling){var e=!Ht;if(e&&(Ht={errorThrown:!1,error:null}),t(),e){var r=Ht,n=r.errorThrown,i=r.error;if(Ht=null,n)throw i}}else t()}var Pt=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,_t(e)&&e.add(r)):r.destination=Dt,r}return pt(e,t),e.create=function(t,e,r){return new Mt(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),Lt=Function.prototype.bind;function It(t,e){return Lt.call(t,e)}var Ot=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}(),Mt=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;gt(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Bt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&It(e.next,o),error:e.error&&It(e.error,o),complete:e.complete&&It(e.complete,o)}):i=e;return s.destination=new Ot(i),s}return pt(e,t),e}(Pt);function Nt(t){var e;e=t,Ct.setTimeout((function(){throw e}))}var Dt={closed:!0,next:At,error:function(t){throw t},complete:At},Rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function $t(t){return t}var kt=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,i=this,o=(n=t)&&n instanceof Pt||function(t){return t&&gt(t.next)&&gt(t.error)&&gt(t.complete)}(n)&&_t(n)?t:new Mt(t,e,r);return St((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},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 i=new Mt({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Rt]=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:Bt.Promise)&&void 0!==e?e:Promise}var Ut=bt((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Gt=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 Ut},e.prototype.next=function(t){var e=this;St((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=ft(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;St((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;St((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,i=r.isStopped,o=r.observers;return n||i?Tt:(this.currentObservers=null,o.push(t),new wt((function(){e.currentObservers=null,Et(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new kt;return t.source=this,t},e.create=function(t,e){return new jt(t,e)},e}(kt),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:Tt},e}(Gt),zt={now:function(){return(zt.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=zt);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return pt(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.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(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){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}(Gt);let Xt=[],Kt={};
160
134
  /**
161
135
  * @name topic
162
136
  * @description A small wrapper over the rxjs to offer the topic method on top of it
@@ -164,36 +138,36 @@ var It=self.fetch.bind(self),Mt=function(t,e){return Mt=Object.setPrototypeOf||{
164
138
  * @param step [String] How many values to be buffed for new subscribers - default 0
165
139
  * @returns ReplaySubject
166
140
  */
167
- const me=[];
141
+ const Wt=[];
168
142
  /**
169
143
  * Create a `Writable` store that allows both updating and reading by subscription.
170
144
  * @param {*=}value initial value
171
145
  * @param {StartStopNotifier=} start
172
146
  */
173
- function ge(e,n=t){let r;const i=new Set;function o(t){if(s(e,t)&&(e=t,r)){// store is ready
174
- const t=!me.length;for(const t of i)t[1](),me.push(t,e);if(t){for(let t=0;t<me.length;t+=2)me[t][0](me[t+1]);me.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(s,a=t){const l=[s,a];return i.add(l),1===i.size&&(r=n(o)||t),s(e),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function be(e,n,r){const s=!Array.isArray(e),a=s?[e]:e,l=n.length<2;return c=e=>{let r=!1;const c=[];let u=0,h=t;const d=()=>{if(u)return;h();const r=n(s?c[0]:c,e);l?e(r):h=o(r)?r:t},p=a.map(((e,n)=>function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(e,(t=>{c[n]=t,u&=~(1<<n),r&&d()}),(()=>{u|=1<<n}))));return r=!0,d(),function(){i(p),h(),
147
+ function Yt(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
148
+ const t=!Wt.length;for(const t of i)t[1](),Wt.push(t,e);if(t){for(let t=0;t<Wt.length;t+=2)Wt[t][0](Wt[t+1]);Wt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const l=[o,a];return i.add(l),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(l),0===i.size&&n&&(n(),n=null)}}}}function Zt(e,r,o){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let o=!1;const c=[];let u=0,h=t;const d=()=>{if(u)return;h();const n=r(s?c[0]:c,e);l?e(n):h=i(n)?n:t},p=a.map(((e,r)=>function(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}(e,(t=>{c[r]=t,u&=~(1<<r),o&&d()}),(()=>{u|=1<<r}))));return o=!0,d(),function(){n(p),h(),
175
149
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
176
150
  // Callbacks might already be placed in the queue which doesn't know it should no longer
177
151
  // invoke this derived store.
178
- r=!1}},{subscribe:ge(r,c).subscribe};
152
+ o=!1}},{subscribe:Yt(o,c).subscribe};
179
153
  /**
180
154
  * Creates a `Readable` store that allows reading by subscription.
181
155
  * @param value initial value
182
156
  * @param {StartStopNotifier} [start]
183
157
  */
184
- var c}var ve=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===we}(t)}
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)}
185
159
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
186
- (t)};var we="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Be((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function _e(t,e,n){return t.concat(e).map((function(t){return Ee(t,n)}))}function Te(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 xe(t,e){try{return e in t}catch(t){return!1}}
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)?ie((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}}
187
161
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
188
- function Ce(t,e,n){var r={};return n.isMergeableObject(t)&&Te(t).forEach((function(e){r[e]=Ee(t[e],n)})),Te(e).forEach((function(i){(function(t,e){return xe(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
189
- })(t,i)||(xe(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return Be;var n=e.customMerge(t);return"function"==typeof n?n:Be}(i,n)(t[i],e[i],n):r[i]=Ee(e[i],n))})),r}function Be(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||_e,n.isMergeableObject=n.isMergeableObject||ve,
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(i){(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,i)||(re(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return ie;var r=e.customMerge(t);return"function"==typeof r?r:ie}(i,r)(t[i],e[i],r):n[i]=Qt(e[i],r))})),n}function ie(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||te,r.isMergeableObject=r.isMergeableObject||qt,
190
164
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
191
165
  // implementations can use it. The caller may not replace it.
192
- n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):Ce(t,e,n):Ee(e,n)}Be.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Be(t,n,e)}),{})};var Ae=Be,He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},He(t,e)};function Se(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Pe,$e,Le,Ie=function(){return Ie=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ie.apply(this,arguments)};function Me(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}
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)}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 oe=ie,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,ce,ue,he=function(){return he=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},he.apply(this,arguments)};function de(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}
193
167
  /**
194
168
  * Type Guards
195
169
  */
196
- function Oe(t){return t.type===$e.literal}function Re(t){return t.type===$e.argument}function De(t){return t.type===$e.number}function Ne(t){return t.type===$e.date}function ke(t){return t.type===$e.time}function Fe(t){return t.type===$e.select}function Ue(t){return t.type===$e.plural}function Ge(t){return t.type===$e.pound}function je(t){return t.type===$e.tag}function ze(t){return!(!t||"object"!=typeof t||t.type!==Le.number)}function Ve(t){return!(!t||"object"!=typeof t||t.type!==Le.dateTime)}
170
+ function pe(t){return t.type===ce.literal}function fe(t){return t.type===ce.argument}function ye(t){return t.type===ce.number}function me(t){return t.type===ce.date}function ge(t){return t.type===ce.time}function be(t){return t.type===ce.select}function ve(t){return t.type===ce.plural}function Ee(t){return t.type===ce.pound}function we(t){return t.type===ce.tag}function Te(t){return!(!t||"object"!=typeof t||t.type!==ue.number)}function _e(t){return!(!t||"object"!=typeof t||t.type!==ue.dateTime)}
197
171
  // @generated from regex-gen.ts
198
172
  "function"==typeof SuppressedError&&SuppressedError,function(t){
199
173
  /** Argument is unclosed (e.g. `{0`) */
@@ -255,7 +229,7 @@ t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
255
229
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
256
230
  t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
257
231
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
258
- t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Pe||(Pe={})),function(t){
232
+ t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(le||(le={})),function(t){
259
233
  /**
260
234
  * Raw text
261
235
  */
@@ -292,7 +266,7 @@ t[t.pound=7]="pound",
292
266
  /**
293
267
  * XML-like tag
294
268
  */
295
- t[t.tag=8]="tag"}($e||($e={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Le||(Le={}));var Xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,We=/(?:[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"}(ce||(ce={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(ue||(ue={}));var xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Be=/(?:[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;
296
270
  /**
297
271
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
298
272
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -304,33 +278,33 @@ t[t.tag=8]="tag"}($e||($e={})),function(t){t[t.number=0]="number",t[t.dateTime=1
304
278
  * @public
305
279
  * @param skeleton skeleton string
306
280
  */
307
- function Ke(t){var e={};return t.replace(We,(function(t){var n=t.length;switch(t[0]){
281
+ function Ce(t){var e={};return t.replace(Be,(function(t){var r=t.length;switch(t[0]){
308
282
  // Era
309
- case"G":e.era=4===n?"long":5===n?"narrow":"short";break;
283
+ case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
310
284
  // Year
311
- case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
285
+ case"y":e.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
312
286
  // Quarter
313
287
  case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
314
288
  // Month
315
- case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;
289
+ case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;
316
290
  // Week
317
- case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
291
+ case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
318
292
  // Weekday
319
- case"E":e.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;
293
+ case"E":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;
320
294
  // Period
321
295
  case"a":// AM, PM
322
296
  e.hour12=!0;break;case"b":// am, pm, noon, midnight
323
297
  case"B":// flexible day periods
324
298
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
325
299
  // Hour
326
- case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
300
+ case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
327
301
  // Minute
328
- case"m":e.minute=["numeric","2-digit"][n-1];break;
302
+ case"m":e.minute=["numeric","2-digit"][r-1];break;
329
303
  // Second
330
- case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
304
+ case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
331
305
  // Zone
332
306
  case"z":// 1..3, 4: specific non-location format
333
- e.timeZoneName=n<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
307
+ e.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
334
308
  case"O":// 1, 4: miliseconds in day short, long
335
309
  case"v":// 1, 4: generic non-location format
336
310
  case"V":// 1, 2, 3, 4: time zone ID or city
@@ -338,33 +312,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
338
312
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
339
313
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
340
314
  // @generated from regex-gen.ts
341
- var Ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ze=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qe=/^(@+)?(\+|#+)?[rs]?$/g,Je=/(\*)(0+)|(#+)(0+)|(0+)/g,Qe=/^(0+)$/;function tn(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(qe,(function(t,n,r){
315
+ var Ae=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var He=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Se=/^(@+)?(\+|#+)?[rs]?$/g,Pe=/(\*)(0+)|(#+)(0+)|(0+)/g,Le=/^(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(Se,(function(t,r,n){
342
316
  // @@@ case
343
- return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),e}function en(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 nn(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 Oe(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 Me(t){
344
318
  // Engineering
345
- 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 n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Qe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function rn(t){var e=en(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 Ne(t){var e=Oe(t);return e||{}}
346
320
  /**
347
321
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
348
- */function on(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.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=Ie(Ie(Ie({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return Ie(Ie({},t),rn(e))}),{}));continue;case"engineering":e=Ie(Ie(Ie({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return Ie(Ie({},t),rn(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
322
+ */function De(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.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"}),i.options.reduce((function(t,e){return he(he({},t),Ne(e))}),{}));continue;case"engineering":e=he(he(he({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return he(he({},t),Ne(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
349
323
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
350
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(i.options[0]);continue;
351
325
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
352
- case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Je,(function(t,n,r,i,o,s){if(n)e.minimumIntegerDigits=r.length;else{if(i&&o)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(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Pe,(function(t,r,n,i,o,s){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)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}
353
327
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
354
- if(Qe.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(Ze.test(i.stem)){
328
+ if(Le.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(He.test(i.stem)){
355
329
  // Precision
356
330
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
357
331
  // precision-integer case
358
- if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ze,(function(t,n,r,i,o,s){
332
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(He,(function(t,r,n,i,o,s){
359
333
  // .000* case (before ICU67 it was .000+)
360
- return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var o=i.options[0];
334
+ return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];
361
335
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
362
- "w"===o?e=Ie(Ie({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Ie(Ie({},e),tn(o)))}
336
+ "w"===o?e=he(he({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=he(he({},e),Ie(o)))}
363
337
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
364
- else if(qe.test(i.stem))e=Ie(Ie({},e),tn(i.stem));else{var s=en(i.stem);s&&(e=Ie(Ie({},e),s));var a=nn(i.stem);a&&(e=Ie(Ie({},e),a))}}return e}
338
+ else if(Se.test(i.stem))e=he(he({},e),Ie(i.stem));else{var s=Oe(i.stem);s&&(e=he(he({},e),s));var a=Me(i.stem);a&&(e=he(he({},e),a))}}return e}
365
339
  // @generated from time-data-gen.ts
366
340
  // prettier-ignore
367
- var sn,an={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,$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"]};
368
342
  /**
369
343
  * Returns the best matching date time pattern if a date time skeleton
370
344
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -377,7 +351,7 @@ var sn,an={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
377
351
  * of the given `locale` to the corresponding time pattern.
378
352
  * @param locale
379
353
  */
380
- function ln(t){var e=t.hourCycle;if(void 0===e&&
354
+ function ke(t){var e=t.hourCycle;if(void 0===e&&
381
355
  // @ts-ignore hourCycle(s) is not identified yet
382
356
  t.hourCycles&&
383
357
  // @ts-ignore
@@ -385,37 +359,37 @@ t.hourCycles.length&&(
385
359
  // @ts-ignore
386
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")}
387
361
  // TODO: Once hourCycle is fully supported remove the following with data generation
388
- var n,r=t.language;return"root"!==r&&(n=t.maximize().region),(an[n||""]||an[r||""]||an["".concat(r,"-001")]||an["001"])[0]}var cn=new RegExp("^".concat(Xe.source,"*")),un=new RegExp("".concat(Xe.source,"*$"));function hn(t,e){return{start:t,end:e}}
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(xe.source,"*")),Ue=new RegExp("".concat(xe.source,"*$"));function Ge(t,e){return{start:t,end:e}}
389
363
  // #region Ponyfills
390
364
  // Consolidate these variables up top for easier toggling during debugging
391
- var dn=!!String.prototype.startsWith,pn=!!String.fromCodePoint,fn=!!Object.fromEntries,yn=!!String.prototype.codePointAt,mn=!!String.prototype.trimStart,gn=!!String.prototype.trimEnd,bn=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},vn=!0;try{
365
+ var je=!!String.prototype.startsWith,ze=!!String.fromCodePoint,Ve=!!Object.fromEntries,Xe=!!String.prototype.codePointAt,Ke=!!String.prototype.trimStart,We=!!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{
392
366
  /**
393
367
  * legacy Edge or Xbox One browser
394
368
  * Unicode flag support: supported
395
369
  * Pattern_Syntax support: not supported
396
370
  * See https://github.com/formatjs/formatjs/issues/2822
397
371
  */
398
- vn="a"===(null===(sn=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===sn?void 0:sn[0])}catch(t){vn=!1}var wn,En=dn?// Native
399
- function(t,e,n){return t.startsWith(e,n)}:// For IE11
400
- function(t,e,n){return t.slice(n,n+e.length)===e},_n=pn?String.fromCodePoint:// IE11
401
- function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",i=t.length,o=0;i>o;){if((n=t[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Tn=
372
+ Ze="a"===(null===(Re=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Re?void 0:Re[0])}catch(t){Ze=!1}var qe,Je=je?// Native
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=ze?String.fromCodePoint:// IE11
375
+ function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>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=
402
376
  // native
403
- fn?Object.fromEntries:// Ponyfill
404
- function(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n],o=i[0],s=i[1];e[o]=s}return e},xn=yn?// Native
377
+ Ve?Object.fromEntries:// Ponyfill
378
+ function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},er=Xe?// Native
405
379
  function(t,e){return t.codePointAt(e)}:// IE 11
406
- function(t,e){var n=t.length;if(!(e<0||e>=n)){var r,i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Cn=mn?// Native
380
+ function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},rr=Ke?// Native
407
381
  function(t){return t.trimStart()}:// Ponyfill
408
- function(t){return t.replace(cn,"")},Bn=gn?// Native
382
+ function(t){return t.replace(Fe,"")},nr=We?// Native
409
383
  function(t){return t.trimEnd()}:// Ponyfill
410
- function(t){return t.replace(un,"")};
384
+ function(t){return t.replace(Ue,"")};
411
385
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
412
- function An(t,e){return new RegExp(t,e)}
386
+ function ir(t,e){return new RegExp(t,e)}
413
387
  // #endregion
414
- if(vn){
388
+ if(Ze){
415
389
  // Native
416
- var Hn=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=function(t,e){var n;return Hn.lastIndex=e,null!==(n=Hn.exec(t)[1])&&void 0!==n?n:""}}else
390
+ var or=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=function(t,e){var r;return or.lastIndex=e,null!==(r=or.exec(t)[1])&&void 0!==r?r:""}}else
417
391
  // IE11
418
- wn=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||$n(r)||Ln(r))break;n.push(r),e+=r>=65536?2:1}return _n.apply(void 0,n)};var Sn=/** @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,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Pe.UNMATCHED_CLOSING_TAG,hn(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Pn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:$e.pound,location:hn(s,this.clonePosition())})}}}return{val:r,err:null}},
392
+ qe=function(t,e){for(var r=[];;){var n=er(t,e);if(void 0===n||lr(n)||cr(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 i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(le.UNMATCHED_CLOSING_TAG,Ge(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&ar(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ce.pound,location:Ge(s,this.clonePosition())})}}}return{val:n,err:null}},
419
393
  /**
420
394
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
421
395
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -434,17 +408,17 @@ wn=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||$n(r)||Ln(r))break
434
408
  * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
435
409
  * since other tag-based engines like React allow it
436
410
  */
437
- t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();// `<`
438
- var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
411
+ t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
412
+ var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
439
413
  // Self closing tag
440
- return{val:{type:$e.literal,value:"<".concat(r,"/>"),location:hn(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
414
+ return{val:{type:ce.literal,value:"<".concat(n,"/>"),location:Ge(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
441
415
  // Expecting a close tag
442
- if(this.bumpIf("</")){if(this.isEOF()||!Pn(this.char()))return this.error(Pe.INVALID_TAG,hn(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Pe.UNMATCHED_CLOSING_TAG,hn(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:r,children:o,location:hn(n,this.clonePosition())},err:null}:this.error(Pe.INVALID_TAG,hn(s,this.clonePosition())))}return this.error(Pe.UNCLOSED_TAG,hn(n,this.clonePosition()))}return this.error(Pe.INVALID_TAG,hn(n,this.clonePosition()))},
416
+ if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(le.INVALID_TAG,Ge(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(le.UNMATCHED_CLOSING_TAG,Ge(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ce.tag,value:n,children:o,location:Ge(r,this.clonePosition())},err:null}:this.error(le.INVALID_TAG,Ge(s,this.clonePosition())))}return this.error(le.UNCLOSED_TAG,Ge(r,this.clonePosition()))}return this.error(le.INVALID_TAG,Ge(r,this.clonePosition()))},
443
417
  /**
444
418
  * This method assumes that the caller has peeked ahead for the first tag character.
445
419
  */
446
420
  t.prototype.parseTagName=function(){var t,e=this.offset();// the first tag name character
447
- 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 n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i)r+=i;else{var o=this.tryParseUnquoted(t,e);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=hn(n,this.clonePosition());return{val:{type:$e.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Pn(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 i=this.tryParseQuote(e);if(i)n+=i;else{var o=this.tryParseUnquoted(t,e);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ge(r,this.clonePosition());return{val:{type:ce.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;
448
422
  /** See `parseTag` function docs. */},
449
423
  /**
450
424
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
@@ -462,71 +436,71 @@ case 123:case 60:case 62:case 125:break;case 35:// '#'
462
436
  if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();// apostrophe
463
437
  var e=[this.char()];// escaped char
464
438
  // read chars until the optional closing apostrophe is found
465
- for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'` */!==this.peek()){
439
+ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'` */!==this.peek()){
466
440
  // Optional closing apostrophe.
467
441
  this.bump();break}e.push(39),
468
442
  // Bump one more time because we need to skip 2 characters.
469
- this.bump()}else e.push(n);this.bump()}return _n.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===e||"selectordinal"===e)||125/* `}` */===n&&t>0?null:(this.bump(),_n(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),// `{`
470
- this.bumpSpace(),this.isEOF())return this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE,hn(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(Pe.EMPTY_ARGUMENT,hn(n,this.clonePosition()));
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,Ge(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(le.EMPTY_ARGUMENT,Ge(r,this.clonePosition()));
471
445
  // argument name
472
- var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Pe.MALFORMED_ARGUMENT,hn(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE,hn(n,this.clonePosition()));switch(this.char()){
446
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(le.MALFORMED_ARGUMENT,Ge(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(r,this.clonePosition()));switch(this.char()){
473
447
  // Simple argument: `{name}`
474
448
  case 125/* `}` */:// `}`
475
- return this.bump(),{val:{type:$e.argument,
449
+ return this.bump(),{val:{type:ce.argument,
476
450
  // value does not include the opening and closing braces.
477
- value:r,location:hn(n,this.clonePosition())},err:null};
451
+ value:n,location:Ge(r,this.clonePosition())},err:null};
478
452
  // Argument with options: `{name, format, ...}`
479
453
  case 44/* `,` */:return this.bump(),// `,`
480
- this.bumpSpace(),this.isEOF()?this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE,hn(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(Pe.MALFORMED_ARGUMENT,hn(n,this.clonePosition()))}},
454
+ this.bumpSpace(),this.isEOF()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(le.MALFORMED_ARGUMENT,Ge(r,this.clonePosition()))}},
481
455
  /**
482
456
  * Advance the parser until the end of the identifier, if it is currently on
483
457
  * an identifier character. Return an empty string otherwise.
484
458
  */
485
- t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=wn(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:hn(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
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:Ge(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
486
460
  // Parse this range:
487
461
  // {name, type, style}
488
462
  // ^---^
489
463
  switch(s){case"":
490
464
  // Expecting a style string number, date, time, plural, selectordinal, or select.
491
- return this.error(Pe.EXPECT_ARGUMENT_TYPE,hn(o,a));case"number":case"date":case"time":
465
+ return this.error(le.EXPECT_ARGUMENT_TYPE,Ge(o,a));case"number":case"date":case"time":
492
466
  // Parse this range:
493
467
  // {name, number, style}
494
468
  // ^-------^
495
- this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Bn(g.val)).length)return this.error(Pe.EXPECT_ARGUMENT_STYLE,hn(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:hn(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var u=hn(r,this.clonePosition());
469
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=nr(g.val)).length)return this.error(le.EXPECT_ARGUMENT_STYLE,Ge(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Ge(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var u=Ge(n,this.clonePosition());
496
470
  // Extract style or skeleton
497
- if(l&&En(null==l?void 0:l.style,"::",0)){
471
+ if(l&&Je(null==l?void 0:l.style,"::",0)){
498
472
  // Skeleton starts with `::`.
499
- var h=Cn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:$e.number,value:n,location:u,style:g.val},err:null};if(0===h.length)return this.error(Pe.EXPECT_DATE_TIME_SKELETON,u);var d=h;
473
+ var h=rr(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:ce.number,value:r,location:u,style:g.val},err:null};if(0===h.length)return this.error(le.EXPECT_DATE_TIME_SKELETON,u);var d=h;
500
474
  // Get "best match" pattern only if locale is passed, if not, let it
501
475
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
502
476
  // for unsupported patterns.
503
- this.locale&&(d=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if("j"===i){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=ln(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var p={type:Le.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ke(d):{}};return{val:{type:"date"===s?$e.date:$e.time,value:n,location:u,style:p},err:null}}
477
+ this.locale&&(d=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=ke(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale));var p={type:ue.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ce(d):{}};return{val:{type:"date"===s?ce.date:ce.time,value:r,location:u,style:p},err:null}}
504
478
  // Regular style or no style.
505
- return{val:{type:"number"===s?$e.number:"date"===s?$e.date:$e.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
479
+ return{val:{type:"number"===s?ce.number:"date"===s?ce.date:ce.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
506
480
  // Parse this range:
507
481
  // {name, plural, options}
508
482
  // ^---------^
509
- var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Pe.EXPECT_SELECT_ARGUMENT_OPTIONS,hn(f,Ie({},f)));this.bumpSpace();
483
+ var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(le.EXPECT_SELECT_ARGUMENT_OPTIONS,Ge(f,he({},f)));this.bumpSpace();
510
484
  // Parse offset:
511
485
  // {name, plural, offset:1, options}
512
486
  // ^-----^
513
487
  // or the first option:
514
488
  // {name, plural, one {...} other {...}}
515
489
  // ^--^
516
- var y=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(Pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,hn(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
490
+ var y=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ge(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
517
491
  // Parse another identifier for option parsing
518
- this.bumpSpace(),y=this.parseIdentifierIfPossible(),m=g.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,y);if(v.err)return v;if((b=this.tryParseArgumentClose(r)).err)return b;var w=hn(r,this.clonePosition());return"select"===s?{val:{type:$e.select,value:n,options:Tn(v.val),location:w},err:null}:{val:{type:$e.plural,value:n,options:Tn(v.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(Pe.INVALID_ARGUMENT_TYPE,hn(o,a))}},t.prototype.tryParseArgumentClose=function(t){
492
+ this.bumpSpace(),y=this.parseIdentifierIfPossible(),m=g.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,y);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=Ge(n,this.clonePosition());return"select"===s?{val:{type:ce.select,value:r,options:tr(v.val),location:E},err:null}:{val:{type:ce.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,Ge(o,a))}},t.prototype.tryParseArgumentClose=function(t){
519
493
  // Parse: {value, number, ::currency/GBP }
520
- return this.isEOF()||125/* `}` */!==this.char()?this.error(Pe.EXPECT_ARGUMENT_CLOSING_BRACE,hn(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
494
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
521
495
  /**
522
496
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
523
497
  */
524
498
  t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
525
499
  // Treat apostrophe as quoting but include it in the style part.
526
500
  // Find the end of the quoted literal text.
527
- this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Pe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,hn(n,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 n=[];try{n=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(le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ge(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");
528
502
  // Parse the skeleton
529
- for(var e=[],n=0,r=t.split(Ye).filter((function(t){return t.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch(t){return this.error(Pe.INVALID_NUMBER_SKELETON,e)}return{val:{type:Le.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?on(n):{}},err:null}},
503
+ for(var e=[],r=0,n=t.split(Ae).filter((function(t){return t.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch(t){return this.error(le.INVALID_NUMBER_SKELETON,e)}return{val:{type:ue.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?De(r):{}},err:null}},
530
504
  /**
531
505
  * @param nesting_level The current nesting level of messages.
532
506
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -537,30 +511,30 @@ for(var e=[],n=0,r=t.split(Ye).filter((function(t){return t.length>0}));n<r.leng
537
511
  * between a pair of opening and closing tags. The nested message will not parse beyond
538
512
  * the closing tag boundary.
539
513
  */
540
- t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){
514
+ t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
541
515
  // Parse:
542
516
  // one {one apple}
543
517
  // ^--^
544
- for(var i,o=!1,s=[],a=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
518
+ for(var i,o=!1,s=[],a=new Set,l=n.value,c=n.location;;){if(0===l.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
545
519
  // Try parse `={number}` selector
546
- var h=this.tryParseDecimalInteger(Pe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=hn(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
520
+ var h=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_SELECTOR,le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Ge(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
547
521
  // Duplicate selector clauses
548
- if(a.has(l))return this.error("select"===e?Pe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Pe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),
522
+ if(a.has(l))return this.error("select"===e?le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),
549
523
  // Parse:
550
524
  // one {one apple}
551
525
  // ^----------^
552
- this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Pe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Pe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,hn(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,n);if(p.err)return p;var f=this.tryParseArgumentClose(d);if(f.err)return f;s.push([l,{value:p.val,location:hn(d,this.clonePosition())}]),
526
+ this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ge(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var f=this.tryParseArgumentClose(d);if(f.err)return f;s.push([l,{value:p.val,location:Ge(d,this.clonePosition())}]),
553
527
  // Keep track of the existing selectors
554
528
  a.add(l),
555
529
  // Prep next selector clause.
556
- this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===e?Pe.EXPECT_SELECT_ARGUMENT_SELECTOR:Pe.EXPECT_PLURAL_ARGUMENT_SELECTOR,hn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Pe.MISSING_OTHER_CLAUSE,hn(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=hn(r,this.clonePosition());return i?bn(o*=n)?{val:o,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=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ge(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(le.MISSING_OTHER_CLAUSE,Ge(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 i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Ge(n,this.clonePosition());return i?Ye(o*=r)?{val:o,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(){
557
531
  // This is much faster than `Object.assign` or spread.
558
532
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
559
533
  /**
560
534
  * Return the code point at the current position of the parser.
561
535
  * Throws if the index is out of bound.
562
536
  */
563
- t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=xn(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=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}}},
564
538
  /** Bump the parser to the next UTF-16 code unit. */
565
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,
566
540
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
@@ -571,177 +545,169 @@ this.position.offset+=t<65536?1:2)}},
571
545
  * following the prefix and return true. Otherwise, don't bump the parser
572
546
  * and return false.
573
547
  */
574
- t.prototype.bumpIf=function(t){if(En(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(Je(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
575
549
  /**
576
550
  * Bump the parser until the pattern character is found and return `true`.
577
551
  * Otherwise bump to the end of the file and return `false`.
578
552
  */
579
- t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},
553
+ t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
580
554
  /**
581
555
  * Bump the parser to the target offset.
582
556
  * If target offset is beyond the end of the input, bump the parser to the end of the input.
583
557
  */
584
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}},
585
559
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
586
- t.prototype.bumpSpace=function(){for(;!this.isEOF()&&$n(this.char());)this.bump()},
560
+ t.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},
587
561
  /**
588
562
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
589
563
  * If the input has been exhausted, then this returns null.
590
564
  */
591
- t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();
565
+ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();
592
566
  /**
593
567
  * This check if codepoint is alphabet (lower & uppercase)
594
568
  * @param codepoint
595
569
  * @returns
596
- */function Pn(t){return t>=97&&t<=122||t>=65&&t<=90}
570
+ */function ar(t){return t>=97&&t<=122||t>=65&&t<=90}
597
571
  /**
598
572
  * Code point equivalent of regex `\p{White_Space}`.
599
573
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
600
574
  */
601
- function $n(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
575
+ function lr(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
602
576
  /**
603
577
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
604
578
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
605
- */function Ln(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 In(t){t.forEach((function(t){if(delete t.location,Fe(t)||Ue(t))for(var e in t.options)delete t.options[e].location,In(t.options[e].value);else De(t)&&ze(t.style)||(Ne(t)||ke(t))&&Ve(t.style)?delete t.style.location:je(t)&&In(t.children)}))}function Mn(t,e){void 0===e&&(e={}),e=Ie({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new Sn(t,e).parse();if(n.err){var r=SyntaxError(Pe[n.err.kind]);
579
+ */function cr(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 ur(t){t.forEach((function(t){if(delete t.location,be(t)||ve(t))for(var e in t.options)delete t.options[e].location,ur(t.options[e].value);else ye(t)&&Te(t.style)||(me(t)||ge(t))&&_e(t.style)?delete t.style.location:we(t)&&ur(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]);
606
580
  // @ts-expect-error Assign to error object
607
- throw r.location=n.err.location,
581
+ throw n.location=r.err.location,
608
582
  // @ts-expect-error Assign to error object
609
- r.originalMessage=n.err.message,r}return(null==e?void 0:e.captureLocation)||In(n.val),n.val}
583
+ n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||ur(r.val),r.val}
610
584
 
611
585
  // Main
612
586
 
613
- function On(t,e){var n=e&&e.cache?e.cache:jn,r=e&&e.serializer?e.serializer:Fn;return(e&&e.strategy?e.strategy:kn)(t,{cache:n,serializer:r})}
587
+ function dr(t,e){var r=e&&e.cache?e.cache:Er,n=e&&e.serializer?e.serializer:gr;return(e&&e.strategy?e.strategy:mr)(t,{cache:r,serializer:n})}
614
588
 
615
589
  // Strategy
616
590
 
617
- function Rn(t,e,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=e.get(o);return void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function Dn(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}function Nn(t,e,n,r,i){return n.bind(e,t,r,i)}function kn(t,e){return Nn(t,this,1===t.length?Rn:Dn,e.cache.create(),e.serializer)}
591
+ function pr(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=e.get(o);return void 0===s&&(s=t.call(this,n),e.set(o,s)),s}function fr(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function yr(t,e,r,n,i){return r.bind(e,t,n,i)}function mr(t,e){return yr(t,this,1===t.length?pr:fr,e.cache.create(),e.serializer)}
618
592
  // Serializer
619
- var Fn=function(){return JSON.stringify(arguments)};
593
+ var gr=function(){return JSON.stringify(arguments)};
620
594
 
621
595
  // Cache
622
596
 
623
- function Un(){this.cache=Object.create(null)}Un.prototype.get=function(t){return this.cache[t]},Un.prototype.set=function(t,e){this.cache[t]=e};var Gn,jn={create:function(){
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(){
624
598
  // @ts-ignore
625
- return new Un}},zn={variadic:function(t,e){return Nn(t,this,Dn,e.cache.create(),e.serializer)},monadic:function(t,e){return Nn(t,this,Rn,e.cache.create(),e.serializer)}};!function(t){
599
+ return new br}},wr={variadic:function(t,e){return yr(t,this,fr,e.cache.create(),e.serializer)},monadic:function(t,e){return yr(t,this,pr,e.cache.create(),e.serializer)}};!function(t){
626
600
  // When we have a placeholder but no value to format
627
601
  t.MISSING_VALUE="MISSING_VALUE",
628
602
  // When value supplied is invalid
629
603
  t.INVALID_VALUE="INVALID_VALUE",
630
604
  // When we need specific Intl API but it's not available
631
- t.MISSING_INTL_API="MISSING_INTL_API"}(Gn||(Gn={}));var Vn,Xn=/** @class */function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return Se(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Wn=/** @class */function(t){function e(e,n,r,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Gn.INVALID_VALUE,i)||this}return Se(e,t),e}(Xn),Kn=/** @class */function(t){function e(e,n,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),Gn.INVALID_VALUE,r)||this}return Se(e,t),e}(Xn),Yn=/** @class */function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),Gn.MISSING_VALUE,n)||this}return Se(e,t),e}(Xn);function Zn(t){return"function"==typeof t}
605
+ t.MISSING_INTL_API="MISSING_INTL_API"}(vr||(vr={}));var Tr,_r=/** @class */function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return ae(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),xr=/** @class */function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),vr.INVALID_VALUE,i)||this}return ae(e,t),e}(_r),Br=/** @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}(_r),Cr=/** @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}(_r);function Ar(t){return"function"==typeof t}
632
606
  // TODO(skeleton): add skeleton support
633
- function qn(t,e,n,r,i,o,
607
+ function Hr(t,e,r,n,i,o,
634
608
  // For debugging
635
609
  s){
636
610
  // Hot path for straight simple msg translations
637
- if(1===t.length&&Oe(t[0]))return[{type:Vn.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];
611
+ if(1===t.length&&pe(t[0]))return[{type:Tr.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];
638
612
  // Exit early for string parts.
639
- if(Oe(u))a.push({type:Vn.literal,value:u.value});else
613
+ if(pe(u))a.push({type:Tr.literal,value:u.value});else
640
614
  // TODO: should this part be literal type?
641
615
  // Replace `#` in plural rules with the actual numeric value.
642
- if(Ge(u))"number"==typeof o&&a.push({type:Vn.literal,value:n.getNumberFormat(e).format(o)});else{var h=u.value;
616
+ if(Ee(u))"number"==typeof o&&a.push({type:Tr.literal,value:r.getNumberFormat(e).format(o)});else{var h=u.value;
643
617
  // Enforce that all required values are provided by the caller.
644
- if(!i||!(h in i))throw new Yn(h,s);var d=i[h];if(Re(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Vn.literal:Vn.object,value:d});else
618
+ if(!i||!(h in i))throw new Cr(h,s);var d=i[h];if(fe(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Tr.literal:Tr.object,value:d});else
645
619
  // Recursively format plural and select parts' option — which can be a
646
620
  // nested pattern structure. The choosing of the option to use is
647
621
  // abstracted-by and delegated-to the part helper object.
648
- if(Ne(u)){var p="string"==typeof u.style?r.date[u.style]:Ve(u.style)?u.style.parsedOptions:void 0;a.push({type:Vn.literal,value:n.getDateTimeFormat(e,p).format(d)})}else if(ke(u)){p="string"==typeof u.style?r.time[u.style]:Ve(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:Vn.literal,value:n.getDateTimeFormat(e,p).format(d)})}else if(De(u)){(p="string"==typeof u.style?r.number[u.style]:ze(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),a.push({type:Vn.literal,value:n.getNumberFormat(e,p).format(d)})}else{if(je(u)){var f=u.children,y=u.value,m=i[y];if(!Zn(m))throw new Kn(y,"function",s);var g=m(qn(f,e,n,r,i,o).map((function(t){return t.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(t){return{type:"string"==typeof t?Vn.literal:Vn.object,value:t}})))}if(Fe(u)){if(!(b=u.options[d]||u.options.other))throw new Wn(u.value,d,Object.keys(u.options),s);a.push.apply(a,qn(b.value,e,n,r,i))}else if(Ue(u)){var b;if(!(b=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Xn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gn.MISSING_INTL_API,s);var v=n.getPluralRules(e,{type:u.pluralType}).select(d-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new Wn(u.value,d,Object.keys(u.options),s);a.push.apply(a,qn(b.value,e,n,r,i,d-(u.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&n.type===Vn.literal&&e.type===Vn.literal?n.value+=e.value:t.push(e),t}),[])}(a)}
622
+ if(me(u)){var p="string"==typeof u.style?n.date[u.style]:_e(u.style)?u.style.parsedOptions:void 0;a.push({type:Tr.literal,value:r.getDateTimeFormat(e,p).format(d)})}else if(ge(u)){p="string"==typeof u.style?n.time[u.style]:_e(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:Tr.literal,value:r.getDateTimeFormat(e,p).format(d)})}else if(ye(u)){(p="string"==typeof u.style?n.number[u.style]:Te(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),a.push({type:Tr.literal,value:r.getNumberFormat(e,p).format(d)})}else{if(we(u)){var f=u.children,y=u.value,m=i[y];if(!Ar(m))throw new Br(y,"function",s);var g=m(Hr(f,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(t){return{type:"string"==typeof t?Tr.literal:Tr.object,value:t}})))}if(be(u)){if(!(b=u.options[d]||u.options.other))throw new xr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Hr(b.value,e,r,n,i))}else if(ve(u)){var b;if(!(b=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new _r('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:u.pluralType}).select(d-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new xr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Hr(b.value,e,r,n,i,d-(u.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===Tr.literal&&e.type===Tr.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
649
623
  /*
650
624
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
651
625
  Copyrights licensed under the New BSD License.
652
626
  See the accompanying LICENSE file for terms.
653
627
  */
654
628
  // -- MessageFormat --------------------------------------------------------
655
- function Jn(t,e){return e?Object.keys(t).reduce((function(n,r){var i,o;return n[r]=(i=t[r],(o=e[r])?Ie(Ie(Ie({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=Ie(Ie({},i[e]),o[e]||{}),t}),{})):i),n}),Ie({},t)):t}function Qn(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Vn||(Vn={}));var tr=/** @class */function(){function t(e,n,r,i){var o,s=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
629
+ function Sr(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?he(he(he({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=he(he({},i[e]),o[e]||{}),t}),{})):i),r}),he({},t)):t}function Pr(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"}(Tr||(Tr={}));var Lr=/** @class */function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
656
630
  // Hot path for straight simple msg translations
657
- if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===Vn.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return qn(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===Tr.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 Hr(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},
658
632
  // Defined first because it's used to build the format pattern.
659
- this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
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`");
660
634
  // Parse string messages into an AST.
661
635
  this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.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.");
662
636
  // Creates a new object with the specified `formats` merged with the default
663
637
  // formats.
664
- this.formats=Jn(t.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:On((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Me([void 0],e,!1)))}),{cache:Qn(o.number),strategy:zn.variadic}),getDateTimeFormat:On((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Me([void 0],e,!1)))}),{cache:Qn(o.dateTime),strategy:zn.variadic}),getPluralRules:On((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Me([void 0],e,!1)))}),{cache:Qn(o.pluralRules),strategy:zn.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=Mn,
638
+ this.formats=Sr(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,de([void 0],e,!1)))}),{cache:Pr(o.number),strategy:wr.variadic}),getDateTimeFormat:dr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,de([void 0],e,!1)))}),{cache:Pr(o.dateTime),strategy:wr.variadic}),getPluralRules:dr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,de([void 0],e,!1)))}),{cache:Pr(o.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,
665
639
  // Default format options used as the prototype of the `formats` provided to the
666
640
  // constructor. These are used when constructing the internal Intl.NumberFormat
667
641
  // and Intl.DateTimeFormat instances.
668
- 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 er={},nr=(t,e,n)=>n?(e in er||(er[e]={}),t in er[e]||(er[e][t]=n),n):n,rr=(t,e)=>{if(null==e)return;if(e in er&&t in er[e])return er[e][t];const n=Ar(e);for(let r=0;r<n.length;r++){const i=ar(n[r],t);if(i)return nr(t,e,i)}};let ir;const or=ge({});function sr(t){return t in ir}function ar(t,e){if(!sr(t))return null;const n=function(t){return ir[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(t>0){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(n,e)}be([or],(([t])=>Object.keys(t))),or.subscribe((t=>ir=t));const lr={};function cr(t){return lr[t]}function ur(t){return null!=t&&Ar(t).some((t=>{var e;return null==(e=cr(t))?void 0:e.size}))}function hr(t,e){const n=Promise.all(e.map((e=>(function(t,e){lr[t].delete(e),0===lr[t].size&&delete lr[t]}(t,e),e().then((t=>t.default||t))))));return n.then((e=>function(t,...e){delete er[t],or.update((n=>(n[t]=Ae.all([n[t]||{},...e]),n)))}(t,...e)))}const dr={};function pr(t){if(!ur(t))return t in dr?dr[t]:Promise.resolve();const e=function(t){return Ar(t).map((t=>{const e=cr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return dr[t]=Promise.all(e.map((([t,e])=>hr(t,e)))).then((()=>{if(ur(t))return pr(t);delete dr[t]})),dr[t]}const fr={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 yr(){return fr}const mr=ge(!1);var gr=Object.defineProperty,br=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Tr=(t,e,n)=>e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let xr;const Cr=ge(null);function Br(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Ar(t,e=yr().fallbackLocale){const n=Br(t);return e?[...new Set([...n,...Br(e)])]:n}function Hr(){return null!=xr?xr:void 0}Cr.subscribe((t=>{xr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Sr=(Pr=((t,e)=>{for(var n in e||(e={}))Er.call(e,n)&&Tr(t,n,e[n]);if(wr)for(var n of wr(e))_r.call(e,n)&&Tr(t,n,e[n]);return t})({},Cr),br(Pr,vr({set:t=>{if(t&&function(t){if(null==t)return;const e=Ar(t);for(let t=0;t<e.length;t++){const n=e[t];if(sr(n))return n}}(t)&&ur(t)){const{loadingDelay:e}=yr();let n;return"undefined"!=typeof window&&null!=Hr()&&e?n=window.setTimeout((()=>mr.set(!0)),e):mr.set(!0),pr(t).then((()=>{Cr.set(t)})).finally((()=>{clearTimeout(n),mr.set(!1)}))}return Cr.set(t)}})));var Pr;const $r=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}};var Lr=Object.defineProperty,Ir=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Rr=(t,e,n)=>e in t?Lr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Dr=(t,e)=>{for(var n in e||(e={}))Mr.call(e,n)&&Rr(t,n,e[n]);if(Ir)for(var n of Ir(e))Or.call(e,n)&&Rr(t,n,e[n]);return t},Nr=(t,e)=>{var n={};for(var r in t)Mr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Ir)for(var r of Ir(t))e.indexOf(r)<0&&Or.call(t,r)&&(n[r]=t[r]);return n};const kr=(t,e)=>{const{formats:n}=yr();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Fr=$r((t=>{var e=t,{locale:n,format:r}=e,i=Nr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=kr("number",r)),new Intl.NumberFormat(n,i)})),Ur=$r((t=>{var e=t,{locale:n,format:r}=e,i=Nr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=kr("date",r):0===Object.keys(i).length&&(i=kr("date","short")),new Intl.DateTimeFormat(n,i)})),Gr=$r((t=>{var e=t,{locale:n,format:r}=e,i=Nr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=kr("time",r):0===Object.keys(i).length&&(i=kr("time","short")),new Intl.DateTimeFormat(n,i)})),jr=$r((
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={},Or=(t,e,r)=>r?(e in Ir||(Ir[e]={}),t in Ir[e]||(Ir[e][t]=r),r):r,Mr=(t,e)=>{if(null==e)return;if(e in Ir&&t in Ir[e])return Ir[e][t];const r=on(e);for(let n=0;n<r.length;n++){const i=$r(r[n],t);if(i)return Or(t,e,i)}};let Nr;const Dr=Yt({});function Rr(t){return t in Nr}function $r(t,e){if(!Rr(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)}Zt([Dr],(([t])=>Object.keys(t))),Dr.subscribe((t=>Nr=t));const kr={};function Fr(t){return kr[t]}function Ur(t){return null!=t&&on(t).some((t=>{var e;return null==(e=Fr(t))?void 0:e.size}))}function Gr(t,e){const r=Promise.all(e.map((e=>(function(t,e){kr[t].delete(e),0===kr[t].size&&delete kr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>function(t,...e){delete Ir[t],Dr.update((r=>(r[t]=oe.all([r[t]||{},...e]),r)))}(t,...e)))}const jr={};function zr(t){if(!Ur(t))return t in jr?jr[t]:Promise.resolve();const e=function(t){return on(t).map((t=>{const e=Fr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return jr[t]=Promise.all(e.map((([t,e])=>Gr(t,e)))).then((()=>{if(Ur(t))return zr(t);delete jr[t]})),jr[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 Xr(){return Vr}const Kr=Yt(!1);var Wr=Object.defineProperty,Yr=Object.defineProperties,Zr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,tn=(t,e,r)=>e in t?Wr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let en;const rn=Yt(null);function nn(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function on(t,e=Xr().fallbackLocale){const r=nn(t);return e?[...new Set([...r,...nn(e)])]:r}function sn(){return null!=en?en:void 0}rn.subscribe((t=>{en=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const an=(ln=((t,e)=>{for(var r in e||(e={}))Jr.call(e,r)&&tn(t,r,e[r]);if(qr)for(var r of qr(e))Qr.call(e,r)&&tn(t,r,e[r]);return t})({},rn),Yr(ln,Zr({set:t=>{if(t&&function(t){if(null==t)return;const e=on(t);for(let t=0;t<e.length;t++){const r=e[t];if(Rr(r))return r}}(t)&&Ur(t)){const{loadingDelay:e}=Xr();let r;return"undefined"!=typeof window&&null!=sn()&&e?r=window.setTimeout((()=>Kr.set(!0)),e):Kr.set(!0),zr(t).then((()=>{rn.set(t)})).finally((()=>{clearTimeout(r),Kr.set(!1)}))}return rn.set(t)}})));var ln;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 un=Object.defineProperty,hn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,fn=(t,e,r)=>e in t?un(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yn=(t,e)=>{for(var r in e||(e={}))dn.call(e,r)&&fn(t,r,e[r]);if(hn)for(var r of hn(e))pn.call(e,r)&&fn(t,r,e[r]);return t},mn=(t,e)=>{var r={};for(var n in t)dn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&hn)for(var n of hn(t))e.indexOf(n)<0&&pn.call(t,n)&&(r[n]=t[n]);return r};const gn=(t,e)=>{const{formats:r}=Xr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},bn=cn((t=>{var e=t,{locale:r,format:n}=e,i=mn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=gn("number",n)),new Intl.NumberFormat(r,i)})),vn=cn((t=>{var e=t,{locale:r,format:n}=e,i=mn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=gn("date",n):0===Object.keys(i).length&&(i=gn("date","short")),new Intl.DateTimeFormat(r,i)})),En=cn((t=>{var e=t,{locale:r,format:n}=e,i=mn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=gn("time",n):0===Object.keys(i).length&&(i=gn("time","short")),new Intl.DateTimeFormat(r,i)})),wn=cn((
669
643
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
670
- (t,e=Hr())=>new tr(t,e,yr().formats,{ignoreTag:yr().ignoreTag}))),zr=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=Hr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=rr(t,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=yr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:t,defaultValue:c}))?i:c)?o:t;if(!a)return u;let h=u;try{h=jr(u,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Vr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Nr(e,["locale"]);return Gr(Dr({locale:n},r))})(e).format(t),Xr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Nr(e,["locale"]);return Ur(Dr({locale:n},r))})(e).format(t),Wr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Nr(e,["locale"]);return Fr(Dr({locale:n},r))})(e).format(t),Kr=(t,e=Hr())=>rr(t,e);be([Sr,or],(()=>zr)),be([Sr],(()=>Vr)),be([Sr],(()=>Xr)),be([Sr],(()=>Wr)),be([Sr,or],(()=>Kr)),window.emWidgets={topic:(t,e=0)=>{if(-1==fe.indexOf(t)){let n=new pe(e);ye[t]=n,fe.push(t)}return ye[t]}};
644
+ (t,e=sn())=>new Lr(t,e,Xr().formats,{ignoreTag:Xr().ignoreTag}))),Tn=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=sn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Mr(t,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=Xr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:c}))?i:c)?o:t;if(!a)return u;let h=u;try{h=wn(u,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},_n=(t,e)=>((t={})=>{var e=t,{locale:r=sn()}=e,n=mn(e,["locale"]);return En(yn({locale:r},n))})(e).format(t),xn=(t,e)=>((t={})=>{var e=t,{locale:r=sn()}=e,n=mn(e,["locale"]);return vn(yn({locale:r},n))})(e).format(t),Bn=(t,e)=>((t={})=>{var e=t,{locale:r=sn()}=e,n=mn(e,["locale"]);return bn(yn({locale:r},n))})(e).format(t),Cn=(t,e=sn())=>Mr(t,e);Zt([an,Dr],(()=>Tn)),Zt([an],(()=>_n)),Zt([an],(()=>xn)),Zt([an],(()=>Bn)),Zt([an,Dr],(()=>Cn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Xt.indexOf(t)){let r=new Vt(e);Kt[t]=r,Xt.push(t)}return Kt[t]}};
671
645
  /**
672
646
  * @name isMobile
673
647
  * @description A method that returns if the browser used to access the app is from a mobile device or not
674
648
  * @param {String} userAgent window.navigator.userAgent
675
649
  * @returns {Boolean} true or false
676
650
  */
677
- const Yr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
651
+ const An=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
678
652
  /**
679
653
  * @name getDevice
680
654
  * @description A method that returns the type of the device
681
655
  * @param {String} userAgent window.navigator.userAgent
682
656
  * @returns {String} Android/iPhone/iPad/PC
683
- */function Zr(t,{delay:n=0,duration:r=400,easing:i=e}={}){const o=+getComputedStyle(t).opacity;return{delay:n,duration:r,easing:i,css:t=>"opacity: "+t*o}}
684
- /* ../casino-modal/src/CasinoModal.svelte generated by Svelte v3.59.2 */function qr(t){let e,n,r,i,o,s,a,l,c,u,h,d;return{c(){e=w("div"),n=w("div"),r=w("div"),r.innerHTML="<slot></slot>",i=T(),o=w("span"),s=w("slot"),s.innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',B(r,"class","ModalContainer"),B(r,"part","ModalContainer"),B(s,"name","close"),B(o,"class",a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")),B(o,"role","button"),B(n,"class","ModalWindow"),B(n,"part","ModalWindow"),B(n,"id","Modal"),X((()=>/*div1_elementresize_handler*/t[19].call(n))),B(e,"part","CustomStylingContainer")},m(a,c){g(a,e,c),f(e,n),f(n,r),f(n,i),f(n,o),f(o,s),
685
- /*div1_binding*/t[18](n),l=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=w("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=$();let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=C(window,"message",(t=>{t.source===n.contentWindow&&e()}))):(n.src="about:blank",n.onload=()=>{i=C(n.contentWindow,"resize",e),
686
- // make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)
687
- // see https://github.com/sveltejs/svelte/issues/4233
688
- e()}),f(t,n),()=>{(r||i&&n.contentWindow)&&i(),b(n)}}(n,/*div1_elementresize_handler*/t[19].bind(n)),
689
- /*div2_binding*/t[20](e),u=!0,h||(d=C(o,"click",/*close*/t[8]),h=!0)},p(e,n){t=e,(!u||/*haspanicbutton, mobileView*/10&n&&a!==(a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")))&&B(o,"class",a)},i(e){u||(X((()=>{u&&(c||(c=it(n,Zr,{transitionDuration:/*duration*/t[0]},!0)),c.run(1))})),u=!0)},o(e){c||(c=it(n,Zr,{transitionDuration:/*duration*/t[0]},!1)),c.run(0),u=!1},d(n){n&&b(e)
690
- /*div1_binding*/,t[18](null),l(),n&&c&&c.end()
691
- /*div2_binding*/,t[20](null),h=!1,d()}}}function Jr(e){let n,r,o=/*show*/e[7]&&qr(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e),r=!0},p(t,[e]){/*show*/t[7]?o?(o.p(t,e),/*show*/128&e&&et(o,1)):(o=qr(t),o.c(),et(o,1),o.m(n.parentNode,n)):o&&(tt={r:0,c:[],p:tt},nt(o,1,1,(()=>{o=null})),tt.r||i(tt.c),tt=tt.p)},i(t){r||(et(o),r=!0)},o(t){nt(o),r=!1},d(t){o&&o.d(t),t&&b(n)}}}function Qr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{identifier:h=""}=e,{clientstylingurl:d=""}=e,{endpoint:p=""}=e,{haspanicbutton:f="false"}=e,{gamepagemodalurl:y="false"}=e,{sessioncheck:m="true"}=e,{integratedgameframedesktop:g="false"}=e,b=window.navigator.userAgent,v=!1,w=!1,E=!1;const _=t=>{if("ShowModal"==t.data.type&&h==t.data.identifier&&(n(7,E=!0),window.postMessage({type:"DisableScroll"},window.location.href)),"ModalClosed"==t.data.type&&("true"===g||Yr(b))&&n(7,E=!1),"ShowGameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"GameLaunchID",gameId:t.data.gameId},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"OpenGameFrameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"LaunchGameFrame",gameId:t.data.gameId,gameFunMode:t.data.gamefunmode},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"RequestModalSize"===t.data.type){let t={modalWidth:r?getComputedStyle(r).width:null,modalHeight:r?getComputedStyle(r).height:null};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}"GameStateOnResize"===t.data.type&&(w=t.data.detailsObtained)},T=t=>{if(w){let t={modalWidth:getComputedStyle(r).width,modalHeight:getComputedStyle(r).height};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}},x=()=>{"true"==m&&function(t,e){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",e),It(`${t}/v1/player/session/player`,{method:"GET",headers:i}).then((t=>t.json())).then((t=>n(t))).catch((t=>r(t)))}))}(p,l).then((t=>{t.Guid,t.UserID}),(t=>{console.error("err on session",t)}))};return k((()=>(n(3,v=Yr(b)),window.addEventListener("message",_,!1),window.addEventListener("resize",T,!1),()=>{window.removeEventListener("message",_),window.removeEventListener("resize",_)}))),t.$$set=t=>{"duration"in t&&n(0,a=t.duration),"session"in t&&n(9,l=t.session),"userid"in t&&n(10,c=t.userid),"clientstyling"in t&&n(11,u=t.clientstyling),"identifier"in t&&n(12,h=t.identifier),"clientstylingurl"in t&&n(13,d=t.clientstylingurl),"endpoint"in t&&n(14,p=t.endpoint),"haspanicbutton"in t&&n(1,f=t.haspanicbutton),"gamepagemodalurl"in t&&n(15,y=t.gamepagemodalurl),"sessioncheck"in t&&n(16,m=t.sessioncheck),"integratedgameframedesktop"in t&&n(17,g=t.integratedgameframedesktop)},t.$$.update=()=>{/*session, userid, endpoint*/17920&t.$$.dirty&&l&&c&&p&&x(),/*clientstyling, customStylingContainer*/2052&t.$$.dirty&&u&&i&&(()=>{let t=document.createElement("style");t.innerHTML=u,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8196&t.$$.dirty&&d&&i&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,f,i,v,r,o,s,E,()=>{n(7,E=!1),n(3,v=Yr(b)),window.postMessage({type:"ModalClosed",gamepagemodalurl:y,mobileView:v,closeIntegratedGameFrameDesktop:!0},window.location.href)},l,c,u,h,d,p,y,m,g,function(t){U[t?"unshift":"push"]((()=>{r=t,n(4,r)}))},function(){o=this.clientWidth,s=this.clientHeight,n(5,o),n(6,s)},function(t){U[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}
657
+ */
692
658
  /* ../casino-calendar-daily-details/src/CasinoCalendarDailyDetails.svelte generated by Svelte v3.59.2 */
693
- function ti(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function ei(t,e,n){const r=t.slice();return r[29]=e[n],r[28]=n,r}
694
- // (105:4) {:else}
695
- function ni(t){let e,n,r,i,o,s=/*dailyeventsDetails*/t[3],a=[];for(let e=0;e<s.length;e+=1)a[e]=ci(ti(t,s,e));return{c(){e=w("div"),n=w("div"),r=_(/*dailyday*/t[1]),i=T();for(let t=0;t<a.length;t+=1)a[t].c();B(n,"class","CasinoCalendarDailyDay"),B(e,"class",o="CasinoCalendarDailyDetailsBackground "+(/*mobileView*/t[6]?"Mobile":""))},m(t,o){g(t,e,o),f(e,n),f(n,r),f(e,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null)},p(t,n){if(/*dailyday*/2&n&&H(r,/*dailyday*/t[1]),/*dailyeventsDetails, selectedTab, setActiveTab, handleDetailsArea, dailybuttontitle*/409&n){let r;for(s=/*dailyeventsDetails*/t[3],r=0;r<s.length;r+=1){const i=ti(t,s,r);a[r]?a[r].p(i,n):(a[r]=ci(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=s.length}/*mobileView*/64&n&&o!==(o="CasinoCalendarDailyDetailsBackground "+(/*mobileView*/t[6]?"Mobile":""))&&B(e,"class",o)},d(t){t&&b(e),v(a,t)}}}
696
- // (103:4) {#if isLoading}
697
- function ri(e){let n;return{c(){n=w("p"),n.textContent="Loading ...",B(n,"class","SearchLoading"),B(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
698
- // (130:16) {:else}
699
- function ii(t){let e,n;return{c(){e=E("svg"),n=E("path"),B(n,"stroke-linecap","round"),B(n,"stroke-linejoin","round"),B(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"fill","none"),B(e,"viewBox","0 0 24 24"),B(e,"stroke-width","1.5"),B(e,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),B(e,"class","IconDown")},m(t,r){g(t,e,r),f(e,n)},d(t){t&&b(e)}}}
700
- // (116:16) {#if event.expandedInfo == true}
701
- function oi(t){let e,n;return{c(){e=E("svg"),n=E("path"),B(n,"stroke-linecap","round"),B(n,"stroke-linejoin","round"),B(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"fill","none"),B(e,"viewBox","0 0 24 24"),B(e,"stroke-width","1.5"),B(e,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),B(e,"class","IconUp")},m(t,r){g(t,e,r),f(e,n)},d(t){t&&b(e)}}}
702
- // (148:14) {#if event.expandedInfo == true}
703
- function si(t){let e,n,r=/*event*/t[26].details,i=[];for(let e=0;e<r.length;e+=1)i[e]=ai(ei(t,r,e));let o=/*event*/t[26].detailsExpanded&&li(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=T(),o&&o.c(),n=x()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);g(t,e,r),o&&o.m(t,r),g(t,n,r)},p(t,s){if(/*selectedTab, dailyeventsDetails, setActiveTab*/280&s){let n;for(r=/*event*/t[26].details,n=0;n<r.length;n+=1){const o=ei(t,r,n);i[n]?i[n].p(o,s):(i[n]=ai(o),i[n].c(),i[n].m(e.parentNode,e))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}/*event*/t[26].detailsExpanded?o?o.p(t,s):(o=li(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){v(i,t),t&&b(e),o&&o.d(t),t&&b(n)}}}
704
- // (149:16) {#each event.details as detail, index}
705
- function ai(t){let e,n,r,i,o,s,a,l,c=/*detail*/t[29].title+"";function u(){/*click_handler_1*/
706
- return t[18](/*event*/t[26],/*index*/t[28])}return{c(){e=w("div"),n=w("div"),r=w("button"),i=_(c),B(r,"class",o="HeaderButton "+(/*detail*/t[29].expandedTab?"Active":"")),B(n,"class","Header"),B(e,"class",s=/*index*/t[28]==/*selectedTab*/t[4]?"SelectedTab":""),B(e,"id","CollapseMoreInfoButton"),S(e,"height",/*event*/t[26].expandedInfo?"100%":"")},m(t,o){g(t,e,o),f(e,n),f(n,r),f(r,i),a||(l=C(r,"click",u),a=!0)},p(n,a){t=n,/*dailyeventsDetails*/8&a&&c!==(c=/*detail*/t[29].title+"")&&H(i,c),/*dailyeventsDetails*/8&a&&o!==(o="HeaderButton "+(/*detail*/t[29].expandedTab?"Active":""))&&B(r,"class",o),/*selectedTab*/16&a&&s!==(s=/*index*/t[28]==/*selectedTab*/t[4]?"SelectedTab":"")&&B(e,"class",s),/*dailyeventsDetails*/8&a&&S(e,"height",/*event*/t[26].expandedInfo?"100%":"")},d(t){t&&b(e),a=!1,l()}}}
707
- // (159:16) {#if event.detailsExpanded}
708
- function li(t){let e,n,r,i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"";return{c(){e=w("div"),n=_(i),B(e,"class",r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))},m(t,r){g(t,e,r),f(e,n)},p(t,o){/*dailyeventsDetails, selectedTab*/24&o&&i!==(i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"")&&H(n,i),/*dailyeventsDetails, selectedTab*/24&o&&r!==(r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))&&B(e,"class",r)},d(t){t&&b(e)}}}
709
- // (108:8) {#each dailyeventsDetails as event, index}
710
- function ci(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,S,P,$=/*event*/t[26].title+"",L=/*event*/t[26].description+"";function I(t,e){/*event*/
711
- return 1==t[26].expandedInfo?oi:ii}let M=I(t),O=M(t);function R(){/*click_handler*/
712
- return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let D=/*event*/1==t[26].expandedInfo&&si(t);return{c(){e=w("div"),n=w("div"),r=_($),i=T(),o=w("div"),s=w("img"),u=T(),h=w("div"),d=_(L),p=T(),y=w("div"),m=w("button"),v=_(/*dailybuttontitle*/t[0]),E=T(),O.c(),x=T(),D&&D.c(),A=T(),B(n,"class","CasinoCalendarDailyTitle"),B(s,"class","CasinoCalendarFitImage"),l(s.src,a=/*event*/t[26].image)||B(s,"src",a),B(s,"alt",c=/*event*/t[26].image),B(o,"class","CasinoCalendarImage"),B(h,"class","CasinoCalendarDailyDescription"),B(m,"class","MoreInfoButton"),B(y,"class","CasinoCalendarTabs"),B(e,"class","CasinoCalendarDailyDetailsParent")},m(t,a){g(t,e,a),f(e,n),f(n,r),f(e,i),f(e,o),f(o,s),f(e,u),f(e,h),f(h,d),f(e,p),f(e,y),f(y,m),f(m,v),f(m,E),O.m(m,null),f(y,x),D&&D.m(y,null),f(e,A),S||(P=C(m,"click",R),S=!0)},p(e,n){t=e,/*dailyeventsDetails*/8&n&&$!==($=/*event*/t[26].title+"")&&H(r,$),/*dailyeventsDetails*/8&n&&!l(s.src,a=/*event*/t[26].image)&&B(s,"src",a),/*dailyeventsDetails*/8&n&&c!==(c=/*event*/t[26].image)&&B(s,"alt",c),/*dailyeventsDetails*/8&n&&L!==(L=/*event*/t[26].description+"")&&H(d,L),/*dailybuttontitle*/1&n&&H(v,/*dailybuttontitle*/t[0]),M!==(M=I(t))&&(O.d(1),O=M(t),O&&(O.c(),O.m(m,null))),/*event*/1==t[26].expandedInfo?D?D.p(t,n):(D=si(t),D.c(),D.m(y,null)):D&&(D.d(1),D=null)},d(t){t&&b(e),O.d(),D&&D.d(),S=!1,P()}}}function ui(e){let n;function r(t,e){/*isLoading*/
713
- return t[5]?ri:ni}let i=r(e),o=i(e);return{c(){n=w("div"),o.c(),this.c=t},m(t,r){g(t,n,r),o.m(n,null),
714
- /*div_binding*/e[19](n)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o.d(1),o=i(t),o&&(o.c(),o.m(n,null)))},i:t,o:t,d(t){t&&b(n),o.d(),
715
- /*div_binding*/e[19](null)}}}function hi(t,e,n){let r,{dailybackground:i=""}=e,{dailybuttontitle:o=""}=e,{dailyday:s=""}=e,{dailydescription:a="<p></p>"}=e,{dailyicon:l=""}=e,{dailytitle:c=""}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:d=""}=e,{translationUrl:p=""}=e,f=[],y=0,m=!0,g=!1,b=window.navigator.userAgent;!function({withLocale:t,translations:e}){Sr.subscribe((n=>{null==n&&(or.set(e),Sr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
659
+ function Hn(t,e,r){const n=t.slice();return n[27]=e[r],n[28]=e,n[29]=r,n}function Sn(t,e,r){const n=t.slice();return n[30]=e[r],n[29]=r,n}
660
+ // (106:4) {:else}
661
+ function Pn(t){let e,r,n,i,o,s,a,l,f,v=/*dailyeventsDetails*/t[3],w=[];for(let e=0;e<v.length;e+=1)w[e]=Rn(Hn(t,v,e));return{c(){e=p("div"),r=p("span"),r.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',n=m(),i=p("div"),o=y(/*dailyday*/t[1]),s=m();for(let t=0;t<w.length;t+=1)w[t].c();b(r,"class","ModalCloseBtn"),b(r,"role","button"),b(i,"class","CasinoCalendarDailyDay"),b(e,"class",a="CasinoCalendarDailyDetailsBackground "+(/*mobileView*/t[6]?"Mobile":""))},m(a,h){u(a,e,h),c(e,r),c(e,n),c(e,i),c(i,o),c(e,s);for(let t=0;t<w.length;t+=1)w[t]&&w[t].m(e,null);l||(f=g(r,"click",/*closeModal*/t[7]),l=!0)},p(t,r){if(/*dailyday*/2&r[0]&&E(o,/*dailyday*/t[1]),/*dailyeventsDetails, selectedTab, setActiveTab, handleDetailsArea, dailybuttontitle*/793&r[0]){let n;for(v=/*dailyeventsDetails*/t[3],n=0;n<v.length;n+=1){const i=Hn(t,v,n);w[n]?w[n].p(i,r):(w[n]=Rn(i),w[n].c(),w[n].m(e,null))}for(;n<w.length;n+=1)w[n].d(1);w.length=v.length}/*mobileView*/64&r[0]&&a!==(a="CasinoCalendarDailyDetailsBackground "+(/*mobileView*/t[6]?"Mobile":""))&&b(e,"class",a)},d(t){t&&h(e),d(w,t),l=!1,f()}}}
662
+ // (104:4) {#if isLoading}
663
+ function Ln(e){let r;return{c(){r=p("p"),r.textContent="Loading ...",b(r,"class","SearchLoading"),b(r,"part","SearchLoading")},m(t,e){u(t,r,e)},p:t,d(t){t&&h(r)}}}
664
+ // (136:16) {:else}
665
+ function In(t){let e,r;return{c(){e=f("svg"),r=f("path"),b(r,"stroke-linecap","round"),b(r,"stroke-linejoin","round"),b(r,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),b(e,"xmlns","http://www.w3.org/2000/svg"),b(e,"fill","none"),b(e,"viewBox","0 0 24 24"),b(e,"stroke-width","1.5"),b(e,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),b(e,"class","IconDown")},m(t,n){u(t,e,n),c(e,r)},d(t){t&&h(e)}}}
666
+ // (122:16) {#if event.expandedInfo == true}
667
+ function On(t){let e,r;return{c(){e=f("svg"),r=f("path"),b(r,"stroke-linecap","round"),b(r,"stroke-linejoin","round"),b(r,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),b(e,"xmlns","http://www.w3.org/2000/svg"),b(e,"fill","none"),b(e,"viewBox","0 0 24 24"),b(e,"stroke-width","1.5"),b(e,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),b(e,"class","IconUp")},m(t,n){u(t,e,n),c(e,r)},d(t){t&&h(e)}}}
668
+ // (154:14) {#if event.expandedInfo == true}
669
+ function Mn(t){let e,r,n,i=/*event*/t[27].details,o=[];for(let e=0;e<i.length;e+=1)o[e]=Nn(Sn(t,i,e));let s=/*event*/t[27].detailsExpanded&&Dn(t);return{c(){e=p("div");for(let t=0;t<o.length;t+=1)o[t].c();r=m(),s&&s.c(),n=y(""),b(e,"class","DetailsTabsTitles")},m(t,i){u(t,e,i);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);u(t,r,i),s&&s.m(t,i),u(t,n,i)},p(t,r){if(/*selectedTab, dailyeventsDetails, setActiveTab*/536&r[0]){let n;for(i=/*event*/t[27].details,n=0;n<i.length;n+=1){const s=Sn(t,i,n);o[n]?o[n].p(s,r):(o[n]=Nn(s),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}/*event*/t[27].detailsExpanded?s?s.p(t,r):(s=Dn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(t){t&&h(e),d(o,t),t&&h(r),s&&s.d(t),t&&h(n)}}}
670
+ // (156:18) {#each event.details as detail, index}
671
+ function Nn(t){let e,r,n,i,o,s,a,l,d=/*detail*/t[30].title+"";function f(){/*click_handler_1*/
672
+ return t[19](/*event*/t[27],/*index*/t[29])}return{c(){e=p("div"),r=p("div"),n=p("button"),o=m(),b(n,"class",i="HeaderButton "+(/*detail*/t[30].expandedTab?"Active":"")),b(r,"class","Header"),b(e,"class",s=/*index*/t[29]==/*selectedTab*/t[4]?"SelectedTab":""),b(e,"id","CollapseMoreInfoButton"),w(e,"height",/*event*/t[27].expandedInfo?"100%":"")},m(t,i){u(t,e,i),c(e,r),c(r,n),n.innerHTML=d,c(e,o),a||(l=g(n,"click",f),a=!0)},p(r,o){t=r,/*dailyeventsDetails*/8&o[0]&&d!==(d=/*detail*/t[30].title+"")&&(n.innerHTML=d),/*dailyeventsDetails*/8&o[0]&&i!==(i="HeaderButton "+(/*detail*/t[30].expandedTab?"Active":""))&&b(n,"class",i),/*selectedTab*/16&o[0]&&s!==(s=/*index*/t[29]==/*selectedTab*/t[4]?"SelectedTab":"")&&b(e,"class",s),/*dailyeventsDetails*/8&o[0]&&w(e,"height",/*event*/t[27].expandedInfo?"100%":"")},d(t){t&&h(e),a=!1,l()}}}
673
+ // (167:16) {#if event.detailsExpanded}
674
+ function Dn(t){let e,r,n=/*event*/t[27].details[/*selectedTab*/t[4]].description+"";return{c(){e=p("div"),b(e,"class",r="DetailTabsDescription "+(/*event*/t[27].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))},m(t,r){u(t,e,r),e.innerHTML=n},p(t,i){/*dailyeventsDetails, selectedTab*/24&i[0]&&n!==(n=/*event*/t[27].details[/*selectedTab*/t[4]].description+"")&&(e.innerHTML=n),/*dailyeventsDetails, selectedTab*/24&i[0]&&r!==(r="DetailTabsDescription "+(/*event*/t[27].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))&&b(e,"class",r)},d(t){t&&h(e)}}}
675
+ // (114:8) {#each dailyeventsDetails as event, index}
676
+ function Rn(t){let e,r,n,i,o,s,a,d,f,y,v,E,w,_,x,B,C,A,H=/*event*/t[27].title+"",S=/*event*/t[27].description+"";function P(t,e){/*event*/
677
+ return 1==t[27].expandedInfo?On:In}let L=P(t),I=L(t);function O(){/*click_handler*/
678
+ return t[18](/*event*/t[27],/*each_value*/t[28],/*index*/t[29])}let M=/*event*/1==t[27].expandedInfo&&Mn(t);return{c(){e=p("div"),r=p("div"),n=m(),i=p("div"),o=p("img"),d=m(),f=p("div"),y=m(),v=p("div"),E=p("button"),w=new T(!1),_=m(),I.c(),x=m(),M&&M.c(),B=m(),b(r,"class","CasinoCalendarDailyTitle"),b(o,"class","CasinoCalendarFitImage"),l(o.src,s=/*event*/t[27].image)||b(o,"src",s),b(o,"alt",a=/*event*/t[27].image),b(i,"class","CasinoCalendarImage"),b(f,"class","CasinoCalendarDailyDescription"),w.a=_,b(E,"class","MoreInfoButton"),b(v,"class","CasinoCalendarTabs"),b(e,"class","CasinoCalendarDailyDetailsParent")},m(s,a){u(s,e,a),c(e,r),r.innerHTML=H,c(e,n),c(e,i),c(i,o),c(e,d),c(e,f),f.innerHTML=S,c(e,y),c(e,v),c(v,E),w.m(/*dailybuttontitle*/t[0],E),c(E,_),I.m(E,null),c(v,x),M&&M.m(v,null),c(e,B),C||(A=g(E,"click",O),C=!0)},p(e,n){t=e,/*dailyeventsDetails*/8&n[0]&&H!==(H=/*event*/t[27].title+"")&&(r.innerHTML=H),/*dailyeventsDetails*/8&n[0]&&!l(o.src,s=/*event*/t[27].image)&&b(o,"src",s),/*dailyeventsDetails*/8&n[0]&&a!==(a=/*event*/t[27].image)&&b(o,"alt",a),/*dailyeventsDetails*/8&n[0]&&S!==(S=/*event*/t[27].description+"")&&(f.innerHTML=S),/*dailybuttontitle*/1&n[0]&&w.p(/*dailybuttontitle*/t[0]),L!==(L=P(t))&&(I.d(1),I=L(t),I&&(I.c(),I.m(E,null))),/*event*/1==t[27].expandedInfo?M?M.p(t,n):(M=Mn(t),M.c(),M.m(v,null)):M&&(M.d(1),M=null)},d(t){t&&h(e),I.d(),M&&M.d(),C=!1,A()}}}function $n(e){let r;function n(t,e){/*isLoading*/
679
+ return t[5]?Ln:Pn}let i=n(e),o=i(e);return{c(){r=p("div"),o.c(),this.c=t},m(t,n){u(t,r,n),o.m(r,null),
680
+ /*div_binding*/e[20](r)},p(t,e){i===(i=n(t))&&o?o.p(t,e):(o.d(1),o=i(t),o&&(o.c(),o.m(r,null)))},i:t,o:t,d(t){t&&h(r),o.d(),
681
+ /*div_binding*/e[20](null)}}}function kn(t,e,r){let n,{dailybackground:i=""}=e,{dailybuttontitle:o=""}=e,{dailyday:s=""}=e,{dailydescription:a="<p></p>"}=e,{dailyicon:l=""}=e,{dailytitle:c=""}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:d=""}=e,{translationUrl:p=""}=e,f=[],y=0,m=!0,g=!1,b=window.navigator.userAgent;!function({withLocale:t,translations:e}){an.subscribe((r=>{null==r&&(Dr.set(e),an.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
716
682
  /*dictionary.set(translations);
717
- locale.set(_locale);*/}({withLocale:"en",translations:{}});const v=t=>{"DailyEventsData"==t.data.type&&(n(5,m=!1),n(3,f=t.data.data),f.forEach((t=>{t.expandedInfo=!1,t.detailsExpanded=!1,t.details.forEach(((t,e)=>{t.expandedTab=0==e}))}))),"ModalClosed"==t.data.type&&(n(4,y=0),f.forEach(((t,e)=>{t.detailsExpanded=0==e,t.expandedInfo=0==e})))},w=()=>{var t;t=u,Sr.set(t)},E=t=>{n(4,y=0),n(3,f[t].detailsExpanded=!f[t].detailsExpanded,f),
683
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});const v=t=>{"DailyEventsData"==t.data.type&&(r(5,m=!1),r(3,f=t.data.data),f.forEach((t=>{t.expandedInfo=!1,t.detailsExpanded=!1,t.details.forEach(((t,e)=>{t.expandedTab=0==e}))})))},E=()=>{var t;t=u,an.set(t)},w=t=>{r(4,y=0),r(3,f[t].detailsExpanded=!f[t].detailsExpanded,f),
718
684
  //Analytics event
719
- "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},_=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Yr(b)&&n(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&n(9,i=t.dailybackground),"dailybuttontitle"in t&&n(0,o=t.dailybuttontitle),"dailyday"in t&&n(1,s=t.dailyday),"dailydescription"in t&&n(10,a=t.dailydescription),"dailyicon"in t&&n(11,l=t.dailyicon),"dailytitle"in t&&n(12,c=t.dailytitle),"lang"in t&&n(13,u=t.lang),"clientstyling"in t&&n(14,h=t.clientstyling),"clientstylingurl"in t&&n(15,d=t.clientstylingurl),"translationUrl"in t&&n(16,p=t.translationUrl)},t.$$.update=()=>{/*lang*/8192&t.$$.dirty&&u&&w(),/*clientstyling, customStylingContainer*/16388&t.$$.dirty&&h&&r&&(()=>{let t=document.createElement("style");t.innerHTML=h,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/32772&t.$$.dirty&&d&&r&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,r,f,y,m,g,E,_,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),E(r)},(t,e)=>{_(t,e)},function(t){U[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Qr,Jr,s,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["duration","session","userid","clientstyling","identifier","clientstylingurl","endpoint","haspanicbutton","gamepagemodalurl","sessioncheck","integratedgameframedesktop"]}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),Z()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),Z()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),Z()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),Z()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),Z()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),Z()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),Z()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),Z()}});
685
+ "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},T=(t,e)=>{r(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};B((()=>(window.addEventListener("message",v,!1),An(b)&&r(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&r(10,i=t.dailybackground),"dailybuttontitle"in t&&r(0,o=t.dailybuttontitle),"dailyday"in t&&r(1,s=t.dailyday),"dailydescription"in t&&r(11,a=t.dailydescription),"dailyicon"in t&&r(12,l=t.dailyicon),"dailytitle"in t&&r(13,c=t.dailytitle),"lang"in t&&r(14,u=t.lang),"clientstyling"in t&&r(15,h=t.clientstyling),"clientstylingurl"in t&&r(16,d=t.clientstylingurl),"translationUrl"in t&&r(17,p=t.translationUrl)},t.$$.update=()=>{/*lang*/16384&t.$$.dirty[0]&&u&&E(),/*clientstyling, customStylingContainer*/32772&t.$$.dirty[0]&&h&&n&&(()=>{let t=document.createElement("style");t.innerHTML=h,n.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/65540&t.$$.dirty[0]&&d&&n&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{n.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,n,f,y,m,g,()=>{window.postMessage({type:"ModalClosed"},window.location.href),r(4,y=0),f.forEach(((t,e)=>{t.detailsExpanded=0==e,t.expandedInfo=0==e}))},w,T,i,a,l,c,u,h,d,p,(t,e,n)=>{r(3,e[n].expandedInfo=!t.expandedInfo,f),w(n)},(t,e)=>{T(t,e)},function(t){A[t?"unshift":"push"]((()=>{n=t,r(2,n)}))}]}
720
686
  /* ../casino-calendar-daily-item/src/CasinoCalendarDailyItem.svelte generated by Svelte v3.59.2 */
721
- function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,$,L,I,M,O;return{c(){n=w("div"),r=w("div"),i=w("div"),o=w("div"),s=w("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=T(),c=w("div"),u=w("div"),h=w("img"),p=T(),y=w("div"),m=_(/*dailyday*/e[2]),v=T(),E=w("div"),x=T(),A=w("div"),P=w("button"),$=_(/*dailybuttontitle*/e[3]),this.c=t,B(s,"class","CalendarBar"),l(h.src,d=/*dailyicon*/e[1])||B(h,"src",d),B(h,"alt",/*dailyicon*/e[1]),B(u,"class","CasinoCalendarDailyIcon"),B(y,"class","CasinoCalendarDailyTitle"),B(E,"class","CasinoCalendarDailyItemDescription"),B(P,"class","MoreInfoButton"),B(A,"class","CasinoCalendarDailyItemButton"),B(c,"class",L="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/e[4]?"Tear":"")),S(c,"background-image","url('"+/*dailybackground*/e[0]+"')"),S(c,"background-size","cover"),S(c,"background-position","center"),S(c,"-webkit-background-size","cover"),S(c,"-moz-background-size","cover"),S(c,"-o-background-size","cover"),B(o,"class","CalendarCard"),B(i,"class","CasinoCalendarItems"),B(r,"class",I="Container "+(/*mobileView*/e[7]?"Mobile":""))},m(t,l){g(t,n,l),f(n,r),f(r,i),f(i,o),f(o,s),f(o,a),f(o,c),f(c,u),f(u,h),f(c,p),f(c,y),f(y,m),f(c,v),f(c,E),
722
- /*div5_binding*/e[14](E),f(c,x),f(c,A),f(A,P),f(P,$),
723
- /*div11_binding*/e[16](n),M||(O=C(P,"click",/*click_handler*/e[15]),M=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(h.src,d=/*dailyicon*/t[1])&&B(h,"src",d),/*dailyicon*/2&e&&B(h,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&H(m,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&H($,/*dailybuttontitle*/t[3]),/*index*/16&e&&L!==(L="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/t[4]?"Tear":""))&&B(c,"class",L),/*dailybackground*/1&e&&S(c,"background-image","url('"+/*dailybackground*/t[0]+"')"),/*mobileView*/128&e&&I!==(I="Container "+(/*mobileView*/t[7]?"Mobile":""))&&B(r,"class",I)},i:t,o:t,d(t){t&&b(n)
687
+ function Fn(e){let r,n,i,o,s,a,d,f,v,T,_,x,B,C,A,H,S,P,L,I,O,M,N;return{c(){r=p("div"),n=p("div"),i=p("div"),o=p("div"),s=p("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=m(),d=p("div"),f=p("div"),v=p("img"),_=m(),x=p("div"),B=y(/*dailyday*/e[2]),C=m(),A=p("div"),H=m(),S=p("div"),P=p("button"),L=y(/*dailybuttontitle*/e[3]),this.c=t,b(s,"class","CalendarBar"),l(v.src,T=/*dailyicon*/e[1])||b(v,"src",T),b(v,"alt",/*dailyicon*/e[1]),b(f,"class","CasinoCalendarDailyIcon"),b(x,"class","CasinoCalendarDailyTitle"),b(A,"class","CasinoCalendarDailyItemDescription"),b(P,"class","MoreInfoButton"),b(S,"class","CasinoCalendarDailyItemButton"),b(d,"class",I="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/e[4]?"Tear":"")),w(d,"background-image","url('"+/*dailybackground*/e[0]+"')"),w(d,"background-size","cover"),w(d,"background-position","center"),w(d,"-webkit-background-size","cover"),w(d,"-moz-background-size","cover"),w(d,"-o-background-size","cover"),b(o,"class","CalendarCard"),b(i,"class","CasinoCalendarItems"),b(n,"class",O="Container "+(/*mobileView*/e[7]?"Mobile":""))},m(t,l){u(t,r,l),c(r,n),c(n,i),c(i,o),c(o,s),c(o,a),c(o,d),c(d,f),c(f,v),c(d,_),c(d,x),c(x,B),c(d,C),c(d,A),
688
+ /*div5_binding*/e[14](A),c(d,H),c(d,S),c(S,P),c(P,L),
689
+ /*div11_binding*/e[16](r),M||(N=g(P,"click",/*click_handler*/e[15]),M=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(v.src,T=/*dailyicon*/t[1])&&b(v,"src",T),/*dailyicon*/2&e&&b(v,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&E(B,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&E(L,/*dailybuttontitle*/t[3]),/*index*/16&e&&I!==(I="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/t[4]?"Tear":""))&&b(d,"class",I),/*dailybackground*/1&e&&w(d,"background-image","url('"+/*dailybackground*/t[0]+"')"),/*mobileView*/128&e&&O!==(O="Container "+(/*mobileView*/t[7]?"Mobile":""))&&b(n,"class",O)},i:t,o:t,d(t){t&&h(r)
724
690
  /*div5_binding*/,e[14](null),
725
- /*div11_binding*/e[16](null),M=!1,O()}}}function pi(t,e,n){let r,i,{cmsendpoint:o=""}=e,{lang:s=""}=e,{dailybackground:a=""}=e,{dailyicon:l=""}=e,{dailyday:c=""}=e,{dailydescription:u="<p></p>"}=e,{dailybuttontitle:h=""}=e,{index:d="0"}=e,{clientstyling:p=""}=e,{clientstylingurl:f=""}=e;!function({withLocale:t,translations:e}){Sr.subscribe((n=>{null==n&&(or.set(e),Sr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
691
+ /*div11_binding*/e[16](null),M=!1,N()}}}function Un(t,e,r){let n,i,{cmsendpoint:o=""}=e,{lang:s=""}=e,{dailybackground:a=""}=e,{dailyicon:l=""}=e,{dailyday:c=""}=e,{dailydescription:u="<p></p>"}=e,{dailybuttontitle:h=""}=e,{index:d="0"}=e,{clientstyling:p=""}=e,{clientstylingurl:f=""}=e;!function({withLocale:t,translations:e}){an.subscribe((r=>{null==r&&(Dr.set(e),an.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
726
692
  /*dictionary.set(translations);
727
693
  locale.set(_locale);*/}({withLocale:"en",translations:{}});let y=!1,m=window.navigator.userAgent;const g=()=>{window.postMessage({type:"OpenCalendar",index:d},window.location.href),
728
694
  //Analytics event
729
- "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})};k((()=>{Yr(m)&&n(7,y=!0)}));return t.$$set=t=>{"cmsendpoint"in t&&n(9,o=t.cmsendpoint),"lang"in t&&n(10,s=t.lang),"dailybackground"in t&&n(0,a=t.dailybackground),"dailyicon"in t&&n(1,l=t.dailyicon),"dailyday"in t&&n(2,c=t.dailyday),"dailydescription"in t&&n(11,u=t.dailydescription),"dailybuttontitle"in t&&n(3,h=t.dailybuttontitle),"index"in t&&n(4,d=t.index),"clientstyling"in t&&n(12,p=t.clientstyling),"clientstylingurl"in t&&n(13,f=t.clientstylingurl)},t.$$.update=()=>{/*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/2063&t.$$.dirty&&l&&c&&u&&h&&a&&(()=>{
695
+ "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})};B((()=>{An(m)&&r(7,y=!0)}));return t.$$set=t=>{"cmsendpoint"in t&&r(9,o=t.cmsendpoint),"lang"in t&&r(10,s=t.lang),"dailybackground"in t&&r(0,a=t.dailybackground),"dailyicon"in t&&r(1,l=t.dailyicon),"dailyday"in t&&r(2,c=t.dailyday),"dailydescription"in t&&r(11,u=t.dailydescription),"dailybuttontitle"in t&&r(3,h=t.dailybuttontitle),"index"in t&&r(4,d=t.index),"clientstyling"in t&&r(12,p=t.clientstyling),"clientstylingurl"in t&&r(13,f=t.clientstylingurl)},t.$$.update=()=>{/*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/2063&t.$$.dirty&&l&&c&&u&&h&&a&&(()=>{
730
696
  // remove HTML tags
731
- let t=document.createElement("div");t.innerHTML=u,r&&r.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,r,y,g,o,s,u,p,f,function(t){U[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){U[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends lt{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}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6))}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile{max-height:70vh;margin-bottom:0}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},hi,ui,s,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["dailybackground","dailybuttontitle","dailyday","dailydescription","dailyicon","dailytitle","lang","clientstyling","clientstylingurl","translationUrl"]}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),Z()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),Z()}});
697
+ let t=document.createElement("div");t.innerHTML=u,n&&n.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,n,y,g,o,s,u,p,f,function(t){A[t?"unshift":"push"]((()=>{n=t,r(6,n)}))},()=>g(),function(t){A[t?"unshift":"push"]((()=>{i=t,r(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends U{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}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6));overflow-wrap:break-word}.ModalCloseBtn{position:absolute;top:10px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emfe-w-color-gray-300, #58586B)}.DetailsTabsTitles{display:flex;flex-direction:row}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px;flex-direction:column}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile{max-height:70vh;margin-bottom:0}",this.shadowRoot.appendChild(e),F(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},kn,$n,o,{dailybackground:10,dailybuttontitle:0,dailyday:1,dailydescription:11,dailyicon:12,dailytitle:13,lang:14,clientstyling:15,clientstylingurl:16,translationUrl:17},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["dailybackground","dailybuttontitle","dailyday","dailydescription","dailyicon","dailytitle","lang","clientstyling","clientstylingurl","translationUrl"]}get dailybackground(){return this.$$.ctx[10]}set dailybackground(t){this.$$set({dailybackground:t}),N()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),N()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),N()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),N()}get dailyicon(){return this.$$.ctx[12]}set dailyicon(t){this.$$set({dailyicon:t}),N()}get dailytitle(){return this.$$.ctx[13]}set dailytitle(t){this.$$set({dailytitle:t}),N()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),N()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}get translationUrl(){return this.$$.ctx[17]}set translationUrl(t){this.$$set({translationUrl:t}),N()}});
732
698
  /* src/CasinoCalendar.svelte generated by Svelte v3.59.2 */
733
- function fi(t,e,n){const r=t.slice();return r[21]=e[n],r[23]=n,r}
734
- // (106:6) {#if calendarCollections?.length}
735
- function yi(t){let e,n,r,i=/*calendarCollections*/t[4],o=[];for(let e=0;e<i.length;e+=1)o[e]=bi(fi(t,i,e));let s=/*calendarModalOpened*/1==t[9]&&vi(t);return{c(){e=w("div");for(let t=0;t<o.length;t+=1)o[t].c();n=T(),s&&s.c(),B(e,"class",r="CasinoCalendarItem "+(/*mobileView*/t[8]?"Mobile":""))},m(t,r){g(t,e,r);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);f(e,n),s&&s.m(e,null)},p(t,a){if(/*calendarCollections, lang, clientstyling, clientstylingurl*/23&a){let r;for(i=/*calendarCollections*/t[4],r=0;r<i.length;r+=1){const s=fi(t,i,r);o[r]?o[r].p(s,a):(o[r]=bi(s),o[r].c(),o[r].m(e,n))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}/*calendarModalOpened*/1==t[9]?s?s.p(t,a):(s=vi(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),/*mobileView*/256&a&&r!==(r="CasinoCalendarItem "+(/*mobileView*/t[8]?"Mobile":""))&&B(e,"class",r)},d(t){t&&b(e),v(o,t),s&&s.d()}}}
736
- // (103:4) {#if isLoading}
737
- function mi(e){let n;return{c(){n=w("div"),B(n,"class","LoadingSpinner"),B(n,"part","LoadingSpinner")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
738
- // (100:2) {#if hasErrors}
739
- function gi(e){let n;return{c(){n=w("p"),n.textContent="500 Error - Internal Server Error",B(n,"class","SearchLoading"),B(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
740
- // (108:10) {#each calendarCollections as dailyCalendarData, index }
741
- function bi(t){let e,n,r,i,o,s;return{c(){e=w("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[21].dailyBackground),A(e,"dailyicon",r=/*dailyCalendarData*/t[21].dailyIcon),A(e,"dailyday",i=/*dailyCalendarData*/t[21].dailyDay),A(e,"dailydescription",o=/*dailyCalendarData*/t[21].dailyDescription),A(e,"dailybuttontitle",s=/*dailyCalendarData*/t[21].dailyButtonTitle),A(e,"index",/*index*/t[23]),A(e,"lang",/*lang*/t[0]),A(e,"clientstyling",/*clientstyling*/t[1]),A(e,"clientstylingurl",/*clientstylingurl*/t[2])},m(t,n){g(t,e,n)},p(t,a){/*calendarCollections*/16&a&&n!==(n=/*dailyCalendarData*/t[21].dailyBackground)&&A(e,"dailybackground",n),/*calendarCollections*/16&a&&r!==(r=/*dailyCalendarData*/t[21].dailyIcon)&&A(e,"dailyicon",r),/*calendarCollections*/16&a&&i!==(i=/*dailyCalendarData*/t[21].dailyDay)&&A(e,"dailyday",i),/*calendarCollections*/16&a&&o!==(o=/*dailyCalendarData*/t[21].dailyDescription)&&A(e,"dailydescription",o),/*calendarCollections*/16&a&&s!==(s=/*dailyCalendarData*/t[21].dailyButtonTitle)&&A(e,"dailybuttontitle",s),/*lang*/1&a&&A(e,"lang",/*lang*/t[0]),/*clientstyling*/2&a&&A(e,"clientstyling",/*clientstyling*/t[1]),/*clientstylingurl*/4&a&&A(e,"clientstylingurl",/*clientstylingurl*/t[2])},d(t){t&&b(e)}}}
742
- // (122:10) {#if calendarModalOpened == true}
743
- function vi(t){let e,n,r,i,o,s,a,l;return{c(){e=w("casino-modal"),n=w("casino-calendar-daily-details"),A(n,"dailybackground",r=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyBackground),A(n,"dailybuttontitle",i=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyButtonTitle),A(n,"dailyday",o=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDay),A(n,"dailydescription",s=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDescription),A(n,"dailyicon",a=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyIcon),A(n,"dailytitle",l=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyTitle),A(n,"lang",/*lang*/t[0]),A(n,"clientstyling",/*clientstyling*/t[1]),A(n,"clientstylingurl",/*clientstylingurl*/t[2]),A(e,"identifier","Calendar")},m(t,r){g(t,e,r),f(e,n)},p(t,e){/*calendarCollections, selectedIndex*/48&e&&r!==(r=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyBackground)&&A(n,"dailybackground",r),/*calendarCollections, selectedIndex*/48&e&&i!==(i=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyButtonTitle)&&A(n,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/48&e&&o!==(o=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDay)&&A(n,"dailyday",o),/*calendarCollections, selectedIndex*/48&e&&s!==(s=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDescription)&&A(n,"dailydescription",s),/*calendarCollections, selectedIndex*/48&e&&a!==(a=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyIcon)&&A(n,"dailyicon",a),/*calendarCollections, selectedIndex*/48&e&&l!==(l=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyTitle)&&A(n,"dailytitle",l),/*lang*/1&e&&A(n,"lang",/*lang*/t[0]),/*clientstyling*/2&e&&A(n,"clientstyling",/*clientstyling*/t[1]),/*clientstylingurl*/4&e&&A(n,"clientstylingurl",/*clientstylingurl*/t[2])},d(t){t&&b(e)}}}function wi(e){let n;function r(t,e){/*hasErrors*/
744
- return t[7]?gi:/*isLoading*/t[6]?mi:/*calendarCollections*/t[4]?.length?yi:void 0}let i=r(e),o=i&&i(e);return{c(){n=w("div"),o&&o.c(),this.c=t},m(t,r){g(t,n,r),o&&o.m(n,null)
745
- /*div_binding*/,e[13](n)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n,null)))},i:t,o:t,d(t){t&&b(n),o&&o.d()
746
- /*div_binding*/,e[13](null)}}}function Ei(t,e,n){let r,i,{cmsendpoint:o=""}=e,{env:s=""}=e,{userroles:a=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,h=0,d=!0,p=!1,f=!1,y=window.navigator.userAgent,m=!1;const g=()=>{(()=>{n(6,d=!0);let t=new URL(`${o}/${l}/daily-calendar?env=${s}/`);t.searchParams.append("userRoles",a);let e=(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(y);e&&("PC"===e?t.searchParams.append("device","dk"):"iPad"===e||"iPhone"===e?t.searchParams.append("device","ios"):t.searchParams.append("device","mtWeb")),fetch(t.href).then((t=>t.json())).then((t=>{n(4,i=t)})).catch((t=>{console.log(t),n(7,p=!0)})).finally((()=>{n(6,d=!1)}))})()},b=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(5,h=t.data.index),n(9,m=!0),window.postMessage({type:"ShowModal",selectedIndex:h,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=i[h])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&n(9,m=!1)};return k((()=>(window.addEventListener("message",b,!1),Yr(y)&&n(8,f=!0),()=>{window.removeEventListener("message",b)}))),t.$$set=t=>{"cmsendpoint"in t&&n(10,o=t.cmsendpoint),"env"in t&&n(11,s=t.env),"userroles"in t&&n(12,a=t.userroles),"lang"in t&&n(0,l=t.lang),"clientstyling"in t&&n(1,c=t.clientstyling),"clientstylingurl"in t&&n(2,u=t.clientstylingurl)},t.$$.update=()=>{/*cmsendpoint, lang, env, userroles*/7169&t.$$.dirty&&o&&l&&s&&a&&g(),/*clientstyling, customStylingContainer*/10&t.$$.dirty&&c&&r&&(()=>{let t=document.createElement("style");t.innerHTML=c,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/12&t.$$.dirty&&u&&r&&(()=>{let t=new URL(u),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[l,c,u,r,i,h,d,p,f,m,o,s,a,function(t){U[t?"unshift":"push"]((()=>{r=t,n(3,r)}))}]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends lt{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}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 16px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:8px 6px;border-radius:5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},pi,di,s,{cmsendpoint:9,lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang","dailybackground","dailyicon","dailyday","dailydescription","dailybuttontitle","index","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[9]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),Z()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),Z()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}});class _i extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='.CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;text-align:left;gap:10px}.Mobile{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto\n }.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Ei,wi,s,{cmsendpoint:10,env:11,userroles:12,lang:0,clientstyling:1,clientstylingurl:2},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","env","userroles","lang","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[10]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get env(){return this.$$.ctx[11]}set env(t){this.$$set({env:t}),Z()}get userroles(){return this.$$.ctx[12]}set userroles(t){this.$$set({userroles:t}),Z()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}}return!customElements.get("casino-calendar")&&customElements.define("casino-calendar",_i),_i}));
699
+ function Gn(t,e,r){const n=t.slice();return n[21]=e[r],n[23]=r,n}
700
+ // (105:6) {#if calendarCollections?.length}
701
+ function jn(t){let e,r,n,i=/*calendarCollections*/t[4],o=[];for(let e=0;e<i.length;e+=1)o[e]=Xn(Gn(t,i,e));let s=/*calendarModalOpened*/1==t[9]&&Kn(t);return{c(){e=p("div");for(let t=0;t<o.length;t+=1)o[t].c();r=m(),s&&s.c(),b(e,"class",n="CasinoCalendarItem "+(/*mobileView*/t[8]?"Mobile":""))},m(t,n){u(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);c(e,r),s&&s.m(e,null)},p(t,a){if(/*calendarCollections, lang, clientstyling, clientstylingurl*/23&a){let n;for(i=/*calendarCollections*/t[4],n=0;n<i.length;n+=1){const s=Gn(t,i,n);o[n]?o[n].p(s,a):(o[n]=Xn(s),o[n].c(),o[n].m(e,r))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}/*calendarModalOpened*/1==t[9]?s?s.p(t,a):(s=Kn(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),/*mobileView*/256&a&&n!==(n="CasinoCalendarItem "+(/*mobileView*/t[8]?"Mobile":""))&&b(e,"class",n)},d(t){t&&h(e),d(o,t),s&&s.d()}}}
702
+ // (102:4) {#if isLoading}
703
+ function zn(e){let r;return{c(){r=p("div"),b(r,"class","LoadingSpinner"),b(r,"part","LoadingSpinner")},m(t,e){u(t,r,e)},p:t,d(t){t&&h(r)}}}
704
+ // (99:2) {#if hasErrors}
705
+ function Vn(e){let r;return{c(){r=p("p"),r.textContent="500 Error - Internal Server Error",b(r,"class","SearchLoading"),b(r,"part","SearchLoading")},m(t,e){u(t,r,e)},p:t,d(t){t&&h(r)}}}
706
+ // (107:10) {#each calendarCollections as dailyCalendarData, index }
707
+ function Xn(t){let e,r,n,i,o,s;return{c(){e=p("casino-calendar-daily-item"),v(e,"dailybackground",r=/*dailyCalendarData*/t[21].dailyBackground),v(e,"dailyicon",n=/*dailyCalendarData*/t[21].dailyIcon),v(e,"dailyday",i=/*dailyCalendarData*/t[21].dailyDay),v(e,"dailydescription",o=/*dailyCalendarData*/t[21].dailyDescription),v(e,"dailybuttontitle",s=/*dailyCalendarData*/t[21].dailyButtonTitle),v(e,"index",/*index*/t[23]),v(e,"lang",/*lang*/t[0]),v(e,"clientstyling",/*clientstyling*/t[1]),v(e,"clientstylingurl",/*clientstylingurl*/t[2])},m(t,r){u(t,e,r)},p(t,a){/*calendarCollections*/16&a&&r!==(r=/*dailyCalendarData*/t[21].dailyBackground)&&v(e,"dailybackground",r),/*calendarCollections*/16&a&&n!==(n=/*dailyCalendarData*/t[21].dailyIcon)&&v(e,"dailyicon",n),/*calendarCollections*/16&a&&i!==(i=/*dailyCalendarData*/t[21].dailyDay)&&v(e,"dailyday",i),/*calendarCollections*/16&a&&o!==(o=/*dailyCalendarData*/t[21].dailyDescription)&&v(e,"dailydescription",o),/*calendarCollections*/16&a&&s!==(s=/*dailyCalendarData*/t[21].dailyButtonTitle)&&v(e,"dailybuttontitle",s),/*lang*/1&a&&v(e,"lang",/*lang*/t[0]),/*clientstyling*/2&a&&v(e,"clientstyling",/*clientstyling*/t[1]),/*clientstylingurl*/4&a&&v(e,"clientstylingurl",/*clientstylingurl*/t[2])},d(t){t&&h(e)}}}
708
+ // (121:10) {#if calendarModalOpened == true}
709
+ function Kn(t){let e,r,n,i,o,s,a,l;return{c(){e=p("div"),r=p("casino-calendar-daily-details"),v(r,"dailybackground",n=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyBackground),v(r,"dailybuttontitle",i=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyButtonTitle),v(r,"dailyday",o=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDay),v(r,"dailydescription",s=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDescription),v(r,"dailyicon",a=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyIcon),v(r,"dailytitle",l=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyTitle),v(r,"lang",/*lang*/t[0]),v(r,"clientstyling",/*clientstyling*/t[1]),v(r,"clientstylingurl",/*clientstylingurl*/t[2]),b(e,"class","CalendarDetailsWrapper")},m(t,n){u(t,e,n),c(e,r)},p(t,e){/*calendarCollections, selectedIndex*/48&e&&n!==(n=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyBackground)&&v(r,"dailybackground",n),/*calendarCollections, selectedIndex*/48&e&&i!==(i=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyButtonTitle)&&v(r,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/48&e&&o!==(o=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDay)&&v(r,"dailyday",o),/*calendarCollections, selectedIndex*/48&e&&s!==(s=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyDescription)&&v(r,"dailydescription",s),/*calendarCollections, selectedIndex*/48&e&&a!==(a=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyIcon)&&v(r,"dailyicon",a),/*calendarCollections, selectedIndex*/48&e&&l!==(l=/*calendarCollections*/t[4][/*selectedIndex*/t[5]].dailyTitle)&&v(r,"dailytitle",l),/*lang*/1&e&&v(r,"lang",/*lang*/t[0]),/*clientstyling*/2&e&&v(r,"clientstyling",/*clientstyling*/t[1]),/*clientstylingurl*/4&e&&v(r,"clientstylingurl",/*clientstylingurl*/t[2])},d(t){t&&h(e)}}}function Wn(e){let r;function n(t,e){/*hasErrors*/
710
+ return t[7]?Vn:/*isLoading*/t[6]?zn:/*calendarCollections*/t[4]?.length?jn:void 0}let i=n(e),o=i&&i(e);return{c(){r=p("div"),o&&o.c(),this.c=t},m(t,n){u(t,r,n),o&&o.m(r,null)
711
+ /*div_binding*/,e[13](r)},p(t,[e]){i===(i=n(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(r,null)))},i:t,o:t,d(t){t&&h(r),o&&o.d()
712
+ /*div_binding*/,e[13](null)}}}function Yn(t,e,r){let n,i,{cmsendpoint:o=""}=e,{env:s=""}=e,{userroles:a=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,h=0,d=!0,p=!1,f=!1,y=window.navigator.userAgent,m=!1;const g=()=>{(()=>{r(6,d=!0);let t=new URL(`${o}/${l}/daily-calendar?env=${s}/`);t.searchParams.append("userRoles",a);let e=(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(y);e&&("PC"===e?t.searchParams.append("device","dk"):"iPad"===e||"iPhone"===e?t.searchParams.append("device","ios"):t.searchParams.append("device","mtWeb")),fetch(t.href).then((t=>t.json())).then((t=>{r(4,i=t)})).catch((t=>{console.log(t),r(7,p=!0)})).finally((()=>{r(6,d=!1)}))})()},b=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(r(5,h=t.data.index),r(9,m=!0),window.postMessage({type:"ShowModal",selectedIndex:h,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=i[h])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&r(9,m=!1)};return B((()=>(window.addEventListener("message",b,!1),An(y)&&r(8,f=!0),()=>{window.removeEventListener("message",b)}))),t.$$set=t=>{"cmsendpoint"in t&&r(10,o=t.cmsendpoint),"env"in t&&r(11,s=t.env),"userroles"in t&&r(12,a=t.userroles),"lang"in t&&r(0,l=t.lang),"clientstyling"in t&&r(1,c=t.clientstyling),"clientstylingurl"in t&&r(2,u=t.clientstylingurl)},t.$$.update=()=>{/*cmsendpoint, lang, env, userroles*/7169&t.$$.dirty&&o&&l&&s&&a&&g(),/*clientstyling, customStylingContainer*/10&t.$$.dirty&&c&&n&&(()=>{let t=document.createElement("style");t.innerHTML=c,n.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/12&t.$$.dirty&&u&&n&&(()=>{let t=new URL(u),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{n.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[l,c,u,n,i,h,d,p,f,m,o,s,a,function(t){A[t?"unshift":"push"]((()=>{n=t,r(3,n)}))}]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends U{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}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 16px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:8px 6px;border-radius:5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}',this.shadowRoot.appendChild(e),F(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Un,Fn,o,{cmsendpoint:9,lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["cmsendpoint","lang","dailybackground","dailyicon","dailyday","dailydescription","dailybuttontitle","index","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[9]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),N()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),N()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),N()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),N()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),N()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),N()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),N()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),N()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}});class Zn extends U{constructor(t){super();const e=document.createElement("style");e.textContent='.CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow:auto}.Mobile{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:var(--emfe-w-color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto\n }.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(e),F(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Yn,Wn,o,{cmsendpoint:10,env:11,userroles:12,lang:0,clientstyling:1,clientstylingurl:2},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["cmsendpoint","env","userroles","lang","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[10]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),N()}get env(){return this.$$.ctx[11]}set env(t){this.$$set({env:t}),N()}get userroles(){return this.$$.ctx[12]}set userroles(t){this.$$set({userroles:t}),N()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),N()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}}return!customElements.get("casino-calendar")&&customElements.define("casino-calendar",Zn),Zn}));
747
713
  //# sourceMappingURL=casino-calendar.js.map