@everymatrix/casino-tournaments-customize-page-controller 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +30 -0
  2. package/dist/casino-tournaments-customize-page-controller.js +1618 -0
  3. package/dist/casino-tournaments-customize-page-controller.js.map +1 -0
  4. package/index.html +56 -0
  5. package/index.js +1 -0
  6. package/package.json +41 -0
  7. package/public/favicon.png +0 -0
  8. package/public/reset.css +48 -0
  9. package/rollup.config.js +61 -0
  10. package/src/CasinoTournamentsCellHandler.ts +102 -0
  11. package/src/CasinoTournamentsCustomizePageController.svelte +1580 -0
  12. package/src/CasinoTournamentsDetailDataCenter.ts +51 -0
  13. package/src/Cells/BackButtonCell.svelte +37 -0
  14. package/src/Cells/Cell.svelte +7 -0
  15. package/src/Cells/CellRouter.svelte +10 -0
  16. package/src/Cells/Comonent.svelte +338 -0
  17. package/src/Cells/DescriptionCell.svelte +18 -0
  18. package/src/Cells/DurationCell.svelte +133 -0
  19. package/src/Cells/GamesCell.svelte +181 -0
  20. package/src/Cells/JoinButtonCell.svelte +218 -0
  21. package/src/Cells/LeaderboardCell.svelte +635 -0
  22. package/src/Cells/PrizesCell.svelte +160 -0
  23. package/src/Cells/ScoreCriteriaCell.svelte +49 -0
  24. package/src/Cells/SeeGamesLine.svelte +27 -0
  25. package/src/Cells/StartDateCell.svelte +78 -0
  26. package/src/Cells/StatusTag.svelte +57 -0
  27. package/src/Cells/TermsAndConditionsCell.svelte +1 -0
  28. package/src/Cells/ThumbnailCell.svelte +52 -0
  29. package/src/Cells/TitleCell.svelte +19 -0
  30. package/src/Cells/TitleTextCell.svelte +95 -0
  31. package/src/Cells/UserEnrollTag.svelte +39 -0
  32. package/src/Cells/i18n.js +29 -0
  33. package/src/Cells/img/arrow-down.svg +14 -0
  34. package/src/Cells/img/arrow-up.svg +12 -0
  35. package/src/Cells/img/calendar.svg +3 -0
  36. package/src/Cells/img/first-place1.png +0 -0
  37. package/src/Cells/img/first-place1.svg +15 -0
  38. package/src/Cells/img/first-place2.png +0 -0
  39. package/src/Cells/img/first-place2.svg +8 -0
  40. package/src/Cells/img/first-place3.png +0 -0
  41. package/src/Cells/img/first-place3.svg +15 -0
  42. package/src/Cells/translations.js +933 -0
  43. package/src/DynamicalLoader.svelte +76 -0
  44. package/src/config/layout.js +370 -0
  45. package/src/i18n.js +29 -0
  46. package/src/index.ts +5 -0
  47. package/stories/CasinoTournamentsCustomizePageController.stories.js +13 -0
  48. package/tsconfig.json +6 -0
@@ -0,0 +1,1618 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e,t){
2
+ // @ts-ignore
3
+ for(const r in t)e[r]=t[r];return e}function r(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(r)}function o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,l;function u(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function d(e,t,r){e.$$.on_destroy.push(c(t,r))}function h(e){const t={};for(const r in e)"$"!==r[0]&&(t[r]=e[r]);return t}function f(t){return t&&o(t.destroy)?t.destroy:e}function m(e,t){e.appendChild(t)}function p(e,t,r){e.insertBefore(t,r||null)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function b(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function y(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function v(){return C(" ")}function T(){return C("")}function x(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function _(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function k(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function S(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function P(e,t,r){e.classList[r?"add":"remove"](t)}function E(e){const t={};for(const r of e)t[r.name]=r.value;return t}function $(e){l=e}function L(){if(!l)throw new Error("Function called outside component initialization");return l}
4
+ /**
5
+ * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
6
+ * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
7
+ * it can be called from an external module).
8
+ *
9
+ * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
10
+ *
11
+ * https://svelte.dev/docs#run-time-svelte-onmount
12
+ */function D(e){L().$$.on_mount.push(e)}const M=[],A=[],R=[],B=[],F=Promise.resolve();let O=!1;function z(e){R.push(e)}
13
+ // flush() calls callbacks in this order:
14
+ // 1. All beforeUpdate callbacks, in order: parents before children
15
+ // 2. All bind:this callbacks, in reverse order: children before parents.
16
+ // 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
17
+ // for afterUpdates called during the initial onMount, which are called in
18
+ // reverse order: children before parents.
19
+ // Since callbacks might update component values, which could trigger another
20
+ // call to flush(), the following steps guard against this:
21
+ // 1. During beforeUpdate, any updated components will be added to the
22
+ // dirty_components array and will cause a reentrant call to flush(). Because
23
+ // the flush index is kept outside the function, the reentrant call will pick
24
+ // up where the earlier call left off and go through all dirty components. The
25
+ // current_component value is saved and restored so that the reentrant call will
26
+ // not interfere with the "parent" flush() call.
27
+ // 2. bind:this callbacks cannot trigger new flush() calls.
28
+ // 3. During afterUpdate, any updated components will NOT have their afterUpdate
29
+ // callback called a second time; the seen_callbacks set, outside the flush()
30
+ // function, guarantees this behavior.
31
+ const H=new Set;let N=0;// Do *not* move this inside the flush() function
32
+ function U(){
33
+ // Do not reenter flush while dirty components are updated, as this can
34
+ // result in an infinite loop. Instead, let the inner flush handle it.
35
+ // Reentrancy is ok afterwards for bindings etc.
36
+ if(0!==N)return;const e=l;do{
37
+ // first, call beforeUpdate functions
38
+ // and update components
39
+ try{for(;N<M.length;){const e=M[N];N++,$(e),I(e.$$)}}catch(e){
40
+ // reset dirty state to not end up in a deadlocked state and then rethrow
41
+ throw M.length=0,N=0,e}for($(null),M.length=0,N=0;A.length;)A.pop()();
42
+ // then, once components are updated, call
43
+ // afterUpdate functions. This may cause
44
+ // subsequent updates...
45
+ for(let e=0;e<R.length;e+=1){const t=R[e];H.has(t)||(
46
+ // ...so guard against infinite loops
47
+ H.add(t),t())}R.length=0}while(M.length);for(;B.length;)B.pop()();O=!1,H.clear(),$(e)}function I(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(z)}}const Y=new Set;let j,G;function V(){j={r:0,c:[],p:j}}function W(){j.r||i(j.c),j=j.p}function q(e,t){e&&e.i&&(Y.delete(e),e.i(t))}function J(e,t,r,n){if(e&&e.o){if(Y.has(e))return;Y.add(e),j.c.push((()=>{Y.delete(e),n&&(r&&e.d(1),n())})),e.o(t)}else n&&n()}function Z(e,t){const r={},n={},i={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(n[e]=1);for(const e in s)i[e]||(r[e]=s[e],i[e]=1);e[o]=s}else for(const e in a)i[e]=1}for(const e in n)e in r||(r[e]=void 0);return r}function K(e){return"object"==typeof e&&null!==e?e:{}}function X(e){e&&e.c()}function Q(e,t,n,a){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),a||
48
+ // onMount happens before the initial afterUpdate
49
+ z((()=>{const t=e.$$.on_mount.map(r).filter(o);
50
+ // if the component was destroyed immediately
51
+ // it will update the `$$.on_destroy` reference to `null`.
52
+ // the destructured on_destroy may still reference to the old array
53
+ e.$$.on_destroy?e.$$.on_destroy.push(...t):
54
+ // Edge case - component was destroyed immediately,
55
+ // most likely as a result of a binding initialising
56
+ i(t),e.$$.on_mount=[]})),l.forEach(z)}function ee(e,t){const r=e.$$;null!==r.fragment&&(i(r.on_destroy),r.fragment&&r.fragment.d(t),
57
+ // TODO null out other refs, including component.$$ (but need to
58
+ // preserve final state?)
59
+ r.on_destroy=r.fragment=null,r.ctx=[])}function te(e,t){-1===e.$$.dirty[0]&&(M.push(e),O||(O=!0,F.then(U)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function re(t,r,o,a,s,u,c,d=[-1]){const h=l;$(t);const f=t.$$={fragment:null,ctx:[],
60
+ // state
61
+ props:u,update:e,not_equal:s,bound:n(),
62
+ // lifecycle
63
+ on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(h?h.$$.context:[])),
64
+ // everything else
65
+ callbacks:n(),dirty:d,skip_bound:!1,root:r.target||h.$$.root};c&&c(f.root);let m=!1;if(f.ctx=o?o(t,r.props||{},((e,r,...n)=>{const i=n.length?n[0]:r;return f.ctx&&s(f.ctx[e],f.ctx[e]=i)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](i),m&&te(t,e)),r})):[],f.update(),m=!0,i(f.before_update),
66
+ // `false` as a special case of no DOM component
67
+ f.fragment=!!a&&a(f.ctx),r.target){if(r.hydrate){const e=function(e){return Array.from(e.childNodes)}(r.target);
68
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
69
+ f.fragment&&f.fragment.l(e),e.forEach(g)}else
70
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
71
+ f.fragment&&f.fragment.c();r.intro&&q(t.$$.fragment),Q(t,r.target,r.anchor,r.customElement),U()}$(h)}"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(r).filter(o);
72
+ // @ts-ignore todo: improve typings
73
+ for(const e in this.$$.slotted)
74
+ // @ts-ignore todo: improve typings
75
+ this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){ee(this,1),this.$destroy=e}$on(t,r){
76
+ // TODO should this delegate to addEventListener?
77
+ if(!o(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const ne=[];
78
+ /**
79
+ * Creates a `Readable` store that allows reading by subscription.
80
+ * @param value initial value
81
+ * @param {StartStopNotifier}start start and stop notifications for subscriptions
82
+ */
83
+ /**
84
+ * Create a `Writable` store that allows both updating and reading by subscription.
85
+ * @param {*=}value initial value
86
+ * @param {StartStopNotifier=}start start and stop notifications for subscriptions
87
+ */
88
+ function ie(t,r=e){let n;const i=new Set;function o(e){if(a(t,e)&&(t=e,n)){// store is ready
89
+ const e=!ne.length;for(const e of i)e[1](),ne.push(e,t);if(e){for(let e=0;e<ne.length;e+=2)ne[e][0](ne[e+1]);ne.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(a,s=e){const l=[a,s];return i.add(l),1===i.size&&(n=r(o)||e),a(t),()=>{i.delete(l),0===i.size&&(n(),n=null)}}}}function oe(t,r,n){const a=!Array.isArray(t),s=a?[t]:t,l=r.length<2;return u=t=>{let n=!1;const u=[];let d=0,h=e;const f=()=>{if(d)return;h();const n=r(a?u[0]:u,t);l?t(n):h=o(n)?n:e},m=s.map(((e,t)=>c(e,(e=>{u[t]=e,d&=~(1<<t),n&&f()}),(()=>{d|=1<<t}))));return n=!0,f(),function(){i(m),h()}},{subscribe:ie(n,u).subscribe};var u}var ae=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===se}(e)}
90
+ // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
91
+ (e)};var se="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function le(e,t){return!1!==t.clone&&t.isMergeableObject(e)?fe((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function ue(e,t,r){return e.concat(t).map((function(e){return le(e,r)}))}function ce(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function de(e,t){try{return t in e}catch(e){return!1}}
92
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
93
+ function he(e,t,r){var n={};return r.isMergeableObject(e)&&ce(e).forEach((function(t){n[t]=le(e[t],r)})),ce(t).forEach((function(i){(function(e,t){return de(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
94
+ })(e,i)||(de(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return fe;var r=t.customMerge(e);return"function"==typeof r?r:fe}(i,r)(e[i],t[i],r):n[i]=le(t[i],r))})),n}function fe(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ue,r.isMergeableObject=r.isMergeableObject||ae,
95
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
96
+ // implementations can use it. The caller may not replace it.
97
+ r.cloneUnlessOtherwiseSpecified=le;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):he(e,t,r):le(t,r)}fe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return fe(e,r,t)}),{})};var me=fe,pe=function(e,t){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},pe(e,t)};function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}pe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var be,ye,we,Ce=function(){return Ce=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ce.apply(this,arguments)};function ve(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
98
+ /**
99
+ * Type Guards
100
+ */
101
+ function Te(e){return e.type===ye.literal}function xe(e){return e.type===ye.argument}function _e(e){return e.type===ye.number}function ke(e){return e.type===ye.date}function Se(e){return e.type===ye.time}function Pe(e){return e.type===ye.select}function Ee(e){return e.type===ye.plural}function $e(e){return e.type===ye.pound}function Le(e){return e.type===ye.tag}function De(e){return!(!e||"object"!=typeof e||e.type!==we.number)}function Me(e){return!(!e||"object"!=typeof e||e.type!==we.dateTime)}
102
+ // @generated from regex-gen.ts
103
+ !function(e){
104
+ /** Argument is unclosed (e.g. `{0`) */
105
+ e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
106
+ /** Argument is empty (e.g. `{}`). */
107
+ e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
108
+ /** Argument is malformed (e.g. `{foo!}``) */
109
+ e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
110
+ /** Expect an argument type (e.g. `{foo,}`) */
111
+ e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
112
+ /** Unsupported argument type (e.g. `{foo,foo}`) */
113
+ e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
114
+ /** Expect an argument style (e.g. `{foo, number, }`) */
115
+ e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
116
+ /** The number skeleton is invalid. */
117
+ e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
118
+ /** The date time skeleton is invalid. */
119
+ e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
120
+ /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */
121
+ e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
122
+ /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */
123
+ e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
124
+ /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */
125
+ e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
126
+ /** Missing select argument options (e.g. `{foo, select}`) */
127
+ e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
128
+ /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */
129
+ e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
130
+ /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */
131
+ e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
132
+ /** Expecting a selector in `select` argument (e.g `{foo, select}`) */
133
+ e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
134
+ /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */
135
+ e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
136
+ /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
137
+ e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
138
+ /**
139
+ * Expecting a message fragment after the `plural` or `selectordinal` selector
140
+ * (e.g. `{foo, plural, one}`)
141
+ */
142
+ e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
143
+ /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
144
+ e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
145
+ /**
146
+ * Duplicate selectors in `plural` or `selectordinal` argument.
147
+ * (e.g. {foo, plural, one {#} one {#}})
148
+ */
149
+ e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
150
+ /** Duplicate selectors in `select` argument.
151
+ * (e.g. {foo, select, apple {apple} apple {apple}})
152
+ */
153
+ e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
154
+ /** Plural or select argument option must have `other` clause. */
155
+ e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
156
+ /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */
157
+ e[e.INVALID_TAG=23]="INVALID_TAG",
158
+ /** The tag name is invalid. (e.g. `<123>foo</123>`) */
159
+ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
160
+ /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
161
+ e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
162
+ /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
163
+ e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(be||(be={})),function(e){
164
+ /**
165
+ * Raw text
166
+ */
167
+ e[e.literal=0]="literal",
168
+ /**
169
+ * Variable w/o any format, e.g `var` in `this is a {var}`
170
+ */
171
+ e[e.argument=1]="argument",
172
+ /**
173
+ * Variable w/ number format
174
+ */
175
+ e[e.number=2]="number",
176
+ /**
177
+ * Variable w/ date format
178
+ */
179
+ e[e.date=3]="date",
180
+ /**
181
+ * Variable w/ time format
182
+ */
183
+ e[e.time=4]="time",
184
+ /**
185
+ * Variable w/ select format
186
+ */
187
+ e[e.select=5]="select",
188
+ /**
189
+ * Variable w/ plural format
190
+ */
191
+ e[e.plural=6]="plural",
192
+ /**
193
+ * Only possible within plural argument.
194
+ * This is the `#` symbol that will be substituted with the count.
195
+ */
196
+ e[e.pound=7]="pound",
197
+ /**
198
+ * XML-like tag
199
+ */
200
+ e[e.tag=8]="tag"}(ye||(ye={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(we||(we={}));var Ae=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Re=/(?:[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;
201
+ /**
202
+ * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
203
+ * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
204
+ * with some tweaks
205
+ */
206
+ /**
207
+ * Parse Date time skeleton into Intl.DateTimeFormatOptions
208
+ * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
209
+ * @public
210
+ * @param skeleton skeleton string
211
+ */
212
+ function Be(e){var t={};return e.replace(Re,(function(e){var r=e.length;switch(e[0]){
213
+ // Era
214
+ case"G":t.era=4===r?"long":5===r?"narrow":"short";break;
215
+ // Year
216
+ case"y":t.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");
217
+ // Quarter
218
+ case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
219
+ // Month
220
+ case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;
221
+ // Week
222
+ case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.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");
223
+ // Weekday
224
+ case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;
225
+ // Period
226
+ case"a":// AM, PM
227
+ t.hour12=!0;break;case"b":// am, pm, noon, midnight
228
+ case"B":// flexible day periods
229
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
230
+ // Hour
231
+ case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.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");
232
+ // Minute
233
+ case"m":t.minute=["numeric","2-digit"][r-1];break;
234
+ // Second
235
+ case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
236
+ // Zone
237
+ case"z":// 1..3, 4: specific non-location format
238
+ t.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
239
+ case"O":// 1, 4: miliseconds in day short, long
240
+ case"v":// 1, 4: generic non-location format
241
+ case"V":// 1, 2, 3, 4: time zone ID or city
242
+ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
243
+ case"x":// 1, 2, 3, 4: The ISO8601 varios formats
244
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
245
+ // @generated from regex-gen.ts
246
+ var Fe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Oe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ze=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,Ne=/^(0+)$/;function Ue(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ze,(function(e,r,n){
247
+ // @@@ case
248
+ return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Ie(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ye(e){
249
+ // Engineering
250
+ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function je(e){var t=Ie(e);return t||{}}
251
+ /**
252
+ * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
253
+ */function Ge(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Ce(Ce(Ce({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return Ce(Ce({},e),je(t))}),{}));continue;case"engineering":t=Ce(Ce(Ce({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return Ce(Ce({},e),je(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
254
+ // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
255
+ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
256
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
257
+ case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(He,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}
258
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
259
+ if(Ne.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Oe.test(i.stem)){
260
+ // Precision
261
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
262
+ // precision-integer case
263
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Oe,(function(e,r,n,i,o,a){
264
+ // .000* case (before ICU67 it was .000+)
265
+ return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];
266
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
267
+ "w"===o?t=Ce(Ce({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Ce(Ce({},t),Ue(o)))}
268
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
269
+ else if(ze.test(i.stem))t=Ce(Ce({},t),Ue(i.stem));else{var a=Ie(i.stem);a&&(t=Ce(Ce({},t),a));var s=Ye(i.stem);s&&(t=Ce(Ce({},t),s))}}return t}
270
+ // @generated from time-data-gen.ts
271
+ // prettier-ignore
272
+ var Ve,We={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"]};
273
+ /**
274
+ * Returns the best matching date time pattern if a date time skeleton
275
+ * pattern is provided with a locale. Follows the Unicode specification:
276
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns
277
+ * @param skeleton date time skeleton pattern that possibly includes j, J or C
278
+ * @param locale
279
+ */
280
+ /**
281
+ * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)
282
+ * of the given `locale` to the corresponding time pattern.
283
+ * @param locale
284
+ */
285
+ function qe(e){var t=e.hourCycle;if(void 0===t&&
286
+ // @ts-ignore hourCycle(s) is not identified yet
287
+ e.hourCycles&&
288
+ // @ts-ignore
289
+ e.hourCycles.length&&(
290
+ // @ts-ignore
291
+ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
292
+ // TODO: Once hourCycle is fully supported remove the following with data generation
293
+ var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(We[r||""]||We[n||""]||We["".concat(n,"-001")]||We["001"])[0]}var Je=new RegExp("^".concat(Ae.source,"*")),Ze=new RegExp("".concat(Ae.source,"*$"));function Ke(e,t){return{start:e,end:t}}
294
+ // #region Ponyfills
295
+ // Consolidate these variables up top for easier toggling during debugging
296
+ var Xe=!!String.prototype.startsWith,Qe=!!String.fromCodePoint,et=!!Object.fromEntries,tt=!!String.prototype.codePointAt,rt=!!String.prototype.trimStart,nt=!!String.prototype.trimEnd,it=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ot=!0;try{
297
+ /**
298
+ * legacy Edge or Xbox One browser
299
+ * Unicode flag support: supported
300
+ * Pattern_Syntax support: not supported
301
+ * See https://github.com/formatjs/formatjs/issues/2822
302
+ */
303
+ ot="a"===(null===(Ve=ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ve?void 0:Ve[0])}catch(e){ot=!1}var at,st=Xe?// Native
304
+ function(e,t,r){return e.startsWith(t,r)}:// For IE11
305
+ function(e,t,r){return e.slice(r,r+t.length)===t},lt=Qe?String.fromCodePoint:// IE11
306
+ function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[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},ut=
307
+ // native
308
+ et?Object.fromEntries:// Ponyfill
309
+ function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},ct=tt?// Native
310
+ function(e,t){return e.codePointAt(t)}:// IE 11
311
+ function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},dt=rt?// Native
312
+ function(e){return e.trimStart()}:// Ponyfill
313
+ function(e){return e.replace(Je,"")},ht=nt?// Native
314
+ function(e){return e.trimEnd()}:// Ponyfill
315
+ function(e){return e.replace(Ze,"")};
316
+ // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
317
+ function ft(e,t){return new RegExp(e,t)}
318
+ // #endregion
319
+ if(ot){
320
+ // Native
321
+ var mt=ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");at=function(e,t){var r;return mt.lastIndex=t,null!==(r=mt.exec(e)[1])&&void 0!==r?r:""}}else
322
+ // IE11
323
+ at=function(e,t){for(var r=[];;){var n=ct(e,t);if(void 0===n||yt(n)||wt(n))break;r.push(n),t+=n>=65536?2:1}return lt.apply(void 0,r)};var pt=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(be.UNMATCHED_CLOSING_TAG,Ke(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&gt(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:ye.pound,location:Ke(a,this.clonePosition())})}}}return{val:n,err:null}},
324
+ /**
325
+ * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
326
+ * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
327
+ * are accepted:
328
+ *
329
+ * ```
330
+ * tag ::= "<" tagName (whitespace)* "/>" | "<" tagName (whitespace)* ">" message "</" tagName (whitespace)* ">"
331
+ * tagName ::= [a-z] (PENChar)*
332
+ * PENChar ::=
333
+ * "-" | "." | [0-9] | "_" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |
334
+ * [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
335
+ * [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
336
+ * ```
337
+ *
338
+ * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
339
+ * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
340
+ * since other tag-based engines like React allow it
341
+ */
342
+ e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();// `<`
343
+ var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
344
+ // Self closing tag
345
+ return{val:{type:ye.literal,value:"<".concat(n,"/>"),location:Ke(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();
346
+ // Expecting a close tag
347
+ if(this.bumpIf("</")){if(this.isEOF()||!gt(this.char()))return this.error(be.INVALID_TAG,Ke(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(be.UNMATCHED_CLOSING_TAG,Ke(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ye.tag,value:n,children:o,location:Ke(r,this.clonePosition())},err:null}:this.error(be.INVALID_TAG,Ke(a,this.clonePosition())))}return this.error(be.UNCLOSED_TAG,Ke(r,this.clonePosition()))}return this.error(be.INVALID_TAG,Ke(r,this.clonePosition()))},
348
+ /**
349
+ * This method assumes that the caller has peeked ahead for the first tag character.
350
+ */
351
+ e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
352
+ for(this.bump();!this.isEOF()&&bt(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=Ke(r,this.clonePosition());return{val:{type:ye.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(gt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
353
+ /** See `parseTag` function docs. */},
354
+ /**
355
+ * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
356
+ * a character that requires quoting (that is, "only where needed"), and works the same in
357
+ * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
358
+ */
359
+ e.prototype.tryParseQuote=function(e){if(this.isEOF()||39/* `'` */!==this.char())return null;
360
+ // Parse escaped char following the apostrophe, or early return if there is no escaped char.
361
+ // Check if is valid escaped character
362
+ switch(this.peek()){case 39/* `'` */:
363
+ // double quote, should return as a single quote.
364
+ return this.bump(),this.bump(),"'";
365
+ // '{', '<', '>', '}'
366
+ case 123:case 60:case 62:case 125:break;case 35:// '#'
367
+ if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();// apostrophe
368
+ var t=[this.char()];// escaped char
369
+ // read chars until the optional closing apostrophe is found
370
+ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'` */!==this.peek()){
371
+ // Optional closing apostrophe.
372
+ this.bump();break}t.push(39),
373
+ // Bump one more time because we need to skip 2 characters.
374
+ this.bump()}else t.push(r);this.bump()}return lt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),lt(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
375
+ this.bumpSpace(),this.isEOF())return this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Ke(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(be.EMPTY_ARGUMENT,Ke(r,this.clonePosition()));
376
+ // argument name
377
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(be.MALFORMED_ARGUMENT,Ke(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Ke(r,this.clonePosition()));switch(this.char()){
378
+ // Simple argument: `{name}`
379
+ case 125/* `}` */:// `}`
380
+ return this.bump(),{val:{type:ye.argument,
381
+ // value does not include the opening and closing braces.
382
+ value:n,location:Ke(r,this.clonePosition())},err:null};
383
+ // Argument with options: `{name, format, ...}`
384
+ case 44/* `,` */:return this.bump(),// `,`
385
+ this.bumpSpace(),this.isEOF()?this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Ke(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(be.MALFORMED_ARGUMENT,Ke(r,this.clonePosition()))}},
386
+ /**
387
+ * Advance the parser until the end of the identifier, if it is currently on
388
+ * an identifier character. Return an empty string otherwise.
389
+ */
390
+ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=at(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Ke(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();
391
+ // Parse this range:
392
+ // {name, type, style}
393
+ // ^---^
394
+ switch(a){case"":
395
+ // Expecting a style string number, date, time, plural, selectordinal, or select.
396
+ return this.error(be.EXPECT_ARGUMENT_TYPE,Ke(o,s));case"number":case"date":case"time":
397
+ // Parse this range:
398
+ // {name, number, style}
399
+ // ^-------^
400
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=ht(b.val)).length)return this.error(be.EXPECT_ARGUMENT_STYLE,Ke(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ke(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var c=Ke(n,this.clonePosition());
401
+ // Extract style or skeleton
402
+ if(l&&st(null==l?void 0:l.style,"::",0)){
403
+ // Skeleton starts with `::`.
404
+ var d=dt(l.style.slice(2));if("number"===a)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:ye.number,value:r,location:c,style:b.val},err:null};if(0===d.length)return this.error(be.EXPECT_DATE_TIME_SKELETON,c);var h=d;
405
+ // Get "best match" pattern only if locale is passed, if not, let it
406
+ // pass as-is where `parseDateTimeSkeleton()` will throw an error
407
+ // for unsupported patterns.
408
+ this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=qe(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(d,this.locale));var f={type:we.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Be(h):{}};return{val:{type:"date"===a?ye.date:ye.time,value:r,location:c,style:f},err:null}}
409
+ // Regular style or no style.
410
+ return{val:{type:"number"===a?ye.number:"date"===a?ye.date:ye.time,value:r,location:c,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
411
+ // Parse this range:
412
+ // {name, plural, options}
413
+ // ^---------^
414
+ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(be.EXPECT_SELECT_ARGUMENT_OPTIONS,Ke(m,Ce({},m)));this.bumpSpace();
415
+ // Parse offset:
416
+ // {name, plural, offset:1, options}
417
+ // ^-----^
418
+ // or the first option:
419
+ // {name, plural, one {...} other {...}}
420
+ // ^--^
421
+ var p=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ke(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
422
+ // Parse another identifier for option parsing
423
+ this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=b.val}var y,w=this.tryParsePluralOrSelectOptions(e,a,t,p);if(w.err)return w;if((y=this.tryParseArgumentClose(n)).err)return y;var C=Ke(n,this.clonePosition());return"select"===a?{val:{type:ye.select,value:r,options:ut(w.val),location:C},err:null}:{val:{type:ye.plural,value:r,options:ut(w.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:C},err:null};default:return this.error(be.INVALID_ARGUMENT_TYPE,Ke(o,s))}},e.prototype.tryParseArgumentClose=function(e){
424
+ // Parse: {value, number, ::currency/GBP }
425
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Ke(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
426
+ /**
427
+ * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
428
+ */
429
+ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
430
+ // Treat apostrophe as quoting but include it in the style part.
431
+ // Find the end of the quoted literal text.
432
+ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ke(r,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
433
+ // Parse the skeleton
434
+ for(var t=e.split(Fe).filter((function(e){return e.length>0})),r=[],n=0,i=t;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),l=0,u=s;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(be.INVALID_NUMBER_SKELETON,t)}return{val:{type:we.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ge(r):{}},err:null}},
435
+ /**
436
+ * @param nesting_level The current nesting level of messages.
437
+ * This can be positive when parsing message fragment in select or plural argument options.
438
+ * @param parent_arg_type The parent argument's type.
439
+ * @param parsed_first_identifier If provided, this is the first identifier-like selector of
440
+ * the argument. It is a by-product of a previous parsing attempt.
441
+ * @param expecting_close_tag If true, this message is directly or indirectly nested inside
442
+ * between a pair of opening and closing tags. The nested message will not parse beyond
443
+ * the closing tag boundary.
444
+ */
445
+ e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){
446
+ // Parse:
447
+ // one {one apple}
448
+ // ^--^
449
+ for(var i,o=!1,a=[],s=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
450
+ // Try parse `={number}` selector
451
+ var d=this.tryParseDecimalInteger(be.EXPECT_PLURAL_ARGUMENT_SELECTOR,be.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=Ke(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
452
+ // Duplicate selector clauses
453
+ if(s.has(l))return this.error("select"===t?be.DUPLICATE_SELECT_ARGUMENT_SELECTOR:be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),
454
+ // Parse:
455
+ // one {one apple}
456
+ // ^----------^
457
+ this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ke(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([l,{value:f.val,location:Ke(h,this.clonePosition())}]),
458
+ // Keep track of the existing selectors
459
+ s.add(l),
460
+ // Prep next selector clause.
461
+ this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?be.EXPECT_SELECT_ARGUMENT_SELECTOR:be.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ke(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(be.MISSING_OTHER_CLAUSE,Ke(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48/* `0` */&&a<=57/* `9` */))break;i=!0,o=10*o+(a-48),this.bump()}var s=Ke(n,this.clonePosition());return i?it(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
462
+ // This is much faster than `Object.assign` or spread.
463
+ return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
464
+ /**
465
+ * Return the code point at the current position of the parser.
466
+ * Throws if the index is out of bound.
467
+ */
468
+ e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ct(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
469
+ /** Bump the parser to the next UTF-16 code unit. */
470
+ e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
471
+ // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
472
+ this.position.offset+=e<65536?1:2)}},
473
+ /**
474
+ * If the substring starting at the current position of the parser has
475
+ * the given prefix, then bump the parser to the character immediately
476
+ * following the prefix and return true. Otherwise, don't bump the parser
477
+ * and return false.
478
+ */
479
+ e.prototype.bumpIf=function(e){if(st(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
480
+ /**
481
+ * Bump the parser until the pattern character is found and return `true`.
482
+ * Otherwise bump to the end of the file and return `false`.
483
+ */
484
+ e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
485
+ /**
486
+ * Bump the parser to the target offset.
487
+ * If target offset is beyond the end of the input, bump the parser to the end of the input.
488
+ */
489
+ e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
490
+ /** advance the parser through all whitespace to the next non-whitespace code unit. */
491
+ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yt(this.char());)this.bump()},
492
+ /**
493
+ * Peek at the *next* Unicode codepoint in the input without advancing the parser.
494
+ * If the input has been exhausted, then this returns null.
495
+ */
496
+ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();
497
+ /**
498
+ * This check if codepoint is alphabet (lower & uppercase)
499
+ * @param codepoint
500
+ * @returns
501
+ */function gt(e){return e>=97&&e<=122||e>=65&&e<=90}function bt(e){return 45/* '-' */===e||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
502
+ /**
503
+ * Code point equivalent of regex `\p{White_Space}`.
504
+ * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
505
+ */function yt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
506
+ /**
507
+ * Code point equivalent of regex `\p{Pattern_Syntax}`.
508
+ * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
509
+ */function wt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ct(e){e.forEach((function(e){if(delete e.location,Pe(e)||Ee(e))for(var t in e.options)delete e.options[t].location,Ct(e.options[t].value);else _e(e)&&De(e.style)||(ke(e)||Se(e))&&Me(e.style)?delete e.style.location:Le(e)&&Ct(e.children)}))}function vt(e,t){void 0===t&&(t={}),t=Ce({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new pt(e,t).parse();if(r.err){var n=SyntaxError(be[r.err.kind]);
510
+ // @ts-expect-error Assign to error object
511
+ throw n.location=r.err.location,
512
+ // @ts-expect-error Assign to error object
513
+ n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Ct(r.val),r.val}
514
+
515
+ // Main
516
+
517
+ function Tt(e,t){var r=t&&t.cache?t.cache:Lt,n=t&&t.serializer?t.serializer:Pt;return(t&&t.strategy?t.strategy:St)(e,{cache:r,serializer:n})}
518
+
519
+ // Strategy
520
+
521
+ function xt(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function _t(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function kt(e,t,r,n,i){return r.bind(t,e,n,i)}function St(e,t){return kt(e,this,1===e.length?xt:_t,t.cache.create(),t.serializer)}
522
+ // Serializer
523
+ var Pt=function(){return JSON.stringify(arguments)};
524
+
525
+ // Cache
526
+
527
+ function Et(){this.cache=Object.create(null)}Et.prototype.get=function(e){return this.cache[e]},Et.prototype.set=function(e,t){this.cache[e]=t};var $t,Lt={create:function(){
528
+ // @ts-ignore
529
+ return new Et}},Dt={variadic:function(e,t){return kt(e,this,_t,t.cache.create(),t.serializer)},monadic:function(e,t){return kt(e,this,xt,t.cache.create(),t.serializer)}};!function(e){
530
+ // When we have a placeholder but no value to format
531
+ e.MISSING_VALUE="MISSING_VALUE",
532
+ // When value supplied is invalid
533
+ e.INVALID_VALUE="INVALID_VALUE",
534
+ // When we need specific Intl API but it's not available
535
+ e.MISSING_INTL_API="MISSING_INTL_API"}($t||($t={}));var Mt,At=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return ge(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rt=/** @class */function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return ge(t,e),t}(At),Bt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),$t.INVALID_VALUE,n)||this}return ge(t,e),t}(At),Ft=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return ge(t,e),t}(At);function Ot(e){return"function"==typeof e}
536
+ // TODO(skeleton): add skeleton support
537
+ function zt(e,t,r,n,i,o,
538
+ // For debugging
539
+ a){
540
+ // Hot path for straight simple msg translations
541
+ if(1===e.length&&Te(e[0]))return[{type:Mt.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];
542
+ // Exit early for string parts.
543
+ if(Te(c))s.push({type:Mt.literal,value:c.value});else
544
+ // TODO: should this part be literal type?
545
+ // Replace `#` in plural rules with the actual numeric value.
546
+ if($e(c))"number"==typeof o&&s.push({type:Mt.literal,value:r.getNumberFormat(t).format(o)});else{var d=c.value;
547
+ // Enforce that all required values are provided by the caller.
548
+ if(!i||!(d in i))throw new Ft(d,a);var h=i[d];if(xe(c))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Mt.literal:Mt.object,value:h});else
549
+ // Recursively format plural and select parts' option — which can be a
550
+ // nested pattern structure. The choosing of the option to use is
551
+ // abstracted-by and delegated-to the part helper object.
552
+ if(ke(c)){var f="string"==typeof c.style?n.date[c.style]:Me(c.style)?c.style.parsedOptions:void 0;s.push({type:Mt.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(Se(c)){f="string"==typeof c.style?n.time[c.style]:Me(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:Mt.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(_e(c)){(f="string"==typeof c.style?n.number[c.style]:De(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Mt.literal,value:r.getNumberFormat(t,f).format(h)})}else{if(Le(c)){var m=c.children,p=c.value,g=i[p];if(!Ot(g))throw new Bt(p,"function",a);var b=g(zt(m,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map((function(e){return{type:"string"==typeof e?Mt.literal:Mt.object,value:e}})))}if(Pe(c)){if(!(y=c.options[h]||c.options.other))throw new Rt(c.value,h,Object.keys(c.options),a);s.push.apply(s,zt(y.value,t,r,n,i))}else if(Ee(c)){var y;if(!(y=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new At('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$t.MISSING_INTL_API,a);var w=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));y=c.options[w]||c.options.other}if(!y)throw new Rt(c.value,h,Object.keys(c.options),a);s.push.apply(s,zt(y.value,t,r,n,i,h-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Mt.literal&&t.type===Mt.literal?r.value+=t.value:e.push(t),e}),[])}(s)}
553
+ /*
554
+ Copyright (c) 2014, Yahoo! Inc. All rights reserved.
555
+ Copyrights licensed under the New BSD License.
556
+ See the accompanying LICENSE file for terms.
557
+ */
558
+ // -- MessageFormat --------------------------------------------------------
559
+ function Ht(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?Ce(Ce(Ce({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=Ce(Ce({},i[t]),o[t]||{}),e}),{})):i),r}),Ce({},e)):e}function Nt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Mt||(Mt={}));var Ut=/** @class */function(){function e(t,r,n,i){var o,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);
560
+ // Hot path for straight simple msg translations
561
+ if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Mt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return zt(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},
562
+ // Defined first because it's used to build the format pattern.
563
+ this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
564
+ // Parse string messages into an AST.
565
+ this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
566
+ // Creates a new object with the specified `formats` merged with the default
567
+ // formats.
568
+ this.formats=Ht(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Tt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ve([void 0],t,!1)))}),{cache:Nt(o.number),strategy:Dt.variadic}),getDateTimeFormat:Tt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ve([void 0],t,!1)))}),{cache:Nt(o.dateTime),strategy:Dt.variadic}),getPluralRules:Tt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ve([void 0],t,!1)))}),{cache:Nt(o.pluralRules),strategy:Dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=vt,
569
+ // Default format options used as the prototype of the `formats` provided to the
570
+ // constructor. These are used when constructing the internal Intl.NumberFormat
571
+ // and Intl.DateTimeFormat instances.
572
+ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),It=Ut;
573
+ /*
574
+ Copyright (c) 2014, Yahoo! Inc. All rights reserved.
575
+ Copyrights licensed under the New BSD License.
576
+ See the accompanying LICENSE file for terms.
577
+ */const Yt={},jt=(e,t,r)=>r?(t in Yt||(Yt[t]={}),e in Yt[t]||(Yt[t][e]=r),r):r,Gt=(e,t)=>{if(null==t)return;if(t in Yt&&e in Yt[t])return Yt[t][e];const r=dr(t);for(let n=0;n<r.length;n++){const i=Jt(r[n],e);if(i)return jt(e,t,i)}};let Vt;const Wt=ie({});function qt(e){return e in Vt}function Jt(e,t){if(!qt(e))return null;const r=function(e){return Vt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Zt(e,...t){delete Yt[e],Wt.update((r=>(r[e]=me.all([r[e]||{},...t]),r)))}oe([Wt],(([e])=>Object.keys(e))),Wt.subscribe((e=>Vt=e));const Kt={};function Xt(e){return Kt[e]}function Qt(e){return null!=e&&dr(e).some((e=>{var t;return null===(t=Xt(e))||void 0===t?void 0:t.size}))}const er={};function tr(e){if(!Qt(e))return e in er?er[e]:Promise.resolve();const t=function(e){return dr(e).map((e=>{const t=Xt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return er[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){Kt[e].delete(t),0===Kt[e].size&&delete Kt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Zt(e,...t)))}(e,t)))).then((()=>{if(Qt(e))return tr(e);delete er[e]})),er[e]}
578
+ /*! *****************************************************************************
579
+ Copyright (c) Microsoft Corporation.
580
+
581
+ Permission to use, copy, modify, and/or distribute this software for any
582
+ purpose with or without fee is hereby granted.
583
+
584
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
585
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
586
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
587
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
588
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
589
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
590
+ PERFORMANCE OF THIS SOFTWARE.
591
+ ***************************************************************************** */function rr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function nr({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${dr(e).join('", "')}".${Qt(hr())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const ir={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 or(){return ir}function ar(e){const{formats:t}=e,r=rr(e,["formats"]),n=e.initialLocale||e.fallbackLocale;return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,null==r.handleMissingMessage?r.handleMissingMessage=nr:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ir,r,{initialLocale:n}),t&&("number"in t&&Object.assign(ir.formats.number,t.number),"date"in t&&Object.assign(ir.formats.date,t.date),"time"in t&&Object.assign(ir.formats.time,t.time)),fr.set(n)}const sr=ie(!1);let lr;const ur=ie(null);function cr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function dr(e,t=or().fallbackLocale){const r=cr(e);return t?[...new Set([...r,...cr(t)])]:r}function hr(){return null!=lr?lr:void 0}ur.subscribe((e=>{lr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const fr=Object.assign(Object.assign({},ur),{set:e=>{if(e&&function(e){if(null==e)return;const t=dr(e);for(let e=0;e<t.length;e++){const r=t[e];if(qt(r))return r}}(e)&&Qt(e)){const{loadingDelay:t}=or();let r;return"undefined"!=typeof window&&null!=hr()&&t?r=window.setTimeout((()=>sr.set(!0)),t):sr.set(!0),tr(e).then((()=>{ur.set(e)})).finally((()=>{clearTimeout(r),sr.set(!1)}))}return ur.set(e)}}),mr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},pr=(e,t)=>{const{formats:r}=or();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},gr=mr((e=>{var{locale:t,format:r}=e,n=rr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=pr("number",r)),new Intl.NumberFormat(t,n)})),br=mr((e=>{var{locale:t,format:r}=e,n=rr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=pr("date",r):0===Object.keys(n).length&&(n=pr("date","short")),new Intl.DateTimeFormat(t,n)})),yr=mr((e=>{var{locale:t,format:r}=e,n=rr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=pr("time",r):0===Object.keys(n).length&&(n=pr("time","short")),new Intl.DateTimeFormat(t,n)})),wr=mr(((e,t=hr())=>new It(e,t,or().formats,{ignoreTag:or().ignoreTag}))),Cr=(e,t={})=>{var r,n,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=hr(),default:u}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Gt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(n=(r=or()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:e;if(!s)return c;let d=c;try{d=wr(c,l).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},vr=(e,t)=>((e={})=>{var{locale:t=hr()}=e,r=rr(e,["locale"]);return yr(Object.assign({locale:t},r))})(t).format(e),Tr=(e,t)=>((e={})=>{var{locale:t=hr()}=e,r=rr(e,["locale"]);return br(Object.assign({locale:t},r))})(t).format(e),xr=(e,t)=>((e={})=>{var{locale:t=hr()}=e,r=rr(e,["locale"]);return gr(Object.assign({locale:t},r))})(t).format(e),_r=(e,t=hr())=>Gt(e,t),kr=oe([fr,Wt],(()=>Cr));oe([fr],(()=>vr)),oe([fr],(()=>Tr)),oe([fr],(()=>xr)),oe([fr,Wt],(()=>_r));var Sr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Sr&&Sr,Pr="URLSearchParams"in Sr,Er="Symbol"in Sr&&"iterator"in Symbol,$r="FileReader"in Sr&&"Blob"in Sr&&function(){try{return new Blob,!0}catch(e){return!1}}(),Lr="FormData"in Sr,Dr="ArrayBuffer"in Sr;if(Dr)var Mr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ar=ArrayBuffer.isView||function(e){return e&&Mr.indexOf(Object.prototype.toString.call(e))>-1};function Rr(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Br(e){return"string"!=typeof e&&(e=String(e)),e}
592
+ // Build a destructive iterator for the value list
593
+ function Fr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Er&&(t[Symbol.iterator]=function(){return t}),t}function Or(e){this.map={},e instanceof Or?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function zr(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Hr(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Nr(e){var t=new FileReader,r=Hr(t);return t.readAsArrayBuffer(e),r}function Ur(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ir(){return this.bodyUsed=!1,this._initBody=function(e){var t;
594
+ /*
595
+ fetch-mock wraps the Response object in an ES6 Proxy to
596
+ provide useful test harness features such as flush. However, on
597
+ ES5 browsers without fetch or Proxy support pollyfills must be used;
598
+ the proxy-pollyfill is unable to proxy an attribute unless it exists
599
+ on the object before the Proxy is created. This change ensures
600
+ Response.bodyUsed exists on the instance, while maintaining the
601
+ semantic of setting Request.bodyUsed in the constructor before
602
+ _initBody is called.
603
+ */
604
+ this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:$r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Lr&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Pr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Dr&&$r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Ur(e.buffer),
605
+ // IE 10-11 can't handle a DataView body.
606
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):Dr&&(ArrayBuffer.prototype.isPrototypeOf(e)||Ar(e))?this._bodyArrayBuffer=Ur(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Pr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},$r&&(this.blob=function(){var e=zr(this);if(e)return e;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 e=zr(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Nr)}),this.text=function(){var e,t,r,n=zr(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=Hr(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Lr&&(this.formData=function(){return this.text().then(Gr)}),this.json=function(){return this.text().then(JSON.parse)},this}
607
+ // HTTP methods whose capitalization should be normalized
608
+ Or.prototype.append=function(e,t){e=Rr(e),t=Br(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},Or.prototype.delete=function(e){delete this.map[Rr(e)]},Or.prototype.get=function(e){return e=Rr(e),this.has(e)?this.map[e]:null},Or.prototype.has=function(e){return this.map.hasOwnProperty(Rr(e))},Or.prototype.set=function(e,t){this.map[Rr(e)]=Br(t)},Or.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},Or.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),Fr(e)},Or.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Fr(e)},Or.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),Fr(e)},Er&&(Or.prototype[Symbol.iterator]=Or.prototype.entries);var Yr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function jr(e,t){if(!(this instanceof jr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof jr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Or(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Or(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),Yr.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.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"!==t.cache&&"no-cache"!==t.cache)){
609
+ // Search for a '_' parameter in the query string
610
+ var o=/([?&])_=[^&]*/;if(o.test(this.url))
611
+ // If it already exists then set the value with the current time
612
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Gr(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function Vr(e,t){if(!(this instanceof Vr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Or(t.headers),this.url=t.url||"",this._initBody(e)}jr.prototype.clone=function(){return new jr(this,{body:this._bodyInit})},Ir.call(jr.prototype),Ir.call(Vr.prototype),Vr.prototype.clone=function(){return new Vr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Or(this.headers),url:this.url})},Vr.error=function(){var e=new Vr(null,{status:0,statusText:""});return e.type="error",e};var Wr=[301,302,303,307,308];Vr.redirect=function(e,t){if(-1===Wr.indexOf(t))throw new RangeError("Invalid status code");return new Vr(null,{status:t,headers:{location:e}})};var qr=Sr.DOMException;try{new qr}catch(e){(qr=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),qr.prototype.constructor=qr}function Jr(e,t){return new Promise((function(r,n){var i=new jr(e,t);if(i.signal&&i.signal.aborted)return n(new qr("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Or,
613
+ // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
614
+ // https://github.com/github/fetch/issues/748
615
+ // https://github.com/zloirock/core-js/issues/751
616
+ e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){r(new Vr(i,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new qr("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&Sr.location.href?Sr.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&($r?o.responseType="blob":Dr&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Or?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,Br(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){
617
+ // DONE (success or failure)
618
+ 4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Jr.polyfill=!0,Sr.fetch||(Sr.fetch=Jr,Sr.Headers=Or,Sr.Request=jr,Sr.Response=Vr);var Zr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Kr(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return Xr(null==t&&r.path)}},r.exports),r.exports}function Xr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
619
+ // the whatwg-fetch polyfill installs the fetch() function
620
+ // on the global object (window or self)
621
+
622
+ // Return that as the export for use in Webpack, Browserify etc.
623
+ self.fetch.bind(self);
624
+ /******************************************************************************
625
+ Copyright (c) Microsoft Corporation.
626
+
627
+ Permission to use, copy, modify, and/or distribute this software for any
628
+ purpose with or without fee is hereby granted.
629
+
630
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
631
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
632
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
633
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
634
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
635
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
636
+ PERFORMANCE OF THIS SOFTWARE.
637
+ ***************************************************************************** */
638
+ /* global Reflect, Promise */
639
+ var Qr=function(e,t){return Qr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Qr(e,t)};function en(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Qr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function tn(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rn(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function nn(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function on(e){return"function"==typeof e}function an(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var sn=an((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ln(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var un=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,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 a=tn(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(on(l))try{l()}catch(e){i=e instanceof sn?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=tn(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{hn(h)}catch(e){i=null!=i?i:[],e instanceof sn?i=nn(nn([],rn(i)),rn(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new sn(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)hn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ln(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&ln(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),cn=un.EMPTY;function dn(e){return e instanceof un||e&&"closed"in e&&on(e.remove)&&on(e.add)&&on(e.unsubscribe)}function hn(e){on(e)?e():e.unsubscribe()}var fn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mn={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=mn.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,nn([e,t],rn(r))):setTimeout.apply(void 0,nn([e,t],rn(r)))},clearTimeout:function(e){var t=mn.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function pn(){}var gn=null;function bn(e){if(fn.useDeprecatedSynchronousErrorHandling){var t=!gn;if(t&&(gn={errorThrown:!1,error:null}),e(),t){var r=gn,n=r.errorThrown,i=r.error;if(gn=null,n)throw i}}else e()}var yn=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,dn(t)&&t.add(r)):r.destination=_n,r}return en(t,e),t.create=function(e,t,r){return new Tn(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(un),wn=Function.prototype.bind;function Cn(e,t){return wn.call(e,t)}var vn=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){xn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){xn(e)}else xn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){xn(e)}},e}(),Tn=function(e){function t(t,r,n){var i,o,a=e.call(this)||this;on(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&fn.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&Cn(t.next,o),error:t.error&&Cn(t.error,o),complete:t.complete&&Cn(t.complete,o)}):i=t;return a.destination=new vn(i),a}return en(t,e),t}(yn);function xn(e){var t;t=e,mn.setTimeout((function(){throw t}))}var _n={closed:!0,next:pn,error:function(e){throw e},complete:pn},kn="function"==typeof Symbol&&Symbol.observable||"@@observable";function Sn(e){return e}function Pn(e){return 0===e.length?Sn:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var En=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof yn||function(e){return e&&on(e.next)&&on(e.error)&&on(e.complete)}(n)&&dn(n)?e:new Tn(e,t,r);return bn((function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=$n(t))((function(t,n){var i=new Tn({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[kn]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pn(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=$n(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function $n(e){var t;return null!==(t=null!=e?e:fn.Promise)&&void 0!==t?t:Promise}var Ln=an((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Dn=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return en(t,e),t.prototype.lift=function(e){var t=new Mn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ln},t.prototype.next=function(e){var t=this;bn((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=tn(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;bn((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;bn((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?cn:(this.currentObservers=null,o.push(e),new un((function(){t.currentObservers=null,ln(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new En;return e.source=this,e},t.create=function(e,t){return new Mn(e,t)},t}(En),Mn=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return en(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:cn},t}(Dn),An={now:function(){return(An.delegate||Date).now()},delegate:void 0},Rn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=An);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return en(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var a=r.now(),s=0,l=1;l<n.length&&n[l]<=a;l+=2)s=l;s&&n.splice(0,s+1)}},t}(Dn);let Bn=[],Fn={};window.emWidgets={topic:(e,t=0)=>{if(-1==Bn.indexOf(e)){let r=new Rn(t);Fn[e]=r,Bn.push(e)}return Fn[e]}};
640
+ /**
641
+ * @name isMobile
642
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
643
+ * @param {String} userAgent window.navigator.userAgent
644
+ * @returns {Boolean} true or false
645
+ */
646
+ const On=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),zn=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
647
+ /**
648
+ * @name getDevice
649
+ * @description A method that returns the type of the device
650
+ * @param {String} userAgent window.navigator.userAgent
651
+ * @returns {String} Android/iPhone/iPad/PC
652
+ */var Hn=Kr((function(e,t){
653
+ /** @license
654
+ * eventsource.js
655
+ * Available under MIT License (MIT)
656
+ * https://github.com/Yaffle/EventSource/
657
+ */
658
+ /*jslint indent: 2, vars: true, plusplus: true */
659
+ /*global setTimeout, clearTimeout */
660
+ !function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,a=r.XDomainRequest,s=r.ActiveXObject,l=r.EventSource,u=r.document,c=r.Promise,d=r.fetch,h=r.Response,f=r.TextDecoder,m=r.TextEncoder,p=r.AbortController;
661
+ // see #118 (Promise#finally with polyfilled Promise)
662
+ // see #123 (data URLs crash Edge)
663
+ // see #125 (CSP violations)
664
+ // see pull/#138
665
+ // => No way to polyfill Promise#finally
666
+ if("undefined"==typeof window||void 0===u||"readyState"in u||null!=u.body||(// Firefox 2
667
+ u.readyState="loading",window.addEventListener("load",(function(e){u.readyState="complete"}),!1)),null==o&&null!=s&&(// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
668
+ o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var g=d;d=function(e,t){var r=t.signal;return g(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return r._reader=t,r._aborted&&r._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(e){function t(e,t,r){if(1===r)return e>=128>>t&&e<<t<=2047;if(2===r)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===r)return e>=65536>>t&&e<<t<=1114111;throw new Error}function r(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var n=65533,i="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==o&&(l<128||l>191||!t(a<<6|63&l,o-6,r(o,a)))&&(o=0,a=n,i+=String.fromCharCode(a)),0===o?(l>=0&&l<=127?(o=0,a=l):l>=192&&l<=223?(o=6,a=31&l):l>=224&&l<=239?(o=12,a=15&l):l>=240&&l<=247?(o=18,a=7&l):(o=0,a=n),0===o||t(a,o,r(o,a))||(o=0,a=n)):(o-=6,a=a<<6|63&l),0===o&&(a<=65535?i+=String.fromCharCode(a):(i+=String.fromCharCode(55296+(a-65535-1>>10)),i+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,i};
669
+ // IE, Edge
670
+ null!=f&&null!=m&&function(){try{return"test"===(new f).decode((new m).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(f=b);var y=function(){};function w(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=y}function C(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function v(e){for(
671
+ // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example
672
+ var t=Object.create(null),r=e.split("\r\n"),n=0;n<r.length;n+=1){var i=r[n].split(": "),o=i.shift(),a=i.join(": ");t[C(o)]=a}this._map=t}function T(){}function x(e){this._headers=e}function _(){}function k(){this._listeners=Object.create(null)}function S(e){n((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function E(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function $(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function L(e,t){P.call(this,e),this.error=t.error}w.prototype.open=function(e,t){this._abort(!0);var r=this,a=this._xhr,s=1,l=0;this._abort=function(e){0!==r._sendTimeout&&(i(r._sendTimeout),r._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=y,a.onerror=y,a.onabort=y,a.onprogress=y,a.onreadystatechange=y,
673
+ // IE 8 - 9: XDomainRequest#abort() does not fire any event
674
+ // Opera < 10: XMLHttpRequest#abort() does not fire any event
675
+ a.abort(),0!==l&&(i(l),l=0),e||(r.readyState=4,r.onabort(null),r.onreadystatechange())),s=0};var u=function(){if(1===s){
676
+ //state = 2;
677
+ var e=0,t="",n=void 0;if("contentType"in a)e=200,t="OK",n=a.contentType;else try{e=a.status,t=a.statusText,n=a.getResponseHeader("Content-Type")}catch(r){
678
+ // IE < 10 throws exception for `xhr.status` when xhr.readyState === 2 || xhr.readyState === 3
679
+ // Opera < 11 throws exception for `xhr.status` when xhr.readyState === 2
680
+ // https://bugs.webkit.org/show_bug.cgi?id=29121
681
+ e=0,t="",n=void 0}0!==e&&(s=2,r.readyState=2,r.status=e,r.statusText=t,r._contentType=n,r.onreadystatechange())}},c=function(){if(u(),2===s||3===s){s=3;var e="";try{e=a.responseText}catch(e){
682
+ // IE 8 - 9 with XMLHttpRequest
683
+ }r.readyState=3,r.responseText=e,r.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:y}),
684
+ // Firefox 52 fires "readystatechange" (xhr.readyState === 4) without final "readystatechange" (xhr.readyState === 3)
685
+ // IE 8 fires "onload" without "onprogress"
686
+ c(),1===s||2===s||3===s){if(s=4,0!==l&&(i(l),l=0),r.readyState=4,"load"===e)r.onload(t);else if("error"===e)r.onerror(t);else{if("abort"!==e)throw new TypeError;r.onabort(t)}r.onreadystatechange()}},h=function(){l=n((function(){h()}),500),3===a.readyState&&c()};
687
+ // XDomainRequest#abort removes onprogress, onerror, onload
688
+ "onload"in a&&(a.onload=function(e){d("load",e)}),"onerror"in a&&(a.onerror=function(e){d("error",e)}),
689
+ // improper fix to match Firefox behaviour, but it is better than just ignore abort
690
+ // see https://bugzilla.mozilla.org/show_bug.cgi?id=768596
691
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=880200
692
+ // https://code.google.com/p/chromium/issues/detail?id=153570
693
+ // IE 8 fires "onload" without "onprogress
694
+ "onabort"in a&&(a.onabort=function(e){d("abort",e)}),"onprogress"in a&&(a.onprogress=c),
695
+ // IE 8 - 9 (XMLHTTPRequest)
696
+ // Opera < 12
697
+ // Firefox < 3.5
698
+ // Firefox 3.5 - 3.6 - ? < 9.0
699
+ // onprogress is not fired sometimes or delayed
700
+ // see also #64 (significant lag in IE 11)
701
+ "onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(// Opera 12
702
+ 4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||d(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||// testing XMLHttpRequest#responseText too many times is too slow in IE 11
703
+ // and in Firefox 3.6
704
+ c():2===a.readyState&&u())}(e)}),!("contentType"in a)&&"ontimeout"in o.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(
705
+ // workaround for Opera 12 issue with "progress" events
706
+ // #91 (XMLHttpRequest onprogress not fired for streaming response in Edge 14-15-?)
707
+ l=n((function(){h()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(e){return this._contentType},w.prototype.setRequestHeader=function(e,t){var r=this._xhr;"setRequestHeader"in r&&r.setRequestHeader(e,t)},w.prototype.getAllResponseHeaders=function(){
708
+ // XMLHttpRequest#getAllResponseHeaders returns null for CORS requests in Firefox 3.6.28
709
+ return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){
710
+ // loading indicator in Safari < ? (6), Chrome < 14, Firefox
711
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=736723
712
+ if("ontimeout"in o.prototype&&("sendAsBinary"in o.prototype||"mozAnon"in o.prototype)||null==u||null==u.readyState||"complete"===u.readyState){var e=this._xhr;
713
+ // withCredentials should be set after "open" for Safari and Chrome (< 19 ?)
714
+ "withCredentials"in e&&(e.withCredentials=this.withCredentials);try{
715
+ // xhr.send(); throws "Not enough arguments" in Firefox 3.0
716
+ e.send(void 0)}catch(e){
717
+ // Safari 5.1.7, Opera 12
718
+ throw e}}else{var t=this;t._sendTimeout=n((function(){t._sendTimeout=0,t.send()}),4)}},v.prototype.get=function(e){return this._map[C(e)]},null!=o&&null==o.HEADERS_RECEIVED&&(// IE < 9, Firefox 3.6
719
+ o.HEADERS_RECEIVED=2),T.prototype.open=function(e,t,r,n,i,a,s){e.open("GET",i);var l=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(l);l+=t.length,r(t)},e.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},e.onload=function(){n(null)},e.onabort=function(){n(null)},e.onreadystatechange=function(){if(e.readyState===o.HEADERS_RECEIVED){var r=e.status,n=e.statusText,i=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(r,n,i,new v(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u]);return e.send(),e},x.prototype.get=function(e){return this._headers.get(e)},_.prototype.open=function(e,t,r,n,i,o,a){var s=null,l=new p,u=l.signal,h=new f;return d(i,{headers:a,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){
720
+ // see https://github.com/promises-aplus/promises-spec/issues/179
721
+ return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new x(e.headers)),new c((function(e,t){var n=function(){s.read().then((function(t){if(t.done)
722
+ //Note: bytes in textDecoder are ignored
723
+ e(void 0);else{var i=h.decode(t.value,{stream:!0});r(i),n()}})).catch((function(e){t(e)}))};n()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){n(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},k.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var r=t.length,n=0;n<r;n+=1){var i=t[n];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){S(e)}}},k.prototype.addEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];null==n&&(n=[],r[e]=n);for(var i=!1,o=0;o<n.length;o+=1)n[o]===t&&(i=!0);i||n.push(t)},k.prototype.removeEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];if(null!=n){for(var i=[],o=0;o<n.length;o+=1)n[o]!==t&&i.push(n[o]);0===i.length?delete r[e]:r[e]=i}},E.prototype=Object.create(P.prototype),$.prototype=Object.create(P.prototype),L.prototype=Object.create(P.prototype);var D=-1,M=-1,A=/^text\/event\-stream(;.*)?$/i,R=function(e,t){var r=null==e?t:parseInt(e,10);return r!=r&&(r=t),B(r)},B=function(e){return Math.min(Math.max(e,1e3),18e6)},F=function(e,t,r){try{"function"==typeof t&&t.call(e,r)}catch(e){S(e)}};function O(e,t){k.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,r){t=String(t);var s=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=B(1e3),c=R(r.heartbeatTimeout,45e3),d="",h=u,f=!1,m=0,p=r.headers||{},g=r.Transport,b=z&&null==g?void 0:new w(null!=g?new g:null!=o&&"withCredentials"in o.prototype||null==a?new o:new a),y=null!=g&&"string"!=typeof g?new g:null==b?new _:new T,C=void 0,v=0,x=D,k="",S="",P="",O="",H=0,N=0,U=0,I=function(t,r,n,i){if(0===x)if(200===t&&null!=n&&A.test(n)){x=1,f=Date.now(),h=u,e.readyState=1;var o=new $("open",{status:t,statusText:r,headers:i});e.dispatchEvent(o),F(e,e.onopen,o)}else{var a="";200!==t?(r&&(r=r.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+r+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",G();o=new $("error",{status:t,statusText:r,headers:i});e.dispatchEvent(o),F(e,e.onerror,o),console.error(a)}},Y=function(t){if(1===x){for(var r=-1,o=0;o<t.length;o+=1){(l=t.charCodeAt(o))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=o)}var a=(-1!==r?O:"")+t.slice(0,r+1);O=(-1===r?O:"")+t.slice(r+1),""!==t&&(f=Date.now(),m+=t.length);for(var s=0;s<a.length;s+=1){var l=a.charCodeAt(s);if(H===M&&l==="\n".charCodeAt(0))H=0;else if(H===M&&(H=0),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(0!==H){1===H&&(U=s+1);var p=a.slice(N,U-1),g=a.slice(U+(U<s&&a.charCodeAt(U)===" ".charCodeAt(0)?1:0),s);"data"===p?(k+="\n",k+=g):"id"===p?S=g:"event"===p?P=g:"retry"===p?(u=R(g,u),h=u):"heartbeatTimeout"===p&&(c=R(g,c),0!==v&&(i(v),v=n((function(){V()}),c)))}if(0===H){if(""!==k){d=S,""===P&&(P="message");var b=new E(P,{data:k.slice(1),lastEventId:S});if(e.dispatchEvent(b),"open"===P?F(e,e.onopen,b):"message"===P?F(e,e.onmessage,b):"error"===P&&F(e,e.onerror,b),2===x)return}k="",P=""}H=l==="\r".charCodeAt(0)?M:0}else 0===H&&(N=s,H=1),1===H?l===":".charCodeAt(0)&&(U=s+1,H=2):2===H&&(H=3)}}},j=function(t){if(1===x||0===x){x=D,0!==v&&(i(v),v=0),v=n((function(){V()}),h),h=B(Math.min(16*u,2*h)),e.readyState=0;var r=new L("error",{error:t});e.dispatchEvent(r),F(e,e.onerror,r),null!=t&&console.error(t)}},G=function(){x=2,null!=C&&(C.abort(),C=void 0),0!==v&&(i(v),v=0),e.readyState=2},V=function(){if(v=0,x===D){f=!1,m=0,v=n((function(){V()}),c),x=0,k="",P="",S=d,O="",N=0,U=0,H=0;
724
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=428916
725
+ // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
726
+ var r=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==d){
727
+ // Remove the lastEventId parameter if it's already part of the request URL.
728
+ var i=t.indexOf("?");r=-1===i?t:t.slice(0,i+1)+t.slice(i+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===l?"":e})),
729
+ // Append the current lastEventId to the request URL.
730
+ r+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(d)}var o=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);try{C=y.open(b,I,Y,j,r,o,a)}catch(e){throw G(),e}}else if(f||null==C){var h=Math.max((f||Date.now())+c-Date.now(),1);f=!1,v=n((function(){V()}),h)}else j(new Error("No activity within "+c+" milliseconds. "+(0===x?"No response received.":m+" chars received.")+" Reconnecting.")),null!=C&&(C.abort(),C=void 0)};e.url=t,e.readyState=0,e.withCredentials=s,e.headers=p,e._close=G,V()}(this,e,t)}var z=null!=d&&null!=h&&"body"in h.prototype;O.prototype=Object.create(k.prototype),O.prototype.CONNECTING=0,O.prototype.OPEN=1,O.prototype.CLOSED=2,O.prototype.close=function(){this._close()},O.CONNECTING=0,O.OPEN=1,O.CLOSED=2,O.prototype.withCredentials=void 0;var H=l;null==o||null!=l&&"withCredentials"in l.prototype||(
731
+ // Why replace a native EventSource ?
732
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=444328
733
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=831392
734
+ // https://code.google.com/p/chromium/issues/detail?id=260144
735
+ // https://code.google.com/p/chromium/issues/detail?id=225654
736
+ // ...
737
+ H=O),n((function(){if(-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)){var e=function(e){return""+e+""},t=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+e("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n");alert(t),window.open("http://www.change.org/NetVoyne")}}),15e3),function(r){var n=function(e){e.EventSourcePolyfill=O,e.NativeEventSource=l,e.EventSource=H}(t);void 0!==n&&(e.exports=n)}()}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Zr:globalThis)}));
738
+ /* src/Cells/Cell.svelte generated by Svelte v3.48.0 */function Nn(t){let r;return{c(){r=y("slot"),this.c=e,_(r,"name",/*slotname*/t[0])},m(e,t){p(e,r,t)},p(e,[t]){/*slotname*/1&t&&_(r,"name",/*slotname*/e[0])},i:e,o:e,d(e){e&&g(r)}}}function Un(e,t,r){let{slotname:n=""}=t;return e.$$set=e=>{"slotname"in e&&r(0,n=e.slotname)},[n]}class In extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Un,Nn,a,{slotname:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["slotname"]}get slotname(){return this.$$.ctx[0]}set slotname(e){this.$$set({slotname:e}),U()}}
739
+ /* src/Cells/ThumbnailCell.svelte generated by Svelte v3.48.0 */
740
+ function Yn(t){let r,n,i,o,a,s;return{c(){r=y("div"),n=y("div"),this.c=e,_(n,"class",i="CardImg "+(/*status*/"Closing"==t[1]||/*status*/"Closed"==t[1]?"CardImgFinished":"")),_(n,"part",o="CardImg "+(/*status*/"Closing"==t[1]||/*status*/"Closed"==t[1]?"CardImgFinished":"")),S(n,"background-image","url('"+(/*thumbnail*/t[0]?/*thumbnail*/t[0]:"https://i.stack.imgur.com/y9DpT.jpg")+"')"),_(r,"class","Thumbnail"),_(r,"part","Thumbnail")},m(e,i){p(e,r,i),m(r,n),a||(s=f(/*matchStatus*/t[2].call(null,n)),a=!0)},p(e,[t]){/*status*/2&t&&i!==(i="CardImg "+(/*status*/"Closing"==e[1]||/*status*/"Closed"==e[1]?"CardImgFinished":""))&&_(n,"class",i),/*status*/2&t&&o!==(o="CardImg "+(/*status*/"Closing"==e[1]||/*status*/"Closed"==e[1]?"CardImgFinished":""))&&_(n,"part",o),/*thumbnail*/1&t&&S(n,"background-image","url('"+(/*thumbnail*/e[0]?/*thumbnail*/e[0]:"https://i.stack.imgur.com/y9DpT.jpg")+"')")},i:e,o:e,d(e){e&&g(r),a=!1,s()}}}function jn(e,t,r){let{thumbnail:n=""}=t,{status:i=""}=t;return D((()=>{})),e.$$set=e=>{"thumbnail"in e&&r(0,n=e.thumbnail),"status"in e&&r(1,i=e.status)},[n,i,()=>{}]}customElements.define("slot-cell",In);class Gn extends G{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}</style>',re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},jn,Yn,a,{thumbnail:0,status:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["thumbnail","status"]}get thumbnail(){return this.$$.ctx[0]}set thumbnail(e){this.$$set({thumbnail:e}),U()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),U()}}
741
+ /* src/Cells/TitleTextCell.svelte generated by Svelte v3.48.0 */
742
+ function Vn(e){let t,r,n,i,o,a,s;function l(e,t){/*collapsed*/
743
+ return e[2]?Wn:qn}let u=l(e),c=u(e);return{c(){t=y("div"),r=y("p"),n=C(/*title*/e[1]),i=v(),o=y("div"),c.c(),_(r,"class","Title"),_(r,"part","Title"),_(o,"class","CollapseButtonDetails"),_(o,"part","CollapseButtonDetails"),_(t,"class","DetailsTitle"),_(t,"part","DetailsTitle")},m(l,u){p(l,t,u),m(t,r),m(r,n),m(t,i),m(t,o),c.m(o,null),a||(s=x(o,"click",/*click_handler*/e[5]),a=!0)},p(e,t){/*title*/2&t&&k(n,/*title*/e[1]),u!==(u=l(e))&&(c.d(1),c=u(e),c&&(c.c(),c.m(o,null)))},d(e){e&&g(t),c.d(),a=!1,s()}}}
744
+ // (24:8) {:else}
745
+ function Wn(e){let t,r;return{c(){t=w("svg"),r=w("path"),_(r,"d","M6 9l6 6 6-6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,n){p(e,t,n),m(t,r)},d(e){e&&g(t)}}}
746
+ // (20:8) {#if !collapsed}
747
+ function qn(e){let t,r;return{c(){t=w("svg"),r=w("path"),_(r,"d","M18 15l-6-6-6 6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,n){p(e,t,n),m(t,r)},d(e){e&&g(t)}}}
748
+ // (33:2) {#if text && !collapsed}
749
+ function Jn(e){let t,r,n,i;return{c(){t=y("div"),_(t,"class","DetailsContent sc"),_(t,"part","DetailsContent")},m(o,a){p(o,t,a),n||(i=f(r=/*setContent*/e[4].call(null,t,/*text*/e[0])),n=!0)},p(e,t){r&&o(r.update)&&/*text*/1&t&&r.update.call(null,/*text*/e[0])},d(e){e&&g(t),n=!1,i()}}}function Zn(t){let r,n,i=/*title*/t[1]&&Vn(t),o=/*text*/t[0]&&!/*collapsed*/t[2]&&Jn(t);return{c(){r=y("div"),i&&i.c(),n=v(),o&&o.c(),this.c=e,_(r,"class","DetailsCard"),_(r,"part","DetailsCard")},m(e,t){p(e,r,t),i&&i.m(r,null),m(r,n),o&&o.m(r,null)},p(e,[t]){/*title*/e[1]?i?i.p(e,t):(i=Vn(e),i.c(),i.m(r,n)):i&&(i.d(1),i=null),/*text*/e[0]&&!/*collapsed*/e[2]?o?o.p(e,t):(o=Jn(e),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&g(r),i&&i.d(),o&&o.d()}}}function Kn(e,t,r){let{text:n=""}=t,{title:i=""}=t,o=!1;const a=()=>{r(2,o=!o)};return e.$$set=e=>{"text"in e&&r(0,n=e.text),"title"in e&&r(1,i=e.title)},[n,i,o,a,(e,t)=>{let r=document.createElement("div");r.innerHTML=t,e.append(r)},()=>a()]}customElements.define("thumbnail-cell",Gn);class Xn extends G{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:1px solid var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-color-contrast, #07072A)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}</style>',re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Kn,Zn,a,{text:0,title:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["text","title"]}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),U()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),U()}}function Qn(e,t){Zt(e,t)}function ei(e){fr.set(e)}customElements.define("title-text-cell",Xn);const ti={en:{tournamentsThumbnail:{startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}"}},el:{tournamentsThumbnail:{startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}"}},zh:{tournamentsThumbnail:{startingAtWithTime:"開始於 {startTime}",startedAtWithTime:"Started {startTime}"}}},ri={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},zh:{tournamentsPage:{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限"}},fr:{tournamentsPage:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité"}},ro:{tournamentsPage:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat"}},tr:{tournamentsPage:{loading:"Yükleniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",mostRounds:"MostRounds",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"unlimited"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},es:{tournamentsPage:{loading:"cargando, por favor espere…",back:"Volver",previous:"Anterior",next:"Siguiente",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",mostRounds:"LaMayoríaDeLasRondas",activePeriod:"Desde {startdate} hasta {enddate}",forwardCasino:"Vea los juegos de casino incluidos",forwardSports:"Vea los deportes incluidos",forwardMyTournaments:"Vea Mis Torneos",leaderBoard:"Marcador",rules:"Reglas",games:"Juegos",unlimited:"sin límite"}},hu:{tournamentsPage:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan"}},pt:{tournamentsPage:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado"}}},ni={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}},ii={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}},oi={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},ai={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Count",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize",UnqualifiedTips:"The minimum number of bets has not been reached. Check tournament rules.",me:"Me"}},zh:{tournamentsTable:{leaderboard:"排行榜",score:"分數",betcounts:"投注次數",winstakeratio:"勝率",qualified:"合格的",nowinners:"暫時沒有贏家。 成為他們中的一員!",Rank:"秩",Player:"播放器",Points:"積分",Prize:"獎",UnqualifiedTips:"未达到最低投注数。检查比赛规则。",me:"我"}},fr:{tournamentsTable:{leaderboard:"Tableau des leaders",score:"Score",betcounts:"Le pari compte",winstakeratio:"Indice du gain d'une mise",qualified:"Qualifié",nowinners:"Aucun gagnant pour l'instant, soyez l'un d'entre eux",Rank:"Rang",Player:"Joueur",Points:"Points",Prize:"Prix",UnqualifiedTips:"Le nombre de mises minimum n'est pas terminé. Vérifiez les règles.",me:"Me"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Număr Pariuri",winstakeratio:"Raport de câștig",qualified:"Calificat",nowinners:"Nu există câștigători pentru moment. Fii unul dintre ei!",Rank:"Clasament",Player:"Jucător",Points:"Puncte",Prize:"Premiu",UnqualifiedTips:"Numărul minim de pariuri nu a fost atins. Verificați regulile.",me:"Eu"}},hu:{tournamentsTable:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Bet Counts",winstakeratio:"Fogadás számít",qualified:"Képzett",nowinners:"Egyelőre nincs nyertes. Legyen az egyikük!",Rank:"Rang",Player:"Játékos",Points:"Pontok",Prize:"Díj",UnqualifiedTips:"A minimális fogadási értéket nem érte el. Kérjük ellenőrizze a szabályokat.",me:"Én"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Sıra",Player:"Oyuncu",Points:"Puan",Prize:"Ödül",UnqualifiedTips:"Minimum bahis sayısına ulaşılmadı. Turnuva kurallarını kontrol ediniz.",me:"Ben"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Κατάταξη",Player:"Όνομα",Points:"Πόντοι",Prize:"Έπαθλο",UnqualifiedTips:"Ο ελάχιστος αριθμός στοιχημάτων δεν έχει επιτευχθεί. Ελέγξτε τους κανόνες του τουρνουά.",me:"Εγώ"}},es:{tournamentsTable:{leaderboard:"Marcador",score:"Puntuación",betcounts:"Apuesta cuenta",winstakeratio:"RatioDeGanancia",qualified:"Calificado",nowinners:"No hay ganadores por el momento. ¡Sé uno de ellos!",Rank:"Rango",Player:"Jugador",Points:"Puntos",Prize:"Premio",UnqualifiedTips:"No se ha completado el recuento mínimo de apuestas. Compruebe las reglas.",me:"Yo"}},hu:{tournamentsTable:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Fogadás beleszámít",winstakeratio:"WinstakeRatio",qualified:"Kvalifikált",nowinners:"Még nincs nyertes. Legyen Ön az egyik!",Rank:"Rangsor",Player:"Játékos",Points:"Pontszám",Prize:"Nyeremény",UnqualifiedTips:"Minimális tét nincs elérve. Ellenőrizze a szabályokat.",me:"Én"}},pt:{tournamentsTable:{leaderboard:"Entre os melhores",score:"Pontuação",betcounts:"Contagens de Apostas",winstakeratio:"Rácio de Vitórias",qualified:"Qualificado",nowinners:"Sem vencedores por enquanto. Seja um deles!",Rank:"Classificação",Player:"Jogador",Points:"Pontos",Prize:"Prêmio",UnqualifiedTips:"Contagem mínima de apostas não concluída. Confira Regras.",me:"Me"}}},si={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}},li={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};
750
+ /* src/Cells/ScoreCriteriaCell.svelte generated by Svelte v3.48.0 */
751
+ function ui(t){let r,n,i,o,a,s,l,u,c,d,h,b,w,T=/*$_*/t[2]("tournamentsThumbnail.scoreCriteria")+"",x=/*$_*/t[2]("tournamentsThumbnail.minbet")+"";return{c(){r=y("div"),n=y("p"),i=C(T),o=C(":\n "),a=y("span"),s=C(/*showScoreCriteria*/t[1]),l=C("\n ("),u=C(x),c=v(),d=C(/*minbetcount*/t[0]),h=C(")"),this.c=e,_(a,"part","ScoreCriteriaSpan"),_(n,"part","ScoreCriteriaP"),_(r,"class","ScoreCriteria"),_(r,"part","ScoreCriteria")},m(e,g){p(e,r,g),m(r,n),m(n,i),m(n,o),m(n,a),m(a,s),m(n,l),m(n,u),m(n,c),m(n,d),m(n,h),b||(w=f(/*matchScoreCriteria*/t[3].call(null,a)),b=!0)},p(e,[t]){/*$_*/4&t&&T!==(T=/*$_*/e[2]("tournamentsThumbnail.scoreCriteria")+"")&&k(i,T),/*showScoreCriteria*/2&t&&k(s,/*showScoreCriteria*/e[1]),/*$_*/4&t&&x!==(x=/*$_*/e[2]("tournamentsThumbnail.minbet")+"")&&k(u,x),/*minbetcount*/1&t&&k(d,/*minbetcount*/e[0])},i:e,o:e,d(e){e&&g(r),b=!1,w()}}}function ci(e,t,r){let n;d(e,kr,(e=>r(2,n=e)));let{scorecriteria:i=""}=t,{lang:o="en"}=t,{minbetcount:a}=t;Object.keys(li).forEach((e=>{Qn(e,li[e])})),ar({fallbackLocale:"en",initialLocale:"en"});let s="";const l=()=>{"BetCount"==i&&r(1,s=n("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==i&&r(1,s=n("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==i&&r(1,s=n("tournamentsThumbnail.winStakeRatio"))};return D((()=>{})),e.$$set=e=>{"scorecriteria"in e&&r(4,i=e.scorecriteria),"lang"in e&&r(5,o=e.lang),"minbetcount"in e&&r(0,a=e.minbetcount)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&o&&(ei(o),l()),/*scorecriteria*/16&e.$$.dirty&&i&&l()},[a,s,n,l,i,o]}class di extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},ci,ui,a,{scorecriteria:4,lang:5,minbetcount:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["scorecriteria","lang","minbetcount"]}get scorecriteria(){return this.$$.ctx[4]}set scorecriteria(e){this.$$set({scorecriteria:e}),U()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),U()}get minbetcount(){return this.$$.ctx[0]}set minbetcount(e){this.$$set({minbetcount:e}),U()}}
752
+ /* src/Cells/JoinButtonCell.svelte generated by Svelte v3.48.0 */
753
+ function hi(e){let t,r,n,i,o=/*$_*/e[10]("tournamentsThController.details")+"";return{c(){t=y("button"),r=C(o),_(t,"class","DetailsLargeButton"),_(t,"part","DetailsLargeButton")},m(o,a){p(o,t,a),m(t,r),n||(i=x(t,"click",/*click_handler_4*/e[34]),n=!0)},p(e,t){/*$_*/1024&t[0]&&o!==(o=/*$_*/e[10]("tournamentsThController.details")+"")&&k(r,o)},d(e){e&&g(t),n=!1,i()}}}
754
+ // (172:4) {#if status != 'Closed' && status != 'Closing'}
755
+ function fi(e){let t,r,n=/*showdetails*/"true"==e[2]&&pi(e);function i(e,t){/*userenrolled*/
756
+ return"true"==e[0]?bi:/*bonuscode*/e[3]?gi:void 0}let o=i(e),a=o&&o(e);return{c(){n&&n.c(),t=v(),a&&a.c(),r=T()},m(e,i){n&&n.m(e,i),p(e,t,i),a&&a.m(e,i),p(e,r,i)},p(e,s){/*showdetails*/"true"==e[2]?n?n.p(e,s):(n=pi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o===(o=i(e))&&a?a.p(e,s):(a&&a.d(1),a=o&&o(e),a&&(a.c(),a.m(r.parentNode,r)))},d(e){n&&n.d(e),e&&g(t),a&&a.d(e),e&&g(r)}}}
757
+ // (168:2) {#if !isLoggedIn}
758
+ function mi(e){let t,r,n,o,a,s,l,u=/*$_*/e[10]("tournamentsThController.login")+"",c=/*$_*/e[10]("tournamentsThController.register")+"";return{c(){t=y("button"),r=C(u),n=v(),o=y("button"),a=C(c),_(t,"class","LoginButton"),_(t,"part","LoginButton"),_(o,"class","RegisterButton"),_(o,"part","RegisterButton")},m(i,u){p(i,t,u),m(t,r),p(i,n,u),p(i,o,u),m(o,a),s||(l=[x(t,"click",/*click_handler*/e[30]),x(o,"click",/*click_handler_1*/e[31])],s=!0)},p(e,t){/*$_*/1024&t[0]&&u!==(u=/*$_*/e[10]("tournamentsThController.login")+"")&&k(r,u),/*$_*/1024&t[0]&&c!==(c=/*$_*/e[10]("tournamentsThController.register")+"")&&k(a,c)},d(e){e&&g(t),e&&g(n),e&&g(o),s=!1,i(l)}}}
759
+ // (173:6) {#if showdetails == 'true'}
760
+ function pi(e){let t,r,n,i,o=/*$_*/e[10]("tournamentsThController.details")+"";return{c(){t=y("button"),r=C(o),_(t,"class","DetailsButton"),_(t,"part","DetailsButton")},m(o,a){p(o,t,a),m(t,r),n||(i=x(t,"click",/*click_handler_2*/e[32]),n=!0)},p(e,t){/*$_*/1024&t[0]&&o!==(o=/*$_*/e[10]("tournamentsThController.details")+"")&&k(r,o)},d(e){e&&g(t),n=!1,i()}}}
761
+ // (180:26)
762
+ function gi(e){let t,r,n,i,o;function a(e,t){/*joinButtonLoading*/
763
+ return 1==e[6]?wi:yi}let s=a(e),l=s(e);return{c(){t=y("button"),l.c(),_(t,"class",r="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":"")),_(t,"part",n="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":"")),t.disabled=/*errorJoin*/e[7]},m(r,n){p(r,t,n),l.m(t,null),i||(o=x(t,"click",/*click_handler_3*/e[33]),i=!0)},p(e,i){s===(s=a(e))&&l?l.p(e,i):(l.d(1),l=s(e),l&&(l.c(),l.m(t,null))),/*fullsize*/16&i[0]&&r!==(r="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":""))&&_(t,"class",r),/*fullsize*/16&i[0]&&n!==(n="JoinButton "+(/*fullsize*/e[4]?"JoinButtonFullSize":""))&&_(t,"part",n),/*errorJoin*/128&i[0]&&(t.disabled=/*errorJoin*/e[7])},d(e){e&&g(t),l.d(),i=!1,o()}}}
764
+ // (176:6) {#if userenrolled == 'true'}
765
+ function bi(e){let t,r=/*showdetails*/"true"==e[2]&&Ci(e);return{c(){r&&r.c(),t=T()},m(e,n){r&&r.m(e,n),p(e,t,n)},p(e,n){/*showdetails*/"true"==e[2]?r?r.p(e,n):(r=Ci(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&g(t)}}}
766
+ // (186:10) {:else}
767
+ function yi(e){let t,r,n,i,o,a,s,l,u,c=/*$_*/e[10]("tournamentsThController.join")+"";return{c(){t=y("span"),r=C(c),n=v(),i=w("svg"),o=w("defs"),a=w("style"),s=C(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=w("g"),u=w("path"),_(t,"part","JoinButtonSpan"),_(t,"class","JoinButtonSpan"),_(u,"class","a"),_(u,"part","a JoinButtonSvgA"),_(u,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),_(u,"transform","translate(26 26) rotate(180)"),_(l,"transform","translate(26 26) rotate(180)"),_(i,"part","JoinButtonSvg"),_(i,"class","JoinButtonSvg"),_(i,"xmlns","http://www.w3.org/2000/svg"),_(i,"width","26"),_(i,"height","26"),_(i,"viewBox","0 0 26 26")},m(e,c){p(e,t,c),m(t,r),p(e,n,c),p(e,i,c),m(i,o),m(o,a),m(a,s),m(i,l),m(l,u)},p(e,t){/*$_*/1024&t[0]&&c!==(c=/*$_*/e[10]("tournamentsThController.join")+"")&&k(r,c)},d(e){e&&g(t),e&&g(n),e&&g(i)}}}
768
+ // (182:10) {#if joinButtonLoading == true}
769
+ function wi(t){let r,n;return{c(){r=w("svg"),n=w("circle"),_(n,"class","circle"),_(n,"part","circle"),_(n,"cx","20"),_(n,"cy","20"),_(n,"r","18"),_(r,"class","spinner"),_(r,"part","spinner")},m(e,t){p(e,r,t),m(r,n)},p:e,d(e){e&&g(r)}}}
770
+ // (177:8) {#if showdetails == 'true'}
771
+ function Ci(e){let t,r,n=/*$_*/e[10]("tournamentsThController.enrolled")+"";return{c(){t=y("button"),r=C(n),_(t,"class","EnrolledButton"),_(t,"part","EnrolledButton"),t.disabled=!0},m(e,n){p(e,t,n),m(t,r)},p(e,t){/*$_*/1024&t[0]&&n!==(n=/*$_*/e[10]("tournamentsThController.enrolled")+"")&&k(r,n)},d(e){e&&g(t)}}}
772
+ // (199:0) {#if errorJoin || errorJoinConcurrently}
773
+ function vi(e){let t,r,n,i,o=/*$_*/e[10]("tournamentsThController.joinerror")+"";return{c(){t=y("span"),r=C(o),n=v(),i=C(/*errorJoinText*/e[8]),_(t,"class","ErrorText"),_(t,"part","ErrorText")},m(e,o){p(e,t,o),m(t,r),m(t,n),m(t,i)},p(e,t){/*$_*/1024&t[0]&&o!==(o=/*$_*/e[10]("tournamentsThController.joinerror")+"")&&k(r,o),/*errorJoinText*/256&t[0]&&k(i,/*errorJoinText*/e[8])},d(e){e&&g(t)}}}function Ti(t){let r,n,i;function o(e,t){/*isLoggedIn*/
774
+ return e[5]?"Closed"!=status&&"Closing"!=status?fi:/*showdetails*/"true"==e[2]?hi:void 0:mi}let a=o(t),s=a&&a(t),l=/*errorJoin*/(t[7]||/*errorJoinConcurrently*/t[9])&&vi(t);return{c(){r=y("div"),s&&s.c(),n=v(),l&&l.c(),i=T(),this.c=e,_(r,"class","TournamentButtons"),_(r,"part","TournamentButtons")},m(e,t){p(e,r,t),s&&s.m(r,null),p(e,n,t),l&&l.m(e,t),p(e,i,t)},p(e,t){a===(a=o(e))&&s?s.p(e,t):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(r,null))),/*errorJoin*/e[7]||/*errorJoinConcurrently*/e[9]?l?l.p(e,t):(l=vi(e),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i:e,o:e,d(e){e&&g(r),s&&s.d(),e&&g(n),l&&l.d(e),e&&g(i)}}}function xi(e,t,r){let n;d(e,kr,(e=>r(10,n=e)));let{session:i=""}=t,{userid:o=""}=t,{tourid:a=""}=t,{tournamenturl:s=""}=t,{endpoint:l=""}=t,{showdetails:u=""}=t,{showslider:c=""}=t,{userenrolled:h=""}=t,{showenrolled:f=""}=t,{maxwidth:m=""}=t,{showleaderboard:p=""}=t,{lang:g=""}=t,{loginevent:b=""}=t,{registerevent:y=""}=t,{loginurl:w=""}=t,{registerurl:C=""}=t,{currency:v=""}=t,{bonuscode:T=""}=t,{keepbrowsercontext:x="false"}=t,_="";Object.keys(oi).forEach((e=>{Qn(e,oi[e])})),ar({fallbackLocale:"en",initialLocale:"en"});let k=!1,S="",P=window.navigator.userAgent,E=!1,$=!1,L="There was an error while trying to join the tournament",M=!1;const A=()=>{b&&window.postMessage({type:b,transition:"Login"},window.location.href),w&&(window.location=w)},R=()=>{y&&window.postMessage({type:y,transition:"Register"},window.location.href),C&&(window.location=C)},B=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},F=async(e,t)=>{var n;r(7,$=!1),r(9,M=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),r(6,E=!0);let o=new URL(`${l}/bonus/claim`),s=new Headers,u={};o.searchParams.append("language",g),o.searchParams.append("platform",zn(P)),s.append("Content-Type","application/json"),s.append("X-SessionID",S),t&&(u={language:g,bonusCode:t,currency:v});let c={method:"PUT",headers:s,body:JSON.stringify(u)};const d=()=>{r(6,E=!1),r(0,h="true"),window.postMessage({type:"TournamentUserEnrolled",userenrolled:h},window.location.href)},f=e=>{r(6,E=!1),e&&r(8,L=e),r(7,$=!0)},m=await(async()=>{let e;try{e=await fetch(o,c),e=await e.json()}catch(e){f()}return e})();if(m)if(1==m.success)d();else if(m.errorMessage.match("VersionMismatchException")){let e;e=await fetch(`${l}/tournaments/${a}`,{headers:{"X-SessionID":i}}),e=await e.json(),(null===(n=null==e?void 0:e.item)||void 0===n?void 0:n.playerEnrolled)?d():(f(m.errorMessage),r(9,M=!0),r(7,$=!1))}else f(m.errorMessage)},O=e=>{e.data&&"UserSessionID"==e.data.type&&(r(5,k=!0),S=e.data.session)};D((()=>(r(4,_=!("true"!=p)),window.addEventListener("message",O),()=>{window.removeEventListener("message",O)})));return e.$$set=e=>{"session"in e&&r(15,i=e.session),"userid"in e&&r(16,o=e.userid),"tourid"in e&&r(1,a=e.tourid),"tournamenturl"in e&&r(17,s=e.tournamenturl),"endpoint"in e&&r(18,l=e.endpoint),"showdetails"in e&&r(2,u=e.showdetails),"showslider"in e&&r(19,c=e.showslider),"userenrolled"in e&&r(0,h=e.userenrolled),"showenrolled"in e&&r(20,f=e.showenrolled),"maxwidth"in e&&r(21,m=e.maxwidth),"showleaderboard"in e&&r(22,p=e.showleaderboard),"lang"in e&&r(23,g=e.lang),"loginevent"in e&&r(24,b=e.loginevent),"registerevent"in e&&r(25,y=e.registerevent),"loginurl"in e&&r(26,w=e.loginurl),"registerurl"in e&&r(27,C=e.registerurl),"currency"in e&&r(28,v=e.currency),"bonuscode"in e&&r(3,T=e.bonuscode),"keepbrowsercontext"in e&&r(29,x=e.keepbrowsercontext)},e.$$.update=()=>{/*session*/32768&e.$$.dirty[0]&&i&&(i.length>0&&"false"!=i?(S=i,r(5,k=!0)):r(5,k=!1)),/*lang*/8388608&e.$$.dirty[0]&&g&&ei(g)},[h,a,u,T,_,k,E,$,L,M,n,A,R,B,F,i,o,s,l,c,f,m,p,g,b,y,w,C,v,x,()=>A(),()=>R(),()=>B(a),()=>F(a,T),()=>B(a)]}customElements.define("score-criteria-cell",di);class _i extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},xi,Ti,a,{session:15,userid:16,tourid:1,tournamenturl:17,endpoint:18,showdetails:2,showslider:19,userenrolled:0,showenrolled:20,maxwidth:21,showleaderboard:22,lang:23,loginevent:24,registerevent:25,loginurl:26,registerurl:27,currency:28,bonuscode:3,keepbrowsercontext:29},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["session","userid","tourid","tournamenturl","endpoint","showdetails","showslider","userenrolled","showenrolled","maxwidth","showleaderboard","lang","loginevent","registerevent","loginurl","registerurl","currency","bonuscode","keepbrowsercontext"]}get session(){return this.$$.ctx[15]}set session(e){this.$$set({session:e}),U()}get userid(){return this.$$.ctx[16]}set userid(e){this.$$set({userid:e}),U()}get tourid(){return this.$$.ctx[1]}set tourid(e){this.$$set({tourid:e}),U()}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),U()}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),U()}get showdetails(){return this.$$.ctx[2]}set showdetails(e){this.$$set({showdetails:e}),U()}get showslider(){return this.$$.ctx[19]}set showslider(e){this.$$set({showslider:e}),U()}get userenrolled(){return this.$$.ctx[0]}set userenrolled(e){this.$$set({userenrolled:e}),U()}get showenrolled(){return this.$$.ctx[20]}set showenrolled(e){this.$$set({showenrolled:e}),U()}get maxwidth(){return this.$$.ctx[21]}set maxwidth(e){this.$$set({maxwidth:e}),U()}get showleaderboard(){return this.$$.ctx[22]}set showleaderboard(e){this.$$set({showleaderboard:e}),U()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),U()}get loginevent(){return this.$$.ctx[24]}set loginevent(e){this.$$set({loginevent:e}),U()}get registerevent(){return this.$$.ctx[25]}set registerevent(e){this.$$set({registerevent:e}),U()}get loginurl(){return this.$$.ctx[26]}set loginurl(e){this.$$set({loginurl:e}),U()}get registerurl(){return this.$$.ctx[27]}set registerurl(e){this.$$set({registerurl:e}),U()}get currency(){return this.$$.ctx[28]}set currency(e){this.$$set({currency:e}),U()}get bonuscode(){return this.$$.ctx[3]}set bonuscode(e){this.$$set({bonuscode:e}),U()}get keepbrowsercontext(){return this.$$.ctx[29]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),U()}}
775
+ /* src/Cells/StatusTag.svelte generated by Svelte v3.48.0 */
776
+ function ki(e){let t,r,n,i,o,a,s;return{c(){t=y("div"),r=C(/*shownStatus*/e[1]),_(t,"class",n="Status "+/*statusClass*/e[2]+" TagContent"),_(t,"part",i="Status "+/*statusClass*/e[2]+" TagContent")},m(n,i){p(n,t,i),m(t,r),a||(s=f(o=/*matchStatus*/e[3].call(null,t)),a=!0)},p(e,o){/*shownStatus*/2&o&&k(r,/*shownStatus*/e[1]),/*statusClass*/4&o&&n!==(n="Status "+/*statusClass*/e[2]+" TagContent")&&_(t,"class",n),/*statusClass*/4&o&&i!==(i="Status "+/*statusClass*/e[2]+" TagContent")&&_(t,"part",i)},d(e){e&&g(t),a=!1,s()}}}function Si(t){let r,n=/*status*/t[0]&&ki(t);return{c(){n&&n.c(),r=T(),this.c=e},m(e,t){n&&n.m(e,t),p(e,r,t)},p(e,[t]){/*status*/e[0]?n?n.p(e,t):(n=ki(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&g(r)}}}function Pi(e,t,r){let n;d(e,kr,(e=>r(6,n=e)));let{lang:i="en"}=t,{status:o=""}=t;Object.keys(li).forEach((e=>{Qn(e,li[e])})),ar({fallbackLocale:"en",initialLocale:"en"});let a="",s="";const l=()=>{"Unstarted"==o&&(r(1,a=n("tournamentsThumbnail.scheduled")),r(2,s="StatusUnstarted")),"Running"==o&&(r(1,a=n("tournamentsThumbnail.ongoing")),r(2,s="StatusRunning")),"Closed"!=o&&"Closing"!=o||r(1,a=n("tournamentsThumbnail.finished")),"Closed"==o&&r(2,s="StatusClosed"),"Closing"==o&&r(2,s="StatusClosing")};let u=!1;return D((()=>{r(5,u=!0)})),e.$$set=e=>{"lang"in e&&r(4,i=e.lang),"status"in e&&r(0,o=e.status)},e.$$.update=()=>{/*isMounted, lang, status*/49&e.$$.dirty&&u&&i&&o&&(ei(i),l())},[o,a,s,l,i,u]}customElements.define("tournament-join-button-cell",_i);class Ei extends G{constructor(e){super(),this.shadowRoot.innerHTML="<style>.Status{color:greenyellow}</style>",re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Pi,Si,a,{lang:4,status:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","status"]}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),U()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),U()}}
777
+ /* src/Cells/UserEnrollTag.svelte generated by Svelte v3.48.0 */
778
+ function $i(e){let t,r=/*userenrolled*/e[0]&&Li(e);return{c(){r&&r.c(),t=T()},m(e,n){r&&r.m(e,n),p(e,t,n)},p(e,n){/*userenrolled*/e[0]?r?r.p(e,n):(r=Li(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&g(t)}}}
779
+ // (32:4) {#if userenrolled}
780
+ function Li(e){let t,r,n=/*$_*/e[2]("tournamentsThumbnail.enrolled")+"";return{c(){t=y("div"),r=C(n),_(t,"class","Enrolled TagContent"),_(t,"part","Enrolled TagContent")},m(e,n){p(e,t,n),m(t,r)},p(e,t){/*$_*/4&t&&n!==(n=/*$_*/e[2]("tournamentsThumbnail.enrolled")+"")&&k(r,n)},d(e){e&&g(t)}}}function Di(t){let r,n=/*showenrolled*/"true"==t[1]&&$i(t);return{c(){n&&n.c(),r=T(),this.c=e},m(e,t){n&&n.m(e,t),p(e,r,t)},p(e,[t]){/*showenrolled*/"true"==e[1]?n?n.p(e,t):(n=$i(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&g(r)}}}function Mi(e,t,r){let n;d(e,kr,(e=>r(2,n=e)));let{lang:i="en"}=t,{showenrolled:o=""}=t,{userenrolled:a}=t;Object.keys(li).forEach((e=>{Qn(e,li[e])})),ar({fallbackLocale:"en",initialLocale:"en"});const s=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&r(0,a=e.data.userenrolled)};return D((()=>(window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}))),e.$$set=e=>{"lang"in e&&r(3,i=e.lang),"showenrolled"in e&&r(1,o=e.showenrolled),"userenrolled"in e&&r(0,a=e.userenrolled)},e.$$.update=()=>{/*lang*/8&e.$$.dirty&&i&&ei(i)},[a,o,n,i]}customElements.define("status-cell",Ei);class Ai extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Mi,Di,a,{lang:3,showenrolled:1,userenrolled:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","showenrolled","userenrolled"]}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),U()}get showenrolled(){return this.$$.ctx[1]}set showenrolled(e){this.$$set({showenrolled:e}),U()}get userenrolled(){return this.$$.ctx[0]}set userenrolled(e){this.$$set({userenrolled:e}),U()}}
781
+ /* src/Cells/DurationCell.svelte generated by Svelte v3.48.0 */
782
+ function Ri(e){let t,r,n,i,o,a,s,l,u,c,d,h,b;function w(e,t){/*status*/
783
+ return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?Oi:/*tournamentUntilStartDays*/e[4]>0?Fi:Bi}let T=w(e),x=T(e);function S(e,t){/*status*/
784
+ return"Finished"==e[2]||/*status*/"Closing"==e[2]||/*status*/"Closed"==e[2]?Ni:/*tournamentUntilStartDays*/e[4]>0?Hi:/*tournamentLeftDays*/e[3]>0?zi:void 0}let P=S(e),E=P&&P(e);return{c(){t=y("div"),r=y("div"),n=C(/*startDateAsString*/e[6]),i=v(),o=y("div"),a=C(/*endDateAsString*/e[7]),s=v(),l=y("div"),u=y("div"),x.c(),c=v(),E&&E.c(),_(r,"class","StartDate"),_(r,"part","StartDate"),_(o,"class","EndDate"),_(o,"part","EndDate"),_(t,"class","TournamentDates"),_(t,"part","TournamentDates"),_(u,"class","ProgressBar"),_(u,"part","ProgressBar"),_(l,"class","ProgressBarWrapper"),_(l,"part","ProgressBarWrapper")},m(g,y){p(g,t,y),m(t,r),m(r,n),m(t,i),m(t,o),m(o,a),p(g,s,y),p(g,l,y),m(l,u),x.m(u,null),m(u,c),E&&E.m(u,null),h||(b=f(d=/*getDuration*/e[10].call(null,l)),h=!0)},p(e,t){/*startDateAsString*/64&t&&k(n,/*startDateAsString*/e[6]),/*endDateAsString*/128&t&&k(a,/*endDateAsString*/e[7]),T===(T=w(e))&&x?x.p(e,t):(x.d(1),x=T(e),x&&(x.c(),x.m(u,c))),P===(P=S(e))&&E?E.p(e,t):(E&&E.d(1),E=P&&P(e),E&&(E.c(),E.m(u,null)))},d(e){e&&g(t),e&&g(s),e&&g(l),x.d(),E&&E.d(),h=!1,b()}}}
785
+ // (97:10) {:else}
786
+ function Bi(e){let t;return{c(){t=y("div"),_(t,"class","ProgressBarFill"),_(t,"part","ProgressBarFill"),S(t,"width",/*getProgress*/e[8]()+"%")},m(e,r){p(e,t,r)},p(e,r){/*getProgress*/256&r&&S(t,"width",/*getProgress*/e[8]()+"%")},d(e){e&&g(t)}}}
787
+ // (95:10) {#if tournamentUntilStartDays > 0}
788
+ function Fi(t){let r;return{c(){r=y("div"),_(r,"class","ProgressBarFillStarting"),_(r,"part","ProgressBarFillStarting")},m(e,t){p(e,r,t)},p:e,d(e){e&&g(r)}}}
789
+ // (92:8) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
790
+ function Oi(t){let r;return{c(){r=y("div"),_(r,"class","ProgressBarFillEnd"),_(r,"part","ProgressBarFillEnd")},m(e,t){p(e,r,t)},p:e,d(e){e&&g(r)}}}
791
+ // (109:12) {#if tournamentLeftDays > 0}
792
+ function zi(e){let t,r,n,i,o=/*$_*/e[9]("tournamentsDuration.left")+"";return{c(){t=y("div"),r=C(/*showRemain*/e[5]),n=v(),i=C(o),_(t,"class","Remaining"),_(t,"part","Remaining")},m(e,o){p(e,t,o),m(t,r),m(t,n),m(t,i)},p(e,t){/*showRemain*/32&t&&k(r,/*showRemain*/e[5]),/*$_*/512&t&&o!==(o=/*$_*/e[9]("tournamentsDuration.left")+"")&&k(i,o)},d(e){e&&g(t)}}}
793
+ // (104:10) {#if tournamentUntilStartDays > 0}
794
+ function Hi(e){let t,r,n,i,o=/*$_*/e[9]("tournamentsDuration.starting")+"",a=/*getTextByDiff*/e[11](/*tournamentUntilStartDays*/e[4])+"";return{c(){t=y("div"),r=C(o),n=v(),i=C(a),_(t,"class","Remaining"),_(t,"part","Remaining")},m(e,o){p(e,t,o),m(t,r),m(t,n),m(t,i)},p(e,t){/*$_*/512&t&&o!==(o=/*$_*/e[9]("tournamentsDuration.starting")+"")&&k(r,o),/*tournamentUntilStartDays*/16&t&&a!==(a=/*getTextByDiff*/e[11](/*tournamentUntilStartDays*/e[4])+"")&&k(i,a)},d(e){e&&g(t)}}}
795
+ // (101:8) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
796
+ function Ni(e){let t,r,n=/*$_*/e[9]("tournamentsDuration.finished")+"";return{c(){t=y("div"),r=C(n),_(t,"class","Finished"),_(t,"part","Finished")},m(e,n){p(e,t,n),m(t,r)},p(e,t){/*$_*/512&t&&n!==(n=/*$_*/e[9]("tournamentsDuration.finished")+"")&&k(r,n)},d(e){e&&g(t)}}}function Ui(t){let r,n=/*startdate*/t[0]&&/*enddate*/t[1]&&Ri(t);return{c(){r=y("div"),n&&n.c(),this.c=e,_(r,"class","TournamentDuration"),_(r,"part","TournamentDuration")},m(e,t){p(e,r,t),n&&n.m(r,null)},p(e,[t]){/*startdate*/e[0]&&/*enddate*/e[1]?n?n.p(e,t):(n=Ri(e),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&g(r),n&&n.d()}}}function Ii(e,t,r){let n,i;d(e,kr,(e=>r(9,i=e)));let{startdate:o=""}=t,{enddate:a=""}=t,{status:s=""}=t,{lang:l="en"}=t,u="",c="",h="",f="",m="";Object.keys(ni).forEach((e=>{Qn(e,ni[e])}));const p=e=>new Date(e).getTime(),g=(e,t)=>(p(t)-p(e))/6e4,b=()=>{const e=new Date;r(3,u=g(e,a)),r(4,c=g(e,o)),r(5,h=C(u))},y=e=>{if(!e)return;let t=new Date(e),r=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${t.getUTCFullYear()}`},w=()=>{r(6,f=y(o)),r(7,m=y(a))},C=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map((e=>(e=>{const t=Math.floor(e);return t<10?`0${t}`:`${t}`})(e))).join(":")}return Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return D((()=>{const e=setInterval((()=>{o&&a&&b()}),1e3);return()=>clearInterval(e)})),e.$$set=e=>{"startdate"in e&&r(0,o=e.startdate),"enddate"in e&&r(1,a=e.enddate),"status"in e&&r(2,s=e.status),"lang"in e&&r(12,l=e.lang)},e.$$.update=()=>{/*tournamentLeftDays, startdate, enddate*/11&e.$$.dirty&&r(8,n=()=>{if(u<=0)return 100;const e=g(o,a),t=100/e;return Math.floor((e-u)*t)}),/*startdate, enddate, tournamentLeftDays*/11&e.$$.dirty&&o&&a&&w()&&b()&&C(u),/*lang*/4096&e.$$.dirty&&l&&b()&&ei(l),/*lang, tournamentLeftDays*/4104&e.$$.dirty&&l&&C(u),/*lang*/4096&e.$$.dirty&&l&&w()},[o,a,s,u,c,h,f,m,n,i,b,C,l]}customElements.define("user-enroll-tag",Ai);class Yi extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ii,Ui,a,{startdate:0,enddate:1,status:2,lang:12},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),U()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),U()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),U()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),U()}}
797
+ /* src/Cells/SeeGamesLine.svelte generated by Svelte v3.48.0 */
798
+ function ji(t){let r,n,i,o,a,s,l,u,c,d=/*$_*/t[3]("tournamentsThumbnail.seegames")+"",h=/*$_*/t[3]("tournamentsThumbnail.here")+"";return{c(){r=y("div"),n=y("p"),i=C(d),o=v(),a=y("a"),s=C(h),this.c=e,_(a,"part","GamesAnchor"),_(a,"class","GamesAnchor"),_(a,"href",/*gameurl*/t[0]),_(a,"target",l=/*keepbrowsercontext*/"true"===t[2]?"_self":"_blank"),_(n,"part","GamesP"),_(r,"class","Games"),_(r,"part","Games")},m(e,l){p(e,r,l),m(r,n),m(n,i),m(n,o),m(n,a),m(a,s),u||(c=x(a,"click",/*click_handler*/t[6]),u=!0)},p(e,[t]){/*$_*/8&t&&d!==(d=/*$_*/e[3]("tournamentsThumbnail.seegames")+"")&&k(i,d),/*$_*/8&t&&h!==(h=/*$_*/e[3]("tournamentsThumbnail.here")+"")&&k(s,h),/*gameurl*/1&t&&_(a,"href",/*gameurl*/e[0]),/*keepbrowsercontext*/4&t&&l!==(l=/*keepbrowsercontext*/"true"===e[2]?"_self":"_blank")&&_(a,"target",l)},i:e,o:e,d(e){e&&g(r),u=!1,c()}}}function Gi(e,t,r){let n;d(e,kr,(e=>r(3,n=e)));let{gameurl:i=""}=t,{lang:o="en"}=t,{tourid:a=""}=t,{keepbrowsercontext:s="false"}=t;Object.keys(li).forEach((e=>{Qn(e,li[e])})),ar({fallbackLocale:"en",initialLocale:"en"});const l=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return e.$$set=e=>{"gameurl"in e&&r(0,i=e.gameurl),"lang"in e&&r(5,o=e.lang),"tourid"in e&&r(1,a=e.tourid),"keepbrowsercontext"in e&&r(2,s=e.keepbrowsercontext)},[i,a,s,n,l,o,()=>l()]}customElements.define("duration-cell",Yi);class Vi extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Gi,ji,a,{gameurl:0,lang:5,tourid:1,keepbrowsercontext:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["gameurl","lang","tourid","keepbrowsercontext"]}get gameurl(){return this.$$.ctx[0]}set gameurl(e){this.$$set({gameurl:e}),U()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),U()}get tourid(){return this.$$.ctx[1]}set tourid(e){this.$$set({tourid:e}),U()}get keepbrowsercontext(){return this.$$.ctx[2]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),U()}}customElements.define("see-games-line",Vi);var Wi="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3552_59823)'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M7.497 7.374L8.673 7.066V11H9.646V6.016L7.497 6.471V7.374Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3552_59823'%3e%3crect width='18' height='18' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",qi="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M7.14 11H11.081V10.083H9.03L10.304 8.879C10.5093 8.69233 10.675 8.48467 10.801 8.256C10.927 8.02733 10.99 7.78233 10.99 7.521C10.99 7.34367 10.9527 7.16633 10.878 6.989C10.808 6.81167 10.6983 6.65067 10.549 6.506C10.4043 6.35667 10.22 6.23767 9.996 6.149C9.77667 6.05567 9.52 6.009 9.226 6.009C8.82933 6.009 8.49333 6.093 8.218 6.261C7.94733 6.42433 7.742 6.646 7.602 6.926C7.462 7.206 7.392 7.521 7.392 7.871H8.372C8.372 7.675 8.40467 7.50233 8.47 7.353C8.54 7.20367 8.63567 7.08933 8.757 7.01C8.883 6.926 9.03233 6.884 9.205 6.884C9.32633 6.884 9.43367 6.905 9.527 6.947C9.62033 6.98433 9.69967 7.03567 9.765 7.101C9.83033 7.16633 9.87933 7.241 9.912 7.325C9.94467 7.409 9.961 7.49533 9.961 7.584C9.961 7.71 9.93767 7.83133 9.891 7.948C9.84433 8.06467 9.77667 8.18133 9.688 8.298C9.59933 8.41467 9.492 8.54067 9.366 8.676L7.14 11Z' fill='white'/%3e%3c/svg%3e",Ji="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_3552_59855)'%3e%3cpath d='M7.01358 0.397379C6.76397 0.495817 6.55304 0.580192 6.54601 0.583707C6.53546 0.590739 7.3089 2.59464 7.33702 2.63332C7.3546 2.66144 8.29679 2.27121 8.29679 2.23605C8.29679 2.21144 8.1878 1.91613 8.05069 1.5716C7.9171 1.22707 7.74132 0.780582 7.66046 0.580192C7.58311 0.376286 7.50577 0.211051 7.49522 0.214567C7.48116 0.214567 7.26671 0.298942 7.01358 0.397379Z' fill='white'/%3e%3cpath d='M10.3395 0.576676C10.2586 0.780582 10.0828 1.22707 9.94922 1.5716C9.81211 1.91613 9.70312 2.21144 9.70312 2.23605C9.70312 2.27121 10.6453 2.66144 10.6664 2.63332C10.684 2.60168 11.4258 0.682145 11.4328 0.636442C11.4398 0.604801 11.3027 0.530973 11.025 0.418473C10.7965 0.323551 10.582 0.239176 10.5469 0.228629C10.4941 0.211051 10.459 0.270817 10.3395 0.576676Z' fill='white'/%3e%3cpath d='M3.86016 2.07432C3.67031 2.28525 3.51562 2.46455 3.51562 2.4751C3.51562 2.48213 3.8918 2.82666 4.34883 3.23799L5.17852 3.98682L5.40352 3.74424C5.83594 3.27314 5.88867 3.19932 5.83242 3.1501C5.8043 3.12549 5.4668 2.82314 5.08008 2.47861C4.69336 2.13408 4.33828 1.81768 4.28906 1.77549L4.20117 1.69463L3.86016 2.07432Z' fill='white'/%3e%3cpath d='M12.9735 2.4293C12.52 2.83711 12.1438 3.17813 12.1368 3.1957C12.1297 3.22031 12.7872 3.97266 12.8188 3.97266C12.8434 3.97266 14.4852 2.49258 14.4852 2.475C14.4852 2.46445 14.3411 2.2957 14.1618 2.09883C13.986 1.90195 13.8313 1.72969 13.8208 1.71563C13.8102 1.70156 13.427 2.02148 12.9735 2.4293Z' fill='white'/%3e%3cpath d='M1.50156 3.76875C1.31172 4.0043 0.991797 4.51406 0.879297 4.75313C0.496094 5.60742 0.478516 6.35273 0.826562 7.17891C0.847656 7.23516 0.830078 7.24219 0.7 7.24219C0.615625 7.24219 0.485547 7.25273 0.415234 7.26328C0.285156 7.28438 0.278125 7.29492 0.211328 7.51992C0.0601562 8.0332 0.025 8.27227 0.0214844 8.78906C0.0214844 9.39727 0.0707031 9.64336 0.299219 10.1145C0.425781 10.3711 0.520703 10.5012 0.75625 10.7508L1.05508 11.0672L0.928516 11.148C0.854687 11.1902 0.682422 11.3203 0.541797 11.4293L0.285156 11.6332L0.373047 11.918C0.583984 12.6 0.875781 13.1344 1.25898 13.5422C1.60703 13.9078 2.12383 14.2207 2.50703 14.291C2.57734 14.3051 2.63711 14.3332 2.63711 14.3508C2.63711 14.3684 2.59141 14.4527 2.53164 14.5371C2.47539 14.6215 2.42617 14.7059 2.42617 14.7199C2.42617 14.7691 2.8375 15.3598 3.0168 15.5707C3.37891 15.9961 3.97656 16.3758 4.525 16.5305C4.87305 16.6289 5.49883 16.6359 5.81875 16.5516C6.41641 16.3898 6.90156 16.098 7.32344 15.6445L7.58359 15.3633L7.70312 15.4055C7.99141 15.5039 8.24805 15.7395 8.38164 16.0277C8.44844 16.1754 8.45547 16.2633 8.46602 16.991L8.47656 17.7891H9.00039H9.52422L9.53477 16.9875C9.54531 16.2633 9.55234 16.1754 9.61914 16.0277C9.75273 15.7395 10.0094 15.5039 10.2977 15.4055L10.4172 15.3633L10.6773 15.6445C11.0992 16.098 11.5844 16.3898 12.182 16.5516C12.502 16.6359 13.1277 16.6289 13.4758 16.5305C14.0242 16.3758 14.6219 15.9961 14.984 15.5707C15.1633 15.3598 15.5746 14.7691 15.5746 14.7199C15.5746 14.7059 15.5254 14.6215 15.4691 14.5371C15.4129 14.4527 15.3637 14.3684 15.3637 14.3508C15.3637 14.3332 15.4234 14.3051 15.4937 14.291C15.5676 14.277 15.7223 14.2277 15.8383 14.1785C16.6609 13.834 17.2797 13.05 17.6277 11.9109L17.7156 11.6332L17.459 11.4293C17.3184 11.3203 17.1461 11.1902 17.0723 11.148L16.9457 11.0672L17.2445 10.7508C17.4801 10.5012 17.575 10.3711 17.7016 10.1145C17.923 9.65391 17.9793 9.39727 17.9793 8.80664C17.9828 8.30742 17.9441 8.06836 17.7859 7.51992C17.7227 7.29492 17.7156 7.28438 17.5855 7.26328C17.5152 7.25273 17.3852 7.24219 17.3008 7.24219C17.1707 7.24219 17.1531 7.23516 17.1742 7.17891C17.6066 6.14883 17.4801 5.21719 16.7559 4.13438C16.3867 3.57891 16.4254 3.6 16.0527 3.70898C14.977 4.02188 14.2703 4.57383 13.866 5.42461C13.5637 6.06445 13.5637 6.87656 13.8695 7.61484C13.982 7.88555 14.1367 8.17383 14.2738 8.36719C14.3371 8.45508 14.3371 8.46211 14.2 8.73633C14.1262 8.89102 14.0312 9.16523 13.9891 9.34453C13.9223 9.63281 13.9152 9.73477 13.9363 10.1883C13.9469 10.473 13.9645 10.7543 13.9785 10.8141C13.9961 10.916 13.9855 10.9336 13.7746 11.0848C13.3211 11.4047 12.9168 11.9496 12.6918 12.5262C12.5371 12.9234 12.5441 12.9164 12.3754 12.9445C12.0168 13.0078 11.5879 13.1941 11.2293 13.4508C11.0219 13.5984 10.4066 14.2172 10.4066 14.277C10.4066 14.2945 10.375 14.3086 10.3398 14.3086C10.3012 14.3086 10.1465 14.3473 9.99531 14.3965C9.69297 14.4914 9.39766 14.6707 9.15859 14.9027L9.00039 15.0539L8.85625 14.9098C8.63477 14.6883 8.30781 14.4914 8.00547 14.3965C7.8543 14.3473 7.69961 14.3086 7.66094 14.3086C7.62578 14.3086 7.59414 14.2945 7.59414 14.277C7.59414 14.2172 6.97891 13.5984 6.76797 13.4473C6.4832 13.2434 6.08945 13.057 5.78359 12.9867C5.65 12.9551 5.51641 12.9199 5.4918 12.9059C5.46719 12.8953 5.39336 12.7477 5.33008 12.5789C5.10156 11.9707 4.69023 11.4152 4.22969 11.0848C4.01523 10.9336 4.00469 10.916 4.02227 10.8141C4.03633 10.7543 4.05391 10.473 4.06445 10.1883C4.08555 9.73477 4.07852 9.63281 4.01172 9.34453C3.96953 9.16523 3.87461 8.89102 3.80078 8.73633L3.66367 8.45859L3.76914 8.30391C3.90273 8.11055 4.12422 7.66406 4.20156 7.43555C4.36328 6.95391 4.40547 6.38438 4.30703 5.92383C4.09961 4.95352 3.26641 4.12734 2.12734 3.76523C1.60703 3.6 1.63867 3.6 1.50156 3.76875ZM2.26445 4.95703C2.75664 5.19961 3.09766 5.58281 3.23828 6.05391C3.37187 6.48633 3.28398 7.04531 3.0168 7.51641L2.91133 7.69922L2.62656 7.55156C1.77227 7.10859 1.42422 6.22969 1.76172 5.37188C1.84258 5.16797 2.0043 4.85156 2.03242 4.85156C2.03945 4.85156 2.14492 4.90078 2.26445 4.95703ZM16.1371 5.15039C16.5133 5.92031 16.4184 6.65156 15.8734 7.18945C15.7328 7.32656 15.5465 7.46016 15.3707 7.55156L15.0895 7.69922L15.0156 7.57266C14.541 6.76758 14.6043 5.92031 15.1809 5.35078C15.3602 5.17852 15.8629 4.85859 15.9684 4.85156C15.9824 4.85156 16.0598 4.98516 16.1371 5.15039ZM1.59297 8.31445C1.96211 8.37773 2.27852 8.53242 2.52813 8.77148C2.76016 8.99297 2.89375 9.21445 2.97109 9.50977C3.02383 9.7207 3.04141 10.2691 3.00273 10.4766L2.97812 10.5891L2.71797 10.568C1.64219 10.4695 1.00234 9.72773 1.06211 8.65195C1.07266 8.47969 1.09023 8.32148 1.1043 8.30039C1.13594 8.25117 1.25547 8.25469 1.59297 8.31445ZM16.893 8.29688C16.9387 8.37422 16.9527 8.92969 16.9141 9.1582C16.7699 9.97383 16.1863 10.473 15.2547 10.568L15.0227 10.5891L14.998 10.4766C14.9594 10.2691 14.977 9.7207 15.0297 9.50977C15.1914 8.89453 15.7117 8.4375 16.3937 8.31445C16.7066 8.2582 16.8648 8.25117 16.893 8.29688ZM3.2418 11.7387C3.51602 11.8441 3.80781 12.0691 3.99766 12.3223C4.19102 12.5754 4.34219 12.8742 4.31758 12.9445C4.30703 12.9727 4.19453 13.043 4.07148 13.1063C3.08711 13.5879 2.13086 13.2539 1.62109 12.2449C1.58242 12.1641 1.54727 12.0727 1.54727 12.0445C1.54727 11.9742 1.97617 11.7563 2.24336 11.6895C2.52109 11.6191 2.98516 11.6438 3.2418 11.7387ZM15.7434 11.6895C16.0176 11.7563 16.4535 11.9707 16.4535 12.0445C16.4535 12.1992 16.0809 12.7547 15.8418 12.948C15.3039 13.391 14.6113 13.4437 13.9152 13.0922C13.7781 13.0219 13.6762 12.948 13.6762 12.9199C13.6762 12.832 13.8309 12.5508 14.0031 12.3223C14.425 11.7598 15.0648 11.5312 15.7434 11.6895ZM5.5375 14.0098C5.65 14.0414 5.83984 14.1152 5.95586 14.1785C6.1668 14.291 6.64492 14.7129 6.64492 14.7902C6.64492 14.8113 6.53594 14.9309 6.40234 15.0539C5.63242 15.7676 4.72891 15.743 3.94141 14.9871L3.67422 14.7305L3.90977 14.509C4.40195 14.0414 4.975 13.8656 5.5375 14.0098ZM13.2367 14.0098C13.5391 14.0906 13.8273 14.2559 14.091 14.509L14.3266 14.7305L14.0594 14.9871C13.2719 15.743 12.3684 15.7676 11.5984 15.0539C11.4648 14.9309 11.3559 14.8113 11.3559 14.7902C11.3559 14.7656 11.4648 14.6461 11.5949 14.5195C12.0906 14.0449 12.6707 13.8621 13.2367 14.0098Z' fill='white'/%3e%3cpath d='M8.876 8.613C9.24467 8.613 9.57367 8.564 9.863 8.466C10.1523 8.368 10.381 8.22567 10.549 8.039C10.717 7.84767 10.801 7.619 10.801 7.353C10.801 7.10567 10.738 6.88167 10.612 6.681C10.486 6.48033 10.3017 6.31933 10.059 6.198C9.821 6.07667 9.53167 6.016 9.191 6.016C8.869 6.016 8.58667 6.079 8.344 6.205C8.10133 6.331 7.91 6.50367 7.77 6.723C7.63467 6.93767 7.567 7.185 7.567 7.465H8.498C8.498 7.283 8.56333 7.13367 8.694 7.017C8.82933 6.89567 8.995 6.835 9.191 6.835C9.331 6.835 9.44533 6.85833 9.534 6.905C9.62267 6.95167 9.69033 7.01933 9.737 7.108C9.78367 7.19667 9.807 7.29933 9.807 7.416C9.807 7.50933 9.78367 7.60033 9.737 7.689C9.695 7.773 9.63433 7.85 9.555 7.92C9.47567 7.98533 9.37767 8.03667 9.261 8.074C9.149 8.11133 9.02067 8.13 8.876 8.13V8.613ZM9.149 11.098C9.513 11.098 9.828 11.0397 10.094 10.923C10.3647 10.8017 10.5723 10.6337 10.717 10.419C10.8663 10.2043 10.941 9.957 10.941 9.677C10.941 9.42967 10.8897 9.21967 10.787 9.047C10.6843 8.86967 10.5397 8.725 10.353 8.613C10.1663 8.49633 9.947 8.41233 9.695 8.361C9.44767 8.30967 9.17467 8.284 8.876 8.284V8.816C9.04867 8.816 9.20033 8.83467 9.331 8.872C9.46633 8.90467 9.57833 8.95367 9.667 9.019C9.76033 9.08433 9.83033 9.166 9.877 9.264C9.92367 9.35733 9.947 9.46 9.947 9.572C9.947 9.726 9.91433 9.85433 9.849 9.957C9.78367 10.0597 9.69267 10.139 9.576 10.195C9.464 10.2463 9.331 10.272 9.177 10.272C9.02767 10.272 8.89 10.244 8.764 10.188C8.638 10.1273 8.53767 10.041 8.463 9.929C8.38833 9.817 8.351 9.68167 8.351 9.523H7.357C7.357 9.733 7.399 9.93367 7.483 10.125C7.567 10.3117 7.686 10.4797 7.84 10.629C7.994 10.7737 8.18067 10.888 8.4 10.972C8.61933 11.056 8.869 11.098 9.149 11.098Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_3552_59855'%3e%3crect width='18' height='18' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
799
+ /* src/Cells/PrizesCell.svelte generated by Svelte v3.48.0 */
800
+ function Zi(e,t,r){const n=e.slice();return n[15]=t[r],n[17]=r,n}function Ki(e,t,r){const n=e.slice();return n[12]=t[r],n}function Xi(e,t,r){const n=e.slice();return n[15]=t[r],n[17]=r,n}
801
+ // (110:2) {#if prizes}
802
+ function Qi(e){let t;function r(e,t){/*cellsetting*/
803
+ return e[2].expandAll?to:eo}let n=r(e),i=n(e);return{c(){i.c(),t=T()},m(e,r){i.m(e,r),p(e,t,r)},p(e,o){n===(n=r(e))&&i?i.p(e,o):(i.d(1),i=n(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&g(t)}}}
804
+ // (134:4) {:else }
805
+ function eo(e){let t,r=/*prizes*/e[0],n=[];for(let t=0;t<r.length;t+=1)n[t]=no(Zi(e,r,t));let i=null;return r.length||(i=ro(e)),{c(){t=y("div");for(let e=0;e<n.length;e+=1)n[e].c();i&&i.c(),_(t,"class","Prizes"),_(t,"part","Prizes")},m(e,r){p(e,t,r);for(let e=0;e<n.length;e+=1)n[e].m(t,null);i&&i.m(t,null)},p(e,o){if(/*prizes, $_*/33&o){let a;for(r=/*prizes*/e[0],a=0;a<r.length;a+=1){const i=Zi(e,r,a);n[a]?n[a].p(i,o):(n[a]=no(i),n[a].c(),n[a].m(t,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=r.length,!r.length&&i?i.p(e,o):r.length?i&&(i.d(1),i=null):(i=ro(e),i.c(),i.m(t,null))}},d(e){e&&g(t),b(n,e),i&&i.d()}}}
806
+ // (111:4) {#if cellsetting.expandAll}
807
+ function to(e){let t,r=/*prizesInList*/e[3],n=[];for(let t=0;t<r.length;t+=1)n[t]=so(Ki(e,r,t));return{c(){t=y("div");for(let e=0;e<n.length;e+=1)n[e].c();_(t,"class","Prizes"),_(t,"part","Prizes")},m(e,r){p(e,t,r);for(let e=0;e<n.length;e+=1)n[e].m(t,null)},p(e,i){if(/*prizesInList, $_, rankImgs, showrankasimage*/58&i){let o;for(r=/*prizesInList*/e[3],o=0;o<r.length;o+=1){const a=Ki(e,r,o);n[o]?n[o].p(a,i):(n[o]=so(a),n[o].c(),n[o].m(t,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(e){e&&g(t),b(n,e)}}}
808
+ // (149:8) {:else}
809
+ function ro(e){let t,r,n=/*$_*/e[5]("tournamentsPrizes.noprizes")+"";return{c(){t=y("p"),r=C(n)},m(e,n){p(e,t,n),m(t,r)},p(e,t){/*$_*/32&t&&n!==(n=/*$_*/e[5]("tournamentsPrizes.noprizes")+"")&&k(r,n)},d(e){e&&g(t)}}}
810
+ // (136:8) {#each prizes as prize, index}
811
+ function no(e){let t,r,n,i,o,a,s,l,u,c,d,h,f=/*prize*/(e[15].count>1?`${/*prize*/e[15].rank}~${/*prize*/e[15].rank+/*prize*/e[15].count-1}`/*prize*/:e[15].rank)+"",b=/*$_*/e[5]("tournamentsPrizes.place")+"",w=/*prize*/e[15].name+"";return{c(){t=y("div"),r=y("p"),n=y("span"),i=C(f),o=v(),a=y("span"),s=C(b),l=C(": "),u=C(w),c=v(),_(n,"class","PrizeRank"),_(n,"part","PrizeRank"),_(a,"class","PrizeName"),_(a,"part","PrizeName"),_(r,"class","PrizeText"),_(r,"part","PrizeText"),_(t,"class",d="Prize Prize"+/*index*/e[17]),_(t,"part",h="Prize Prize"+/*index*/e[17])},m(e,d){p(e,t,d),m(t,r),m(r,n),m(n,i),m(r,o),m(r,a),m(a,s),m(a,l),m(a,u),m(t,c)},p(e,t){/*prizes*/1&t&&f!==(f=/*prize*/(e[15].count>1?`${/*prize*/e[15].rank}~${/*prize*/e[15].rank+/*prize*/e[15].count-1}`/*prize*/:e[15].rank)+"")&&k(i,f),/*$_*/32&t&&b!==(b=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(s,b),/*prizes*/1&t&&w!==(w=/*prize*/e[15].name+"")&&k(u,w)},d(e){e&&g(t)}}}
812
+ // (122:20) {:else}
813
+ function io(e){let t,r,n,i,o=/*prize*/e[15].rank+"",a=/*$_*/e[5]("tournamentsPrizes.place")+"";return{c(){t=y("span"),r=C(o),n=v(),i=C(a),_(t,"class","PrizeRank"),_(t,"part","PrizeRank")},m(e,o){p(e,t,o),m(t,r),m(t,n),m(t,i)},p(e,t){/*prizesInList*/8&t&&o!==(o=/*prize*/e[15].rank+"")&&k(r,o),/*$_*/32&t&&a!==(a=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(i,a)},d(e){e&&g(t)}}}
814
+ // (118:18) {#if prize.rank < 4 && showrankasimage == 'true'}
815
+ function oo(e){let t,r,n,i,o,a,s=/*$_*/e[5]("tournamentsPrizes.place")+"";return{c(){t=y("div"),r=y("img"),i=v(),o=y("span"),a=C(s),_(r,"alt","prize"),u(r.src,n=/*rankImgs*/e[4][/*prize*/e[15].rank])||_(r,"src",n),_(t,"class","PrizeRank"),_(t,"part","PrizeRank")},m(e,n){p(e,t,n),m(t,r),m(t,i),m(t,o),m(o,a)},p(e,t){/*rankImgs, prizesInList*/24&t&&!u(r.src,n=/*rankImgs*/e[4][/*prize*/e[15].rank])&&_(r,"src",n),/*$_*/32&t&&s!==(s=/*$_*/e[5]("tournamentsPrizes.place")+"")&&k(a,s)},d(e){e&&g(t)}}}
816
+ // (115:12) {#each colPrizes as prize, index}
817
+ function ao(e){let t,r,n,i,o,a,s,l=/*prize*/e[15].name+"";function u(e,t){/*prize*/
818
+ return e[15].rank<4&&/*showrankasimage*/"true"==e[1]?oo:io}let c=u(e),d=c(e);return{c(){t=y("div"),r=y("p"),d.c(),n=v(),i=y("span"),o=C(l),_(i,"class","PrizeName"),_(i,"part","PrizeName"),_(r,"class","PrizeText"),_(r,"part","PrizeText"),_(t,"class",a="Prize Prize"+(/*prize*/e[15].rank-1)),_(t,"part",s="Prize Prize"+(/*prize*/e[15].rank-1))},m(e,a){p(e,t,a),m(t,r),d.m(r,null),m(r,n),m(r,i),m(i,o)},p(e,i){c===(c=u(e))&&d?d.p(e,i):(d.d(1),d=c(e),d&&(d.c(),d.m(r,n))),/*prizesInList*/8&i&&l!==(l=/*prize*/e[15].name+"")&&k(o,l),/*prizesInList*/8&i&&a!==(a="Prize Prize"+(/*prize*/e[15].rank-1))&&_(t,"class",a),/*prizesInList*/8&i&&s!==(s="Prize Prize"+(/*prize*/e[15].rank-1))&&_(t,"part",s)},d(e){e&&g(t),d.d()}}}
819
+ // (113:8) {#each prizesInList as colPrizes}
820
+ function so(e){let t,r,n,i=/*colPrizes*/e[12],o=[];for(let t=0;t<i.length;t+=1)o[t]=ao(Xi(e,i,t));return{c(){t=y("div");for(let e=0;e<o.length;e+=1)o[e].c();r=v(),_(t,"class",n="ColPrizes col-"+/*prizesInList*/e[3].length)},m(e,n){p(e,t,n);for(let e=0;e<o.length;e+=1)o[e].m(t,null);m(t,r)},p(e,a){if(/*prizesInList, $_, rankImgs, showrankasimage*/58&a){let n;for(i=/*colPrizes*/e[12],n=0;n<i.length;n+=1){const s=Xi(e,i,n);o[n]?o[n].p(s,a):(o[n]=ao(s),o[n].c(),o[n].m(t,r))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}/*prizesInList*/8&a&&n!==(n="ColPrizes col-"+/*prizesInList*/e[3].length)&&_(t,"class",n)},d(e){e&&g(t),b(o,e)}}}function lo(t){let r,n,i,o,a,s,l,u,c,d=/*$_*/t[5]("tournamentsPrizes.prizes")+"",h=/*prizes*/t[0]&&Qi(t);return{c(){r=y("div"),n=y("div"),i=y("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',o=v(),a=y("span"),a.innerHTML='<slot name="prizeIcon"></slot>',s=v(),l=y("p"),u=C(d),c=v(),h&&h.c(),this.c=e,_(i,"class","TournamentPrizesIconWrapper"),_(i,"part","TournamentPrizesIconWrapper"),_(a,"class","TournamentPrizesIconWrapper"),_(a,"part","TournamentPrizesIconSlot"),_(l,"class","PrizesTitle"),_(l,"part","PrizesTitle"),_(n,"class","TournamentPrizesIconSection"),_(n,"part","TournamentPrizesIconSection"),_(r,"class","TournamentPrizes"),_(r,"part","TournamentPrizes")},m(e,t){p(e,r,t),m(r,n),m(n,i),m(n,o),m(n,a),m(n,s),m(n,l),m(l,u),m(r,c),h&&h.m(r,null)},p(e,[t]){/*$_*/32&t&&d!==(d=/*$_*/e[5]("tournamentsPrizes.prizes")+"")&&k(u,d),/*prizes*/e[0]?h?h.p(e,t):(h=Qi(e),h.c(),h.m(r,null)):h&&(h.d(1),h=null)},i:e,o:e,d(e){e&&g(r),h&&h.d()}}}function uo(e,t,r){let n;d(e,kr,(e=>r(5,n=e)));let{prizes:i}=t,{lang:o=""}=t,{showrankasimage:a="false"}=t,{cellsetting:s={expandAll:!0,listType:1,rowPerCol:8,maxCol:3}}=t;
821
+ //let prizes:any = undefined;
822
+ Object.keys(si).forEach((e=>{Qn(e,si[e])})),ar({fallbackLocale:"en",initialLocale:"en"});const l=e=>{};
823
+ /*if (e.data && e.data.type == `TournamentPrizes_${tourid}`) {
824
+ prizes = e.data.prizes;
825
+ }*/
826
+ let u=[];let c=[];return D((()=>(r(4,c=[Wi,Wi,qi,Ji]),window.addEventListener("message",l,!1),()=>{window.removeEventListener("message",l)}))),e.$$set=e=>{"prizes"in e&&r(0,i=e.prizes),"lang"in e&&r(6,o=e.lang),"showrankasimage"in e&&r(1,a=e.showrankasimage),"cellsetting"in e&&r(2,s=e.cellsetting)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&o&&ei(o),/*cellsetting, prizes*/5&e.$$.dirty&&s&&i&&(()=>{if(!s.expandAll)return;r(3,u=[[]]);let e=()=>{let e=[];return i.forEach((t=>{if(1==t.count)e.push(t);else{let r=parseInt(t.rank),n=t.name;for(let i=0;i<t.count;i++){let t={rank:r+i,name:n,count:1};e.push(t)}}})),e};if(1==s.listType){let t=e(),r=t.length,n=s.rowPerCol||8,i=s.maxCol;r>=n*i&&(n=Math.ceil(r/i)),r<=n&&(n=Math.ceil(r/i)),t.forEach(((e,t)=>{let r=Math.floor(t/n);u.length<r+1&&u.push([]),u[r].push(e)}))}else r(3,u[0]=e(),u)})()},[i,a,s,u,c,n,o]}class co extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},uo,lo,a,{prizes:0,lang:6,showrankasimage:1,cellsetting:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["prizes","lang","showrankasimage","cellsetting"]}get prizes(){return this.$$.ctx[0]}set prizes(e){this.$$set({prizes:e}),U()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),U()}get showrankasimage(){return this.$$.ctx[1]}set showrankasimage(e){this.$$set({showrankasimage:e}),U()}get cellsetting(){return this.$$.ctx[2]}set cellsetting(e){this.$$set({cellsetting:e}),U()}}
827
+ /* src/Cells/GamesCell.svelte generated by Svelte v3.48.0 */
828
+ function ho(e,t,r){const n=e.slice();return n[42]=t[r],n[44]=r,n}
829
+ // (135:2) {#if sliderGames}
830
+ function fo(e){let t,r,n,o,a,s,l,u,c=/*sliderGames*/e[2],d=[];for(let t=0;t<c.length;t+=1)d[t]=mo(ho(e,c,t));return{c(){t=y("div"),t.innerHTML='<svg 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="M15 19l-7-7 7-7"></path></svg>',r=v(),n=y("main"),o=y("div");for(let e=0;e<d.length;e+=1)d[e].c();a=v(),s=y("div"),s.innerHTML='<svg 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="M9 5l7 7-7 7"></path></svg>',_(t,"class","SliderNavButton"),_(t,"part","SliderNavButton"),P(t,"disabled",/*atStart*/e[7]),_(o,"class","items"),_(o,"part","items"),S(o,"transform","translateX("+/*offset*/e[0]+"px)"),_(n,"class","main"),_(s,"class","SliderNavButton"),_(s,"part","SliderNavButton"),P(s,"disabled",/*atEnd*/e[6])},m(i,c){p(i,t,c),p(i,r,c),p(i,n,c),m(n,o);for(let e=0;e<d.length;e+=1)d[e].m(o,null);
831
+ /*div1_binding*/e[25](o),p(i,a,c),p(i,s,c),l||(u=[x(t,"click",/*click_handler*/e[21]),x(s,"click",/*click_handler_2*/e[26])],l=!0)},p(e,r){if(/*atStart*/128&r[0]&&P(t,"disabled",/*atStart*/e[7]),/*gameClicked, sliderGames, enter, leave, hover, hoverIndex, $_*/5916&r[0]){let t;for(c=/*sliderGames*/e[2],t=0;t<c.length;t+=1){const n=ho(e,c,t);d[t]?d[t].p(n,r):(d[t]=mo(n),d[t].c(),d[t].m(o,null))}for(;t<d.length;t+=1)d[t].d(1);d.length=c.length}/*offset*/1&r[0]&&S(o,"transform","translateX("+/*offset*/e[0]+"px)"),/*atEnd*/64&r[0]&&P(s,"disabled",/*atEnd*/e[6])},d(o){o&&g(t),o&&g(r),o&&g(n),b(d,o),
832
+ /*div1_binding*/e[25](null),o&&g(a),o&&g(s),l=!1,i(u)}}}
833
+ // (143:8) {#each sliderGames as game, i}
834
+ function mo(e){let t,r,n,o,a,s,l,c,d,h,f,b,w,T=/*$_*/e[8]("gamesSlider.playNow")+"";function S(){/*click_handler_1*/
835
+ return e[22](/*game*/e[42])}function P(){/*mouseenter_handler*/
836
+ return e[23](/*i*/e[44])}return{c(){t=y("div"),r=y("span"),n=C(T),s=v(),l=y("img"),f=v(),_(r,"class",o="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":"")),_(r,"part",a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":"")),_(l,"class","GameThumbnail"),_(l,"part","GameThumbnail"),u(l.src,c=/*game*/e[42].thumbnail)||_(l,"src",c),_(l,"width","132px"),_(l,"height","100px"),_(l,"alt",d=/*game*/e[42].name),_(l,"title",h=/*game*/e[42].name),_(t,"class","item"),_(t,"part","item")},m(i,o){p(i,t,o),m(t,r),m(r,n),m(t,s),m(t,l),m(t,f),b||(w=[x(t,"click",S),x(t,"mouseenter",P),x(t,"mouseleave",/*mouseleave_handler*/e[24])],b=!0)},p(t,i){e=t,/*$_*/256&i[0]&&T!==(T=/*$_*/e[8]("gamesSlider.playNow")+"")&&k(n,T),/*hover, hoverIndex*/24&i[0]&&o!==(o="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(r,"class",o),/*hover, hoverIndex*/24&i[0]&&a!==(a="PlayNowButton "+(/*hover*/e[3]&&/*hoverIndex*/e[4]==/*i*/e[44]?"itemHover":""))&&_(r,"part",a),/*sliderGames*/4&i[0]&&!u(l.src,c=/*game*/e[42].thumbnail)&&_(l,"src",c),/*sliderGames*/4&i[0]&&d!==(d=/*game*/e[42].name)&&_(l,"alt",d),/*sliderGames*/4&i[0]&&h!==(h=/*game*/e[42].name)&&_(l,"title",h)},d(e){e&&g(t),b=!1,i(w)}}}function po(t){let r,n=/*sliderGames*/t[2]&&fo(t);return{c(){r=y("div"),n&&n.c(),this.c=e,_(r,"class","TournamentsGamesSlider"),_(r,"part","TournamentsGamesSlider")},m(e,i){p(e,r,i),n&&n.m(r,null)
837
+ /*div_binding*/,t[27](r)},p(e,t){/*sliderGames*/e[2]?n?n.p(e,t):(n=fo(e),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&g(r),n&&n.d()
838
+ /*div_binding*/,t[27](null)}}}customElements.define("prizes-cell",co);function go(e,t,r){let n,i,o;d(e,kr,(e=>r(8,o=e)));let a,s,l,u,{pagfactor:c="175"}=t,{lang:h=""}=t,{session:f=""}=t,{tourid:m=""}=t,{endpoint:p=""}=t,g=window.navigator.userAgent,b=0,y=null,w=null,C=!1,v=0,T=[],x=[];Object.keys(ii).forEach((e=>{Qn(e,ii[e])}));const _=e=>{r(3,C=!0),r(4,l=e)},k=()=>{r(3,C=!1),r(4,l=-1)},S=e=>{const t=(e=>e.touches||e.originalEvent.touches)(e)[0];y=t.clientX,w=t.clientY},P=e=>{if(!y||!w)return;let t=e.touches[0].clientX,r=e.touches[0].clientY,n=y-t,i=w-r;Math.abs(n)>Math.abs(i)&&E(n>0?1:-1),y=null,w=null},E=e=>{e>0&&!i?(r(0,b-=a),r(0,b=b<v?v:b)):e<0&&!n&&(r(0,b+=a),r(0,b=b>0?0:b))},$=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};let L=!1;D((()=>(r(20,L=!0),a=parseInt("3",10)*parseInt(c,10),()=>{s.removeEventListener("touchstart",S),s.removeEventListener("touchmove",P)})));return e.$$set=e=>{"pagfactor"in e&&r(13,c=e.pagfactor),"lang"in e&&r(14,h=e.lang),"session"in e&&r(15,f=e.session),"tourid"in e&&r(16,m=e.tourid),"endpoint"in e&&r(17,p=e.endpoint)},e.$$.update=()=>{/*offset*/1&e.$$.dirty[0]&&r(7,n=0===b),/*offset, gamesElementWidth*/262145&e.$$.dirty[0]&&r(6,i=b<=v),/*slider*/2&e.$$.dirty[0]&&s&&(s.addEventListener("touchstart",S,{passive:!0}),s.addEventListener("touchmove",P,{passive:!0})),/*games*/524288&e.$$.dirty[0]&&x&&(r(2,T=x.items),x.total),/*sliderGames*/4&e.$$.dirty[0]&&T&&T.length&&setTimeout((()=>{r(18,v=-1*(u.scrollWidth-u.clientWidth)),r(13,c=new String(u.scrollWidth/T.length)),a=parseInt("3",10)*parseFloat(c,2).toFixed(2)}),1e3),/*isMounted, endpoint, session, tourid*/1277952&e.$$.dirty[0]&&L&&p&&f&&m&&((e,t)=>{let n=new URL(e+`/tournaments/${t}`),i=new Headers({"X-SessionId":f});n.searchParams.append("platform",zn(g)),n.searchParams.append("language",h),n.searchParams.append("expand","games"),n.searchParams.append("pagination",`games(limit=30,offset=${b})`),n.searchParams.append("fields","games(id,name,thumbnail)");let o={method:"GET",headers:i};fetch(n.href,o).then((e=>e.json())).then((e=>{r(19,x=e.item.games),r(19,x=Object.assign({},x))}))})(p,m)},r(0,b=0),[b,s,T,C,l,u,i,n,o,_,k,E,$,c,h,f,m,p,v,x,L,()=>E(-1),e=>$(e),e=>_(e),()=>k(),function(e){A[e?"unshift":"push"]((()=>{u=e,r(5,u)}))},()=>E(1),function(e){A[e?"unshift":"push"]((()=>{s=e,r(1,s)}))}]}class bo extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},go,po,a,{pagfactor:13,lang:14,session:15,tourid:16,endpoint:17},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["pagfactor","lang","session","tourid","endpoint"]}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),U()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),U()}get session(){return this.$$.ctx[15]}set session(e){this.$$set({session:e}),U()}get tourid(){return this.$$.ctx[16]}set tourid(e){this.$$set({tourid:e}),U()}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),U()}}
839
+ /* src/Cells/TermsAndConditionsCell.svelte generated by Svelte v3.48.0 */
840
+ function yo(t){return{c(){this.c=e},m:e,p:e,i:e,o:e,d:e}}customElements.define("games-cell",bo);class wo extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},null,yo,a,{},null),e&&e.target&&p(e.target,this,e.anchor)}}
841
+ /* src/Cells/DescriptionCell.svelte generated by Svelte v3.48.0 */
842
+ function Co(e,t,r){const n=e.slice();return n[2]=t[r],n}
843
+ // (15:2) {:else }
844
+ function vo(t){let r;return{c(){r=C(" ")},m(e,t){p(e,r,t)},p:e,i:e,o:e,d(e){e&&g(r)}}}
845
+ // (9:0) {#if tournamentdescription && tournamentdescription.length > 0}
846
+ function To(e){let t,r,n=/*tournamentdescription*/e[0],i=[];for(let t=0;t<n.length;t+=1)i[t]=xo(Co(e,n,t));const o=e=>J(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);p(e,t,n),r=!0},p(e,r){if(/*tournamentdescription*/1&r){let a;for(n=/*tournamentdescription*/e[0],a=0;a<n.length;a+=1){const o=Co(e,n,a);i[a]?(i[a].p(o,r),q(i[a],1)):(i[a]=xo(o),i[a].c(),q(i[a],1),i[a].m(t.parentNode,t))}for(V(),a=n.length;a<i.length;a+=1)o(a);W()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)q(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)J(i[e]);r=!1},d(e){b(i,e),e&&g(t)}}}
847
+ // (10:2) {#each tournamentdescription as desc}
848
+ function xo(e){let t,r;return t=new Xn({props:{title:/*desc*/e[2].title,text:/*desc*/e[2].description,exportparts:"DetailsCard, DetailsTitle, Title, CollapseButtonDetails, DetailsContent"}}),{c(){X(t.$$.fragment)},m(e,n){Q(t,e,n),r=!0},p(e,r){const n={};/*tournamentdescription*/1&r&&(n.title=/*desc*/e[2].title),/*tournamentdescription*/1&r&&(n.text=/*desc*/e[2].description),t.$set(n)},i(e){r||(q(t.$$.fragment,e),r=!0)},o(e){J(t.$$.fragment,e),r=!1},d(e){ee(t,e)}}}function _o(t){let r,n,i,o;const a=[To,vo],s=[];function l(e,t){/*tournamentdescription*/
849
+ return e[0]&&/*tournamentdescription*/e[0].length>0?0:1}return r=l(t),n=s[r]=a[r](t),{c(){n.c(),i=T(),this.c=e},m(e,t){s[r].m(e,t),p(e,i,t),o=!0},p(e,[t]){let o=r;r=l(e),r===o?s[r].p(e,t):(V(),J(s[o],1,1,(()=>{s[o]=null})),W(),n=s[r],n?n.p(e,t):(n=s[r]=a[r](e),n.c()),q(n,1),n.m(i.parentNode,i))},i(e){o||(q(n),o=!0)},o(e){J(n),o=!1},d(e){s[r].d(e),e&&g(i)}}}function ko(e,t,r){let{tournamentdescription:n}=t;return e.$$set=e=>{"tournamentdescription"in e&&r(0,n=e.tournamentdescription)},e.$$.update=()=>{/*tournamentdescription*/1&e.$$.dirty&&n&&r(0,n)},[n]}customElements.define("tm-cell",wo);class So extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},ko,_o,a,{tournamentdescription:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["tournamentdescription"]}get tournamentdescription(){return this.$$.ctx[0]}set tournamentdescription(e){this.$$set({tournamentdescription:e}),U()}}customElements.define("description-cell",So);var Po="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",Eo="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";
850
+ /* src/Cells/LeaderboardCell.svelte generated by Svelte v3.48.0 */
851
+ function $o(e,t,r){const n=e.slice();return n[74]=t[r],n}function Lo(e,t,r){const n=e.slice();return n[71]=t[r],n}function Do(e,t,r){const n=e.slice();return n[74]=t[r],n[80]=r,n}function Mo(e,t,r){const n=e.slice();return n[71]=t[r],n}function Ao(e,t,r){const n=e.slice();return n[74]=t[r],n}
852
+ // (565:2) {:else}
853
+ function Ro(e){let t,r,n,i,o,a,s,l,u,c=/*$_*/e[15]("tournamentsTable.nowinners")+"",d=/*columns*/e[4],h=[];for(let t=0;t<d.length;t+=1)h[t]=Ho($o(e,d,t));return{c(){t=y("div"),r=y("table"),n=y("thead"),i=y("tr");for(let e=0;e<h.length;e+=1)h[e].c();o=v(),a=y("tbody"),s=y("tr"),l=y("td"),u=C(c),_(i,"part","LeftTableTr"),_(n,"part","LeftTableThead"),_(n,"class","LeftTableThead"),_(l,"colspan",/*tooltipColSpan*/e[9]),_(l,"part","LeftTableTd"),_(s,"part","LeftTableTr"),_(a,"part","LeftTableTbody"),_(a,"class","LeftTableTbody"),_(r,"class","LeftTable"),_(r,"part","LeftTable"),_(t,"class","TournamentsTable"),_(t,"part","TournamentsTable"),S(t,"display",/*isLoading*/e[10]?"none":"")},m(e,c){p(e,t,c),m(t,r),m(r,n),m(n,i);for(let e=0;e<h.length;e+=1)h[e].m(i,null);m(r,o),m(r,a),m(a,s),m(s,l),m(l,u)},p(e,r){if(/*sort, sortBy, columns, $_, sortable*/172050&r[0]){let t;for(d=/*columns*/e[4],t=0;t<d.length;t+=1){const n=$o(e,d,t);h[t]?h[t].p(n,r):(h[t]=Ho(n),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}/*$_*/32768&r[0]&&c!==(c=/*$_*/e[15]("tournamentsTable.nowinners")+"")&&k(u,c),/*tooltipColSpan*/512&r[0]&&_(l,"colspan",/*tooltipColSpan*/e[9]),/*isLoading*/1024&r[0]&&S(t,"display",/*isLoading*/e[10]?"none":"")},d(e){e&&g(t),b(h,e)}}}
854
+ // (559:2) {#if isMobile(userAgent) == true}
855
+ function Bo(e){let t,r=/*showTable*/e[6]&&!/*isLoading*/e[10]&&No(e);return{c(){r&&r.c(),t=T()},m(e,n){r&&r.m(e,n),p(e,t,n)},p(e,n){/*showTable*/e[6]&&!/*isLoading*/e[10]?r?r.p(e,n):(r=No(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&g(t)}}}
856
+ // (362:0) {#if !isLoading && (data.length > 0 || firstRowData)}
857
+ function Fo(e){let t;let r=function(e,t){return 1==On(/*userAgent*/e[16])?Io:Uo}(e),n=r(e);return{c(){n.c(),t=T()},m(e,r){n.m(e,r),p(e,t,r)},p(e,t){n.p(e,t)},d(e){n.d(e),e&&g(t)}}}
858
+ // (576:14) {:else}
859
+ function Oo(e){let t,r,n=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";return{c(){t=y("p"),r=C(n),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableP")},m(e,n){p(e,t,n),m(t,r)},p(e,i){/*$_, columns*/32784&i[0]&&n!==(n=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(r,n),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t)}}}
860
+ // (572:14) {#if sortable == 'true'}
861
+ function zo(e){let t,r,n,i,o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";function a(){/*click_handler_3*/
862
+ return e[38](/*column*/e[74])}return{c(){t=y("button"),r=C(o),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableButton")},m(e,o){p(e,t,o),m(t,r),n||(i=x(t,"click",a),n=!0)},p(n,i){e=n,/*$_, columns*/32784&i[0]&&o!==(o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(r,o),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t),n=!1,i()}}}
863
+ // (570:10) {#each columns as column}
864
+ function Ho(e){let t,r;function n(e,t){/*sortable*/
865
+ return"true"==e[1]?zo:Oo}let i=n(e),o=i(e);return{c(){t=y("th"),o.c(),r=v(),_(t,"part","LeftTableTh")},m(e,n){p(e,t,n),o.m(t,null),m(t,r)},p(e,a){i===(i=n(e))&&o?o.p(e,a):(o.d(1),o=i(e),o&&(o.c(),o.m(t,r)))},d(e){e&&g(t),o.d()}}}
866
+ // (560:4) {#if showTable && !isLoading}
867
+ function No(e){let t,r,n,i,o=/*$_*/e[15]("tournamentsTable.nowinners")+"";return{c(){t=y("div"),r=y("div"),n=y("p"),i=C(o),_(r,"class","TableUser"),_(r,"part","TableUser"),_(t,"class","TableContent"),_(t,"part","TableContent")},m(e,o){p(e,t,o),m(t,r),m(r,n),m(n,i)},p(e,t){/*$_*/32768&t[0]&&o!==(o=/*$_*/e[15]("tournamentsTable.nowinners")+"")&&k(i,o)},d(e){e&&g(t)}}}
868
+ // (423:2) {:else}
869
+ function Uo(e){let t,r,n,i,o,a,s,l,u,c,d,h,f=/*columns*/e[4],w=[];for(let t=0;t<f.length;t+=1)w[t]=Go(Do(e,f,t));let C=/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]&&Vo(e),T=/*showTable*/e[6]&&Xo(e);function k(e,t){/*showTable*/
870
+ return e[6]?sa:aa}let S=k(e),P=S(e);return{c(){t=y("div"),r=y("table"),n=y("thead"),i=y("tr");for(let e=0;e<w.length;e+=1)w[e].c();o=v(),a=y("tbody"),C&&C.c(),s=v(),T&&T.c(),l=v(),u=y("div"),c=y("div"),P.c(),_(i,"part","LeftTableTr"),_(i,"class","LeftTableTr"),_(n,"part","LeftTableThead"),_(n,"class","LeftTableThead"),_(a,"part","LeftTableTbody"),_(a,"class","LeftTableTbody"),_(r,"class","LeftTable"),_(r,"part","LeftTable"),_(c,"class","CollapseButton"),_(c,"part","CollapseButton"),_(u,"class","RightButton"),_(u,"part","RightButton"),_(t,"class","TournamentsTable"),_(t,"part","TournamentsTable")},m(f,g){p(f,t,g),m(t,r),m(r,n),m(n,i);for(let e=0;e<w.length;e+=1)w[e].m(i,null);m(r,o),m(r,a),C&&C.m(a,null),m(a,s),T&&T.m(a,null),m(t,l),m(t,u),m(u,c),P.m(c,null),d||(h=x(c,"click",/*click_handler_2*/e[37]),d=!0)},p(e,t){if(/*sort, sortBy, columns, $_, sortable*/172050&t[0]){let r;for(f=/*columns*/e[4],r=0;r<f.length;r+=1){const n=Do(e,f,r);w[r]?w[r].p(n,t):(w[r]=Go(n),w[r].c(),w[r].m(i,null))}for(;r<w.length;r+=1)w[r].d(1);w.length=f.length}/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]?C?C.p(e,t):(C=Vo(e),C.c(),C.m(a,s)):C&&(C.d(1),C=null),/*showTable*/e[6]?T?T.p(e,t):(T=Xo(e),T.c(),T.m(a,null)):T&&(T.d(1),T=null),S!==(S=k(e))&&(P.d(1),P=S(e),P&&(P.c(),P.m(c,null)))},d(e){e&&g(t),b(w,e),C&&C.d(),T&&T.d(),P.d(),d=!1,h()}}}
871
+ // (363:2) {#if isMobile(userAgent) == true}
872
+ function Io(e){let t,r,n,i,o=/*columns*/e[4],a=[];for(let t=0;t<o.length;t+=1)a[t]=ca(Ao(e,o,t));let s=/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]&&da(e),l=/*showTable*/e[6]&&pa(e);return{c(){t=y("div"),r=y("div");for(let e=0;e<a.length;e+=1)a[e].c();n=v(),s&&s.c(),i=v(),l&&l.c(),_(r,"class","TableUser TableHeadRow"),_(r,"part","TableUser TableHeadRow"),_(t,"class","TableContent"),_(t,"part","TableContent")},m(e,o){p(e,t,o),m(t,r);for(let e=0;e<a.length;e+=1)a[e].m(r,null);m(t,n),s&&s.m(t,null),m(t,i),l&&l.m(t,null)},p(e,n){if(/*columns, sort, sortBy, $_, sortable*/172050&n[0]){let t;for(o=/*columns*/e[4],t=0;t<o.length;t+=1){const i=Ao(e,o,t);a[t]?a[t].p(i,n):(a[t]=ca(i),a[t].c(),a[t].m(r,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=o.length}/*firstrow*/"true"==e[0]&&/*firstRowData*/e[5]?s?s.p(e,n):(s=da(e),s.c(),s.m(t,i)):s&&(s.d(1),s=null),/*showTable*/e[6]?l?l.p(e,n):(l=pa(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&g(t),b(a,e),s&&s.d(),l&&l.d()}}}
873
+ // (434:14) {:else}
874
+ function Yo(e){let t,r,n=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";return{c(){t=y("p"),r=C(n),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableP"),_(t,"class","LeftTableP")},m(e,n){p(e,t,n),m(t,r)},p(e,i){/*$_, columns*/32784&i[0]&&n!==(n=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(r,n),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t)}}}
875
+ // (430:14) {#if sortable == 'true'}
876
+ function jo(e){let t,r,n,i,o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";function a(){/*click_handler_1*/
877
+ return e[36](/*column*/e[74])}return{c(){t=y("button"),r=C(o),_(t,"data-sort",/*sort*/e[13]),_(t,"part","LeftTableButton")},m(e,o){p(e,t,o),m(t,r),n||(i=x(t,"click",a),n=!0)},p(n,i){e=n,/*$_, columns*/32784&i[0]&&o!==(o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(r,o),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t),n=!1,i()}}}
878
+ // (428:10) {#each columns as column, index}
879
+ function Go(e){let t,r,n;function i(e,t){/*sortable*/
880
+ return"true"==e[1]?jo:Yo}let o=i(e),a=o(e);return{c(){t=y("th"),a.c(),r=v(),_(t,"part",n="LeftTableTh LeftTableTh_"+/*index*/e[80]),_(t,"class","LeftTableTh")},m(e,n){p(e,t,n),a.m(t,null),m(t,r)},p(e,n){o===(o=i(e))&&a?a.p(e,n):(a.d(1),a=o(e),a&&(a.c(),a.m(t,r)))},d(e){e&&g(t),a.d()}}}
881
+ // (442:8) {#if firstrow == 'true' && firstRowData}
882
+ function Vo(e){let t,r,n,i,o,a,s,l,c,d,h,f,b,w,x,S,P,E,$,L,D,M,A,R,B,F,O,z,H,N,U,I,Y=/*firstRowData*/e[5].Player+"",j=/*firstRowData*/e[5].Points+"";function G(e,t){/*firstRowData*/
883
+ return e[5].Rank<4&&/*showrankasimage*/"true"==e[2]?qo:Wo}let V=G(e),W=V(e);function q(e,t){/*firstRowData*/
884
+ return e[5].Prize?Zo:Jo}let J=q(e),Z=J(e),K=/*firstRowData*/e[5].Unqualified&&Ko(e);return{c(){t=y("tr"),r=y("td"),n=y("div"),i=y("strong"),W.c(),o=v(),a=y("div"),s=y("img"),d=v(),h=y("img"),S=v(),P=y("td"),E=y("div"),$=C(Y),L=v(),D=y("td"),M=y("div"),A=C(j),R=v(),B=y("td"),F=y("div"),Z.c(),U=v(),K&&K.c(),I=T(),u(s.src,l=Po)||_(s,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),_(s,"alt","UpArrow"),_(s,"part","Rank_Arror_UP"),_(s,"class",c="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden")),u(h.src,f=Eo)||_(h,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),_(h,"alt","DownArrow"),_(h,"part","Rank_Arror_Down"),_(h,"class",b="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden")),_(a,"class",w="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(a,"part",x="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(i,"class","RankCol"),_(i,"part","RankCol"),_(n,"part","TableCellContent"),_(n,"class","TableCellContent CellContent"),_(r,"part","LeftTableTd RankFirstRow"),_(r,"class","LeftTableTd"),_(E,"part","TableCellContent"),_(E,"class","TableCellContent CellContent"),_(P,"part","LeftTableTd"),_(P,"class","LeftTableTd"),_(M,"class","Flex CellContent"),_(M,"part","Flex"),_(D,"part","LeftTableTd"),_(D,"class","LeftTableTd"),_(F,"class","PrizeCell CellContent"),_(F,"part","PrizeCell"),_(B,"class",O="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(B,"part",z="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(t,"class",H="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":"")),_(t,"part",N="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,r),m(r,n),m(n,i),W.m(i,null),m(i,o),m(i,a),m(a,s),m(a,d),m(a,h),m(t,S),m(t,P),m(P,E),m(E,$),m(t,L),m(t,D),m(D,M),m(M,A),m(t,R),m(t,B),m(B,F),Z.m(F,null),p(e,U,l),K&&K.m(e,l),p(e,I,l)},p(e,r){V===(V=G(e))&&W?W.p(e,r):(W.d(1),W=V(e),W&&(W.c(),W.m(i,o))),/*isUserPositionChanged, isUserPositionUp*/384&r[0]&&c!==(c="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(s,"class",c),/*isUserPositionChanged, isUserPositionUp*/384&r[0]&&b!==(b="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(h,"class",b),/*isUserPositionChanged*/128&r[0]&&w!==(w="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(a,"class",w),/*isUserPositionChanged*/128&r[0]&&x!==(x="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(a,"part",x),/*firstRowData*/32&r[0]&&Y!==(Y=/*firstRowData*/e[5].Player+"")&&k($,Y),/*firstRowData*/32&r[0]&&j!==(j=/*firstRowData*/e[5].Points+"")&&k(A,j),J===(J=q(e))&&Z?Z.p(e,r):(Z.d(1),Z=J(e),Z&&(Z.c(),Z.m(F,null))),/*firstRowData*/32&r[0]&&O!==(O="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(B,"class",O),/*firstRowData*/32&r[0]&&z!==(z="LeftTableTd "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(B,"part",z),/*firstRowData*/32&r[0]&&H!==(H="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"class",H),/*firstRowData*/32&r[0]&&N!==(N="FirstRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"part",N),/*firstRowData*/e[5].Unqualified?K?K.p(e,r):(K=Ko(e),K.c(),K.m(I.parentNode,I)):K&&(K.d(1),K=null)},d(e){e&&g(t),W.d(),Z.d(),e&&g(U),K&&K.d(e),e&&g(I)}}}
885
+ // (449:16) {:else}
886
+ function Wo(e){let t,r,n,i=/*firstRowData*/e[5].Rank+"";return{c(){t=y("em"),r=C("#"),n=C(i),_(t,"part","LeftTableTdEm")},m(e,i){p(e,t,i),m(t,r),m(t,n)},p(e,t){/*firstRowData*/32&t[0]&&i!==(i=/*firstRowData*/e[5].Rank+"")&&k(n,i)},d(e){e&&g(t)}}}
887
+ // (447:16) {#if firstRowData.Rank < 4 && showrankasimage=='true'}
888
+ function qo(e){let t,r;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,r=/*rankImgs*/e[12][/*firstRowData*/e[5].Rank])||_(t,"src",r)},m(e,r){p(e,t,r)},p(e,n){/*rankImgs, firstRowData*/4128&n[0]&&!u(t.src,r=/*rankImgs*/e[12][/*firstRowData*/e[5].Rank])&&_(t,"src",r)},d(e){e&&g(t)}}}
889
+ // (469:16) {:else}
890
+ function Jo(t){let r;return{c(){r=C("-")},m(e,t){p(e,r,t)},p:e,d(e){e&&g(r)}}}
891
+ // (467:16) {#if firstRowData.Prize}
892
+ function Zo(e){let t,r=/*firstRowData*/e[5].Prize+"";return{c(){t=C(r)},m(e,r){p(e,t,r)},p(e,n){/*firstRowData*/32&n[0]&&r!==(r=/*firstRowData*/e[5].Prize+"")&&k(t,r)},d(e){e&&g(t)}}}
893
+ // (475:10) {#if firstRowData.Unqualified}
894
+ function Ko(e){let t,r,n,i,o,a,s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("tr"),r=y("td"),n=w("svg"),i=w("path"),o=v(),a=C(s),_(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(n,"class","ExclamationMark"),_(n,"part","ExclamationMark"),_(n,"width","10"),_(n,"height","10"),_(n,"viewBox","0 0 10 10"),_(n,"fill","none"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(r,"colspan",/*tooltipColSpan*/e[9]),_(r,"part","LeftTableTd"),_(r,"class","LeftTableTd"),_(t,"class","TooltipsRow"),_(t,"part","TooltipsRow")},m(e,s){p(e,t,s),m(t,r),m(r,n),m(n,i),m(r,o),m(r,a)},p(e,t){/*$_*/32768&t[0]&&s!==(s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,s),/*tooltipColSpan*/512&t[0]&&_(r,"colspan",/*tooltipColSpan*/e[9])},d(e){e&&g(t)}}}
895
+ // (486:8) {#if showTable}
896
+ function Xo(e){let t,r=/*display*/e[14],n=[];for(let t=0;t<r.length;t+=1)n[t]=oa(Lo(e,r,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=T()},m(e,r){for(let t=0;t<n.length;t+=1)n[t].m(e,r);p(e,t,r)},p(e,i){if(/*display, tooltipColSpan, $_, _fractiondigit, isUserPositionChanged, isUserPositionUp, rankImgs, showrankasimage*/56196&i[0]){let o;for(r=/*display*/e[14],o=0;o<r.length;o+=1){const a=Lo(e,r,o);n[o]?n[o].p(a,i):(n[o]=oa(a),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(e){b(n,e),e&&g(t)}}}
897
+ // (496:22) {:else}
898
+ function Qo(e){let t,r,n=/*row*/e[71].Rank+"";return{c(){t=C("#"),r=C(n)},m(e,n){p(e,t,n),p(e,r,n)},p(e,t){/*display*/16384&t[0]&&n!==(n=/*row*/e[71].Rank+"")&&k(r,n)},d(e){e&&g(t),e&&g(r)}}}
899
+ // (494:22) {#if row.Rank < 4 && showrankasimage=='true'}
900
+ function ea(e){let t,r;return{c(){t=y("img"),_(t,"alt","prize"),_(t,"class","PrizeIcon"),u(t.src,r=/*rankImgs*/e[12][/*row*/e[71].Rank])||_(t,"src",r)},m(e,r){p(e,t,r)},p(e,n){/*rankImgs, display*/20480&n[0]&&!u(t.src,r=/*rankImgs*/e[12][/*row*/e[71].Rank])&&_(t,"src",r)},d(e){e&&g(t)}}}
901
+ // (500:24) {#if row.isCurrentUser}
902
+ function ta(e){let t,r,n,i,o,a,s;return{c(){t=y("img"),i=v(),o=y("img"),u(t.src,r=Po)||_(t,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),_(t,"alt","UpArrow"),_(t,"part","Rank_Arror_UP"),_(t,"class",n="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden")),u(o.src,a=Eo)||_(o,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),_(o,"alt","DownArrow"),_(o,"part","Rank_Arror_Down"),_(o,"class",s="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden"))},m(e,r){p(e,t,r),p(e,i,r),p(e,o,r)},p(e,r){/*isUserPositionChanged, isUserPositionUp*/384&r[0]&&n!==(n="svg Arrow Up "+(/*isUserPositionChanged*/e[7]&&/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(t,"class",n),/*isUserPositionChanged, isUserPositionUp*/384&r[0]&&s!==(s="svg Arrow Down "+(/*isUserPositionChanged*/e[7]&&!/*isUserPositionUp*/e[8]?"Show":"Hidden"))&&_(o,"class",s)},d(e){e&&g(t),e&&g(i),e&&g(o)}}}
903
+ // (523:18) {:else}
904
+ function ra(t){let r;return{c(){r=C("-")},m(e,t){p(e,r,t)},p:e,d(e){e&&g(r)}}}
905
+ // (521:18) {#if row.Prize}
906
+ function na(e){let t,r=/*row*/e[71].Prize+"";return{c(){t=C(r)},m(e,r){p(e,t,r)},p(e,n){/*display*/16384&n[0]&&r!==(r=/*row*/e[71].Prize+"")&&k(t,r)},d(e){e&&g(t)}}}
907
+ // (529:12) {#if row.Unqualified && row.isCurrentUser}
908
+ function ia(e){let t,r,n,i,o,a,s,l,u=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("tr"),r=y("td"),n=w("svg"),i=w("path"),o=v(),a=C(u),s=v(),_(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(n,"class","ExclamationMark"),_(n,"part","ExclamationMark"),_(n,"width","10"),_(n,"height","10"),_(n,"viewBox","0 0 10 10"),_(n,"fill","none"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(r,"colspan",/*tooltipColSpan*/e[9]),_(r,"part","LeftTableTd"),_(r,"class","LeftTableTd"),_(t,"class",l="TooltipsRow Rank"+/*row*/e[71].Rank+"Tr CurrentUserTr"),_(t,"part","TooltipsRow")},m(e,l){p(e,t,l),m(t,r),m(r,n),m(n,i),m(r,o),m(r,a),m(t,s)},p(e,n){/*$_*/32768&n[0]&&u!==(u=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,u),/*tooltipColSpan*/512&n[0]&&_(r,"colspan",/*tooltipColSpan*/e[9]),/*display*/16384&n[0]&&l!==(l="TooltipsRow Rank"+/*row*/e[71].Rank+"Tr CurrentUserTr")&&_(t,"class",l)},d(e){e&&g(t)}}}
909
+ // (487:10) {#each display as row}
910
+ function oa(e){let t,r,n,i,o,a,s,l,u,c,d,h,f,b,w,x,S,P,E,$,L,D,M,A,R,B,F,O,z=/*row*/e[71].Player+"",H=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"";function N(e,t){/*row*/
911
+ return e[71].Rank<4&&/*showrankasimage*/"true"==e[2]?ea:Qo}let U=N(e),I=U(e),Y=/*row*/e[71].isCurrentUser&&ta(e);function j(e,t){/*row*/
912
+ return e[71].Prize?na:ra}let G=j(e),V=G(e),W=/*row*/e[71].Unqualified&&/*row*/e[71].isCurrentUser&&ia(e);return{c(){t=y("tr"),r=y("td"),n=y("div"),i=y("strong"),o=y("em"),I.c(),a=v(),s=y("div"),Y&&Y.c(),d=v(),h=y("td"),f=y("div"),b=C(z),w=v(),x=y("td"),S=y("div"),P=y("div"),E=C(H),$=v(),L=y("td"),D=y("div"),V.c(),F=v(),W&&W.c(),O=T(),_(s,"class",l="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(s,"part",u="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden")),_(o,"part","LeftTableTdEm"),_(i,"class","RankCol"),_(i,"part","RankCol"),_(n,"part","TableCellContent"),_(n,"class","Table CellContent"),_(r,"part",c="LeftTableTd Rank-"+/*row*/e[71].Rank),_(r,"class","LeftTableTd"),_(f,"part","PlayerCellContent"),_(f,"class","Player CellContent"),_(h,"part","LeftTableTd"),_(h,"class","LeftTableTd"),_(P,"class","Flex ScoreUp"),_(P,"part","Flex ScoreUp"),_(S,"part","ScoreCellContent"),_(S,"class","Score CellContent"),_(x,"part","LeftTableTd"),_(x,"class","LeftTableTd"),_(D,"part","PrizeCellContent"),_(D,"class","Prize CellContent "),_(L,"class",M="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified")),_(L,"part",A="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified")),_(t,"class",R="LeftTableTr Rank"+/*row*/e[71].Rank+"Tr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":"")),_(t,"part",B="LeftTableTr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,r),m(r,n),m(n,i),m(i,o),I.m(o,null),m(o,a),m(o,s),Y&&Y.m(s,null),m(t,d),m(t,h),m(h,f),m(f,b),m(t,w),m(t,x),m(x,S),m(S,P),m(P,E),m(t,$),m(t,L),m(L,D),V.m(D,null),p(e,F,l),W&&W.m(e,l),p(e,O,l)},p(e,n){U===(U=N(e))&&I?I.p(e,n):(I.d(1),I=U(e),I&&(I.c(),I.m(o,a))),/*row*/e[71].isCurrentUser?Y?Y.p(e,n):(Y=ta(e),Y.c(),Y.m(s,null)):Y&&(Y.d(1),Y=null),/*isUserPositionChanged*/128&n[0]&&l!==(l="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(s,"class",l),/*isUserPositionChanged*/128&n[0]&&u!==(u="ScoreChangeFlag "+(/*isUserPositionChanged*/e[7]?"Show":"Hidden"))&&_(s,"part",u),/*display*/16384&n[0]&&c!==(c="LeftTableTd Rank-"+/*row*/e[71].Rank)&&_(r,"part",c),/*display*/16384&n[0]&&z!==(z=/*row*/e[71].Player+"")&&k(b,z),/*display, _fractiondigit*/18432&n[0]&&H!==(H=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"")&&k(E,H),G===(G=j(e))&&V?V.p(e,n):(V.d(1),V=G(e),V&&(V.c(),V.m(D,null))),/*display*/16384&n[0]&&M!==(M="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(L,"class",M),/*display*/16384&n[0]&&A!==(A="LeftTableTd "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(L,"part",A),/*display*/16384&n[0]&&R!==(R="LeftTableTr Rank"+/*row*/e[71].Rank+"Tr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"class",R),/*display*/16384&n[0]&&B!==(B="LeftTableTr "+(/*row*/e[71].isCurrentUser?"FirstRow":"")+" "+(/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"part",B),/*row*/e[71].Unqualified&&/*row*/e[71].isCurrentUser?W?W.p(e,n):(W=ia(e),W.c(),W.m(O.parentNode,O)):W&&(W.d(1),W=null)},d(e){e&&g(t),I.d(),Y&&Y.d(),V.d(),e&&g(F),W&&W.d(e),e&&g(O)}}}
913
+ // (549:10) {:else}
914
+ function aa(e){let t,r;return{c(){t=w("svg"),r=w("path"),_(r,"d","M6 9l6 6 6-6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,n){p(e,t,n),m(t,r)},d(e){e&&g(t)}}}
915
+ // (545:10) {#if showTable}
916
+ function sa(e){let t,r;return{c(){t=w("svg"),r=w("path"),_(r,"d","M18 15l-6-6-6 6"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"width","24"),_(t,"height","24"),_(t,"viewBox","0 0 24 24"),_(t,"fill","none"),_(t,"stroke","#ffffff"),_(t,"stroke-width","2"),_(t,"stroke-linecap","round"),_(t,"stroke-linejoin","round")},m(e,n){p(e,t,n),m(t,r)},d(e){e&&g(t)}}}
917
+ // (372:12) {:else}
918
+ function la(e){let t,r,n=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";return{c(){t=y("p"),r=C(n),_(t,"data-sort",/*sort*/e[13])},m(e,n){p(e,t,n),m(t,r)},p(e,i){/*$_, columns*/32784&i[0]&&n!==(n=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(r,n),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t)}}}
919
+ // (368:12) {#if sortable == 'true'}
920
+ function ua(e){let t,r,n,i,o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"";function a(){/*click_handler*/
921
+ return e[35](/*column*/e[74])}return{c(){t=y("button"),r=C(o),_(t,"data-sort",/*sort*/e[13])},m(e,o){p(e,t,o),m(t,r),n||(i=x(t,"click",a),n=!0)},p(n,i){e=n,/*$_, columns*/32784&i[0]&&o!==(o=/*$_*/e[15](`tournamentsTable.${/*column*/e[74]}`)+"")&&k(r,o),/*sort*/8192&i[0]&&_(t,"data-sort",/*sort*/e[13])},d(e){e&&g(t),n=!1,i()}}}
922
+ // (366:8) {#each columns as column}
923
+ function ca(e){let t,r,n,i;function o(e,t){/*sortable*/
924
+ return"true"==e[1]?ua:la}let a=o(e),s=a(e);return{c(){t=y("div"),s.c(),r=v(),_(t,"class",n="TableCell Table"+/*column*/e[74]),_(t,"part",i="TableCell Table"+/*column*/e[74])},m(e,n){p(e,t,n),s.m(t,null),m(t,r)},p(e,l){a===(a=o(e))&&s?s.p(e,l):(s.d(1),s=a(e),s&&(s.c(),s.m(t,r))),/*columns*/16&l[0]&&n!==(n="TableCell Table"+/*column*/e[74])&&_(t,"class",n),/*columns*/16&l[0]&&i!==(i="TableCell Table"+/*column*/e[74])&&_(t,"part",i)},d(e){e&&g(t),s.d()}}}
925
+ // (378:6) {#if firstrow == 'true' && firstRowData}
926
+ function da(e){let t,r,n,i,o,a,s,l,u,c,d,h,f,b,w,x,S=/*firstRowData*/e[5].Rank+"",P=/*firstRowData*/e[5].Player+"",E=/*firstRowData*/e[5].Points+"";function $(e,t){/*firstRowData*/
927
+ return e[5].Prize?fa:ha}let L=$(e),D=L(e),M=/*firstRowData*/e[5].Unqualified&&ma(e);return{c(){t=y("div"),r=y("div"),n=C(S),a=v(),s=y("div"),l=C(P),u=v(),c=y("div"),d=C(E),h=v(),D.c(),w=v(),M&&M.c(),x=T(),_(r,"class",i="TableCell TableRank "+(/*firstRowData*/e[5].Prize?"Qualified":"")),_(r,"part",o="TableCell TableRank RankFirstRow "+(/*firstRowData*/e[5].Prize?"Qualified":"")),_(s,"class","TableCell TablePlayer"),_(s,"part","TableCell TablePlayer"),_(c,"class","TableCell TablePoints"),_(c,"part","TableCell TablePoints"),_(t,"class",f="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":"")),_(t,"part",b="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))},m(e,i){p(e,t,i),m(t,r),m(r,n),m(t,a),m(t,s),m(s,l),m(t,u),m(t,c),m(c,d),m(t,h),D.m(t,null),p(e,w,i),M&&M.m(e,i),p(e,x,i)},p(e,a){/*firstRowData*/32&a[0]&&S!==(S=/*firstRowData*/e[5].Rank+"")&&k(n,S),/*firstRowData*/32&a[0]&&i!==(i="TableCell TableRank "+(/*firstRowData*/e[5].Prize?"Qualified":""))&&_(r,"class",i),/*firstRowData*/32&a[0]&&o!==(o="TableCell TableRank RankFirstRow "+(/*firstRowData*/e[5].Prize?"Qualified":""))&&_(r,"part",o),/*firstRowData*/32&a[0]&&P!==(P=/*firstRowData*/e[5].Player+"")&&k(l,P),/*firstRowData*/32&a[0]&&E!==(E=/*firstRowData*/e[5].Points+"")&&k(d,E),L===(L=$(e))&&D?D.p(e,a):(D.d(1),D=L(e),D&&(D.c(),D.m(t,null))),/*firstRowData*/32&a[0]&&f!==(f="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"class",f),/*firstRowData*/32&a[0]&&b!==(b="TableUser CurrentUserRow "+(/*firstRowData*/e[5].Unqualified?"UnqualifiedRow":""))&&_(t,"part",b),/*firstRowData*/e[5].Unqualified?M?M.p(e,a):(M=ma(e),M.c(),M.m(x.parentNode,x)):M&&(M.d(1),M=null)},d(e){e&&g(t),D.d(),e&&g(w),M&&M.d(e),e&&g(x)}}}
928
+ // (387:10) {:else}
929
+ function ha(t){let r;return{c(){r=y("div"),r.textContent="-",_(r,"class","TableCell TablePrize"),_(r,"part","TableCell TablePrize")},m(e,t){p(e,r,t)},p:e,d(e){e&&g(r)}}}
930
+ // (385:10) {#if firstRowData.Prize}
931
+ function fa(e){let t,r,n,i,o=/*firstRowData*/e[5].Prize+"";return{c(){t=y("div"),r=C(o),_(t,"class",n="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified")),_(t,"part",i="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))},m(e,n){p(e,t,n),m(t,r)},p(e,a){/*firstRowData*/32&a[0]&&o!==(o=/*firstRowData*/e[5].Prize+"")&&k(r,o),/*firstRowData*/32&a[0]&&n!==(n="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(t,"class",n),/*firstRowData*/32&a[0]&&i!==(i="TableCell TablePrize "+(/*firstRowData*/e[5].Unqualified?"":"Qualified"))&&_(t,"part",i)},d(e){e&&g(t)}}}
932
+ // (391:8) {#if firstRowData.Unqualified}
933
+ function ma(e){let t,r,n,i,o,a,s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("div"),r=w("svg"),n=w("path"),i=v(),o=y("em"),a=C(s),_(n,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(r,"class","ExclamationMark"),_(r,"part","ExclamationMark"),_(r,"width","10"),_(r,"height","10"),_(r,"viewBox","0 0 10 10"),_(r,"fill","none"),_(r,"xmlns","http://www.w3.org/2000/svg"),_(o,"part","TableUserTooltipsEm"),_(t,"class","TableUserTooltips"),_(t,"part","TableUserTooltips")},m(e,s){p(e,t,s),m(t,r),m(r,n),m(t,i),m(t,o),m(o,a)},p(e,t){/*$_*/32768&t[0]&&s!==(s=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,s)},d(e){e&&g(t)}}}
934
+ // (400:6) {#if showTable}
935
+ function pa(e){let t,r=/*display*/e[14],n=[];for(let t=0;t<r.length;t+=1)n[t]=wa(Mo(e,r,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=T()},m(e,r){for(let t=0;t<n.length;t+=1)n[t].m(e,r);p(e,t,r)},p(e,i){if(/*display, $_, _fractiondigit*/51200&i[0]){let o;for(r=/*display*/e[14],o=0;o<r.length;o+=1){const a=Mo(e,r,o);n[o]?n[o].p(a,i):(n[o]=wa(a),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(e){b(n,e),e&&g(t)}}}
936
+ // (408:12) {:else}
937
+ function ga(t){let r;return{c(){r=y("div"),r.textContent="-",_(r,"class","TableCell TablePrize"),_(r,"part","TableCell TablePrize")},m(e,t){p(e,r,t)},p:e,d(e){e&&g(r)}}}
938
+ // (406:12) {#if row.Prize}
939
+ function ba(e){let t,r,n,i,o=/*row*/e[71].Prize+"";return{c(){t=y("div"),r=C(o),_(t,"class",n="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified")),_(t,"part",i="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified"))},m(e,n){p(e,t,n),m(t,r)},p(e,a){/*display*/16384&a[0]&&o!==(o=/*row*/e[71].Prize+"")&&k(r,o),/*display*/16384&a[0]&&n!==(n="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(t,"class",n),/*display*/16384&a[0]&&i!==(i="TableCell TablePrize "+(/*row*/e[71].Unqualified?"":"Qualified"))&&_(t,"part",i)},d(e){e&&g(t)}}}
940
+ // (412:10) {#if row.isCurrentUser && row.Unqualified}
941
+ function ya(e){let t,r,n,i,o,a,s,l,u,c=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"";return{c(){t=y("div"),r=w("svg"),n=w("path"),i=v(),o=y("em"),a=C(c),s=v(),_(n,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),_(r,"class","ExclamationMark"),_(r,"part","ExclamationMark"),_(r,"width","10"),_(r,"height","10"),_(r,"viewBox","0 0 10 10"),_(r,"fill","none"),_(r,"xmlns","http://www.w3.org/2000/svg"),_(o,"part","TableUserTooltipsEm"),_(t,"class",l="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":"")),_(t,"part",u="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":""))},m(e,l){p(e,t,l),m(t,r),m(r,n),m(t,i),m(t,o),m(o,a),m(t,s)},p(e,r){/*$_*/32768&r[0]&&c!==(c=/*$_*/e[15]("tournamentsTable.UnqualifiedTips")+"")&&k(a,c),/*display*/16384&r[0]&&l!==(l="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"class",l),/*display*/16384&r[0]&&u!==(u="TableUserTooltips "+(/*row*/e[71].Unqualified?"UnqualifiedRow":""))&&_(t,"part",u)},d(e){e&&g(t)}}}
942
+ // (401:8) {#each display as row}
943
+ function wa(e){let t,r,n,i,o,a,s,l,u,c,d,h,f,b,w,x,S=/*row*/e[71].Rank+"",P=/*row*/e[71].Player+"",E=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"";function $(e,t){/*row*/
944
+ return e[71].Prize?ba:ga}let L=$(e),D=L(e),M=/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified&&ya(e);return{c(){t=y("div"),r=y("div"),n=C(S),a=v(),s=y("div"),l=C(P),u=v(),c=y("div"),d=C(E),h=v(),D.c(),w=v(),M&&M.c(),x=T(),_(r,"class",i="TableCell TableRank "+(/*row*/e[71].Prize?"Qualified":"")),_(r,"part",o="TableCell Rank-"+/*row*/e[71].Rank+" TableRank "+(/*row*/e[71].Prize?"Qualified":"")),_(s,"class","TableCell TablePlayer"),_(s,"part","TableCell TablePlayer"),_(c,"class","TableCell TablePoints"),_(c,"part","TableCell TablePoints"),_(t,"class",f="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":"")),_(t,"part",b="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":""))},m(e,i){p(e,t,i),m(t,r),m(r,n),m(t,a),m(t,s),m(s,l),m(t,u),m(t,c),m(c,d),m(t,h),D.m(t,null),p(e,w,i),M&&M.m(e,i),p(e,x,i)},p(e,a){/*display*/16384&a[0]&&S!==(S=/*row*/e[71].Rank+"")&&k(n,S),/*display*/16384&a[0]&&i!==(i="TableCell TableRank "+(/*row*/e[71].Prize?"Qualified":""))&&_(r,"class",i),/*display*/16384&a[0]&&o!==(o="TableCell Rank-"+/*row*/e[71].Rank+" TableRank "+(/*row*/e[71].Prize?"Qualified":""))&&_(r,"part",o),/*display*/16384&a[0]&&P!==(P=/*row*/e[71].Player+"")&&k(l,P),/*display, _fractiondigit*/18432&a[0]&&E!==(E=/*row*/e[71].Points.toLocaleString("en-US",{minimumFractionDigits:/*_fractiondigit*/e[11],maximumFractionDigits:/*_fractiondigit*/e[11]})+"")&&k(d,E),L===(L=$(e))&&D?D.p(e,a):(D.d(1),D=L(e),D&&(D.c(),D.m(t,null))),/*display*/16384&a[0]&&f!==(f="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":""))&&_(t,"class",f),/*display*/16384&a[0]&&b!==(b="TableUser "+(/*row*/e[71].isCurrentUser?"CurrentUserRow":""))&&_(t,"part",b),/*row*/e[71].isCurrentUser&&/*row*/e[71].Unqualified?M?M.p(e,a):(M=ya(e),M.c(),M.m(x.parentNode,x)):M&&(M.d(1),M=null)},d(e){e&&g(t),D.d(),e&&g(w),M&&M.d(e),e&&g(x)}}}function Ca(t){let r,n;function i(e,t){return!/*isLoading*/e[10]&&(/*data*/e[3].length>0||/*firstRowData*/e[5])?Fo:(null==r&&(r=!(1!=On(/*userAgent*/e[16]))),r?Bo:Ro)}let o=i(t),a=o(t);return{c(){a.c(),n=T(),this.c=e},m(e,t){a.m(e,t),p(e,n,t)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(n.parentNode,n)))},i:e,o:e,d(e){a.d(e),e&&g(n)}}}function va(e,t,r){let n,i,o;d(e,kr,(e=>r(15,o=e)));let a,s,l,u,c,h,{sortable:f=!1}=t,{firstrow:m=!0}=t,{lang:p="en"}=t,{scorefractiondigit:g="2"}=t,{session:b=""}=t,{userid:y=""}=t,{tourid:w=""}=t,{endpoint:C=""}=t,{tablelimit:v="30"}=t,{namemask:T=""}=t,{showunqualifiedplayer:x="true"}=t,{mobiletablelimit:_="15"}=t,{updatetableintime:k="true"}=t,{minscore:S=""}=t,{showrankasimage:P="true"}=t,{cellsetting:E={firstrow:!0}}=t,$=[],L=[],M=null,A=null,R={},B=!0,F=window.navigator.userAgent,O=!1,z=!1,H=!1,N={},U=!1,I="",Y=!0,j=2;Object.keys(ai).forEach((e=>{Qn(e,ai[e])}));
945
+ // @TODO this must be configurable
946
+ const G=["Rank","Player","Points","Prize"],V=e=>({Rank:"false"==x?e.rankWithoutUnqualified:e.rank,Player:e.userID==I?"me":e.shortName,Points:e.score,Prize:e.prizeName,Unqualified:e.unqualified,BetCount:e.betCount,userID:e.userID}),W=()=>{b.length>0&&"false"!=b&&(I=y),a=null,r(10,Y=!1)};
947
+ // data for current user
948
+ let q,J;const Z=e=>{a?(r(7,O=a!=e),
949
+ // when (position changed) or (position not changed but still in 2.5s)
950
+ r(8,z=a>e),O&&(q=(new Date).getTime(),//reset time1, make sure userrank change more than once during 5mins
951
+ setTimeout((function(){J=(new Date).getTime(),(J-q)/1e3>4&&r(7,O=!1),a=e}),5e3))):a=e},K=e=>{if(e.data&&"CasinoTableData"===e.data.type&&(r(3,L=e.data.tableData),r(14,n=L)),e.data&&"CasinoTableColumns"===e.data.type&&(r(4,$=e.data.tableColumns),r(9,s=$.length||4)),
952
+ // set view after current user row defined.
953
+ e.data&&"CasinoTableCurrentUserData"===e.data.type&&L&&(L.forEach((t=>{t.userID==e.data.tableData.userID&&(t.isCurrentUser=!0,
954
+ //clear first row data when update
955
+ a||(a=e.data.tableData.Rank),R?(Z(e.data.tableData.Rank),r(5,R=null)):Z(e.data.tableData.Rank))})),r(14,n=L)),m&&e.data&&"CasinoTableFirstRowData"===e.data.type){let t=e.data.tableData;if(!R)return r(5,R=e.data.tableData),void(a=R.Rank);R&&R.UserID==t.UserID&&(Z(t.Rank),r(5,R=e.data.tableData))}
956
+ // CasinoTableDataUpdate
957
+ if(e.data&&"CasinoTableDataUpdate"===e.data.type&&e.data.tableData){let t=e.data.tableData;
958
+ //check data type before foreach
959
+ if(!(L instanceof Array))return;L.forEach((function(e,n){let i=((e,t)=>t.find((t=>t.Rank==e)))(e.Rank,t);i&&r(3,L[n]=i,L)}))}},X=e=>{const t=e===M,n="ASC"===A,i=t&&!n;r(32,M=i?null:e),r(33,A=i?null:t&&n?"DESC":"ASC")},Q=()=>{r(6,B=!B)},ee=e=>{U=!1;let t=[];return e&&e.length>0&&e.forEach((e=>{let r=V(e);e.userID==I&&(N=r,U=!0),t.push(r)})),t},te=e=>Object.assign(Object.assign({},V(e)),!0===e.unqualified?{Rank:e.rank}:{}),re=e=>{if(console.log(e),e.data&&"message"==e.type)try{let t=e.data,n=JSON.parse(t);if(!n||!n.items)return;let i=ee(n.items);window.postMessage({type:"CasinoTableData",tableData:i},window.location.href),U=i.filter((e=>e.userID=I)).length>0,H=n.item&&!U,H&&(r(5,R=te(n.item)),R&&window.postMessage({type:"CasinoTableFirstRowData",tableData:R},window.location.href));let o=U?N.Rank:R.Rank;o==h&&c==n.items.length||(c=n.items.length,//new player joined and spined
960
+ window.postMessage({type:`TournamentRankInfo_${w}`,rankInfo:{rank:o,overallRank:c,prize:U?N.Prize||"-":R.Prize||"-"}}),h=o),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:N},window.location.href)}catch(e){console.error(e)}},ne=(e,t)=>{let n=new URL(e+`/tournaments/${t}/leaderboard`),i=new Headers;n.searchParams.append("language",p);let o=`includeUnqualifiedPlayer=${x}`;if(o=T?`${o},shortNameMask=${T}`:o,o=S?`${o},minscore=${S}`:o,n.searchParams.append("filter",o),b){let e=1==On(F)?_:v;n.searchParams.append("pagination",`offset=0,limit=${e}`),i.append("X-SessionId",b)}n.searchParams.append("platform",zn(F));let a={method:"GET",headers:i};r(10,Y=!0),r(5,R=null),fetch(n,a).then((e=>e.json())).then((e=>{r(10,Y=!1),l=ee(e.items),e.item&&!U&&(H=!0,r(5,R=te(e.item))),r(6,B=!0),h=U?N.Rank:R?R.Rank:0,c=e.total,
961
+ // @TODO data is not iterable error fix
962
+ window.postMessage({type:"CasinoTableData",tableData:l},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:G},window.location.href),H&&window.postMessage({type:"CasinoTableFirstRowData",tableData:R},window.location.href),"true"===k&&((e,t)=>{let r=`${C}/tournaments/${e}/leaderboard/updates?HeartBeat=false&${t.toString()}`;u&&(u.removeEventListener("message",re),u.close()),u=new Hn.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":b}}),void 0!==u&&u.addEventListener("message",re)})(t,n.searchParams),U&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:N},window.location.href)}))};let ie=[],oe=!1;D((()=>(r(12,ie=[Wi,Wi,qi,Ji]),r(0,m=!E||E.firstrow),W(),
963
+ //loadData();
964
+ //console.log('getContext',getContext('userid') ) ;
965
+ r(34,oe=!0),window.addEventListener("message",K),()=>{window.removeEventListener("message",K)})));return e.$$set=e=>{"sortable"in e&&r(1,f=e.sortable),"firstrow"in e&&r(0,m=e.firstrow),"lang"in e&&r(19,p=e.lang),"scorefractiondigit"in e&&r(20,g=e.scorefractiondigit),"session"in e&&r(21,b=e.session),"userid"in e&&r(22,y=e.userid),"tourid"in e&&r(23,w=e.tourid),"endpoint"in e&&r(24,C=e.endpoint),"tablelimit"in e&&r(25,v=e.tablelimit),"namemask"in e&&r(26,T=e.namemask),"showunqualifiedplayer"in e&&r(27,x=e.showunqualifiedplayer),"mobiletablelimit"in e&&r(28,_=e.mobiletablelimit),"updatetableintime"in e&&r(29,k=e.updatetableintime),"minscore"in e&&r(30,S=e.minscore),"showrankasimage"in e&&r(2,P=e.showrankasimage),"cellsetting"in e&&r(31,E=e.cellsetting)},e.$$.update=()=>{/*data*/8&e.$$.dirty[0]|/*sortColumn, sortDirection*/6&e.$$.dirty[1]&&r(14,n=M&&A?(()=>{let e=[];if(L&&(e=[...L]),!L.length)return L;const t=typeof L[0][M.toLowerCase()];return e.sort(((e,t)=>{const r=t.toLowerCase();return"string"===e?(e,t)=>e[r].localeCompare(t[r]):"number"===e||"object"===e?(e,t)=>e[r]-t[r]:void 0})(t,M)),"ASC"===A?e:e.reverse()})():[...L]),/*sortColumn, sortDirection*/6&e.$$.dirty[1]&&r(13,i=null===M?A:null),/*scorefractiondigit*/1048576&e.$$.dirty[0]&&r(11,j=Number(g)),/*session*/2097152&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&oe&&b&&W(),/*lang, userid, session, tourid, showunqualifiedplayer, tablelimit*/182976512&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&p&&y&&b&&w&&x&&v&&oe&&ne(C,w)},[m,f,P,L,$,R,B,O,z,s,Y,j,ie,i,n,o,F,X,Q,p,g,b,y,w,C,v,T,x,_,k,S,E,M,A,oe,e=>X(e),e=>X(e),()=>Q(),e=>X(e)]}class Ta extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},va,Ca,a,{sortable:1,firstrow:0,lang:19,scorefractiondigit:20,session:21,userid:22,tourid:23,endpoint:24,tablelimit:25,namemask:26,showunqualifiedplayer:27,mobiletablelimit:28,updatetableintime:29,minscore:30,showrankasimage:2,cellsetting:31},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["sortable","firstrow","lang","scorefractiondigit","session","userid","tourid","endpoint","tablelimit","namemask","showunqualifiedplayer","mobiletablelimit","updatetableintime","minscore","showrankasimage","cellsetting"]}get sortable(){return this.$$.ctx[1]}set sortable(e){this.$$set({sortable:e}),U()}get firstrow(){return this.$$.ctx[0]}set firstrow(e){this.$$set({firstrow:e}),U()}get lang(){return this.$$.ctx[19]}set lang(e){this.$$set({lang:e}),U()}get scorefractiondigit(){return this.$$.ctx[20]}set scorefractiondigit(e){this.$$set({scorefractiondigit:e}),U()}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),U()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),U()}get tourid(){return this.$$.ctx[23]}set tourid(e){this.$$set({tourid:e}),U()}get endpoint(){return this.$$.ctx[24]}set endpoint(e){this.$$set({endpoint:e}),U()}get tablelimit(){return this.$$.ctx[25]}set tablelimit(e){this.$$set({tablelimit:e}),U()}get namemask(){return this.$$.ctx[26]}set namemask(e){this.$$set({namemask:e}),U()}get showunqualifiedplayer(){return this.$$.ctx[27]}set showunqualifiedplayer(e){this.$$set({showunqualifiedplayer:e}),U()}get mobiletablelimit(){return this.$$.ctx[28]}set mobiletablelimit(e){this.$$set({mobiletablelimit:e}),U()}get updatetableintime(){return this.$$.ctx[29]}set updatetableintime(e){this.$$set({updatetableintime:e}),U()}get minscore(){return this.$$.ctx[30]}set minscore(e){this.$$set({minscore:e}),U()}get showrankasimage(){return this.$$.ctx[2]}set showrankasimage(e){this.$$set({showrankasimage:e}),U()}get cellsetting(){return this.$$.ctx[31]}set cellsetting(e){this.$$set({cellsetting:e}),U()}}
966
+ /* src/Cells/TitleCell.svelte generated by Svelte v3.48.0 */
967
+ function xa(t){let r,n;return{c(){r=y("p"),n=C(/*title*/t[0]),this.c=e,_(r,"class","Title"),_(r,"part","Title")},m(e,t){p(e,r,t),m(r,n)},p(e,[t]){/*title*/1&t&&k(n,/*title*/e[0])},i:e,o:e,d(e){e&&g(r)}}}function _a(e,t,r){let{lang:n="en"}=t,{title:i=""}=t;Object.keys(ti).forEach((e=>{Qn(e,ti[e])})),ar({fallbackLocale:"en",initialLocale:"en"});return e.$$set=e=>{"lang"in e&&r(1,n=e.lang),"title"in e&&r(0,i=e.title)},e.$$.update=()=>{/*lang*/2&e.$$.dirty&&n&&ei(n)},[i,n]}customElements.define("leaderboard-cell",Ta);class ka extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},_a,xa,a,{lang:1,title:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","title"]}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),U()}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),U()}}customElements.define("title-cell",ka);var Sa=Kr((function(e,t){e.exports=function(){var t,r;function n(){return t.apply(null,arguments)}
968
+ // This is done to register the method called with moment()
969
+ // without creating circular dependencies.
970
+ function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){
971
+ // IE8 will treat undefined and null as object if it wasn't for
972
+ // input != null
973
+ return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var r,n=[],i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function f(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,r,n){return Wr(e,t,r,n,!0).utc()}function p(){
974
+ // We need to deep clone this object.
975
+ return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function b(e){if(null==e._isValid){var t=g(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=m(NaN);return null!=e?f(g(t),e):g(t).userInvalidated=!0,t}
976
+ // Plugins that add properties should also add the key here (null value),
977
+ // so we can properly clone ourselves.
978
+ r=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var w=n.momentProperties=[],C=!1;function v(e,t){var r,n,i,o=w.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)u(i=t[n=w[r]])||(e[n]=i);return e}
979
+ // Moment prototype object
980
+ function T(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
981
+ // Prevent infinite loop in case updateOffset creates new moment
982
+ // objects.
983
+ !1===C&&(C=!0,n.updateOffset(this),C=!1)}function x(e){return e instanceof T||null!=e&&null!=e._isAMomentObject}function _(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var r=!0;return f((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),r){var i,o,a,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}_(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)}),t)}var S,P={};function E(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),P[e]||(_(t),P[e]=!0)}function $(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,r;for(r in e)s(e,r)&&($(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,
984
+ // Lenient ordinal parsing accepts just a number in addition to
985
+ // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
986
+ // TODO: Remove "ordinalParse" fallback in next major release.
987
+ this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var r,n=f({},e);for(r in t)s(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)s(e,r)&&!s(t,r)&&a(e[r])&&(
988
+ // make sure changes to properties don't modify parent config
989
+ n[r]=f({},n[r]));return n}function M(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)s(e,t)&&r.push(t);return r};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return $(n)?n.call(t,r):n}function B(e,t,r){var n=""+Math.abs(e),i=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};
990
+ // token: 'M'
991
+ // padded: ['MM', 2]
992
+ // ordinal: 'Mo'
993
+ // callback: function () { this.month() + 1 }
994
+ function N(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),r&&(H[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var t,r,n=e.match(F);for(t=0,r=n.length;t<r;t++)H[n[t]]?n[t]=H[n[t]]:n[t]=U(n[t]);return function(t){var i,o="";for(i=0;i<r;i++)o+=$(n[i])?n[i].call(t,e):n[i];return o}}
995
+ // format date using native date object
996
+ function Y(e,t){return e.isValid()?(t=j(t,e.localeData()),z[t]=z[t]||I(t),z[t](e)):e.localeData().invalidDate()}function j(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;r>=0&&O.test(e);)e=e.replace(O,n),O.lastIndex=0,r-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(F).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var W="Invalid date";function q(){return this._invalidDate}var J="%d",Z=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,r,n){var i=this._relativeTime[r];return $(i)?i(e,t,r,n):i.replace(/%d/i,e)}function ee(e,t){var r=this._relativeTime[e>0?"future":"past"];return $(r)?r(t):r.replace(/%s/i,t)}var te={};function re(e,t){var r=e.toLowerCase();te[r]=te[r+"s"]=te[t]=e}function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,r,n={};for(r in e)s(e,r)&&(t=ne(r))&&(n[t]=e[r]);return n}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,r=[];for(t in e)s(e,t)&&r.push({unit:t,priority:oe[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=ue(t)),r}function de(e,t){return function(r){return null!=r?(fe(this,e,r),n.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(r=ce(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Qe(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}
997
+ // MOMENTS
998
+ function me(e){return $(this[e=ne(e)])?this[e]():this}function pe(e,t){if("object"==typeof e){var r,n=se(e=ie(e)),i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if($(this[e=ne(e)]))return this[e](t);return this}var ge,be=/\d/,// 0 - 9
999
+ ye=/\d\d/,// 00 - 99
1000
+ we=/\d{3}/,// 000 - 999
1001
+ Ce=/\d{4}/,// 0000 - 9999
1002
+ ve=/[+-]?\d{6}/,// -999999 - 999999
1003
+ Te=/\d\d?/,// 0 - 99
1004
+ xe=/\d\d\d\d?/,// 999 - 9999
1005
+ _e=/\d\d\d\d\d\d?/,// 99999 - 999999
1006
+ ke=/\d{1,3}/,// 0 - 999
1007
+ Se=/\d{1,4}/,// 0 - 9999
1008
+ Pe=/[+-]?\d{1,6}/,// -999999 - 999999
1009
+ Ee=/\d+/,// 0 - inf
1010
+ $e=/[+-]?\d+/,// -inf - inf
1011
+ Le=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
1012
+ De=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
1013
+ Me=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
1014
+ // any word (or two) characters or numbers including two/three word month in arabic.
1015
+ // includes scottish gaelic two word and hyphenated months
1016
+ Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(e,t,r){ge[e]=$(t)?t:function(e,n){return e&&r?r:t}}function Be(e,t){return s(ge,e)?ge[e](t._strict,t._locale):new RegExp(Fe(e))}
1017
+ // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
1018
+ function Fe(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i})))}function Oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var ze={};function He(e,t){var r,n,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,r){r[t]=ce(e)}),n=e.length,r=0;r<n;r++)ze[e[r]]=i}function Ne(e,t){He(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}function Ue(e,t,r){null!=t&&s(ze,e)&&ze[e](t,r._a,r,e)}var Ie,Ye=0,je=1,Ge=2,Ve=3,We=4,qe=5,Je=6,Ze=7,Ke=8;function Xe(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Xe(t,12);return e+=(t-r)/12,1===r?le(e)?29:28:31-r%7%2}
1019
+ // FORMATTING
1020
+ Ie=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
1021
+ // I know
1022
+ var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
1023
+ // ALIASES
1024
+ re("month","M"),
1025
+ // PRIORITY
1026
+ ae("month",8),
1027
+ // PARSING
1028
+ Re("M",Te),Re("MM",Te,ye),Re("MMM",(function(e,t){return t.monthsShortRegex(e)})),Re("MMMM",(function(e,t){return t.monthsRegex(e)})),He(["M","MM"],(function(e,t){t[je]=ce(e)-1})),He(["MMM","MMMM"],(function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);
1029
+ // if we didn't find a month name, mark the date as invalid.
1030
+ null!=i?t[je]=i:g(r).invalidMonth=e}));
1031
+ // LOCALES
1032
+ var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nt=Ae,it=Ae;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,r){var n,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(
1033
+ // this is not used
1034
+ this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=Ie.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ie.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ie.call(this._shortMonthsParse,a))||-1!==(i=Ie.call(this._longMonthsParse,a))?i:null:-1!==(i=Ie.call(this._longMonthsParse,a))||-1!==(i=Ie.call(this._shortMonthsParse,a))?i:null}function lt(e,t,r){var n,i,o;if(this._monthsParseExact)return st.call(this,e,t,r);
1035
+ // TODO: add sorting
1036
+ // Sorting makes sure if one month (or abbr) is a prefix of another
1037
+ // see sorting in computeMonthsParse
1038
+ for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){
1039
+ // test the regex
1040
+ if(
1041
+ // make the regex if we don't have it already
1042
+ i=m([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}
1043
+ // MOMENTS
1044
+ function ut(e,t){var r;if(!e.isValid())
1045
+ // No op
1046
+ return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else
1047
+ // TODO: Another silent failure?
1048
+ if(!c(t=e.localeData().monthsParse(t)))return e;return r=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function ct(e){return null!=e?(ut(this,e),n.updateOffset(this,!0),this):he(this,"Month")}function dt(){return Qe(this.year(),this.month())}function ht(e){return this._monthsParseExact?(s(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=nt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(s(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,r,n=[],i=[],o=[];for(t=0;t<12;t++)
1049
+ // make the regex if we don't have it already
1050
+ r=m([2e3,t]),n.push(this.monthsShort(r,"")),i.push(this.months(r,"")),o.push(this.months(r,"")),o.push(this.monthsShort(r,""));
1051
+ // Sorting makes sure if one month (or abbr) is a prefix of another it
1052
+ // will match the longer piece.
1053
+ for(n.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)n[t]=Oe(n[t]),i[t]=Oe(i[t]);for(t=0;t<24;t++)o[t]=Oe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}
1054
+ // FORMATTING
1055
+ // HELPERS
1056
+ function pt(e){return le(e)?366:365}
1057
+ // HOOKS
1058
+ N("Y",0,0,(function(){var e=this.year();return e<=9999?B(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),
1059
+ // ALIASES
1060
+ re("year","y"),
1061
+ // PRIORITIES
1062
+ ae("year",1),
1063
+ // PARSING
1064
+ Re("Y",$e),Re("YY",Te,ye),Re("YYYY",Se,Ce),Re("YYYYY",Pe,ve),Re("YYYYYY",Pe,ve),He(["YYYYY","YYYYYY"],Ye),He("YYYY",(function(e,t){t[Ye]=2===e.length?n.parseTwoDigitYear(e):ce(e)})),He("YY",(function(e,t){t[Ye]=n.parseTwoDigitYear(e)})),He("Y",(function(e,t){t[Ye]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};
1065
+ // MOMENTS
1066
+ var gt=de("FullYear",!0);function bt(){return le(this.year())}function yt(e,t,r,n,i,o,a){
1067
+ // can't just apply() to create a date:
1068
+ // https://stackoverflow.com/q/181348
1069
+ var s;
1070
+ // the date constructor remaps years 0-99 to 1900-1999
1071
+ return e<100&&e>=0?(
1072
+ // preserve leap years using a full 400 year cycle, then reset
1073
+ s=new Date(e+400,t,r,n,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,o,a),s}function wt(e){var t,r;
1074
+ // the Date.UTC function remaps years 0-99 to 1900-1999
1075
+ return e<100&&e>=0?(
1076
+ // preserve leap years using a full 400 year cycle, then reset
1077
+ (r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
1078
+ // start-of-first-week - start-of-year
1079
+ function Ct(e,t,r){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
1080
+ n=7+t-r;return-(7+wt(e,0,n).getUTCDay()-t)%7+n-1}
1081
+ // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
1082
+ function vt(e,t,r,n,i){var o,a,s=1+7*(t-1)+(7+r-n)%7+Ct(e,n,i);return s<=0?a=pt(o=e-1)+s:s>pt(e)?(o=e+1,a=s-pt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Tt(e,t,r){var n,i,o=Ct(e.year(),t,r),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?n=a+xt(i=e.year()-1,t,r):a>xt(e.year(),t,r)?(n=a-xt(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function xt(e,t,r){var n=Ct(e,t,r),i=Ct(e+1,t,r);return(pt(e)-n+i)/7}
1083
+ // FORMATTING
1084
+ // HELPERS
1085
+ // LOCALES
1086
+ function _t(e){return Tt(e,this._week.dow,this._week.doy).week}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),
1087
+ // ALIASES
1088
+ re("week","w"),re("isoWeek","W"),
1089
+ // PRIORITIES
1090
+ ae("week",5),ae("isoWeek",5),
1091
+ // PARSING
1092
+ Re("w",Te),Re("ww",Te,ye),Re("W",Te),Re("WW",Te,ye),Ne(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=ce(e)}));var kt={dow:0,// Sunday is the first day of the week.
1093
+ doy:6};function St(){return this._week.dow}function Pt(){return this._week.doy}
1094
+ // MOMENTS
1095
+ function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function $t(e){var t=Tt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
1096
+ // FORMATTING
1097
+ // HELPERS
1098
+ function Lt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Dt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
1099
+ // LOCALES
1100
+ function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),
1101
+ // ALIASES
1102
+ re("day","d"),re("weekday","e"),re("isoWeekday","E"),
1103
+ // PRIORITY
1104
+ ae("day",11),ae("weekday",11),ae("isoWeekday",11),
1105
+ // PARSING
1106
+ Re("d",Te),Re("e",Te),Re("E",Te),Re("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Re("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Re("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ne(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);
1107
+ // if we didn't get a weekday name, mark the date as invalid
1108
+ null!=i?t.d=i:g(r).invalidWeekday=e})),Ne(["d","e","E"],(function(e,t,r,n){t[n]=ce(e)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Ae,Ot=Ae,zt=Ae;function Ht(e,t){var r=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Mt(r,this._week.dow):e?r[e.day()]:r}function Nt(e){return!0===e?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function It(e,t,r){var n,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=Ie.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ie.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ie.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ie.call(this._weekdaysParse,a))||-1!==(i=Ie.call(this._shortWeekdaysParse,a))||-1!==(i=Ie.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ie.call(this._shortWeekdaysParse,a))||-1!==(i=Ie.call(this._weekdaysParse,a))||-1!==(i=Ie.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ie.call(this._minWeekdaysParse,a))||-1!==(i=Ie.call(this._weekdaysParse,a))||-1!==(i=Ie.call(this._shortWeekdaysParse,a))?i:null}function Yt(e,t,r){var n,i,o;if(this._weekdaysParseExact)return It.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){
1109
+ // test the regex
1110
+ if(
1111
+ // make the regex if we don't have it already
1112
+ i=m([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}
1113
+ // MOMENTS
1114
+ function jt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Lt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;
1115
+ // behaves the same as moment#day except
1116
+ // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
1117
+ // as a setter, sunday should belong to the previous week.
1118
+ if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Wt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ot),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,r,n,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)
1119
+ // make the regex if we don't have it already
1120
+ r=m([2e3,1]).day(t),n=Oe(this.weekdaysMin(r,"")),i=Oe(this.weekdaysShort(r,"")),o=Oe(this.weekdays(r,"")),a.push(n),s.push(i),l.push(o),u.push(n),u.push(i),u.push(o);
1121
+ // Sorting makes sure if one weekday (or abbr) is a prefix of another it
1122
+ // will match the longer piece.
1123
+ a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}
1124
+ // FORMATTING
1125
+ function Kt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Qt(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
1126
+ // PARSING
1127
+ function er(e,t){return t._meridiemParse}
1128
+ // LOCALES
1129
+ function tr(e){
1130
+ // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
1131
+ // Using charAt should be more compatible.
1132
+ return"p"===(e+"").toLowerCase().charAt(0)}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Kt),N("k",["kk",2],0,Xt),N("hmm",0,0,(function(){return""+Kt.apply(this)+B(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Kt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),
1133
+ // ALIASES
1134
+ re("hour","h"),
1135
+ // PRIORITY
1136
+ ae("hour",13),Re("a",er),Re("A",er),Re("H",Te),Re("h",Te),Re("k",Te),Re("HH",Te,ye),Re("hh",Te,ye),Re("kk",Te,ye),Re("hmm",xe),Re("hmmss",_e),Re("Hmm",xe),Re("Hmmss",_e),He(["H","HH"],Ve),He(["k","kk"],(function(e,t,r){var n=ce(e);t[Ve]=24===n?0:n})),He(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),He(["h","hh"],(function(e,t,r){t[Ve]=ce(e),g(r).bigHour=!0})),He("hmm",(function(e,t,r){var n=e.length-2;t[Ve]=ce(e.substr(0,n)),t[We]=ce(e.substr(n)),g(r).bigHour=!0})),He("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,n)),t[We]=ce(e.substr(n,2)),t[qe]=ce(e.substr(i)),g(r).bigHour=!0})),He("Hmm",(function(e,t,r){var n=e.length-2;t[Ve]=ce(e.substr(0,n)),t[We]=ce(e.substr(n))})),He("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,n)),t[We]=ce(e.substr(n,2)),t[qe]=ce(e.substr(i))}));var rr=/[ap]\.?m?\.?/i,
1137
+ // Setting the hour should keep the time, because the user explicitly
1138
+ // specified which hour they want. So trying to maintain the same hour (in
1139
+ // a new timezone) makes sense. Adding/subtracting hours does not follow
1140
+ // this rule.
1141
+ nr=de("Hours",!0);function ir(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var or,ar={calendar:A,longDateFormat:G,invalidDate:W,ordinal:J,dayOfMonthOrdinalParse:Z,relativeTime:X,months:et,monthsShort:tt,week:kt,weekdays:At,weekdaysMin:Bt,weekdaysShort:Rt,meridiemParse:rr},sr={},lr={};
1142
+ // internal storage for locale config files
1143
+ function ur(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function cr(e){return e?e.toLowerCase().replace("_","-"):e}
1144
+ // pick the locale from the array
1145
+ // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
1146
+ // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
1147
+ function dr(e){for(var t,r,n,i,o=0;o<e.length;){for(t=(i=cr(e[o]).split("-")).length,r=(r=cr(e[o+1]))?r.split("-"):null;t>0;){if(n=fr(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&ur(i,r)>=t-1)
1148
+ //the next array item is better than a shallower substring of this one
1149
+ break;t--}o++}return or}function hr(e){
1150
+ // Prevent names that look like filesystem paths, i.e contain '/' or '\'
1151
+ return null!=e.match("^[^/\\\\]*$")}function fr(t){var r=null;
1152
+ // TODO: Find a better way to register and load all the locales in Node
1153
+ if(void 0===sr[t]&&e&&e.exports&&hr(t))try{r=or._abbr,Xr(),mr(r)}catch(e){
1154
+ // mark as not found to avoid repeating expensive file require call causing high CPU
1155
+ // when trying to find en-US, en_US, en-us for every format call
1156
+ sr[t]=null;// null means not found
1157
+ }return sr[t]}
1158
+ // This function will load locale and then set the global locale. If
1159
+ // no arguments are passed in, it will simply return the current global
1160
+ // locale key.
1161
+ function mr(e,t){var r;return e&&((r=u(t)?br(e):pr(e,t))?
1162
+ // moment.duration._locale = moment._locale = data;
1163
+ or=r:"undefined"!=typeof console&&console.warn&&
1164
+ //warn user if arguments are passed but the locale could not be set
1165
+ console.warn("Locale "+e+" not found. Did you forget to load it?")),or._abbr}function pr(e,t){if(null!==t){var r,n=ar;if(t.abbr=e,null!=sr[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=sr[e]._config;else if(null!=t.parentLocale)if(null!=sr[t.parentLocale])n=sr[t.parentLocale]._config;else{if(null==(r=fr(t.parentLocale)))return lr[t.parentLocale]||(lr[t.parentLocale]=[]),lr[t.parentLocale].push({name:e,config:t}),null;n=r._config}return sr[e]=new M(D(n,t)),lr[e]&&lr[e].forEach((function(e){pr(e.name,e.config)})),
1166
+ // backwards compat for now: also set the locale
1167
+ // make sure we set the locale AFTER all child locales have been
1168
+ // created, so we won't end up with the child locale set.
1169
+ mr(e),sr[e]}
1170
+ // useful for testing
1171
+ return delete sr[e],null}function gr(e,t){if(null!=t){var r,n,i=ar;null!=sr[e]&&null!=sr[e].parentLocale?
1172
+ // Update existing child locale in-place to avoid memory-leaks
1173
+ sr[e].set(D(sr[e]._config,t)):(
1174
+ // MERGE
1175
+ null!=(n=fr(e))&&(i=n._config),t=D(i,t),null==n&&(
1176
+ // updateLocale is called for creating a new locale
1177
+ // Set abbr so it will have a name (getters return
1178
+ // undefined otherwise).
1179
+ t.abbr=e),(r=new M(t)).parentLocale=sr[e],sr[e]=r),
1180
+ // backwards compat for now: also set the locale
1181
+ mr(e)}else
1182
+ // pass null for config to unupdate, useful for tests
1183
+ null!=sr[e]&&(null!=sr[e].parentLocale?(sr[e]=sr[e].parentLocale,e===mr()&&mr(e)):null!=sr[e]&&delete sr[e]);return sr[e]}
1184
+ // returns locale data
1185
+ function br(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return or;if(!o(e)){if(
1186
+ //short-circuit everything else
1187
+ t=fr(e))return t;e=[e]}return dr(e)}function yr(){return S(sr)}function wr(e){var t,r=e._a;return r&&-2===g(e).overflow&&(t=r[je]<0||r[je]>11?je:r[Ge]<1||r[Ge]>Qe(r[Ye],r[je])?Ge:r[Ve]<0||r[Ve]>24||24===r[Ve]&&(0!==r[We]||0!==r[qe]||0!==r[Je])?Ve:r[We]<0||r[We]>59?We:r[qe]<0||r[qe]>59?qe:r[Je]<0||r[Je]>999?Je:-1,g(e)._overflowDayOfYear&&(t<Ye||t>Ge)&&(t=Ge),g(e)._overflowWeeks&&-1===t&&(t=Ze),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}
1188
+ // iso 8601 regex
1189
+ // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
1190
+ var Cr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tr=/Z|[+-]\d\d(?::?\d\d)?/,xr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
1191
+ // iso time formats and regexes
1192
+ _r=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kr=/^\/?Date\((-?\d+)/i,
1193
+ // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
1194
+ Sr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
1195
+ // date from iso format
1196
+ function Er(e){var t,r,n,i,o,a,s=e._i,l=Cr.exec(s)||vr.exec(s),u=xr.length,c=_r.length;if(l){for(g(e).iso=!0,t=0,r=u;t<r;t++)if(xr[t][1].exec(l[1])){i=xr[t][0],n=!1!==xr[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,r=c;t<r;t++)if(_r[t][1].exec(l[3])){
1197
+ // match[2] should be 'T' or space
1198
+ o=(l[2]||" ")+_r[t][0];break}if(null==o)return void(e._isValid=!1)}if(!n&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tr.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Nr(e)}else e._isValid=!1}function $r(e,t,r,n,i,o){var a=[Lr(e),tt.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Lr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Dr(e){
1199
+ // Remove comments and folding whitespace and replace multiple-spaces with a single space
1200
+ return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mr(e,t,r){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(r).weekdayMismatch=!0,r._isValid=!1,!1)}function Ar(e,t,r){if(e)return Pr[e];if(t)
1201
+ // the only allowed military tz is Z
1202
+ return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}
1203
+ // date and time from ref 2822 format
1204
+ function Rr(e){var t,r=Sr.exec(Dr(e._i));if(r){if(t=$r(r[4],r[3],r[2],r[5],r[6],r[7]),!Mr(r[1],t,e))return;e._a=t,e._tzm=Ar(r[8],r[9],r[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
1205
+ // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
1206
+ function Br(e){var t=kr.exec(e._i);null===t?(Er(e),!1===e._isValid&&(delete e._isValid,Rr(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
1207
+ // Final attempt, use Input Fallback
1208
+ n.createFromInputFallback(e)))):e._d=new Date(+t[1])}
1209
+ // Pick the first defined of two or three arguments.
1210
+ function Fr(e,t,r){return null!=e?e:null!=t?t:r}function Or(e){
1211
+ // hooks is actually the exported moment object
1212
+ var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
1213
+ // convert an array to a date.
1214
+ // the array should mirror the parameters below
1215
+ // note: all values past the year are optional and will default to the lowest possible value.
1216
+ // [year, month, day , hour, minute, second, millisecond]
1217
+ function zr(e){var t,r,n,i,o,a=[];if(!e._d){
1218
+ // Default to current date.
1219
+ // * if no year, month, day of month are given, default to today
1220
+ // * if day of month is given, default month and year
1221
+ // * if month is given, default only year
1222
+ // * if year is given, don't default anything
1223
+ for(n=Or(e),
1224
+ //compute day of the year from weeks and weekdays
1225
+ e._w&&null==e._a[Ge]&&null==e._a[je]&&Hr(e),
1226
+ //if the day of the year is set, figure out what it is
1227
+ null!=e._dayOfYear&&(o=Fr(e._a[Ye],n[Ye]),(e._dayOfYear>pt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),r=wt(o,0,e._dayOfYear),e._a[je]=r.getUTCMonth(),e._a[Ge]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=n[t];
1228
+ // Zero out whatever was not defaulted, including time
1229
+ for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];
1230
+ // Check for 24:00:00.000
1231
+ 24===e._a[Ve]&&0===e._a[We]&&0===e._a[qe]&&0===e._a[Je]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?wt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
1232
+ // Apply timezone offset from input. The actual utcOffset can be changed
1233
+ // with parseZone.
1234
+ null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),
1235
+ // check for mismatching day of week
1236
+ e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Hr(e){var t,r,n,i,o,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,
1237
+ // TODO: We need to take the current isoWeekYear, but that depends on
1238
+ // how we interpret now (local, utc, fixed offset). So create
1239
+ // a now version of current config (take local/utc/offset flags, and
1240
+ // create now).
1241
+ r=Fr(t.GG,e._a[Ye],Tt(qr(),1,4).year),n=Fr(t.W,1),((i=Fr(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Tt(qr(),o,a),r=Fr(t.gg,e._a[Ye],u.year),
1242
+ // Default to current week.
1243
+ n=Fr(t.w,u.week),null!=t.d?((
1244
+ // weekday -- low day numbers are considered next week
1245
+ i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
1246
+ // local weekday -- counting starts from beginning of week
1247
+ i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):
1248
+ // default to beginning of week
1249
+ i=o),n<1||n>xt(r,o,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=vt(r,n,i,o,a),e._a[Ye]=s.year,e._dayOfYear=s.dayOfYear)}
1250
+ // constant that refers to the ISO standard
1251
+ // date from string and format string
1252
+ function Nr(e){
1253
+ // TODO: Move this to another part of the creation flow to prevent circular deps
1254
+ if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],g(e).empty=!0;
1255
+ // This array is used to make a Date, either with `new Date` or `Date.UTC`
1256
+ var t,r,i,o,a,s,l,u=""+e._i,c=u.length,d=0;for(l=(i=j(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)o=i[t],(r=(u.match(Be(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(r))).length>0&&g(e).unusedInput.push(a),u=u.slice(u.indexOf(r)+r.length),d+=r.length),
1257
+ // don't parse if it's not a known token
1258
+ H[o]?(r?g(e).empty=!1:g(e).unusedTokens.push(o),Ue(o,r,e)):e._strict&&!r&&g(e).unusedTokens.push(o);
1259
+ // add remaining unparsed input length to the string
1260
+ g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),
1261
+ // clear _12h flag if hour is <= 12
1262
+ e._a[Ve]<=12&&!0===g(e).bigHour&&e._a[Ve]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
1263
+ // handle meridiem
1264
+ e._a[Ve]=Ur(e._locale,e._a[Ve],e._meridiem),null!==(
1265
+ // handle era
1266
+ s=g(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),zr(e),wr(e)}else Rr(e);else Er(e)}function Ur(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?(
1267
+ // Fallback
1268
+ (n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}
1269
+ // date from string and array of format strings
1270
+ function Ir(e){var t,r,n,i,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Nr(t),b(t)&&(a=!0),
1271
+ // if there is any input that was not parsed add a penalty for that format
1272
+ o+=g(t).charsLeftOver,
1273
+ //or tokens
1274
+ o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<n&&(n=o,r=t):(null==n||o<n||a)&&(n=o,r=t,a&&(s=!0));f(e,r||t)}function Yr(e){if(!e._d){var t=ie(e._i),r=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zr(e)}}function jr(e){var t=new T(wr(Gr(e)));return t._nextDay&&(
1275
+ // Adding is smart enough around DST
1276
+ t.add(1,"d"),t._nextDay=void 0),t}function Gr(e){var t=e._i,r=e._f;return e._locale=e._locale||br(e._l),null===t||void 0===r&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new T(wr(t)):(d(t)?e._d=t:o(r)?Ir(e):r?Nr(e):Vr(e),b(e)||(e._d=null),e))}function Vr(e){var t=e._i;u(t)?e._d=new Date(n.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Br(e):o(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),zr(e)):a(t)?Yr(e):c(t)?
1277
+ // from milliseconds
1278
+ e._d=new Date(t):n.createFromInputFallback(e)}function Wr(e,t,r,n,i){var s={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(a(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),
1279
+ // object construction must be done this way.
1280
+ // https://github.com/moment/moment/issues/1423
1281
+ s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=e,s._f=t,s._strict=n,jr(s)}function qr(e,t,r,n){return Wr(e,t,r,n,!1)}n.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},
1282
+ // constant that refers to the RFC 2822 form
1283
+ n.RFC_2822=function(){};var Jr=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=qr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Zr=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=qr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));
1284
+ // Pick a moment m from moments so that m[fn](other) is true for all
1285
+ // other. This relies on the function fn to be transitive.
1286
+
1287
+ // moments should either be an array of moment objects or an array, whose
1288
+ // first element is an array of moment objects.
1289
+ function Kr(e,t){var r,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return qr();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}
1290
+ // TODO: Use [].sort instead?
1291
+ function Qr(){return Kr("isBefore",[].slice.call(arguments,0))}function en(){return Kr("isAfter",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},rn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var t,r,n=!1,i=rn.length;for(t in e)if(s(e,t)&&(-1===Ie.call(rn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[rn[r]]){if(n)return!1;// only allow non-integers for smallest unit
1292
+ parseFloat(e[rn[r]])!==ce(e[rn[r]])&&(n=!0)}return!0}function on(){return this._isValid}function an(){return $n(NaN)}function sn(e){var t=ie(e),r=t.year||0,n=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=nn(t),
1293
+ // representation for dateAddRemove
1294
+ this._milliseconds=+c+1e3*u+// 1000
1295
+ 6e4*l+// 1000 * 60
1296
+ 1e3*s*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
1297
+ // Because of dateAddRemove treats 24 hours as different from a
1298
+ // day when working around DST, we need to store them separately
1299
+ this._days=+a+7*o,
1300
+ // It is impossible to translate months into days without knowing
1301
+ // which months you are are talking about, so we have to store
1302
+ // it separately.
1303
+ this._months=+i+3*n+12*r,this._data={},this._locale=br(),this._bubble()}function ln(e){return e instanceof sn}function un(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
1304
+ // compare two arrays, return the number of differences
1305
+ function cn(e,t,r){var n,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(n=0;n<i;n++)(r&&e[n]!==t[n]||!r&&ce(e[n])!==ce(t[n]))&&a++;return a+o}
1306
+ // FORMATTING
1307
+ function dn(e,t){N(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+B(~~(e/60),2)+t+B(~~e%60,2)}))}dn("Z",":"),dn("ZZ",""),
1308
+ // PARSING
1309
+ Re("Z",De),Re("ZZ",De),He(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=fn(De,e)}));
1310
+ // HELPERS
1311
+ // timezone chunker
1312
+ // '+10:00' > ['10', '00']
1313
+ // '-1530' > ['-15', '30']
1314
+ var hn=/([\+\-]|\d\d)/gi;function fn(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(hn)||["-",0,0])[1]+ce(r[2]))?0:"+"===r[0]?n:-n}
1315
+ // Return a moment from input, that is local/utc/zone equivalent to model.
1316
+ function mn(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(x(e)||d(e)?e.valueOf():qr(e).valueOf())-r.valueOf(),
1317
+ // Use low-level api, because this fn is low-level api.
1318
+ r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):qr(e).local()}function pn(e){
1319
+ // On Firefox.24 Date#getTimezoneOffset returns a floating point.
1320
+ // https://github.com/moment/moment/pull/1871
1321
+ return-Math.round(e._d.getTimezoneOffset())}
1322
+ // HOOKS
1323
+ // This function will be called whenever a moment is mutated.
1324
+ // It is intended to keep the offset in sync with the timezone.
1325
+ // MOMENTS
1326
+ // keepLocalTime = true means only change the timezone, without
1327
+ // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
1328
+ // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
1329
+ // +0200, so we adjust the time as needed, to be valid.
1330
+ // Keeping the time actually adds/subtracts (one hour)
1331
+ // from the actual represented time. That is why we call updateOffset
1332
+ // a second time. In case it wants us to change the offset again
1333
+ // _changeInProgress == true case, then we have to adjust, because
1334
+ // there is no such time in the given timezone.
1335
+ function gn(e,t,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fn(De,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=pn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Rn(this,$n(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:pn(this)}function bn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yn(e){return this.utcOffset(0,e)}function wn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pn(this),"m")),this}function Cn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fn(Le,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vn(e){return!!this.isValid()&&(e=e?qr(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Tn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xn(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Gr(t))._a?(e=t._isUTC?m(t._a):qr(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _n(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC&&0===this._offset}
1336
+ // ASP.NET json date format regex
1337
+ n.updateOffset=function(){};var Pn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
1338
+ // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
1339
+ // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
1340
+ // and further modified to allow for strings containing both week and day
1341
+ En=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $n(e,t){var r,n,i,o=e,
1342
+ // matching against regexp is expensive, do it on demand
1343
+ a=null;return ln(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Pn.exec(e))?(r="-"===a[1]?-1:1,o={y:0,d:ce(a[Ge])*r,h:ce(a[Ve])*r,m:ce(a[We])*r,s:ce(a[qe])*r,ms:ce(un(1e3*a[Je]))*r}):(a=En.exec(e))?(r="-"===a[1]?-1:1,o={y:Ln(a[2],r),M:Ln(a[3],r),w:Ln(a[4],r),d:Ln(a[5],r),h:Ln(a[6],r),m:Ln(a[7],r),s:Ln(a[8],r)}):null==o?
1344
+ // checks for null or undefined
1345
+ o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Mn(qr(o.from),qr(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),n=new sn(o),ln(e)&&s(e,"_locale")&&(n._locale=e._locale),ln(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function Ln(e,t){
1346
+ // We'd normally use ~~inp for this, but unfortunately it also
1347
+ // converts floats to ints.
1348
+ // inp may be undefined, so careful calling replace on it.
1349
+ var r=e&&parseFloat(e.replace(",","."));
1350
+ // apply sign while we're at it
1351
+ return(isNaN(r)?0:r)*t}function Dn(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Mn(e,t){var r;return e.isValid()&&t.isValid()?(t=mn(t,e),e.isBefore(t)?r=Dn(e,t):((r=Dn(t,e)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}
1352
+ // TODO: remove 'name' arg after deprecation is removed
1353
+ function An(e,t){return function(r,n){var i;
1354
+ //invert the arguments, but complain about it
1355
+ return null===n||isNaN(+n)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Rn(this,$n(r,n),e),this}}function Rn(e,t,r,i){var o=t._milliseconds,a=un(t._days),s=un(t._months);e.isValid()&&(i=null==i||i,s&&ut(e,he(e,"Month")+s*r),a&&fe(e,"Date",he(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&n.updateOffset(e,a||s))}$n.fn=sn.prototype,$n.invalid=an;var Bn=An(1,"add"),Fn=An(-1,"subtract");function On(e){return"string"==typeof e||e instanceof String}
1356
+ // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
1357
+ function zn(e){return x(e)||d(e)||On(e)||c(e)||Nn(e)||Hn(e)||null==e}function Hn(e){var t,r,n=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(t=0;t<u;t+=1)r=o[t],i=i||s(e,r);return n&&i}function Nn(e){var t=o(e),r=!1;return t&&(r=0===e.filter((function(t){return!c(t)&&On(e)})).length),t&&r}function Un(e){var t,r,n=a(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=o[t],i=i||s(e,r);return n&&i}function In(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Yn(e,t){
1358
+ // Support for single parameter, formats only overload to the calendar function
1359
+ 1===arguments.length&&(arguments[0]?zn(arguments[0])?(e=arguments[0],t=void 0):Un(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
1360
+ // We want to compare the start of today, vs this.
1361
+ // Getting start-of-today depends on whether we're local/utc/offset or not.
1362
+ var r=e||qr(),i=mn(r,this).startOf("day"),o=n.calendarFormat(this,i)||"sameElse",a=t&&($(t[o])?t[o].call(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,qr(r)))}function jn(){return new T(this)}function Gn(e,t){var r=x(e)?e:qr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())}function Vn(e,t){var r=x(e)?e:qr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())}function Wn(e,t,r,n){var i=x(e)?e:qr(e),o=x(t)?t:qr(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(o,r):!this.isAfter(o,r))}function qn(e,t){var r,n=x(e)?e:qr(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))}function Jn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kn(e,t,r){var n,i,o;if(!this.isValid())return NaN;if(!(n=mn(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=ne(t)){case"year":o=Xn(this,n)/12;break;case"month":o=Xn(this,n);break;case"quarter":o=Xn(this,n)/3;break;case"second":o=(this-n)/1e3;break;// 1000
1363
+ case"minute":o=(this-n)/6e4;break;// 1000 * 60
1364
+ case"hour":o=(this-n)/36e5;break;// 1000 * 60 * 60
1365
+ case"day":o=(this-n-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
1366
+ case"week":o=(this-n-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
1367
+ default:o=this-n}return r?o:ue(o)}function Xn(e,t){if(e.date()<t.date())
1368
+ // end-of-month calculations work correct when the start month has more
1369
+ // days than the end month.
1370
+ return-Xn(t,e);
1371
+ // difference in months
1372
+ var r=12*(t.year()-e.year())+(t.month()-e.month()),
1373
+ // b is in (anchor - 1 month, anchor + 1 month)
1374
+ n=e.clone().add(r,"months");
1375
+ //check for negative zero, return zero if negative zero
1376
+ return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Y(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?
1377
+ // native implementation is ~50x faster, use it when we can
1378
+ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(r,"Z")):Y(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
1379
+ /**
1380
+ * Return a human readable representation of a moment that can
1381
+ * also be evaluated to get a new moment which is the same
1382
+ *
1383
+ * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
1384
+ */function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+r+n)}function ri(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(x(e)&&e.isValid()||qr(e).isValid())?$n({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(qr(),e)}function oi(e,t){return this.isValid()&&(x(e)&&e.isValid()||qr(e).isValid())?$n({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to(qr(),e)}
1385
+ // If passed a locale key, it will set the locale for this
1386
+ // instance. Otherwise, it will return the locale configuration
1387
+ // variables for this instance.
1388
+ function si(e){var t;return void 0===e?this._locale._abbr:(null!=(t=br(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var ci=1e3,di=60*ci,hi=60*di,fi=3506328*hi;
1389
+ // actual modulo - handles negative numbers (for dates before 1970):
1390
+ function mi(e,t){return(e%t+t)%t}function pi(e,t,r){
1391
+ // the date constructor remaps years 0-99 to 1900-1999
1392
+ return e<100&&e>=0?new Date(e+400,t,r)-fi:new Date(e,t,r).valueOf()}function gi(e,t,r){
1393
+ // Date.UTC remaps years 0-99 to 1900-1999
1394
+ return e<100&&e>=0?Date.UTC(e+400,t,r)-fi:Date.UTC(e,t,r)}function bi(e){var t,r;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?gi:pi,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=mi(t,di);break;case"second":t=this._d.valueOf(),t-=mi(t,ci)}return this._d.setTime(t),n.updateOffset(this,!0),this}function yi(e){var t,r;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?gi:pi,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-mi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-mi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ci-mi(t,ci)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function wi(){return this._d.valueOf()-6e4*(this._offset||0)}function Ci(){return Math.floor(this.valueOf()/1e3)}function vi(){return new Date(this.valueOf())}function Ti(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _i(){
1395
+ // new Date(NaN).toJSON() === null
1396
+ return this.isValid()?this.toISOString():null}function ki(){return b(this)}function Si(){return f({},g(this))}function Pi(){return g(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function $i(e,t){var r,i,o,a=this._eras||br("en")._eras;for(r=0,i=a.length;r<i;++r)switch("string"==typeof a[r].since&&(
1397
+ // truncate time
1398
+ o=n(a[r].since).startOf("day"),a[r].since=o.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":
1399
+ // truncate time
1400
+ o=n(a[r].until).startOf("day").valueOf(),a[r].until=o.valueOf()}return a}function Li(e,t,r){var n,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([o,a,s].indexOf(e)>=0)return l[n]}function Di(e,t){var r=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function Mi(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
1401
+ // truncate time
1402
+ r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""}function Ai(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
1403
+ // truncate time
1404
+ r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""}function Ri(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(
1405
+ // truncate time
1406
+ r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""}function Bi(){var e,t,r,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=o[e].since<=o[e].until?1:-1,
1407
+ // truncate time
1408
+ i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-n(o[e].since).year())*r+o[e].offset;return this.year()}function Fi(e){return s(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function Oi(e){return s(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function zi(e){return s(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hi(e,t){return t.erasAbbrRegex(e)}function Ni(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Ii(e,t){return t._eraYearOrdinalRegex||Ee}function Yi(){var e,t,r=[],n=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)n.push(Oe(a[e].name)),r.push(Oe(a[e].abbr)),i.push(Oe(a[e].narrow)),o.push(Oe(a[e].name)),o.push(Oe(a[e].abbr)),o.push(Oe(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
1409
+ // FORMATTING
1410
+ function ji(e,t){N(0,[e,e.length],0,t)}
1411
+ // MOMENTS
1412
+ function Gi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return xt(this.year(),1,4)}function qi(){return xt(this.isoWeekYear(),1,4)}function Ji(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,r,n,i){var o;return null==e?Tt(this,n,i).year:(t>(o=xt(e,n,i))&&(t=o),Xi.call(this,e,t,r,n,i))}function Xi(e,t,r,n,i){var o=vt(e,t,r,n,i),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}
1413
+ // FORMATTING
1414
+ // MOMENTS
1415
+ function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
1416
+ // FORMATTING
1417
+ N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),Re("N",Hi),Re("NN",Hi),Re("NNN",Hi),Re("NNNN",Ni),Re("NNNNN",Ui),He(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?g(r).era=i:g(r).invalidEra=e})),Re("y",Ee),Re("yy",Ee),Re("yyy",Ee),Re("yyyy",Ee),Re("yo",Ii),He(["y","yy","yyy","yyyy"],Ye),He(["yo"],(function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ye]=r._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
1418
+ // ALIASES
1419
+ re("weekYear","gg"),re("isoWeekYear","GG"),
1420
+ // PRIORITY
1421
+ ae("weekYear",1),ae("isoWeekYear",1),
1422
+ // PARSING
1423
+ Re("G",$e),Re("g",$e),Re("GG",Te,ye),Re("gg",Te,ye),Re("GGGG",Se,Ce),Re("gggg",Se,Ce),Re("GGGGG",Pe,ve),Re("ggggg",Pe,ve),Ne(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=ce(e)})),Ne(["gg","GG"],(function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),
1424
+ // ALIASES
1425
+ re("quarter","Q"),
1426
+ // PRIORITY
1427
+ ae("quarter",7),
1428
+ // PARSING
1429
+ Re("Q",be),He("Q",(function(e,t){t[je]=3*(ce(e)-1)})),N("D",["DD",2],"Do","date"),
1430
+ // ALIASES
1431
+ re("date","D"),
1432
+ // PRIORITY
1433
+ ae("date",9),
1434
+ // PARSING
1435
+ Re("D",Te),Re("DD",Te,ye),Re("Do",(function(e,t){
1436
+ // TODO: Remove "ordinalParse" fallback in next major release.
1437
+ return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),He(["D","DD"],Ge),He("Do",(function(e,t){t[Ge]=ce(e.match(Te)[0])}));
1438
+ // MOMENTS
1439
+ var eo=de("Date",!0);
1440
+ // FORMATTING
1441
+ // HELPERS
1442
+ // MOMENTS
1443
+ function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}
1444
+ // FORMATTING
1445
+ N("DDD",["DDDD",3],"DDDo","dayOfYear"),
1446
+ // ALIASES
1447
+ re("dayOfYear","DDD"),
1448
+ // PRIORITY
1449
+ ae("dayOfYear",4),
1450
+ // PARSING
1451
+ Re("DDD",ke),Re("DDDD",we),He(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=ce(e)})),N("m",["mm",2],0,"minute"),
1452
+ // ALIASES
1453
+ re("minute","m"),
1454
+ // PRIORITY
1455
+ ae("minute",14),
1456
+ // PARSING
1457
+ Re("m",Te),Re("mm",Te,ye),He(["m","mm"],We);
1458
+ // MOMENTS
1459
+ var ro=de("Minutes",!1);
1460
+ // FORMATTING
1461
+ N("s",["ss",2],0,"second"),
1462
+ // ALIASES
1463
+ re("second","s"),
1464
+ // PRIORITY
1465
+ ae("second",15),
1466
+ // PARSING
1467
+ Re("s",Te),Re("ss",Te,ye),He(["s","ss"],qe);
1468
+ // MOMENTS
1469
+ var no,io,oo=de("Seconds",!1);
1470
+ // FORMATTING
1471
+ for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
1472
+ // ALIASES
1473
+ re("millisecond","ms"),
1474
+ // PRIORITY
1475
+ ae("millisecond",16),
1476
+ // PARSING
1477
+ Re("S",ke,be),Re("SS",ke,ye),Re("SSS",ke,we),no="SSSS";no.length<=9;no+="S")Re(no,Ee);function ao(e,t){t[Je]=ce(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")He(no,ao);
1478
+ // MOMENTS
1479
+ function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=de("Milliseconds",!1),
1480
+ // FORMATTING
1481
+ N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var uo=T.prototype;function co(e){return qr(1e3*e)}function ho(){return qr.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Bn,uo.calendar=Yn,uo.clone=jn,uo.diff=Kn,uo.endOf=yi,uo.format=ri,uo.from=ni,uo.fromNow=ii,uo.to=oi,uo.toNow=ai,uo.get=me,uo.invalidAt=Pi,uo.isAfter=Gn,uo.isBefore=Vn,uo.isBetween=Wn,uo.isSame=qn,uo.isSameOrAfter=Jn,uo.isSameOrBefore=Zn,uo.isValid=ki,uo.lang=li,uo.locale=si,uo.localeData=ui,uo.max=Zr,uo.min=Jr,uo.parsingFlags=Si,uo.set=pe,uo.startOf=bi,uo.subtract=Fn,uo.toArray=Ti,uo.toObject=xi,uo.toDate=vi,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=_i,uo.toString=Qn,uo.unix=Ci,uo.valueOf=wi,uo.creationData=Ei,uo.eraName=Mi,uo.eraNarrow=Ai,uo.eraAbbr=Ri,uo.eraYear=Bi,uo.year=gt,uo.isLeapYear=bt,uo.weekYear=Gi,uo.isoWeekYear=Vi,uo.quarter=uo.quarters=Qi,uo.month=ct,uo.daysInMonth=dt,uo.week=uo.weeks=Et,uo.isoWeek=uo.isoWeeks=$t,uo.weeksInYear=Ji,uo.weeksInWeekYear=Zi,uo.isoWeeksInYear=Wi,uo.isoWeeksInISOWeekYear=qi,uo.date=eo,uo.day=uo.days=jt,uo.weekday=Gt,uo.isoWeekday=Vt,uo.dayOfYear=to,uo.hour=uo.hours=nr,uo.minute=uo.minutes=ro,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=gn,uo.utc=yn,uo.local=wn,uo.parseZone=Cn,uo.hasAlignedHourOffset=vn,uo.isDST=Tn,uo.isLocal=_n,uo.isUtcOffset=kn,uo.isUtc=Sn,uo.isUTC=Sn,uo.zoneAbbr=so,uo.zoneName=lo,uo.dates=k("dates accessor is deprecated. Use date instead.",eo),uo.months=k("months accessor is deprecated. Use month instead",ct),uo.years=k("years accessor is deprecated. Use year instead",gt),uo.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bn),uo.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xn);var mo=M.prototype;function po(e,t,r,n){var i=br(),o=m().set(n,t);return i[r](o,e)}function go(e,t,r){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=po(e,n,r,"month");return i}
1482
+ // ()
1483
+ // (5)
1484
+ // (fmt, 5)
1485
+ // (fmt)
1486
+ // (true)
1487
+ // (true, 5)
1488
+ // (true, fmt, 5)
1489
+ // (true, fmt)
1490
+ function bo(e,t,r,n){"boolean"==typeof e?(c(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,c(t)&&(r=t,t=void 0),t=t||"");var i,o=br(),a=e?o._week.dow:0,s=[];if(null!=r)return po(t,(r+a)%7,n,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,n,"day");return s}function yo(e,t){return go(e,t,"months")}function wo(e,t){return go(e,t,"monthsShort")}function Co(e,t,r){return bo(e,t,r,"weekdays")}function vo(e,t,r){return bo(e,t,r,"weekdaysShort")}function To(e,t,r){return bo(e,t,r,"weekdaysMin")}mo.calendar=R,mo.longDateFormat=V,mo.invalidDate=q,mo.ordinal=K,mo.preparse=fo,mo.postformat=fo,mo.relativeTime=Q,mo.pastFuture=ee,mo.set=L,mo.eras=$i,mo.erasParse=Li,mo.erasConvertYear=Di,mo.erasAbbrRegex=Oi,mo.erasNameRegex=Fi,mo.erasNarrowRegex=zi,mo.months=ot,mo.monthsShort=at,mo.monthsParse=lt,mo.monthsRegex=ft,mo.monthsShortRegex=ht,mo.week=_t,mo.firstDayOfYear=Pt,mo.firstDayOfWeek=St,mo.weekdays=Ht,mo.weekdaysMin=Ut,mo.weekdaysShort=Nt,mo.weekdaysParse=Yt,mo.weekdaysRegex=Wt,mo.weekdaysShortRegex=qt,mo.weekdaysMinRegex=Jt,mo.isPM=tr,mo.meridiem=ir,mr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
1491
+ // Side effect imports
1492
+ n.lang=k("moment.lang is deprecated. Use moment.locale instead.",mr),n.langData=k("moment.langData is deprecated. Use moment.localeData instead.",br);var xo=Math.abs;function _o(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function ko(e,t,r,n){var i=$n(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}
1493
+ // supports only 2.0-style add(1, 's') or add(duration)
1494
+ function So(e,t){return ko(this,e,t,1)}
1495
+ // supports only 2.0-style subtract(1, 's') or subtract(duration)
1496
+ function Po(e,t){return ko(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function $o(){var e,t,r,n,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;
1497
+ // if we have a mix of positive and negative values, bubble down first
1498
+ // check: https://github.com/moment/moment/issues/2166
1499
+ return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Do(s)+a),a=0,s=0),
1500
+ // The following code bubbles up values, see the tests for
1501
+ // examples of what that means.
1502
+ l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,r=ue(t/60),l.hours=r%24,a+=ue(r/24),s+=
1503
+ // convert days to months
1504
+ i=ue(Lo(a)),a-=Eo(Do(i)),
1505
+ // 12 months -> 1 year
1506
+ n=ue(s/12),s%=12,l.days=a,l.months=s,l.years=n,this}function Lo(e){
1507
+ // 400 years have 146097 days (taking into account leap year rules)
1508
+ // 400 years have 12 months === 4800
1509
+ return 4800*e/146097}function Do(e){
1510
+ // the reverse of daysToMonths
1511
+ return 146097*e/4800}function Mo(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Lo(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(
1512
+ // handle milliseconds separately because of floating point math errors (issue #1867)
1513
+ t=this._days+Math.round(Do(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;
1514
+ // Math.floor prevents floating point math errors here
1515
+ case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}
1516
+ // TODO: Use this.as('ms')?
1517
+ function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ro(e){return function(){return this.as(e)}}var Bo=Ro("ms"),Fo=Ro("s"),Oo=Ro("m"),zo=Ro("h"),Ho=Ro("d"),No=Ro("w"),Uo=Ro("M"),Io=Ro("Q"),Yo=Ro("y");function jo(){return $n(this)}function Go(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wo=Vo("milliseconds"),qo=Vo("seconds"),Jo=Vo("minutes"),Zo=Vo("hours"),Ko=Vo("days"),Xo=Vo("months"),Qo=Vo("years");function ea(){return ue(this.days()/7)}var ta=Math.round,ra={ss:44,// a few seconds to seconds
1518
+ s:45,// seconds to minute
1519
+ m:45,// minutes to hour
1520
+ h:22,// hours to day
1521
+ d:26,// days to month/week
1522
+ w:null,// weeks to month
1523
+ M:11};
1524
+ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
1525
+ function na(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function ia(e,t,r,n){var i=$n(e).abs(),o=ta(i.as("s")),a=ta(i.as("m")),s=ta(i.as("h")),l=ta(i.as("d")),u=ta(i.as("M")),c=ta(i.as("w")),d=ta(i.as("y")),h=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||a<=1&&["m"]||a<r.m&&["mm",a]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(h=h||c<=1&&["w"]||c<r.w&&["ww",c]),(h=h||u<=1&&["M"]||u<r.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=n,na.apply(null,h)}
1526
+ // This function allows you to set the rounding function for relative time strings
1527
+ function oa(e){return void 0===e?ta:"function"==typeof e&&(ta=e,!0)}
1528
+ // This function allows you to set a threshold for relative time strings
1529
+ function aa(e,t){return void 0!==ra[e]&&(void 0===t?ra[e]:(ra[e]=t,"s"===e&&(ra.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,o=ra;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ra,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=ia(this,!i,o,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)}var la=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function ca(){
1530
+ // for ISO strings we do not use the normal bubbling rules:
1531
+ // * milliseconds bubble up until they become hours
1532
+ // * days do not bubble at all
1533
+ // * months bubble up until they become years
1534
+ // This is because there is no context-free conversion between hours and days
1535
+ // (think of clock changes)
1536
+ // and also not between days and months (28-31 days per month)
1537
+ if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,o,a,s,l=la(this._milliseconds)/1e3,u=la(this._days),c=la(this._months),d=this.asSeconds();return d?(
1538
+ // 3600 seconds -> 60 minutes -> 1 hour
1539
+ e=ue(l/60),t=ue(e/60),l%=60,e%=60,
1540
+ // 12 months -> 1 year
1541
+ r=ue(c/12),c%=12,
1542
+ // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
1543
+ n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",s=ua(this._milliseconds)!==ua(d)?"-":"",i+"P"+(r?o+r+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var da=sn.prototype;return da.isValid=on,da.abs=_o,da.add=So,da.subtract=Po,da.as=Mo,da.asMilliseconds=Bo,da.asSeconds=Fo,da.asMinutes=Oo,da.asHours=zo,da.asDays=Ho,da.asWeeks=No,da.asMonths=Uo,da.asQuarters=Io,da.asYears=Yo,da.valueOf=Ao,da._bubble=$o,da.clone=jo,da.get=Go,da.milliseconds=Wo,da.seconds=qo,da.minutes=Jo,da.hours=Zo,da.days=Ko,da.weeks=ea,da.months=Xo,da.years=Qo,da.humanize=sa,da.toISOString=ca,da.toString=ca,da.toJSON=ca,da.locale=si,da.localeData=ui,da.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),da.lang=li,
1544
+ // FORMATTING
1545
+ N("X",0,0,"unix"),N("x",0,0,"valueOf"),
1546
+ // PARSING
1547
+ Re("x",$e),Re("X",Me),He("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),He("x",(function(e,t,r){r._d=new Date(ce(e))})),
1548
+ //! moment.js
1549
+ n.version="2.29.3",i(qr),n.fn=uo,n.min=Qr,n.max=en,n.now=tn,n.utc=m,n.unix=co,n.months=yo,n.isDate=d,n.locale=mr,n.invalid=y,n.duration=$n,n.isMoment=x,n.weekdays=Co,n.parseZone=ho,n.localeData=br,n.isDuration=ln,n.monthsShort=wo,n.weekdaysMin=To,n.defineLocale=pr,n.updateLocale=gr,n.locales=yr,n.weekdaysShort=vo,n.normalizeUnits=ne,n.relativeTimeRounding=oa,n.relativeTimeThreshold=aa,n.calendarFormat=In,n.prototype=uo,
1550
+ // currently HTML5 input type only supports 24-hour formats
1551
+ n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
1552
+ DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
1553
+ DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",// <input type="datetime-local" step="0.001" />
1554
+ DATE:"YYYY-MM-DD",// <input type="date" />
1555
+ TIME:"HH:mm",// <input type="time" />
1556
+ TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
1557
+ TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
1558
+ WEEK:"GGGG-[W]WW",// <input type="week" />
1559
+ MONTH:"YYYY-MM"},n}()}));
1560
+ /* src/Cells/StartDateCell.svelte generated by Svelte v3.48.0 */
1561
+ function Pa(e){let t,r,n,i,a,s=/*cellsetting*/e[1]&&/*cellsetting*/e[1].showCalendarIcon&&Ea();return{c(){t=y("div"),s&&s.c(),r=C(/*shownDate*/e[2]),_(t,"class","Date TagContent"),_(t,"part","Date TagContent")},m(o,l){p(o,t,l),s&&s.m(t,null),m(t,r),i||(a=f(n=/*formatDate*/e[3].call(null,t,/*startdate*/e[0])),i=!0)},p(e,i){/*cellsetting*/e[1]&&/*cellsetting*/e[1].showCalendarIcon?s?s.p(e,i):(s=Ea(),s.c(),s.m(t,r)):s&&(s.d(1),s=null),/*shownDate*/4&i&&k(r,/*shownDate*/e[2]),n&&o(n.update)&&/*startdate*/1&i&&n.update.call(null,/*startdate*/e[0])},d(e){e&&g(t),s&&s.d(),i=!1,a()}}}
1562
+ // (66:4) {#if cellsetting && cellsetting.showCalendarIcon}
1563
+ function Ea(t){let r,n,i;return{c(){r=y("img"),i=v(),_(r,"class","CalendarIcon"),_(r,"alt","Calendar"),_(r,"part","CalendarIcon"),u(r.src,n="data:image/svg+xml,%3csvg width='9' height='11' viewBox='0 0 9 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z' fill='%231E1616'/%3e%3c/svg%3e")||_(r,"src","data:image/svg+xml,%3csvg width='9' height='11' viewBox='0 0 9 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z' fill='%231E1616'/%3e%3c/svg%3e")},m(e,t){p(e,r,t),p(e,i,t)},p:e,d(e){e&&g(r),e&&g(i)}}}function $a(t){let r,n=/*startdate*/t[0]&&Pa(t);return{c(){n&&n.c(),r=T(),this.c=e},m(e,t){n&&n.m(e,t),p(e,r,t)},p(e,[t]){/*startdate*/e[0]?n?n.p(e,t):(n=Pa(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&g(r)}}}function La(e,t,r){let n;d(e,kr,(e=>r(7,n=e)));let{startdate:i=""}=t,{status:o=""}=t,{lang:a=""}=t,{cellsetting:s}=t,l={shortstart:!1,shortstartformat:"DD MMM YYYY",showCalendarIcon:!1},u="";ar({fallbackLocale:"en",initialLocale:"en"}),Object.keys(li).forEach((e=>{Qn(e,li[e])}));const c=()=>{const e={month:"long"};let t=new Date(i);if(s&&s.shortstart){let e=Sa(t).format(s.shortstartformat||l.shortstartformat);r(2,u=n("Running"===o||"Closing"==o||"Closed"==o?"tournamentsThumbnail.startedAtWithTime":"tournamentsThumbnail.startingAtWithTime",{values:{startTime:e}}))}else{let i=new Intl.DateTimeFormat("en",e).format(t),a=t.getDate(),s=t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});r(2,u=`${a} `+n(`tournamentsThumbnail.${i}`)+", "+n("Running"===o?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+` ${s}`)}};return e.$$set=e=>{"startdate"in e&&r(0,i=e.startdate),"status"in e&&r(4,o=e.status),"lang"in e&&r(5,a=e.lang),"cellsetting"in e&&r(1,s=e.cellsetting)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&a&&(ei(a),i&&c()),/*startdate*/1&e.$$.dirty&&i&&c(),/*cellsetting*/2&e.$$.dirty&&s&&(l={shortstart:s.shortstart||!1,shortstartformat:s.shortstartformat||"DD MMM YYYY",showCalendarIcon:s.showCalendarIcon||!1})},[i,s,u,c,o,a]}class Da extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},La,$a,a,{startdate:0,status:4,lang:5,cellsetting:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["startdate","status","lang","cellsetting"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),U()}get status(){return this.$$.ctx[4]}set status(e){this.$$set({status:e}),U()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),U()}get cellsetting(){return this.$$.ctx[1]}set cellsetting(e){this.$$set({cellsetting:e}),U()}}
1564
+ /* src/Cells/BackButtonCell.svelte generated by Svelte v3.48.0 */
1565
+ function Ma(t){let r,n,i,o,a,s,l,u,c,d=/*$_*/t[0]("tournamentsPage.back")+"";return{c(){r=y("div"),n=y("div"),i=w("svg"),o=w("path"),a=v(),s=y("p"),l=C(d),this.c=e,_(o,"stroke-linecap","round"),_(o,"stroke-linejoin","round"),_(o,"stroke-width","2"),_(o,"d","M15 19l-7-7 7-7"),_(i,"fill","none"),_(i,"stroke","currentColor"),_(i,"width","24"),_(i,"height","24"),_(i,"viewBox","0 0 24 24"),_(i,"xmlns","http://www.w3.org/2000/svg"),_(s,"class","ButtonText"),_(n,"class","BackButton"),_(n,"part","BackButton"),_(r,"class","TopButtons"),_(r,"part","TopButtons")},m(e,d){p(e,r,d),m(r,n),m(n,i),m(i,o),m(n,a),m(n,s),m(s,l),u||(c=x(n,"click",/*click_handler*/t[4]),u=!0)},p(e,[t]){/*$_*/1&t&&d!==(d=/*$_*/e[0]("tournamentsPage.back")+"")&&k(l,d)},i:e,o:e,d(e){e&&g(r),u=!1,c()}}}function Aa(e,t,r){let n;d(e,kr,(e=>r(0,n=e)));let{lang:i="en"}=t,{navigationbackbutton:o="Default"}=t;Object.keys(ri).forEach((e=>{Qn(e,ri[e])}));const a=()=>{
1566
+ // this function handles the back navigation making use of the prop: navigationbackbutton. If it has the
1567
+ // event value, it will emit the 'RedirectBack' event which will enable the client to handle the routing;
1568
+ // else, if it has the 'Default' value, it will do a window.history.back()
1569
+ "Event"==o?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==o&&window.history.back()};return e.$$set=e=>{"lang"in e&&r(2,i=e.lang),"navigationbackbutton"in e&&r(3,o=e.navigationbackbutton)},e.$$.update=()=>{/*lang*/4&e.$$.dirty&&i&&ei(i)},[n,a,i,o,()=>a()]}customElements.define("startdate-cell",Da);class Ra extends G{constructor(e){super(),re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Aa,Ma,a,{lang:2,navigationbackbutton:3},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","navigationbackbutton"]}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),U()}get navigationbackbutton(){return this.$$.ctx[3]}set navigationbackbutton(e){this.$$set({navigationbackbutton:e}),U()}}customElements.define("backbutton-cell",Ra);const Ba={Cell:{attributes:In.observedAttributes,cellBox:In},BackButtonCell:{attributes:Ra.observedAttributes,cellBox:Ra},ThumbnailCell:{attributes:Gn.observedAttributes,cellBox:Gn},TitleCell:{attributes:ka.observedAttributes,cellBox:ka},TitleTextCell:{attributes:Xn.observedAttributes,cellBox:Xn},StartDateCell:{attributes:Da.observedAttributes,cellBox:Da},ScoreCriteriaCell:{attributes:di.observedAttributes,cellBox:di},StatusTag:{attributes:Ei.observedAttributes,cellBox:Ei},TournamentSlot:{attributes:In.observedAttributes,cellBox:In},JoinButtonCell:{attributes:_i.observedAttributes,cellBox:_i},UserEnrollTag:{attributes:Ai.observedAttributes,cellBox:Ai},DurationCell:{attributes:Yi.observedAttributes,cellBox:Yi},SeeGamesLine:{attributes:Vi.observedAttributes,cellBox:Vi},PrizesCell:{attributes:co.observedAttributes,cellBox:co},GamesCell:{attributes:bo.observedAttributes,cellBox:bo},TermsAndConditionsCell:{attributes:wo.observedAttributes,cellBox:wo},DescriptionCell:{attributes:So.observedAttributes,cellBox:So},LeaderboardCell:{attributes:Ta.observedAttributes,cellBox:Ta}},Fa={wm:{id:"tournamentLayout",rows:[{id:"row1",type:"widget",///slot ?,
1570
+ style:{height:"50px"},cols:[{id:"row-container",class:"RowContent",isCellContainer:!0,componentid:"Cell",subComponents:[{id:"thumbnailImg",componentid:"ThumbnailCell",class:"",subComponents:[{id:"status",componentid:"StatusTag",class:"Tag"},{id:"userEnrolled",componentid:"UserEnrollTag",class:"Tag"},{id:"startdate",componentid:"StartDateCell",class:"Tag",config:{shortstart:!0,showCalendarIcon:!0}}]},{id:"detailInfo",class:" DetailInfo",componentid:"Cell",isCellContainer:!0,subComponents:[{id:"title",componentid:"TitleCell",class:","},{id:"scoreCriteria",componentid:"ScoreCriteriaCell",class:" "},{id:"slot1",isSlotCell:!0,slotName:"GameClick",class:" "},{id:"seeGamesLink",componentid:"SeeGamesLine",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"thumbnailDuration",componentid:"DurationCell",class:"row-70-center"}]}]},{id:"prizeImg",componentid:"PrizesCell",class:" ",config:{expandAll:!0,listType:1,//1: col by col, 2: row by row
1571
+ maxCol:3,rowPerCol:7,showrankasimage:!0}},{id:"gamesLine",componentid:"GamesCell",class:" "},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RowContent",subComponents:[{id:"tour-description",isCellContainer:!0,componentid:"Cell",class:"DescriptionAndTermConditions",subComponents:[{id:"tour-description",componentid:"DescriptionCell",dataKey:{textKey:"tournamentdescription",key:"tournamentdescription",source:"cms"},class:" "},{id:"tour-tm",componentid:"TermsAndConditionsCell",class:" "}]},{id:"leaderboard",componentid:"LeaderboardCell",class:"",config:{firstrow:"true"}}]},{id:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "}]}]},default:{id:"tournamentLayout",rows:[{id:"row1",type:"widget",style:{height:"50px"},cols:[{id:"topBackButton",componentid:"BackButtonCell"},{id:"left-thumbnail",class:"LeftSection",isCellContainer:!0,componentid:"Cell",subComponents:[{id:"thumbnailImg",componentid:"ThumbnailCell",class:" ",subComponents:[{id:"status",componentid:"StatusTag",class:"Tag"},{id:"userEnrolled",componentid:"UserEnrollTag",class:"Tag"}]},{id:"detailInfo",class:" DetailInfo",componentid:"Cell",isCellContainer:!0,subComponents:[{id:"title",componentid:"TitleCell",class:" "},{id:"startdate",componentid:"StartDateCell",class:" "},{id:"scoreCriteria",componentid:"ScoreCriteriaCell",class:" "},{id:"slot1",isSlotCell:!0,slotName:"GameClick",class:" "},{id:"seeGamesLink",componentid:"SeeGamesLine",class:" "},{id:"prizeImg",componentid:"PrizesCell",class:" ",config:{expandAll:!1,//default
1572
+ listType:1,//1: col by col, 2: row by row
1573
+ maxCol:3,rowPerCol:7}},{id:"thumbnailDuration",componentid:"DurationCell",class:" "},{id:"joinButton",componentid:"JoinButtonCell",class:" "},{id:"gamesLine",componentid:"GamesCell",class:" "},{id:"description",componentid:"TitleTextCell",dataKey:{textKey:"text",key:"description",source:"api"},class:" "},{id:"tour-description",isCellContainer:!0,componentid:"Cell",class:" ",subComponents:[{id:"tour-description",componentid:"DescriptionCell",dataKey:{textKey:"tournamentdescription",key:"tournamentdescription",source:"cms"},class:" "},{id:"tour-tm",componentid:"TermsAndConditionsCell",class:" "}]}]}]},{id:"tm-leaderboard",isCellContainer:!0,componentid:"Cell",class:"RightSection",subComponents:[{id:"leaderboard",componentid:"LeaderboardCell"}]}]}]}},Oa=(e,t)=>{console.log("Start parse layout...");let r=e.rows,n=e=>{e&&e.length&&e.forEach((e=>{if(e.class||(e.class=""),e.isSlotCell)return e.parts=`Slots ${e.componentid} ${e.id}`,void(e.cellClass=`Cells Slots ${e.class} ${e.id}`);e.isCellContainer?(e.parts=`BoxCells ${e.componentid} ${e.id}`,e.cellClass=`Cells BoxCells ${e.class} ${e.id}`):(e.parts=`BizCells ${e.componentid} ${e.id}`,e.cellClass=`Cells BizCells ${e.class} ${e.componentid} ${e.id}`,e.componentAttrs=((e,t)=>{let r=e.componentid,n={},i=Ba[r].attributes||[];if(e.dataKey){let r=e.dataKey;
1574
+ //init cell by source type
1575
+ return"api"==r.source?// when component cell init by api data
1576
+ n[r.textKey]=t.tournamentData[r.key]||null:"cms"==r.source&&(// fill data by cms data
1577
+ n[r.textKey]=t.cmsData[r.key]||null),n.titlekey=r.key,n}return i.forEach((e=>{let r=t.tournamentData||{},i=t.ctrlProperties||{};r.hasOwnProperty(e)?n[e]=r[e]:n[e]=i[e]||t.pageDefaultParams[e]})),n})(e,t),e.config&&(e.componentAttrs.cellsetting=e.config)),e.component=Ba[e.componentid].cellBox,n(e.subComponents)}))};return r.forEach((e=>{n(e.cols)})),console.log("Start parse layout...Done"),e};
1578
+ /*
1579
+ * These data will be managed by CMS, config it in file for temporary
1580
+ * Configed layout: wm/default
1581
+ * */class za{transfer(e){return{id:e.id,tourid:e.id,title:e.nameOrTitle||"",thumbnail:e.thumbnail,state:e.state,status:e.state,startdate:e.startTime,enddate:e.endTime,scorecriteria:e.scoreCriteria,minbetcount:e.minBetCount,userenrolled:e.playerEnrolled||!1,gameurl:e.termsUrl||"#",prizes:e.prizes,games:e.games,description:e.description,termsurl:e.termsUrl,bonuscode:e.wallets&&e.wallets.length>=1?e.wallets[0].code:null}}}const Ha={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},zh:{tournamentsPage:{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限"}},fr:{tournamentsPage:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité"}},ro:{tournamentsPage:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat"}},tr:{tournamentsPage:{loading:"Yükleniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",mostRounds:"MostRounds",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"unlimited"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}},es:{tournamentsPage:{loading:"Cargando…",back:"Anterior",previous:"Previo",next:"Siguiente",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado",mostRounds:"Más rondas",activePeriod:"Desde {startdate} Hasta {enddate}",forwardCasino:"Ver los Juegos de Casino incluidos",forwardSports:"Ver los Deportes incluidos",forwardMyTournaments:"Ver mis Torneos",leaderBoard:"Tabla de posiciones",rules:"Reglas",games:"Juegos",unlimited:"ilimitado"}},hu:{tournamentsPage:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan"}},pt:{tournamentsPage:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado"}}};
1582
+ /* src/CasinoTournamentsCustomizePageController.svelte generated by Svelte v3.48.0 */function Na(e,t,r){const n=e.slice();return n[58]=t[r],n}function Ua(e,t,r){const n=e.slice();return n[61]=t[r],n}function Ia(e,t,r){const n=e.slice();return n[64]=t[r],n}function Ya(e,t,r){const n=e.slice();return n[67]=t[r],n}
1583
+ // (283:0) {#if isLoading}
1584
+ function ja(e){let t,r,n=/*$_*/e[6]("tournamentsPage.loading")+"";return{c(){t=y("p"),r=C(n),_(t,"class","LoadingMessage"),_(t,"part","LoadingMessage")},m(e,n){p(e,t,n),m(t,r)},p(e,t){/*$_*/64&t[0]&&n!==(n=/*$_*/e[6]("tournamentsPage.loading")+"")&&k(r,n)},d(e){e&&g(t)}}}
1585
+ // (290:2) {#if errorMessage}
1586
+ function Ga(e){let t;return{c(){t=C(/*errorMessage*/e[3])},m(e,r){p(e,t,r)},p(e,r){/*errorMessage*/8&r[0]&&k(t,/*errorMessage*/e[3])},d(e){e&&g(t)}}}
1587
+ // (296:12) {#if !col.isCellContainer}
1588
+ function Va(e){let r,n,i;const o=[/*col*/e[61].componentAttrs,{attrs:/*col*/e[61].componentAttrs}];var a=/*col*/e[61].component;function s(e){let r={};for(let e=0;e<o.length;e+=1)r=t(r,o[e]);return{props:r}}return a&&(r=new a(s())),{c(){r&&X(r.$$.fragment),n=T()},m(e,t){r&&Q(r,e,t),p(e,n,t),i=!0},p(e,t){const i=/*opLayout*/4&t[0]?Z(o,[K(/*col*/e[61].componentAttrs),{attrs:/*col*/e[61].componentAttrs}]):{};if(a!==(a=/*col*/e[61].component)){if(r){V();const e=r;J(e.$$.fragment,1,0,(()=>{ee(e,1)})),W()}a?(r=new a(s()),X(r.$$.fragment),q(r.$$.fragment,1),Q(r,n.parentNode,n)):r=null}else a&&r.$set(i)},i(e){i||(r&&q(r.$$.fragment,e),i=!0)},o(e){r&&J(r.$$.fragment,e),i=!1},d(e){e&&g(n),r&&ee(r,e)}}}
1589
+ // (299:12) {#if col.isSlotCell}
1590
+ function Wa(e){let t,r,n,i;return{c(){t=y("slot"),_(t,"part",r=/*col*/e[61].slotName),_(t,"class",n=/*col*/e[61].slotName),_(t,"name",i=/*col*/e[61].slotName)},m(e,r){p(e,t,r)},p(e,o){/*opLayout*/4&o[0]&&r!==(r=/*col*/e[61].slotName)&&_(t,"part",r),/*opLayout*/4&o[0]&&n!==(n=/*col*/e[61].slotName)&&_(t,"class",n),/*opLayout*/4&o[0]&&i!==(i=/*col*/e[61].slotName)&&_(t,"name",i)},d(e){e&&g(t)}}}
1591
+ // (302:12) {#if col.subComponents && col.subComponents.length > 0}
1592
+ function qa(e){let t,r,n=/*col*/e[61].subComponents,i=[];for(let t=0;t<n.length;t+=1)i[t]=ts(Ia(e,n,t));const o=e=>J(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);p(e,t,n),r=!0},p(e,r){if(/*opLayout*/4&r[0]){let a;for(n=/*col*/e[61].subComponents,a=0;a<n.length;a+=1){const o=Ia(e,n,a);i[a]?(i[a].p(o,r),q(i[a],1)):(i[a]=ts(o),i[a].c(),q(i[a],1),i[a].m(t.parentNode,t))}for(V(),a=n.length;a<i.length;a+=1)o(a);W()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)q(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)J(i[e]);r=!1},d(e){b(i,e),e&&g(t)}}}
1593
+ // (305:18) {#if !subCol.isCellContainer}
1594
+ function Ja(e){let r,n,i;const o=[
1595
+ /*subCol*/e[64].componentAttrs,{attrs:/*subCol*/e[64].componentAttrs}];var a=/*subCol*/e[64].component;function s(e){let r={};for(let e=0;e<o.length;e+=1)r=t(r,o[e]);return{props:r}}return a&&(r=new a(s())),{c(){r&&X(r.$$.fragment),n=T()},m(e,t){r&&Q(r,e,t),p(e,n,t),i=!0},p(e,t){const i=/*opLayout*/4&t[0]?Z(o,[K(/*subCol*/e[64].componentAttrs),{attrs:/*subCol*/e[64].componentAttrs}]):{};if(a!==(a=/*subCol*/e[64].component)){if(r){V();const e=r;J(e.$$.fragment,1,0,(()=>{ee(e,1)})),W()}a?(r=new a(s()),X(r.$$.fragment),q(r.$$.fragment,1),Q(r,n.parentNode,n)):r=null}else a&&r.$set(i)},i(e){i||(r&&q(r.$$.fragment,e),i=!0)},o(e){r&&J(r.$$.fragment,e),i=!1},d(e){e&&g(n),r&&ee(r,e)}}}
1596
+ // (308:18) {#if subCol.isSlotCell}
1597
+ function Za(e){let t,r,n,i;return{c(){t=y("slot"),_(t,"part",r=/*subCol*/e[64].slotName),_(t,"class",n=/*subCol*/e[64].slotName),_(t,"name",i=/*subCol*/e[64].slotName)},m(e,r){p(e,t,r)},p(e,o){/*opLayout*/4&o[0]&&r!==(r=/*subCol*/e[64].slotName)&&_(t,"part",r),/*opLayout*/4&o[0]&&n!==(n=/*subCol*/e[64].slotName)&&_(t,"class",n),/*opLayout*/4&o[0]&&i!==(i=/*subCol*/e[64].slotName)&&_(t,"name",i)},d(e){e&&g(t)}}}
1598
+ // (311:18) {#if subCol.subComponents && subCol.subComponents.length > 0}
1599
+ function Ka(e){let t,r,n=/*subCol*/e[64].subComponents,i=[];for(let t=0;t<n.length;t+=1)i[t]=es(Ya(e,n,t));const o=e=>J(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);p(e,t,n),r=!0},p(e,r){if(/*opLayout*/4&r[0]){let a;for(n=/*subCol*/e[64].subComponents,a=0;a<n.length;a+=1){const o=Ya(e,n,a);i[a]?(i[a].p(o,r),q(i[a],1)):(i[a]=es(o),i[a].c(),q(i[a],1),i[a].m(t.parentNode,t))}for(V(),a=n.length;a<i.length;a+=1)o(a);W()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)q(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)J(i[e]);r=!1},d(e){b(i,e),e&&g(t)}}}
1600
+ // (316:24) {:else }
1601
+ function Xa(e){let r,n,i;const o=[
1602
+ /*grandCol*/e[67].componentAttrs,{attrs:/*grandCol*/e[67].componentAttrs}];var a=/*grandCol*/e[67].component;function s(e){let r={};for(let e=0;e<o.length;e+=1)r=t(r,o[e]);return{props:r}}return a&&(r=new a(s())),{c(){r&&X(r.$$.fragment),n=T()},m(e,t){r&&Q(r,e,t),p(e,n,t),i=!0},p(e,t){const i=/*opLayout*/4&t[0]?Z(o,[K(/*grandCol*/e[67].componentAttrs),{attrs:/*grandCol*/e[67].componentAttrs}]):{};if(a!==(a=/*grandCol*/e[67].component)){if(r){V();const e=r;J(e.$$.fragment,1,0,(()=>{ee(e,1)})),W()}a?(r=new a(s()),X(r.$$.fragment),q(r.$$.fragment,1),Q(r,n.parentNode,n)):r=null}else a&&r.$set(i)},i(e){i||(r&&q(r.$$.fragment,e),i=!0)},o(e){r&&J(r.$$.fragment,e),i=!1},d(e){e&&g(n),r&&ee(r,e)}}}
1603
+ // (314:24) {#if grandCol.isSlotCell}
1604
+ function Qa(t){let r,n,i,o;return{c(){r=y("slot"),_(r,"part",n=/*grandCol*/t[67].slotName),_(r,"class",i=/*grandCol*/t[67].slotName),_(r,"name",o=/*grandCol*/t[67].slotName)},m(e,t){p(e,r,t)},p(e,t){/*opLayout*/4&t[0]&&n!==(n=/*grandCol*/e[67].slotName)&&_(r,"part",n),/*opLayout*/4&t[0]&&i!==(i=/*grandCol*/e[67].slotName)&&_(r,"class",i),/*opLayout*/4&t[0]&&o!==(o=/*grandCol*/e[67].slotName)&&_(r,"name",o)},i:e,o:e,d(e){e&&g(r)}}}
1605
+ // (312:20) {#each subCol.subComponents as grandCol}
1606
+ function es(e){let t,r,n,i,a,s,l,u,c,d;const h=[Qa,Xa],b=[];function w(e,t){/*grandCol*/
1607
+ return e[67].isSlotCell?0:1}return r=w(e),n=b[r]=h[r](e),{c(){t=y("div"),n.c(),i=v(),_(t,"class",a="Cell3s "+/*grandCol*/e[67].cellClass),_(t,"part",s=/*grandCol*/e[67].parts+" Cell3s")},m(n,o){p(n,t,o),b[r].m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*grandCol*/e[67])),c=!0)},p(c,d){let f=r;r=w(e=c),r===f?b[r].p(e,d):(V(),J(b[f],1,1,(()=>{b[f]=null})),W(),n=b[r],n?n.p(e,d):(n=b[r]=h[r](e),n.c()),q(n,1),n.m(t,i)),(!u||/*opLayout*/4&d[0]&&a!==(a="Cell3s "+/*grandCol*/e[67].cellClass))&&_(t,"class",a),(!u||/*opLayout*/4&d[0]&&s!==(s=/*grandCol*/e[67].parts+" Cell3s"))&&_(t,"part",s),l&&o(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*grandCol*/e[67])},i(e){u||(q(n),u=!0)},o(e){J(n),u=!1},d(e){e&&g(t),b[r].d(),c=!1,d()}}}
1608
+ // (303:14) {#each col.subComponents as subCol}
1609
+ function ts(e){let t,r,n,i,a,s,l,u,c,d,h=!/*subCol*/e[64].isCellContainer&&Ja(e),b=/*subCol*/e[64].isSlotCell&&Za(e),w=/*subCol*/e[64].subComponents&&/*subCol*/e[64].subComponents.length>0&&Ka(e);return{c(){t=y("div"),h&&h.c(),r=v(),b&&b.c(),n=v(),w&&w.c(),i=v(),_(t,"class",a="Cell2s "+/*subCol*/e[64].cellClass),_(t,"part",s=/*subCol*/e[64].parts+" Cell2s")},m(o,a){p(o,t,a),h&&h.m(t,null),m(t,r),b&&b.m(t,null),m(t,n),w&&w.m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*subCol*/e[64])),c=!0)},p(c,d){/*subCol*/(e=c)[64].isCellContainer?h&&(V(),J(h,1,1,(()=>{h=null})),W()):h?(h.p(e,d),/*opLayout*/4&d[0]&&q(h,1)):(h=Ja(e),h.c(),q(h,1),h.m(t,r)),/*subCol*/e[64].isSlotCell?b?b.p(e,d):(b=Za(e),b.c(),b.m(t,n)):b&&(b.d(1),b=null),/*subCol*/e[64].subComponents&&/*subCol*/e[64].subComponents.length>0?w?(w.p(e,d),/*opLayout*/4&d[0]&&q(w,1)):(w=Ka(e),w.c(),q(w,1),w.m(t,i)):w&&(V(),J(w,1,1,(()=>{w=null})),W()),(!u||/*opLayout*/4&d[0]&&a!==(a="Cell2s "+/*subCol*/e[64].cellClass))&&_(t,"class",a),(!u||/*opLayout*/4&d[0]&&s!==(s=/*subCol*/e[64].parts+" Cell2s"))&&_(t,"part",s),l&&o(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*subCol*/e[64])},i(e){u||(q(h),q(w),u=!0)},o(e){J(h),J(w),u=!1},d(e){e&&g(t),h&&h.d(),b&&b.d(),w&&w.d(),c=!1,d()}}}
1610
+ // (294:6) {#each row.cols as col}
1611
+ function rs(e){let t,r,n,i,a,s,l,u,c,d,h=!/*col*/e[61].isCellContainer&&Va(e),b=/*col*/e[61].isSlotCell&&Wa(e),w=/*col*/e[61].subComponents&&/*col*/e[61].subComponents.length>0&&qa(e);return{c(){t=y("div"),h&&h.c(),r=v(),b&&b.c(),n=v(),w&&w.c(),i=v(),_(t,"class",a="Cell1s "+/*col*/e[61].cellClass),_(t,"part",s=/*col*/e[61].parts)},m(o,a){p(o,t,a),h&&h.m(t,null),m(t,r),b&&b.m(t,null),m(t,n),w&&w.m(t,null),m(t,i),u=!0,c||(d=f(l=/*onLoadComponent*/e[7].call(null,t,/*col*/e[61])),c=!0)},p(c,d){/*col*/(e=c)[61].isCellContainer?h&&(V(),J(h,1,1,(()=>{h=null})),W()):h?(h.p(e,d),/*opLayout*/4&d[0]&&q(h,1)):(h=Va(e),h.c(),q(h,1),h.m(t,r)),/*col*/e[61].isSlotCell?b?b.p(e,d):(b=Wa(e),b.c(),b.m(t,n)):b&&(b.d(1),b=null),/*col*/e[61].subComponents&&/*col*/e[61].subComponents.length>0?w?(w.p(e,d),/*opLayout*/4&d[0]&&q(w,1)):(w=qa(e),w.c(),q(w,1),w.m(t,i)):w&&(V(),J(w,1,1,(()=>{w=null})),W()),(!u||/*opLayout*/4&d[0]&&a!==(a="Cell1s "+/*col*/e[61].cellClass))&&_(t,"class",a),(!u||/*opLayout*/4&d[0]&&s!==(s=/*col*/e[61].parts))&&_(t,"part",s),l&&o(l.update)&&/*opLayout*/4&d[0]&&l.update.call(null,/*col*/e[61])},i(e){u||(q(h),q(w),u=!0)},o(e){J(h),J(w),u=!1},d(e){e&&g(t),h&&h.d(),b&&b.d(),w&&w.d(),c=!1,d()}}}
1612
+ // (293:4) {#each opLayout.rows as row }
1613
+ function ns(e){let t,r,n=/*row*/e[58].cols,i=[];for(let t=0;t<n.length;t+=1)i[t]=rs(Ua(e,n,t));const o=e=>J(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=T()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);p(e,t,n),r=!0},p(e,r){if(/*opLayout*/4&r[0]){let a;for(n=/*row*/e[58].cols,a=0;a<n.length;a+=1){const o=Ua(e,n,a);i[a]?(i[a].p(o,r),q(i[a],1)):(i[a]=rs(o),i[a].c(),q(i[a],1),i[a].m(t.parentNode,t))}for(V(),a=n.length;a<i.length;a+=1)o(a);W()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)q(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)J(i[e]);r=!1},d(e){b(i,e),e&&g(t)}}}function is(t){let r,n,i,o,a,s,l=/*isLoading*/t[4]&&ja(t),u=/*errorMessage*/t[3]&&Ga(t),c=/*opLayout*/t[2].rows,d=[];for(let e=0;e<c.length;e+=1)d[e]=ns(Na(t,c,e));const h=e=>J(d[e],1,1,(()=>{d[e]=null}));return{c(){l&&l.c(),r=v(),n=y("div"),u&&u.c(),i=v();for(let e=0;e<d.length;e+=1)d[e].c();this.c=e,S(n,"display",/*isLoading*/t[4]?"none":"flex"),_(n,"class",o="casino-tournaments-customize-page-controller layout-"+/*layoutid*/t[0]+" "+(/*mobileView*/t[1]?"MobileContainer":"")),_(n,"part",a="casino-tournaments-customize-page-controller layout-"+/*layoutid*/t[0])},m(e,o){l&&l.m(e,o),p(e,r,o),p(e,n,o),u&&u.m(n,null),m(n,i);for(let e=0;e<d.length;e+=1)d[e].m(n,null);
1614
+ /*div_binding*/t[35](n),s=!0},p(e,t){if(/*isLoading*/e[4]?l?l.p(e,t):(l=ja(e),l.c(),l.m(r.parentNode,r)):l&&(l.d(1),l=null),/*errorMessage*/e[3]?u?u.p(e,t):(u=Ga(e),u.c(),u.m(n,i)):u&&(u.d(1),u=null),/*opLayout*/4&t[0]){let r;for(c=/*opLayout*/e[2].rows,r=0;r<c.length;r+=1){const i=Na(e,c,r);d[r]?(d[r].p(i,t),q(d[r],1)):(d[r]=ns(i),d[r].c(),q(d[r],1),d[r].m(n,null))}for(V(),r=c.length;r<d.length;r+=1)h(r);W()}(!s||/*isLoading*/16&t[0])&&S(n,"display",/*isLoading*/e[4]?"none":"flex"),(!s||/*layoutid, mobileView*/3&t[0]&&o!==(o="casino-tournaments-customize-page-controller layout-"+/*layoutid*/e[0]+" "+(/*mobileView*/e[1]?"MobileContainer":"")))&&_(n,"class",o),(!s||/*layoutid*/1&t[0]&&a!==(a="casino-tournaments-customize-page-controller layout-"+/*layoutid*/e[0]))&&_(n,"part",a)},i(e){if(!s){for(let e=0;e<c.length;e+=1)q(d[e]);s=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)J(d[e]);s=!1},d(e){l&&l.d(e),e&&g(r),e&&g(n),u&&u.d(),b(d,e),
1615
+ /*div_binding*/t[35](null)}}}function os(e,r,n){let i;d(e,kr,(e=>n(6,i=e)));let o,a,s,{layoutid:l="default"}=r,{session:u=""}=r,{userid:c=""}=r,{tourid:f=""}=r,{endpoint:m=""}=r,{cmsendpoint:p=""}=r,{lang:g="en"}=r,{navigationbackbutton:b="Default"}=r,{currency:y="EUR"}=r,{tablelimit:w="30"}=r,{namemask:C=""}=r,{showunqualifiedplayer:v="true"}=r,{mobiletablelimit:T="15"}=r,{updatetableintime:x="true"}=r,{viewmode:_=""}=r,{minscore:k=""}=r,{scorefractiondigit:S="2"}=r,{loginevent:P=""}=r,{registerevent:E=""}=r,{loginurl:$=""}=r,{registerurl:M=""}=r,{limit:R=30}=r,{offset:B=0}=r,{leaderboardoffset:F="0"}=r,{leaderboardlimit:O="15"}=r,{keepbrowsercontext:z="false"}=r,{showrankasimage:H="false"}=r,N=window.navigator.userAgent,U=!1,I={pageDefaultParams:{lang:"en",layoutid:"default",navigationbackbutton:"Default",currency:"EUR",tablelimit:"30",showunqualifiedplayer:"true",mobiletablelimit:"15",updatetableintime:"true",scorefractiondigit:"2",leaderboardoffset:"0",leaderboardlimit:"15",keepbrowsercontext:"false",showenrolled:"true",firstrow:"true"},cmsData:{},ctrlProperties:null,tournamentData:null},Y=new za,j={rows:[]},G=!1,V=!0;Object.keys(Ha).forEach((e=>{!function(e,t){Zt(e,t)}(e,Ha[e])})),function({withLocale:e,translations:t}){fr.subscribe((r=>{null==r&&(Wt.set(t),fr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
1616
+ /*dictionary.set(translations);
1617
+ locale.set(_locale);*/}({withLocale:g,translations:{}});const W=(e,t)=>{let r=e.rows,n=e=>{e&&e.length&&e.forEach((e=>{e.isCellContainer||((e,t)=>{let r=e.componentAttrs||{};r&&Object.keys(r).forEach((e=>{t.hasOwnProperty(e)&&(r[e]=t[e])}))})(e,t),n(e.subComponents)}))};r.forEach((e=>{n(e.cols)}))},q=e=>{if(e.data)try{let t=JSON.parse(e.data);"TournamentUpdate"==t.messageType&&(window.postMessage({type:"UpdateTournamentView",tournamentData:t.item},window.location.href),J(t.item))}catch(e){console.error(e)}},J=e=>{a=Y.transfer(e),I.tournamentData=a,a.lang=g,n(2,j=Oa(Fa[l]||Fa.default,I))},Z=(e,t)=>{let r=new URL(e+`/tournaments/${t}`),i=new Headers({"X-SessionId":u});r.searchParams.append("platform",zn(N)),r.searchParams.append("language",g);let l=r.searchParams.toString(),c={method:"GET",headers:i};fetch(r.href,c).then((e=>e.json())).then((e=>{e.success?(n(3,s=null),e.item.id=f,J(e.item),a.lang=g,W(j,a),n(2,j=Object.assign({},j)),n(4,V=!1),((e,t)=>{let r=`${m}/tournaments/updates?filter=id=${e}&${t}`;o&&(o.removeEventListener("message",q),o.close()),o=new Hn.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":u}}),o.addEventListener("message",q)})(f,l)):n(3,s=`Faild to load data, details: ${e.errorMessage}`)}))},K=L(),X=(e,t,r)=>{if(!j.rows||0==j.rows.length)return;let i=j.rows[0].cols;e.forEach((e=>{let n,o=t=>{t.forEach(((t,r)=>n||(t.componentid==e?(n=t,n):t.subComponents&&t.subComponents.length>0?o(t.subComponents):void 0)))};o(i);let a=K.$$.props,s=K.$$.ctx;n&&t.forEach((e=>{if(r)return void(n.componentAttrs[e]=I.tournamentData[e]);let t=a[e],i=s[t];I.ctrlProperties[e]=i,n.componentAttrs[e]=i}))})),n(2,j=Object.assign({},j))},Q=e=>{e.data&&"TournamentUserEnrolled"==e.data.type&&(I.tournamentData.userenrolled=e.data.userenrolled)};let ee;return D((()=>(n(34,G=!0),n(0,l=Fa[l]?l:"default"),n(1,U=On(N)),I.ctrlProperties=r,window.addEventListener("message",Q),()=>{window.removeEventListener("message",Q)}))),e.$$set=e=>{n(57,r=t(t({},r),h(e))),"layoutid"in e&&n(0,l=e.layoutid),"session"in e&&n(8,u=e.session),"userid"in e&&n(9,c=e.userid),"tourid"in e&&n(10,f=e.tourid),"endpoint"in e&&n(11,m=e.endpoint),"cmsendpoint"in e&&n(12,p=e.cmsendpoint),"lang"in e&&n(13,g=e.lang),"navigationbackbutton"in e&&n(14,b=e.navigationbackbutton),"currency"in e&&n(15,y=e.currency),"tablelimit"in e&&n(16,w=e.tablelimit),"namemask"in e&&n(17,C=e.namemask),"showunqualifiedplayer"in e&&n(18,v=e.showunqualifiedplayer),"mobiletablelimit"in e&&n(19,T=e.mobiletablelimit),"updatetableintime"in e&&n(20,x=e.updatetableintime),"viewmode"in e&&n(21,_=e.viewmode),"minscore"in e&&n(22,k=e.minscore),"scorefractiondigit"in e&&n(23,S=e.scorefractiondigit),"loginevent"in e&&n(24,P=e.loginevent),"registerevent"in e&&n(25,E=e.registerevent),"loginurl"in e&&n(26,$=e.loginurl),"registerurl"in e&&n(27,M=e.registerurl),"limit"in e&&n(28,R=e.limit),"offset"in e&&n(29,B=e.offset),"leaderboardoffset"in e&&n(30,F=e.leaderboardoffset),"leaderboardlimit"in e&&n(31,O=e.leaderboardlimit),"keepbrowsercontext"in e&&n(32,z=e.keepbrowsercontext),"showrankasimage"in e&&n(33,H=e.showrankasimage)},e.$$.update=()=>{/*endpoint, session, userid, lang, tourid*/12032&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&m&&u&&c&&g&&f&&Z(m,f),/*session, userid*/768&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&u&&c&&setTimeout((()=>{X(["LeaderboardCell","GamesCell"],["session","userid"])}),100),/*showunqualifiedplayer, scorefractiondigit, tablelimit*/8716288&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&v&&S&&w&&X(["LeaderboardCell"],["showunqualifiedplayer","scorefractiondigit","tablelimit"]),/*layoutid*/1&e.$$.dirty[0]|/*isMounted*/8&e.$$.dirty[1]&&G&&l&&(a?(n(0,l=Fa[l]?l:"default"),n(2,j=Oa(Fa[l],I))):console.log("tournamentData undefined"))},r=h(r),[l,U,j,s,V,ee,i,(e,t)=>{t.onLoad&&t.onLoad()},u,c,f,m,p,g,b,y,w,C,v,T,x,_,k,S,P,E,$,M,R,B,F,O,z,H,G,function(e){A[e?"unshift":"push"]((()=>{ee=e,n(5,ee)}))}]}class as extends G{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-size:12px;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-customize-page-controller{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;padding-top:15px}.MobileContainer{flex-wrap:nowrap;flex-direction:column;align-items:initial}.MobileContainer .Cells.RowContent{display:flex;flex-direction:column;width:100%}.row-70-center{margin:auto;width:70%}.Cells.RowContent{display:flex;flex-direction:row;width:100%}.BackButtonCell .TopButtons{display:inline-flex;flex-direction:column;font-size:10px}.BackButtonCell .BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButtonCell .BackButton .ButtonText{font-size:24px}.DurationCell .Remaining{text-align:center}.TitleCell .Title{font-size:18px;padding-bottom:10px}.SeeGamesLine .GamesAnchor{text-decoration:underline}.JoinButtonCell{display:flex;justify-content:center;gap:5px;flex-direction:column;align-items:center}.JoinButtonCell .ErrorText{color:red}.JoinButtonCell .spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}.JoinButtonCell .spinner .circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}.Tag{position:absolute;top:15px;font-size:12px}.ThumbnailCell{position:relative}.ThumbnailCell .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.ThumbnailCell .CardImg.CardImgFinished{filter:grayscale(1)}.DetailInfo{display:flex;flex-direction:column;padding:8px;min-height:200px;border-radius:8px}.DetailInfo .TitleTextCell{font-size:19px}.PrizesCell .PrizeRank{display:flex;padding-right:3px}.PrizesCell .Prize .PrizeText{display:flex}.ScoreCriteriaCell{font-size:11px}.TournamentDuration .TournamentDates{display:flex;justify-content:space-between}.TournamentDuration .StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.TournamentDuration .EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.TournamentDuration .ProgressBar{height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.TournamentDuration .ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentDuration .ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.TournamentDuration .TournamentPrizesIconSection{display:inline-flex}.TournamentDuration .ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.TournamentDuration .ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.TournamentDuration .Remaining,.TournamentDuration .Finished{text-align:right;text-transform:uppercase}.TournamentDuration .Finished{color:var(--emfe-w-color-green, #48952a)}.GamesCell .TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center;align-items:center}.GamesCell .SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;cursor:pointer}.GamesCell .SliderNavButton.disabled{color:var(--emfe-w-color-gray-150, #828282)}.GamesCell .main{width:calc(100% - 50px);overflow:hidden}.GamesCell .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.GamesCell .item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.GamesCell .item .GameThumbnail{height:100%}.GamesCell .PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesCell .itemHover{opacity:1}.GamesCell .items .item:first-child{margin-left:0}.GamesCell .items .item:last-child{margin-right:0}.TitleTextCell .Title,.DescriptionCell .Title{text-transform:uppercase}.TitleTextCell .DetailsCard,.DescriptionCell .DetailsCard{line-height:18px;border:1px solid var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.TitleTextCell .DetailsTitle,.DescriptionCell .DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-color-contrast, #07072A)}.TitleTextCell .DetailsContent,.DescriptionCell .DetailsContent{overflow:auto;height:150px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.TitleTextCell .sc::-webkit-scrollbar,.DescriptionCell .sc::-webkit-scrollbar{width:5px;height:5px}.TitleTextCell .sc::-webkit-scrollbar-track,.DescriptionCell .sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.TitleTextCell .sc::-webkit-scrollbar-thumb,.DescriptionCell .sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}.LeaderboardCell .LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.LeaderboardCell .Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.LeaderboardCell .TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.LeaderboardCell .TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.LeaderboardCell .TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.LeaderboardCell .TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.LeaderboardCell .TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.LeaderboardCell .TableUser.UnqualifiedRow{border-bottom:0}.LeaderboardCell .TableUserTooltips{display:flex;gap:4px;flex-direction:row;width:100%;padding:10px 0;background:var(--emfe-w-table-currentuser-bg, #533a34);font-size:0.8rem;line-height:1.2}.LeaderboardCell .TooltipsRow{border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-top:0}.LeaderboardCell .TooltipsRow .ExclamationMark{fill:var(--emfe-w-color-exclamation, #fecf00)}.LeaderboardCell .TooltipsRow .LeftTableTd{padding:0 0 10px 0;font-size:12px;color:var(--emfe-w-color-tooltips, #fecf00)}.LeaderboardCell .TableCell{padding:10px;flex:2;text-align:center}.LeaderboardCell .TableRank{flex:1 50px}.LeaderboardCell .TablePlayer{flex:5}.LeaderboardCell .TablePrize{flex:5}.LeaderboardCell .Qualified{color:var(--emfe-w-highlight, #debb05)}.LeaderboardCell .ExclamationMark{vertical-align:text-top;width:14px;height:14px;fill:var(--emfe-w-color-exclamation, #fecf00)}.LeaderboardCell .TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.LeaderboardCell .TournamentsTable{width:100%;display:flex;justify-content:space-between;text-align:center;margin-top:10px}.LeaderboardCell .LeftTable{width:100%;border-collapse:collapse}.LeaderboardCell .RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.LeaderboardCell .RightButton.MobileClass{height:50px}.LeaderboardCell .FirstRow{outline:2px solid #1B9800}.LeaderboardCell .FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.LeaderboardCell .FirstRow .RankCol{position:relative;width:max-content;display:inline}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.LeaderboardCell .Show{display:inline-flex}.LeaderboardCell .Hidden{display:none}.LeaderboardCell .svg.Arrow.Up,.LeaderboardCell .svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite;width:14px;height:14px}.LeaderboardCell .svg.Arrow.Up.Show,.LeaderboardCell .svg.Arrow.Down.Show{display:inline-flex}.LeaderboardCell .svg.Arrow.Up.Hidden,.LeaderboardCell .svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}.LeaderboardCell .TournamentsTable .LeftTable{width:100%;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{padding:0.8rem 1.25rem;height:30px;top:0;color:var(--emfe-w-color-white, #FFFFFF)}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{margin:0;vertical-align:top;text-align:inherit;font-size:11px;max-width:20%}.LeaderboardCell .TournamentsTable .LeftTable .PrizeIcon{vertical-align:middle}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd:first-child{left:0;top:auto;width:10rem}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}.LeaderboardCell .flex{display:flex;align-items:center}.LeaderboardCell .CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}.layout-default.MobileContainer .Cells.LeftSection{width:auto}.layout-default .Cells{line-height:18px}.layout-default .Cells.LeftSection{margin:10px;width:29%;border:solid 1px #30313c}.layout-default .BackButtonCell{width:100%}.layout-default .RightSection{flex:auto}.layout-default .Cells.ThumbnailCell{margin:0px}.layout-default .DetailInfo{padding:12px;height:auto}.layout-default .Tag{top:20px;min-height:30px}.layout-default .Tag .TagContent{padding:7px 10px;text-transform:uppercase;font-size:12px;background:var(--emfe-w-color-black, #000000)}.layout-default .SeeGamesLine .GamesAnchor{color:var(--emfe-w-color-green, #48952a)}.layout-default .StatusTag{right:20px}.layout-default .UserEnrollTag{left:15px}.layout-default .UserEnrollTag .Enrolled{color:var(--emfe-w-color-gray-150, #828282)}.layout-default .TournamentDuration{font-size:10px}.layout-default .StartDateCell .Date{text-transform:uppercase}.layout-default .PrizesCell{padding:10px 0px 0px}.layout-default .PrizesCell .TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.layout-default .PrizesCell .PrizesTitle{padding-top:5px}.layout-default .PrizesCell .Prizes,.layout-default .PrizesCell .ColPrizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:10px;width:auto;min-height:50px;padding-top:8px}.layout-default .PrizesCell .Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.layout-default .PrizesCell .Prize .PrizeText{color:var(--emfe-w-color-white, #FFFFFF)}.layout-default .Prize0 .PrizeRank,.layout-default .Prize1 .PrizeRank,.layout-default .Prize2 .PrizeRank{color:#FECF00}.layout-default .ScoreCriteriaCell .ScoreCriteria{font-size:12px}.layout-default .DurationCell{margin-bottom:25px;margin-top:0px}.layout-default .JoinButtonCell{margin-bottom:20px}.layout-default .JoinButtonCell .TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0px;width:100%}.layout-default .JoinButtonCell .LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.layout-default .JoinButtonCell .LoginButton:hover{opacity:0.7}.layout-default .JoinButtonCell .RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .RegisterButton:hover{opacity:0.7}.layout-default .JoinButtonCell .DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .DetailsButton:hover{opacity:0.7}.layout-default .JoinButtonCell .DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.layout-default .JoinButtonCell .DetailsLargeButton:hover{opacity:0.7}.layout-default .JoinButtonCell .EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.layout-default .JoinButtonCell .JoinButton{background:var(--emfe-w-color-green, #48952a);width:100%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.layout-default .JoinButtonCell .JoinButton:hover{opacity:0.7}.layout-default .JoinButtonCell .JoinButton:disabled{cursor:default;opacity:0.7}.layout-default .JoinButtonCell .JoinButtonFullSize{width:100%}.layout-default .JoinButtonCell .ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.layout-default .LeaderboardCell .Qualified{color:var(--emfe-w-highlight, #debb05)}.layout-default .LeaderboardCell .TournamentsTable .LeftTableTh{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{border-bottom:0px none}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{color:var(--emfe-w-color-white, #FFFFFF)}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{margin:0;padding:0.95rem;vertical-align:top;text-align:inherit;font-size:11px;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.layout-default .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}.layout-wm{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column}.layout-wm.MobileContainer .Cells.RowContent{flex-direction:column;width:100%}.layout-wm.MobileContainer .StartDateCell{left:35%}.layout-wm.MobileContainer .PrizesCell .Prizes{margin-bottom:8px}.layout-wm.MobileContainer .PrizesCell .Prizes .ColPrizes{margin:0px}.layout-wm.MobileContainer .TitleCell .Title{padding:10px}.layout-wm.MobileContainer .TournamentDuration .TournamentDates{margin-left:0px;margin-right:0px}.layout-wm.MobileContainer .PrizesCell .Prizes{flex-direction:column;gap:0px}.layout-wm .Cells{line-height:18px}.layout-wm .Cells.RowContent{flex-direction:row;width:100%}.layout-wm .DetailInfo{flex:1;height:200px;background-color:var(--emfe-w-color-bg, #153A5C);border-radius:8px;text-align:center}.layout-wm .DetailInfo .TitleTextCell{font-size:19px}.layout-wm .ThumbnailCell{position:relative;flex:1}.layout-wm .ThumbnailCell .Thumbnail{padding:8px}.layout-wm .ThumbnailCell .CardImg{border-radius:5px;height:180px;padding:10px 0px}.layout-wm .Tag .TagContent{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:7px}.layout-wm .StartDateCell{left:45%}.layout-wm .StartDateCell .Date{color:#1A2C38;background:#FF7500}.layout-wm .StartDateCell .Date .CalendarIcon{width:10px}.layout-wm .UserEnrollTag{right:15px}.layout-wm .UserEnrollTag .Enrolled{background:#24834B}.layout-wm .StatusTag{left:15px}.layout-wm .StatusTag .Status{background:#D0046C}.layout-wm .TournamentDuration .TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.layout-wm .TournamentDuration .ProgressBarWrapper{height:20px}.layout-wm .TournamentDuration .StartDate{font-size:11px;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:3px}.layout-wm .TournamentDuration .ProgressBarFill{height:6px;background:var(--emfe-w-color-green, #0072ED);border-radius:3px}.layout-wm .TournamentDuration .ProgressBar{margin:5px 20px;border-radius:3px;background-color:#0A1B2D;height:6px}.layout-wm .TournamentDuration .TournamentPrizesIconSection{display:inline-flex}.layout-wm .TournamentDuration .ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px;border-radius:3px}.layout-wm .TournamentDuration .ProgressBarFillStarting{background-color:var(--emfe-w-color-white, #FFFFFF);height:8px}.layout-wm .TournamentDuration .PrizesCell{margin-top:10px}.layout-wm .TournamentDuration .PrizesCell .TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.layout-wm .TournamentDuration .PrizesCell .TournamentPrizes{display:block;text-align:center}.layout-wm .TournamentDuration .PrizesCell .PrizesTitle{padding-top:8px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes{background-color:var(--emfe-w-color-bg, #153A5C);margin:5px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .Prize{flex-grow:1;border-bottom:1px solid rgba(206, 210, 214, 0.15);margin:2px;padding:4px}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .PrizeText{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.layout-wm .TournamentDuration .PrizesCell .ColPrizes .PrizeRank{line-height:18px}.layout-wm .TournamentDuration .PrizesCell .Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.layout-wm .TournamentDuration .PrizesCell .PrizeText{border-radius:2px;padding:2px}.layout-wm .TournamentDuration .PrizesCell .Prize{flex-grow:1;color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .TournamentDuration .Remaining,.layout-wm .TournamentDuration .Finished{font-size:10px;text-align:right;text-transform:uppercase}.layout-wm .TournamentDuration .Finished{color:var(--emfe-w-color-green, #48952a)}.layout-wm .ScoreCriteriaCell .ScoreCriteria{color:greenyellow}.layout-wm .TitleCell .Title{font-weight:bold;padding:15px}.layout-wm .SeeGamesLine .GamesAnchor{color:#fff}.layout-wm .PrizesCell{margin-top:10px;margin-top:10px;display:flex;width:100%;flex:1}.layout-wm .PrizesCell .TournamentPrizes{font-size:11px;width:100%}.layout-wm .PrizesCell .TournamentPrizes .TournamentPrizesIconSection{display:flex;justify-content:center;flex-direction:column;align-items:center}.layout-wm .PrizesCell .Prizes{justify-content:space-between;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px;flex-wrap:nowrap}.layout-wm .PrizesCell .Prizes .ColPrizes{flex:1;background-color:var(--emfe-w-color-bg, #153A5C);margin:5px}.layout-wm .PrizesCell .Prizes .ColPrizes .Prize{border-bottom:1px solid rgba(206, 210, 214, 0.15);margin:2px;padding:4px}.layout-wm .PrizesCell .Prizes .ColPrizes .Prize{color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeText{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeText{border-radius:2px;padding:2px}.layout-wm .PrizesCell .Prizes .ColPrizes .PrizeRank{line-height:18px}.layout-wm .PrizesCell .Prizes .Prize0 .PrizeText{background-color:var(--emfe-rank-1-color, #7E6C22)}.layout-wm .PrizesCell .Prizes .Prize1 .PrizeText{background-color:var(--emfe-rank-1-color, #666666)}.layout-wm .PrizesCell .Prizes .Prize2 .PrizeText{background-color:var(--emfe-rank-1-color, #6A5446)}.layout-wm .JoinButtonCell{margin:7px 0px}.layout-wm .JoinButtonCell .JoinButtonSvg{display:none}.layout-wm .JoinButtonCell .spinner .circle{stroke:var(--emfe-w-color-contrast, #d5d5e4)}.layout-wm .JoinButtonCell .LoginButton,.layout-wm .JoinButtonCell .RegisterButton,.layout-wm .JoinButtonCell .JoinButton{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;width:104px;height:36px;background:#0072ED;border-radius:3px;border:0px none;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.layout-wm .JoinButtonCell .LoginButton .JoinButtonSvg,.layout-wm .JoinButtonCell .RegisterButton .JoinButtonSvg,.layout-wm .JoinButtonCell .JoinButton .JoinButtonSvg{width:15px;height:15px;margin-left:10px}.layout-wm .DescriptionAndTermConditions{flex:1}.layout-wm .LeaderboardCell{flex:1}.layout-wm .LeaderboardCell .TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.layout-wm .LeaderboardCell .FirstRow{outline:2px solid #1B9800}.layout-wm .LeaderboardCell .FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.layout-wm .LeaderboardCell .FirstRow .RankCol{position:relative;width:max-content;display:inline}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.layout-wm .LeaderboardCell .FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{background-color:var(--emfe-w-color-bg, #153A5C);border-bottom:12px solid var(--emfe-w-color-black, #000000)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh{border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);color:var(--emfe-w-color-white, #FFFFFF)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTbody{background-color:var(--emfe-w-color-bg, #153A5C)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd{color:var(--emfe-w-color-white, #FFFFFF);border-bottom:1px solid rgba(206, 210, 214, 0.15)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .CellContent{margin:5px 0;vertical-align:middle;line-height:22px}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .PrizeIcon{vertical-align:middle}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank1Tr .CellContent{background:var(--emfe-rank-1-color, #7E6C22)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank2Tr .CellContent{background:var(--emfe-rank-2-color, #666666)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .Rank3Tr .CellContent{background:var(--emfe-rank-3-color, #6A5446)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .FirstRow .CellContent{background:var(--emfe-rank-user-color, #12753A)}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTd:first-child{left:0;top:auto;width:10rem}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableThead{border:8px solid #153A5C;border-bottom:10px solid #000}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTbody{border:8px solid #153A5C;border-top:10px solid #000}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_0{width:10%}.layout-wm .LeaderboardCell .TournamentsTable .LeftTable .LeftTableTh_1{width:15%}</style>',re(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},os,is,a,{layoutid:0,session:8,userid:9,tourid:10,endpoint:11,cmsendpoint:12,lang:13,navigationbackbutton:14,currency:15,tablelimit:16,namemask:17,showunqualifiedplayer:18,mobiletablelimit:19,updatetableintime:20,viewmode:21,minscore:22,scorefractiondigit:23,loginevent:24,registerevent:25,loginurl:26,registerurl:27,limit:28,offset:29,leaderboardoffset:30,leaderboardlimit:31,keepbrowsercontext:32,showrankasimage:33},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["layoutid","session","userid","tourid","endpoint","cmsendpoint","lang","navigationbackbutton","currency","tablelimit","namemask","showunqualifiedplayer","mobiletablelimit","updatetableintime","viewmode","minscore","scorefractiondigit","loginevent","registerevent","loginurl","registerurl","limit","offset","leaderboardoffset","leaderboardlimit","keepbrowsercontext","showrankasimage"]}get layoutid(){return this.$$.ctx[0]}set layoutid(e){this.$$set({layoutid:e}),U()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),U()}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),U()}get tourid(){return this.$$.ctx[10]}set tourid(e){this.$$set({tourid:e}),U()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),U()}get cmsendpoint(){return this.$$.ctx[12]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),U()}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),U()}get navigationbackbutton(){return this.$$.ctx[14]}set navigationbackbutton(e){this.$$set({navigationbackbutton:e}),U()}get currency(){return this.$$.ctx[15]}set currency(e){this.$$set({currency:e}),U()}get tablelimit(){return this.$$.ctx[16]}set tablelimit(e){this.$$set({tablelimit:e}),U()}get namemask(){return this.$$.ctx[17]}set namemask(e){this.$$set({namemask:e}),U()}get showunqualifiedplayer(){return this.$$.ctx[18]}set showunqualifiedplayer(e){this.$$set({showunqualifiedplayer:e}),U()}get mobiletablelimit(){return this.$$.ctx[19]}set mobiletablelimit(e){this.$$set({mobiletablelimit:e}),U()}get updatetableintime(){return this.$$.ctx[20]}set updatetableintime(e){this.$$set({updatetableintime:e}),U()}get viewmode(){return this.$$.ctx[21]}set viewmode(e){this.$$set({viewmode:e}),U()}get minscore(){return this.$$.ctx[22]}set minscore(e){this.$$set({minscore:e}),U()}get scorefractiondigit(){return this.$$.ctx[23]}set scorefractiondigit(e){this.$$set({scorefractiondigit:e}),U()}get loginevent(){return this.$$.ctx[24]}set loginevent(e){this.$$set({loginevent:e}),U()}get registerevent(){return this.$$.ctx[25]}set registerevent(e){this.$$set({registerevent:e}),U()}get loginurl(){return this.$$.ctx[26]}set loginurl(e){this.$$set({loginurl:e}),U()}get registerurl(){return this.$$.ctx[27]}set registerurl(e){this.$$set({registerurl:e}),U()}get limit(){return this.$$.ctx[28]}set limit(e){this.$$set({limit:e}),U()}get offset(){return this.$$.ctx[29]}set offset(e){this.$$set({offset:e}),U()}get leaderboardoffset(){return this.$$.ctx[30]}set leaderboardoffset(e){this.$$set({leaderboardoffset:e}),U()}get leaderboardlimit(){return this.$$.ctx[31]}set leaderboardlimit(e){this.$$set({leaderboardlimit:e}),U()}get keepbrowsercontext(){return this.$$.ctx[32]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),U()}get showrankasimage(){return this.$$.ctx[33]}set showrankasimage(e){this.$$set({showrankasimage:e}),U()}}return!customElements.get("casino-tournaments-customize-page-controller")&&customElements.define("casino-tournaments-customize-page-controller",as),as}));
1618
+ //# sourceMappingURL=casino-tournaments-customize-page-controller.js.map