@everymatrix/player-account-balance-modal 1.37.3 → 1.37.4

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.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,6 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
- | 1.37.2 | Mon Aug 12 2024 | player-account-balance-modal | fix(EMFE-29110)(player-account-balance-modal): change the calculator... <br /> fix(EMFE-31064)(casino-header-controller,casino-slider,player-account-balance-modal,player-accound-menu,player-deposit): Change deposit TR translation from DEPOZITO to PARA YATIR <br /> fix(EMFE-29811)(player-account-balance-modal): delete product type condition now that its not coming from apijson <br /> fix(EMFE-25709)(player-account-balance-modal): wait for the displaybalanceoption flag even if its an empty string <br /> fix(EMFE-25709)(player-account-balance-modal): wait for the displaybalanceoption flag even if its an empty string <br /> fix(EMFE-25709)(player-account-balance-modal): wait for the displaybalanceoption flag even if its an empty string <br /> fix(EMFE-25709)(player-account-balance-modal): wait for the displaybalanceoption flag even if its an empty string <br /> fix(EMFE-27480)(player-account-balance-modal): make the formatbalance in the moment when the data is fetched <br /> fix(EMFE-27480)(player-account-balance-modal): make the formatbalance in the moment when the data is fetched <br /> fix(EMFE-27322)(player-account-balance-modal): subscribe to balance update for gm1.6 <br /> fix(EMFE-26538)(casino-header-controller,player-account-balance-modal): handled the case when displaybalanceoption is empty for operators that dont use product Type split |
7
6
  | 1.31.0 | Wed May 22 2024 | player-account-balance-modal | fix(EMFE-29110)(player-account-balance-modal): change the calculator... <br /> fix(EMFE-31064)(casino-header-controller,casino-slider,player-account-balance-modal,player-accound-menu,player-deposit): Change deposit TR translation from DEPOZITO to PARA YATIR |
8
7
  | 1.27.2 | Thu Feb 15 2024 | player-account-balance-modal | fix(EMFE-29811)(player-account-balance-modal): delete product type condition now that its not coming from apijson |
