@everymatrix/casino-tournaments-thumbnail 0.0.204 → 0.0.208

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 y(){}function h(e){return e()}function f(){return Object.create(null)}function p(e){e.forEach(h)}function m(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function A(e,...t){if(null==e)return y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function u(e){return e&&m(e.destroy)?e.destroy:y}function _(e,t){e.appendChild(t)}function L(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function S(e){return document.createTextNode(e)}function w(){return S(" ")}function O(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function a(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}let N;function d(e){N=e}const g=[],e=[],r=[],i=[],E=Promise.resolve();let b=!1;function T(e){r.push(e)}let o=!1;const s=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),p(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T))}}(t.$$)}for(d(null),g.length=0;e.length;)e.pop()();for(let e=0;e<r.length;e+=1){const n=r[e];s.has(n)||(s.add(n),n())}}while(r.length=0,g.length);for(;i.length;)i.pop()();b=!1,o=!1,s.clear()}}const I=new Set;function l(r,e,t,n,i,o,s=[-1]){var a,u=N;d(r);const l=r.$$={fragment:null,ctx:null,props:o,update:y,not_equal:i,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:f(),dirty:s,skip_bound:!1};let c=!1;if(l.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return l.ctx&&i(l.ctx[e],l.ctx[e]=n)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(g.push(e),b||(b=!0,E.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],l.update(),c=!0,p(l.before_update),l.fragment=!!n&&n(l.ctx),e.target){if(e.hydrate){const y=(n=e.target,Array.from(n.childNodes));l.fragment&&l.fragment.l(y),y.forEach(P)}else l.fragment&&l.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(I.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,n),r||T(()=>{var e=o.map(h).filter(m);s?s.push(...e):p(e),t.$$.on_mount=[]}),a.forEach(T)}(r,e.target,e.anchor,e.customElement),v()}d(u)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){p(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(p(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=y}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.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 M(r,i=y){let o;const s=[];function a(e){if(n(r,e)&&(r=e,o)){const e=!R.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),R.push(t,r)}if(e){for(let e=0;e<R.length;e+=2)R[e][0](R[e+1]);R.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=y){const n=[e,t];return s.push(n),1===s.length&&(o=i(a)||y),e(r),()=>{var e=s.indexOf(n);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function U(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:M(t,t=>{let n=!1;const r=[];let i=0,o=y;const s=()=>{var e;i||(o(),e=a(u?r[0]:r,t),c?t(e):o=m(e)?e:y)},e=l.map((e,t)=>A(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){p(e),o()}}).subscribe}}var D=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===$));var t},$="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(e,t){return!1!==t.clone&&t.isMergeableObject(e)?V(Array.isArray(e)?[]:{},e,t):e}function G(e,t,n){return e.concat(t).map(function(e){return k(e,n)})}function x(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function F(e,t){try{return t in e}catch(e){return!1}}function j(r,i,o){var s={};return o.isMergeableObject(r)&&x(r).forEach(function(e){s[e]=k(r[e],o)}),x(i).forEach(function(t){var e,n;(!F(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(F(r,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return V;var e=o.customMerge(t);return"function"==typeof e?e:V}()(r[t],i[t],o):s[t]=k(i[t],o))}),s}function V(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||G,n.isMergeableObject=n.isMergeableObject||D,n.cloneUnlessOtherwiseSpecified=k;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):j(e,t,n):k(t,n)}V.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return V(e,t,n)},{})};var X=V,z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Y,K,H,q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Z(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function W(e){return e.type===K.literal}function Q(e){return e.type===K.number}function J(e){return e.type===K.date}function ee(e){return e.type===K.time}function te(e){return e.type===K.select}function ne(e){return e.type===K.plural}function re(e){return e.type===K.tag}function ie(e){return e&&"object"==typeof e&&e.type===H.number}function oe(e){return e&&"object"==typeof e&&e.type===H.dateTime}(Le=Y=Y||{})[Le.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Le[Le.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Le[Le.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Le[Le.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Le[Le.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Le[Le.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Le[Le.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Le[Le.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Le[Le.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Le[Le.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Le[Le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Le[Le.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Le[Le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Le[Le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Le[Le.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Le[Le.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Le[Le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Le[Le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Le[Le.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Le[Le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Le[Le.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Le[Le.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Le[Le.INVALID_TAG=23]="INVALID_TAG",Le[Le.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Le[Le.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Le[Le.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Pe=K=K||{})[Pe.literal=0]="literal",Pe[Pe.argument=1]="argument",Pe[Pe.number=2]="number",Pe[Pe.date=3]="date",Pe[Pe.time=4]="time",Pe[Pe.select=5]="select",Pe[Pe.plural=6]="plural",Pe[Pe.pound=7]="pound",Pe[Pe.tag=8]="tag",(Se=H=H||{})[Se.number=0]="number",Se[Se.dateTime=1]="dateTime";var se=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ae=/(?:[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 ue,le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,he=/^(@+)?(\+|#+)?$/g,fe=/(\*)(0+)|(#+)(0+)|(0+)/g,pe=/^(0+)$/;function me(e){var r={};return e.replace(he,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function de(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 ge(e){return de(e)||{}}function Ee(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=q(q(q({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return q(q({},e),ge(t))},{}));continue;case"engineering":s=q(q(q({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return q(q({},e),ge(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.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(fe,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&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(pe.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(ce.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ce,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=q(q({},s),me(i.options[0])))}else he.test(i.stem)?s=q(q({},s),me(i.stem)):((r=de(i.stem))&&(s=q(q({},s),r)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!pe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=q(q({},s),r)))}return s}var ye=new RegExp("^"+se.source+"*"),be=new RegExp(se.source+"*$");function Te(e,t){return{start:e,end:t}}var ve=!!String.prototype.startsWith,_e=!!String.fromCodePoint,Ae=!!Object.fromEntries,Le=!!String.prototype.codePointAt,Pe=!!String.prototype.trimStart,Se=!!String.prototype.trimEnd,we=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},se=!0;try{se="a"===(null===(ue=$e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ue?void 0:ue[0])}catch(y){se=!1}var Oe,Ce,Ne=ve?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ie=_e?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Re=Ae?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},Me=Le?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,i=e.charCodeAt(t);return i<55296||56319<i||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},Ue=Pe?function(e){return e.trimStart()}:function(e){return e.replace(ye,"")},De=Se?function(e){return e.trimEnd()}:function(e){return e.replace(be,"")};function $e(e,t){return new RegExp(e,t)}Ce=se?(Oe=$e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Oe.lastIndex=t,null!==(e=Oe.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var i=Me(e,t);if(void 0===i||Fe(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return Ie.apply(void 0,r)};var ke=(Ge.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ge.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.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(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,Te(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&xe(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:K.pound,location:Te(o,this.clonePosition())})}}}return{val:r,err:null}},Ge.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:K.literal,value:"<"+r+"/>",location:Te(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xe(this.char()))return this.error(Y.INVALID_TAG,Te(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(Y.UNMATCHED_CLOSING_TAG,Te(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:K.tag,value:r,children:e,location:Te(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,Te(t,this.clonePosition())))}return this.error(Y.UNCLOSED_TAG,Te(n,this.clonePosition()))}return this.error(Y.INVALID_TAG,Te(n,this.clonePosition()))},Ge.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())},Ge.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=Te(n,this.clonePosition());return{val:{type:K.literal,value:r,location:n},err:null}},Ge.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(xe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ge.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Ie.apply(void 0,t)},Ge.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Ie(n))},Ge.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Y.EMPTY_ARGUMENT,Te(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Y.MALFORMED_ARGUMENT,Te(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:K.argument,value:r,location:Te(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Y.MALFORMED_ARGUMENT,Te(n,this.clonePosition()))}},Ge.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Ce(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:Te(e,this.clonePosition())}},Ge.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Y.EXPECT_ARGUMENT_TYPE,Te(o,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=De(f.val)).length)return this.error(Y.EXPECT_ARGUMENT_STYLE,Te(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:Te(l,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var c=Te(r,this.clonePosition());if(u&&Ne(null==u?void 0:u.style,"::",0)){l=Ue(u.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?f:{val:{type:K.number,value:n,location:c,style:f.val},err:null};if(0===l.length)return this.error(Y.EXPECT_DATE_TIME_SKELETON,c);var h={type:H.dateTime,pattern:l,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},l.replace(ae,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):{}};return{val:{type:"date"===s?K.date:K.time,value:n,location:c,style:h},err:null}}return{val:{type:"number"===s?K.number:"date"===s?K.date:K.time,value:n,location:c,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,Te(u,q({},u)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Te(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Te(r,this.clonePosition());return"select"===s?{val:{type:K.select,value:n,options:Re(c.val),location:p},err:null}:{val:{type:K.plural,value:n,options:Re(c.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(Y.INVALID_ARGUMENT_TYPE,Te(o,a))}},Ge.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ge.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Te(n,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}},Ge.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(le).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Y.INVALID_NUMBER_SKELETON,t)}return{val:{type:H.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ee(n):{}},err:null}},Ge.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,u=r.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Te(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Te(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;l=this.tryParseArgumentClose(h);if(l.err)return l;o.push([a,{value:c.val,location:Te(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===o.length?this.error("select"===t?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Te(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Y.MISSING_OTHER_CLAUSE,Te(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ge.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=Te(r,this.clonePosition());return i?we(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},Ge.prototype.offset=function(){return this.position.offset},Ge.prototype.isEOF=function(){return this.offset()===this.message.length},Ge.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ge.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Me(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ge.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ge.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))},Ge.prototype.bumpIf=function(e){if(Ne(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ge.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ge.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ge.prototype.bumpSpace=function(){for(;!this.isEOF()&&Fe(this.char());)this.bump()},Ge.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ge);function Ge(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function xe(e){return 97<=e&&e<=122||65<=e&&e<=90}function Fe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function je(e,t){t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new ke(e,t).parse();if(n.err){e=SyntaxError(Y[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,te(e)||ne(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Q(e)&&ie(e.style)||(J(e)||ee(e))&&oe(e.style)?delete e.style.location:re(e)&&n(e.children)})}(n.val),n.val}function Ve(e,t){var n=t&&t.cache?t.cache:qe,r=t&&t.serializer?t.serializer:Ye;return(t&&t.strategy?t.strategy:function(e,t){return Be(e,this,1===e.length?Xe:ze,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Xe(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function ze(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function Be(e,t,n,r,i){return n.bind(t,e,r,i)}var Ye=function(){return JSON.stringify(arguments)};function Ke(){this.cache=Object.create(null)}Ke.prototype.has=function(e){return e in this.cache},Ke.prototype.get=function(e){return this.cache[e]},Ke.prototype.set=function(e,t){this.cache[e]=t};var He,qe={create:function(){return new Ke}},Ze={variadic:function(e,t){return Be(e,this,ze,t.cache.create(),t.serializer)},monadic:function(e,t){return Be(e,this,Xe,t.cache.create(),t.serializer)}};(se=He=He||{}).MISSING_VALUE="MISSING_VALUE",se.INVALID_VALUE="INVALID_VALUE",se.MISSING_INTL_API="MISSING_INTL_API";var We,Qe,Je,et,tt,nt=(B(lt,tt=Error),lt.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},lt),rt=(B(ut,et=nt),ut),it=(B(at,Je=nt),at),ot=(B(st,Qe=nt),st);function st(e,t){return Qe.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',He.MISSING_VALUE,t)||this}function at(e,t,n){return Je.call(this,'Value for "'+e+'" must be of type '+t,He.INVALID_VALUE,n)||this}function ut(e,t,n,r){return et.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',He.INVALID_VALUE,r)||this}function lt(e,t,n){e=tt.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function ct(e,t,n,r,i,o,s){if(1===e.length&&W(e[0]))return[{type:We.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(W(c))a.push({type:We.literal,value:c.value});else if(c.type===K.pound)"number"==typeof o&&a.push({type:We.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new ot(h,s);var f=i[h];if(c.type===K.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?We.literal:We.object,value:f});else if(J(c)){var p="string"==typeof c.style?r.date[c.style]:oe(c.style)?c.style.parsedOptions:void 0;a.push({type:We.literal,value:n.getDateTimeFormat(t,p).format(f)})}else if(ee(c))p="string"==typeof c.style?r.time[c.style]:oe(c.style)?c.style.parsedOptions:void 0,a.push({type:We.literal,value:n.getDateTimeFormat(t,p).format(f)});else if(Q(c))(p="string"==typeof c.style?r.number[c.style]:ie(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:We.literal,value:n.getNumberFormat(t,p).format(f)});else{if(re(c)){var m=c.children,d=c.value,h=i[d];if("function"!=typeof h)throw new it(d,"function",s);m=h(ct(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?We.literal:We.object,value:e}}))}if(te(c)){if(!(g=c.options[f]||c.options.other))throw new rt(c.value,f,Object.keys(c.options),s);a.push.apply(a,ct(g.value,t,n,r,i))}else if(ne(c)){if(!(g=c.options["="+f])){if(!Intl.PluralRules)throw new nt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',He.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new rt(c.value,f,Object.keys(c.options),s);a.push.apply(a,ct(g.value,t,n,r,i,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===We.literal&&t.type===We.literal?n.value+=t.value:e.push(t),e},[])}function ht(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(se=We=We||{})[se.literal=0]="literal",se[se.object=1]="object";var ft=(Object.defineProperty(pt,"defaultLocale",{get:function(){return pt.memoizedDefaultLocale||(pt.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),pt.memoizedDefaultLocale},enumerable:!1,configurable:!0}),pt.memoizedDefaultLocale=null,pt.__parse=je,pt.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"}}},pt);function pt(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=pt.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===We.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return ct(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!pt.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=pt.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}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=pt.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?q(q(q({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=q(q({},n[t]),r[t]||{}),e},{})):n),e},q({},i)):i),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:Ve(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Z([void 0],t)))},{cache:ht((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Ze.variadic}),getDateTimeFormat:Ve(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Z([void 0],t)))},{cache:ht(r.dateTime),strategy:Ze.variadic}),getPluralRules:Ve(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Z([void 0],t)))},{cache:ht(r.pluralRules),strategy:Ze.variadic})}}const mt={},dt=(t,n)=>{if(null!=n){if(n in mt&&t in mt[n])return mt[n][t];var r,i,o=It(n);for(let e=0;e<o.length;e++){var s=(r=o[e],i=t,yt(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return gt[e]||null}(r),i):null);if(s)return r=t,i=n,(s=s)&&(i in mt||(mt[i]={}),r in mt[i]||(mt[i][r]=s),s)}}};let gt;const Et=M({});function yt(e){return e in gt}function bt(t,...n){delete mt[t],Et.update(e=>(e[t]=X.all([e[t]||{},...n]),e))}U([Et],([e])=>Object.keys(e)),Et.subscribe(e=>gt=e);const Tt={};function vt(e){return Tt[e]}function _t(e){return It(e).some(e=>{return null===(e=vt(e))||void 0===e?void 0:e.size})}const At={};function Lt(e){if(!_t(e))return e in At?At[e]:void 0;const t=It(e).map(e=>{var t=vt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return At[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){Tt[e].delete(t),0===Tt[e].size&&delete Tt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>bt(t,...e))}(e))).then(()=>_t(e)?Lt(e):void delete At[e]),At[e]}function Pt(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const St={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const wt=M(!1);let Ot;const Ct=M(null);function Nt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function It(e,t=St.fallbackLocale){e=Nt(e);return t?[...new Set([...e,...Nt(t)])]:e}Ct.subscribe(e=>{Ot=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Rt=Ct.set;Ct.set=t=>{if(function(e){if(null!=e){var t=It(e);for(let e=0;e<t.length;e++){var n=t[e];if(yt(n))return n}}}(t)&&_t(t)){var{loadingDelay:n}=St;let e;return"undefined"!=typeof window&&null!=Ot&&n?e=window.setTimeout(()=>wt.set(!0),n):wt.set(!0),Lt(t).then(()=>{Rt(t)}).finally(()=>{clearTimeout(e),wt.set(!1)})}return Rt(t)},Ct.update=e=>Rt(e(Ot));const Mt=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Ut=(e,t)=>{var{formats:n}=St;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Dt=Mt(e=>{var{locale:t,format:n}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Ut("number",n)),new Intl.NumberFormat(t,e)}),$t=Mt(e=>{var{locale:t,format:n}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Ut("date",n):0===Object.keys(e).length&&(e=Ut("date","short")),new Intl.DateTimeFormat(t,e)}),kt=Mt(e=>{var{locale:t,format:n}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Ut("time",n):0===Object.keys(e).length&&(e=Ut("time","short")),new Intl.DateTimeFormat(t,e)}),Gt=Mt((e,t=Ot)=>new ft(e,t,St.formats,{ignoreTag:St.ignoreTag})),xt=U([Ct,Et],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=Ot,default:i}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=dt(e,r);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else St.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${It(r).join('", "')}".${_t(Ot)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!n)return o;let s=o;try{s=Gt(o,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});U([Ct],()=>(e,t)=>((e={})=>{var{locale:t=Ot}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),U([Ct],()=>(e,t)=>((e={})=>{var{locale:t=Ot}=e,e=Pt(e,["locale"]);return $t(Object.assign({locale:t},e))})(t).format(e)),U([Ct],()=>(e,t)=>((e={})=>{var{locale:t=Ot}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),U([Ct,Et],()=>(e,t=Ot)=>dt(e,t));const Ft={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds"}},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ŞLAMA SAATİ:",mostRounds:"MostRounds"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"MostRounds"}}};function jt(n){let r,i,o,s;return{c(){r=t("div"),i=S(n[12]),O(r,"class","Status")},m(e,t){L(e,r,t),_(r,i),o||(s=u(n[15].call(null,r)),o=!0)},p(e,t){4096&t&&C(i,e[12])},d(e){e&&P(r),o=!1,s()}}}function Vt(e){let n,r=e[5]&&Xt(e);return{c(){r&&r.c(),n=S("")},m(e,t){r&&r.m(e,t),L(e,n,t)},p(e,t){e[5]?r?r.p(e,t):(r=Xt(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&P(n)}}}function Xt(e){let n,r,i=e[13]("tournamentsThumbnail.enrolled")+"";return{c(){n=t("div"),r=S(i),O(n,"class","Enrolled")},m(e,t){L(e,n,t),_(n,r)},p(e,t){8192&t&&i!==(i=e[13]("tournamentsThumbnail.enrolled")+"")&&C(r,i)},d(e){e&&P(n)}}}function zt(n){let r,i,o,s;return{c(){r=t("div"),O(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),a(r,"background","url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat")},m(e,t){L(e,r,t),o||(s=u(n[15].call(null,r)),o=!0)},p(e,t){4&t&&i!==(i="CardImg "+("Closing"==e[2]||"Closed"==e[2]?"CardImgFinished":""))&&O(r,"class",i)},d(e){e&&P(r),o=!1,s()}}}function Bt(n){let r,i,o,s;return{c(){r=t("div"),O(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),a(r,"background","url('"+n[4]+"')")},m(e,t){L(e,r,t),o||(s=u(n[15].call(null,r)),o=!0)},p(e,t){4&t&&i!==(i="CardImg "+("Closing"==e[2]||"Closed"==e[2]?"CardImgFinished":""))&&O(r,"class",i),16&t&&a(r,"background","url('"+e[4]+"')")},d(e){e&&P(r),o=!1,s()}}}function Yt(n){let r,i,o,s,a;return{c(){r=t("div"),i=S(n[10]),O(r,"class","Date")},m(e,t){L(e,r,t),_(r,i),s||(a=u(o=n[14].call(null,r,n[1])),s=!0)},p(e,t){1024&t&&C(i,e[10]),o&&m(o.update)&&2&t&&o.update.call(null,e[1])},d(e){e&&P(r),s=!1,a()}}}function Kt(i){let o,s,a,u,l,c,h,f,p,m,d,g,E,n=i[13]("tournamentsThumbnail.scoreCriteria")+"",r=i[13]("tournamentsThumbnail.seegames")+"",y=i[13]("tournamentsThumbnail.here")+"";function b(e){return"BetCount"==e[6]?qt:Ht}let T=b(i),v=T(i);return{c(){o=t("div"),s=t("p"),a=S(n),u=S(":\n "),v.c(),l=w(),c=t("div"),h=t("p"),f=S(r),p=w(),m=t("a"),d=S(y),O(o,"class","ScoreCriteria"),O(m,"href",i[9]),O(m,"target","_blank"),O(c,"class","Games")},m(e,t){var n,r;L(e,o,t),_(o,s),_(s,a),_(s,u),v.m(s,null),L(e,l,t),L(e,c,t),_(c,h),_(h,f),_(h,p),_(h,m),_(m,d),g||(n=m,r=i[20],n.addEventListener("click",r,void 0),E=()=>n.removeEventListener("click",r,void 0),g=!0)},p(e,t){8192&t&&n!==(n=e[13]("tournamentsThumbnail.scoreCriteria")+"")&&C(a,n),T===(T=b(e))&&v?v.p(e,t):(v.d(1),v=T(e),v&&(v.c(),v.m(s,null))),8192&t&&r!==(r=e[13]("tournamentsThumbnail.seegames")+"")&&C(f,r),8192&t&&y!==(y=e[13]("tournamentsThumbnail.here")+"")&&C(d,y),512&t&&O(m,"href",e[9])},d(e){e&&P(o),v.d(),e&&P(l),e&&P(c),g=!1,E()}}}function Ht(e){let n;return{c(){n=S(e[6])},m(e,t){L(e,n,t)},p(e,t){64&t&&C(n,e[6])},d(e){e&&P(n)}}}function qt(e){let n,r,i,o,s,a,u=e[13]("tournamentsThumbnail.mostRounds")+"",l=e[13]("tournamentsThumbnail.minbet")+"";return{c(){n=S(u),r=S("\n ("),i=S(l),o=S(": "),s=S(e[7]),a=S(")")},m(e,t){L(e,n,t),L(e,r,t),L(e,i,t),L(e,o,t),L(e,s,t),L(e,a,t)},p(e,t){8192&t&&u!==(u=e[13]("tournamentsThumbnail.mostRounds")+"")&&C(n,u),8192&t&&l!==(l=e[13]("tournamentsThumbnail.minbet")+"")&&C(i,l),128&t&&C(s,e[7])},d(e){e&&P(n),e&&P(r),e&&P(i),e&&P(o),e&&P(s),e&&P(a)}}}function Zt(e){let n,r,i,o,s,a,u,l,c,h=e[2]&&jt(e),f="true"==e[8]&&Vt(e);function p(e){return e[4]?Bt:zt}let m=p(e),d=m(e),g=e[1]&&Yt(e),E=e[11]&&Kt(e);return{c(){n=t("div"),h&&h.c(),r=w(),f&&f.c(),i=w(),d.c(),o=w(),s=t("div"),a=t("div"),u=S(e[0]),l=w(),g&&g.c(),c=w(),E&&E.c(),this.c=y,O(a,"class","Title"),O(s,"class","Details"),O(n,"class","Thumbnail")},m(e,t){L(e,n,t),h&&h.m(n,null),_(n,r),f&&f.m(n,null),_(n,i),d.m(n,null),_(n,o),_(n,s),_(s,a),_(a,u),_(s,l),g&&g.m(s,null),_(s,c),E&&E.m(s,null)},p(e,[t]){e[2]?h?h.p(e,t):(h=jt(e),h.c(),h.m(n,r)):h&&(h.d(1),h=null),"true"==e[8]?f?f.p(e,t):(f=Vt(e),f.c(),f.m(n,i)):f&&(f.d(1),f=null),m===(m=p(e))&&d?d.p(e,t):(d.d(1),d=m(e),d&&(d.c(),d.m(n,o))),1&t&&C(u,e[0]),e[1]?g?g.p(e,t):(g=Yt(e),g.c(),g.m(s,c)):g&&(g.d(1),g=null),e[11]?E?E.p(e,t):(E=Kt(e),E.c(),E.m(s,null)):E&&(E.d(1),E=null)},i:y,o:y,d(e){e&&P(n),h&&h.d(),f&&f.d(),d.d(),g&&g.d(),E&&E.d()}}}function Wt(e,t,i){let o;var n=xt;e.$$.on_destroy.push(A(n,e=>i(13,o=e)));let{session:r=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:u=""}=t,{status:l=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:f=""}=t,{scorecriteria:p=""}=t,{minbetcount:m=""}=t,{showenrolled:d="false"}=t,{gameurl:g=""}=t,{lang:E="en"}=t,y,b=!1,T="";Object.keys(Ft).forEach(e=>{bt(e,Ft[e])});const v=e=>{e.data&&"SessionID"==e.data.type&&i(11,b=!0)},_=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return t=()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)}),function(){if(!N)throw new Error("Function called outside component initialization");return N}().$$.on_mount.push(t),e.$$set=e=>{"session"in e&&i(17,r=e.session),"userid"in e&&i(18,s=e.userid),"title"in e&&i(0,a=e.title),"startdate"in e&&i(1,u=e.startdate),"status"in e&&i(2,l=e.status),"tourid"in e&&i(3,c=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,f=e.userenrolled),"scorecriteria"in e&&i(6,p=e.scorecriteria),"minbetcount"in e&&i(7,m=e.minbetcount),"showenrolled"in e&&i(8,d=e.showenrolled),"gameurl"in e&&i(9,g=e.gameurl),"lang"in e&&i(19,E=e.lang)},e.$$.update=()=>{131072&e.$$.dirty&&r&&(0<r.length&&"false"!=r?i(11,b=!0):i(11,b=!1))},[a,u,l,c,h,f,p,m,d,g,"",b,T,o,()=>{let e=new Date(u),t=new Intl.DateTimeFormat(E,{month:"long"}).format(e),n=e.getDate(),r=e.toLocaleString(E,{hour:"numeric",minute:"numeric",hour12:!1});i(10,y=`${n} ${t}, `+o("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&i(12,T=o("tournamentsThumbnail.scheduled")),"Running"==l&&i(12,T=o("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||i(12,T=o("tournamentsThumbnail.finished"))},_,r,s,E,()=>_()]}class Qt extends c{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}a{color:#48952a;text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:auto}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:#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:#2B2B5D;color:#aaaabe;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}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Wt,Zt,n,{session:17,userid:18,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:19}),e&&(e.target&&L(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[17]}set session(e){this.$set({session:e}),v()}get userid(){return this.$$.ctx[18]}set userid(e){this.$set({userid:e}),v()}get title(){return this.$$.ctx[0]}set title(e){this.$set({title:e}),v()}get startdate(){return this.$$.ctx[1]}set startdate(e){this.$set({startdate:e}),v()}get status(){return this.$$.ctx[2]}set status(e){this.$set({status:e}),v()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$set({tourid:e}),v()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$set({thumbnail:e}),v()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$set({userenrolled:e}),v()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(e){this.$set({scorecriteria:e}),v()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(e){this.$set({minbetcount:e}),v()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(e){this.$set({showenrolled:e}),v()}get gameurl(){return this.$$.ctx[9]}set gameurl(e){this.$set({gameurl:e}),v()}get lang(){return this.$$.ctx[19]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",Qt),Qt});
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 y(){}function h(e){return e()}function f(){return Object.create(null)}function p(e){e.forEach(h)}function m(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function A(e,...t){if(null==e)return y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function u(e){return e&&m(e.destroy)?e.destroy:y}function _(e,t){e.appendChild(t)}function L(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function S(e){return document.createTextNode(e)}function w(){return S(" ")}function O(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function a(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}let N;function d(e){N=e}const g=[],e=[],r=[],i=[],E=Promise.resolve();let b=!1;function T(e){r.push(e)}let o=!1;const s=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),p(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T))}}(t.$$)}for(d(null),g.length=0;e.length;)e.pop()();for(let e=0;e<r.length;e+=1){const n=r[e];s.has(n)||(s.add(n),n())}}while(r.length=0,g.length);for(;i.length;)i.pop()();b=!1,o=!1,s.clear()}}const I=new Set;function l(r,e,t,n,i,o,s=[-1]){var a,u=N;d(r);const l=r.$$={fragment:null,ctx:null,props:o,update:y,not_equal:i,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:f(),dirty:s,skip_bound:!1};let c=!1;if(l.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return l.ctx&&i(l.ctx[e],l.ctx[e]=n)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(g.push(e),b||(b=!0,E.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],l.update(),c=!0,p(l.before_update),l.fragment=!!n&&n(l.ctx),e.target){if(e.hydrate){const y=(n=e.target,Array.from(n.childNodes));l.fragment&&l.fragment.l(y),y.forEach(P)}else l.fragment&&l.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(I.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,n),r||T(()=>{var e=o.map(h).filter(m);s?s.push(...e):p(e),t.$$.on_mount=[]}),a.forEach(T)}(r,e.target,e.anchor,e.customElement),v()}d(u)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){p(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(p(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=y}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.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 M(r,i=y){let o;const s=[];function a(e){if(n(r,e)&&(r=e,o)){const e=!R.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),R.push(t,r)}if(e){for(let e=0;e<R.length;e+=2)R[e][0](R[e+1]);R.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=y){const n=[e,t];return s.push(n),1===s.length&&(o=i(a)||y),e(r),()=>{var e=s.indexOf(n);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function U(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:M(t,t=>{let n=!1;const r=[];let i=0,o=y;const s=()=>{var e;i||(o(),e=a(u?r[0]:r,t),c?t(e):o=m(e)?e:y)},e=l.map((e,t)=>A(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){p(e),o()}}).subscribe}}var D=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===$));var t},$="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(e,t){return!1!==t.clone&&t.isMergeableObject(e)?V(Array.isArray(e)?[]:{},e,t):e}function G(e,t,n){return e.concat(t).map(function(e){return k(e,n)})}function x(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function F(e,t){try{return t in e}catch(e){return!1}}function j(r,i,o){var s={};return o.isMergeableObject(r)&&x(r).forEach(function(e){s[e]=k(r[e],o)}),x(i).forEach(function(t){var e,n;(!F(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(F(r,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return V;var e=o.customMerge(t);return"function"==typeof e?e:V}()(r[t],i[t],o):s[t]=k(i[t],o))}),s}function V(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||G,n.isMergeableObject=n.isMergeableObject||D,n.cloneUnlessOtherwiseSpecified=k;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):j(e,t,n):k(t,n)}V.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return V(e,t,n)},{})};var X=V,z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Y,K,H,q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Z(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function W(e){return e.type===K.literal}function Q(e){return e.type===K.number}function J(e){return e.type===K.date}function ee(e){return e.type===K.time}function te(e){return e.type===K.select}function ne(e){return e.type===K.plural}function re(e){return e.type===K.tag}function ie(e){return e&&"object"==typeof e&&e.type===H.number}function oe(e){return e&&"object"==typeof e&&e.type===H.dateTime}(Le=Y=Y||{})[Le.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Le[Le.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Le[Le.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Le[Le.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Le[Le.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Le[Le.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Le[Le.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Le[Le.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Le[Le.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Le[Le.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Le[Le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Le[Le.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Le[Le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Le[Le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Le[Le.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Le[Le.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Le[Le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Le[Le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Le[Le.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Le[Le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Le[Le.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Le[Le.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Le[Le.INVALID_TAG=23]="INVALID_TAG",Le[Le.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Le[Le.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Le[Le.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Pe=K=K||{})[Pe.literal=0]="literal",Pe[Pe.argument=1]="argument",Pe[Pe.number=2]="number",Pe[Pe.date=3]="date",Pe[Pe.time=4]="time",Pe[Pe.select=5]="select",Pe[Pe.plural=6]="plural",Pe[Pe.pound=7]="pound",Pe[Pe.tag=8]="tag",(Se=H=H||{})[Se.number=0]="number",Se[Se.dateTime=1]="dateTime";var se=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ae=/(?:[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 ue,le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,he=/^(@+)?(\+|#+)?$/g,fe=/(\*)(0+)|(#+)(0+)|(0+)/g,pe=/^(0+)$/;function me(e){var r={};return e.replace(he,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function de(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 ge(e){return de(e)||{}}function Ee(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=q(q(q({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return q(q({},e),ge(t))},{}));continue;case"engineering":s=q(q(q({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return q(q({},e),ge(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.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(fe,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&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(pe.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(ce.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ce,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=q(q({},s),me(i.options[0])))}else he.test(i.stem)?s=q(q({},s),me(i.stem)):((r=de(i.stem))&&(s=q(q({},s),r)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!pe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=q(q({},s),r)))}return s}var ye=new RegExp("^"+se.source+"*"),be=new RegExp(se.source+"*$");function Te(e,t){return{start:e,end:t}}var ve=!!String.prototype.startsWith,_e=!!String.fromCodePoint,Ae=!!Object.fromEntries,Le=!!String.prototype.codePointAt,Pe=!!String.prototype.trimStart,Se=!!String.prototype.trimEnd,we=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},se=!0;try{se="a"===(null===(ue=$e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ue?void 0:ue[0])}catch(y){se=!1}var Oe,Ce,Ne=ve?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ie=_e?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Re=Ae?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},Me=Le?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,i=e.charCodeAt(t);return i<55296||56319<i||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},Ue=Pe?function(e){return e.trimStart()}:function(e){return e.replace(ye,"")},De=Se?function(e){return e.trimEnd()}:function(e){return e.replace(be,"")};function $e(e,t){return new RegExp(e,t)}Ce=se?(Oe=$e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Oe.lastIndex=t,null!==(e=Oe.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var i=Me(e,t);if(void 0===i||Fe(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return Ie.apply(void 0,r)};var ke=(Ge.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ge.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.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(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,Te(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&xe(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:K.pound,location:Te(o,this.clonePosition())})}}}return{val:r,err:null}},Ge.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:K.literal,value:"<"+r+"/>",location:Te(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xe(this.char()))return this.error(Y.INVALID_TAG,Te(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(Y.UNMATCHED_CLOSING_TAG,Te(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:K.tag,value:r,children:e,location:Te(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,Te(t,this.clonePosition())))}return this.error(Y.UNCLOSED_TAG,Te(n,this.clonePosition()))}return this.error(Y.INVALID_TAG,Te(n,this.clonePosition()))},Ge.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())},Ge.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=Te(n,this.clonePosition());return{val:{type:K.literal,value:r,location:n},err:null}},Ge.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(xe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ge.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Ie.apply(void 0,t)},Ge.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Ie(n))},Ge.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Y.EMPTY_ARGUMENT,Te(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Y.MALFORMED_ARGUMENT,Te(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:K.argument,value:r,location:Te(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Y.MALFORMED_ARGUMENT,Te(n,this.clonePosition()))}},Ge.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Ce(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:Te(e,this.clonePosition())}},Ge.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Y.EXPECT_ARGUMENT_TYPE,Te(o,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=De(f.val)).length)return this.error(Y.EXPECT_ARGUMENT_STYLE,Te(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:Te(l,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var c=Te(r,this.clonePosition());if(u&&Ne(null==u?void 0:u.style,"::",0)){l=Ue(u.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?f:{val:{type:K.number,value:n,location:c,style:f.val},err:null};if(0===l.length)return this.error(Y.EXPECT_DATE_TIME_SKELETON,c);var h={type:H.dateTime,pattern:l,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},l.replace(ae,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):{}};return{val:{type:"date"===s?K.date:K.time,value:n,location:c,style:h},err:null}}return{val:{type:"number"===s?K.number:"date"===s?K.date:K.time,value:n,location:c,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,Te(u,q({},u)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Te(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Te(r,this.clonePosition());return"select"===s?{val:{type:K.select,value:n,options:Re(c.val),location:p},err:null}:{val:{type:K.plural,value:n,options:Re(c.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(Y.INVALID_ARGUMENT_TYPE,Te(o,a))}},Ge.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Te(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ge.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Te(n,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}},Ge.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(le).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Y.INVALID_NUMBER_SKELETON,t)}return{val:{type:H.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ee(n):{}},err:null}},Ge.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,u=r.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Te(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Te(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;l=this.tryParseArgumentClose(h);if(l.err)return l;o.push([a,{value:c.val,location:Te(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===o.length?this.error("select"===t?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Te(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Y.MISSING_OTHER_CLAUSE,Te(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ge.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=Te(r,this.clonePosition());return i?we(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},Ge.prototype.offset=function(){return this.position.offset},Ge.prototype.isEOF=function(){return this.offset()===this.message.length},Ge.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ge.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Me(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ge.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ge.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))},Ge.prototype.bumpIf=function(e){if(Ne(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ge.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ge.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ge.prototype.bumpSpace=function(){for(;!this.isEOF()&&Fe(this.char());)this.bump()},Ge.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ge);function Ge(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function xe(e){return 97<=e&&e<=122||65<=e&&e<=90}function Fe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function je(e,t){t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new ke(e,t).parse();if(n.err){e=SyntaxError(Y[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,te(e)||ne(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Q(e)&&ie(e.style)||(J(e)||ee(e))&&oe(e.style)?delete e.style.location:re(e)&&n(e.children)})}(n.val),n.val}function Ve(e,t){var n=t&&t.cache?t.cache:qe,r=t&&t.serializer?t.serializer:Ye;return(t&&t.strategy?t.strategy:function(e,t){return Be(e,this,1===e.length?Xe:ze,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Xe(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function ze(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function Be(e,t,n,r,i){return n.bind(t,e,r,i)}var Ye=function(){return JSON.stringify(arguments)};function Ke(){this.cache=Object.create(null)}Ke.prototype.has=function(e){return e in this.cache},Ke.prototype.get=function(e){return this.cache[e]},Ke.prototype.set=function(e,t){this.cache[e]=t};var He,qe={create:function(){return new Ke}},Ze={variadic:function(e,t){return Be(e,this,ze,t.cache.create(),t.serializer)},monadic:function(e,t){return Be(e,this,Xe,t.cache.create(),t.serializer)}};(se=He=He||{}).MISSING_VALUE="MISSING_VALUE",se.INVALID_VALUE="INVALID_VALUE",se.MISSING_INTL_API="MISSING_INTL_API";var We,Qe,Je,et,tt,nt=(B(lt,tt=Error),lt.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},lt),rt=(B(ut,et=nt),ut),it=(B(at,Je=nt),at),ot=(B(st,Qe=nt),st);function st(e,t){return Qe.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',He.MISSING_VALUE,t)||this}function at(e,t,n){return Je.call(this,'Value for "'+e+'" must be of type '+t,He.INVALID_VALUE,n)||this}function ut(e,t,n,r){return et.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',He.INVALID_VALUE,r)||this}function lt(e,t,n){e=tt.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function ct(e,t,n,r,i,o,s){if(1===e.length&&W(e[0]))return[{type:We.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(W(c))a.push({type:We.literal,value:c.value});else if(c.type===K.pound)"number"==typeof o&&a.push({type:We.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new ot(h,s);var f=i[h];if(c.type===K.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?We.literal:We.object,value:f});else if(J(c)){var p="string"==typeof c.style?r.date[c.style]:oe(c.style)?c.style.parsedOptions:void 0;a.push({type:We.literal,value:n.getDateTimeFormat(t,p).format(f)})}else if(ee(c))p="string"==typeof c.style?r.time[c.style]:oe(c.style)?c.style.parsedOptions:void 0,a.push({type:We.literal,value:n.getDateTimeFormat(t,p).format(f)});else if(Q(c))(p="string"==typeof c.style?r.number[c.style]:ie(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:We.literal,value:n.getNumberFormat(t,p).format(f)});else{if(re(c)){var m=c.children,d=c.value,h=i[d];if("function"!=typeof h)throw new it(d,"function",s);m=h(ct(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?We.literal:We.object,value:e}}))}if(te(c)){if(!(g=c.options[f]||c.options.other))throw new rt(c.value,f,Object.keys(c.options),s);a.push.apply(a,ct(g.value,t,n,r,i))}else if(ne(c)){if(!(g=c.options["="+f])){if(!Intl.PluralRules)throw new nt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',He.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new rt(c.value,f,Object.keys(c.options),s);a.push.apply(a,ct(g.value,t,n,r,i,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===We.literal&&t.type===We.literal?n.value+=t.value:e.push(t),e},[])}function ht(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(se=We=We||{})[se.literal=0]="literal",se[se.object=1]="object";var ft=(Object.defineProperty(pt,"defaultLocale",{get:function(){return pt.memoizedDefaultLocale||(pt.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),pt.memoizedDefaultLocale},enumerable:!1,configurable:!0}),pt.memoizedDefaultLocale=null,pt.__parse=je,pt.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"}}},pt);function pt(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=pt.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===We.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return ct(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!pt.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=pt.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}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=pt.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?q(q(q({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=q(q({},n[t]),r[t]||{}),e},{})):n),e},q({},i)):i),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:Ve(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Z([void 0],t)))},{cache:ht((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Ze.variadic}),getDateTimeFormat:Ve(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Z([void 0],t)))},{cache:ht(r.dateTime),strategy:Ze.variadic}),getPluralRules:Ve(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Z([void 0],t)))},{cache:ht(r.pluralRules),strategy:Ze.variadic})}}const mt={},dt=(t,n)=>{if(null!=n){if(n in mt&&t in mt[n])return mt[n][t];var r,i,o=It(n);for(let e=0;e<o.length;e++){var s=(r=o[e],i=t,yt(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return gt[e]||null}(r),i):null);if(s)return r=t,i=n,(s=s)&&(i in mt||(mt[i]={}),r in mt[i]||(mt[i][r]=s),s)}}};let gt;const Et=M({});function yt(e){return e in gt}function bt(t,...n){delete mt[t],Et.update(e=>(e[t]=X.all([e[t]||{},...n]),e))}U([Et],([e])=>Object.keys(e)),Et.subscribe(e=>gt=e);const Tt={};function vt(e){return Tt[e]}function _t(e){return It(e).some(e=>{return null===(e=vt(e))||void 0===e?void 0:e.size})}const At={};function Lt(e){if(!_t(e))return e in At?At[e]:void 0;const t=It(e).map(e=>{var t=vt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return At[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){Tt[e].delete(t),0===Tt[e].size&&delete Tt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>bt(t,...e))}(e))).then(()=>_t(e)?Lt(e):void delete At[e]),At[e]}function Pt(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const St={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const wt=M(!1);let Ot;const Ct=M(null);function Nt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function It(e,t=St.fallbackLocale){e=Nt(e);return t?[...new Set([...e,...Nt(t)])]:e}Ct.subscribe(e=>{Ot=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Rt=Ct.set;Ct.set=t=>{if(function(e){if(null!=e){var t=It(e);for(let e=0;e<t.length;e++){var n=t[e];if(yt(n))return n}}}(t)&&_t(t)){var{loadingDelay:n}=St;let e;return"undefined"!=typeof window&&null!=Ot&&n?e=window.setTimeout(()=>wt.set(!0),n):wt.set(!0),Lt(t).then(()=>{Rt(t)}).finally(()=>{clearTimeout(e),wt.set(!1)})}return Rt(t)},Ct.update=e=>Rt(e(Ot));const Mt=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Ut=(e,t)=>{var{formats:n}=St;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Dt=Mt(e=>{var{locale:t,format:n}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Ut("number",n)),new Intl.NumberFormat(t,e)}),$t=Mt(e=>{var{locale:t,format:n}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Ut("date",n):0===Object.keys(e).length&&(e=Ut("date","short")),new Intl.DateTimeFormat(t,e)}),kt=Mt(e=>{var{locale:t,format:n}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Ut("time",n):0===Object.keys(e).length&&(e=Ut("time","short")),new Intl.DateTimeFormat(t,e)}),Gt=Mt((e,t=Ot)=>new ft(e,t,St.formats,{ignoreTag:St.ignoreTag})),xt=U([Ct,Et],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=Ot,default:i}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=dt(e,r);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else St.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${It(r).join('", "')}".${_t(Ot)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!n)return o;let s=o;try{s=Gt(o,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});U([Ct],()=>(e,t)=>((e={})=>{var{locale:t=Ot}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),U([Ct],()=>(e,t)=>((e={})=>{var{locale:t=Ot}=e,e=Pt(e,["locale"]);return $t(Object.assign({locale:t},e))})(t).format(e)),U([Ct],()=>(e,t)=>((e={})=>{var{locale:t=Ot}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),U([Ct,Et],()=>(e,t=Ot)=>dt(e,t));const Ft={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds"}},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ŞLAMA SAATİ:",mostRounds:"MostRounds"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"MostRounds"}}};function jt(n){let r,i,o,s;return{c(){r=t("div"),i=S(n[12]),O(r,"class","Status")},m(e,t){L(e,r,t),_(r,i),o||(s=u(n[15].call(null,r)),o=!0)},p(e,t){4096&t&&C(i,e[12])},d(e){e&&P(r),o=!1,s()}}}function Vt(e){let n,r=e[5]&&Xt(e);return{c(){r&&r.c(),n=S("")},m(e,t){r&&r.m(e,t),L(e,n,t)},p(e,t){e[5]?r?r.p(e,t):(r=Xt(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&P(n)}}}function Xt(e){let n,r,i=e[13]("tournamentsThumbnail.enrolled")+"";return{c(){n=t("div"),r=S(i),O(n,"class","Enrolled")},m(e,t){L(e,n,t),_(n,r)},p(e,t){8192&t&&i!==(i=e[13]("tournamentsThumbnail.enrolled")+"")&&C(r,i)},d(e){e&&P(n)}}}function zt(n){let r,i,o,s;return{c(){r=t("div"),O(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),a(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){L(e,r,t),o||(s=u(n[15].call(null,r)),o=!0)},p(e,t){4&t&&i!==(i="CardImg "+("Closing"==e[2]||"Closed"==e[2]?"CardImgFinished":""))&&O(r,"class",i)},d(e){e&&P(r),o=!1,s()}}}function Bt(n){let r,i,o,s;return{c(){r=t("div"),O(r,"class",i="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),a(r,"background-image","url('"+n[4]+"')")},m(e,t){L(e,r,t),o||(s=u(n[15].call(null,r)),o=!0)},p(e,t){4&t&&i!==(i="CardImg "+("Closing"==e[2]||"Closed"==e[2]?"CardImgFinished":""))&&O(r,"class",i),16&t&&a(r,"background-image","url('"+e[4]+"')")},d(e){e&&P(r),o=!1,s()}}}function Yt(n){let r,i,o,s,a;return{c(){r=t("div"),i=S(n[10]),O(r,"class","Date")},m(e,t){L(e,r,t),_(r,i),s||(a=u(o=n[14].call(null,r,n[1])),s=!0)},p(e,t){1024&t&&C(i,e[10]),o&&m(o.update)&&2&t&&o.update.call(null,e[1])},d(e){e&&P(r),s=!1,a()}}}function Kt(i){let o,s,a,u,l,c,h,f,p,m,d,g,E,n=i[13]("tournamentsThumbnail.scoreCriteria")+"",r=i[13]("tournamentsThumbnail.seegames")+"",y=i[13]("tournamentsThumbnail.here")+"";function b(e){return"BetCount"==e[6]?qt:Ht}let T=b(i),v=T(i);return{c(){o=t("div"),s=t("p"),a=S(n),u=S(":\n "),v.c(),l=w(),c=t("div"),h=t("p"),f=S(r),p=w(),m=t("a"),d=S(y),O(o,"class","ScoreCriteria"),O(m,"href",i[9]),O(m,"target","_blank"),O(c,"class","Games")},m(e,t){var n,r;L(e,o,t),_(o,s),_(s,a),_(s,u),v.m(s,null),L(e,l,t),L(e,c,t),_(c,h),_(h,f),_(h,p),_(h,m),_(m,d),g||(n=m,r=i[20],n.addEventListener("click",r,void 0),E=()=>n.removeEventListener("click",r,void 0),g=!0)},p(e,t){8192&t&&n!==(n=e[13]("tournamentsThumbnail.scoreCriteria")+"")&&C(a,n),T===(T=b(e))&&v?v.p(e,t):(v.d(1),v=T(e),v&&(v.c(),v.m(s,null))),8192&t&&r!==(r=e[13]("tournamentsThumbnail.seegames")+"")&&C(f,r),8192&t&&y!==(y=e[13]("tournamentsThumbnail.here")+"")&&C(d,y),512&t&&O(m,"href",e[9])},d(e){e&&P(o),v.d(),e&&P(l),e&&P(c),g=!1,E()}}}function Ht(e){let n;return{c(){n=S(e[6])},m(e,t){L(e,n,t)},p(e,t){64&t&&C(n,e[6])},d(e){e&&P(n)}}}function qt(e){let n,r,i,o,s,a,u=e[13]("tournamentsThumbnail.mostRounds")+"",l=e[13]("tournamentsThumbnail.minbet")+"";return{c(){n=S(u),r=S("\n ("),i=S(l),o=S(": "),s=S(e[7]),a=S(")")},m(e,t){L(e,n,t),L(e,r,t),L(e,i,t),L(e,o,t),L(e,s,t),L(e,a,t)},p(e,t){8192&t&&u!==(u=e[13]("tournamentsThumbnail.mostRounds")+"")&&C(n,u),8192&t&&l!==(l=e[13]("tournamentsThumbnail.minbet")+"")&&C(i,l),128&t&&C(s,e[7])},d(e){e&&P(n),e&&P(r),e&&P(i),e&&P(o),e&&P(s),e&&P(a)}}}function Zt(e){let n,r,i,o,s,a,u,l,c,h=e[2]&&jt(e),f="true"==e[8]&&Vt(e);function p(e){return e[4]?Bt:zt}let m=p(e),d=m(e),g=e[1]&&Yt(e),E=e[11]&&Kt(e);return{c(){n=t("div"),h&&h.c(),r=w(),f&&f.c(),i=w(),d.c(),o=w(),s=t("div"),a=t("div"),u=S(e[0]),l=w(),g&&g.c(),c=w(),E&&E.c(),this.c=y,O(a,"class","Title"),O(s,"class","Details"),O(n,"class","Thumbnail")},m(e,t){L(e,n,t),h&&h.m(n,null),_(n,r),f&&f.m(n,null),_(n,i),d.m(n,null),_(n,o),_(n,s),_(s,a),_(a,u),_(s,l),g&&g.m(s,null),_(s,c),E&&E.m(s,null)},p(e,[t]){e[2]?h?h.p(e,t):(h=jt(e),h.c(),h.m(n,r)):h&&(h.d(1),h=null),"true"==e[8]?f?f.p(e,t):(f=Vt(e),f.c(),f.m(n,i)):f&&(f.d(1),f=null),m===(m=p(e))&&d?d.p(e,t):(d.d(1),d=m(e),d&&(d.c(),d.m(n,o))),1&t&&C(u,e[0]),e[1]?g?g.p(e,t):(g=Yt(e),g.c(),g.m(s,c)):g&&(g.d(1),g=null),e[11]?E?E.p(e,t):(E=Kt(e),E.c(),E.m(s,null)):E&&(E.d(1),E=null)},i:y,o:y,d(e){e&&P(n),h&&h.d(),f&&f.d(),d.d(),g&&g.d(),E&&E.d()}}}function Wt(e,t,i){let o;var n=xt;e.$$.on_destroy.push(A(n,e=>i(13,o=e)));let{session:r=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:u=""}=t,{status:l=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:f=""}=t,{scorecriteria:p=""}=t,{minbetcount:m=""}=t,{showenrolled:d="false"}=t,{gameurl:g=""}=t,{lang:E="en"}=t,y,b=!1,T="";Object.keys(Ft).forEach(e=>{bt(e,Ft[e])});const v=e=>{e.data&&"SessionID"==e.data.type&&i(11,b=!0)},_=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};return t=()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)}),function(){if(!N)throw new Error("Function called outside component initialization");return N}().$$.on_mount.push(t),e.$$set=e=>{"session"in e&&i(17,r=e.session),"userid"in e&&i(18,s=e.userid),"title"in e&&i(0,a=e.title),"startdate"in e&&i(1,u=e.startdate),"status"in e&&i(2,l=e.status),"tourid"in e&&i(3,c=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,f=e.userenrolled),"scorecriteria"in e&&i(6,p=e.scorecriteria),"minbetcount"in e&&i(7,m=e.minbetcount),"showenrolled"in e&&i(8,d=e.showenrolled),"gameurl"in e&&i(9,g=e.gameurl),"lang"in e&&i(19,E=e.lang)},e.$$.update=()=>{131072&e.$$.dirty&&r&&(0<r.length&&"false"!=r?i(11,b=!0):i(11,b=!1))},[a,u,l,c,h,f,p,m,d,g,"",b,T,o,()=>{let e=new Date(u),t=new Intl.DateTimeFormat(E,{month:"long"}).format(e),n=e.getDate(),r=e.toLocaleString(E,{hour:"numeric",minute:"numeric",hour12:!1});i(10,y=`${n} ${t}, `+o("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&i(12,T=o("tournamentsThumbnail.scheduled")),"Running"==l&&i(12,T=o("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||i(12,T=o("tournamentsThumbnail.finished"))},_,r,s,E,()=>_()]}class Qt extends c{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}a{color:#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:#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:#2B2B5D;color:#aaaabe;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}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Wt,Zt,n,{session:17,userid:18,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:19}),e&&(e.target&&L(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[17]}set session(e){this.$set({session:e}),v()}get userid(){return this.$$.ctx[18]}set userid(e){this.$set({userid:e}),v()}get title(){return this.$$.ctx[0]}set title(e){this.$set({title:e}),v()}get startdate(){return this.$$.ctx[1]}set startdate(e){this.$set({startdate:e}),v()}get status(){return this.$$.ctx[2]}set status(e){this.$set({status:e}),v()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$set({tourid:e}),v()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$set({thumbnail:e}),v()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$set({userenrolled:e}),v()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(e){this.$set({scorecriteria:e}),v()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(e){this.$set({minbetcount:e}),v()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(e){this.$set({showenrolled:e}),v()}get gameurl(){return this.$$.ctx[9]}set gameurl(e){this.$set({gameurl:e}),v()}get lang(){return this.$$.ctx[19]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",Qt),Qt});
2
2
  //# sourceMappingURL=casino-tournaments-thumbnail.js.map