@everymatrix/player-account-balance-modal 1.86.2 → 1.86.3
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/components/{PlayerAccountBalanceModal-BlnRw3qy.js → PlayerAccountBalanceModal-B0E6wnNM.js} +1082 -1086
- package/components/{PlayerAccountBalanceModal-R_7aUobI.js → PlayerAccountBalanceModal-C75Gl_LI.js} +1070 -1074
- package/components/PlayerAccountBalanceModal-ClxrTa4q.cjs +22 -0
- package/es2015/player-account-balance-modal.cjs +1 -1
- package/es2015/player-account-balance-modal.js +1 -1
- package/esnext/player-account-balance-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-CoLTeWQ3.cjs +0 -9
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";var lr=Object.defineProperty,hr=Object.defineProperties;var cr=Object.getOwnPropertyDescriptors;var sn=Object.getOwnPropertySymbols;var fr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable;var Lt=Math.pow,Ht=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ot=(e,t)=>{for(var n in t||(t={}))fr.call(t,n)&&Ht(e,n,t[n]);if(sn)for(var n of sn(t))dr.call(t,n)&&Ht(e,n,t[n]);return e},Rt=(e,t)=>hr(e,cr(t));var se=(e,t,n)=>(Ht(e,typeof t!="symbol"?t+"":t,n),n);var Nt=(e,t,n)=>new Promise((r,i)=>{var o=f=>{try{a(n.next(f))}catch(l){i(l)}},u=f=>{try{a(n.throw(f))}catch(l){i(l)}},a=f=>f.done?r(f.value):Promise.resolve(f.value).then(o,u);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ue(){}function On(e){return e()}function un(){return Object.create(null)}function je(e){e.forEach(On)}function en(e){return typeof e=="function"}function Rn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function pr(e){return Object.keys(e).length===0}function Nn(e,...t){if(e==null){for(const r of t)r(void 0);return ue}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function mr(e,t,n){e.$$.on_destroy.push(Nn(t,n))}function M(e,t){e.appendChild(t)}function gr(e,t,n){const r=br(e);if(!r.getElementById(t)){const i=G("style");i.id=t,i.textContent=n,yr(r,i)}}function br(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function yr(e,t){return M(e.head||e,t),t.sheet}function fe(e,t,n){e.insertBefore(t,n||null)}function he(e){e.parentNode&&e.parentNode.removeChild(e)}function Mn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function G(e){return document.createElement(e)}function be(e){return document.createTextNode(e)}function ye(){return be(" ")}function vr(){return be("")}function mt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function z(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Er(e){return Array.from(e.childNodes)}function Ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function xr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let et;function Ke(e){et=e}function _r(){if(!et)throw new Error("Function called outside component initialization");return et}function Tr(e){_r().$$.on_mount.push(e)}const Pe=[],jt=[];let Ie=[];const ln=[],Br=Promise.resolve();let $t=!1;function Sr(){$t||($t=!0,Br.then(k))}function kt(e){Ie.push(e)}const Mt=new Set;let Ne=0;function k(){if(Ne!==0)return;const e=et;do{try{for(;Ne<Pe.length;){const t=Pe[Ne];Ne++,Ke(t),wr(t.$$)}}catch(t){throw Pe.length=0,Ne=0,t}for(Ke(null),Pe.length=0,Ne=0;jt.length;)jt.pop()();for(let t=0;t<Ie.length;t+=1){const n=Ie[t];Mt.has(n)||(Mt.add(n),n())}Ie.length=0}while(Pe.length);for(;ln.length;)ln.pop()();$t=!1,Mt.clear(),Ke(e)}function wr(e){if(e.fragment!==null){e.update(),je(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(kt)}}function Ar(e){const t=[],n=[];Ie.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ie=t}const Cr=new Set;function Hr(e,t){e&&e.i&&(Cr.delete(e),e.i(t))}function gt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Lr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),kt(()=>{const o=e.$$.on_mount.map(On).filter(en);e.$$.on_destroy?e.$$.on_destroy.push(...o):je(o),e.$$.on_mount=[]}),i.forEach(kt)}function Or(e,t){const n=e.$$;n.fragment!==null&&(Ar(n.after_update),je(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Rr(e,t){e.$$.dirty[0]===-1&&(Pe.push(e),Sr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Nr(e,t,n,r,i,o,u=null,a=[-1]){const f=et;Ke(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ue,not_equal:i,bound:un(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),callbacks:un(),dirty:a,skip_bound:!1,root:t.target||f.$$.root};u&&u(l.root);let d=!1;if(l.ctx=n?n(e,t.props||{},(g,y,..._)=>{const S=_.length?_[0]:y;return l.ctx&&i(l.ctx[g],l.ctx[g]=S)&&(!l.skip_bound&&l.bound[g]&&l.bound[g](S),d&&Rr(e,g)),y}):[],l.update(),d=!0,je(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const g=Er(t.target);l.fragment&&l.fragment.l(g),g.forEach(he)}else l.fragment&&l.fragment.c();t.intro&&Hr(e.$$.fragment),Lr(e,t.target,t.anchor),k()}Ke(f)}let Pn;typeof HTMLElement=="function"&&(Pn=class extends HTMLElement{constructor(t,n,r){super();se(this,"$$ctor");se(this,"$$s");se(this,"$$c");se(this,"$$cn",!1);se(this,"$$d",{});se(this,"$$r",!1);se(this,"$$p_d",{});se(this,"$$l",{});se(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Nt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let u;return{c:function(){u=G("slot"),o!=="default"&&z(u,"name",o)},m:function(l,d){fe(l,u,d)},d:function(l){l&&he(u)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=xr(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const u=this.$$g_p(o.name);u in this.$$d||(this.$$d[u]=ft(u,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Rt(Ot({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const u=ft(o,this.$$d[o],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,u)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const u of this.$$l[o]){const a=this.$$c.$on(o,u);this.$$l_u.set(u,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ft(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function ft(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Mr(e,t,n,r,i,o){let u=class extends Pn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(u.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(f){var l;f=ft(a,f,t),this.$$d[a]=f,(l=this.$$c)==null||l.$set({[a]:f})}})}),r.forEach(a=>{Object.defineProperty(u.prototype,a,{get(){var f;return(f=this.$$c)==null?void 0:f[a]}})}),e.element=u,u}class Pr{constructor(){se(this,"$$");se(this,"$$set")}$destroy(){Or(this,1),this.$destroy=ue}$on(t,n){if(!en(n))return ue;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!pr(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ir="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ir);function Dr(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Fr(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Ur(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}const Me=[];function Gr(e,t){return{subscribe:vt(e,t).subscribe}}function vt(e,t=ue){let n;const r=new Set;function i(a){if(Rn(e,a)&&(e=a,n)){const f=!Me.length;for(const l of r)l[1](),Me.push(l,e);if(f){for(let l=0;l<Me.length;l+=2)Me[l][0](Me[l+1]);Me.length=0}}}function o(a){i(a(e))}function u(a,f=ue){const l=[a,f];return r.add(l),r.size===1&&(n=t(i,o)||ue),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:u}}function $e(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Gr(n,(u,a)=>{let f=!1;const l=[];let d=0,g=ue;const y=()=>{if(d)return;g();const S=t(r?l[0]:l,u,a);o?u(S):g=en(S)?S:ue},_=i.map((S,I)=>Nn(S,j=>{l[I]=j,d&=~(1<<I),f&&y()},()=>{d|=1<<I}));return f=!0,y(),function(){je(_),g(),f=!1}})}var jr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr=function(t){return Vr(t)&&!Xr(t)};function Vr(e){return!!e&&typeof e=="object"}function Xr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Zr(e)}var zr=typeof Symbol=="function"&&Symbol.for,Wr=zr?Symbol.for("react.element"):60103;function Zr(e){return e.$$typeof===Wr}function qr(e){return Array.isArray(e)?[]:{}}function tt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?De(qr(e),e,t):e}function Qr(e,t,n){return e.concat(t).map(function(r){return tt(r,n)})}function Jr(e,t){if(!t.customMerge)return De;var n=t.customMerge(e);return typeof n=="function"?n:De}function Yr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function hn(e){return Object.keys(e).concat(Yr(e))}function In(e,t){try{return t in e}catch(n){return!1}}function Kr(e,t){return In(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ei(e,t,n){var r={};return n.isMergeableObject(e)&&hn(e).forEach(function(i){r[i]=tt(e[i],n)}),hn(t).forEach(function(i){Kr(e,i)||(In(e,i)&&n.isMergeableObject(t[i])?r[i]=Jr(i,n)(e[i],t[i],n):r[i]=tt(t[i],n))}),r}function De(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Qr,n.isMergeableObject=n.isMergeableObject||kr,n.cloneUnlessOtherwiseSpecified=tt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):ei(e,t,n):tt(t,n)}De.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return De(r,i,n)},{})};var ti=De,ni=ti;const ri=$r(ni);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Vt=function(e,t){return Vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Vt(e,t)};function Et(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var R=function(){return R=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function ii(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Pt(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function It(e,t){var n=t&&t.cache?t.cache:hi,r=t&&t.serializer?t.serializer:li,i=t&&t.strategy?t.strategy:ai;return i(e,{cache:n,serializer:r})}function oi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Dn(e,t,n,r){var i=oi(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Fn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function tn(e,t,n,r,i){return n.bind(t,e,r,i)}function ai(e,t){var n=e.length===1?Dn:Fn;return tn(e,this,n,t.cache.create(),t.serializer)}function si(e,t){return tn(e,this,Fn,t.cache.create(),t.serializer)}function ui(e,t){return tn(e,this,Dn,t.cache.create(),t.serializer)}var li=function(){return JSON.stringify(arguments)};function nn(){this.cache=Object.create(null)}nn.prototype.get=function(e){return this.cache[e]};nn.prototype.set=function(e,t){this.cache[e]=t};var hi={create:function(){return new nn}},Dt={variadic:si,monadic:ui},H;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(H||(H={}));var F;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(F||(F={}));var Fe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Fe||(Fe={}));function cn(e){return e.type===F.literal}function ci(e){return e.type===F.argument}function Un(e){return e.type===F.number}function Gn(e){return e.type===F.date}function jn(e){return e.type===F.time}function $n(e){return e.type===F.select}function kn(e){return e.type===F.plural}function fi(e){return e.type===F.pound}function Vn(e){return e.type===F.tag}function Xn(e){return!!(e&&typeof e=="object"&&e.type===Fe.number)}function Xt(e){return!!(e&&typeof e=="object"&&e.type===Fe.dateTime)}var zn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,di=/(?:[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;function pi(e){var t={};return e.replace(di,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var mi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function gi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(mi).filter(function(y){return y.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],u=o.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var a=u[0],f=u.slice(1),l=0,d=f;l<d.length;l++){var g=d[l];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:f})}return n}function bi(e){return e.replace(/^(.*?)-/,"")}var fn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wn=/^(@+)?(\+|#+)?[rs]?$/g,yi=/(\*)(0+)|(#+)(0+)|(0+)/g,Zn=/^(0+)$/;function dn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Wn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function qn(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 vi(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(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)),!Zn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function pn(e){var t={},n=qn(e);return n||t}function Ei(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=bi(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=R(R(R({},t),{notation:"scientific"}),i.options.reduce(function(f,l){return R(R({},f),pn(l))},{}));continue;case"engineering":t=R(R(R({},t),{notation:"engineering"}),i.options.reduce(function(f,l){return R(R({},f),pn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(yi,function(f,l,d,g,y,_){if(l)t.minimumIntegerDigits=d.length;else{if(g&&y)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Zn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(fn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(fn,function(f,l,d,g,y,_){return d==="*"?t.minimumFractionDigits=l.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:y&&_?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+_.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=R(R({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=R(R({},t),dn(o)));continue}if(Wn.test(i.stem)){t=R(R({},t),dn(i.stem));continue}var u=qn(i.stem);u&&(t=R(R({},t),u));var a=vi(i.stem);a&&(t=R(R({},t),a))}return t}var ct={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function xi(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var u=1+(o&1),a=o<2?1:3+(o>>1),f="a",l=_i(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=f;for(;u-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function _i(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ct[r||""]||ct[n||""]||ct["".concat(n,"-001")]||ct["001"];return i[0]}var Ft,Ti=new RegExp("^".concat(zn.source,"*")),Bi=new RegExp("".concat(zn.source,"*$"));function O(e,t){return{start:e,end:t}}var Si=!!String.prototype.startsWith&&"_a".startsWith("a",1),wi=!!String.fromCodePoint,Ai=!!Object.fromEntries,Ci=!!String.prototype.codePointAt,Hi=!!String.prototype.trimStart,Li=!!String.prototype.trimEnd,Oi=!!Number.isSafeInteger,Ri=Oi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},zt=!0;try{var Ni=Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zt=((Ft=Ni.exec("a"))===null||Ft===void 0?void 0:Ft[0])==="a"}catch(e){zt=!1}var mn=Si?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Wt=wi?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,u;i>o;){if(u=t[o++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},gn=Ai?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],u=o[0],a=o[1];n[u]=a}return n},Qn=Ci?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Mi=Hi?function(t){return t.trimStart()}:function(t){return t.replace(Ti,"")},Pi=Li?function(t){return t.trimEnd()}:function(t){return t.replace(Bi,"")};function Jn(e,t){return new RegExp(e,t)}var Zt;if(zt){var bn=Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zt=function(t,n){var r;bn.lastIndex=n;var i=bn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Zt=function(t,n){for(var r=[];;){var i=Qn(t,n);if(i===void 0||Yn(i)||Ui(i))break;r.push(i),n+=i>=65536?2:1}return Wt.apply(void 0,r)};var Ii=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var u=this.parseArgument(t,r);if(u.err)return u;i.push(u.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:F.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&qt(this.peek()||0)){var u=this.parseTag(t,n);if(u.err)return u;i.push(u.val)}else{var u=this.parseLiteral(t,n);if(u.err)return u;i.push(u.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:F.literal,value:"<".concat(i,"/>"),location:O(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var u=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!qt(this.char()))return this.error(H.INVALID_TAG,O(a,this.clonePosition()));var f=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(H.UNMATCHED_CLOSING_TAG,O(f,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:i,children:u,location:O(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,O(r,this.clonePosition()))}else return this.error(H.INVALID_TAG,O(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Fi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var u=this.tryParseUnquoted(t,n);if(u){i+=u;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var f=O(r,this.clonePosition());return{val:{type:F.literal,value:i,location:f},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Di(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Wt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Wt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,O(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(H.MALFORMED_ARGUMENT,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:i,location:O(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(H.MALFORMED_ARGUMENT,O(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Zt(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),u=O(t,o);return{value:r,location:u}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,u=this.clonePosition(),a=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(a){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,O(u,f));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var y=Pi(g.val);if(y.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var _=O(d,this.clonePosition());l={style:y,styleLocation:_}}var S=this.tryParseArgumentClose(i);if(S.err)return S;var I=O(i,this.clonePosition());if(l&&mn(l==null?void 0:l.style,"::",0)){var j=Mi(l.style.slice(2));if(a==="number"){var g=this.parseNumberSkeletonFromString(j,l.styleLocation);return g.err?g:{val:{type:F.number,value:r,location:I,style:g.val},err:null}}else{if(j.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,I);var Z=j;this.locale&&(Z=xi(j,this.locale));var y={type:Fe.dateTime,pattern:Z,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?pi(Z):{}},U=a==="date"?F.date:F.time;return{val:{type:U,value:r,location:I,style:y},err:null}}}return{val:{type:a==="number"?F.number:a==="date"?F.date:F.time,value:r,location:I,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,O(w,R({},w)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),P=0;if(a!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),C=this.parseIdentifierIfPossible(),P=g.val}var N=this.tryParsePluralOrSelectOptions(t,a,n,C);if(N.err)return N;var S=this.tryParseArgumentClose(i);if(S.err)return S;var W=O(i,this.clonePosition());return a==="select"?{val:{type:F.select,value:r,options:gn(N.val),location:W},err:null}:{val:{type:F.plural,value:r,options:gn(N.val),offset:P,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,O(u,f))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=gi(t)}catch(i){return this.error(H.INVALID_NUMBER_SKELETON,n)}return{val:{type:Fe.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Ei(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,u=!1,a=[],f=new Set,l=i.value,d=i.location;;){if(l.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;d=O(g,this.clonePosition()),l=this.message.slice(g.offset,this.offset())}else break}if(f.has(l))return this.error(n==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);l==="other"&&(u=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var S=this.parseMessage(t+1,n,r);if(S.err)return S;var I=this.tryParseArgumentClose(_);if(I.err)return I;a.push([l,{value:S.val,location:O(_,this.clonePosition())}]),f.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,d=o.location}return a.length===0?this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(H.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,u=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,u=u*10+(a-48),this.bump();else break}var f=O(i,this.clonePosition());return o?(u*=r,Ri(u)?{val:u,err:null}:this.error(n,f)):this.error(t,f)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Qn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(mn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Yn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function qt(e){return e>=97&&e<=122||e>=65&&e<=90}function Di(e){return qt(e)||e===47}function Fi(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Yn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ui(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Qt(e){e.forEach(function(t){if(delete t.location,$n(t)||kn(t))for(var n in t.options)delete t.options[n].location,Qt(t.options[n].value);else Un(t)&&Xn(t.style)||(Gn(t)||jn(t))&&Xt(t.style)?delete t.style.location:Vn(t)&&Qt(t.children)})}function Gi(e,t){t===void 0&&(t={}),t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ii(e,t).parse();if(n.err){var r=SyntaxError(H[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Qt(n.val),n.val}var Ue;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ue||(Ue={}));var xt=function(e){Et(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),yn=function(e){Et(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ue.INVALID_VALUE,o)||this}return t}(xt),ji=function(e){Et(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ue.INVALID_VALUE,i)||this}return t}(xt),$i=function(e){Et(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ue.MISSING_VALUE,r)||this}return t}(xt),ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ee||(ee={}));function ki(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ee.literal||n.type!==ee.literal?t.push(n):r.value+=n.value,t},[])}function Vi(e){return typeof e=="function"}function dt(e,t,n,r,i,o,u){if(e.length===1&&cn(e[0]))return[{type:ee.literal,value:e[0].value}];for(var a=[],f=0,l=e;f<l.length;f++){var d=l[f];if(cn(d)){a.push({type:ee.literal,value:d.value});continue}if(fi(d)){typeof o=="number"&&a.push({type:ee.literal,value:n.getNumberFormat(t).format(o)});continue}var g=d.value;if(!(i&&g in i))throw new $i(g,u);var y=i[g];if(ci(d)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),a.push({type:typeof y=="string"?ee.literal:ee.object,value:y});continue}if(Gn(d)){var _=typeof d.style=="string"?r.date[d.style]:Xt(d.style)?d.style.parsedOptions:void 0;a.push({type:ee.literal,value:n.getDateTimeFormat(t,_).format(y)});continue}if(jn(d)){var _=typeof d.style=="string"?r.time[d.style]:Xt(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ee.literal,value:n.getDateTimeFormat(t,_).format(y)});continue}if(Un(d)){var _=typeof d.style=="string"?r.number[d.style]:Xn(d.style)?d.style.parsedOptions:void 0;_&&_.scale&&(y=y*(_.scale||1)),a.push({type:ee.literal,value:n.getNumberFormat(t,_).format(y)});continue}if(Vn(d)){var S=d.children,I=d.value,j=i[I];if(!Vi(j))throw new ji(I,"function",u);var Z=dt(S,t,n,r,i,o),U=j(Z.map(function(P){return P.value}));Array.isArray(U)||(U=[U]),a.push.apply(a,U.map(function(P){return{type:typeof P=="string"?ee.literal:ee.object,value:P}}))}if($n(d)){var w=d.options[y]||d.options.other;if(!w)throw new yn(d.value,y,Object.keys(d.options),u);a.push.apply(a,dt(w.value,t,n,r,i));continue}if(kn(d)){var w=d.options["=".concat(y)];if(!w){if(!Intl.PluralRules)throw new xt(`Intl.PluralRules is not available in this environment.
|
|
15
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
16
|
+
`,Ue.MISSING_INTL_API,u);var C=n.getPluralRules(t,{type:d.pluralType}).select(y-(d.offset||0));w=d.options[C]||d.options.other}if(!w)throw new yn(d.value,y,Object.keys(d.options),u);a.push.apply(a,dt(w.value,t,n,r,i,y-(d.offset||0)));continue}}return ki(a)}function Xi(e,t){return t?R(R(R({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=R(R({},e[r]),t[r]||{}),n},{})):e}function zi(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Xi(e[r],t[r]),n},R({},e)):e}function Ut(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Wi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:It(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Pt([void 0],n,!1)))},{cache:Ut(e.number),strategy:Dt.variadic}),getDateTimeFormat:It(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Pt([void 0],n,!1)))},{cache:Ut(e.dateTime),strategy:Dt.variadic}),getPluralRules:It(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Pt([void 0],n,!1)))},{cache:Ut(e.pluralRules),strategy:Dt.variadic})}}var Zi=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(f){var l=o.formatToParts(f);if(l.length===1)return l[0].value;var d=l.reduce(function(g,y){return!g.length||y.type!==ee.literal||typeof g[g.length-1]!="string"?g.push(y.value):g[g.length-1]+=y.value,g},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(f){return dt(o.ast,o.locales,o.formatters,o.formats,f,void 0,o.message)},this.resolvedOptions=function(){var f;return{locale:((f=o.resolvedLocale)===null||f===void 0?void 0:f.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=i||{};u.formatters;var a=ii(u,["formatters"]);this.ast=e.__parse(t,R(R({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=zi(e.formats,r),this.formatters=i&&i.formatters||Wi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Gi,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function qi(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Se={},Qi=(e,t,n)=>n&&(t in Se||(Se[t]={}),e in Se[t]||(Se[t][e]=n),n),Kn=(e,t)=>{if(t==null)return;if(t in Se&&e in Se[t])return Se[t][e];const n=_t(t);for(let r=0;r<n.length;r++){const i=n[r],o=Yi(i,e);if(o)return Qi(e,t,o)}};let rn;const rt=vt({});function Ji(e){return rn[e]||null}function er(e){return e in rn}function Yi(e,t){if(!er(e))return null;const n=Ji(e);return qi(n,t)}function Ki(e){if(e==null)return;const t=_t(e);for(let n=0;n<t.length;n++){const r=t[n];if(er(r))return r}}function tr(e,...t){delete Se[e],rt.update(n=>(n[e]=ri.all([n[e]||{},...t]),n))}$e([rt],([e])=>Object.keys(e));rt.subscribe(e=>rn=e);const pt={};function eo(e,t){pt[e].delete(t),pt[e].size===0&&delete pt[e]}function nr(e){return pt[e]}function to(e){return _t(e).map(t=>{const n=nr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Jt(e){return e==null?!1:_t(e).some(t=>{var n;return(n=nr(t))==null?void 0:n.size})}function no(e,t){return Promise.all(t.map(r=>(eo(e,r),r().then(i=>i.default||i)))).then(r=>tr(e,...r))}const Ye={};function rr(e){if(!Jt(e))return e in Ye?Ye[e]:Promise.resolve();const t=to(e);return Ye[e]=Promise.all(t.map(([n,r])=>no(n,r))).then(()=>{if(Jt(e))return rr(e);delete Ye[e]}),Ye[e]}const ro={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"}}},io={fallbackLocale:null,loadingDelay:200,formats:ro,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},oo=io;function Ge(){return oo}const Gt=vt(!1);var ao=Object.defineProperty,so=Object.defineProperties,uo=Object.getOwnPropertyDescriptors,vn=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,En=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,co=(e,t)=>{for(var n in t||(t={}))lo.call(t,n)&&En(e,n,t[n]);if(vn)for(var n of vn(t))ho.call(t,n)&&En(e,n,t[n]);return e},fo=(e,t)=>so(e,uo(t));let Yt;const bt=vt(null);function xn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function _t(e,t=Ge().fallbackLocale){const n=xn(e);return t?[...new Set([...n,...xn(t)])]:n}function He(){return Yt!=null?Yt:void 0}bt.subscribe(e=>{Yt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const po=e=>{if(e&&Ki(e)&&Jt(e)){const{loadingDelay:t}=Ge();let n;return typeof window!="undefined"&&He()!=null&&t?n=window.setTimeout(()=>Gt.set(!0),t):Gt.set(!0),rr(e).then(()=>{bt.set(e)}).finally(()=>{clearTimeout(n),Gt.set(!1)})}return bt.set(e)},ke=fo(co({},bt),{set:po}),Tt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var mo=Object.defineProperty,yt=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,_n=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,on=(e,t)=>{for(var n in t||(t={}))ir.call(t,n)&&_n(e,n,t[n]);if(yt)for(var n of yt(t))or.call(t,n)&&_n(e,n,t[n]);return e},Ve=(e,t)=>{var n={};for(var r in e)ir.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yt)for(var r of yt(e))t.indexOf(r)<0&&or.call(e,r)&&(n[r]=e[r]);return n};const nt=(e,t)=>{const{formats:n}=Ge();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},go=Tt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=nt("number",r)),new Intl.NumberFormat(n,i)}),bo=Tt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=nt("date",r):Object.keys(i).length===0&&(i=nt("date","short")),new Intl.DateTimeFormat(n,i)}),yo=Tt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=nt("time",r):Object.keys(i).length===0&&(i=nt("time","short")),new Intl.DateTimeFormat(n,i)}),vo=(e={})=>{var t=e,{locale:n=He()}=t,r=Ve(t,["locale"]);return go(on({locale:n},r))},Eo=(e={})=>{var t=e,{locale:n=He()}=t,r=Ve(t,["locale"]);return bo(on({locale:n},r))},xo=(e={})=>{var t=e,{locale:n=He()}=t,r=Ve(t,["locale"]);return yo(on({locale:n},r))},_o=Tt((e,t=He())=>new Zi(e,t,Ge().formats,{ignoreTag:Ge().ignoreTag})),To=(e,t={})=>{var n,r,i,o;let u=t;typeof e=="object"&&(u=e,e=u.id);const{values:a,locale:f=He(),default:l}=u;if(f==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Kn(e,f);if(!d)d=(o=(i=(r=(n=Ge()).handleMissingMessage)==null?void 0:r.call(n,{locale:f,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let g=d;try{g=_o(d,f).format(a)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return g},Bo=(e,t)=>xo(t).format(e),So=(e,t)=>Eo(t).format(e),wo=(e,t)=>vo(t).format(e),Ao=(e,t=He())=>Kn(e,t),Co=$e([ke,rt],()=>To);$e([ke],()=>Bo);$e([ke],()=>So);$e([ke],()=>wo);$e([ke,rt],()=>Ao);function Tn(e,t){tr(e,t)}function Ho(e){ke.set(e)}const Bn={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Kt={exports:{}};/** @license
|
|
17
|
+
* eventsource.js
|
|
18
|
+
* Available under MIT License (MIT)
|
|
19
|
+
* https://github.com/Yaffle/EventSource/
|
|
20
|
+
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,u=n.XDomainRequest,a=n.ActiveXObject,f=n.EventSource,l=n.document,d=n.Promise,g=n.fetch,y=n.Response,_=n.TextDecoder,S=n.TextEncoder,I=n.AbortController;if(typeof window!="undefined"&&typeof l!="undefined"&&!("readyState"in l)&&l.body==null&&(l.readyState="loading",window.addEventListener("load",function(h){l.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(h){function v(){}return v.prototype=h,new v}),Date.now||(Date.now=function(){return new Date().getTime()}),I==null){var j=g;g=function(h,v){var s=v.signal;return j(h,{headers:v.headers,credentials:v.credentials,cache:v.cache}).then(function(c){var p=c.body.getReader();return s._reader=p,s._aborted&&s._reader.cancel(),{status:c.status,statusText:c.statusText,headers:c.headers,body:{getReader:function(){return p}}}})},I=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function Z(){this.bitsNeeded=0,this.codePoint=0}Z.prototype.decode=function(h){function v(A,L,T){if(T===1)return A>=128>>L&&A<<L<=2047;if(T===2)return A>=2048>>L&&A<<L<=55295||A>=57344>>L&&A<<L<=65535;if(T===3)return A>=65536>>L&&A<<L<=1114111;throw new Error}function s(A,L){if(A===6*1)return L>>6>15?3:L>31?2:1;if(A===6*2)return L>15?3:2;if(A===6*3)return 3;throw new Error}for(var c=65533,p="",m=this.bitsNeeded,E=this.codePoint,B=0;B<h.length;B+=1){var b=h[B];m!==0&&(b<128||b>191||!v(E<<6|b&63,m-6,s(m,E)))&&(m=0,E=c,p+=String.fromCharCode(E)),m===0?(b>=0&&b<=127?(m=0,E=b):b>=192&&b<=223?(m=6*1,E=b&31):b>=224&&b<=239?(m=6*2,E=b&15):b>=240&&b<=247?(m=6*3,E=b&7):(m=0,E=c),m!==0&&!v(E,m,s(m,E))&&(m=0,E=c)):(m-=6,E=E<<6|b&63),m===0&&(E<=65535?p+=String.fromCharCode(E):(p+=String.fromCharCode(55296+(E-65535-1>>10)),p+=String.fromCharCode(56320+(E-65535-1&1023))))}return this.bitsNeeded=m,this.codePoint=E,p};var U=function(){try{return new _().decode(new S().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(_==null||S==null||!U())&&(_=Z);var w=function(){};function C(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=w}C.prototype.open=function(h,v){this._abort(!0);var s=this,c=this._xhr,p=1,m=0;this._abort=function(T){s._sendTimeout!==0&&(i(s._sendTimeout),s._sendTimeout=0),(p===1||p===2||p===3)&&(p=4,c.onload=w,c.onerror=w,c.onabort=w,c.onprogress=w,c.onreadystatechange=w,c.abort(),m!==0&&(i(m),m=0),T||(s.readyState=4,s.onabort(null),s.onreadystatechange())),p=0};var E=function(){if(p===1){var T=0,D="",Q=void 0;if("contentType"in c)T=200,D="OK",Q=c.contentType;else try{T=c.status,D=c.statusText,Q=c.getResponseHeader("Content-Type")}catch(Qe){T=0,D="",Q=void 0}T!==0&&(p=2,s.readyState=2,s.status=T,s.statusText=D,s._contentType=Q,s.onreadystatechange())}},B=function(){if(E(),p===2||p===3){p=3;var T="";try{T=c.responseText}catch(D){}s.readyState=3,s.responseText=T,s.onprogress()}},b=function(T,D){if((D==null||D.preventDefault==null)&&(D={preventDefault:w}),B(),p===1||p===2||p===3){if(p=4,m!==0&&(i(m),m=0),s.readyState=4,T==="load")s.onload(D);else if(T==="error")s.onerror(D);else if(T==="abort")s.onabort(D);else throw new TypeError;s.onreadystatechange()}},A=function(T){c!=null&&(c.readyState===4?(!("onload"in c)||!("onerror"in c)||!("onabort"in c))&&b(c.responseText===""?"error":"load",T):c.readyState===3?"onprogress"in c||B():c.readyState===2&&E())},L=function(){m=r(function(){L()},500),c.readyState===3&&B()};"onload"in c&&(c.onload=function(T){b("load",T)}),"onerror"in c&&(c.onerror=function(T){b("error",T)}),"onabort"in c&&(c.onabort=function(T){b("abort",T)}),"onprogress"in c&&(c.onprogress=B),"onreadystatechange"in c&&(c.onreadystatechange=function(T){A(T)}),("contentType"in c||!("ontimeout"in o.prototype))&&(v+=(v.indexOf("?")===-1?"?":"&")+"padding=true"),c.open(h,v,!0),"readyState"in c&&(m=r(function(){L()},0))},C.prototype.abort=function(){this._abort(!1)},C.prototype.getResponseHeader=function(h){return this._contentType},C.prototype.setRequestHeader=function(h,v){var s=this._xhr;"setRequestHeader"in s&&s.setRequestHeader(h,v)},C.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},C.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&l!=null&&l.readyState!=null&&l.readyState!=="complete"){var h=this;h._sendTimeout=r(function(){h._sendTimeout=0,h.send()},4);return}var v=this._xhr;"withCredentials"in v&&(v.withCredentials=this.withCredentials);try{v.send(void 0)}catch(s){throw s}};function P(h){return h.replace(/[A-Z]/g,function(v){return String.fromCharCode(v.charCodeAt(0)+32)})}function N(h){for(var v=Object.create(null),s=h.split(`\r
|
|
21
|
+
`),c=0;c<s.length;c+=1){var p=s[c],m=p.split(": "),E=m.shift(),B=m.join(": ");v[P(E)]=B}this._map=v}N.prototype.get=function(h){return this._map[P(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function W(){}W.prototype.open=function(h,v,s,c,p,m,E){h.open("GET",p);var B=0;h.onprogress=function(){var A=h.responseText,L=A.slice(B);B+=L.length,s(L)},h.onerror=function(A){A.preventDefault(),c(new Error("NetworkError"))},h.onload=function(){c(null)},h.onabort=function(){c(null)},h.onreadystatechange=function(){if(h.readyState===o.HEADERS_RECEIVED){var A=h.status,L=h.statusText,T=h.getResponseHeader("Content-Type"),D=h.getAllResponseHeaders();v(A,L,T,new N(D))}},h.withCredentials=m;for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&h.setRequestHeader(b,E[b]);return h.send(),h};function ve(h){this._headers=h}ve.prototype.get=function(h){return this._headers.get(h)};function Ee(){}Ee.prototype.open=function(h,v,s,c,p,m,E){var B=null,b=new I,A=b.signal,L=new _;return g(p,{headers:E,credentials:m?"include":"same-origin",signal:A,cache:"no-store"}).then(function(T){return B=T.body.getReader(),v(T.status,T.statusText,T.headers.get("Content-Type"),new ve(T.headers)),new d(function(D,Q){var Qe=function(){B.read().then(function(ne){if(ne.done)D(void 0);else{var J=L.decode(ne.value,{stream:!0});s(J),Qe()}}).catch(function(ne){Q(ne)})};Qe()})}).catch(function(T){if(T.name!=="AbortError")return T}).then(function(T){c(T)}),{abort:function(){B!=null&&B.cancel(),b.abort()}}};function oe(){this._listeners=Object.create(null)}function de(h){r(function(){throw h},0)}oe.prototype.dispatchEvent=function(h){h.target=this;var v=this._listeners[h.type];if(v!=null)for(var s=v.length,c=0;c<s;c+=1){var p=v[c];try{typeof p.handleEvent=="function"?p.handleEvent(h):p.call(this,h)}catch(m){de(m)}}},oe.prototype.addEventListener=function(h,v){h=String(h);var s=this._listeners,c=s[h];c==null&&(c=[],s[h]=c);for(var p=!1,m=0;m<c.length;m+=1)c[m]===v&&(p=!0);p||c.push(v)},oe.prototype.removeEventListener=function(h,v){h=String(h);var s=this._listeners,c=s[h];if(c!=null){for(var p=[],m=0;m<c.length;m+=1)c[m]!==v&&p.push(c[m]);p.length===0?delete s[h]:s[h]=p}};function q(h){this.type=h,this.target=void 0}function xe(h,v){q.call(this,h),this.data=v.data,this.lastEventId=v.lastEventId}xe.prototype=Object.create(q.prototype);function x(h,v){q.call(this,h),this.status=v.status,this.statusText=v.statusText,this.headers=v.headers}x.prototype=Object.create(q.prototype);function _e(h,v){q.call(this,h),this.error=v.error}_e.prototype=Object.create(q.prototype);var Xe=-1,ce=0,Te=1,we=2,ze=-1,ae=0,Le=1,it=2,We=3,ot=/^text\/event\-stream(;.*)?$/i,Bt=1e3,at=18e6,Ze=function(h,v){var s=h==null?v:parseInt(h,10);return s!==s&&(s=v),qe(s)},qe=function(h){return Math.min(Math.max(h,Bt),at)},Be=function(h,v,s){try{typeof v=="function"&&v.call(h,s)}catch(c){de(c)}};function te(h,v){oe.call(this),v=v||{},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,wt(this,h,v)}function st(){return o!=null&&"withCredentials"in o.prototype||u==null?new o:new u}var St=g!=null&&y!=null&&"body"in y.prototype;function wt(h,v,s){v=String(v);var c=!!s.withCredentials,p=s.lastEventIdQueryParameterName||"lastEventId",m=qe(1e3),E=Ze(s.heartbeatTimeout,45e3),B="",b=m,A=!1,L=0,T=s.headers||{},D=s.Transport,Q=St&&D==null?void 0:new C(D!=null?new D:st()),Qe=D!=null&&typeof D!="string"?new D:Q==null?new Ee:new W,ne=void 0,J=0,le=Xe,Oe="",lt="",pe="",ht="",Y=ae,At=0,Ae=0,sr=function(V,$,re,ie){if(le===ce)if(V===200&&re!=null&&ot.test(re)){le=Te,A=Date.now(),b=m,h.readyState=Te;var K=new x("open",{status:V,statusText:$,headers:ie});h.dispatchEvent(K),Be(h,h.onopen,K)}else{var X="";V!==200?($&&($=$.replace(/\s+/g," ")),X="EventSource's response has a status "+V+" "+$+" that is not 200. Aborting the connection."):X="EventSource's response has a Content-Type specifying an unsupported type: "+(re==null?"-":re.replace(/\s+/g," "))+". Aborting the connection.",Ct();var K=new x("error",{status:V,statusText:$,headers:ie});h.dispatchEvent(K),Be(h,h.onerror,K),console.error(X)}},ur=function(V){if(le===Te){for(var $=-1,re=0;re<V.length;re+=1){var ie=V.charCodeAt(re);(ie===10||ie===13)&&($=re)}var K=($!==-1?ht:"")+V.slice(0,$+1);ht=($===-1?ht:"")+V.slice($+1),V!==""&&(A=Date.now(),L+=V.length);for(var X=0;X<K.length;X+=1){var ie=K.charCodeAt(X);if(Y===ze&&ie===10)Y=ae;else if(Y===ze&&(Y=ae),ie===13||ie===10){if(Y!==ae){Y===Le&&(Ae=X+1);var me=K.slice(At,Ae-1),ge=K.slice(Ae+(Ae<X&&K.charCodeAt(Ae)===32?1:0),X);me==="data"?(Oe+=`
|
|
22
|
+
`,Oe+=ge):me==="id"?lt=ge:me==="event"?pe=ge:me==="retry"?(m=Ze(ge,m),b=m):me==="heartbeatTimeout"&&(E=Ze(ge,E),J!==0&&(i(J),J=r(function(){Je()},E)))}if(Y===ae){if(Oe!==""){B=lt,pe===""&&(pe="message");var Re=new xe(pe,{data:Oe.slice(1),lastEventId:lt});if(h.dispatchEvent(Re),pe==="open"?Be(h,h.onopen,Re):pe==="message"?Be(h,h.onmessage,Re):pe==="error"&&Be(h,h.onerror,Re),le===we)return}Oe="",pe=""}Y=ie===13?ze:ae}else Y===ae&&(At=X,Y=Le),Y===Le?ie===58&&(Ae=X+1,Y=it):Y===it&&(Y=We)}}},an=function(V){if(le===Te||le===ce){le=Xe,J!==0&&(i(J),J=0),J=r(function(){Je()},b),b=qe(Math.min(m*16,b*2)),h.readyState=ce;var $=new _e("error",{error:V});h.dispatchEvent($),Be(h,h.onerror,$),V!=null&&console.error(V)}},Ct=function(){le=we,ne!=null&&(ne.abort(),ne=void 0),J!==0&&(i(J),J=0),h.readyState=we},Je=function(){if(J=0,le!==Xe){if(!A&&ne!=null)an(new Error("No activity within "+E+" milliseconds. "+(le===ce?"No response received.":L+" chars received.")+" Reconnecting.")),ne!=null&&(ne.abort(),ne=void 0);else{var V=Math.max((A||Date.now())+E-Date.now(),1);A=!1,J=r(function(){Je()},V)}return}A=!1,L=0,J=r(function(){Je()},E),le=ce,Oe="",pe="",lt=B,ht="",At=0,Ae=0,Y=ae;var $=v;if(v.slice(0,5)!=="data:"&&v.slice(0,5)!=="blob:"&&B!==""){var re=v.indexOf("?");$=re===-1?v:v.slice(0,re+1)+v.slice(re+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ge,Re){return Re===p?"":ge}),$+=(v.indexOf("?")===-1?"?":"&")+p+"="+encodeURIComponent(B)}var ie=h.withCredentials,K={};K.Accept="text/event-stream";var X=h.headers;if(X!=null)for(var me in X)Object.prototype.hasOwnProperty.call(X,me)&&(K[me]=X[me]);try{ne=Qe.open(Q,sr,ur,an,$,ie,K)}catch(ge){throw Ct(),ge}};h.url=v,h.readyState=ce,h.withCredentials=c,h.headers=T,h._close=Ct,Je()}te.prototype=Object.create(oe.prototype),te.prototype.CONNECTING=ce,te.prototype.OPEN=Te,te.prototype.CLOSED=we,te.prototype.close=function(){this._close()},te.CONNECTING=ce,te.OPEN=Te,te.CLOSED=we,te.prototype.withCredentials=void 0;var ut=f;o!=null&&(f==null||!("withCredentials"in f.prototype))&&(ut=te),function(h){{var v=h(t);v!==void 0&&(e.exports=v)}}(function(h){h.EventSourcePolyfill=te,h.NativeEventSource=f,h.EventSource=ut})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:jr:globalThis)})(Kt,Kt.exports);var Lo=Kt.exports;function Oo(e){gr(e,"svelte-gv6dm2",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.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(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--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;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #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(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--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}')}function Sn(e,t,n){const r=e.slice();return r[51]=t[n],r}function wn(e,t,n){const r=e.slice();return r[54]=t[n],r}function Ro(e){let t,n=(e[3].Total?e[5](e[3].Total[0].amount):"0")+"",r,i,o,u,a,f,l,d=e[2]&&An(e);return{c(){t=G("button"),r=be(n),i=ye(),o=G("span"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--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=ye(),d&&d.c(),a=vr(),z(t,"class","BalanceValue")},m(g,y){fe(g,t,y),M(t,r),M(t,i),M(t,o),fe(g,u,y),d&&d.m(g,y),fe(g,a,y),f||(l=mt(t,"click",e[25]),f=!0)},p(g,y){y[0]&8&&n!==(n=(g[3].Total?g[5](g[3].Total[0].amount):"0")+"")&&Ce(r,n),g[2]?d?d.p(g,y):(d=An(g),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null)},d(g){g&&(he(t),he(u),he(a)),d&&d.d(g),f=!1,l()}}}function No(e){let t,n=e[4]("Loading")+"",r;return{c(){t=G("p"),r=be(n)},m(i,o){fe(i,t,o),M(t,r)},p(i,o){o[0]&16&&n!==(n=i[4]("Loading")+"")&&Ce(r,n)},d(i){i&&he(t)}}}function An(e){let t,n,r,i,o,u,a=e[4]("Title")+"",f,l,d,g,y,_,S=e[4]("DepositButton")+"",I,j,Z,U=gt(Object.keys(e[3])),w=[];for(let C=0;C<U.length;C+=1)w[C]=Hn(Sn(e,U,C));return{c(){t=G("div"),n=G("button"),r=ye(),i=G("div"),o=G("div"),u=G("p"),f=be(a),l=ye(),d=G("div");for(let C=0;C<w.length;C+=1)w[C].c();g=ye(),y=G("div"),_=G("button"),I=be(S),z(n,"class","BalanceModalClose"),z(u,"class","BalanceModalTitle"),z(o,"class","BalanceModalHeader"),z(d,"class","BalanceModalBody"),z(_,"class","BalanceModalAction"),z(y,"class","BalanceModalFooter"),z(i,"class","BalanceModal"),z(t,"class","BalanceModalWrapper")},m(C,P){fe(C,t,P),M(t,n),M(t,r),M(t,i),M(i,o),M(o,u),M(u,f),M(i,l),M(i,d);for(let N=0;N<w.length;N+=1)w[N]&&w[N].m(d,null);M(i,g),M(i,y),M(y,_),M(_,I),j||(Z=[mt(n,"click",e[26]),mt(_,"click",e[27])],j=!0)},p(C,P){if(P[0]&16&&a!==(a=C[4]("Title")+"")&&Ce(f,a),P[0]&184){U=gt(Object.keys(C[3]));let N;for(N=0;N<U.length;N+=1){const W=Sn(C,U,N);w[N]?w[N].p(W,P):(w[N]=Hn(W),w[N].c(),w[N].m(d,null))}for(;N<w.length;N+=1)w[N].d(1);w.length=U.length}P[0]&16&&S!==(S=C[4]("DepositButton")+"")&&Ce(I,S)},d(C){C&&he(t),Mn(w,C),j=!1,je(Z)}}}function Cn(e){let t,n,r=e[4](e[51])+"",i,o,u=e[7](e[54])+"",a,f,l,d,g=e[5](e[54].amount)+"",y;return{c(){t=G("div"),n=G("p"),i=be(r),o=ye(),a=be(u),f=ye(),l=G("p"),d=G("span"),y=be(g),z(n,"class","BalanceModalText"),z(d,"class","BalanceModalAmount"),z(l,"class","BalanceModalValue"),z(t,"class","BalanceModalRowLine")},m(_,S){fe(_,t,S),M(t,n),M(n,i),M(n,o),M(n,a),M(t,f),M(t,l),M(l,d),M(d,y)},p(_,S){S[0]&24&&r!==(r=_[4](_[51])+"")&&Ce(i,r),S[0]&8&&u!==(u=_[7](_[54])+"")&&Ce(a,u),S[0]&8&&g!==(g=_[5](_[54].amount)+"")&&Ce(y,g)},d(_){_&&he(t)}}}function Hn(e){let t,n,r=gt(e[3][e[51]]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Cn(wn(e,r,o));return{c(){t=G("div");for(let o=0;o<i.length;o+=1)i[o].c();n=ye(),z(t,"class","BalanceModalRowBoth")},m(o,u){fe(o,t,u);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(t,null);M(t,n)},p(o,u){if(u[0]&184){r=gt(o[3][o[51]]);let a;for(a=0;a<r.length;a+=1){const f=wn(o,r,a);i[a]?i[a].p(f,u):(i[a]=Cn(f),i[a].c(),i[a].m(t,n))}for(;a<i.length;a+=1)i[a].d(1);i.length=r.length}},d(o){o&&he(t),Mn(i,o)}}}function Ln(e){let t,n,r;return{c(){t=G("button"),z(t,"class","ShowBalanceModalOverlay")},m(i,o){fe(i,t,o),n||(r=mt(t,"click",e[28]),n=!0)},p:ue,d(i){i&&he(t),n=!1,r()}}}function Mo(e){let t,n,r;function i(f,l){return f[1]?No:Ro}let o=i(e),u=o(e),a=e[2]&&Ln(e);return{c(){t=G("div"),n=G("div"),u.c(),r=ye(),a&&a.c(),z(n,"class","ShowBalance")},m(f,l){fe(f,t,l),M(t,n),u.m(n,null),M(t,r),a&&a.m(t,null),e[29](t)},p(f,l){o===(o=i(f))&&u?u.p(f,l):(u.d(1),u=o(f),u&&(u.c(),u.m(n,null))),f[2]?a?a.p(f,l):(a=Ln(f),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},i:ue,o:ue,d(f){f&&he(t),u.d(),a&&a.d(),e[29](null)}}}function Po(e,t,n){let r;mr(e,Co,s=>n(4,r=s));let{userid:i=""}=t,{session:o=""}=t,{endpoint:u=""}=t,{lang:a="en"}=t,{mbsource:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{translationurl:g=""}=t,{gmversion:y="gm16"}=t,{displaybalanceoption:_="All"}=t,{totalcalculationmode:S="totalCashAmount"}=t,{hideproducttype:I=""}=t,{currencylocale:j="en"}=t,{currencydisplay:Z="symbol"}=t,{maximumfractiondigits:U="2"}=t,{minimumfractiondigits:w="0"}=t,{customdisplayformat:C=""}=t,P,N,W=!0,ve=!1,Ee=!1,oe,de="",q=[],xe;const x={},_e=["totalCashAmount","totalRealAmount"],Xe=()=>{fetch(g).then(s=>s.json()).then(s=>Object.keys(s).forEach(c=>Tn(c,s[c]))).catch(s=>console.log(s))};Object.keys(Bn).forEach(s=>Tn(s,Bn[s]));const ce=s=>{if(C)return Te(s);const c=j||a,p={style:"currency",currency:de,useGrouping:!0,currencyDisplay:Z||"code",maximumFractionDigits:U===""||isNaN(Number(U))?2:Number(U),minimumFractionDigits:w===""||isNaN(Number(w))?0:Number(w)};return new Intl.NumberFormat(c,p).format(s)},Te=s=>{const c=[];let p="";for(const m of C)switch(m){default:p+=m;break;case"{":p&&c.push(p),p="";break;case"}":const[E,B]=p.split("|");if(p="",E.toLowerCase()==="currency")p=de;else if(E.toLowerCase()==="amount"){let b=",",A=".",L=2;B&&(B[0]!==" "&&(b=B[0]),B[1]!==" "&&(A=B[1]),B[2]!==" "&&!isNaN(Number(B[2]))&&(L=Number(B[2])));let[T,D]=String(Math.floor(s*Lt(10,L))/Lt(10,L)).split(".");p+=T[0];for(let Q=1;Q<T.length;++Q)(T.length-Q)%3===0?p+=b+T[Q]:p+=T[Q];D&&(p+=A+D)}p&&c.push(p),p="";break}return c.push(p),c.join("")},we=()=>Nt(this,null,function*(){var c,p,m;n(1,W=!0);const s=new URL(`${u}/v1/player/${i}/account`);try{const E=yield fetch(s,{method:"GET",headers:{"X-SessionID":o}}),B=yield E.json();if(E.ok)q=B.items,de=(c=q.find(b=>b.displayName==="Casino"))==null?void 0:c.currency,n(3,x.Total=[{amount:B.totalAmount[de]}],x),n(3,x.Real=[{amount:(p=q.find(b=>b.displayName==="Casino"))==null?void 0:p.balanceAmount}],x),n(3,x.Bonus=[{amount:(m=q.find(b=>b.displayName==="UBS"))==null?void 0:m.balanceAmount}],x);else throw new Error("Failed to fetch balance data !")}catch(E){console.log("Balance error: ",E)}finally{n(1,W=!1)}}),ze=()=>{n(1,W=!0);const s=new URL(`${u}/v2/player/${i}/balance`),c=new Headers;c.append("X-SessionID",o),fetch(s,{method:"GET",headers:c}).then(m=>m.json()).then(m=>{m[S]||n(8,S=_e[0]);const E=m.items.find(b=>b.type==="Real"&&b.walletAccountType==="Ordinary");if(de=E.currency,Ee=!!E.productType,n(3,x.Total=[{amount:0}],x),n(3,x.Real=[],x),n(3,x.Bonus=[],x),n(3,x.Credit=[],x),!Ee){xe={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(3,x.Total[0].amount=m[S][de],x);for(const b of m.items)switch(b.type){case"Bonus":x.Bonus.length===0?x.Bonus.push({amount:b.amount}):n(3,x.Bonus[0].amount+=b.amount,x);break;case"Real":if(b.creditLine&&x.Credit.length===0&&x.Credit.push({amount:b.creditLine}),S==="totalRealAmount")continue;x.Real.length===0?x.Real.push({amount:b.amount}):n(3,x.Real[0].amount+=b.amount,x);break}for(const[b,A]of Object.entries(x))A.length<1&&delete x[b];n(1,W=!1);return}xe={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let B=m.items;_&&_!=="All"&&(B=m.items.filter(b=>b.productType===_));for(const b of B){let A;switch(b.type){case"Bonus":A=x.Bonus.findIndex(L=>L.productType===b.productType),A>0?n(3,x.Bonus[A].amount+=b.amount,x):x.Bonus.push({amount:b.amount,productType:b.productType});break;case"Real":b.creditLine&&x.Credit.push({amount:b.creditLine,productType:b.productType}),A=x.Real.findIndex(L=>L.productType===b.productType),A>0?n(3,x.Real[A].amount+=b.amount,x):x.Real.push({amount:b.amount,productType:b.productType});break}}ot();for(const[b,A]of Object.entries(x))A.length<1&&delete x[b];window.postMessage({type:"playerBalanceInfo",balance:m},window.location.href),n(1,W=!1)}).catch(()=>{throw n(1,W=!1),new Error("Failed to fetch balance data !")})},ae=()=>{if(oe&&oe.close(),o.length<1)return;let s,c;switch(y){case"gm16":s=new URL(`${u}/v2/player/${i}/information/updates`),c=E=>Bt(E);break;case"gmcore":s=new URL(`${u}/v1/player/${i}/balance/updates`),c=E=>it(E);break}const p={accept:"text/event-stream","X-SessionId":o},m=new Lo.EventSourcePolyfill(s,{headers:p});oe=m,m.addEventListener("message",c)},Le=s=>{let c;try{c=JSON.parse(s)}catch(p){console.log("Balance stream failed: ",p);return}return c},it=s=>{var E,B;const c=Le(s.data);if(!c){ae();return}let p="0";const m=c.balanceChange;q=q.map(b=>(m&&m[b.id]&&(b=Rt(Ot({},b),{balanceAmount:m[b.id].afterAmount})),p=(parseFloat(b==null?void 0:b.balanceAmount)+parseFloat(p)).toString(),b)),n(3,x.Real=[{amount:(E=q[0])==null?void 0:E.balanceAmount}],x),n(3,x.Bonus=[{amount:(B=q[1])==null?void 0:B.balanceAmount}],x),n(3,x.Total=[{amount:Number(p)}],x)},We=(s,c,p)=>{let m=null;switch(p.walletAccountType){case"Ordinary":(p.afterAmount!==p.affectedAmount||c.lastOrdinaryAfterAmount===0)&&(c.lastOrdinaryAfterAmount=p.afterAmount,c.showCreditLineAfterAmount||(m=p.afterAmount));break;case"CreditLine":p.afterAmount!==0?(m=p.afterAmount,c.showCreditLineAfterAmount=!0):(m=c.lastOrdinaryAfterAmount,c.showCreditLineAfterAmount=!1);break;default:m=p.afterAmount}return m===null?s:m},ot=()=>{switch(S){case"totalCashAmount":let s=0;for(const p of["Real","Bonus"])for(const m of x[p])s+=Math.max(m.amount,0);n(3,x.Total[0].amount=s,x);break;case"totalRealAmount":if(!Ee)return;let c=0;for(const p of x.Real)c+=p.amount;n(3,x.Total[0].amount=c,x)}},Bt=s=>{const c=Le(s.data);if(!c){ae();return}if(Ze(c==null?void 0:c.type)||c.type!=="BALANCE_UPDATE_V2")return;const p=c.body.balanceChange;for(const[m,E]of Object.entries(p))if(S==="totalRealAmount"&&m==="Real"&&!Ee&&n(3,x.Total[0].amount=We(x.Total[0].amount,xe,E),x),!!x[m])for(const B of x[m]){if(!Ee){B.amount=m==="Real"?We(B.amount,xe,E):E.afterAmount;continue}E.productType===B.productType&&(B.amount=m==="Real"?We(B.amount,xe[B.productType],E):E.afterAmount)}ot()},at=()=>{n(2,ve=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Ze=s=>s==="SESSION_EXPIRATION"?(window.postMessage({type:"SessionExpiration"},window.location.href),!0):!1,qe=()=>{_e.includes(S)||(console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`),n(8,S=_e[0]))},Be=s=>{const c=I.split(",").map(p=>p.trim());return!s.productType||c.includes(s.productType)?"":r(s.productType)},te=()=>{switch(Ho(a),qe(),y){case"gmcore":we();break;case"gm16":ze();break;default:throw Error(`Invalid apiversion attribute: ${y}`)}},st=s=>s.data&&s.data.type==="LogoutSuccessfull"&&oe.close();Tr(()=>(window.addEventListener("message",st,!1),()=>{window.emMessageBus&&N&&N.unsubscribe(),window.removeEventListener("message",st),oe&&oe.close()}));const St=()=>n(2,ve=!0),wt=()=>n(2,ve=!1),ut=()=>at(),h=()=>n(2,ve=!1);function v(s){jt[s?"unshift":"push"](()=>{P=s,n(0,P)})}return e.$$set=s=>{"userid"in s&&n(9,i=s.userid),"session"in s&&n(10,o=s.session),"endpoint"in s&&n(11,u=s.endpoint),"lang"in s&&n(12,a=s.lang),"mbsource"in s&&n(13,f=s.mbsource),"clientstyling"in s&&n(14,l=s.clientstyling),"clientstylingurl"in s&&n(15,d=s.clientstylingurl),"translationurl"in s&&n(16,g=s.translationurl),"gmversion"in s&&n(17,y=s.gmversion),"displaybalanceoption"in s&&n(18,_=s.displaybalanceoption),"totalcalculationmode"in s&&n(8,S=s.totalcalculationmode),"hideproducttype"in s&&n(19,I=s.hideproducttype),"currencylocale"in s&&n(20,j=s.currencylocale),"currencydisplay"in s&&n(21,Z=s.currencydisplay),"maximumfractiondigits"in s&&n(22,U=s.maximumfractiondigits),"minimumfractiondigits"in s&&n(23,w=s.minimumfractiondigits),"customdisplayformat"in s&&n(24,C=s.customdisplayformat)},e.$$.update=()=>{e.$$.dirty[0]&400896&&u&&i&&o&&a&&y&&_&&te(),e.$$.dirty[0]&134656&&u&&i&&o&&y&&ae(),e.$$.dirty[0]&16385&&l&&P&&Dr(P,l),e.$$.dirty[0]&32769&&d&&P&&Fr(P,d),e.$$.dirty[0]&8193&&P&&Ur(P,`${f}.Style`),e.$$.dirty[0]&65536&&g&&Xe()},[P,W,ve,x,r,ce,at,Be,S,i,o,u,a,f,l,d,g,y,_,I,j,Z,U,w,C,St,wt,ut,h,v]}class ar extends Pr{constructor(t){super(),Nr(this,t,Po,Mo,Rn,{userid:9,session:10,endpoint:11,lang:12,mbsource:13,clientstyling:14,clientstylingurl:15,translationurl:16,gmversion:17,displaybalanceoption:18,totalcalculationmode:8,hideproducttype:19,currencylocale:20,currencydisplay:21,maximumfractiondigits:22,minimumfractiondigits:23,customdisplayformat:24},Oo,[-1,-1])}get userid(){return this.$$.ctx[9]}set userid(t){this.$$set({userid:t}),k()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),k()}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),k()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),k()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),k()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),k()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),k()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),k()}get gmversion(){return this.$$.ctx[17]}set gmversion(t){this.$$set({gmversion:t}),k()}get displaybalanceoption(){return this.$$.ctx[18]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),k()}get totalcalculationmode(){return this.$$.ctx[8]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),k()}get hideproducttype(){return this.$$.ctx[19]}set hideproducttype(t){this.$$set({hideproducttype:t}),k()}get currencylocale(){return this.$$.ctx[20]}set currencylocale(t){this.$$set({currencylocale:t}),k()}get currencydisplay(){return this.$$.ctx[21]}set currencydisplay(t){this.$$set({currencydisplay:t}),k()}get maximumfractiondigits(){return this.$$.ctx[22]}set maximumfractiondigits(t){this.$$set({maximumfractiondigits:t}),k()}get minimumfractiondigits(){return this.$$.ctx[23]}set minimumfractiondigits(t){this.$$set({minimumfractiondigits:t}),k()}get customdisplayformat(){return this.$$.ctx[24]}set customdisplayformat(t){this.$$set({customdisplayformat:t}),k()}}Mr(ar,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},hideproducttype:{},currencylocale:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{}},[],[],!0);exports.default=ar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountBalanceModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountBalanceModal-ClxrTa4q.cjs")).then(({default:t})=>{!customElements.get("player-account-balance-modal")&&customElements.define("player-account-balance-modal",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModal-B0E6wnNM.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-balance-modal") && customElements.define("player-account-balance-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|