9
8
  | 1.20.11 | Thu Nov 16 2023 | player-account-balance-modal | wait for the displaybalanceoption flag even if its an empty string |
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function E(){}function _(e){return e()}function H(){return Object.create(null)}function G(e){e.forEach(_)}function M(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function x(e,...t){if(null==e)return E;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(e,t){e.appendChild(t)}function ie(e,t,n){e.insertBefore(t,n||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function O(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function le(e){return document.createTextNode(e)}function ce(){return le(" ")}function k(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function he(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ue(e,t){e.data!==(t=""+t)&&(e.data=t)}let N;function p(e){N=e}const d=[],D=[];let o=[];const P=[],L=Promise.resolve();let R=!1;function $(e){o.push(e)}const U=new Set;let a=0;function f(){if(0===a){const r=N;do{try{for(;a<d.length;){const r=d[a];a++,p(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),G(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach($))}}catch(r){throw d.length=0,a=0,r}for(p(null),d.length=0,a=0;D.length;)D.pop()();for(let e=0;e<o.length;e+=1){var n=o[e];U.has(n)||(U.add(n),n())}}while(o.length=0,d.length);for(;P.length;)P.pop()();R=!1,U.clear(),p(r)}}const F=new Set;function j(r,e,t,n,a,o,i,s=[-1]){var l=N;p(r);const c=r.$$={fragment:null,ctx:[],props:o,update:E,not_equal:a,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:H(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let h=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&a(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),h)&&(n=e,-1===(e=r).$$.dirty[0]&&(d.push(e),R||(R=!0,L.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),h=!0,G(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){o=e.target;const E=Array.from(o.childNodes);c.fragment&&c.fragment.l(E),E.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(F.delete(s),s.i(void 0));var u=r,i=e.target,t=e.anchor,n=e.customElement,{fragment:o,after_update:s}=u.$$;o&&o.m(i,t),n||$(()=>{var e=u.$$.on_mount.map(_).filter(M);u.$$.on_destroy?u.$$.on_destroy.push(...e):G(e),u.$$.on_mount=[]}),s.forEach($),f()}p(l)}let V;"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(_).filter(M);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){G(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],a=[];o.forEach(e=>(-1===n.indexOf(e)?r:a).push(e)),a.forEach(e=>e()),o=r}G(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=E}$on(e,t){if(!M(t))return E;const 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 n=[];function X(r,a=E){let o;const i=new Set;function s(e){if(C(r,e)&&(r=e,o)){const e=!n.length;for(const e of i)e[1](),n.push(e,r);if(e){for(let e=0;e<n.length;e+=2)n[e][0](n[e+1]);n.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=E){const n=[e,t];return i.add(n),1===i.size&&(o=a(s)||E),e(r),()=>{i.delete(n),0===i.size&&o&&(o(),o=null)}}}}function e(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,h=s.length<2;return{subscribe:X(t,t=>{let n=!1;const r=[];let a=0,o=E;const i=()=>{var e;a||(o(),e=s(l?r[0]:r,t),h?t(e):o=M(e)?e:E)},e=c.map((e,t)=>x(e,e=>{r[t]=e,a&=~(1<<t),n&&i()},()=>{a|=1<<t}));return n=!0,i(),function(){G(e),o(),n=!1}}).subscribe}}function z(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===K);var t}var K="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function Y(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function Z(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function W(e,t){try{return t in e}catch(e){return!1}}function q(r,a,o){var i={};return o.isMergeableObject(r)&&Z(r).forEach(function(e){i[e]=s(r[e],o)}),Z(a).forEach(function(e){var t,n;(!W(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(W(r,e)&&o.isMergeableObject(a[e])?i[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(r[e],a[e],o):i[e]=s(a[e],o))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Y,n.isMergeableObject=n.isMergeableObject||z,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):q(e,t,n):s(t,n)}l.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,n)},{});throw new Error("first argument should be an array")};var J=l,Q=function(e,t){return(Q=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 ee(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}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,b,g,y=function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function te(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||((r=r||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function ne(e){return e.type===b.literal}function re(e){return e.type===b.number}function ae(e){return e.type===b.date}function pe(e){return e.type===b.time}function de(e){return e.type===b.select}function fe(e){return e.type===b.plural}function me(e){return e.type===b.tag}function ge(e){return e&&"object"==typeof e&&e.type===g.number}function be(e){return e&&"object"==typeof e&&e.type===g.dateTime}(r=m=m||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=b=b||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=g=g||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ye=/(?:[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 Be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ee=/^(@+)?(\+|#+)?[rs]?$/g,Te=/(\*)(0+)|(#+)(0+)|(0+)/g,we=/^(0+)$/;function Se(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Ee,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 Ae(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _e(e){return Ae(e)||{}}function He(e){for(var i={},t=0,n=e;t<n.length;t++){var r,a=n[t];switch(a.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=a.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=y(y(y({},i),{notation:"scientific"}),a.options.reduce(function(e,t){return y(y({},e),_e(t))},{}));continue;case"engineering":i=y(y(y({},i),{notation:"engineering"}),a.options.reduce(function(e,t){return y(y({},e),_e(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(a.options[0]);continue;case"integer-width":if(1<a.options.length)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Te,function(e,t,n,r,a,o){if(t)i.minimumIntegerDigits=n.length;else{if(r&&a)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(we.test(a.stem))i.minimumIntegerDigits=a.stem.length;else if(ve.test(a.stem)){if(1<a.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(ve,function(e,t,n,r,a,o){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:a&&o?(i.minimumFractionDigits=a.length,i.maximumFractionDigits=a.length+o.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var o=a.options[0];"w"===o?i=y(y({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=y(y({},i),Se(o)))}else Ee.test(a.stem)?i=y(y({},i),Se(a.stem)):((o=Ae(a.stem))&&(i=y(y({},i),o)),(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)),!we.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(a.stem))&&(i=y(y({},i),r)))}return i}var Me={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Ce=new RegExp("^".concat(r.source,"*")),Oe=new RegExp("".concat(r.source,"*$"));function B(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Pe=!!String.fromCodePoint,Le=!!Object.fromEntries,i=!!String.prototype.codePointAt,Re=!!String.prototype.trimStart,Ne=!!String.prototype.trimEnd,Ie=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xe=!0;try{xe="a"===(null==(nt=Xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:nt[0])}catch(E){xe=!1}var De,$e,Ue=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ge=Pe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",a=e.length,o=0;o<a;){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},ke=Le?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n],o=a[0],a=a[1];t[o]=a}return t},Fe=i?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},je=Re?function(e){return e.trimStart()}:function(e){return e.replace(Ce,"")},Ve=Ne?function(e){return e.trimEnd()}:function(e){return e.replace(Oe,"")};function Xe(e,t){return new RegExp(e,t)}$e=xe?(De=Xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return De.lastIndex=t,null!=(t=De.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var a=Fe(e,t);if(void 0===a||Ye(a)||33<=(n=a)&&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(a),t+=65536<=a?2:1}return Ge.apply(void 0,r)};c.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},c.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var a,o=this.char();if(123===o){if((a=this.parseArgument(e,n)).err)return a;r.push(a.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(m.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ke(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a}else if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}else{o=this.clonePosition();this.bump(),r.push({type:b.pound,location:B(o,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),a=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(a,"/>"),location:B(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Ke(this.char())?this.error(m.INVALID_TAG,B(e,this.clonePosition())):(n=this.clonePosition(),a!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,B(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:a,children:t,location:B(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,B(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,B(r,this.clonePosition()))):this.error(m.INVALID_TAG,B(r,this.clonePosition()))},c.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())},c.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var a=this.tryParseQuote(t);if(a)r+=a;else{a=this.tryParseUnquoted(e,t);if(a)r+=a;else{a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}n=B(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},c.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},c.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 Ge.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Ge(n))},c.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},c.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$e(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:B(e,this.clonePosition())}},c.prototype.parseArgumentOptions=function(e,t,n,r){var a,o=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,B(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((u=this.parseSimpleArgStyleIfPossible()).err)return u;if(0===(p=Ve(u.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:B(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(d=B(r,this.clonePosition()),l&&Ue(null==l?void 0:l.style,"::",0)?(f=je(l.style.slice(2)),"number"===i?(u=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?u:{val:{type:b.number,value:n,location:d,style:u.val},err:null}:0===f.length?this.error(m.EXPECT_DATE_TIME_SKELETON,d):(h=f,this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if("j"===a){for(var o=0;r+1<e.length&&e.charAt(r+1)===a;)o++,r++;var i=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Me[t||""]||Me[n||""]||Me["".concat(n,"-001")]||Me["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===a?"H":a}return n}(f,this.locale)),p={type:g.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(a={},h.replace(ye,function(e){var t=e.length;switch(e[0]){case"G":a.era=4===t?"long":5===t?"narrow":"short";break;case"y":a.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":a.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":a.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":a.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][t-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][t-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][t-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][t-1];break;case"k":a.hourCycle="h24",a.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":a.minute=["numeric","2-digit"][t-1];break;case"s":a.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":a.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""}),a):{}},{val:{type:"date"===i?b.date:b.time,value:n,location:d,style:p},err:null})):{val:{type:"number"===i?b.number:"date"===i?b.date:b.time,value:n,location:d,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,B(h,y({},h)));this.bumpSpace();var u,p=this.parseIdentifierIfPossible(),d=0;if("select"!==i&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return u;this.bumpSpace(),p=this.parseIdentifierIfPossible(),d=u.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=B(r,this.clonePosition()),"select"===i?{val:{type:b.select,value:n,options:ke(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:ke(l.val),offset:d,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,B(o,s))}},c.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},c.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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}},c.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(Be).filter(function(e){return 0<e.length});n<r.length;n++){var a=r[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var o=a[0],a=a.slice(1),i=0,s=a;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:g.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?He(n):{}},err:null}},c.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var a=!1,o=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=B(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(a=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;o.push([s,{value:c.val,location:B(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(m.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:o,err:null}},c.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,o=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;a=!0,o=10*o+(i-48),this.bump()}r=B(r,this.clonePosition());return a?Ie(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},c.prototype.offset=function(){return this.position.offset},c.prototype.isEOF=function(){return this.offset()===this.message.length},c.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},c.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Fe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},c.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},c.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))},c.prototype.bumpIf=function(e){if(Ue(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},c.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},c.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},c.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ye(this.char());)this.bump()},c.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var ze=c;function c(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ke(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ye(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ze(e,t){t=y({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new ze(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,de(e)||fe(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else re(e)&&ge(e.style)||(ae(e)||pe(e))&&be(e.style)?delete e.style.location:me(e)&&n(e.children)})}(e.val),e.val}function We(e,t){var n=t&&t.cache?t.cache:rt,r=t&&t.serializer?t.serializer:et;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?qe:Je,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function qe(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(n);return void 0===a&&(a=e.call(this,r),t.set(n,a)),a}function Je(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),a=t.get(n);return void 0===a&&(a=e.apply(this,r),t.set(n,a)),a}function Qe(e,t,n,r,a){return n.bind(t,e,r,a)}var et=function(){return JSON.stringify(arguments)};function tt(){this.cache=Object.create(null)}tt.prototype.get=function(e){return this.cache[e]},tt.prototype.set=function(e,t){this.cache[e]=t};var v,nt,rt={create:function(){return new tt}},at={variadic:function(e,t){return Qe(e,this,Je,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(e,this,qe,t.cache.create(),t.serializer)}};(nt=v=v||{}).MISSING_VALUE="MISSING_VALUE",nt.INVALID_VALUE="INVALID_VALUE",nt.MISSING_INTL_API="MISSING_INTL_API";ee(gt,lt=Error),gt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,ot,it,st,lt,ct=gt,ht=(ee(mt,st=ct),mt),ut=(ee(ft,it=ct),ft),pt=(ee(dt,ot=ct),dt);function dt(e,t){return ot.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),v.MISSING_VALUE,t)||this}function ft(e,t,n){return it.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,n)||this}function mt(e,t,n,r){return st.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),v.INVALID_VALUE,r)||this}function gt(e,t,n){e=lt.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function bt(e,t,n,r,a,o,i){if(1===e.length&&ne(e[0]))return[{type:T.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var h=c[l];if(ne(h))s.push({type:T.literal,value:h.value});else if(h.type===b.pound)"number"==typeof o&&s.push({type:T.literal,value:n.getNumberFormat(t).format(o)});else{var u=h.value;if(!(a&&u in a))throw new pt(u,i);u=a[u];if(h.type===b.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),s.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(ae(h)){var p="string"==typeof h.style?r.date[h.style]:be(h.style)?h.style.parsedOptions:void 0;s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)})}else if(pe(h))p="string"==typeof h.style?r.time[h.style]:be(h.style)?h.style.parsedOptions:r.time.medium,s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)});else if(re(h))(p="string"==typeof h.style?r.number[h.style]:ge(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),s.push({type:T.literal,value:n.getNumberFormat(t,p).format(u)});else{if(me(h)){var d=h.children,f=h.value,m=a[f];if("function"!=typeof m)throw new ut(f,"function",i);f=m(bt(d,t,n,r,a,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(de(h)){if(!(g=h.options[u]||h.options.other))throw new ht(h.value,u,Object.keys(h.options),i);s.push.apply(s,bt(g.value,t,n,r,a))}else if(fe(h)){if(!(g=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new ct('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',v.MISSING_INTL_API,i);var m=n.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),g=h.options[m]||h.options.other}if(!g)throw new ht(h.value,u,Object.keys(h.options),i);s.push.apply(s,bt(g.value,t,n,r,a,u-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===T.literal&&t.type===T.literal?n.value+=t.value:e.push(t),e},[])}function yt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=T=T||{})[r.literal=0]="literal",r[r.object=1]="object";Object.defineProperty(h,"defaultLocale",{get:function(){return h.memoizedDefaultLocale||(h.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),h.memoizedDefaultLocale},enumerable:!1,configurable:!0}),h.memoizedDefaultLocale=null,h.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},h.__parse=Ze,h.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Bt=h;function h(e,t,n,r){var a,o,i=this;if(void 0===t&&(t=h.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=i.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return bt(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=h.resolveLocale(t),"string"==typeof e){if(this.message=e,!h.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=h.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=h.formats,(o=n)?Object.keys(a).reduce(function(e,t){var n,r;return e[t]=(n=a[t],(r=o[t])?y(y(y({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=y(y({},n[t]),r[t]||{}),e},{})):n),e},y({},a)):a),this.formatters=r&&r.formatters||{getNumberFormat:We(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,te([void 0],t,!1)))},{cache:yt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:at.variadic}),getDateTimeFormat:We(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,te([void 0],t,!1)))},{cache:yt(t.dateTime),strategy:at.variadic}),getPluralRules:We(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,te([void 0],t,!1)))},{cache:yt(t.pluralRules),strategy:at.variadic})}}const u={},vt=(e,t,n)=>n&&(t in u||(u[t]={}),e in u[t]||(u[t][e]=n),n),Et=(t,n)=>{if(null!=n){if(n in u&&t in u[n])return u[n][t];var r=Gt(n);for(let e=0;e<r.length;e++){var a=function(e,t){if(!St(e))return null;e=function(e){return Tt[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(a)return vt(t,n,a)}}};let Tt;const wt=X({});function St(e){return e in Tt}function At(t,...n){delete u[t],wt.update(e=>(e[t]=J.all([e[t]||{},...n]),e))}e([wt],([e])=>Object.keys(e)),wt.subscribe(e=>Tt=e);const _t={};function Ht(e){return _t[e]}function Mt(e){return null!=e&&Gt(e).some(e=>{return null==(e=Ht(e))?void 0:e.size})}function Ct(r,e){return Promise.all(e.map(e=>{return t=r,n=e,_t[t].delete(n),0===_t[t].size&&delete _t[t],e().then(e=>e.default||e);var t,n})).then(e=>At(r,...e))}const Ot={};const w={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Pt=X(!1);var Lt=Object.defineProperty,Pe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,xt=(e,t,n)=>t in e?Lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Dt;const $t=X(null);function Ut(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Gt(e,t=w.fallbackLocale){e=Ut(e);return t?[...new Set([...e,...Ut(t)])]:e}function S(){return null!=Dt?Dt:void 0}$t.subscribe(e=>{Dt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const I=Pe(((e,t)=>{for(var n in t=t||{})Nt.call(t,n)&&xt(e,n,t[n]);if(Rt)for(var n of Rt(t))It.call(t,n)&&xt(e,n,t[n]);return e})({},$t),Le({set:t=>{if(t&&function(e){if(null!=e){var t=Gt(e);for(let e=0;e<t.length;e++){var n=t[e];if(St(n))return n}}}(t)&&Mt(t)){var n=w["loadingDelay"];let e;return"undefined"!=typeof window&&null!=S()&&n?e=window.setTimeout(()=>Pt.set(!0),n):Pt.set(!0),function e(t){var n;return Mt(t)?(n=Gt(t).map(e=>{var t=Ht(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Ot[t]=Promise.all(n.map(([e,t])=>Ct(e,t))).then(()=>{if(Mt(t))return e(t);delete Ot[t]}),Ot[t]):t in Ot?Ot[t]:Promise.resolve()}(t).then(()=>{$t.set(t)}).finally(()=>{clearTimeout(e),Pt.set(!1)})}return $t.set(t)}}));var i=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},kt=Object.defineProperty,Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zt=(e,t)=>{for(var n in t=t||{})jt.call(t,n)&&Xt(e,n,t[n]);if(Ft)for(var n of Ft(t))Vt.call(t,n)&&Xt(e,n,t[n]);return e},A=(e,t)=>{var n={};for(r in e)jt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ft)for(var r of Ft(e))t.indexOf(r)<0&&Vt.call(e,r)&&(n[r]=e[r]);return n};const Kt=(e,t)=>{var n=w["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yt=i(e=>{var{locale:t,format:n}=e,e=A(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Kt("number",n)),new Intl.NumberFormat(t,e)}),Zt=i(e=>{var{locale:t,format:n}=e,e=A(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Kt("date",n):0===Object.keys(e).length&&(e=Kt("date","short")),new Intl.DateTimeFormat(t,e)}),Wt=i(e=>{var{locale:t,format:n}=e,e=A(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Kt("time",n):0===Object.keys(e).length&&(e=Kt("time","short")),new Intl.DateTimeFormat(t,e)}),qt=i((e,t=S())=>new Bt(e,t,w.formats,{ignoreTag:w.ignoreTag})),Jt=e([I,wt],()=>(e,t={})=>{var n,r;let a=t;"object"==typeof e&&(e=(a=e).id);var{values:o,locale:i=S(),default:s}=a;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Et(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=w).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!o)return l;let c=l;try{c=qt(l,i).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Qt(e,t){At(e,t)}e([I],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=A(e,["locale"]);return Wt(zt({locale:t},e))})(t).format(e)),e([I],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=A(e,["locale"]);return Zt(zt({locale:t},e))})(t).format(e)),e([I],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=A(e,["locale"]);return Yt(zt({locale:t},e))})(t).format(e)),e([I,wt],()=>(e,t=S())=>Et(e,t));const en={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje novca",bonusBalance:"Stanje bonusa",depositButton:"Uplata"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"},"pt-br":{balanceTitle:"Seu balanço",totalBalance:"Balanço total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo em títulos",depositButton:"Depósito"},"es-mx":{balanceTitle:"Su saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo en bonos",depositButton:"Depósito"}};var tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nn(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var rn=nn(function(E,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:tn:globalThis,P=t.setTimeout,L=t.clearTimeout,R=t.XMLHttpRequest,a=t.XDomainRequest,n=t.ActiveXObject,o=t.EventSource,i=t.document,u=t.Promise,p=t.fetch,s=t.Response,d=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}function h(){}function N(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=h,this.onload=h,this.onerror=h,this.onreadystatechange=h,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=h}function m(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var a=n[r].split(": "),o=a.shift(),a=a.join(": ");t[m(o)]=a}this._map=t}function I(){}function b(e){this._headers=e}function x(){}function D(){this._listeners=Object.create(null)}function y(e){P(function(){throw e},0)}function B(e){this.type=e,this.target=void 0}function $(e,t){B.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function U(e,t){B.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function G(e,t){B.call(this,e),this.error=t.error}function k(e,t){return e=null==e?t:parseInt(e,10),V(e=e!=e?t:e)}function F(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){y(e)}}"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==R&&null!=n&&(R=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=p,p=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",a=this.bitsNeeded,o=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==a&&(s<128||191<s||!t(o<<6|63&s,a-6,n(a,o)))&&(a=0,o=65533,r+=String.fromCharCode(o)),0===a?(o=0<=s&&s<=127?(a=0,s):192<=s&&s<=223?(a=6,31&s):224<=s&&s<=239?(a=12,15&s):240<=s&&s<=247?(a=18,7&s):(a=0,65533),0===a||t(o,a,n(a,o))||(a=0,o=65533)):(a-=6,o=o<<6|63&s),0===a&&(o<=65535?r+=String.fromCharCode(o):r=(r+=String.fromCharCode(55296+(o-65535-1>>10)))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=a,this.codePoint=o,r},null!=d&&null!=l&&function(){try{return"test"===(new d).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(d=c),N.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:h}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(L(r),r=0),a.readyState=4,"load"===e)a.onload(t);else if("error"===e)a.onerror(t);else{if("abort"!==e)throw new TypeError;a.onabort(t)}a.onreadystatechange()}}var a=this,o=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==a._sendTimeout&&(L(a._sendTimeout),a._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,o.onload=h,o.onerror=h,o.onabort=h,o.onprogress=h,o.onreadystatechange=h,o.abort(),0!==r&&(L(r),r=0),e)||(a.readyState=4,a.onabort(null),a.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,a.readyState=2,a.status=t,a.statusText=n,a._contentType=r,a.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=o.responseText}catch(e){}a.readyState=3,a.responseText=e,a.onprogress()}},c=function(){r=P(function(){c()},500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(e){n("load",e)}),"onerror"in o&&(o.onerror=function(e){n("error",e)}),"onabort"in o&&(o.onabort=function(e){n("abort",e)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||n(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||l():2===o.readyState&&s())}),!("contentType"in o)&&"ontimeout"in R.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(r=P(function(){c()},0))},N.prototype.abort=function(){this._abort(!1)},N.prototype.getResponseHeader=function(e){return this._contentType},N.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},N.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},N.prototype.send=function(){if("ontimeout"in R.prototype&&("sendAsBinary"in R.prototype||"mozAnon"in R.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=P(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[m(e)]},null!=R&&null==R.HEADERS_RECEIVED&&(R.HEADERS_RECEIVED=2),I.prototype.open=function(a,o,t,n,e,r,i){a.open("GET",e);var s,l=0;for(s in a.onprogress=function(){var e=a.responseText.slice(l);l+=e.length,t(e)},a.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},a.onload=function(){n(null)},a.onabort=function(){n(null)},a.onreadystatechange=function(){var e,t,n,r;a.readyState===R.HEADERS_RECEIVED&&(e=a.status,t=a.statusText,n=a.getResponseHeader("Content-Type"),r=a.getAllResponseHeaders(),o(e,t,n,new g(r)))},a.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&a.setRequestHeader(s,i[s]);return a.send(),a},b.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,a,n,r,o,i){var s=null,l=new f,c=l.signal,h=new d;return p(r,{headers:i,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new b(e.headers)),new u(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=h.decode(e.value,{stream:!0}),a(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},D.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var a=t[r];try{"function"==typeof a.handleEvent?a.handleEvent(e):a.call(this,e)}catch(e){y(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var a=!1,o=0;o<r.length;o+=1)r[o]===t&&(a=!0);a||r.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var a=[],o=0;o<r.length;o+=1)r[o]!==t&&a.push(r[o]);0===a.length?delete n[e]:n[e]=a}},$.prototype=Object.create(B.prototype),U.prototype=Object.create(B.prototype),G.prototype=Object.create(B.prototype);var j=/^text\/event\-stream(;.*)?$/i,V=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){var l,o,i,c,h,u,p,d,f,n,s,m,g,b,y,B,v,E,T,w,S,A,_,H,M,C,O;D.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,o=e,e=t,o=String(o),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=V(1e3),h=k(e.heartbeatTimeout,45e3),u="",p=c,d=!1,f=0,n=e.headers||{},e=e.Transport,s=X&&null==e?void 0:new N(new(null!=e?e:null!=R&&"withCredentials"in R.prototype||null==a?R:a)),m=new(null!=e&&"string"!=typeof e?e:null==s?x:I),g=void 0,y=-1,T=E=v=B="",A=S=w=b=0,_=function(e,t,n,r){var a,o;0===y&&(200===e&&null!=n&&j.test(n)?(y=1,d=Date.now(),p=c,l.readyState=1,a=new U("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(a),F(l,l.onopen,a)):(o="",o=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",C(),a=new U("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(a),F(l,l.onerror,a),console.error(o)))},H=function(e){if(1===y){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(d=Date.now(),f+=e.length);for(var a=0;a<r.length;a+=1){var o,i=r.charCodeAt(a);if(-1===w&&i==="\n".charCodeAt(0))w=0;else if(-1===w&&(w=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==w&&(1===w&&(A=a+1),s=r.slice(S,A-1),o=r.slice(A+(A<a&&r.charCodeAt(A)===" ".charCodeAt(0)?1:0),a),"data"===s?B=B+"\n"+o:"id"===s?v=o:"event"===s?E=o:"retry"===s?(c=k(o,c),p=c):"heartbeatTimeout"===s&&(h=k(o,h),0!==b)&&(L(b),b=P(function(){O()},h))),0===w){if(""!==B){u=v;var s=new $(E=""===E?"message":E,{data:B.slice(1),lastEventId:v});if(l.dispatchEvent(s),"open"===E?F(l,l.onopen,s):"message"===E?F(l,l.onmessage,s):"error"===E&&F(l,l.onerror,s),2===y)return}E=B=""}w=i==="\r".charCodeAt(0)?-1:0}else 0===w&&(S=a,w=1),1===w?i===":".charCodeAt(0)&&(A=a+1,w=2):2===w&&(w=3)}}},M=function(e){var t;1!==y&&0!==y||(y=-1,0!==b&&(L(b),b=0),b=P(function(){O()},p),p=V(Math.min(16*c,2*p)),l.readyState=0,t=new G("error",{error:e}),l.dispatchEvent(t),F(l,l.onerror,t),null!=e&&console.error(e))},C=function(){y=2,null!=g&&(g.abort(),g=void 0),0!==b&&(L(b),b=0),l.readyState=2},O=function(){if(b=0,-1===y){d=!1,f=0,b=P(function(){O()},h),v=u,T=E=B="",w=A=S=y=0;var e=o,t=("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==u&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(u)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a]);try{g=m.open(s,_,H,M,e,t,n)}catch(e){throw C(),e}}else d||null==g?(e=Math.max((d||Date.now())+h-Date.now(),1),d=!1,b=P(function(){O()},e)):(M(new Error("No activity within "+h+" milliseconds. "+(0===y?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,O()}var X=null!=p&&null!=s&&"body"in s.prototype;(v.prototype=Object.create(D.prototype)).CONNECTING=0,v.prototype.OPEN=1,v.prototype.CLOSED=2,v.prototype.close=function(){this._close()},v.CONNECTING=0,v.OPEN=1,v.CLOSED=2,v.prototype.withCredentials=void 0,t=o,null==R||null!=o&&"withCredentials"in o.prototype||(t=v),(s=e).EventSourcePolyfill=v,s.NativeEventSource=o,s.EventSource=t}),an=nn(function(e,t){function l(e,t){if(!(this instanceof l))return new l(e,t);t=Object.assign({},a,t);var n=Math.pow(10,t.precision);this.intValue=e=r(e,t),this.value=e/n,t.increment=t.increment||1/n,t.groups=t.useVedic?i:o,this.s=t,this.p=n}function r(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,r=t.decimal,a=t.errorOnInvalid,o=t.fromCents,t=Math.pow(10,t.precision),i=e instanceof l;if(i&&o)return e.intValue;if("number"==typeof e||i)r=i?e.value:e;else if("string"==typeof e)a=new RegExp("[^-\\d"+r+"]","g"),r=new RegExp("\\"+r,"g"),r=e.replace(/\((.*)\)/,"-$1").replace(a,"").replace(r,".")||0;else{if(a)throw Error("Invalid Input");r=0}return o||(r=(r*t).toFixed(4)),n?Math.round(r):r}var a,o,i;e.exports=(a={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var n=t.pattern,r=t.negativePattern,a=t.symbol,o=t.separator,i=t.decimal;t=t.groups;var s=(l=(""+e).replace(/^-/,"").split("."))[0],l=l[1];return(0<=e.value?n:r).replace("!",a).replace("#",s.replace(t,"$1"+o)+(l?i+l:""))},fromCents:!1},o=/(\d)(?=(\d{3})+\b)/g,i=/(\d)(?=(\d\d)+\d\b)/g,l.prototype={add:function(e){var t=this.s,n=this.p;return l((this.intValue+r(e,t))/(t.fromCents?1:n),t)},subtract:function(e){var t=this.s,n=this.p;return l((this.intValue-r(e,t))/(t.fromCents?1:n),t)},multiply:function(e){var t=this.s;return l(this.intValue*e/(t.fromCents?1:Math.pow(10,t.precision)),t)},divide:function(e){var t=this.s;return l(this.intValue/r(e,t,!1),t)},distribute:function(e){for(var t=this.intValue,n=this.p,r=this.s,a=[],o=Math[0<=t?"floor":"ceil"](t/e),i=Math.abs(t-o*e),n=r.fromCents?1:n;0!==e;e--){var s=l(o/n,r);0<i--&&(s=s[0<=t?"add":"subtract"](1/n)),a.push(s)}return a},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},l)});function on(n){let r,a,o,i,s,l,c,h,u,p,d,f,m,g,b,y,B,v,E,T,w,S,A,_,H,M,C,O,P,L,$,R=n[9]("balanceTitle")+"",N=n[9]("totalBalance")+"",I=n[9]("depositButton")+"";function U(e){return"gm16"==e[0]?ln:sn}let x=U(n),D=x(n);return{c(){r=t("div"),a=t("div"),i=ce(),s=t("div"),l=t("div"),c=t("div"),h=t("p"),u=le(R),p=ce(),d=t("div"),f=t("div"),m=t("p"),g=le(N),b=ce(),y=t("p"),B=t("span"),v=le(n[5]),E=ce(),T=t("span"),w=le(n[6]),S=ce(),D.c(),A=ce(),_=t("div"),H=t("button"),M=le(I),he(a,"class",o="BalanceModalClose "+(n[4]?"Open":"")),he(h,"class","BalanceModalTitle"),he(c,"class","BalanceModalHeader"),he(m,"class","BalanceModalText"),he(B,"class","BalanceModalAmount"),he(T,"class","BalanceModalCurrency"),he(y,"class","BalanceModalValue"),he(f,"class","BalanceModalRow"),he(d,"class","BalanceModalBody"),he(H,"class","BalanceModalAction"),he(_,"class","BalanceModalFooter"),he(l,"class",C="ModalContent "+(n[4]?"Open":"")),he(s,"class",O="BalanceModal "+(n[4]?"Open":"")),he(r,"class",P="BalanceModalWrapper "+(n[4]?"Open":""))},m(e,t){ie(e,r,t),oe(r,a),oe(r,i),oe(r,s),oe(s,l),oe(l,c),oe(c,h),oe(h,u),oe(l,p),oe(l,d),oe(d,f),oe(f,m),oe(m,g),oe(f,b),oe(f,y),oe(y,B),oe(B,v),oe(y,E),oe(y,T),oe(T,w),oe(d,S),D.m(d,null),oe(l,A),oe(l,_),oe(_,H),oe(H,M),L||($=[k(a,"click",n[25]),k(H,"click",n[26])],L=!0)},p(e,t){16&t[0]&&o!==(o="BalanceModalClose "+(e[4]?"Open":""))&&he(a,"class",o),512&t[0]&&R!==(R=e[9]("balanceTitle")+"")&&ue(u,R),512&t[0]&&N!==(N=e[9]("totalBalance")+"")&&ue(g,N),32&t[0]&&ue(v,e[5]),64&t[0]&&ue(w,e[6]),x===(x=U(e))&&D?D.p(e,t):(D.d(1),(D=x(e))&&(D.c(),D.m(d,null))),512&t[0]&&I!==(I=e[9]("depositButton")+"")&&ue(M,I),16&t[0]&&C!==(C="ModalContent "+(e[4]?"Open":""))&&he(l,"class",C),16&t[0]&&O!==(O="BalanceModal "+(e[4]?"Open":""))&&he(s,"class",O),16&t[0]&&P!==(P="BalanceModalWrapper "+(e[4]?"Open":""))&&he(r,"class",P)},d(e){e&&se(r),D.d(),L=!1,G($)}}}function sn(e){let n,r,a,o,i,s,l,c,h,u,p,d,f,m,g,b,y,B,v,E,T,w=e[9]("cashBalance")+"",S=e[12](e[7][0]?.balanceAmount)+"",A=e[9]("bonusBalance")+"",_=e[12](e[7][1]?.balanceAmount)+"";return{c(){n=t("div"),r=t("p"),a=le(w),o=ce(),i=t("p"),s=t("span"),l=le(S),c=ce(),h=t("span"),u=le(e[6]),p=ce(),d=t("div"),f=t("p"),m=le(A),g=ce(),b=t("p"),y=t("span"),B=le(_),v=ce(),E=t("span"),T=le(e[6]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(h,"class","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(f,"class","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(b,"class","BalanceModalValue"),he(d,"class","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(n,o),oe(n,i),oe(i,s),oe(s,l),oe(i,c),oe(i,h),oe(h,u),ie(e,p,t),ie(e,d,t),oe(d,f),oe(f,m),oe(d,g),oe(d,b),oe(b,y),oe(y,B),oe(b,v),oe(b,E),oe(E,T)},p(e,t){512&t[0]&&w!==(w=e[9]("cashBalance")+"")&&ue(a,w),128&t[0]&&S!==(S=e[12](e[7][0]?.balanceAmount)+"")&&ue(l,S),64&t[0]&&ue(u,e[6]),512&t[0]&&A!==(A=e[9]("bonusBalance")+"")&&ue(m,A),128&t[0]&&_!==(_=e[12](e[7][1]?.balanceAmount)+"")&&ue(B,_),64&t[0]&&ue(T,e[6])},d(e){e&&se(n),e&&se(p),e&&se(d)}}}function ln(e){let n;function r(e){return"Casino"===e[1]||"Sports"===e[1]?hn:"All"===e[1]?cn:void 0}let a=r(e),o=a&&a(e);return{c(){o&&o.c(),n=le("")},m(e,t){o&&o.m(e,t),ie(e,n,t)},p(e,t){a===(a=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=a&&a(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&se(n)}}}function cn(e){let n,r,a,o,D,$,i,s,l,U,c,h,G,u,p,d,k,F,f,m,g,j,b,V,X,y,B,v,z,K,Y,E,T,Z,W,w,q,J,S,A,Q,ee,te,_,H,ne,re,M,ae,C=e[9]("cashBalance")+"",O=e[12](e[8].Casino.Real)+"",P=e[9]("cashBalance")+"",L=e[12](e[8].Sports.Real)+"",R=e[9]("bonusBalance")+"",N=e[12](e[8].Casino.Bonus)+"",I=e[9]("bonusBalance")+"",x=e[12](e[8].Sports.Bonus)+"";return{c(){n=t("div"),r=t("div"),a=t("p"),o=le(C),D=le(" Casino"),$=ce(),i=t("p"),s=t("span"),l=le(O),U=ce(),c=t("span"),h=le(e[6]),G=ce(),u=t("div"),p=t("p"),d=le(P),k=le(" Sports"),F=ce(),f=t("p"),m=t("span"),g=le(L),j=ce(),b=t("span"),V=le(e[6]),X=ce(),y=t("div"),B=t("div"),v=t("p"),z=le(R),K=le(" Casino"),Y=ce(),E=t("p"),T=t("span"),Z=le(N),W=ce(),w=t("span"),q=le(e[6]),J=ce(),S=t("div"),A=t("p"),Q=le(I),ee=le(" Sports"),te=ce(),_=t("p"),H=t("span"),ne=le(x),re=ce(),M=t("span"),ae=le(e[6]),he(a,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(c,"class","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(r,"class","BalanceModalRowLine"),he(p,"class","BalanceModalText"),he(m,"class","BalanceModalAmount"),he(b,"class","BalanceModalCurrency"),he(f,"class","BalanceModalValue"),he(u,"class","BalanceModalRowLine"),he(n,"class","BalanceModalRowBoth"),he(v,"class","BalanceModalText"),he(T,"class","BalanceModalAmount"),he(w,"class","BalanceModalCurrency"),he(E,"class","BalanceModalValue"),he(B,"class","BalanceModalRowLine"),he(A,"class","BalanceModalText"),he(H,"class","BalanceModalAmount"),he(M,"class","BalanceModalCurrency"),he(_,"class","BalanceModalValue"),he(S,"class","BalanceModalRowLine"),he(y,"class","BalanceModalRowBoth")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(a,o),oe(a,D),oe(r,$),oe(r,i),oe(i,s),oe(s,l),oe(i,U),oe(i,c),oe(c,h),oe(n,G),oe(n,u),oe(u,p),oe(p,d),oe(p,k),oe(u,F),oe(u,f),oe(f,m),oe(m,g),oe(f,j),oe(f,b),oe(b,V),ie(e,X,t),ie(e,y,t),oe(y,B),oe(B,v),oe(v,z),oe(v,K),oe(B,Y),oe(B,E),oe(E,T),oe(T,Z),oe(E,W),oe(E,w),oe(w,q),oe(y,J),oe(y,S),oe(S,A),oe(A,Q),oe(A,ee),oe(S,te),oe(S,_),oe(_,H),oe(H,ne),oe(_,re),oe(_,M),oe(M,ae)},p(e,t){512&t[0]&&C!==(C=e[9]("cashBalance")+"")&&ue(o,C),256&t[0]&&O!==(O=e[12](e[8].Casino.Real)+"")&&ue(l,O),64&t[0]&&ue(h,e[6]),512&t[0]&&P!==(P=e[9]("cashBalance")+"")&&ue(d,P),256&t[0]&&L!==(L=e[12](e[8].Sports.Real)+"")&&ue(g,L),64&t[0]&&ue(V,e[6]),512&t[0]&&R!==(R=e[9]("bonusBalance")+"")&&ue(z,R),256&t[0]&&N!==(N=e[12](e[8].Casino.Bonus)+"")&&ue(Z,N),64&t[0]&&ue(q,e[6]),512&t[0]&&I!==(I=e[9]("bonusBalance")+"")&&ue(Q,I),256&t[0]&&x!==(x=e[12](e[8].Sports.Bonus)+"")&&ue(ne,x),64&t[0]&&ue(ae,e[6])},d(e){e&&se(n),e&&se(X),e&&se(y)}}}function hn(e){let n,r,a,o,i,s,l,c,h,u,p,d,f,m,g,b,y,B,v,E,T,w=e[9]("cashBalance")+"",S=e[8][e[1]||"Casino"].Real+"",A=e[9]("bonusBalance")+"",_=e[8][e[1]||"Casino"].Bonus+"";return{c(){n=t("div"),r=t("p"),a=le(w),o=ce(),i=t("p"),s=t("span"),l=le(S),c=ce(),h=t("span"),u=le(e[6]),p=ce(),d=t("div"),f=t("p"),m=le(A),g=ce(),b=t("p"),y=t("span"),B=le(_),v=ce(),E=t("span"),T=le(e[6]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(h,"class","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(f,"class","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(b,"class","BalanceModalValue"),he(d,"class","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(n,o),oe(n,i),oe(i,s),oe(s,l),oe(i,c),oe(i,h),oe(h,u),ie(e,p,t),ie(e,d,t),oe(d,f),oe(f,m),oe(d,g),oe(d,b),oe(b,y),oe(y,B),oe(b,v),oe(b,E),oe(E,T)},p(e,t){512&t[0]&&w!==(w=e[9]("cashBalance")+"")&&ue(a,w),258&t[0]&&S!==(S=e[8][e[1]||"Casino"].Real+"")&&ue(l,S),64&t[0]&&ue(u,e[6]),512&t[0]&&A!==(A=e[9]("bonusBalance")+"")&&ue(m,A),258&t[0]&&_!==(_=e[8][e[1]||"Casino"].Bonus+"")&&ue(B,_),64&t[0]&&ue(T,e[6])},d(e){e&&se(n),e&&se(p),e&&se(d)}}}function un(n){let r,a,o,i;return{c(){he(r=t("div"),"class",a="ShowBalanceModalOverlay "+(n[4]?"Open":""))},m(e,t){ie(e,r,t),o||(i=k(r,"click",n[27]),o=!0)},p(e,t){16&t[0]&&a!==(a="ShowBalanceModalOverlay "+(e[4]?"Open":""))&&he(r,"class",a)},d(e){e&&se(r),o=!1,i()}}}function pn(n){let r,a,o,i,s,l,c,h,u,p,d,f,m,g,b,y,B=n[3]&&on(n),v=n[3]&&un(n);return{c(){r=t("div"),a=t("div"),o=t("div"),i=t("p"),s=le(n[5]),l=ce(),c=le(n[6]),h=ce(),u=t("span"),p=O("svg"),d=O("path"),m=ce(),B&&B.c(),g=ce(),v&&v.c(),this.c=E,he(d,"id","arrow"),he(d,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),he(d,"transform","translate(-274.511 -441.088)"),he(d,"fill","#d1d1d1"),he(p,"xmlns","http://www.w3.org/2000/svg"),he(p,"width","14"),he(p,"height","6.835"),he(p,"viewBox","0 0 14 6.835"),he(u,"class",f=n[4]?"TriangleActive":"TriangleInactive"),he(o,"class","BalanceValue"),he(a,"class","ShowBalance")},m(e,t){ie(e,r,t),oe(r,a),oe(a,o),oe(o,i),oe(i,s),oe(i,l),oe(i,c),oe(o,h),oe(o,u),oe(u,p),oe(p,d),oe(a,m),B&&B.m(a,null),oe(r,g),v&&v.m(r,null),n[28](r),b||(y=k(o,"click",n[24]),b=!0)},p(e,t){32&t[0]&&ue(s,e[5]),64&t[0]&&ue(c,e[6]),16&t[0]&&f!==(f=e[4]?"TriangleActive":"TriangleInactive")&&he(u,"class",f),e[3]?B?B.p(e,t):((B=on(e)).c(),B.m(a,null)):B&&(B.d(1),B=null),e[3]?v?v.p(e,t):((v=un(e)).c(),v.m(r,null)):v&&(v.d(1),v=null)},i:E,o:E,d(e){e&&se(r),B&&B.d(),v&&v.d(),n[28](null),b=!1,y()}}}function dn(t,e,i){let n;var r=Jt;t.$$.on_destroy.push(x(r,e=>i(9,n=e)));let a,o,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:h="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:p=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:f=""}=e,{gmversion:m=""}=e,{displaybalanceoption:g="All"}=e,{currencyseparator:b=""}=e,{currencydecimal:y=""}=e,{currencyprecision:B=""}=e,v=!1,E=!1,T="",w="",S=[],A="0",_=!1;const H={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},M=(Object.keys(en).forEach(e=>{Qt(e,en[e])}),e=>{switch(e){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),i(3,v=!0),setTimeout(()=>{i(4,E=!0)},150);break;case"closebalance":i(4,E=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{i(3,v=!1)},150)}}),C=(e,t)=>{e=new rn.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});o&&o.close(),(o=e).addEventListener("message",e=>{A="0";try{let r=JSON.parse(e.data)["balanceChange"];if("gmcore"===m)i(7,S=S.map(e=>{var t,n;return r&&r[e.id]&&(t=e,n=r[e.id].afterAmount,e=Object.assign(Object.assign({},t),{balanceAmount:n})),A=(parseFloat(null==e?void 0:e.balanceAmount)+parseFloat(A)).toString(),e})),i(5,T=L(Number(A)));else if("gm16"===m){for(var t in r)i(8,H.Casino[t]=r[t].afterAmount,H);i(5,T=L(H.Casino.Bonus+H.Casino.Real))}}catch(e){console.log("Balance stream failed: ",e),C(`${c}/v1/player/${s}/balance/updates`,l)}})},O=()=>{M("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},P=()=>{let e;return e=f.includes(h)?f:e},L=e=>{return f?new Intl.NumberFormat(P(),{useGrouping:!0}).format(e):(b&&y?an(e,{separator:b,decimal:y,symbol:"",precision:parseInt(B||"2",10)}):an(e,{separator:".",decimal:",",symbol:"",precision:parseInt(B||"2",10)})).format()},R=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&o.close()};return r=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R),o&&o.close()}),function(){if(N)return N;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),t.$$set=e=>{"userid"in e&&i(13,s=e.userid),"session"in e&&i(14,l=e.session),"endpoint"in e&&i(15,c=e.endpoint),"lang"in e&&i(16,h=e.lang),"clientstyling"in e&&i(17,u=e.clientstyling),"clientstylingurl"in e&&i(18,p=e.clientstylingurl),"translationurl"in e&&i(19,d=e.translationurl),"customlocaleidentifier"in e&&i(20,f=e.customlocaleidentifier),"gmversion"in e&&i(0,m=e.gmversion),"displaybalanceoption"in e&&i(1,g=e.displaybalanceoption),"currencyseparator"in e&&i(21,b=e.currencyseparator),"currencydecimal"in e&&i(22,y=e.currencydecimal),"currencyprecision"in e&&i(23,B=e.currencyprecision)},t.$$.update=()=>{if(65536&t.$$.dirty[0]&&h&&P(),122883&t.$$.dirty[0]&&c&&s&&l&&h&&m&&g){var e=h;switch(I.set(e),m){case"gmcore":(async e=>{try{_=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw _=!1,new Error("Failed to fetch balance data !");_=!1,window.postMessage({type:"BalancedFetched"},window.location.href),i(7,S=n.items),i(6,w=Object.keys(n.totalAmount)[0]),i(5,T=L(n.totalAmount[w]))}catch(e){_=!1,console.log("Balance error: ",e)}finally{_=!1}})(new URL(`${c}/v1/player/${s}/account`));break;case"gm16":(async e=>{try{_=!0,"Casino"==g&&e.searchParams.append("productType","Casino"),"Sports"==g&&e.searchParams.append("productType","Sports"),"All"===g&&(e.searchParams.append("productType","Casino"),e.searchParams.append("productType","Sports"));var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw _=!1,new Error("Failed to fetch balance data !");_=!1;for(const e of n.items){var{type:r,amount:a,productType:o}=e;"Casino"===g?i(8,H.Casino[r]=a,H):"Sports"===g?i(8,H.Sports[r]=a,H):"All"===g&&o&&r&&i(8,H[o][r]=a,H)}i(6,w=Object.keys(n.totalAmount)[0]),i(5,T=L(n.totalAmount[w]))}catch(e){_=!1,console.log("Balance error: ",e)}finally{_=!1}})(new URL(`${c}/v1/player/${s}/balance`));break;default:throw Error("Invalid apiversion attribute: "+m)}}if(57344&t.$$.dirty[0]&&c&&s&&l&&C(`${c}/v1/player/${s}/balance/updates`,l),131076&t.$$.dirty[0]&&u&&a&&((e=document.createElement("style")).innerHTML=u,a.appendChild(e)),262148&t.$$.dirty[0]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1)})}524288&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qt(e,t[e])})}).catch(e=>{console.log(e)})},[m,g,a,v,E,T,w,S,H,n,M,O,L,s,l,c,h,u,p,d,f,b,y,B,()=>M("balance"),()=>M("closebalance"),()=>O(),()=>M("closebalance"),function(e){D[e?"unshift":"push"](()=>{a=e,i(2,a)})}]}class fn extends V{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:function(e){var t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},dn,pn,C,{userid:13,session:14,endpoint:15,lang:16,clientstyling:17,clientstylingurl:18,translationurl:19,customlocaleidentifier:20,gmversion:0,displaybalanceoption:1,currencyseparator:21,currencydecimal:22,currencyprecision:23},null,[-1,-1]),e&&(e.target&&ie(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier","gmversion","displaybalanceoption","currencyseparator","currencydecimal","currencyprecision"]}get userid(){return this.$$.ctx[13]}set userid(e){this.$$set({userid:e}),f()}get session(){return this.$$.ctx[14]}set session(e){this.$$set({session:e}),f()}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),f()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),f()}get customlocaleidentifier(){return this.$$.ctx[20]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),f()}get gmversion(){return this.$$.ctx[0]}set gmversion(e){this.$$set({gmversion:e}),f()}get displaybalanceoption(){return this.$$.ctx[1]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),f()}get currencyseparator(){return this.$$.ctx[21]}set currencyseparator(e){this.$$set({currencyseparator:e}),f()}get currencydecimal(){return this.$$.ctx[22]}set currencydecimal(e){this.$$set({currencydecimal:e}),f()}get currencyprecision(){return this.$$.ctx[23]}set currencyprecision(e){this.$$set({currencyprecision:e}),f()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",fn),fn});
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 b(){}function S(e){return e()}function H(){return Object.create(null)}function I(e){e.forEach(S)}function C(e){return"function"==typeof e}function M(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function x(e,...t){if(null==e)return b;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ae(e,t){e.appendChild(t)}function ie(e,t,n){e.insertBefore(t,n||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function le(e){return document.createTextNode(e)}function ce(){return le(" ")}function D(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function he(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ue(e,t){e.data!==(t=""+t)&&(e.data=t)}let O;function p(e){O=e}const f=[],$=[];let a=[];const P=[],L=Promise.resolve();let R=!1;function U(e){a.push(e)}const G=new Set;let o=0;function d(){if(0===o){const r=O;do{try{for(;o<f.length;){const r=f[o];o++,p(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),I(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(U))}}catch(r){throw f.length=0,o=0,r}for(p(null),f.length=0,o=0;$.length;)$.pop()();for(let e=0;e<a.length;e+=1){var n=a[e];G.has(n)||(G.add(n),n())}}while(a.length=0,f.length);for(;P.length;)P.pop()();R=!1,G.clear(),p(r)}}const F=new Set;function k(r,e,t,n,o,a,i,s=[-1]){var l=O;p(r);const c=r.$$={fragment:null,ctx:[],props:a,update:b,not_equal:o,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:H(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let h=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),h)&&(n=e,-1===(e=r).$$.dirty[0]&&(f.push(e),R||(R=!0,L.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),h=!0,I(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){a=e.target;const b=Array.from(a.childNodes);c.fragment&&c.fragment.l(b),b.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(F.delete(s),s.i(void 0));var u=r,i=e.target,t=e.anchor,n=e.customElement,{fragment:a,after_update:s}=u.$$;a&&a.m(i,t),n||U(()=>{var e=u.$$.on_mount.map(S).filter(C);u.$$.on_destroy?u.$$.on_destroy.push(...e):I(e),u.$$.on_mount=[]}),s.forEach(U),d()}p(l)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(C);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){I(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],o=[];a.forEach(e=>(-1===n.indexOf(e)?r:o).push(e)),o.forEach(e=>e()),a=r}I(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=b}$on(e,t){if(!C(t))return b;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 n=[];function V(r,o=b){let a;const i=new Set;function s(e){if(M(r,e)&&(r=e,a)){const e=!n.length;for(const e of i)e[1](),n.push(e,r);if(e){for(let e=0;e<n.length;e+=2)n[e][0](n[e+1]);n.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=b){const n=[e,t];return i.add(n),1===i.size&&(a=o(s)||b),e(r),()=>{i.delete(n),0===i.size&&a&&(a(),a=null)}}}}function e(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,h=s.length<2;return{subscribe:V(t,t=>{let n=!1;const r=[];let o=0,a=b;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),h?t(e):a=C(e)?e:b)},e=c.map((e,t)=>x(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){I(e),a(),n=!1}}).subscribe}}function X(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===z);var t}var z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function K(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function Y(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Z(e,t){try{return t in e}catch(e){return!1}}function W(r,o,a){var i={};return a.isMergeableObject(r)&&Y(r).forEach(function(e){i[e]=s(r[e],a)}),Y(o).forEach(function(e){var t,n;(!Z(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Z(r,e)&&a.isMergeableObject(o[e])?i[e]=((t=a).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(r[e],o[e],a):i[e]=s(o[e],a))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||K,n.isMergeableObject=n.isMergeableObject||X,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):W(e,t,n):s(t,n)}l.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,n)},{});throw new Error("first argument should be an array")};var q=l,J=function(e,t){return(J=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 Q(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}J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,y,g,E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ee(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function te(e){return e.type===y.literal}function ne(e){return e.type===y.number}function re(e){return e.type===y.date}function oe(e){return e.type===y.time}function pe(e){return e.type===y.select}function fe(e){return e.type===y.plural}function de(e){return e.type===y.tag}function me(e){return e&&"object"==typeof e&&e.type===g.number}function ge(e){return e&&"object"==typeof e&&e.type===g.dateTime}(r=m=m||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=y=y||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=g=g||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,be=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Be=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function we(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Be,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 Ae(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _e(e){return Ae(e)||{}}function Se(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=E(E(E({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return E(E({},e),_e(t))},{}));continue;case"engineering":i=E(E(E({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return E(E({},e),_e(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(ve,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Te.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(Ee.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ee,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?i=E(E({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=E(E({},i),we(a)))}else Be.test(o.stem)?i=E(E({},i),we(o.stem)):((a=Ae(o.stem))&&(i=E(E({},i),a)),(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)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=E(E({},i),r)))}return i}var He={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Ce=new RegExp("^".concat(r.source,"*")),Me=new RegExp("".concat(r.source,"*$"));function B(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Pe=!!String.fromCodePoint,Le=!!Object.fromEntries,i=!!String.prototype.codePointAt,Re=!!String.prototype.trimStart,Oe=!!String.prototype.trimEnd,Ne=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ie=!0;try{Ie="a"===(null==(tt=Ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:tt[0])}catch(b){Ie=!1}var xe,De,$e=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ue=Pe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))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},Ge=Le?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},Fe=i?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},ke=Re?function(e){return e.trimStart()}:function(e){return e.replace(Ce,"")},je=Oe?function(e){return e.trimEnd()}:function(e){return e.replace(Me,"")};function Ve(e,t){return new RegExp(e,t)}De=Ie?(xe=Ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return xe.lastIndex=t,null!=(t=xe.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=Fe(e,t);if(void 0===o||Ke(o)||33<=(n=o)&&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(o),t+=65536<=o?2:1}return Ue.apply(void 0,r)};c.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},c.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{a=this.clonePosition();this.bump(),r.push({type:y.pound,location:B(a,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(o,"/>"),location:B(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!ze(this.char())?this.error(m.INVALID_TAG,B(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,B(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:o,children:t,location:B(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,B(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,B(r,this.clonePosition()))):this.error(m.INVALID_TAG,B(r,this.clonePosition()))},c.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())},c.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=B(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},c.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ze(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},c.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 Ue.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Ue(n))},c.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},c.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=De(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:B(e,this.clonePosition())}},c.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,B(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((u=this.parseSimpleArgStyleIfPossible()).err)return u;if(0===(p=je(u.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:B(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(f=B(r,this.clonePosition()),l&&$e(null==l?void 0:l.style,"::",0)?(d=ke(l.style.slice(2)),"number"===i?(u=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?u:{val:{type:y.number,value:n,location:f,style:u.val},err:null}:0===d.length?this.error(m.EXPECT_DATE_TIME_SKELETON,f):(h=d,this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(He[t||""]||He[n||""]||He["".concat(n,"-001")]||He["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(d,this.locale)),p={type:g.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},h.replace(be,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}},{val:{type:"date"===i?y.date:y.time,value:n,location:f,style:p},err:null})):{val:{type:"number"===i?y.number:"date"===i?y.date:y.time,value:n,location:f,style:null!=(d=null==l?void 0:l.style)?d:null},err:null});case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,B(h,E({},h)));this.bumpSpace();var u,p=this.parseIdentifierIfPossible(),f=0;if("select"!==i&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return u;this.bumpSpace(),p=this.parseIdentifierIfPossible(),f=u.val}var d,l=this.tryParsePluralOrSelectOptions(e,i,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(d=B(r,this.clonePosition()),"select"===i?{val:{type:y.select,value:n,options:Ge(l.val),location:d},err:null}:{val:{type:y.plural,value:n,options:Ge(l.val),offset:f,pluralType:"plural"===i?"cardinal":"ordinal",location:d},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,B(a,s))}},c.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},c.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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}},c.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(ye).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:g.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Se(n):{}},err:null}},c.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=B(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;a.push([s,{value:c.val,location:B(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===a.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},c.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=B(r,this.clonePosition());return o?Ne(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},c.prototype.offset=function(){return this.position.offset},c.prototype.isEOF=function(){return this.offset()===this.message.length},c.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},c.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Fe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},c.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},c.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))},c.prototype.bumpIf=function(e){if($e(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},c.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},c.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},c.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ke(this.char());)this.bump()},c.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Xe=c;function c(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ze(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ke(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ye(e,t){t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Xe(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,pe(e)||fe(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else ne(e)&&me(e.style)||(re(e)||oe(e))&&ge(e.style)?delete e.style.location:de(e)&&n(e.children)})}(e.val),e.val}function Ze(e,t){var n=t&&t.cache?t.cache:nt,r=t&&t.serializer?t.serializer:Qe;return(t&&t.strategy?t.strategy:function(e,t){return Je(e,this,1===e.length?We:qe,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function We(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function qe(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function Je(e,t,n,r,o){return n.bind(t,e,r,o)}var Qe=function(){return JSON.stringify(arguments)};function et(){this.cache=Object.create(null)}et.prototype.get=function(e){return this.cache[e]},et.prototype.set=function(e,t){this.cache[e]=t};var v,tt,nt={create:function(){return new et}},rt={variadic:function(e,t){return Je(e,this,qe,t.cache.create(),t.serializer)},monadic:function(e,t){return Je(e,this,We,t.cache.create(),t.serializer)}};(tt=v=v||{}).MISSING_VALUE="MISSING_VALUE",tt.INVALID_VALUE="INVALID_VALUE",tt.MISSING_INTL_API="MISSING_INTL_API";Q(mt,st=Error),mt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,ot,at,it,st,lt=mt,ct=(Q(dt,it=lt),dt),ht=(Q(ft,at=lt),ft),ut=(Q(pt,ot=lt),pt);function pt(e,t){return ot.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),v.MISSING_VALUE,t)||this}function ft(e,t,n){return at.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,n)||this}function dt(e,t,n,r){return it.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),v.INVALID_VALUE,r)||this}function mt(e,t,n){e=st.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function gt(e,t,n,r,o,a,i){if(1===e.length&&te(e[0]))return[{type:T.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var h=c[l];if(te(h))s.push({type:T.literal,value:h.value});else if(h.type===y.pound)"number"==typeof a&&s.push({type:T.literal,value:n.getNumberFormat(t).format(a)});else{var u=h.value;if(!(o&&u in o))throw new ut(u,i);u=o[u];if(h.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),s.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(re(h)){var p="string"==typeof h.style?r.date[h.style]:ge(h.style)?h.style.parsedOptions:void 0;s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)})}else if(oe(h))p="string"==typeof h.style?r.time[h.style]:ge(h.style)?h.style.parsedOptions:r.time.medium,s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)});else if(ne(h))(p="string"==typeof h.style?r.number[h.style]:me(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),s.push({type:T.literal,value:n.getNumberFormat(t,p).format(u)});else{if(de(h)){var f=h.children,d=h.value,m=o[d];if("function"!=typeof m)throw new ht(d,"function",i);d=m(gt(f,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(pe(h)){if(!(g=h.options[u]||h.options.other))throw new ct(h.value,u,Object.keys(h.options),i);s.push.apply(s,gt(g.value,t,n,r,o))}else if(fe(h)){if(!(g=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new lt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',v.MISSING_INTL_API,i);var m=n.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),g=h.options[m]||h.options.other}if(!g)throw new ct(h.value,u,Object.keys(h.options),i);s.push.apply(s,gt(g.value,t,n,r,o,u-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===T.literal&&t.type===T.literal?n.value+=t.value:e.push(t),e},[])}function bt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=T=T||{})[r.literal=0]="literal",r[r.object=1]="object";Object.defineProperty(h,"defaultLocale",{get:function(){return h.memoizedDefaultLocale||(h.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),h.memoizedDefaultLocale},enumerable:!1,configurable:!0}),h.memoizedDefaultLocale=null,h.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},h.__parse=Ye,h.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var yt=h;function h(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=h.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=i.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return gt(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=h.resolveLocale(t),"string"==typeof e){if(this.message=e,!h.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=h.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=h.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?E(E(E({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=E(E({},n[t]),r[t]||{}),e},{})):n),e},E({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Ze(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ee([void 0],t,!1)))},{cache:bt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:rt.variadic}),getDateTimeFormat:Ze(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ee([void 0],t,!1)))},{cache:bt(t.dateTime),strategy:rt.variadic}),getPluralRules:Ze(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ee([void 0],t,!1)))},{cache:bt(t.pluralRules),strategy:rt.variadic})}}const u={},Et=(e,t,n)=>n&&(t in u||(u[t]={}),e in u[t]||(u[t][e]=n),n),Bt=(t,n)=>{if(null!=n){if(n in u&&t in u[n])return u[n][t];var r=Ut(n);for(let e=0;e<r.length;e++){var o=function(e,t){if(!wt(e))return null;e=function(e){return vt[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(o)return Et(t,n,o)}}};let vt;const Tt=V({});function wt(e){return e in vt}function At(t,...n){delete u[t],Tt.update(e=>(e[t]=q.all([e[t]||{},...n]),e))}e([Tt],([e])=>Object.keys(e)),Tt.subscribe(e=>vt=e);const _t={};function St(e){return _t[e]}function Ht(e){return null!=e&&Ut(e).some(e=>{return null==(e=St(e))?void 0:e.size})}function Ct(r,e){return Promise.all(e.map(e=>{return t=r,n=e,_t[t].delete(n),0===_t[t].size&&delete _t[t],e().then(e=>e.default||e);var t,n})).then(e=>At(r,...e))}const Mt={};const w={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Pt=V(!1);var Lt=Object.defineProperty,Pe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,It=(e,t,n)=>t in e?Lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let xt;const Dt=V(null);function $t(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Ut(e,t=w.fallbackLocale){e=$t(e);return t?[...new Set([...e,...$t(t)])]:e}function A(){return null!=xt?xt:void 0}Dt.subscribe(e=>{xt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const N=Pe(((e,t)=>{for(var n in t=t||{})Ot.call(t,n)&&It(e,n,t[n]);if(Rt)for(var n of Rt(t))Nt.call(t,n)&&It(e,n,t[n]);return e})({},Dt),Le({set:t=>{if(t&&function(e){if(null!=e){var t=Ut(e);for(let e=0;e<t.length;e++){var n=t[e];if(wt(n))return n}}}(t)&&Ht(t)){var n=w["loadingDelay"];let e;return"undefined"!=typeof window&&null!=A()&&n?e=window.setTimeout(()=>Pt.set(!0),n):Pt.set(!0),function e(t){var n;return Ht(t)?(n=Ut(t).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Mt[t]=Promise.all(n.map(([e,t])=>Ct(e,t))).then(()=>{if(Ht(t))return e(t);delete Mt[t]}),Mt[t]):t in Mt?Mt[t]:Promise.resolve()}(t).then(()=>{Dt.set(t)}).finally(()=>{clearTimeout(e),Pt.set(!1)})}return Dt.set(t)}}));var i=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Gt=Object.defineProperty,Ft=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Vt=(e,t,n)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xt=(e,t)=>{for(var n in t=t||{})kt.call(t,n)&&Vt(e,n,t[n]);if(Ft)for(var n of Ft(t))jt.call(t,n)&&Vt(e,n,t[n]);return e},_=(e,t)=>{var n={};for(r in e)kt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ft)for(var r of Ft(e))t.indexOf(r)<0&&jt.call(e,r)&&(n[r]=e[r]);return n};const zt=(e,t)=>{var n=w["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kt=i(e=>{var{locale:t,format:n}=e,e=_(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=zt("number",n)),new Intl.NumberFormat(t,e)}),Yt=i(e=>{var{locale:t,format:n}=e,e=_(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=zt("date",n):0===Object.keys(e).length&&(e=zt("date","short")),new Intl.DateTimeFormat(t,e)}),Zt=i(e=>{var{locale:t,format:n}=e,e=_(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=zt("time",n):0===Object.keys(e).length&&(e=zt("time","short")),new Intl.DateTimeFormat(t,e)}),Wt=i((e,t=A())=>new yt(e,t,w.formats,{ignoreTag:w.ignoreTag})),qt=e([N,Tt],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=A(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Bt(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=w).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!a)return l;let c=l;try{c=Wt(l,i).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Jt(e,t){At(e,t)}e([N],()=>(e,t)=>((e={})=>{var{locale:t=A()}=e,e=_(e,["locale"]);return Zt(Xt({locale:t},e))})(t).format(e)),e([N],()=>(e,t)=>((e={})=>{var{locale:t=A()}=e,e=_(e,["locale"]);return Yt(Xt({locale:t},e))})(t).format(e)),e([N],()=>(e,t)=>((e={})=>{var{locale:t=A()}=e,e=_(e,["locale"]);return Kt(Xt({locale:t},e))})(t).format(e)),e([N,Tt],()=>(e,t=A())=>Bt(e,t));const Qt={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje novca",bonusBalance:"Stanje bonusa",depositButton:"Uplata"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"},"pt-br":{balanceTitle:"Seu balanço",totalBalance:"Balanço total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo em títulos",depositButton:"Depósito"},"es-mx":{balanceTitle:"Su saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo en bonos",depositButton:"Depósito"}};var en="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function tn(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var nn=tn(function(v,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:en:globalThis,L=t.setTimeout,R=t.clearTimeout,O=t.XMLHttpRequest,o=t.XDomainRequest,n=t.ActiveXObject,a=t.EventSource,i=t.document,u=t.Promise,p=t.fetch,s=t.Response,f=t.TextDecoder,l=t.TextEncoder,d=t.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}function h(){}function N(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=h,this.onload=h,this.onerror=h,this.onreadystatechange=h,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=h}function m(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[m(a)]=o}this._map=t}function I(){}function b(e){this._headers=e}function x(){}function D(){this._listeners=Object.create(null)}function y(e){L(function(){throw e},0)}function E(e){this.type=e,this.target=void 0}function $(e,t){E.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function U(e,t){E.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function G(e,t){E.call(this,e),this.error=t.error}function F(e,t){return e=null==e?t:parseInt(e,10),V(e=e!=e?t:e)}function k(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){y(e)}}"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==O&&null!=n&&(O=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==d&&(r=p,p=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},d=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):r=(r+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,r},null!=f&&null!=l&&function(){try{return"test"===(new f).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=c),N.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:h}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(R(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,a=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&(R(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=h,a.onerror=h,a.onabort=h,a.onprogress=h,a.onreadystatechange=h,a.abort(),0!==r&&(R(r),r=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=L(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){n("load",e)}),"onerror"in a&&(a.onerror=function(e){n("error",e)}),"onabort"in a&&(a.onabort=function(e){n("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||n(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(r=L(function(){c()},0))},N.prototype.abort=function(){this._abort(!1)},N.prototype.getResponseHeader=function(e){return this._contentType},N.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},N.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},N.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=L(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[m(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),I.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===O.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new g(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},b.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new d,c=l.signal,h=new f;return p(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new b(e.headers)),new u(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=h.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},D.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){y(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},$.prototype=Object.create(E.prototype),U.prototype=Object.create(E.prototype),G.prototype=Object.create(E.prototype);var j=/^text\/event\-stream(;.*)?$/i,V=function(e){return Math.min(Math.max(e,1e3),18e6)};function B(e,t){var l,a,i,c,h,u,p,f,d,n,s,m,g,b,y,E,B,v,T,w,A,_,S,H,C,M,P;D.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=V(1e3),h=F(e.heartbeatTimeout,45e3),u="",p=c,f=!1,d=0,n=e.headers||{},e=e.Transport,s=X&&null==e?void 0:new N(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==o?O:o)),m=new(null!=e&&"string"!=typeof e?e:null==s?x:I),g=void 0,y=-1,T=v=B=E="",_=A=w=b=0,S=function(e,t,n,r){var o,a;0===y&&(200===e&&null!=n&&j.test(n)?(y=1,f=Date.now(),p=c,l.readyState=1,o=new U("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),k(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",M(),o=new U("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),k(l,l.onerror,o),console.error(a)))},H=function(e){if(1===y){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(f=Date.now(),d+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===w&&i==="\n".charCodeAt(0))w=0;else if(-1===w&&(w=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==w&&(1===w&&(_=o+1),s=r.slice(A,_-1),a=r.slice(_+(_<o&&r.charCodeAt(_)===" ".charCodeAt(0)?1:0),o),"data"===s?E=E+"\n"+a:"id"===s?B=a:"event"===s?v=a:"retry"===s?(c=F(a,c),p=c):"heartbeatTimeout"===s&&(h=F(a,h),0!==b)&&(R(b),b=L(function(){P()},h))),0===w){if(""!==E){u=B;var s=new $(v=""===v?"message":v,{data:E.slice(1),lastEventId:B});if(l.dispatchEvent(s),"open"===v?k(l,l.onopen,s):"message"===v?k(l,l.onmessage,s):"error"===v&&k(l,l.onerror,s),2===y)return}v=E=""}w=i==="\r".charCodeAt(0)?-1:0}else 0===w&&(A=o,w=1),1===w?i===":".charCodeAt(0)&&(_=o+1,w=2):2===w&&(w=3)}}},C=function(e){var t;1!==y&&0!==y||(y=-1,0!==b&&(R(b),b=0),b=L(function(){P()},p),p=V(Math.min(16*c,2*p)),l.readyState=0,t=new G("error",{error:e}),l.dispatchEvent(t),k(l,l.onerror,t),null!=e&&console.error(e))},M=function(){y=2,null!=g&&(g.abort(),g=void 0),0!==b&&(R(b),b=0),l.readyState=2},P=function(){if(b=0,-1===y){f=!1,d=0,b=L(function(){P()},h),B=u,T=v=E="",w=_=A=y=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==u&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(u)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{g=m.open(s,S,H,C,e,t,n)}catch(e){throw M(),e}}else f||null==g?(e=Math.max((f||Date.now())+h-Date.now(),1),f=!1,b=L(function(){P()},e)):(C(new Error("No activity within "+h+" milliseconds. "+(0===y?"No response received.":d+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=M,P()}var X=null!=p&&null!=s&&"body"in s.prototype;(B.prototype=Object.create(D.prototype)).CONNECTING=0,B.prototype.OPEN=1,B.prototype.CLOSED=2,B.prototype.close=function(){this._close()},B.CONNECTING=0,B.OPEN=1,B.CLOSED=2,B.prototype.withCredentials=void 0,t=a,null==O||null!=a&&"withCredentials"in a.prototype||(t=B),(s=e).EventSourcePolyfill=B,s.NativeEventSource=a,s.EventSource=t}),rn=tn(function(e,t){function l(e,t){if(!(this instanceof l))return new l(e,t);t=Object.assign({},o,t);var n=Math.pow(10,t.precision);this.intValue=e=r(e,t),this.value=e/n,t.increment=t.increment||1/n,t.groups=t.useVedic?i:a,this.s=t,this.p=n}function r(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,r=t.decimal,o=t.errorOnInvalid,a=t.fromCents,t=Math.pow(10,t.precision),i=e instanceof l;if(i&&a)return e.intValue;if("number"==typeof e||i)r=i?e.value:e;else if("string"==typeof e)o=new RegExp("[^-\\d"+r+"]","g"),r=new RegExp("\\"+r,"g"),r=e.replace(/\((.*)\)/,"-$1").replace(o,"").replace(r,".")||0;else{if(o)throw Error("Invalid Input");r=0}return a||(r=(r*t).toFixed(4)),n?Math.round(r):r}var o,a,i;e.exports=(o={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var n=t.pattern,r=t.negativePattern,o=t.symbol,a=t.separator,i=t.decimal;t=t.groups;var s=(l=(""+e).replace(/^-/,"").split("."))[0],l=l[1];return(0<=e.value?n:r).replace("!",o).replace("#",s.replace(t,"$1"+a)+(l?i+l:""))},fromCents:!1},a=/(\d)(?=(\d{3})+\b)/g,i=/(\d)(?=(\d\d)+\d\b)/g,l.prototype={add:function(e){var t=this.s,n=this.p;return l((this.intValue+r(e,t))/(t.fromCents?1:n),t)},subtract:function(e){var t=this.s,n=this.p;return l((this.intValue-r(e,t))/(t.fromCents?1:n),t)},multiply:function(e){var t=this.s;return l(this.intValue*e/(t.fromCents?1:Math.pow(10,t.precision)),t)},divide:function(e){var t=this.s;return l(this.intValue/r(e,t,!1),t)},distribute:function(e){for(var t=this.intValue,n=this.p,r=this.s,o=[],a=Math[0<=t?"floor":"ceil"](t/e),i=Math.abs(t-a*e),n=r.fromCents?1:n;0!==e;e--){var s=l(a/n,r);0<i--&&(s=s[0<=t?"add":"subtract"](1/n)),o.push(s)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},l)});function on(n){let r,o,a,i,s,l,c,h,u,p,f,d,m,g,b,y,E,B,v,T,w,A,_,S,H,C,M=n[8]("balanceTitle")+"",P=n[8]("totalBalance")+"",L=n[8]("depositButton")+"";function R(e){return"gm16"==e[0]?sn:an}let O=R(n),N=O(n);return{c(){r=t("div"),o=t("div"),a=ce(),i=t("div"),s=t("div"),l=t("p"),c=le(M),h=ce(),u=t("div"),p=t("div"),f=t("p"),d=le(P),m=ce(),g=t("p"),b=t("span"),y=le(n[4]),E=ce(),B=t("span"),v=le(n[5]),T=ce(),N.c(),w=ce(),A=t("div"),_=t("button"),S=le(L),he(o,"class","BalanceModalClose"),he(l,"class","BalanceModalTitle"),he(s,"class","BalanceModalHeader"),he(f,"class","BalanceModalText"),he(b,"class","BalanceModalAmount"),he(B,"class","BalanceModalCurrency"),he(g,"class","BalanceModalValue"),he(p,"class","BalanceModalRow"),he(u,"class","BalanceModalBody"),he(_,"class","BalanceModalAction"),he(A,"class","BalanceModalFooter"),he(i,"class","BalanceModal"),he(r,"class","BalanceModalWrapper")},m(e,t){ie(e,r,t),ae(r,o),ae(r,a),ae(r,i),ae(i,s),ae(s,l),ae(l,c),ae(i,h),ae(i,u),ae(u,p),ae(p,f),ae(f,d),ae(p,m),ae(p,g),ae(g,b),ae(b,y),ae(g,E),ae(g,B),ae(B,v),ae(u,T),N.m(u,null),ae(i,w),ae(i,A),ae(A,_),ae(_,S),H||(C=[D(o,"click",n[24]),D(_,"click",n[25])],H=!0)},p(e,t){256&t[0]&&M!==(M=e[8]("balanceTitle")+"")&&ue(c,M),256&t[0]&&P!==(P=e[8]("totalBalance")+"")&&ue(d,P),16&t[0]&&ue(y,e[4]),32&t[0]&&ue(v,e[5]),O===(O=R(e))&&N?N.p(e,t):(N.d(1),(N=O(e))&&(N.c(),N.m(u,null))),256&t[0]&&L!==(L=e[8]("depositButton")+"")&&ue(S,L)},d(e){e&&se(r),N.d(),H=!1,I(C)}}}function an(e){let n,r,o,a,i,s,l,c,h,u,p,f,d,m,g,b,y,E,B,v,T,w=e[8]("cashBalance")+"",A=e[11](e[6][0]?.balanceAmount)+"",_=e[8]("bonusBalance")+"",S=e[11](e[6][1]?.balanceAmount)+"";return{c(){n=t("div"),r=t("p"),o=le(w),a=ce(),i=t("p"),s=t("span"),l=le(A),c=ce(),h=t("span"),u=le(e[5]),p=ce(),f=t("div"),d=t("p"),m=le(_),g=ce(),b=t("p"),y=t("span"),E=le(S),B=ce(),v=t("span"),T=le(e[5]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(h,"class","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(d,"class","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(v,"class","BalanceModalCurrency"),he(b,"class","BalanceModalValue"),he(f,"class","BalanceModalRow")},m(e,t){ie(e,n,t),ae(n,r),ae(r,o),ae(n,a),ae(n,i),ae(i,s),ae(s,l),ae(i,c),ae(i,h),ae(h,u),ie(e,p,t),ie(e,f,t),ae(f,d),ae(d,m),ae(f,g),ae(f,b),ae(b,y),ae(y,E),ae(b,B),ae(b,v),ae(v,T)},p(e,t){256&t[0]&&w!==(w=e[8]("cashBalance")+"")&&ue(o,w),64&t[0]&&A!==(A=e[11](e[6][0]?.balanceAmount)+"")&&ue(l,A),32&t[0]&&ue(u,e[5]),256&t[0]&&_!==(_=e[8]("bonusBalance")+"")&&ue(m,_),64&t[0]&&S!==(S=e[11](e[6][1]?.balanceAmount)+"")&&ue(E,S),32&t[0]&&ue(T,e[5])},d(e){e&&se(n),e&&se(p),e&&se(f)}}}function sn(e){let n;function r(e){return"Casino"===e[1]||"Sports"===e[1]?cn:"All"===e[1]?ln:void 0}let o=r(e),a=o&&o(e);return{c(){a&&a.c(),n=le("")},m(e,t){a&&a.m(e,t),ie(e,n,t)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){a&&a.d(e),e&&se(n)}}}function ln(e){let n,r,o,a,D,$,i,s,l,U,c,h,G,u,p,f,F,k,d,m,g,j,b,V,X,y,E,B,z,K,Y,v,T,Z,W,w,q,J,A,_,Q,ee,te,S,H,ne,re,C,oe,M=e[8]("cashBalance")+"",P=e[11](e[7].Casino.Real)+"",L=e[8]("cashBalance")+"",R=e[11](e[7].Sports.Real)+"",O=e[8]("bonusBalance")+"",N=e[11](e[7].Casino.Bonus)+"",I=e[8]("bonusBalance")+"",x=e[11](e[7].Sports.Bonus)+"";return{c(){n=t("div"),r=t("div"),o=t("p"),a=le(M),D=le(" Casino"),$=ce(),i=t("p"),s=t("span"),l=le(P),U=ce(),c=t("span"),h=le(e[5]),G=ce(),u=t("div"),p=t("p"),f=le(L),F=le(" Sports"),k=ce(),d=t("p"),m=t("span"),g=le(R),j=ce(),b=t("span"),V=le(e[5]),X=ce(),y=t("div"),E=t("div"),B=t("p"),z=le(O),K=le(" Casino"),Y=ce(),v=t("p"),T=t("span"),Z=le(N),W=ce(),w=t("span"),q=le(e[5]),J=ce(),A=t("div"),_=t("p"),Q=le(I),ee=le(" Sports"),te=ce(),S=t("p"),H=t("span"),ne=le(x),re=ce(),C=t("span"),oe=le(e[5]),he(o,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(c,"class","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(r,"class","BalanceModalRowLine"),he(p,"class","BalanceModalText"),he(m,"class","BalanceModalAmount"),he(b,"class","BalanceModalCurrency"),he(d,"class","BalanceModalValue"),he(u,"class","BalanceModalRowLine"),he(n,"class","BalanceModalRowBoth"),he(B,"class","BalanceModalText"),he(T,"class","BalanceModalAmount"),he(w,"class","BalanceModalCurrency"),he(v,"class","BalanceModalValue"),he(E,"class","BalanceModalRowLine"),he(_,"class","BalanceModalText"),he(H,"class","BalanceModalAmount"),he(C,"class","BalanceModalCurrency"),he(S,"class","BalanceModalValue"),he(A,"class","BalanceModalRowLine"),he(y,"class","BalanceModalRowBoth")},m(e,t){ie(e,n,t),ae(n,r),ae(r,o),ae(o,a),ae(o,D),ae(r,$),ae(r,i),ae(i,s),ae(s,l),ae(i,U),ae(i,c),ae(c,h),ae(n,G),ae(n,u),ae(u,p),ae(p,f),ae(p,F),ae(u,k),ae(u,d),ae(d,m),ae(m,g),ae(d,j),ae(d,b),ae(b,V),ie(e,X,t),ie(e,y,t),ae(y,E),ae(E,B),ae(B,z),ae(B,K),ae(E,Y),ae(E,v),ae(v,T),ae(T,Z),ae(v,W),ae(v,w),ae(w,q),ae(y,J),ae(y,A),ae(A,_),ae(_,Q),ae(_,ee),ae(A,te),ae(A,S),ae(S,H),ae(H,ne),ae(S,re),ae(S,C),ae(C,oe)},p(e,t){256&t[0]&&M!==(M=e[8]("cashBalance")+"")&&ue(a,M),128&t[0]&&P!==(P=e[11](e[7].Casino.Real)+"")&&ue(l,P),32&t[0]&&ue(h,e[5]),256&t[0]&&L!==(L=e[8]("cashBalance")+"")&&ue(f,L),128&t[0]&&R!==(R=e[11](e[7].Sports.Real)+"")&&ue(g,R),32&t[0]&&ue(V,e[5]),256&t[0]&&O!==(O=e[8]("bonusBalance")+"")&&ue(z,O),128&t[0]&&N!==(N=e[11](e[7].Casino.Bonus)+"")&&ue(Z,N),32&t[0]&&ue(q,e[5]),256&t[0]&&I!==(I=e[8]("bonusBalance")+"")&&ue(Q,I),128&t[0]&&x!==(x=e[11](e[7].Sports.Bonus)+"")&&ue(ne,x),32&t[0]&&ue(oe,e[5])},d(e){e&&se(n),e&&se(X),e&&se(y)}}}function cn(e){let n,r,o,a,i,s,l,c,h,u,p,f,d,m,g,b,y,E,B,v,T,w=e[8]("cashBalance")+"",A=e[7][e[1]||"Casino"].Real+"",_=e[8]("bonusBalance")+"",S=e[7][e[1]||"Casino"].Bonus+"";return{c(){n=t("div"),r=t("p"),o=le(w),a=ce(),i=t("p"),s=t("span"),l=le(A),c=ce(),h=t("span"),u=le(e[5]),p=ce(),f=t("div"),d=t("p"),m=le(_),g=ce(),b=t("p"),y=t("span"),E=le(S),B=ce(),v=t("span"),T=le(e[5]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(h,"class","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(d,"class","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(v,"class","BalanceModalCurrency"),he(b,"class","BalanceModalValue"),he(f,"class","BalanceModalRow")},m(e,t){ie(e,n,t),ae(n,r),ae(r,o),ae(n,a),ae(n,i),ae(i,s),ae(s,l),ae(i,c),ae(i,h),ae(h,u),ie(e,p,t),ie(e,f,t),ae(f,d),ae(d,m),ae(f,g),ae(f,b),ae(b,y),ae(y,E),ae(b,B),ae(b,v),ae(v,T)},p(e,t){256&t[0]&&w!==(w=e[8]("cashBalance")+"")&&ue(o,w),130&t[0]&&A!==(A=e[7][e[1]||"Casino"].Real+"")&&ue(l,A),32&t[0]&&ue(u,e[5]),256&t[0]&&_!==(_=e[8]("bonusBalance")+"")&&ue(m,_),130&t[0]&&S!==(S=e[7][e[1]||"Casino"].Bonus+"")&&ue(E,S),32&t[0]&&ue(T,e[5])},d(e){e&&se(n),e&&se(p),e&&se(f)}}}function hn(n){let r,o,a;return{c(){he(r=t("div"),"class","ShowBalanceModalOverlay")},m(e,t){ie(e,r,t),o||(a=D(r,"click",n[26]),o=!0)},p:b,d(e){e&&se(r),o=!1,a()}}}function un(n){let r,o,a,i,s,l,c,h,u,p,f,d,m=n[3]&&on(n),g=n[3]&&hn(n);return{c(){r=t("div"),o=t("div"),a=t("p"),i=le(n[4]),s=ce(),l=le(n[5]),c=ce(),(h=t("span")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',u=ce(),m&&m.c(),p=ce(),g&&g.c(),this.c=b,he(a,"class","BalanceValue"),he(a,"part","BalanceValue"),he(o,"class","ShowBalance"),he(o,"part","ShowBalance")},m(e,t){ie(e,r,t),ae(r,o),ae(o,a),ae(a,i),ae(a,s),ae(a,l),ae(a,c),ae(a,h),ae(o,u),m&&m.m(o,null),ae(r,p),g&&g.m(r,null),n[27](r),f||(d=D(a,"click",n[23]),f=!0)},p(e,t){16&t[0]&&ue(i,e[4]),32&t[0]&&ue(l,e[5]),e[3]?m?m.p(e,t):((m=on(e)).c(),m.m(o,null)):m&&(m.d(1),m=null),e[3]?g?g.p(e,t):((g=hn(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:b,o:b,d(e){e&&se(r),m&&m.d(),g&&g.d(),n[27](null),f=!1,d()}}}function pn(t,e,i){let n;var r=qt;t.$$.on_destroy.push(x(r,e=>i(8,n=e)));let o,a,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:h="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,{customlocaleidentifier:d=""}=e,{gmversion:m=""}=e,{displaybalanceoption:g="All"}=e,{currencyseparator:b=""}=e,{currencydecimal:y=""}=e,{currencyprecision:E=""}=e,B=!1,v="",T="",w=[],A="0",_=!1;const S={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},H=(Object.keys(Qt).forEach(e=>{Jt(e,Qt[e])}),e=>{switch(e){case"balance":i(3,B=!0);break;case"closebalance":i(3,B=!1)}}),C=(e,t)=>{e=new nn.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});a&&a.close(),(a=e).addEventListener("message",e=>{A="0";try{let r=JSON.parse(e.data)["balanceChange"];if("gmcore"===m)i(6,w=w.map(e=>{var t,n;return r&&r[e.id]&&(t=e,n=r[e.id].afterAmount,e=Object.assign(Object.assign({},t),{balanceAmount:n})),A=(parseFloat(null==e?void 0:e.balanceAmount)+parseFloat(A)).toString(),e})),i(4,v=L(Number(A)));else if("gm16"===m){for(var t in r)i(7,S.Casino[t]=r[t].afterAmount,S);i(4,v=L(S.Casino.Bonus+S.Casino.Real))}}catch(e){console.log("Balance stream failed: ",e),C(`${c}/v1/player/${s}/balance/updates`,l)}})},M=()=>{H("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},P=()=>{let e;return e=d.includes(h)?d:e},L=e=>{return d?new Intl.NumberFormat(P(),{useGrouping:!0}).format(e):(b&&y?rn(e,{separator:b,decimal:y,symbol:"",precision:parseInt(E||"2",10)}):rn(e,{separator:".",decimal:",",symbol:"",precision:parseInt(E||"2",10)})).format()},R=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&a.close()};return r=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R),a&&a.close()}),function(){if(O)return O;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),t.$$set=e=>{"userid"in e&&i(12,s=e.userid),"session"in e&&i(13,l=e.session),"endpoint"in e&&i(14,c=e.endpoint),"lang"in e&&i(15,h=e.lang),"clientstyling"in e&&i(16,u=e.clientstyling),"clientstylingurl"in e&&i(17,p=e.clientstylingurl),"translationurl"in e&&i(18,f=e.translationurl),"customlocaleidentifier"in e&&i(19,d=e.customlocaleidentifier),"gmversion"in e&&i(0,m=e.gmversion),"displaybalanceoption"in e&&i(1,g=e.displaybalanceoption),"currencyseparator"in e&&i(20,b=e.currencyseparator),"currencydecimal"in e&&i(21,y=e.currencydecimal),"currencyprecision"in e&&i(22,E=e.currencyprecision)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&h&&P(),61443&t.$$.dirty[0]&&c&&s&&l&&h&&m&&g){var e=h;switch(N.set(e),m){case"gmcore":(async e=>{try{_=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw _=!1,new Error("Failed to fetch balance data !");_=!1,i(6,w=n.items),i(5,T=Object.keys(n.totalAmount)[0]),i(4,v=L(n.totalAmount[T]))}catch(e){_=!1,console.log("Balance error: ",e)}finally{_=!1}})(new URL(`${c}/v1/player/${s}/account`));break;case"gm16":(async e=>{try{_=!0,"Casino"==g&&e.searchParams.append("productType","Casino"),"Sports"==g&&e.searchParams.append("productType","Sports"),"All"===g&&(e.searchParams.append("productType","Casino"),e.searchParams.append("productType","Sports"));var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw _=!1,new Error("Failed to fetch balance data !");_=!1;for(const e of n.items){var{type:r,amount:o,productType:a}=e;"Casino"===g?i(7,S.Casino[r]=o,S):"Sports"===g?i(7,S.Sports[r]=o,S):"All"===g&&a&&r&&i(7,S[a][r]=o,S)}i(5,T=Object.keys(n.totalAmount)[0]),i(4,v=L(n.totalAmount[T]))}catch(e){_=!1,console.log("Balance error: ",e)}finally{_=!1}})(new URL(`${c}/v1/player/${s}/balance`));break;default:throw Error("Invalid apiversion attribute: "+m)}}if(28672&t.$$.dirty[0]&&c&&s&&l&&C(`${c}/v1/player/${s}/balance/updates`,l),65540&t.$$.dirty[0]&&u&&o&&((e=document.createElement("style")).innerHTML=u,o.appendChild(e)),131076&t.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}262144&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Jt(e,t[e])})}).catch(e=>{console.log(e)})},[m,g,o,B,v,T,w,S,n,H,M,L,s,l,c,h,u,p,f,d,b,y,E,()=>H("balance"),()=>H("closebalance"),()=>M(),()=>H("closebalance"),function(e){$[e?"unshift":"push"](()=>{o=e,i(2,o)})}]}class fn extends j{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}',this.shadowRoot.appendChild(t),k(this,{target:this.shadowRoot,props:function(e){var t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},pn,un,M,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1,currencyseparator:20,currencydecimal:21,currencyprecision:22},null,[-1,-1]),e&&(e.target&&ie(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier","gmversion","displaybalanceoption","currencyseparator","currencydecimal","currencyprecision"]}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),d()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),d()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get gmversion(){return this.$$.ctx[0]}set gmversion(e){this.$$set({gmversion:e}),d()}get displaybalanceoption(){return this.$$.ctx[1]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),d()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(e){this.$$set({currencyseparator:e}),d()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(e){this.$$set({currencydecimal:e}),d()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(e){this.$$set({currencyprecision:e}),d()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",fn),fn});
2
2
  //# sourceMappingURL=player-account-balance-modal.js.map