@everymatrix/casino-tournaments-thumbnail 1.35.0 → 1.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
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 B(e){return e()}function C(){return Object.create(null)}function P(e){e.forEach(B)}function m(e){return"function"==typeof e}function D(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function U(e,...t){if(null==e)return E;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function L(e){return e&&m(e.destroy)?e.destroy:E}function I(e,t){e.appendChild(t)}function N(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function R(e){return document.createTextNode(e)}function e(){return R(" ")}function O(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function w(e,t){e.data!==(t=""+t)&&(e.data=t)}function G(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}let k;function p(e){k=e}const f=[],x=[];let o=[];const F=[],j=Promise.resolve();let V=!1;function J(e){o.push(e)}const z=new Set;let i=0;function d(){if(0===i){const n=k;do{try{for(;i<f.length;){const n=f[i];i++,p(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),P(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(J))}}catch(n){throw f.length=0,i=0,n}for(p(null),f.length=0,i=0;x.length;)x.pop()();for(let e=0;e<o.length;e+=1){var r=o[e];z.has(r)||(z.add(r),r())}}while(o.length=0,f.length);for(;F.length;)F.pop()();V=!1,z.clear(),p(n)}}const K=new Set;function X(n,e,t,r,i,o,a,s=[-1]){var u=k;p(n);const l=n.$$={fragment:null,ctx:[],props:o,update:E,not_equal:i,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:C(),dirty:s,skip_bound:!1,root:e.target||u.$$.root};a&&a(l.root);let h=!1;if(l.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return l.ctx&&i(l.ctx[e],l.ctx[e]=r)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](r),h)&&(r=e,-1===(e=n).$$.dirty[0]&&(f.push(e),V||(V=!0,j.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],l.update(),h=!0,P(l.before_update),l.fragment=!!r&&r(l.ctx),e.target){if(e.hydrate){o=e.target;const E=Array.from(o.childNodes);l.fragment&&l.fragment.l(E),E.forEach(M)}else l.fragment&&l.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(K.delete(s),s.i(void 0));var c=n,a=e.target,t=e.anchor,r=e.customElement,{fragment:o,after_update:s}=c.$$;o&&o.m(a,t),r||J(()=>{var e=c.$$.on_mount.map(B).filter(m);c.$$.on_destroy?c.$$.on_destroy.push(...e):P(e),c.$$.on_mount=[]}),s.forEach(J),d()}p(u)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(B).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const n=[],i=[];o.forEach(e=>(-1===r.indexOf(e)?n:i).push(e)),i.forEach(e=>e()),o=n}P(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=E}$on(e,t){if(!m(t))return E;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const r=[];function Y(n,i=E){let o;const a=new Set;function s(e){if(D(n,e)&&(n=e,o)){const e=!r.length;for(const e of a)e[1](),r.push(e,n);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=E){const r=[e,t];return a.add(r),1===a.size&&(o=i(s)||E),e(n),()=>{a.delete(r),0===a.size&&o&&(o(),o=null)}}}}function n(e,s,t){const u=!Array.isArray(e),l=u?[e]:e,h=s.length<2;return{subscribe:Y(t,t=>{let r=!1;const n=[];let i=0,o=E;const a=()=>{var e;i||(o(),e=s(u?n[0]:n,t),h?t(e):o=m(e)?e:E)},e=l.map((e,t)=>U(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){P(e),o(),r=!1}}).subscribe}}function Z(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===q);var t}var q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ne(Array.isArray(e)?[]:{},e,t):e}function Q(e,t,r){return e.concat(t).map(function(e){return s(e,r)})}function ee(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function te(e,t){try{return t in e}catch(e){return!1}}function re(n,i,o){var a={};return o.isMergeableObject(n)&&ee(n).forEach(function(e){a[e]=s(n[e],o)}),ee(i).forEach(function(e){var t,r;(!te(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(te(n,e)&&o.isMergeableObject(i[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:ne)(n[e],i[e],o):a[e]=s(i[e],o))}),a}function ne(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Q,r.isMergeableObject=r.isMergeableObject||Z,r.cloneUnlessOtherwiseSpecified=s;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):re(e,t,r):s(t,r)}ne.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return ne(e,t,r)},{});throw new Error("first argument should be an array")};var ie=ne,oe=function(e,t){return(oe=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])}))(e,t)};function ae(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}oe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var g,b,y,T=function(){return(T=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}).apply(this,arguments)};function se(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))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function ue(e){return e.type===b.literal}function le(e){return e.type===b.number}function he(e){return e.type===b.date}function ce(e){return e.type===b.time}function me(e){return e.type===b.select}function pe(e){return e.type===b.plural}function fe(e){return e.type===b.tag}function de(e){return e&&"object"==typeof e&&e.type===y.number}function ge(e){return e&&"object"==typeof e&&e.type===y.dateTime}(a=g=g||{})[a.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",a[a.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",a[a.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",a[a.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",a[a.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",a[a.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",a[a.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",a[a.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",a[a.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",a[a.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",a[a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",a[a.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",a[a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",a[a.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",a[a.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",a[a.INVALID_TAG=23]="INVALID_TAG",a[a.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",a[a.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",a[a.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=b=b||{})[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(a=y=y||{})[a.number=0]="number",a[a.dateTime=1]="dateTime";var a=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,be=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Ae=/^(0+)$/;function Se(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Te,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function He(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 _e(e){return He(e)||{}}function Be(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=T(T(T({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return T(T({},e),_e(t))},{}));continue;case"engineering":a=T(T(T({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return T(T({},e),_e(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ve,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ae.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(Ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ee,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?a=T(T({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=T(T({},a),Se(o)))}else Te.test(i.stem)?a=T(T({},a),Se(i.stem)):((o=He(i.stem))&&(a=T(T({},a),o)),(n=function(e){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)),!Ae.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=T(T({},a),n)))}return a}var Ce={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"]};var Pe=new RegExp("^".concat(a.source,"*")),Le=new RegExp("".concat(a.source,"*$"));function v(e,t){return{start:e,end:t}}var a=!!String.prototype.startsWith,Ie=!!String.fromCodePoint,Ne=!!Object.fromEntries,Me=!!String.prototype.codePointAt,Re=!!String.prototype.trimStart,Oe=!!String.prototype.trimEnd,we=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{ke="a"===(null==(rt=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:rt[0])}catch(E){ke=!1}var $e,De,Ue=a?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ge=Ie?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))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},xe=Ne?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Fe=Me?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},je=Re?function(e){return e.trimStart()}:function(e){return e.replace(Pe,"")},Ve=Oe?function(e){return e.trimEnd()}:function(e){return e.replace(Le,"")};function Je(e,t){return new RegExp(e,t)}De=ke?($e=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return $e.lastIndex=t,null!=(t=$e.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=Fe(e,t);if(void 0===i||Xe(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;n.push(i),t+=65536<=i?2:1}return Ge.apply(void 0,n)};u.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},u.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(g.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ke(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},u.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:v(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Ke(this.char())?this.error(g.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(g.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:v(n,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,v(e,this.clonePosition())))):this.error(g.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(g.INVALID_TAG,v(n,this.clonePosition()))},u.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},u.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},u.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},u.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ge.apply(void 0,t)},u.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ge(r))},u.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(g.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(g.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(g.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},u.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=De(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},u.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(m=Ve(c.val)).length)return this.error(g.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));u={style:m,styleLocation:v(l,this.clonePosition())}}return(l=this.tryParseArgumentClose(n)).err?l:(p=v(n,this.clonePosition()),u&&Ue(null==u?void 0:u.style,"::",0)?(f=je(u.style.slice(2)),"number"===a?(c=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?c:{val:{type:b.number,value:r,location:p,style:c.val},err:null}:0===f.length?this.error(g.EXPECT_DATE_TIME_SKELETON,p):(h=f,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),u=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Ce[t||""]||Ce[r||""]||Ce["".concat(r,"-001")]||Ce["001"])[0]}(t);for("H"!=u&&"k"!=u||(s=0);0<s--;)r+="a";for(;0<a--;)r=u+r}else r+="J"===i?"H":i}return r}(f,this.locale)),m={type:y.dateTime,pattern:h,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},h.replace(be,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}},{val:{type:"date"===a?b.date:b.time,value:r,location:p,style:m},err:null})):{val:{type:"number"===a?b.number:"date"===a?b.date:b.time,value:r,location:p,style:null!=(f=null==u?void 0:u.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,v(h,T({},h)));this.bumpSpace();var c,m=this.parseIdentifierIfPossible(),p=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),m=this.parseIdentifierIfPossible(),p=c.val}var f,u=this.tryParsePluralOrSelectOptions(e,a,t,m);return u.err?u:(l=this.tryParseArgumentClose(n)).err?l:(f=v(n,this.clonePosition()),"select"===a?{val:{type:b.select,value:r,options:xe(u.val),location:f},err:null}:{val:{type:b.plural,value:r,options:xe(u.val),offset:p,pluralType:"plural"===a?"cardinal":"ordinal",location:f},err:null});default:return this.error(g.INVALID_ARGUMENT_TYPE,v(o,s))}},u.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},u.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},u.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(ye).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(g.INVALID_NUMBER_SKELETON,t)}return{val:{type:y.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Be(r):{}},err:null}},u.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],a=new Set,s=n.value,u=n.location;;){if(0===s.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=v(l,this.clonePosition()),s=this.message.slice(l.offset,this.offset())}if(a.has(s))return this.error("select"===t?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===s&&(i=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,r);if(l.err)return l;var c=this.tryParseArgumentClose(h);if(c.err)return c;o.push([s,{value:l.val,location:v(h,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(c=this.parseIdentifierIfPossible()).value,u=c.location}return 0===o.length?this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(g.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},u.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(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=v(n,this.clonePosition());return i?we(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},u.prototype.offset=function(){return this.position.offset},u.prototype.isEOF=function(){return this.offset()===this.message.length},u.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},u.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Fe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},u.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},u.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},u.prototype.bumpIf=function(e){if(Ue(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},u.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},u.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(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},u.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xe(this.char());)this.bump()},u.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var ze=u;function u(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}function Ke(e){return 97<=e&&e<=122||65<=e&&e<=90}function Xe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function We(e,t){t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new ze(e,t).parse();if(e.err)throw(r=SyntaxError(g[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,me(e)||pe(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else le(e)&&de(e.style)||(he(e)||ce(e))&&ge(e.style)?delete e.style.location:fe(e)&&r(e.children)})}(e.val),e.val}function Ye(e,t){var r=t&&t.cache?t.cache:nt,n=t&&t.serializer?t.serializer:et;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?Ze:qe,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ze(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function qe(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Qe(e,t,r,n,i){return r.bind(t,e,n,i)}var et=function(){return JSON.stringify(arguments)};function tt(){this.cache=Object.create(null)}tt.prototype.get=function(e){return this.cache[e]},tt.prototype.set=function(e,t){this.cache[e]=t};var A,rt,nt={create:function(){return new tt}},it={variadic:function(e,t){return Qe(e,this,qe,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(e,this,Ze,t.cache.create(),t.serializer)}};(rt=A=A||{}).MISSING_VALUE="MISSING_VALUE",rt.INVALID_VALUE="INVALID_VALUE",rt.MISSING_INTL_API="MISSING_INTL_API";ae(gt,ut=Error),gt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var S,ot,at,st,ut,lt=gt,ht=(ae(dt,st=lt),dt),ct=(ae(ft,at=lt),ft),mt=(ae(pt,ot=lt),pt);function pt(e,t){return ot.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),A.MISSING_VALUE,t)||this}function ft(e,t,r){return at.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),A.INVALID_VALUE,r)||this}function dt(e,t,r,n){return st.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),A.INVALID_VALUE,n)||this}function gt(e,t,r){e=ut.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function bt(e,t,r,n,i,o,a){if(1===e.length&&ue(e[0]))return[{type:S.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var h=l[u];if(ue(h))s.push({type:S.literal,value:h.value});else if(h.type===b.pound)"number"==typeof o&&s.push({type:S.literal,value:r.getNumberFormat(t).format(o)});else{var c=h.value;if(!(i&&c in i))throw new mt(c,a);c=i[c];if(h.type===b.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),s.push({type:"string"==typeof c?S.literal:S.object,value:c});else if(he(h)){var m="string"==typeof h.style?n.date[h.style]:ge(h.style)?h.style.parsedOptions:void 0;s.push({type:S.literal,value:r.getDateTimeFormat(t,m).format(c)})}else if(ce(h))m="string"==typeof h.style?n.time[h.style]:ge(h.style)?h.style.parsedOptions:n.time.medium,s.push({type:S.literal,value:r.getDateTimeFormat(t,m).format(c)});else if(le(h))(m="string"==typeof h.style?n.number[h.style]:de(h.style)?h.style.parsedOptions:void 0)&&m.scale&&(c*=m.scale||1),s.push({type:S.literal,value:r.getNumberFormat(t,m).format(c)});else{if(fe(h)){var p=h.children,f=h.value,d=i[f];if("function"!=typeof d)throw new ct(f,"function",a);f=d(bt(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?S.literal:S.object,value:e}}))}if(me(h)){if(!(g=h.options[c]||h.options.other))throw new ht(h.value,c,Object.keys(h.options),a);s.push.apply(s,bt(g.value,t,r,n,i))}else if(pe(h)){if(!(g=h.options["=".concat(c)])){if(!Intl.PluralRules)throw new lt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',A.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0)),g=h.options[d]||h.options.other}if(!g)throw new ht(h.value,c,Object.keys(h.options),a);s.push.apply(s,bt(g.value,t,r,n,i,c-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===S.literal&&t.type===S.literal?r.value+=t.value:e.push(t),e},[])}function yt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(a=S=S||{})[a.literal=0]="literal",a[a.object=1]="object";Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},l.__parse=We,l.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"}}};var Et=l;function l(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===S.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return bt(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},this.locales=t,this.resolvedLocale=l.resolveLocale(t),"string"==typeof e){if(this.message=e,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=l.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?T(T(T({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=T(T({},r[t]),n[t]||{}),e},{})):r),e},T({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,se([void 0],t,!1)))},{cache:yt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:it.variadic}),getDateTimeFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,se([void 0],t,!1)))},{cache:yt(t.dateTime),strategy:it.variadic}),getPluralRules:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,se([void 0],t,!1)))},{cache:yt(t.pluralRules),strategy:it.variadic})}}const h={},Tt=(e,t,r)=>r&&(t in h||(h[t]={}),e in h[t]||(h[t][e]=r),r),vt=(t,r)=>{if(null!=r){if(r in h&&t in h[r])return h[r][t];var n=Gt(r);for(let e=0;e<n.length;e++){var i=function(e,t){if(!Ht(e))return null;e=function(e){return At[e]||null}(e);{var r=t;if(null!=r){if(r in e)return e[r];var n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}}(n[e],t);if(i)return Tt(t,r,i)}}};let At;const St=Y({});function Ht(e){return e in At}function _t(t,...r){delete h[t],St.update(e=>(e[t]=ie.all([e[t]||{},...r]),e))}n([St],([e])=>Object.keys(e)),St.subscribe(e=>At=e);const Bt={};function Ct(e){return Bt[e]}function Pt(e){return null!=e&&Gt(e).some(e=>{return null==(e=Ct(e))?void 0:e.size})}function Lt(n,e){return Promise.all(e.map(e=>{return t=n,r=e,Bt[t].delete(r),0===Bt[t].size&&delete Bt[t],e().then(e=>e.default||e);var t,r})).then(e=>_t(n,...e))}const It={};const c={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};const Nt=Y(!1);var Mt=Object.defineProperty,Ie=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,kt=(e,t,r)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let $t;const Dt=Y(null);function Ut(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Gt(e,t=c.fallbackLocale){e=Ut(e);return t?[...new Set([...e,...Ut(t)])]:e}function H(){return null!=$t?$t:void 0}Dt.subscribe(e=>{$t=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const $=Ie(((e,t)=>{for(var r in t=t||{})Ot.call(t,r)&&kt(e,r,t[r]);if(Rt)for(var r of Rt(t))wt.call(t,r)&&kt(e,r,t[r]);return e})({},Dt),Ne({set:t=>{if(t&&function(e){if(null!=e){var t=Gt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Ht(r))return r}}}(t)&&Pt(t)){var r=c["loadingDelay"];let e;return"undefined"!=typeof window&&null!=H()&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),function e(t){var r;return Pt(t)?(r=Gt(t).map(e=>{var t=Ct(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),It[t]=Promise.all(r.map(([e,t])=>Lt(e,t))).then(()=>{if(Pt(t))return e(t);delete It[t]}),It[t]):t in It?It[t]:Promise.resolve()}(t).then(()=>{Dt.set(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Dt.set(t)}}));var Me=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},xt=Object.defineProperty,Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Jt=(e,t,r)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zt=(e,t)=>{for(var r in t=t||{})jt.call(t,r)&&Jt(e,r,t[r]);if(Ft)for(var r of Ft(t))Vt.call(t,r)&&Jt(e,r,t[r]);return e},_=(e,t)=>{var r={};for(n in e)jt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ft)for(var n of Ft(e))t.indexOf(n)<0&&Vt.call(e,n)&&(r[n]=e[n]);return r};const Kt=(e,t)=>{var r=c["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Xt=Me(e=>{var{locale:t,format:r}=e,e=_(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kt("number",r)),new Intl.NumberFormat(t,e)}),Wt=Me(e=>{var{locale:t,format:r}=e,e=_(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kt("date",r):0===Object.keys(e).length&&(e=Kt("date","short")),new Intl.DateTimeFormat(t,e)}),Yt=Me(e=>{var{locale:t,format:r}=e,e=_(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kt("time",r):0===Object.keys(e).length&&(e=Kt("time","short")),new Intl.DateTimeFormat(t,e)}),Zt=Me((e,t=H())=>new Et(e,t,c.formats,{ignoreTag:c.ignoreTag})),qt=n([$,St],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:a=H(),default:s}=i;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=vt(e,a);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(n=null!=(r=null==(r=(n=c).handleMissingMessage)?void 0:r.call(n,{locale:a,id:e,defaultValue:s}))?r:s)?n:e;if(!o)return u;let l=u;try{l=Zt(u,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return l});function Qt(e,t){_t(e,t)}n([$],()=>(e,t)=>((e={})=>{var{locale:t=H()}=e,e=_(e,["locale"]);return Yt(zt({locale:t},e))})(t).format(e)),n([$],()=>(e,t)=>((e={})=>{var{locale:t=H()}=e,e=_(e,["locale"]);return Wt(zt({locale:t},e))})(t).format(e)),n([$],()=>(e,t)=>((e={})=>{var{locale:t=H()}=e,e=_(e,["locale"]);return Xt(zt({locale:t},e))})(t).format(e)),n([$,St],()=>(e,t=H())=>vt(e,t));const er={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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",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",stake:"Turnover",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 curs",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ă",stake:"Turnover",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ı",stake:"Turnover",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:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"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",stake:"Turnover",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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function tr(r){let n,i,o,a,s,u;return{c(){n=t("div"),i=R(r[13]),O(n,"class",o="Status "+r[15]),O(n,"part",a="Status "+r[15])},m(e,t){N(e,n,t),I(n,i),s||(u=L(r[18].call(null,n)),s=!0)},p(e,t){8192&t[0]&&w(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&O(n,"class",o),32768&t[0]&&a!==(a="Status "+e[15])&&O(n,"part",a)},d(e){e&&M(n),s=!1,u()}}}function rr(e){let r,n=e[5]&&nr(e);return{c(){n&&n.c(),r=R("")},m(e,t){n&&n.m(e,t),N(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=nr(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&M(r)}}}function nr(e){let r,n,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=t("div"),n=R(i),O(r,"class","Enrolled"),O(r,"part","Enrolled")},m(e,t){N(e,r,t),I(r,n)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&w(n,i)},d(e){e&&M(r)}}}function ir(r){let n,i,o,a,s;return{c(){O(n=t("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),O(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),G(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){N(e,n,t),a||(s=L(r[18].call(null,n)),a=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&O(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&O(n,"part",o)},d(e){e&&M(n),a=!1,s()}}}function or(r){let n,i,o,a,s;return{c(){O(n=t("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),O(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),G(n,"background-image","url('"+r[4]+"')")},m(e,t){N(e,n,t),a||(s=L(r[18].call(null,n)),a=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&O(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&O(n,"part",o),16&t[0]&&G(n,"background-image","url('"+e[4]+"')")},d(e){e&&M(n),a=!1,s()}}}function ar(r){let n,i,o,a,s;return{c(){n=t("div"),i=R(r[11]),O(n,"class","Date"),O(n,"part","Date")},m(e,t){N(e,n,t),I(n,i),a||(s=L(o=r[17].call(null,n,r[2])),a=!0)},p(e,t){2048&t[0]&&w(i,e[11]),o&&m(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&M(n),a=!1,s()}}}function sr(a){let s,u,l,h,c,m,p,f,d,g,b,y,E,T,v,A,S,H,r,_,B,n=a[16]("tournamentsThumbnail.scoreCriteria")+"",i=a[16]("tournamentsThumbnail.minbet")+"",o=a[16]("tournamentsThumbnail.seegames")+"",C=a[16]("tournamentsThumbnail.here")+"";return{c(){s=t("div"),u=t("p"),l=R(n),h=R(":\n \n "),c=t("span"),m=R(a[14]),p=R("\n ("),f=R(i),d=e(),g=R(a[6]),b=R(")"),y=e(),E=t("div"),T=t("p"),v=R(o),A=e(),S=t("a"),H=R(C),O(c,"part","ScoreCriteriaSpan"),O(u,"part","ScoreCriteriaP"),O(s,"class","ScoreCriteria"),O(s,"part","ScoreCriteria"),O(S,"part","GamesAnchor"),O(S,"href",a[8]),O(S,"target",r="true"===a[9]?"_self":"_blank"),O(T,"part","GamesP"),O(E,"class","Games"),O(E,"part","Games")},m(e,t){var r,n,i,o;N(e,s,t),I(s,u),I(u,l),I(u,h),I(u,c),I(c,m),I(u,p),I(u,f),I(u,d),I(u,g),I(u,b),N(e,y,t),N(e,E,t),I(E,T),I(T,v),I(T,A),I(T,S),I(S,H),_||(B=[L(a[19].call(null,c)),(r=S,n="click",i=a[28],r.addEventListener(n,i,o),()=>r.removeEventListener(n,i,o))],_=!0)},p(e,t){65536&t[0]&&n!==(n=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&w(l,n),16384&t[0]&&w(m,e[14]),65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.minbet")+"")&&w(f,i),64&t[0]&&w(g,e[6]),65536&t[0]&&o!==(o=e[16]("tournamentsThumbnail.seegames")+"")&&w(v,o),65536&t[0]&&C!==(C=e[16]("tournamentsThumbnail.here")+"")&&w(H,C),256&t[0]&&O(S,"href",e[8]),512&t[0]&&r!==(r="true"===e[9]?"_self":"_blank")&&O(S,"target",r)},d(e){e&&M(s),e&&M(y),e&&M(E),_=!1,P(B)}}}function ur(r){let n,i,o,a,s,u,l,h,c,m=r[0]&&tr(r),p="true"==r[7]&&rr(r);function f(e){return e[4]?or:ir}let d=f(r),g=d(r),b=r[2]&&ar(r),y=r[12]&&sr(r);return{c(){n=t("div"),m&&m.c(),i=e(),p&&p.c(),o=e(),g.c(),a=e(),s=t("div"),u=t("div"),l=R(r[1]),h=e(),b&&b.c(),c=e(),y&&y.c(),this.c=E,O(u,"class","Title"),O(u,"part","Title"),O(s,"class","Details"),O(s,"part","Details"),O(n,"class","Thumbnail"),O(n,"part","Thumbnail")},m(e,t){N(e,n,t),m&&m.m(n,null),I(n,i),p&&p.m(n,null),I(n,o),g.m(n,null),I(n,a),I(n,s),I(s,u),I(u,l),I(s,h),b&&b.m(s,null),I(s,c),y&&y.m(s,null),r[29](n)},p(e,t){e[0]?m?m.p(e,t):((m=tr(e)).c(),m.m(n,i)):m&&(m.d(1),m=null),"true"==e[7]?p?p.p(e,t):((p=rr(e)).c(),p.m(n,o)):p&&(p.d(1),p=null),d===(d=f(e))&&g?g.p(e,t):(g.d(1),(g=d(e))&&(g.c(),g.m(n,a))),2&t[0]&&w(l,e[1]),e[2]?b?b.p(e,t):((b=ar(e)).c(),b.m(s,c)):b&&(b.d(1),b=null),e[12]?y?y.p(e,t):((y=sr(e)).c(),y.m(s,null)):y&&(y.d(1),y=null)},i:E,o:E,d(e){e&&M(n),m&&m.d(),p&&p.d(),g.d(),b&&b.d(),y&&y.d(),r[29](null)}}}function lr(t,e,n){let i;var r=qt;t.$$.on_destroy.push(U(r,e=>n(16,i=e)));let o,{session:a=""}=e,{userid:s=""}=e,{title:u=""}=e,{startdate:l=""}=e,{status:h=""}=e,{tourid:c=""}=e,{thumbnail:m=""}=e,{userenrolled:p=""}=e,{scorecriteria:f=""}=e,{minbetcount:d=""}=e,{showenrolled:g="false"}=e,{gameurl:b=""}=e,{lang:y="en"}=e,{keepbrowsercontext:E="false"}=e,{clientstyling:T=""}=e,{clientstylingurl:v=""}=e,{translationurl:A=""}=e,S="",H=!1,_="",B="",C="";Object.keys(er).forEach(e=>{Qt(e,er[e])});const P=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&n(12,H=!0),e.data.type=="TournamentStatus_"+c)&&n(0,h=e.data.status)},L=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});n(11,S=r+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===h?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+e)},I=()=>{"Unstarted"==h&&(n(13,_=i("tournamentsThumbnail.scheduled")),n(15,C="StatusUnstarted")),"Running"==h&&(n(13,_=i("tournamentsThumbnail.ongoing")),n(15,C="StatusRunning")),"Closed"!=h&&"Closing"!=h||n(13,_=i("tournamentsThumbnail.finished")),"Closed"==h&&n(15,C="StatusClosed"),"Closing"==h&&n(15,C="StatusClosing")},N=()=>{"BetCount"==f&&n(14,B=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==f&&n(14,B=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==f&&n(14,B=i("tournamentsThumbnail.winStakeRatio")),"Stake"==f&&n(14,B=i("tournamentsThumbnail.stake"))},M=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};r=()=>(window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P)}),function(){if(k)return k;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r);return t.$$set=e=>{"session"in e&&n(21,a=e.session),"userid"in e&&n(22,s=e.userid),"title"in e&&n(1,u=e.title),"startdate"in e&&n(2,l=e.startdate),"status"in e&&n(0,h=e.status),"tourid"in e&&n(3,c=e.tourid),"thumbnail"in e&&n(4,m=e.thumbnail),"userenrolled"in e&&n(5,p=e.userenrolled),"scorecriteria"in e&&n(23,f=e.scorecriteria),"minbetcount"in e&&n(6,d=e.minbetcount),"showenrolled"in e&&n(7,g=e.showenrolled),"gameurl"in e&&n(8,b=e.gameurl),"lang"in e&&n(24,y=e.lang),"keepbrowsercontext"in e&&n(9,E=e.keepbrowsercontext),"clientstyling"in e&&n(25,T=e.clientstyling),"clientstylingurl"in e&&n(26,v=e.clientstylingurl),"translationurl"in e&&n(27,A=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&o&&T&&((e=document.createElement("style")).innerHTML=T,o.appendChild(e)),67109888&t.$$.dirty[0]&&o&&v){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&A&&fetch(A).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qt(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&a&&(0<a.length&&"false"!=a?n(12,H=!0):n(12,H=!1)),1&t.$$.dirty[0]&&h&&I(),16777218&t.$$.dirty[0]&&y&&u&&(e=y,$.set(e),N(),I(),l)&&L(),4&t.$$.dirty[0]&&l&&L(),8388608&t.$$.dirty[0]&&f&&N()},[h,u,l,c,m,p,d,g,b,E,o,S,H,_,B,C,i,L,I,N,M,a,s,f,y,T,v,A,()=>M(),function(e){x[e?"unshift":"push"](()=>{o=e,n(10,o)})}]}class hr extends W{constructor(e){super();var t=document.createElement("style");t.textContent=':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"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .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}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}',this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},lr,ur,D,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&N(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),d()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),d()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),d()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),d()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),d()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),d()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),d()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),d()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),d()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),d()}}return customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",hr),hr});
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 _(e){return e()}function C(){return Object.create(null)}function P(e){e.forEach(_)}function m(e){return"function"==typeof e}function D(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function U(e,...t){if(null==e)return E;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function L(e){return e&&m(e.destroy)?e.destroy:E}function I(e,t){e.appendChild(t)}function N(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function R(e){return document.createTextNode(e)}function e(){return R(" ")}function w(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function O(e,t){e.data!==(t=""+t)&&(e.data=t)}function G(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}let k;function p(e){k=e}const f=[],x=[];let o=[];const F=[],j=Promise.resolve();let V=!1;function J(e){o.push(e)}const z=new Set;let i=0;function d(){if(0===i){const n=k;do{try{for(;i<f.length;){const n=f[i];i++,p(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),P(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(J))}}catch(n){throw f.length=0,i=0,n}for(p(null),f.length=0,i=0;x.length;)x.pop()();for(let e=0;e<o.length;e+=1){var r=o[e];z.has(r)||(z.add(r),r())}}while(o.length=0,f.length);for(;F.length;)F.pop()();V=!1,z.clear(),p(n)}}const K=new Set;function X(n,e,t,r,i,o,a,s=[-1]){var l=k;p(n);const u=n.$$={fragment:null,ctx:[],props:o,update:E,not_equal:i,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:C(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),h)&&(r=e,-1===(e=n).$$.dirty[0]&&(f.push(e),V||(V=!0,j.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],u.update(),h=!0,P(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){o=e.target;const E=Array.from(o.childNodes);u.fragment&&u.fragment.l(E),E.forEach(M)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(K.delete(s),s.i(void 0));var c=n,a=e.target,t=e.anchor,r=e.customElement,{fragment:o,after_update:s}=c.$$;o&&o.m(a,t),r||J(()=>{var e=c.$$.on_mount.map(_).filter(m);c.$$.on_destroy?c.$$.on_destroy.push(...e):P(e),c.$$.on_mount=[]}),s.forEach(J),d()}p(l)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(_).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const n=[],i=[];o.forEach(e=>(-1===r.indexOf(e)?n:i).push(e)),i.forEach(e=>e()),o=n}P(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=E}$on(e,t){if(!m(t))return E;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const r=[];function Y(n,i=E){let o;const a=new Set;function s(e){if(D(n,e)&&(n=e,o)){const e=!r.length;for(const e of a)e[1](),r.push(e,n);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=E){const r=[e,t];return a.add(r),1===a.size&&(o=i(s)||E),e(n),()=>{a.delete(r),0===a.size&&o&&(o(),o=null)}}}}function n(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,h=s.length<2;return{subscribe:Y(t,t=>{let r=!1;const n=[];let i=0,o=E;const a=()=>{var e;i||(o(),e=s(l?n[0]:n,t),h?t(e):o=m(e)?e:E)},e=u.map((e,t)=>U(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){P(e),o(),r=!1}}).subscribe}}function Z(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===q);var t}var q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ne(Array.isArray(e)?[]:{},e,t):e}function Q(e,t,r){return e.concat(t).map(function(e){return s(e,r)})}function ee(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function te(e,t){try{return t in e}catch(e){return!1}}function re(n,i,o){var a={};return o.isMergeableObject(n)&&ee(n).forEach(function(e){a[e]=s(n[e],o)}),ee(i).forEach(function(e){var t,r;(!te(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(te(n,e)&&o.isMergeableObject(i[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:ne)(n[e],i[e],o):a[e]=s(i[e],o))}),a}function ne(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Q,r.isMergeableObject=r.isMergeableObject||Z,r.cloneUnlessOtherwiseSpecified=s;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):re(e,t,r):s(t,r)}ne.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return ne(e,t,r)},{});throw new Error("first argument should be an array")};var ie=ne,oe=function(e,t){return(oe=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])}))(e,t)};function ae(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}oe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var b,g,y,T=function(){return(T=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}).apply(this,arguments)};function se(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))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function le(e){return e.type===g.literal}function ue(e){return e.type===g.number}function he(e){return e.type===g.date}function ce(e){return e.type===g.time}function me(e){return e.type===g.select}function pe(e){return e.type===g.plural}function fe(e){return e.type===g.tag}function de(e){return e&&"object"==typeof e&&e.type===y.number}function be(e){return e&&"object"==typeof e&&e.type===y.dateTime}(a=b=b||{})[a.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",a[a.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",a[a.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",a[a.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",a[a.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",a[a.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",a[a.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",a[a.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",a[a.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",a[a.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",a[a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",a[a.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",a[a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",a[a.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",a[a.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",a[a.INVALID_TAG=23]="INVALID_TAG",a[a.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",a[a.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",a[a.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=g=g||{})[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(a=y=y||{})[a.number=0]="number",a[a.dateTime=1]="dateTime";var a=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ge=/(?:[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;var ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Ae=/^(0+)$/;function Se(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Te,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function He(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 Be(e){return He(e)||{}}function _e(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=T(T(T({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return T(T({},e),Be(t))},{}));continue;case"engineering":a=T(T(T({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return T(T({},e),Be(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ve,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ae.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(Ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ee,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?a=T(T({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=T(T({},a),Se(o)))}else Te.test(i.stem)?a=T(T({},a),Se(i.stem)):((o=He(i.stem))&&(a=T(T({},a),o)),(n=function(e){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)),!Ae.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=T(T({},a),n)))}return a}var Ce={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"]};var Pe=new RegExp("^".concat(a.source,"*")),Le=new RegExp("".concat(a.source,"*$"));function v(e,t){return{start:e,end:t}}var a=!!String.prototype.startsWith,Ie=!!String.fromCodePoint,Ne=!!Object.fromEntries,Me=!!String.prototype.codePointAt,Re=!!String.prototype.trimStart,we=!!String.prototype.trimEnd,Oe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{ke="a"===(null==(rt=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:rt[0])}catch(E){ke=!1}var $e,De,Ue=a?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ge=Ie?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))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},xe=Ne?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Fe=Me?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},je=Re?function(e){return e.trimStart()}:function(e){return e.replace(Pe,"")},Ve=we?function(e){return e.trimEnd()}:function(e){return e.replace(Le,"")};function Je(e,t){return new RegExp(e,t)}De=ke?($e=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return $e.lastIndex=t,null!=(t=$e.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=Fe(e,t);if(void 0===i||Xe(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;n.push(i),t+=65536<=i?2:1}return Ge.apply(void 0,n)};l.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},l.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(b.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ke(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:g.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},l.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:g.literal,value:"<".concat(i,"/>"),location:v(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Ke(this.char())?this.error(b.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(b.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:g.tag,value:i,children:t,location:v(n,this.clonePosition())},err:null}:this.error(b.INVALID_TAG,v(e,this.clonePosition())))):this.error(b.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(b.INVALID_TAG,v(n,this.clonePosition()))},l.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},l.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:g.literal,value:n,location:r},err:null}},l.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},l.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ge.apply(void 0,t)},l.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ge(r))},l.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(b.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(b.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:g.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(b.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},l.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=De(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},l.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(b.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(m=Ve(c.val)).length)return this.error(b.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:v(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(p=v(n,this.clonePosition()),l&&Ue(null==l?void 0:l.style,"::",0)?(f=je(l.style.slice(2)),"number"===a?(c=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?c:{val:{type:g.number,value:r,location:p,style:c.val},err:null}:0===f.length?this.error(b.EXPECT_DATE_TIME_SKELETON,p):(h=f,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=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Ce[t||""]||Ce[r||""]||Ce["".concat(r,"-001")]||Ce["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)r+="a";for(;0<a--;)r=l+r}else r+="J"===i?"H":i}return r}(f,this.locale)),m={type:y.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},h.replace(ge,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}},{val:{type:"date"===a?g.date:g.time,value:r,location:p,style:m},err:null})):{val:{type:"number"===a?g.number:"date"===a?g.date:g.time,value:r,location:p,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,v(h,T({},h)));this.bumpSpace();var c,m=this.parseIdentifierIfPossible(),p=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),m=this.parseIdentifierIfPossible(),p=c.val}var f,l=this.tryParsePluralOrSelectOptions(e,a,t,m);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(f=v(n,this.clonePosition()),"select"===a?{val:{type:g.select,value:r,options:xe(l.val),location:f},err:null}:{val:{type:g.plural,value:r,options:xe(l.val),offset:p,pluralType:"plural"===a?"cardinal":"ordinal",location:f},err:null});default:return this.error(b.INVALID_ARGUMENT_TYPE,v(o,s))}},l.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},l.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},l.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(ye).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(b.INVALID_NUMBER_SKELETON,t)}return{val:{type:y.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?_e(r):{}},err:null}},l.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR,b.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=v(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?b.DUPLICATE_SELECT_ARGUMENT_SELECTOR:b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var c=this.tryParseArgumentClose(h);if(c.err)return c;o.push([s,{value:u.val,location:v(h,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===o.length?this.error("select"===t?b.EXPECT_SELECT_ARGUMENT_SELECTOR:b.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(b.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},l.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(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=v(n,this.clonePosition());return i?Oe(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},l.prototype.offset=function(){return this.position.offset},l.prototype.isEOF=function(){return this.offset()===this.message.length},l.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},l.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Fe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},l.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},l.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},l.prototype.bumpIf=function(e){if(Ue(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},l.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},l.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(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},l.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xe(this.char());)this.bump()},l.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var ze=l;function l(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}function Ke(e){return 97<=e&&e<=122||65<=e&&e<=90}function Xe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function We(e,t){t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new ze(e,t).parse();if(e.err)throw(r=SyntaxError(b[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,me(e)||pe(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ue(e)&&de(e.style)||(he(e)||ce(e))&&be(e.style)?delete e.style.location:fe(e)&&r(e.children)})}(e.val),e.val}function Ye(e,t){var r=t&&t.cache?t.cache:nt,n=t&&t.serializer?t.serializer:et;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?Ze:qe,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ze(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function qe(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Qe(e,t,r,n,i){return r.bind(t,e,n,i)}var et=function(){return JSON.stringify(arguments)};function tt(){this.cache=Object.create(null)}tt.prototype.get=function(e){return this.cache[e]},tt.prototype.set=function(e,t){this.cache[e]=t};var A,rt,nt={create:function(){return new tt}},it={variadic:function(e,t){return Qe(e,this,qe,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(e,this,Ze,t.cache.create(),t.serializer)}};(rt=A=A||{}).MISSING_VALUE="MISSING_VALUE",rt.INVALID_VALUE="INVALID_VALUE",rt.MISSING_INTL_API="MISSING_INTL_API";ae(bt,lt=Error),bt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var S,ot,at,st,lt,ut=bt,ht=(ae(dt,st=ut),dt),ct=(ae(ft,at=ut),ft),mt=(ae(pt,ot=ut),pt);function pt(e,t){return ot.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),A.MISSING_VALUE,t)||this}function ft(e,t,r){return at.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),A.INVALID_VALUE,r)||this}function dt(e,t,r,n){return st.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),A.INVALID_VALUE,n)||this}function bt(e,t,r){e=lt.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function gt(e,t,r,n,i,o,a){if(1===e.length&&le(e[0]))return[{type:S.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var h=u[l];if(le(h))s.push({type:S.literal,value:h.value});else if(h.type===g.pound)"number"==typeof o&&s.push({type:S.literal,value:r.getNumberFormat(t).format(o)});else{var c=h.value;if(!(i&&c in i))throw new mt(c,a);c=i[c];if(h.type===g.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),s.push({type:"string"==typeof c?S.literal:S.object,value:c});else if(he(h)){var m="string"==typeof h.style?n.date[h.style]:be(h.style)?h.style.parsedOptions:void 0;s.push({type:S.literal,value:r.getDateTimeFormat(t,m).format(c)})}else if(ce(h))m="string"==typeof h.style?n.time[h.style]:be(h.style)?h.style.parsedOptions:n.time.medium,s.push({type:S.literal,value:r.getDateTimeFormat(t,m).format(c)});else if(ue(h))(m="string"==typeof h.style?n.number[h.style]:de(h.style)?h.style.parsedOptions:void 0)&&m.scale&&(c*=m.scale||1),s.push({type:S.literal,value:r.getNumberFormat(t,m).format(c)});else{if(fe(h)){var p=h.children,f=h.value,d=i[f];if("function"!=typeof d)throw new ct(f,"function",a);f=d(gt(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?S.literal:S.object,value:e}}))}if(me(h)){if(!(b=h.options[c]||h.options.other))throw new ht(h.value,c,Object.keys(h.options),a);s.push.apply(s,gt(b.value,t,r,n,i))}else if(pe(h)){if(!(b=h.options["=".concat(c)])){if(!Intl.PluralRules)throw new ut('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',A.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0)),b=h.options[d]||h.options.other}if(!b)throw new ht(h.value,c,Object.keys(h.options),a);s.push.apply(s,gt(b.value,t,r,n,i,c-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===S.literal&&t.type===S.literal?r.value+=t.value:e.push(t),e},[])}function yt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(a=S=S||{})[a.literal=0]="literal",a[a.object=1]="object";Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},u.__parse=We,u.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"}}};var Et=u;function u(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===S.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return gt(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},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=u.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?T(T(T({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=T(T({},r[t]),n[t]||{}),e},{})):r),e},T({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,se([void 0],t,!1)))},{cache:yt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:it.variadic}),getDateTimeFormat:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,se([void 0],t,!1)))},{cache:yt(t.dateTime),strategy:it.variadic}),getPluralRules:Ye(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,se([void 0],t,!1)))},{cache:yt(t.pluralRules),strategy:it.variadic})}}const h={},Tt=(e,t,r)=>r&&(t in h||(h[t]={}),e in h[t]||(h[t][e]=r),r),vt=(t,r)=>{if(null!=r){if(r in h&&t in h[r])return h[r][t];var n=Gt(r);for(let e=0;e<n.length;e++){var i=function(e,t){if(!Ht(e))return null;e=function(e){return At[e]||null}(e);{var r=t;if(null!=r){if(r in e)return e[r];var n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}}(n[e],t);if(i)return Tt(t,r,i)}}};let At;const St=Y({});function Ht(e){return e in At}function Bt(t,...r){delete h[t],St.update(e=>(e[t]=ie.all([e[t]||{},...r]),e))}n([St],([e])=>Object.keys(e)),St.subscribe(e=>At=e);const _t={};function Ct(e){return _t[e]}function Pt(e){return null!=e&&Gt(e).some(e=>{return null==(e=Ct(e))?void 0:e.size})}function Lt(n,e){return Promise.all(e.map(e=>{return t=n,r=e,_t[t].delete(r),0===_t[t].size&&delete _t[t],e().then(e=>e.default||e);var t,r})).then(e=>Bt(n,...e))}const It={};const c={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};const Nt=Y(!1);var Mt=Object.defineProperty,Ie=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,kt=(e,t,r)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let $t;const Dt=Y(null);function Ut(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Gt(e,t=c.fallbackLocale){e=Ut(e);return t?[...new Set([...e,...Ut(t)])]:e}function H(){return null!=$t?$t:void 0}Dt.subscribe(e=>{$t=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const $=Ie(((e,t)=>{for(var r in t=t||{})wt.call(t,r)&&kt(e,r,t[r]);if(Rt)for(var r of Rt(t))Ot.call(t,r)&&kt(e,r,t[r]);return e})({},Dt),Ne({set:t=>{if(t&&function(e){if(null!=e){var t=Gt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Ht(r))return r}}}(t)&&Pt(t)){var r=c["loadingDelay"];let e;return"undefined"!=typeof window&&null!=H()&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),function e(t){var r;return Pt(t)?(r=Gt(t).map(e=>{var t=Ct(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),It[t]=Promise.all(r.map(([e,t])=>Lt(e,t))).then(()=>{if(Pt(t))return e(t);delete It[t]}),It[t]):t in It?It[t]:Promise.resolve()}(t).then(()=>{Dt.set(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Dt.set(t)}}));var Me=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},xt=Object.defineProperty,Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Jt=(e,t,r)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zt=(e,t)=>{for(var r in t=t||{})jt.call(t,r)&&Jt(e,r,t[r]);if(Ft)for(var r of Ft(t))Vt.call(t,r)&&Jt(e,r,t[r]);return e},B=(e,t)=>{var r={};for(n in e)jt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ft)for(var n of Ft(e))t.indexOf(n)<0&&Vt.call(e,n)&&(r[n]=e[n]);return r};const Kt=(e,t)=>{var r=c["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Xt=Me(e=>{var{locale:t,format:r}=e,e=B(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kt("number",r)),new Intl.NumberFormat(t,e)}),Wt=Me(e=>{var{locale:t,format:r}=e,e=B(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kt("date",r):0===Object.keys(e).length&&(e=Kt("date","short")),new Intl.DateTimeFormat(t,e)}),Yt=Me(e=>{var{locale:t,format:r}=e,e=B(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kt("time",r):0===Object.keys(e).length&&(e=Kt("time","short")),new Intl.DateTimeFormat(t,e)}),Zt=Me((e,t=H())=>new Et(e,t,c.formats,{ignoreTag:c.ignoreTag})),qt=n([$,St],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:a=H(),default:s}=i;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=vt(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=c).handleMissingMessage)?void 0:r.call(n,{locale:a,id:e,defaultValue:s}))?r:s)?n:e;if(!o)return l;let u=l;try{u=Zt(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function Qt(e,t){Bt(e,t)}n([$],()=>(e,t)=>((e={})=>{var{locale:t=H()}=e,e=B(e,["locale"]);return Yt(zt({locale:t},e))})(t).format(e)),n([$],()=>(e,t)=>((e={})=>{var{locale:t=H()}=e,e=B(e,["locale"]);return Wt(zt({locale:t},e))})(t).format(e)),n([$],()=>(e,t)=>((e={})=>{var{locale:t=H()}=e,e=B(e,["locale"]);return Xt(zt({locale:t},e))})(t).format(e)),n([$,St],()=>(e,t=H())=>vt(e,t));const er={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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",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",stake:"Turnover",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 curs",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ă",stake:"Turnover",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:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",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",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"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",stake:"Turnover",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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function tr(r){let n,i,o,a,s,l;return{c(){n=t("div"),i=R(r[13]),w(n,"class",o="Status "+r[15]),w(n,"part",a="Status "+r[15])},m(e,t){N(e,n,t),I(n,i),s||(l=L(r[18].call(null,n)),s=!0)},p(e,t){8192&t[0]&&O(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&w(n,"class",o),32768&t[0]&&a!==(a="Status "+e[15])&&w(n,"part",a)},d(e){e&&M(n),s=!1,l()}}}function rr(e){let r,n=e[5]&&nr(e);return{c(){n&&n.c(),r=R("")},m(e,t){n&&n.m(e,t),N(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=nr(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&M(r)}}}function nr(e){let r,n,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=t("div"),n=R(i),w(r,"class","Enrolled"),w(r,"part","Enrolled")},m(e,t){N(e,r,t),I(r,n)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&O(n,i)},d(e){e&&M(r)}}}function ir(r){let n,i,o,a,s;return{c(){w(n=t("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),w(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),G(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){N(e,n,t),a||(s=L(r[18].call(null,n)),a=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&w(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&w(n,"part",o)},d(e){e&&M(n),a=!1,s()}}}function or(r){let n,i,o,a,s;return{c(){w(n=t("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),w(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),G(n,"background-image","url('"+r[4]+"')")},m(e,t){N(e,n,t),a||(s=L(r[18].call(null,n)),a=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&w(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&w(n,"part",o),16&t[0]&&G(n,"background-image","url('"+e[4]+"')")},d(e){e&&M(n),a=!1,s()}}}function ar(r){let n,i,o,a,s;return{c(){n=t("div"),i=R(r[11]),w(n,"class","Date"),w(n,"part","Date")},m(e,t){N(e,n,t),I(n,i),a||(s=L(o=r[17].call(null,n,r[2])),a=!0)},p(e,t){2048&t[0]&&O(i,e[11]),o&&m(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&M(n),a=!1,s()}}}function sr(a){let s,l,u,h,c,m,p,f,d,b,g,y,E,T,v,A,S,H,r,B,_,n=a[16]("tournamentsThumbnail.scoreCriteria")+"",i=a[16]("tournamentsThumbnail.minbet")+"",o=a[16]("tournamentsThumbnail.seegames")+"",C=a[16]("tournamentsThumbnail.here")+"";return{c(){s=t("div"),l=t("p"),u=R(n),h=R(":\n \n "),c=t("span"),m=R(a[14]),p=R("\n ("),f=R(i),d=e(),b=R(a[6]),g=R(")"),y=e(),E=t("div"),T=t("p"),v=R(o),A=e(),S=t("a"),H=R(C),w(c,"part","ScoreCriteriaSpan"),w(l,"part","ScoreCriteriaP"),w(s,"class","ScoreCriteria"),w(s,"part","ScoreCriteria"),w(S,"part","GamesAnchor"),w(S,"href",a[8]),w(S,"target",r="true"===a[9]?"_self":"_blank"),w(T,"part","GamesP"),w(E,"class","Games"),w(E,"part","Games")},m(e,t){var r,n,i,o;N(e,s,t),I(s,l),I(l,u),I(l,h),I(l,c),I(c,m),I(l,p),I(l,f),I(l,d),I(l,b),I(l,g),N(e,y,t),N(e,E,t),I(E,T),I(T,v),I(T,A),I(T,S),I(S,H),B||(_=[L(a[19].call(null,c)),(r=S,n="click",i=a[28],r.addEventListener(n,i,o),()=>r.removeEventListener(n,i,o))],B=!0)},p(e,t){65536&t[0]&&n!==(n=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&O(u,n),16384&t[0]&&O(m,e[14]),65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.minbet")+"")&&O(f,i),64&t[0]&&O(b,e[6]),65536&t[0]&&o!==(o=e[16]("tournamentsThumbnail.seegames")+"")&&O(v,o),65536&t[0]&&C!==(C=e[16]("tournamentsThumbnail.here")+"")&&O(H,C),256&t[0]&&w(S,"href",e[8]),512&t[0]&&r!==(r="true"===e[9]?"_self":"_blank")&&w(S,"target",r)},d(e){e&&M(s),e&&M(y),e&&M(E),B=!1,P(_)}}}function lr(r){let n,i,o,a,s,l,u,h,c,m=r[0]&&tr(r),p="true"==r[7]&&rr(r);function f(e){return e[4]?or:ir}let d=f(r),b=d(r),g=r[2]&&ar(r),y=r[12]&&sr(r);return{c(){n=t("div"),m&&m.c(),i=e(),p&&p.c(),o=e(),b.c(),a=e(),s=t("div"),l=t("div"),u=R(r[1]),h=e(),g&&g.c(),c=e(),y&&y.c(),this.c=E,w(l,"class","Title"),w(l,"part","Title"),w(s,"class","Details"),w(s,"part","Details"),w(n,"class","Thumbnail"),w(n,"part","Thumbnail")},m(e,t){N(e,n,t),m&&m.m(n,null),I(n,i),p&&p.m(n,null),I(n,o),b.m(n,null),I(n,a),I(n,s),I(s,l),I(l,u),I(s,h),g&&g.m(s,null),I(s,c),y&&y.m(s,null),r[29](n)},p(e,t){e[0]?m?m.p(e,t):((m=tr(e)).c(),m.m(n,i)):m&&(m.d(1),m=null),"true"==e[7]?p?p.p(e,t):((p=rr(e)).c(),p.m(n,o)):p&&(p.d(1),p=null),d===(d=f(e))&&b?b.p(e,t):(b.d(1),(b=d(e))&&(b.c(),b.m(n,a))),2&t[0]&&O(u,e[1]),e[2]?g?g.p(e,t):((g=ar(e)).c(),g.m(s,c)):g&&(g.d(1),g=null),e[12]?y?y.p(e,t):((y=sr(e)).c(),y.m(s,null)):y&&(y.d(1),y=null)},i:E,o:E,d(e){e&&M(n),m&&m.d(),p&&p.d(),b.d(),g&&g.d(),y&&y.d(),r[29](null)}}}function ur(t,e,n){let i;var r=qt;t.$$.on_destroy.push(U(r,e=>n(16,i=e)));let o,{session:a=""}=e,{userid:s=""}=e,{title:l=""}=e,{startdate:u=""}=e,{status:h=""}=e,{tourid:c=""}=e,{thumbnail:m=""}=e,{userenrolled:p=""}=e,{scorecriteria:f=""}=e,{minbetcount:d=""}=e,{showenrolled:b="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:E="false"}=e,{clientstyling:T=""}=e,{clientstylingurl:v=""}=e,{translationurl:A=""}=e,S="",H=!1,B="",_="",C="";Object.keys(er).forEach(e=>{Qt(e,er[e])});const P=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&n(12,H=!0),e.data.type=="TournamentStatus_"+c)&&n(0,h=e.data.status)},L=()=>{var e=new Date(u),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});n(11,S=r+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===h?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+e)},I=()=>{"Unstarted"==h&&(n(13,B=i("tournamentsThumbnail.scheduled")),n(15,C="StatusUnstarted")),"Running"==h&&(n(13,B=i("tournamentsThumbnail.ongoing")),n(15,C="StatusRunning")),"Closed"!=h&&"Closing"!=h||n(13,B=i("tournamentsThumbnail.finished")),"Closed"==h&&n(15,C="StatusClosed"),"Closing"==h&&n(15,C="StatusClosing")},N=()=>{"BetCount"==f&&n(14,_=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==f&&n(14,_=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==f&&n(14,_=i("tournamentsThumbnail.winStakeRatio")),"Stake"==f&&n(14,_=i("tournamentsThumbnail.stake"))},M=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};r=()=>(window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P)}),function(){if(k)return k;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r);return t.$$set=e=>{"session"in e&&n(21,a=e.session),"userid"in e&&n(22,s=e.userid),"title"in e&&n(1,l=e.title),"startdate"in e&&n(2,u=e.startdate),"status"in e&&n(0,h=e.status),"tourid"in e&&n(3,c=e.tourid),"thumbnail"in e&&n(4,m=e.thumbnail),"userenrolled"in e&&n(5,p=e.userenrolled),"scorecriteria"in e&&n(23,f=e.scorecriteria),"minbetcount"in e&&n(6,d=e.minbetcount),"showenrolled"in e&&n(7,b=e.showenrolled),"gameurl"in e&&n(8,g=e.gameurl),"lang"in e&&n(24,y=e.lang),"keepbrowsercontext"in e&&n(9,E=e.keepbrowsercontext),"clientstyling"in e&&n(25,T=e.clientstyling),"clientstylingurl"in e&&n(26,v=e.clientstylingurl),"translationurl"in e&&n(27,A=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&o&&T&&((e=document.createElement("style")).innerHTML=T,o.appendChild(e)),67109888&t.$$.dirty[0]&&o&&v){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&A&&fetch(A).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qt(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&a&&(0<a.length&&"false"!=a?n(12,H=!0):n(12,H=!1)),1&t.$$.dirty[0]&&h&&I(),16777218&t.$$.dirty[0]&&y&&l&&(e=y,$.set(e),N(),I(),u)&&L(),4&t.$$.dirty[0]&&u&&L(),8388608&t.$$.dirty[0]&&f&&N()},[h,l,u,c,m,p,d,b,g,E,o,S,H,B,_,C,i,L,I,N,M,a,s,f,y,T,v,A,()=>M(),function(e){x[e?"unshift":"push"](()=>{o=e,n(10,o)})}]}class hr extends W{constructor(e){super();var t=document.createElement("style");t.textContent=':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"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .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}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}',this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},ur,lr,D,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&N(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),d()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),d()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),d()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),d()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),d()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),d()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),d()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),d()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),d()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),d()}}return customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",hr),hr});
2
2
  //# sourceMappingURL=casino-tournaments-thumbnail.js.map