@everymatrix/player-account-vault 1.86.12 → 1.86.21

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.
@@ -4440,7 +4440,7 @@ const cr = [], hr = {}, Na = (e, t = 0) => {
4440
4440
  }
4441
4441
  return hr[e];
4442
4442
  };
4443
- let Ut = "en-UK", ui = "true", pt = 0, dt = "";
4443
+ let Ut = "en-UK", ui = "true", pt = 2, dt = "";
4444
4444
  const Ra = (e, t, n, r) => {
4445
4445
  Ut = e || "en-UK", ui = t || "true", pt = +r || 0, dt = n || "";
4446
4446
  }, Re = (e, t, n = {}, r = !0) => {
@@ -4403,7 +4403,7 @@ const tn = [], rn = {}, xa = (e, t = 0) => {
4403
4403
  }
4404
4404
  return rn[e];
4405
4405
  };
4406
- let Nt = "en-UK", ti = "true", ut = 0, ct = "";
4406
+ let Nt = "en-UK", ti = "true", ut = 2, ct = "";
4407
4407
  const wa = (e, t, r, n) => {
4408
4408
  Nt = e || "en-UK", ti = t || "true", ut = +n || 0, ct = r || "";
4409
4409
  }, Pe = (e, t, r = {}, n = !0) => {
@@ -15,4 +15,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */var Cn=function(e,t){return Cn=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])},Cn(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");Cn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Sn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Pn(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 we(e){return typeof e=="function"}function ri(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fn=ri(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
17
17
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Hn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Yt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Sn(a),l=s.next();!l.done;l=s.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(we(h))try{h()}catch(g){o=g instanceof fn?g.errors:[g]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var c=Sn(f),m=c.next();!m.done;m=c.next()){var _=m.value;try{or(_)}catch(g){o=o!=null?o:[],g instanceof fn?o=Pn(Pn([],Bn(o)),Bn(g.errors)):o.push(g)}}}catch(g){r={error:g}}finally{try{m&&!m.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}if(o)throw new fn(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)or(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Hn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Hn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ii=Yt.EMPTY;function oi(e){return e instanceof Yt||e&&"closed"in e&&we(e.remove)&&we(e.add)&&we(e.unsubscribe)}function or(e){we(e)?e():e.unsubscribe()}var xa={Promise:void 0},wa={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Pn([e,t],Bn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Aa(e){wa.setTimeout(function(){throw e})}function ar(){}function Ft(e){e()}var ai=function(e){Et(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,oi(n)&&n.add(r)):r.destination=Sa,r}return t.create=function(n,r,i){return new In(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Yt),Ta=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Lt(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Lt(r)}else Lt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Lt(n)}},e}(),In=function(e){Et(t,e);function t(n,r,i){var o=e.call(this)||this,a;return we(n)||!n?a={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:a=n,o.destination=new Ta(a),o}return t}(ai);function Lt(e){Aa(e)}function Ca(e){throw e}var Sa={closed:!0,next:ar,error:Ca,complete:ar},Ba=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Pa(e){return e}function Ha(e){return e.length===0?Pa:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var sr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=Oa(t)?t:new In(t,n,r);return Ft(function(){var a=i,s=a.operator,l=a.source;o.add(s?s.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=lr(n),new n(function(i,o){var a=new In({next:function(s){try{t(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:i});r.subscribe(a)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ba]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ha(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=lr(t),new t(function(r,i){var o;n.subscribe(function(a){return o=a},function(a){return i(a)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function lr(e){var t;return(t=e!=null?e:xa.Promise)!==null&&t!==void 0?t:Promise}function Ia(e){return e&&we(e.next)&&we(e.error)&&we(e.complete)}function Oa(e){return e&&e instanceof ai||Ia(e)&&oi(e)}var La=ri(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),si=function(e){Et(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new ur(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new La},t.prototype.next=function(n){var r=this;Ft(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=Sn(r.currentObservers),s=a.next();!s.done;s=a.next()){var l=s.value;l.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Ft(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ft(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,a=i.isStopped,s=i.observers;return o||a?ii:(this.currentObservers=null,s.push(n),new Yt(function(){r.currentObservers=null,Hn(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,a=r.isStopped;i?n.error(o):a&&n.complete()},t.prototype.asObservable=function(){var n=new sr;return n.source=this,n},t.create=function(n,r){return new ur(n,r)},t}(sr),ur=function(e){Et(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:ii},t}(si),li={now:function(){return(li.delegate||Date).now()},delegate:void 0},Na=function(e){Et(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=li);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,a=r._infiniteTimeWindow,s=r._timestampProvider,l=r._windowTime;i||(o.push(n),!a&&o.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,a=i._buffer,s=a.slice(),l=0;l<s.length&&!n.closed;l+=o?1:2)n.next(s[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,a=n._infiniteTimeWindow,s=(a?1:2)*r;if(r<1/0&&s<o.length&&o.splice(0,o.length-s),!a){for(var l=i.now(),u=0,h=1;h<o.length&&o[h]<=l;h+=2)u=h;u&&o.splice(0,u+1)}},t}(si);const cr=[],hr={},Ra=(e,t=0)=>{if(cr.indexOf(e)==-1){const n=new Na(t);hr[e]=n,cr.push(e)}return hr[e]};let Ut="en-UK",ui="true",pt=0,dt="";const Da=(e,t,n,r)=>{Ut=e||"en-UK",ui=t||"true",pt=+r||0,dt=n||""},Re=(e,t,n={},r=!0)=>{const i=Ie(Ie({maximumFractionDigits:pt,minimumFractionDigits:pt},r&&{style:"currency",currency:t,currencyDisplay:ui==="true"?"symbol":"code"}),n);try{if(!dt)return new Intl.NumberFormat(Ut,i).format(e);const a=new Intl.NumberFormat(Ut,i).formatToParts(e),s=a.find(({type:h=""}={})=>h==="currency")||{},l=a.filter(({type:h=""}={})=>h!=="currency").map(({value:h=""}={})=>h).join("");return dt==="before"?`${s.value||i.currency||""} ${l}`:`${l} ${s.value||i.currency||""}`}catch(o){console.info(o);const a=new Intl.NumberFormat(Ut,{maximumFractionDigits:pt,minimumFractionDigits:pt}).format(e);return dt?dt==="before"?`${i.currency||""} ${a}`:`${a} ${i.currency||""}`:`${i.currency||""} ${a}`}};window.emWidgets={topic:Ra};const Ma={"1INCH":"",AAVE:"",ADA:"₳",ADF:"",ADP:"",AED:"د.إ",AFN:"؋",ALGO:"Ⱥ",ALL:"L",AMD:"Դ",AMP:"",ANG:"ƒ",AOA:"Kz",AQAQAAUKXMYQOUSOUJHLTNBOI:"",AQAQAAUXKBXDCWFVEDYIDYHWD:"",AQAQADPGMAZQICGIVARVFRSQS:"",AQAQAFDJIKCUBVVVGVQNBWRDX:"",AQAQAFMRIPFFPCHYHKSGDDGOF:"",AQAQAFRMNSQNCLRLEJGEIDLDO:"",AQAQAJMRAJIZSQTNLYHHJNUIA:"",AQAQAOLFQBZJAPJMVXZDAXXKJ:"",AR:"",ARS:"$",ATOM:"",AUD:"$",AVAX:"",AWG:"ƒ",AXS:"",AZN:"₼",BAM:"KM",BAT:"",BBD:"$",BCH:"Ƀ",BDT:"৳",BGN:"лв",BHD:"ب.د",BIF:"FBu",BMD:"$",BNB:"",BND:"$",BOB:"$b",BORA:"",BRL:"R$",BSD:"$",BSV:"Ɓ",BTC:"₿",BTCB:"",BTN:"Nu.",BTT:"",BUSD:"₮",BWP:"P",BYN:"Br",BYR:"p.",BZD:"BZ$",CAD:"$",CAKE:"",CDF:"FC",CEL:"",CELO:"",CHF:"CHF",CHZ:"",CLP:"$",CNY:"¥",COMP:"",COP:"$",CRC:"₡",CUC:"$",CRO:"",CRV:"",CUC:"",CUP:"₱",CVE:"",CZK:"Kč",DAI:"◈",DASH:"Đ",DCR:"",DJF:"Fdj",DKK:"KR",DOGE:"Ð",DOP:"RD$",DOT:"●",DZD:"د.ج",EEK:"kr",EGLD:"",EGP:"£",ELON:"",ERN:"Nfk",ETB:"Br",ENJ:"",EOS:"ε",ETC:"ξ",ETH:"Ξ",EUR:"€",FIL:"⨎",FJD:"$",FKP:"£",FLOW:"",FTM:"",FTT:"",FUN:"",GALA:"",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GCC:"",GHS:"¢",GMD:"D",GNF:"FG",GIP:"£",GRT:"",GTQ:"Q",GYD:"$",HBAR:"",HKD:"$",HNL:"L",HNT:"",HOT:"",HRK:"kn",HTG:"G",HT:"",HUF:"Ft",ICP:"∞",ICX:"",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IOTX:"",IQD:"د.ع",IRR:"﷼",ISK:"KR",JMD:"J$",JOD:"د.ا",JPY:"¥",KCS:"",KDA:"",KMF:"CF",KES:"KSh",KGS:"лв",KHR:"៛",KLAY:"",KPW:"₩",KRW:"₩",KSM:"",KWD:"د.ك",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LEO:"",LINK:"",LKR:"₨",LPT:"",LRC:"",LRD:"$",LSL:"M",LTC:"Ł",LUNA:"",LTL:"Lt",LVL:"Ls",MDL:"lei",MGA:"Ar",LYD:"د.ل",MAD:"د.م",MANA:"",MATIC:"",MINA:"",MIOTA:"ɨ",MKD:"ден",MKR:"Μ",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NEAR:"",NEO:"",NEXO:"",NGN:"₦",NIO:"C$",NOK:"KR",NPR:"₨",NZD:"$",OKB:"",OMG:"",OMR:"﷼",ONE:"",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"₲",QAR:"﷼",QNT:"",QTUM:"",RON:"LEI",ROSE:"",RMB:"¥",RSD:"Дин.",RUB:"₽",RUNE:"",RVN:"",RWF:"R₣",SAND:"",SAR:"﷼",SBD:"$",SCC:"",SCR:"₨",SDG:"د.س",SEK:"KR",SGD:"$",SHIB:"",SHP:"£",SLL:"Le",SSP:"£",STD:"Db",SOL:"",SOS:"S",SRD:"$",STX:"",SUSHI:"",SVC:"$",SYP:"£",SZL:"E",TES:"",TFUEL:"",TJS:"SM",TMT:"T",THB:"฿",THETA:"ϑ",TND:"د.ت",TOP:"T$",TVD:"$",TRL:"₤",TRX:"",TRY:"₺",TTD:"TT$",TUSD:"",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",UNI:"",USD:"$",USDC:"",USDT:"₮",UST:"",UYU:"$U",UZS:"лв",VEF:"Bs",VES:"",VET:"",VND:"₫",VUV:"VT",WAVES:"",WBTC:"₿",WST:"WS$",XAF:"FCFA",XPF:"₣",XBT:"Ƀ",XCD:"$",XDC:"",XEC:"",XEM:"",XFUN:"",XLM:"✕",XMR:"ɱ",XOF:"CFA",XRP:"✕",XTZ:"ꜩ",YER:"﷼",YFI:"",ZAR:"R",ZEC:"ⓩ",ZMK:"",ZMW:"",ZWD:"Z$"};function ka(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(r)},t)}}const fr=(e,t=null,n=2)=>{try{return JSON.stringify(e,t,n)}catch(r){return console.warn("Failed to stringify:",r),null}};function Fa(e){if(e){if(e=e.toString(),isNaN(e))throw Error("Parameter is not a number: "+e);e[0]=="+"&&(e=e.substring(1))}else e="0";if(e.startsWith(".")?e="0"+e:e.startsWith("-.")&&(e="-0"+e.substr(1)),/e/i.test(e)){let[t,n]=e.split(/[eE]/);t=trim(t);let r="";t[0]==="-"&&(r="-",t=t.substring(1)),t.indexOf(".")>=0?(n=parseInt(n)+t.indexOf("."),t=t.replace(".","")):n=parseInt(n)+t.length,t.length<n?e=r+t+new Array(n-t.length+1).join("0"):t.length>=n&&n>0?e=r+trim(t.substring(0,n))+(t.length>n?"."+t.substring(n):""):e=r+"0."+new Array(-n+1).join("0")+t}return e}const xe=String(Number.MAX_SAFE_INTEGER).length,Ua=6e3,Va={InvalidSession:"Invalid session"},J={BalanceError:"BalanceError",CheckWalletExchangeError:"CheckWalletExchangeError",WalletExchangeError:"WalletExchangeError",CurrenciesError:"CurrenciesError"},pr={ResetVaultWidget:"ResetVaultWidget",CloseVaultWidget:"CloseVaultWidget"},pn={VaultWidgetReset:"VaultWidgetReset",VaultWidgetClosed:"VaultWidgetClosed",VaultDropdownToggled:"VaultDropdownToggled"},dr={Real:"Real",Vault:"Vault"},Oe={success:"success",error:"error"},Nt={ArrowDown:"ArrowDown",ArrowUp:"ArrowUp",Enter:"Enter",Escape:"Escape"},le={true:"true"},mr={Fiat:"Fiat",CryptoCurrency:"CryptoCurrency"},Ga={Credit:"Credit"};function $a(e){const t=n=>{e.contains(n.target)||e.dispatchEvent(new CustomEvent("outclick"))};return document.addEventListener("click",t),{destroy(){document.removeEventListener("click",t)}}}function ja(e){Ln(e,"svelte-1g9pqha",".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}")}function gr(e,t,n){const r=e.slice();return r[16]=t[n],r[18]=n,r}function br(e){var i;let t,n=(((i=e[0])==null?void 0:i.symbol)||"")+"",r;return{c(){t=T("span"),r=z(n),v(t,"class","symbol svelte-1g9pqha")},m(o,a){P(o,t,a),x(t,r)},p(o,a){var s;a&1&&n!==(n=(((s=o[0])==null?void 0:s.symbol)||"")+"")&&re(r,n)},d(o){o&&B(t)}}}function yr(e){let t,n,r=Gt(e[1]),i=[];for(let o=0;o<r.length;o+=1)i[o]=vr(gr(e,r,o));return{c(){t=T("div"),n=T("ul");for(let o=0;o<i.length;o+=1)i[o].c();v(n,"class","selectDropdown svelte-1g9pqha"),v(t,"class","selectDropdownWrapper svelte-1g9pqha")},m(o,a){P(o,t,a),x(t,n);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(n,null);e[14](n)},p(o,a){if(a&547){r=Gt(o[1]);let s;for(s=0;s<r.length;s+=1){const l=gr(o,r,s);i[s]?i[s].p(l,a):(i[s]=vr(l),i[s].c(),i[s].m(n,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=r.length}},d(o){o&&B(t),Sr(i,o),e[14](null)}}}function vr(e){var c,m;let t,n,r=((c=e[16])==null?void 0:c.symbol)+"",i,o,a=((m=e[16])==null?void 0:m.currency)+"",s,l,u,h,f;return{c(){var _,g,w,N;t=T("li"),n=T("span"),i=z(r),o=R(),s=z(a),l=R(),v(n,"class","symbol svelte-1g9pqha"),v(t,"role","option"),v(t,"aria-selected",u=((_=e[16])==null?void 0:_.currency)===((g=e[0])==null?void 0:g.currency)||e[18]===e[5]),v(t,"class","svelte-1g9pqha"),se(t,"active",((w=e[16])==null?void 0:w.currency)===((N=e[0])==null?void 0:N.currency)||e[18]===e[5])},m(_,g){P(_,t,g),x(t,n),x(n,i),x(t,o),x(t,s),x(t,l),h||(f=[ne(t,"keydown",Xa),ne(t,"click",function(){_t(e[9](e[16],e[18]))&&e[9](e[16],e[18]).apply(this,arguments)})],h=!0)},p(_,g){var w,N,E,b,C,D;e=_,g&2&&r!==(r=((w=e[16])==null?void 0:w.symbol)+"")&&re(i,r),g&2&&a!==(a=((N=e[16])==null?void 0:N.currency)+"")&&re(s,a),g&35&&u!==(u=((E=e[16])==null?void 0:E.currency)===((b=e[0])==null?void 0:b.currency)||e[18]===e[5])&&v(t,"aria-selected",u),g&35&&se(t,"active",((C=e[16])==null?void 0:C.currency)===((D=e[0])==null?void 0:D.currency)||e[18]===e[5])},d(_){_&&B(t),h=!1,Ae(f)}}}function Wa(e){var _,g;let t,n,r,i,o=(((_=e[0])==null?void 0:_.currency)||e[2])+"",a,s,l,u,h,f,c=((g=e[0])==null?void 0:g.symbol)&&e[3]===le.true&&br(e),m=e[7]&&yr(e);return{c(){t=T("div"),n=T("button"),r=T("span"),c&&c.c(),i=R(),a=z(o),s=R(),l=T("span"),l.innerHTML='<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>',u=R(),m&&m.c(),v(r,"class","label svelte-1g9pqha"),v(l,"class","arrow"),se(l,"open",e[7]),v(n,"class","selectButton svelte-1g9pqha"),v(n,"aria-haspopup","listbox"),v(n,"aria-expanded",e[7]),v(n,"aria-controls","custom-select"),v(n,"tabindex","0"),n.disabled=e[4],v(t,"class","selectWrapper svelte-1g9pqha")},m(w,N){P(w,t,N),x(t,n),x(n,r),c&&c.m(r,null),x(r,i),x(r,a),x(n,s),x(n,l),x(t,u),m&&m.m(t,null),h||(f=[ne(n,"keydown",e[11]),ne(n,"click",xi(e[8])),yi($a.call(null,t)),ne(t,"outclick",e[10])],h=!0)},p(w,[N]){var E,b;(E=w[0])!=null&&E.symbol&&w[3]===le.true?c?c.p(w,N):(c=br(w),c.c(),c.m(r,i)):c&&(c.d(1),c=null),N&5&&o!==(o=(((b=w[0])==null?void 0:b.currency)||w[2])+"")&&re(a,o),N&128&&se(l,"open",w[7]),N&128&&v(n,"aria-expanded",w[7]),N&16&&(n.disabled=w[4]),w[7]?m?m.p(w,N):(m=yr(w),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i:I,o:I,d(w){w&&B(t),c&&c.d(),m&&m.d(),h=!1,Ae(f)}}}const Xa=e=>e.preventDefault();function za(e,t,n){let{options:r=[]}=t,{selected:i=null}=t,{placeholder:o=M("select")}=t,{withSymbol:a="true"}=t,{id:s}=t,{disabled:l=!1}=t,{onChange:u=()=>{}}=t,h=-1,f,c=!1;const m=()=>Ht(this,null,function*(){var b;r.length!==0&&(n(7,c=!c),c&&(n(5,h=r.findIndex(C=>(C==null?void 0:C.currency)===(i==null?void 0:i.currency))),window.dispatchEvent(new CustomEvent("dropdown-opened",{detail:s})),yield Ci(),f==null||f.focus(),(b=f==null?void 0:f.querySelector('li[aria-selected="true"]'))==null||b.scrollIntoView({block:"nearest"})))}),_=b=>{b.detail!==s&&c&&n(7,c=!1)},g=(b,C)=>()=>{n(7,c=!1),n(0,i=b),u&&typeof u=="function"&&u(b,C)},w=()=>{n(7,c=!1)},N=b=>{c&&(b.key===Nt.ArrowDown?(b.preventDefault(),n(5,h=(h+1)%r.length)):b.key===Nt.ArrowUp?(b.preventDefault(),n(5,h=(h-1+r.length)%r.length)):b.key===Nt.Enter?(b.preventDefault(),g(i,h)()):b.key===Nt.Escape&&n(7,c=!1))};Pr(()=>{window.addEventListener("dropdown-opened",_)}),Ti(()=>{window.removeEventListener("dropdown-opened",_)});function E(b){Qe[b?"unshift":"push"](()=>{f=b,n(6,f)})}return e.$$set=b=>{"options"in b&&n(1,r=b.options),"selected"in b&&n(0,i=b.selected),"placeholder"in b&&n(2,o=b.placeholder),"withSymbol"in b&&n(3,a=b.withSymbol),"id"in b&&n(12,s=b.id),"disabled"in b&&n(4,l=b.disabled),"onChange"in b&&n(13,u=b.onChange)},[i,r,o,a,l,h,f,c,m,g,w,N,s,u,E]}class On extends Dn{constructor(t){super(),Nn(this,t,za,Wa,Xt,{options:1,selected:0,placeholder:2,withSymbol:3,id:12,disabled:4,onChange:13},ja)}get options(){return this.$$.ctx[1]}set options(t){this.$$set({options:t}),F()}get selected(){return this.$$.ctx[0]}set selected(t){this.$$set({selected:t}),F()}get placeholder(){return this.$$.ctx[2]}set placeholder(t){this.$$set({placeholder:t}),F()}get withSymbol(){return this.$$.ctx[3]}set withSymbol(t){this.$$set({withSymbol:t}),F()}get id(){return this.$$.ctx[12]}set id(t){this.$$set({id:t}),F()}get disabled(){return this.$$.ctx[4]}set disabled(t){this.$$set({disabled:t}),F()}get onChange(){return this.$$.ctx[13]}set onChange(t){this.$$set({onChange:t}),F()}}Rn(On,{options:{},selected:{},placeholder:{},withSymbol:{},id:{},disabled:{type:"Boolean"},onChange:{}},[],[],!0);function Za(e){Ln(e,"svelte-2fhtvy",".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}")}function Ka(e){let t,n,r=M("balanceUnavailable")+"",i;return{c(){t=T("span"),t.innerHTML='<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>',n=R(),i=z(r),v(t,"class","warningIcon svelte-2fhtvy")},m(o,a){P(o,t,a),P(o,n,a),P(o,i,a)},p:I,i:I,o:I,d(o){o&&(B(t),B(n),B(i))}}}class Jt extends Dn{constructor(t){super(),Nn(this,t,null,Ka,Xt,{},Za)}}Rn(Jt,{},[],[],!0);function qa(e){Ln(e,"svelte-1mw4zse",'@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}')}function _r(e,t,n){const r=e.slice();return r[65]=t[n],r}function Er(e){let t,n,r;return{c(){t=T("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>',v(t,"type","button"),v(t,"class","closeButton")},m(i,o){P(i,t,o),n||(r=ne(t,"click",e[24]),n=!0)},p:I,d(i){i&&B(t),n=!1,r()}}}function xr(e){let t,n,r,i;const o=[Ya,Qa],a=[];function s(l,u){return!l[17]||!l[18]?0:1}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=Ei()},m(l,u){a[t].m(l,u),P(l,r,u),i=!0},p(l,u){let h=t;t=s(l),t===h?a[t].p(l,u):(ke(),X(a[h],1,1,()=>{a[h]=null}),Fe(),n=a[t],n?n.p(l,u):(n=a[t]=o[t](l),n.c()),G(n,1),n.m(r.parentNode,r))},i(l){i||(G(n),i=!0)},o(l){X(n),i=!1},d(l){l&&B(r),a[t].d(l)}}}function Qa(e){let t,n,r,i;const o=[es,Ja],a=[];function s(l,u){var h;return((h=l[13])==null?void 0:h.source)===J.BalanceError?0:1}return n=s(e),r=a[n]=o[n](e),{c(){t=T("div"),r.c(),v(t,"class","headerPlayerBalance amountContainer")},m(l,u){P(l,t,u),a[n].m(t,null),i=!0},p(l,u){let h=n;n=s(l),n===h?a[n].p(l,u):(ke(),X(a[h],1,1,()=>{a[h]=null}),Fe(),r=a[n],r?r.p(l,u):(r=a[n]=o[n](l),r.c()),G(r,1),r.m(t,null))},i(l){i||(G(r),i=!0)},o(l){X(r),i=!1},d(l){l&&B(t),a[n].d()}}}function Ya(e){let t;return{c(){t=T("div"),v(t,"class","skeleton")},m(n,r){P(n,t,r)},p:I,i:I,o:I,d(n){n&&B(t)}}}function Ja(e){var l,u,h;let t,n,r=Re(((l=e[11])==null?void 0:l.amount)||0,(u=e[11])==null?void 0:u.currency,{minimumFractionDigits:0},!1)+"",i,o,a=(((h=e[11])==null?void 0:h.currency)||"")+"",s;return{c(){t=T("span"),t.textContent=`${M("totalBalance")}`,n=R(),i=z(r),o=R(),s=z(a),v(t,"class","totalAmount")},m(f,c){P(f,t,c),P(f,n,c),P(f,i,c),P(f,o,c),P(f,s,c)},p(f,c){var m,_,g;c[0]&2048&&r!==(r=Re(((m=f[11])==null?void 0:m.amount)||0,(_=f[11])==null?void 0:_.currency,{minimumFractionDigits:0},!1)+"")&&re(i,r),c[0]&2048&&a!==(a=(((g=f[11])==null?void 0:g.currency)||"")+"")&&re(s,a)},i:I,o:I,d(f){f&&(B(t),B(n),B(i),B(o),B(s))}}}function es(e){let t,n;return t=new Jt({}),{c(){bt(t.$$.fragment)},m(r,i){Ye(t,r,i),n=!0},p:I,i(r){n||(G(t.$$.fragment,r),n=!0)},o(r){X(t.$$.fragment,r),n=!1},d(r){Je(t,r)}}}function ts(e){let t,n,r,i,o,a,s,l,u;const h=[is,rs],f=[];function c(m,_){var g;return((g=m[13])==null?void 0:g.source)===J.BalanceError?0:1}return a=c(e),s=f[a]=h[a](e),{c(){t=T("div"),n=T("p"),r=z(e[14]),i=R(),o=T("div"),s.c(),v(n,"class","validationError"),v(o,"class","playerBalance amountContainer"),v(t,"class",l="balanceContainer "+(e[14]?"hasError":""))},m(m,_){P(m,t,_),x(t,n),x(n,r),x(t,i),x(t,o),f[a].m(o,null),u=!0},p(m,_){(!u||_[0]&16384)&&re(r,m[14]);let g=a;a=c(m),a===g?f[a].p(m,_):(ke(),X(f[g],1,1,()=>{f[g]=null}),Fe(),s=f[a],s?s.p(m,_):(s=f[a]=h[a](m),s.c()),G(s,1),s.m(o,null)),(!u||_[0]&16384&&l!==(l="balanceContainer "+(m[14]?"hasError":"")))&&v(t,"class",l)},i(m){u||(G(s),u=!0)},o(m){X(s),u=!1},d(m){m&&B(t),f[a].d()}}}function ns(e){let t;return{c(){t=T("div"),v(t,"class","skeleton")},m(n,r){P(n,t,r)},p:I,i:I,o:I,d(n){n&&B(t)}}}function rs(e){var l,u,h;let t,n,r=Re(((l=e[6])==null?void 0:l.amount)||0,(u=e[6])==null?void 0:u.currency,{minimumFractionDigits:0},!1)+"",i,o,a=(((h=e[6])==null?void 0:h.currency)||"")+"",s;return{c(){t=T("span"),t.textContent=`${M("currentBalance")}`,n=R(),i=z(r),o=R(),s=z(a),v(t,"class","amount")},m(f,c){P(f,t,c),P(f,n,c),P(f,i,c),P(f,o,c),P(f,s,c)},p(f,c){var m,_,g;c[0]&64&&r!==(r=Re(((m=f[6])==null?void 0:m.amount)||0,(_=f[6])==null?void 0:_.currency,{minimumFractionDigits:0},!1)+"")&&re(i,r),c[0]&64&&a!==(a=(((g=f[6])==null?void 0:g.currency)||"")+"")&&re(s,a)},i:I,o:I,d(f){f&&(B(t),B(n),B(i),B(o),B(s))}}}function is(e){let t,n;return t=new Jt({}),{c(){bt(t.$$.fragment)},m(r,i){Ye(t,r,i),n=!0},p:I,i(r){n||(G(t.$$.fragment,r),n=!0)},o(r){X(t.$$.fragment,r),n=!1},d(r){Je(t,r)}}}function os(e){let t,n,r,i;const o=[ls,ss],a=[];function s(l,u){var h;return((h=l[13])==null?void 0:h.source)===J.BalanceError?0:1}return n=s(e),r=a[n]=o[n](e),{c(){t=T("div"),r.c(),v(t,"class","playerBalance amountContainer")},m(l,u){P(l,t,u),a[n].m(t,null),i=!0},p(l,u){let h=n;n=s(l),n===h?a[n].p(l,u):(ke(),X(a[h],1,1,()=>{a[h]=null}),Fe(),r=a[n],r?r.p(l,u):(r=a[n]=o[n](l),r.c()),G(r,1),r.m(t,null))},i(l){i||(G(r),i=!0)},o(l){X(r),i=!1},d(l){l&&B(t),a[n].d()}}}function as(e){let t;return{c(){t=T("div"),v(t,"class","skeleton")},m(n,r){P(n,t,r)},p:I,i:I,o:I,d(n){n&&B(t)}}}function ss(e){var l,u,h;let t,n,r=Re(((l=e[7])==null?void 0:l.amount)||0,(u=e[6])==null?void 0:u.currency,{minimumFractionDigits:0},!1)+"",i,o,a=(((h=e[7])==null?void 0:h.currency)||"")+"",s;return{c(){t=T("span"),t.textContent=`${M("currentBalance")}`,n=R(),i=z(r),o=R(),s=z(a),v(t,"class","amount")},m(f,c){P(f,t,c),P(f,n,c),P(f,i,c),P(f,o,c),P(f,s,c)},p(f,c){var m,_,g;c[0]&192&&r!==(r=Re(((m=f[7])==null?void 0:m.amount)||0,(_=f[6])==null?void 0:_.currency,{minimumFractionDigits:0},!1)+"")&&re(i,r),c[0]&128&&a!==(a=(((g=f[7])==null?void 0:g.currency)||"")+"")&&re(s,a)},i:I,o:I,d(f){f&&(B(t),B(n),B(i),B(o),B(s))}}}function ls(e){let t,n;return t=new Jt({}),{c(){bt(t.$$.fragment)},m(r,i){Ye(t,r,i),n=!0},p:I,i(r){n||(G(t.$$.fragment,r),n=!0)},o(r){X(t.$$.fragment,r),n=!1},d(r){Je(t,r)}}}function wr(e){let t,n,r,i,o,a,s,l,u,h,f=Gt(e[20]),c=[];for(let m=0;m<f.length;m+=1)c[m]=Ar(_r(e,f,m));return{c(){t=T("div"),n=T("button"),r=Vn("svg"),i=Vn("path"),a=R(),s=T("div");for(let m=0;m<c.length;m+=1)c[m].c();v(i,"d","M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"),v(i,"fill","currentColor"),v(r,"class","vaultToggleIcon"),v(r,"width","12"),v(r,"height","7"),v(r,"viewBox","0 0 12 7"),v(r,"fill","currentColor"),v(r,"xmlns","http://www.w3.org/2000/svg"),v(n,"type","button"),v(n,"class",o="vaultToggleButton "+(e[16]&&e[20].length>0?"active":"")),v(s,"class",l="vaultDropdown "+(e[16]&&e[20].length>0?"expanded":"")),v(t,"class","vaultsContainer")},m(m,_){P(m,t,_),x(t,n),x(n,r),x(r,i),x(t,a),x(t,s);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(s,null);u||(h=ne(n,"click",e[23]),u=!0)},p(m,_){if(_[0]&1114112&&o!==(o="vaultToggleButton "+(m[16]&&m[20].length>0?"active":""))&&v(n,"class",o),_[0]&1048608){f=Gt(m[20]);let g;for(g=0;g<f.length;g+=1){const w=_r(m,f,g);c[g]?c[g].p(w,_):(c[g]=Ar(w),c[g].c(),c[g].m(s,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=f.length}_[0]&1114112&&l!==(l="vaultDropdown "+(m[16]&&m[20].length>0?"expanded":""))&&v(s,"class",l)},d(m){m&&B(t),Sr(c,m),u=!1,h()}}}function Ar(e){var h,f,c,m,_;let t,n,r=((h=e[65])==null?void 0:h.currency)+"",i,o,a,s=Re((f=e[65])==null?void 0:f.amount,(c=e[65])==null?void 0:c.currency,{minimumFractionDigits:0,maximumFractionDigits:(((m=e[65])==null?void 0:m.precision)>xe?xe:(_=e[65])==null?void 0:_.precision)||Number(e[5])},!1)+"",l,u;return{c(){t=T("div"),n=T("p"),i=z(r),o=R(),a=T("p"),l=z(s),u=R(),v(t,"class","vaultItem")},m(g,w){P(g,t,w),x(t,n),x(n,i),x(t,o),x(t,a),x(a,l),x(t,u)},p(g,w){var N,E,b,C,D;w[0]&1048576&&r!==(r=((N=g[65])==null?void 0:N.currency)+"")&&re(i,r),w[0]&1048608&&s!==(s=Re((E=g[65])==null?void 0:E.amount,(b=g[65])==null?void 0:b.currency,{minimumFractionDigits:0,maximumFractionDigits:(((C=g[65])==null?void 0:C.precision)>xe?xe:(D=g[65])==null?void 0:D.precision)||Number(g[5])},!1)+"")&&re(l,s)},d(g){g&&B(t)}}}function us(e){var r,i,o,a;let t=`${((i=(r=e[12])==null?void 0:r.fees[0])==null?void 0:i.amount)||0} ${((a=(o=e[12])==null?void 0:o.fees[0])==null?void 0:a.currency)||""}`,n;return{c(){n=z(t)},m(s,l){P(s,n,l)},p(s,l){var u,h,f,c;l[0]&4096&&t!==(t=`${((h=(u=s[12])==null?void 0:u.fees[0])==null?void 0:h.amount)||0} ${((c=(f=s[12])==null?void 0:f.fees[0])==null?void 0:c.currency)||""}`)&&re(n,t)},d(s){s&&B(n)}}}function cs(e){let t=M("feesUnavailable")+"",n;return{c(){n=z(t)},m(r,i){P(r,n,i)},p:I,d(r){r&&B(n)}}}function hs(e){var A;let t,n,r,i,o,a,s,l,u,h,f,c,m,_,g,w,N,E,b,C,D,K,$,ue,k,Te,ge,ie,be,ye,q,Z,Ce,Ve,ve,oe,xt,Ge,wt,ce,$e=M(((A=e[13])==null?void 0:A.message)||"")+"",st,fe,he,Se,ee,At=M("exchange")+"",je,We,W,lt,De,Q=e[3]===le.true&&Er(e),j=e[2]===le.true&&xr(e);function Tt(d){e[42](d)}let en={id:"senderSelect",withSymbol:e[4],disabled:!e[17]||!e[18],options:e[21],onChange:e[26]};e[6]!==void 0&&(en.selected=e[6]),g=new On({props:en}),Qe.push(()=>$n(g,"selected",Tt));const ut=[ns,ts],pe=[];function Ct(d,y){return!d[17]||!d[18]?0:1}E=Ct(e),b=pe[E]=ut[E](e);function tn(d){e[44](d)}let St={id:"destinationSelect",withSymbol:e[4],disabled:!e[0]||!!e[14]||!e[17]||!e[18],options:e[22],onChange:e[26]};e[7]!==void 0&&(St.selected=e[7]),ie=new On({props:St}),Qe.push(()=>$n(ie,"selected",tn));const ct=[as,os],de=[];function Bt(d,y){return!d[17]||!d[18]?0:1}q=Bt(e),Z=de[q]=ct[q](e);let Y=e[1]===le.true&&wr(e);function Pt(d,y){var O;return((O=d[13])==null?void 0:O.source)===J.CheckWalletExchangeError?cs:us}let Xe=Pt(e),p=Xe(e);return{c(){var d,y,O;t=T("div"),Q&&Q.c(),n=R(),r=T("div"),i=T("h1"),i.textContent=`${M("vaultExchange")}`,o=R(),j&&j.c(),a=R(),s=T("div"),l=T("div"),u=T("p"),u.textContent=`${M("exchangeFrom")}`,h=R(),f=T("div"),c=T("input"),_=R(),bt(g.$$.fragment),N=R(),b.c(),C=R(),D=T("div"),K=T("p"),K.textContent=`${M("exchangeTo")}`,$=R(),ue=T("div"),k=T("input"),ge=R(),bt(ie.$$.fragment),ye=R(),Z.c(),Ce=R(),Y&&Y.c(),Ve=R(),ve=T("div"),oe=T("span"),oe.textContent=`${M("feesIncluded")}`,xt=R(),Ge=T("span"),p.c(),wt=R(),ce=T("div"),st=R(),fe=T("div"),he=T("button"),he.textContent=`${M("reset")}`,Se=R(),ee=T("button"),je=z(At),v(i,"class","headerTitle"),v(r,"class","headerContainer"),v(u,"class","exchangeHeader"),v(c,"id","senderInput"),c.disabled=m=!e[0]||!e[17]||!e[18],v(c,"placeholder",M("debitPlaceHolder")),v(c,"class","exchangeInput"),v(c,"type","number"),v(c,"aria-label","Enter exchange amount"),v(c,"inputmode","decimal"),v(c,"step","0.000000000000001"),v(c,"min","0"),v(f,"class","flexingContainerRow"),v(l,"class","containerExchangeFrom exchangeContainer"),v(K,"class","exchangeHeader"),v(k,"id","destinationInput"),k.disabled=Te=!e[0]||!e[17]||!e[18],v(k,"placeholder",M("creditPlaceHolder")),v(k,"class","exchangeInput"),v(k,"type","number"),k.readOnly=!0,v(k,"min","0"),v(ue,"class","flexingContainerRow"),v(D,"class","containerExchangeTo exchangeContainer"),v(s,"class","exchangesContainer"),v(oe,"class","feesLabel"),v(ve,"class","feesContainer"),v(ce,"class","notificationsContainer"),se(ce,"error",((d=e[13])==null?void 0:d.type)==="error"),se(ce,"success",((y=e[13])==null?void 0:y.type)==="success"),v(he,"class","resetButton"),v(he,"type","button"),v(ee,"type","button"),v(ee,"class","exchangeButton"),ee.disabled=We=e[15]||e[19]||e[9]===0&&!((O=e[6])!=null&&O.amount),se(ee,"disabled",e[15]||e[19]),se(ee,"pending",e[19]),v(fe,"class","actionsContainer"),v(t,"class","playerAccountVault")},m(d,y){P(d,t,y),Q&&Q.m(t,null),x(t,n),x(t,r),x(r,i),x(r,o),j&&j.m(r,null),x(t,a),x(t,s),x(s,l),x(l,u),x(l,h),x(l,f),x(f,c),It(c,e[9]),x(f,_),Ye(g,f,null),x(l,N),pe[E].m(l,null),x(s,C),x(s,D),x(D,K),x(D,$),x(D,ue),x(ue,k),It(k,e[10]),x(ue,ge),Ye(ie,ue,null),x(D,ye),de[q].m(D,null),x(t,Ce),Y&&Y.m(t,null),x(t,Ve),x(t,ve),x(ve,oe),x(ve,xt),x(ve,Ge),p.m(Ge,null),x(t,wt),x(t,ce),ce.innerHTML=$e,x(t,st),x(t,fe),x(fe,he),x(fe,Se),x(fe,ee),x(ee,je),e[45](t),W=!0,lt||(De=[ne(c,"input",e[41]),ne(c,"input",e[27]),ne(c,"beforeinput",e[28]),ne(c,"focus",e[29]),ne(k,"input",e[43]),ne(he,"click",e[25]),ne(ee,"click",e[30])],lt=!0)},p(d,y){var ht,S,Pe,He;d[3]===le.true?Q?Q.p(d,y):(Q=Er(d),Q.c(),Q.m(t,n)):Q&&(Q.d(1),Q=null),d[2]===le.true?j?(j.p(d,y),y[0]&4&&G(j,1)):(j=xr(d),j.c(),G(j,1),j.m(r,null)):j&&(ke(),X(j,1,1,()=>{j=null}),Fe()),(!W||y[0]&393217&&m!==(m=!d[0]||!d[17]||!d[18]))&&(c.disabled=m),y[0]&512&&Vt(c.value)!==d[9]&&It(c,d[9]);const O={};y[0]&16&&(O.withSymbol=d[4]),y[0]&393216&&(O.disabled=!d[17]||!d[18]),y[0]&2097152&&(O.options=d[21]),!w&&y[0]&64&&(w=!0,O.selected=d[6],Gn(()=>w=!1)),g.$set(O);let Be=E;E=Ct(d),E===Be?pe[E].p(d,y):(ke(),X(pe[Be],1,1,()=>{pe[Be]=null}),Fe(),b=pe[E],b?b.p(d,y):(b=pe[E]=ut[E](d),b.c()),G(b,1),b.m(l,null)),(!W||y[0]&393217&&Te!==(Te=!d[0]||!d[17]||!d[18]))&&(k.disabled=Te),y[0]&1024&&Vt(k.value)!==d[10]&&It(k,d[10]);const _e={};y[0]&16&&(_e.withSymbol=d[4]),y[0]&409601&&(_e.disabled=!d[0]||!!d[14]||!d[17]||!d[18]),y[0]&4194304&&(_e.options=d[22]),!be&&y[0]&128&&(be=!0,_e.selected=d[7],Gn(()=>be=!1)),ie.$set(_e);let Ee=q;q=Bt(d),q===Ee?de[q].p(d,y):(ke(),X(de[Ee],1,1,()=>{de[Ee]=null}),Fe(),Z=de[q],Z?Z.p(d,y):(Z=de[q]=ct[q](d),Z.c()),G(Z,1),Z.m(D,null)),d[1]===le.true?Y?Y.p(d,y):(Y=wr(d),Y.c(),Y.m(t,Ve)):Y&&(Y.d(1),Y=null),Xe===(Xe=Pt(d))&&p?p.p(d,y):(p.d(1),p=Xe(d),p&&(p.c(),p.m(Ge,null))),(!W||y[0]&8192)&&$e!==($e=M(((ht=d[13])==null?void 0:ht.message)||"")+"")&&(ce.innerHTML=$e),(!W||y[0]&8192)&&se(ce,"error",((S=d[13])==null?void 0:S.type)==="error"),(!W||y[0]&8192)&&se(ce,"success",((Pe=d[13])==null?void 0:Pe.type)==="success"),(!W||y[0]&557632&&We!==(We=d[15]||d[19]||d[9]===0&&!((He=d[6])!=null&&He.amount)))&&(ee.disabled=We),(!W||y[0]&557056)&&se(ee,"disabled",d[15]||d[19]),(!W||y[0]&524288)&&se(ee,"pending",d[19])},i(d){W||(G(j),G(g.$$.fragment,d),G(b),G(ie.$$.fragment,d),G(Z),W=!0)},o(d){X(j),X(g.$$.fragment,d),X(b),X(ie.$$.fragment,d),X(Z),W=!1},d(d){d&&B(t),Q&&Q.d(),j&&j.d(),Je(g),pe[E].d(),Je(ie),de[q].d(),Y&&Y.d(),p.d(),e[45](null),lt=!1,Ae(De)}}}function fs(e,t,n){let{session:r=""}=t,{userid:i=""}=t,{endpoint:o=""}=t,{lang:a="en"}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,{translationurl:u=""}=t,{playercurrency:h=""}=t,{showvaults:f=le.true}=t,{showtotalbalance:c=le.true}=t,{showclosebutton:m=le.true}=t,{showcurrencysymbol:_=le.true}=t,{currencyposition:g=""}=t,{currencydecimals:w="2"}=t,{local:N="en-US"}=t,E=null,b=null,C=0,D=0,K=0,$=null,ue=null,k=null,Te="",ge=!0,ie=!1,be=!1,ye=!1,q=!1,Z=[],Ce=[],Ve=[],ve=[],oe;_a({withLocale:"en",translations:{}}),Object.keys(ir).forEach(p=>{rr(p,ir[p])});const xt=()=>{Ea(a)},Ge=()=>{fetch(u).then(p=>p.json()).then(p=>{Object.keys(p).forEach(A=>{rr(A,p[A])})}).catch(p=>{console.error("There was a problem with the translations request.",p)})},wt=()=>{let p=document.createElement("style");p.innerHTML=s,oe.appendChild(p)},ce=()=>{let p,A=new URL(l),d=document.createElement("style");fetch(A.href).then(y=>y.text()).then(y=>{d.innerHTML=y,p&&clearTimeout(p),p=setTimeout(()=>{oe.appendChild(d)},1)})},$e=()=>{Ce.length!==0&&(n(16,ie=!ie),window.postMessage({type:pn.VaultDropdownToggled,state:ie},window.location.href))},st=()=>{window.postMessage({type:pn.VaultWidgetClosed},window.location.href)},fe=()=>{n(15,ge=!0),Se(),ee(),At(),je(),window.postMessage({type:pn.VaultWidgetReset},window.location.href)},he=()=>{n(15,ge=!0),n(10,K=0)},Se=()=>{n(12,ue=null)},ee=()=>{n(9,C=0),n(10,K=0)},At=()=>{n(14,Te="")},je=()=>{n(13,k=null)},We=p=>{p&&n(14,Te=p)},W=({type:p,message:A,source:d=""})=>{let y;switch(n(13,k={message:A,source:d,type:p}),p){case Oe.error:n(15,ge=!0),window.postMessage({type:d,data:{type:p,message:A}},window.location.href);break;case Oe.success:n(15,ge=!0),window.postMessage({type:d,data:{type:p,message:A}},window.location.href),y&&clearTimeout(y),y=setTimeout(()=>{je()},Ua);break}},lt=()=>new Promise((p,A)=>{const d=k==null?void 0:k.message.includes(Va.InvalidSession);d&&A(),isNaN(Number(C))&&(he(),Se(),A(M("invalidValue"))),C>(E==null?void 0:E.amount)&&(he(),Se(),A(M("exceededValue"))),C===null&&!d&&(he(),Se(),A()),C===0&&C===0&&!d&&(fe(),A()),(!E||!b)&&!d&&A(),At(),p()}),De=(p,A)=>Ht(this,null,function*(){var y,O;const d=yield p.json();return(p==null?void 0:p.status)>=200&&(p==null?void 0:p.status)<400?d:(A===J.CheckWalletExchangeError&&he(),!be&&A===J.BalanceError&&(n(17,be=!0),n(18,ye=!0)),!ye&&A===J.CurrenciesError&&n(18,ye=!0),W({type:Oe.error,message:M((y=d==null?void 0:d.thirdPartyResponse)==null?void 0:y.code)||M((O=d==null?void 0:d.thirdPartyResponse)==null?void 0:O.errorCode)||"generalError",source:A}))}),Q=()=>new Promise((p,A)=>{const d=new URL(`${o}/v1/player/${i}/wallet-exchange/currencies`);fetch(d,{method:"GET",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"}}).then(O=>De(O,J.CurrenciesError)).then(O=>{p(O==null?void 0:O.currencies)}).catch(O=>{n(18,ye=!0),console.error("There was an error on the allowed currencies request.",O),W({type:Oe.error,message:M("generalError"),source:J.CurrenciesError}),A()}).finally(()=>{n(18,ye=!0)})}),j=({data:p,shouldUpdateSelectedCurrencies:A,allowed:d=[]})=>{var ht;const{items:y=[],totalAmount:O={},totalRealAmount:Be}=p||{};n(11,$=Object.entries(Be||O).map(([S="",Pe=0])=>({currency:S,amount:Pe}))[0]);let _e=null;const Ee=new Map(d.map(S=>[S.code,S]));for(const S of y)if((S==null?void 0:S.type)===dr.Real){const Pe=Ee.get(S==null?void 0:S.currency);if(Pe&&Pe.code===(S==null?void 0:S.currency)){const He=rn(Ie(Ie({},S),Pe),{symbol:((ht=Ma[S==null?void 0:S.currency])==null?void 0:ht[0])||(S==null?void 0:S.currency[0])});n(40,Z=[...Z,He]),(S==null?void 0:S.currency)===($==null?void 0:$.currency)&&n(11,$=Ie(Ie({},$),He)),(S==null?void 0:S.currency)!==($==null?void 0:$.currency)&&(S==null?void 0:S.walletAccountType)===dr.Vault&&n(20,Ce=[...Ce,He]),A&&(S==null?void 0:S.amount)>0&&n(6,E=$!=null&&$.currency?$:_e),E&&(E==null?void 0:E.currency)===(S==null?void 0:S.currency)&&n(6,E=He),b&&(b==null?void 0:b.currency)===(S==null?void 0:S.currency)&&n(7,b=He)}}},Tt=(p=!0)=>{const A=new URL(`${o}/v2/player/${i}/balance`);fetch(A,{method:"GET",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"}}).then(y=>De(y,J.BalanceError)).then(y=>{y&&(Q().then(O=>{n(40,Z=[]),n(20,Ce=[]),j({data:y,shouldUpdateSelectedCurrencies:p,allowed:O})}),window.postMessage({type:"playerBalanceInfo",balance:y},window.location.href))}).catch(y=>{n(17,be=!0),console.error("There was an error with the player balance request.",y),W({type:Oe.error,message:M("generalError"),source:J.BalanceError})}).finally(()=>{n(17,be=!0)})},ut=ka(()=>{lt().then(()=>{const p=new URL(`${o}/v2/player/${i}/check/wallet-exchange`),A={userId:i,amount:C,currency:E==null?void 0:E.currency,fromCurrency:E==null?void 0:E.currency,toCurrency:b==null?void 0:b.currency,payload:{PlayerCurrency:h}},d={method:"POST",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"},body:fr(A)};fetch(p,d).then(y=>De(y,J.CheckWalletExchangeError)).then(y=>{var O,Be;if(y){if((k==null?void 0:k.source)===J.CheckWalletExchangeError&&je(),Array.isArray((O=y==null?void 0:y.fees)==null?void 0:O.fees)&&n(12,ue=y.fees),Array.isArray(y==null?void 0:y.walletActions)){const _e=((Be=y.walletActions.find(Ee=>(Ee==null?void 0:Ee.directionName)===Ga.Credit))==null?void 0:Be.amount)||0;n(10,K=Fa(_e))}C>0&&K>0&&(E!=null&&E.currency)&&(b!=null&&b.currency)&&h&&n(15,ge=!1)}}).catch(y=>{W({type:Oe.error,message:M("generalError"),source:J.CheckWalletExchangeError}),console.error("There was a problem with the wallet exchange request.",y)})}).catch(p=>{We(p)})},500),pe=p=>{const A=p.target.value,[d,y]=A.split(".");!y&&A.length>=xe&&n(9,C=A.slice(0,xe));const O=Number((E==null?void 0:E.precision)||"2");y&&(E==null?void 0:E.type)===mr.Fiat&&(y.length<=O?(n(9,C=A),D=A):n(9,C=D)),y&&(E==null?void 0:E.type)===mr.CryptoCurrency&&(O<=xe&&y.length<=O?(n(9,C=A),D=A):n(9,C=D),O>xe&&y.length<=xe?(n(9,C=A),D=A):n(9,C=D)),ut()},Ct=p=>{const A=p.data;[">","<",","].includes(A)&&p.preventDefault(),A&&!A.match(/[\d.]/)&&p.preventDefault(),A==="."&&p.target.value.includes(".")&&p.preventDefault()},tn=()=>{C===0&&n(9,C=null)},St=()=>{const p=new URL(`${o}/v2/player/${i}/wallet-exchange`);n(19,q=!0);const A={feeDetails:ue,userId:i,amount:C,currency:E==null?void 0:E.currency,fromCurrency:E==null?void 0:E.currency,toCurrency:b==null?void 0:b.currency,payload:{PlayerCurrency:h}},d={method:"PUT",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"},body:fr(A)};fetch(p,d).then(y=>De(y,J.WalletExchangeError)).then(y=>{y&&(W({type:Oe.success,message:M("exchangeSuccess"),source:"ExchangeSuccess"}),Tt(!1))}).catch(y=>{W({type:Oe.error,message:M("generalError"),source:J.WalletExchangeError}),console.error("There was an error with the wallet exchange request.",y)}).finally(()=>{n(19,q=!1),ee(),Se()})},ct=p=>{const{data:{type:A}={}}=p||{};switch(A){case pr.ResetVaultWidget:fe();break;case pr.CloseVaultWidget:st();break}};Pr(()=>(Da(N,_,g,w),window.addEventListener("message",ct),()=>{window.removeEventListener("message",ct)}));function de(){C=Vt(this.value),n(9,C)}function Bt(p){E=p,n(6,E)}function Y(){K=Vt(this.value),n(10,K)}function Pt(p){b=p,n(7,b)}function Xe(p){Qe[p?"unshift":"push"](()=>{oe=p,n(8,oe)})}return e.$$set=p=>{"session"in p&&n(0,r=p.session),"userid"in p&&n(31,i=p.userid),"endpoint"in p&&n(32,o=p.endpoint),"lang"in p&&n(33,a=p.lang),"clientstyling"in p&&n(34,s=p.clientstyling),"clientstylingurl"in p&&n(35,l=p.clientstylingurl),"translationurl"in p&&n(36,u=p.translationurl),"playercurrency"in p&&n(37,h=p.playercurrency),"showvaults"in p&&n(1,f=p.showvaults),"showtotalbalance"in p&&n(2,c=p.showtotalbalance),"showclosebutton"in p&&n(3,m=p.showclosebutton),"showcurrencysymbol"in p&&n(4,_=p.showcurrencysymbol),"currencyposition"in p&&n(38,g=p.currencyposition),"currencydecimals"in p&&n(5,w=p.currencydecimals),"local"in p&&n(39,N=p.local)},e.$$.update=()=>{e.$$.dirty[1]&4&&a&&xt(),e.$$.dirty[0]&256|e.$$.dirty[1]&8&&s&&oe&&wt(),e.$$.dirty[0]&256|e.$$.dirty[1]&16&&l&&oe&&ce(),e.$$.dirty[1]&32&&u&&Ge(),e.$$.dirty[0]&1|e.$$.dirty[1]&67&&r&&i&&o&&h&&Tt(),e.$$.dirty[0]&128|e.$$.dirty[1]&512&&n(21,Ve=Z.filter(p=>(p==null?void 0:p.amount)>0&&(p==null?void 0:p.currency)!==(b==null?void 0:b.currency))),e.$$.dirty[0]&64|e.$$.dirty[1]&512&&n(22,ve=Z.filter(p=>(E==null?void 0:E.currency)!==(p==null?void 0:p.currency)))},[r,f,c,m,_,w,E,b,oe,C,K,$,ue,k,Te,ge,ie,be,ye,q,Ce,Ve,ve,$e,st,fe,ut,pe,Ct,tn,St,i,o,a,s,l,u,h,g,N,Z,de,Bt,Y,Pt,Xe]}class ci extends Dn{constructor(t){super(),Nn(this,t,fs,hs,Xt,{session:0,userid:31,endpoint:32,lang:33,clientstyling:34,clientstylingurl:35,translationurl:36,playercurrency:37,showvaults:1,showtotalbalance:2,showclosebutton:3,showcurrencysymbol:4,currencyposition:38,currencydecimals:5,local:39},qa,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),F()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),F()}get endpoint(){return this.$$.ctx[32]}set endpoint(t){this.$$set({endpoint:t}),F()}get lang(){return this.$$.ctx[33]}set lang(t){this.$$set({lang:t}),F()}get clientstyling(){return this.$$.ctx[34]}set clientstyling(t){this.$$set({clientstyling:t}),F()}get clientstylingurl(){return this.$$.ctx[35]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),F()}get translationurl(){return this.$$.ctx[36]}set translationurl(t){this.$$set({translationurl:t}),F()}get playercurrency(){return this.$$.ctx[37]}set playercurrency(t){this.$$set({playercurrency:t}),F()}get showvaults(){return this.$$.ctx[1]}set showvaults(t){this.$$set({showvaults:t}),F()}get showtotalbalance(){return this.$$.ctx[2]}set showtotalbalance(t){this.$$set({showtotalbalance:t}),F()}get showclosebutton(){return this.$$.ctx[3]}set showclosebutton(t){this.$$set({showclosebutton:t}),F()}get showcurrencysymbol(){return this.$$.ctx[4]}set showcurrencysymbol(t){this.$$set({showcurrencysymbol:t}),F()}get currencyposition(){return this.$$.ctx[38]}set currencyposition(t){this.$$set({currencyposition:t}),F()}get currencydecimals(){return this.$$.ctx[5]}set currencydecimals(t){this.$$set({currencydecimals:t}),F()}get local(){return this.$$.ctx[39]}set local(t){this.$$set({local:t}),F()}}Rn(ci,{session:{},userid:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},showvaults:{},showtotalbalance:{},showclosebutton:{},showcurrencysymbol:{},currencyposition:{},currencydecimals:{},local:{}},[],[],!0);exports.default=ci;
18
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Hn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Yt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Sn(a),l=s.next();!l.done;l=s.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(we(h))try{h()}catch(g){o=g instanceof fn?g.errors:[g]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var c=Sn(f),m=c.next();!m.done;m=c.next()){var _=m.value;try{or(_)}catch(g){o=o!=null?o:[],g instanceof fn?o=Pn(Pn([],Bn(o)),Bn(g.errors)):o.push(g)}}}catch(g){r={error:g}}finally{try{m&&!m.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}if(o)throw new fn(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)or(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Hn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Hn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ii=Yt.EMPTY;function oi(e){return e instanceof Yt||e&&"closed"in e&&we(e.remove)&&we(e.add)&&we(e.unsubscribe)}function or(e){we(e)?e():e.unsubscribe()}var xa={Promise:void 0},wa={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Pn([e,t],Bn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Aa(e){wa.setTimeout(function(){throw e})}function ar(){}function Ft(e){e()}var ai=function(e){Et(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,oi(n)&&n.add(r)):r.destination=Sa,r}return t.create=function(n,r,i){return new In(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Yt),Ta=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Lt(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Lt(r)}else Lt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Lt(n)}},e}(),In=function(e){Et(t,e);function t(n,r,i){var o=e.call(this)||this,a;return we(n)||!n?a={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:a=n,o.destination=new Ta(a),o}return t}(ai);function Lt(e){Aa(e)}function Ca(e){throw e}var Sa={closed:!0,next:ar,error:Ca,complete:ar},Ba=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Pa(e){return e}function Ha(e){return e.length===0?Pa:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var sr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=Oa(t)?t:new In(t,n,r);return Ft(function(){var a=i,s=a.operator,l=a.source;o.add(s?s.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=lr(n),new n(function(i,o){var a=new In({next:function(s){try{t(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:i});r.subscribe(a)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ba]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ha(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=lr(t),new t(function(r,i){var o;n.subscribe(function(a){return o=a},function(a){return i(a)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function lr(e){var t;return(t=e!=null?e:xa.Promise)!==null&&t!==void 0?t:Promise}function Ia(e){return e&&we(e.next)&&we(e.error)&&we(e.complete)}function Oa(e){return e&&e instanceof ai||Ia(e)&&oi(e)}var La=ri(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),si=function(e){Et(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new ur(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new La},t.prototype.next=function(n){var r=this;Ft(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=Sn(r.currentObservers),s=a.next();!s.done;s=a.next()){var l=s.value;l.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Ft(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ft(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,a=i.isStopped,s=i.observers;return o||a?ii:(this.currentObservers=null,s.push(n),new Yt(function(){r.currentObservers=null,Hn(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,a=r.isStopped;i?n.error(o):a&&n.complete()},t.prototype.asObservable=function(){var n=new sr;return n.source=this,n},t.create=function(n,r){return new ur(n,r)},t}(sr),ur=function(e){Et(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:ii},t}(si),li={now:function(){return(li.delegate||Date).now()},delegate:void 0},Na=function(e){Et(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=li);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,a=r._infiniteTimeWindow,s=r._timestampProvider,l=r._windowTime;i||(o.push(n),!a&&o.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,a=i._buffer,s=a.slice(),l=0;l<s.length&&!n.closed;l+=o?1:2)n.next(s[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,a=n._infiniteTimeWindow,s=(a?1:2)*r;if(r<1/0&&s<o.length&&o.splice(0,o.length-s),!a){for(var l=i.now(),u=0,h=1;h<o.length&&o[h]<=l;h+=2)u=h;u&&o.splice(0,u+1)}},t}(si);const cr=[],hr={},Ra=(e,t=0)=>{if(cr.indexOf(e)==-1){const n=new Na(t);hr[e]=n,cr.push(e)}return hr[e]};let Ut="en-UK",ui="true",pt=2,dt="";const Da=(e,t,n,r)=>{Ut=e||"en-UK",ui=t||"true",pt=+r||0,dt=n||""},Re=(e,t,n={},r=!0)=>{const i=Ie(Ie({maximumFractionDigits:pt,minimumFractionDigits:pt},r&&{style:"currency",currency:t,currencyDisplay:ui==="true"?"symbol":"code"}),n);try{if(!dt)return new Intl.NumberFormat(Ut,i).format(e);const a=new Intl.NumberFormat(Ut,i).formatToParts(e),s=a.find(({type:h=""}={})=>h==="currency")||{},l=a.filter(({type:h=""}={})=>h!=="currency").map(({value:h=""}={})=>h).join("");return dt==="before"?`${s.value||i.currency||""} ${l}`:`${l} ${s.value||i.currency||""}`}catch(o){console.info(o);const a=new Intl.NumberFormat(Ut,{maximumFractionDigits:pt,minimumFractionDigits:pt}).format(e);return dt?dt==="before"?`${i.currency||""} ${a}`:`${a} ${i.currency||""}`:`${i.currency||""} ${a}`}};window.emWidgets={topic:Ra};const Ma={"1INCH":"",AAVE:"",ADA:"₳",ADF:"",ADP:"",AED:"د.إ",AFN:"؋",ALGO:"Ⱥ",ALL:"L",AMD:"Դ",AMP:"",ANG:"ƒ",AOA:"Kz",AQAQAAUKXMYQOUSOUJHLTNBOI:"",AQAQAAUXKBXDCWFVEDYIDYHWD:"",AQAQADPGMAZQICGIVARVFRSQS:"",AQAQAFDJIKCUBVVVGVQNBWRDX:"",AQAQAFMRIPFFPCHYHKSGDDGOF:"",AQAQAFRMNSQNCLRLEJGEIDLDO:"",AQAQAJMRAJIZSQTNLYHHJNUIA:"",AQAQAOLFQBZJAPJMVXZDAXXKJ:"",AR:"",ARS:"$",ATOM:"",AUD:"$",AVAX:"",AWG:"ƒ",AXS:"",AZN:"₼",BAM:"KM",BAT:"",BBD:"$",BCH:"Ƀ",BDT:"৳",BGN:"лв",BHD:"ب.د",BIF:"FBu",BMD:"$",BNB:"",BND:"$",BOB:"$b",BORA:"",BRL:"R$",BSD:"$",BSV:"Ɓ",BTC:"₿",BTCB:"",BTN:"Nu.",BTT:"",BUSD:"₮",BWP:"P",BYN:"Br",BYR:"p.",BZD:"BZ$",CAD:"$",CAKE:"",CDF:"FC",CEL:"",CELO:"",CHF:"CHF",CHZ:"",CLP:"$",CNY:"¥",COMP:"",COP:"$",CRC:"₡",CUC:"$",CRO:"",CRV:"",CUC:"",CUP:"₱",CVE:"",CZK:"Kč",DAI:"◈",DASH:"Đ",DCR:"",DJF:"Fdj",DKK:"KR",DOGE:"Ð",DOP:"RD$",DOT:"●",DZD:"د.ج",EEK:"kr",EGLD:"",EGP:"£",ELON:"",ERN:"Nfk",ETB:"Br",ENJ:"",EOS:"ε",ETC:"ξ",ETH:"Ξ",EUR:"€",FIL:"⨎",FJD:"$",FKP:"£",FLOW:"",FTM:"",FTT:"",FUN:"",GALA:"",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GCC:"",GHS:"¢",GMD:"D",GNF:"FG",GIP:"£",GRT:"",GTQ:"Q",GYD:"$",HBAR:"",HKD:"$",HNL:"L",HNT:"",HOT:"",HRK:"kn",HTG:"G",HT:"",HUF:"Ft",ICP:"∞",ICX:"",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IOTX:"",IQD:"د.ع",IRR:"﷼",ISK:"KR",JMD:"J$",JOD:"د.ا",JPY:"¥",KCS:"",KDA:"",KMF:"CF",KES:"KSh",KGS:"лв",KHR:"៛",KLAY:"",KPW:"₩",KRW:"₩",KSM:"",KWD:"د.ك",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LEO:"",LINK:"",LKR:"₨",LPT:"",LRC:"",LRD:"$",LSL:"M",LTC:"Ł",LUNA:"",LTL:"Lt",LVL:"Ls",MDL:"lei",MGA:"Ar",LYD:"د.ل",MAD:"د.م",MANA:"",MATIC:"",MINA:"",MIOTA:"ɨ",MKD:"ден",MKR:"Μ",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NEAR:"",NEO:"",NEXO:"",NGN:"₦",NIO:"C$",NOK:"KR",NPR:"₨",NZD:"$",OKB:"",OMG:"",OMR:"﷼",ONE:"",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"₲",QAR:"﷼",QNT:"",QTUM:"",RON:"LEI",ROSE:"",RMB:"¥",RSD:"Дин.",RUB:"₽",RUNE:"",RVN:"",RWF:"R₣",SAND:"",SAR:"﷼",SBD:"$",SCC:"",SCR:"₨",SDG:"د.س",SEK:"KR",SGD:"$",SHIB:"",SHP:"£",SLL:"Le",SSP:"£",STD:"Db",SOL:"",SOS:"S",SRD:"$",STX:"",SUSHI:"",SVC:"$",SYP:"£",SZL:"E",TES:"",TFUEL:"",TJS:"SM",TMT:"T",THB:"฿",THETA:"ϑ",TND:"د.ت",TOP:"T$",TVD:"$",TRL:"₤",TRX:"",TRY:"₺",TTD:"TT$",TUSD:"",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",UNI:"",USD:"$",USDC:"",USDT:"₮",UST:"",UYU:"$U",UZS:"лв",VEF:"Bs",VES:"",VET:"",VND:"₫",VUV:"VT",WAVES:"",WBTC:"₿",WST:"WS$",XAF:"FCFA",XPF:"₣",XBT:"Ƀ",XCD:"$",XDC:"",XEC:"",XEM:"",XFUN:"",XLM:"✕",XMR:"ɱ",XOF:"CFA",XRP:"✕",XTZ:"ꜩ",YER:"﷼",YFI:"",ZAR:"R",ZEC:"ⓩ",ZMK:"",ZMW:"",ZWD:"Z$"};function ka(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(r)},t)}}const fr=(e,t=null,n=2)=>{try{return JSON.stringify(e,t,n)}catch(r){return console.warn("Failed to stringify:",r),null}};function Fa(e){if(e){if(e=e.toString(),isNaN(e))throw Error("Parameter is not a number: "+e);e[0]=="+"&&(e=e.substring(1))}else e="0";if(e.startsWith(".")?e="0"+e:e.startsWith("-.")&&(e="-0"+e.substr(1)),/e/i.test(e)){let[t,n]=e.split(/[eE]/);t=trim(t);let r="";t[0]==="-"&&(r="-",t=t.substring(1)),t.indexOf(".")>=0?(n=parseInt(n)+t.indexOf("."),t=t.replace(".","")):n=parseInt(n)+t.length,t.length<n?e=r+t+new Array(n-t.length+1).join("0"):t.length>=n&&n>0?e=r+trim(t.substring(0,n))+(t.length>n?"."+t.substring(n):""):e=r+"0."+new Array(-n+1).join("0")+t}return e}const xe=String(Number.MAX_SAFE_INTEGER).length,Ua=6e3,Va={InvalidSession:"Invalid session"},J={BalanceError:"BalanceError",CheckWalletExchangeError:"CheckWalletExchangeError",WalletExchangeError:"WalletExchangeError",CurrenciesError:"CurrenciesError"},pr={ResetVaultWidget:"ResetVaultWidget",CloseVaultWidget:"CloseVaultWidget"},pn={VaultWidgetReset:"VaultWidgetReset",VaultWidgetClosed:"VaultWidgetClosed",VaultDropdownToggled:"VaultDropdownToggled"},dr={Real:"Real",Vault:"Vault"},Oe={success:"success",error:"error"},Nt={ArrowDown:"ArrowDown",ArrowUp:"ArrowUp",Enter:"Enter",Escape:"Escape"},le={true:"true"},mr={Fiat:"Fiat",CryptoCurrency:"CryptoCurrency"},Ga={Credit:"Credit"};function $a(e){const t=n=>{e.contains(n.target)||e.dispatchEvent(new CustomEvent("outclick"))};return document.addEventListener("click",t),{destroy(){document.removeEventListener("click",t)}}}function ja(e){Ln(e,"svelte-1g9pqha",".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}")}function gr(e,t,n){const r=e.slice();return r[16]=t[n],r[18]=n,r}function br(e){var i;let t,n=(((i=e[0])==null?void 0:i.symbol)||"")+"",r;return{c(){t=T("span"),r=z(n),v(t,"class","symbol svelte-1g9pqha")},m(o,a){P(o,t,a),x(t,r)},p(o,a){var s;a&1&&n!==(n=(((s=o[0])==null?void 0:s.symbol)||"")+"")&&re(r,n)},d(o){o&&B(t)}}}function yr(e){let t,n,r=Gt(e[1]),i=[];for(let o=0;o<r.length;o+=1)i[o]=vr(gr(e,r,o));return{c(){t=T("div"),n=T("ul");for(let o=0;o<i.length;o+=1)i[o].c();v(n,"class","selectDropdown svelte-1g9pqha"),v(t,"class","selectDropdownWrapper svelte-1g9pqha")},m(o,a){P(o,t,a),x(t,n);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(n,null);e[14](n)},p(o,a){if(a&547){r=Gt(o[1]);let s;for(s=0;s<r.length;s+=1){const l=gr(o,r,s);i[s]?i[s].p(l,a):(i[s]=vr(l),i[s].c(),i[s].m(n,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=r.length}},d(o){o&&B(t),Sr(i,o),e[14](null)}}}function vr(e){var c,m;let t,n,r=((c=e[16])==null?void 0:c.symbol)+"",i,o,a=((m=e[16])==null?void 0:m.currency)+"",s,l,u,h,f;return{c(){var _,g,w,N;t=T("li"),n=T("span"),i=z(r),o=R(),s=z(a),l=R(),v(n,"class","symbol svelte-1g9pqha"),v(t,"role","option"),v(t,"aria-selected",u=((_=e[16])==null?void 0:_.currency)===((g=e[0])==null?void 0:g.currency)||e[18]===e[5]),v(t,"class","svelte-1g9pqha"),se(t,"active",((w=e[16])==null?void 0:w.currency)===((N=e[0])==null?void 0:N.currency)||e[18]===e[5])},m(_,g){P(_,t,g),x(t,n),x(n,i),x(t,o),x(t,s),x(t,l),h||(f=[ne(t,"keydown",Xa),ne(t,"click",function(){_t(e[9](e[16],e[18]))&&e[9](e[16],e[18]).apply(this,arguments)})],h=!0)},p(_,g){var w,N,E,b,C,D;e=_,g&2&&r!==(r=((w=e[16])==null?void 0:w.symbol)+"")&&re(i,r),g&2&&a!==(a=((N=e[16])==null?void 0:N.currency)+"")&&re(s,a),g&35&&u!==(u=((E=e[16])==null?void 0:E.currency)===((b=e[0])==null?void 0:b.currency)||e[18]===e[5])&&v(t,"aria-selected",u),g&35&&se(t,"active",((C=e[16])==null?void 0:C.currency)===((D=e[0])==null?void 0:D.currency)||e[18]===e[5])},d(_){_&&B(t),h=!1,Ae(f)}}}function Wa(e){var _,g;let t,n,r,i,o=(((_=e[0])==null?void 0:_.currency)||e[2])+"",a,s,l,u,h,f,c=((g=e[0])==null?void 0:g.symbol)&&e[3]===le.true&&br(e),m=e[7]&&yr(e);return{c(){t=T("div"),n=T("button"),r=T("span"),c&&c.c(),i=R(),a=z(o),s=R(),l=T("span"),l.innerHTML='<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>',u=R(),m&&m.c(),v(r,"class","label svelte-1g9pqha"),v(l,"class","arrow"),se(l,"open",e[7]),v(n,"class","selectButton svelte-1g9pqha"),v(n,"aria-haspopup","listbox"),v(n,"aria-expanded",e[7]),v(n,"aria-controls","custom-select"),v(n,"tabindex","0"),n.disabled=e[4],v(t,"class","selectWrapper svelte-1g9pqha")},m(w,N){P(w,t,N),x(t,n),x(n,r),c&&c.m(r,null),x(r,i),x(r,a),x(n,s),x(n,l),x(t,u),m&&m.m(t,null),h||(f=[ne(n,"keydown",e[11]),ne(n,"click",xi(e[8])),yi($a.call(null,t)),ne(t,"outclick",e[10])],h=!0)},p(w,[N]){var E,b;(E=w[0])!=null&&E.symbol&&w[3]===le.true?c?c.p(w,N):(c=br(w),c.c(),c.m(r,i)):c&&(c.d(1),c=null),N&5&&o!==(o=(((b=w[0])==null?void 0:b.currency)||w[2])+"")&&re(a,o),N&128&&se(l,"open",w[7]),N&128&&v(n,"aria-expanded",w[7]),N&16&&(n.disabled=w[4]),w[7]?m?m.p(w,N):(m=yr(w),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i:I,o:I,d(w){w&&B(t),c&&c.d(),m&&m.d(),h=!1,Ae(f)}}}const Xa=e=>e.preventDefault();function za(e,t,n){let{options:r=[]}=t,{selected:i=null}=t,{placeholder:o=M("select")}=t,{withSymbol:a="true"}=t,{id:s}=t,{disabled:l=!1}=t,{onChange:u=()=>{}}=t,h=-1,f,c=!1;const m=()=>Ht(this,null,function*(){var b;r.length!==0&&(n(7,c=!c),c&&(n(5,h=r.findIndex(C=>(C==null?void 0:C.currency)===(i==null?void 0:i.currency))),window.dispatchEvent(new CustomEvent("dropdown-opened",{detail:s})),yield Ci(),f==null||f.focus(),(b=f==null?void 0:f.querySelector('li[aria-selected="true"]'))==null||b.scrollIntoView({block:"nearest"})))}),_=b=>{b.detail!==s&&c&&n(7,c=!1)},g=(b,C)=>()=>{n(7,c=!1),n(0,i=b),u&&typeof u=="function"&&u(b,C)},w=()=>{n(7,c=!1)},N=b=>{c&&(b.key===Nt.ArrowDown?(b.preventDefault(),n(5,h=(h+1)%r.length)):b.key===Nt.ArrowUp?(b.preventDefault(),n(5,h=(h-1+r.length)%r.length)):b.key===Nt.Enter?(b.preventDefault(),g(i,h)()):b.key===Nt.Escape&&n(7,c=!1))};Pr(()=>{window.addEventListener("dropdown-opened",_)}),Ti(()=>{window.removeEventListener("dropdown-opened",_)});function E(b){Qe[b?"unshift":"push"](()=>{f=b,n(6,f)})}return e.$$set=b=>{"options"in b&&n(1,r=b.options),"selected"in b&&n(0,i=b.selected),"placeholder"in b&&n(2,o=b.placeholder),"withSymbol"in b&&n(3,a=b.withSymbol),"id"in b&&n(12,s=b.id),"disabled"in b&&n(4,l=b.disabled),"onChange"in b&&n(13,u=b.onChange)},[i,r,o,a,l,h,f,c,m,g,w,N,s,u,E]}class On extends Dn{constructor(t){super(),Nn(this,t,za,Wa,Xt,{options:1,selected:0,placeholder:2,withSymbol:3,id:12,disabled:4,onChange:13},ja)}get options(){return this.$$.ctx[1]}set options(t){this.$$set({options:t}),F()}get selected(){return this.$$.ctx[0]}set selected(t){this.$$set({selected:t}),F()}get placeholder(){return this.$$.ctx[2]}set placeholder(t){this.$$set({placeholder:t}),F()}get withSymbol(){return this.$$.ctx[3]}set withSymbol(t){this.$$set({withSymbol:t}),F()}get id(){return this.$$.ctx[12]}set id(t){this.$$set({id:t}),F()}get disabled(){return this.$$.ctx[4]}set disabled(t){this.$$set({disabled:t}),F()}get onChange(){return this.$$.ctx[13]}set onChange(t){this.$$set({onChange:t}),F()}}Rn(On,{options:{},selected:{},placeholder:{},withSymbol:{},id:{},disabled:{type:"Boolean"},onChange:{}},[],[],!0);function Za(e){Ln(e,"svelte-2fhtvy",".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}")}function Ka(e){let t,n,r=M("balanceUnavailable")+"",i;return{c(){t=T("span"),t.innerHTML='<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>',n=R(),i=z(r),v(t,"class","warningIcon svelte-2fhtvy")},m(o,a){P(o,t,a),P(o,n,a),P(o,i,a)},p:I,i:I,o:I,d(o){o&&(B(t),B(n),B(i))}}}class Jt extends Dn{constructor(t){super(),Nn(this,t,null,Ka,Xt,{},Za)}}Rn(Jt,{},[],[],!0);function qa(e){Ln(e,"svelte-1mw4zse",'@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}')}function _r(e,t,n){const r=e.slice();return r[65]=t[n],r}function Er(e){let t,n,r;return{c(){t=T("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>',v(t,"type","button"),v(t,"class","closeButton")},m(i,o){P(i,t,o),n||(r=ne(t,"click",e[24]),n=!0)},p:I,d(i){i&&B(t),n=!1,r()}}}function xr(e){let t,n,r,i;const o=[Ya,Qa],a=[];function s(l,u){return!l[17]||!l[18]?0:1}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=Ei()},m(l,u){a[t].m(l,u),P(l,r,u),i=!0},p(l,u){let h=t;t=s(l),t===h?a[t].p(l,u):(ke(),X(a[h],1,1,()=>{a[h]=null}),Fe(),n=a[t],n?n.p(l,u):(n=a[t]=o[t](l),n.c()),G(n,1),n.m(r.parentNode,r))},i(l){i||(G(n),i=!0)},o(l){X(n),i=!1},d(l){l&&B(r),a[t].d(l)}}}function Qa(e){let t,n,r,i;const o=[es,Ja],a=[];function s(l,u){var h;return((h=l[13])==null?void 0:h.source)===J.BalanceError?0:1}return n=s(e),r=a[n]=o[n](e),{c(){t=T("div"),r.c(),v(t,"class","headerPlayerBalance amountContainer")},m(l,u){P(l,t,u),a[n].m(t,null),i=!0},p(l,u){let h=n;n=s(l),n===h?a[n].p(l,u):(ke(),X(a[h],1,1,()=>{a[h]=null}),Fe(),r=a[n],r?r.p(l,u):(r=a[n]=o[n](l),r.c()),G(r,1),r.m(t,null))},i(l){i||(G(r),i=!0)},o(l){X(r),i=!1},d(l){l&&B(t),a[n].d()}}}function Ya(e){let t;return{c(){t=T("div"),v(t,"class","skeleton")},m(n,r){P(n,t,r)},p:I,i:I,o:I,d(n){n&&B(t)}}}function Ja(e){var l,u,h;let t,n,r=Re(((l=e[11])==null?void 0:l.amount)||0,(u=e[11])==null?void 0:u.currency,{minimumFractionDigits:0},!1)+"",i,o,a=(((h=e[11])==null?void 0:h.currency)||"")+"",s;return{c(){t=T("span"),t.textContent=`${M("totalBalance")}`,n=R(),i=z(r),o=R(),s=z(a),v(t,"class","totalAmount")},m(f,c){P(f,t,c),P(f,n,c),P(f,i,c),P(f,o,c),P(f,s,c)},p(f,c){var m,_,g;c[0]&2048&&r!==(r=Re(((m=f[11])==null?void 0:m.amount)||0,(_=f[11])==null?void 0:_.currency,{minimumFractionDigits:0},!1)+"")&&re(i,r),c[0]&2048&&a!==(a=(((g=f[11])==null?void 0:g.currency)||"")+"")&&re(s,a)},i:I,o:I,d(f){f&&(B(t),B(n),B(i),B(o),B(s))}}}function es(e){let t,n;return t=new Jt({}),{c(){bt(t.$$.fragment)},m(r,i){Ye(t,r,i),n=!0},p:I,i(r){n||(G(t.$$.fragment,r),n=!0)},o(r){X(t.$$.fragment,r),n=!1},d(r){Je(t,r)}}}function ts(e){let t,n,r,i,o,a,s,l,u;const h=[is,rs],f=[];function c(m,_){var g;return((g=m[13])==null?void 0:g.source)===J.BalanceError?0:1}return a=c(e),s=f[a]=h[a](e),{c(){t=T("div"),n=T("p"),r=z(e[14]),i=R(),o=T("div"),s.c(),v(n,"class","validationError"),v(o,"class","playerBalance amountContainer"),v(t,"class",l="balanceContainer "+(e[14]?"hasError":""))},m(m,_){P(m,t,_),x(t,n),x(n,r),x(t,i),x(t,o),f[a].m(o,null),u=!0},p(m,_){(!u||_[0]&16384)&&re(r,m[14]);let g=a;a=c(m),a===g?f[a].p(m,_):(ke(),X(f[g],1,1,()=>{f[g]=null}),Fe(),s=f[a],s?s.p(m,_):(s=f[a]=h[a](m),s.c()),G(s,1),s.m(o,null)),(!u||_[0]&16384&&l!==(l="balanceContainer "+(m[14]?"hasError":"")))&&v(t,"class",l)},i(m){u||(G(s),u=!0)},o(m){X(s),u=!1},d(m){m&&B(t),f[a].d()}}}function ns(e){let t;return{c(){t=T("div"),v(t,"class","skeleton")},m(n,r){P(n,t,r)},p:I,i:I,o:I,d(n){n&&B(t)}}}function rs(e){var l,u,h;let t,n,r=Re(((l=e[6])==null?void 0:l.amount)||0,(u=e[6])==null?void 0:u.currency,{minimumFractionDigits:0},!1)+"",i,o,a=(((h=e[6])==null?void 0:h.currency)||"")+"",s;return{c(){t=T("span"),t.textContent=`${M("currentBalance")}`,n=R(),i=z(r),o=R(),s=z(a),v(t,"class","amount")},m(f,c){P(f,t,c),P(f,n,c),P(f,i,c),P(f,o,c),P(f,s,c)},p(f,c){var m,_,g;c[0]&64&&r!==(r=Re(((m=f[6])==null?void 0:m.amount)||0,(_=f[6])==null?void 0:_.currency,{minimumFractionDigits:0},!1)+"")&&re(i,r),c[0]&64&&a!==(a=(((g=f[6])==null?void 0:g.currency)||"")+"")&&re(s,a)},i:I,o:I,d(f){f&&(B(t),B(n),B(i),B(o),B(s))}}}function is(e){let t,n;return t=new Jt({}),{c(){bt(t.$$.fragment)},m(r,i){Ye(t,r,i),n=!0},p:I,i(r){n||(G(t.$$.fragment,r),n=!0)},o(r){X(t.$$.fragment,r),n=!1},d(r){Je(t,r)}}}function os(e){let t,n,r,i;const o=[ls,ss],a=[];function s(l,u){var h;return((h=l[13])==null?void 0:h.source)===J.BalanceError?0:1}return n=s(e),r=a[n]=o[n](e),{c(){t=T("div"),r.c(),v(t,"class","playerBalance amountContainer")},m(l,u){P(l,t,u),a[n].m(t,null),i=!0},p(l,u){let h=n;n=s(l),n===h?a[n].p(l,u):(ke(),X(a[h],1,1,()=>{a[h]=null}),Fe(),r=a[n],r?r.p(l,u):(r=a[n]=o[n](l),r.c()),G(r,1),r.m(t,null))},i(l){i||(G(r),i=!0)},o(l){X(r),i=!1},d(l){l&&B(t),a[n].d()}}}function as(e){let t;return{c(){t=T("div"),v(t,"class","skeleton")},m(n,r){P(n,t,r)},p:I,i:I,o:I,d(n){n&&B(t)}}}function ss(e){var l,u,h;let t,n,r=Re(((l=e[7])==null?void 0:l.amount)||0,(u=e[6])==null?void 0:u.currency,{minimumFractionDigits:0},!1)+"",i,o,a=(((h=e[7])==null?void 0:h.currency)||"")+"",s;return{c(){t=T("span"),t.textContent=`${M("currentBalance")}`,n=R(),i=z(r),o=R(),s=z(a),v(t,"class","amount")},m(f,c){P(f,t,c),P(f,n,c),P(f,i,c),P(f,o,c),P(f,s,c)},p(f,c){var m,_,g;c[0]&192&&r!==(r=Re(((m=f[7])==null?void 0:m.amount)||0,(_=f[6])==null?void 0:_.currency,{minimumFractionDigits:0},!1)+"")&&re(i,r),c[0]&128&&a!==(a=(((g=f[7])==null?void 0:g.currency)||"")+"")&&re(s,a)},i:I,o:I,d(f){f&&(B(t),B(n),B(i),B(o),B(s))}}}function ls(e){let t,n;return t=new Jt({}),{c(){bt(t.$$.fragment)},m(r,i){Ye(t,r,i),n=!0},p:I,i(r){n||(G(t.$$.fragment,r),n=!0)},o(r){X(t.$$.fragment,r),n=!1},d(r){Je(t,r)}}}function wr(e){let t,n,r,i,o,a,s,l,u,h,f=Gt(e[20]),c=[];for(let m=0;m<f.length;m+=1)c[m]=Ar(_r(e,f,m));return{c(){t=T("div"),n=T("button"),r=Vn("svg"),i=Vn("path"),a=R(),s=T("div");for(let m=0;m<c.length;m+=1)c[m].c();v(i,"d","M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"),v(i,"fill","currentColor"),v(r,"class","vaultToggleIcon"),v(r,"width","12"),v(r,"height","7"),v(r,"viewBox","0 0 12 7"),v(r,"fill","currentColor"),v(r,"xmlns","http://www.w3.org/2000/svg"),v(n,"type","button"),v(n,"class",o="vaultToggleButton "+(e[16]&&e[20].length>0?"active":"")),v(s,"class",l="vaultDropdown "+(e[16]&&e[20].length>0?"expanded":"")),v(t,"class","vaultsContainer")},m(m,_){P(m,t,_),x(t,n),x(n,r),x(r,i),x(t,a),x(t,s);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(s,null);u||(h=ne(n,"click",e[23]),u=!0)},p(m,_){if(_[0]&1114112&&o!==(o="vaultToggleButton "+(m[16]&&m[20].length>0?"active":""))&&v(n,"class",o),_[0]&1048608){f=Gt(m[20]);let g;for(g=0;g<f.length;g+=1){const w=_r(m,f,g);c[g]?c[g].p(w,_):(c[g]=Ar(w),c[g].c(),c[g].m(s,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=f.length}_[0]&1114112&&l!==(l="vaultDropdown "+(m[16]&&m[20].length>0?"expanded":""))&&v(s,"class",l)},d(m){m&&B(t),Sr(c,m),u=!1,h()}}}function Ar(e){var h,f,c,m,_;let t,n,r=((h=e[65])==null?void 0:h.currency)+"",i,o,a,s=Re((f=e[65])==null?void 0:f.amount,(c=e[65])==null?void 0:c.currency,{minimumFractionDigits:0,maximumFractionDigits:(((m=e[65])==null?void 0:m.precision)>xe?xe:(_=e[65])==null?void 0:_.precision)||Number(e[5])},!1)+"",l,u;return{c(){t=T("div"),n=T("p"),i=z(r),o=R(),a=T("p"),l=z(s),u=R(),v(t,"class","vaultItem")},m(g,w){P(g,t,w),x(t,n),x(n,i),x(t,o),x(t,a),x(a,l),x(t,u)},p(g,w){var N,E,b,C,D;w[0]&1048576&&r!==(r=((N=g[65])==null?void 0:N.currency)+"")&&re(i,r),w[0]&1048608&&s!==(s=Re((E=g[65])==null?void 0:E.amount,(b=g[65])==null?void 0:b.currency,{minimumFractionDigits:0,maximumFractionDigits:(((C=g[65])==null?void 0:C.precision)>xe?xe:(D=g[65])==null?void 0:D.precision)||Number(g[5])},!1)+"")&&re(l,s)},d(g){g&&B(t)}}}function us(e){var r,i,o,a;let t=`${((i=(r=e[12])==null?void 0:r.fees[0])==null?void 0:i.amount)||0} ${((a=(o=e[12])==null?void 0:o.fees[0])==null?void 0:a.currency)||""}`,n;return{c(){n=z(t)},m(s,l){P(s,n,l)},p(s,l){var u,h,f,c;l[0]&4096&&t!==(t=`${((h=(u=s[12])==null?void 0:u.fees[0])==null?void 0:h.amount)||0} ${((c=(f=s[12])==null?void 0:f.fees[0])==null?void 0:c.currency)||""}`)&&re(n,t)},d(s){s&&B(n)}}}function cs(e){let t=M("feesUnavailable")+"",n;return{c(){n=z(t)},m(r,i){P(r,n,i)},p:I,d(r){r&&B(n)}}}function hs(e){var A;let t,n,r,i,o,a,s,l,u,h,f,c,m,_,g,w,N,E,b,C,D,K,$,ue,k,Te,ge,ie,be,ye,q,Z,Ce,Ve,ve,oe,xt,Ge,wt,ce,$e=M(((A=e[13])==null?void 0:A.message)||"")+"",st,fe,he,Se,ee,At=M("exchange")+"",je,We,W,lt,De,Q=e[3]===le.true&&Er(e),j=e[2]===le.true&&xr(e);function Tt(d){e[42](d)}let en={id:"senderSelect",withSymbol:e[4],disabled:!e[17]||!e[18],options:e[21],onChange:e[26]};e[6]!==void 0&&(en.selected=e[6]),g=new On({props:en}),Qe.push(()=>$n(g,"selected",Tt));const ut=[ns,ts],pe=[];function Ct(d,y){return!d[17]||!d[18]?0:1}E=Ct(e),b=pe[E]=ut[E](e);function tn(d){e[44](d)}let St={id:"destinationSelect",withSymbol:e[4],disabled:!e[0]||!!e[14]||!e[17]||!e[18],options:e[22],onChange:e[26]};e[7]!==void 0&&(St.selected=e[7]),ie=new On({props:St}),Qe.push(()=>$n(ie,"selected",tn));const ct=[as,os],de=[];function Bt(d,y){return!d[17]||!d[18]?0:1}q=Bt(e),Z=de[q]=ct[q](e);let Y=e[1]===le.true&&wr(e);function Pt(d,y){var O;return((O=d[13])==null?void 0:O.source)===J.CheckWalletExchangeError?cs:us}let Xe=Pt(e),p=Xe(e);return{c(){var d,y,O;t=T("div"),Q&&Q.c(),n=R(),r=T("div"),i=T("h1"),i.textContent=`${M("vaultExchange")}`,o=R(),j&&j.c(),a=R(),s=T("div"),l=T("div"),u=T("p"),u.textContent=`${M("exchangeFrom")}`,h=R(),f=T("div"),c=T("input"),_=R(),bt(g.$$.fragment),N=R(),b.c(),C=R(),D=T("div"),K=T("p"),K.textContent=`${M("exchangeTo")}`,$=R(),ue=T("div"),k=T("input"),ge=R(),bt(ie.$$.fragment),ye=R(),Z.c(),Ce=R(),Y&&Y.c(),Ve=R(),ve=T("div"),oe=T("span"),oe.textContent=`${M("feesIncluded")}`,xt=R(),Ge=T("span"),p.c(),wt=R(),ce=T("div"),st=R(),fe=T("div"),he=T("button"),he.textContent=`${M("reset")}`,Se=R(),ee=T("button"),je=z(At),v(i,"class","headerTitle"),v(r,"class","headerContainer"),v(u,"class","exchangeHeader"),v(c,"id","senderInput"),c.disabled=m=!e[0]||!e[17]||!e[18],v(c,"placeholder",M("debitPlaceHolder")),v(c,"class","exchangeInput"),v(c,"type","number"),v(c,"aria-label","Enter exchange amount"),v(c,"inputmode","decimal"),v(c,"step","0.000000000000001"),v(c,"min","0"),v(f,"class","flexingContainerRow"),v(l,"class","containerExchangeFrom exchangeContainer"),v(K,"class","exchangeHeader"),v(k,"id","destinationInput"),k.disabled=Te=!e[0]||!e[17]||!e[18],v(k,"placeholder",M("creditPlaceHolder")),v(k,"class","exchangeInput"),v(k,"type","number"),k.readOnly=!0,v(k,"min","0"),v(ue,"class","flexingContainerRow"),v(D,"class","containerExchangeTo exchangeContainer"),v(s,"class","exchangesContainer"),v(oe,"class","feesLabel"),v(ve,"class","feesContainer"),v(ce,"class","notificationsContainer"),se(ce,"error",((d=e[13])==null?void 0:d.type)==="error"),se(ce,"success",((y=e[13])==null?void 0:y.type)==="success"),v(he,"class","resetButton"),v(he,"type","button"),v(ee,"type","button"),v(ee,"class","exchangeButton"),ee.disabled=We=e[15]||e[19]||e[9]===0&&!((O=e[6])!=null&&O.amount),se(ee,"disabled",e[15]||e[19]),se(ee,"pending",e[19]),v(fe,"class","actionsContainer"),v(t,"class","playerAccountVault")},m(d,y){P(d,t,y),Q&&Q.m(t,null),x(t,n),x(t,r),x(r,i),x(r,o),j&&j.m(r,null),x(t,a),x(t,s),x(s,l),x(l,u),x(l,h),x(l,f),x(f,c),It(c,e[9]),x(f,_),Ye(g,f,null),x(l,N),pe[E].m(l,null),x(s,C),x(s,D),x(D,K),x(D,$),x(D,ue),x(ue,k),It(k,e[10]),x(ue,ge),Ye(ie,ue,null),x(D,ye),de[q].m(D,null),x(t,Ce),Y&&Y.m(t,null),x(t,Ve),x(t,ve),x(ve,oe),x(ve,xt),x(ve,Ge),p.m(Ge,null),x(t,wt),x(t,ce),ce.innerHTML=$e,x(t,st),x(t,fe),x(fe,he),x(fe,Se),x(fe,ee),x(ee,je),e[45](t),W=!0,lt||(De=[ne(c,"input",e[41]),ne(c,"input",e[27]),ne(c,"beforeinput",e[28]),ne(c,"focus",e[29]),ne(k,"input",e[43]),ne(he,"click",e[25]),ne(ee,"click",e[30])],lt=!0)},p(d,y){var ht,S,Pe,He;d[3]===le.true?Q?Q.p(d,y):(Q=Er(d),Q.c(),Q.m(t,n)):Q&&(Q.d(1),Q=null),d[2]===le.true?j?(j.p(d,y),y[0]&4&&G(j,1)):(j=xr(d),j.c(),G(j,1),j.m(r,null)):j&&(ke(),X(j,1,1,()=>{j=null}),Fe()),(!W||y[0]&393217&&m!==(m=!d[0]||!d[17]||!d[18]))&&(c.disabled=m),y[0]&512&&Vt(c.value)!==d[9]&&It(c,d[9]);const O={};y[0]&16&&(O.withSymbol=d[4]),y[0]&393216&&(O.disabled=!d[17]||!d[18]),y[0]&2097152&&(O.options=d[21]),!w&&y[0]&64&&(w=!0,O.selected=d[6],Gn(()=>w=!1)),g.$set(O);let Be=E;E=Ct(d),E===Be?pe[E].p(d,y):(ke(),X(pe[Be],1,1,()=>{pe[Be]=null}),Fe(),b=pe[E],b?b.p(d,y):(b=pe[E]=ut[E](d),b.c()),G(b,1),b.m(l,null)),(!W||y[0]&393217&&Te!==(Te=!d[0]||!d[17]||!d[18]))&&(k.disabled=Te),y[0]&1024&&Vt(k.value)!==d[10]&&It(k,d[10]);const _e={};y[0]&16&&(_e.withSymbol=d[4]),y[0]&409601&&(_e.disabled=!d[0]||!!d[14]||!d[17]||!d[18]),y[0]&4194304&&(_e.options=d[22]),!be&&y[0]&128&&(be=!0,_e.selected=d[7],Gn(()=>be=!1)),ie.$set(_e);let Ee=q;q=Bt(d),q===Ee?de[q].p(d,y):(ke(),X(de[Ee],1,1,()=>{de[Ee]=null}),Fe(),Z=de[q],Z?Z.p(d,y):(Z=de[q]=ct[q](d),Z.c()),G(Z,1),Z.m(D,null)),d[1]===le.true?Y?Y.p(d,y):(Y=wr(d),Y.c(),Y.m(t,Ve)):Y&&(Y.d(1),Y=null),Xe===(Xe=Pt(d))&&p?p.p(d,y):(p.d(1),p=Xe(d),p&&(p.c(),p.m(Ge,null))),(!W||y[0]&8192)&&$e!==($e=M(((ht=d[13])==null?void 0:ht.message)||"")+"")&&(ce.innerHTML=$e),(!W||y[0]&8192)&&se(ce,"error",((S=d[13])==null?void 0:S.type)==="error"),(!W||y[0]&8192)&&se(ce,"success",((Pe=d[13])==null?void 0:Pe.type)==="success"),(!W||y[0]&557632&&We!==(We=d[15]||d[19]||d[9]===0&&!((He=d[6])!=null&&He.amount)))&&(ee.disabled=We),(!W||y[0]&557056)&&se(ee,"disabled",d[15]||d[19]),(!W||y[0]&524288)&&se(ee,"pending",d[19])},i(d){W||(G(j),G(g.$$.fragment,d),G(b),G(ie.$$.fragment,d),G(Z),W=!0)},o(d){X(j),X(g.$$.fragment,d),X(b),X(ie.$$.fragment,d),X(Z),W=!1},d(d){d&&B(t),Q&&Q.d(),j&&j.d(),Je(g),pe[E].d(),Je(ie),de[q].d(),Y&&Y.d(),p.d(),e[45](null),lt=!1,Ae(De)}}}function fs(e,t,n){let{session:r=""}=t,{userid:i=""}=t,{endpoint:o=""}=t,{lang:a="en"}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,{translationurl:u=""}=t,{playercurrency:h=""}=t,{showvaults:f=le.true}=t,{showtotalbalance:c=le.true}=t,{showclosebutton:m=le.true}=t,{showcurrencysymbol:_=le.true}=t,{currencyposition:g=""}=t,{currencydecimals:w="2"}=t,{local:N="en-US"}=t,E=null,b=null,C=0,D=0,K=0,$=null,ue=null,k=null,Te="",ge=!0,ie=!1,be=!1,ye=!1,q=!1,Z=[],Ce=[],Ve=[],ve=[],oe;_a({withLocale:"en",translations:{}}),Object.keys(ir).forEach(p=>{rr(p,ir[p])});const xt=()=>{Ea(a)},Ge=()=>{fetch(u).then(p=>p.json()).then(p=>{Object.keys(p).forEach(A=>{rr(A,p[A])})}).catch(p=>{console.error("There was a problem with the translations request.",p)})},wt=()=>{let p=document.createElement("style");p.innerHTML=s,oe.appendChild(p)},ce=()=>{let p,A=new URL(l),d=document.createElement("style");fetch(A.href).then(y=>y.text()).then(y=>{d.innerHTML=y,p&&clearTimeout(p),p=setTimeout(()=>{oe.appendChild(d)},1)})},$e=()=>{Ce.length!==0&&(n(16,ie=!ie),window.postMessage({type:pn.VaultDropdownToggled,state:ie},window.location.href))},st=()=>{window.postMessage({type:pn.VaultWidgetClosed},window.location.href)},fe=()=>{n(15,ge=!0),Se(),ee(),At(),je(),window.postMessage({type:pn.VaultWidgetReset},window.location.href)},he=()=>{n(15,ge=!0),n(10,K=0)},Se=()=>{n(12,ue=null)},ee=()=>{n(9,C=0),n(10,K=0)},At=()=>{n(14,Te="")},je=()=>{n(13,k=null)},We=p=>{p&&n(14,Te=p)},W=({type:p,message:A,source:d=""})=>{let y;switch(n(13,k={message:A,source:d,type:p}),p){case Oe.error:n(15,ge=!0),window.postMessage({type:d,data:{type:p,message:A}},window.location.href);break;case Oe.success:n(15,ge=!0),window.postMessage({type:d,data:{type:p,message:A}},window.location.href),y&&clearTimeout(y),y=setTimeout(()=>{je()},Ua);break}},lt=()=>new Promise((p,A)=>{const d=k==null?void 0:k.message.includes(Va.InvalidSession);d&&A(),isNaN(Number(C))&&(he(),Se(),A(M("invalidValue"))),C>(E==null?void 0:E.amount)&&(he(),Se(),A(M("exceededValue"))),C===null&&!d&&(he(),Se(),A()),C===0&&C===0&&!d&&(fe(),A()),(!E||!b)&&!d&&A(),At(),p()}),De=(p,A)=>Ht(this,null,function*(){var y,O;const d=yield p.json();return(p==null?void 0:p.status)>=200&&(p==null?void 0:p.status)<400?d:(A===J.CheckWalletExchangeError&&he(),!be&&A===J.BalanceError&&(n(17,be=!0),n(18,ye=!0)),!ye&&A===J.CurrenciesError&&n(18,ye=!0),W({type:Oe.error,message:M((y=d==null?void 0:d.thirdPartyResponse)==null?void 0:y.code)||M((O=d==null?void 0:d.thirdPartyResponse)==null?void 0:O.errorCode)||"generalError",source:A}))}),Q=()=>new Promise((p,A)=>{const d=new URL(`${o}/v1/player/${i}/wallet-exchange/currencies`);fetch(d,{method:"GET",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"}}).then(O=>De(O,J.CurrenciesError)).then(O=>{p(O==null?void 0:O.currencies)}).catch(O=>{n(18,ye=!0),console.error("There was an error on the allowed currencies request.",O),W({type:Oe.error,message:M("generalError"),source:J.CurrenciesError}),A()}).finally(()=>{n(18,ye=!0)})}),j=({data:p,shouldUpdateSelectedCurrencies:A,allowed:d=[]})=>{var ht;const{items:y=[],totalAmount:O={},totalRealAmount:Be}=p||{};n(11,$=Object.entries(Be||O).map(([S="",Pe=0])=>({currency:S,amount:Pe}))[0]);let _e=null;const Ee=new Map(d.map(S=>[S.code,S]));for(const S of y)if((S==null?void 0:S.type)===dr.Real){const Pe=Ee.get(S==null?void 0:S.currency);if(Pe&&Pe.code===(S==null?void 0:S.currency)){const He=rn(Ie(Ie({},S),Pe),{symbol:((ht=Ma[S==null?void 0:S.currency])==null?void 0:ht[0])||(S==null?void 0:S.currency[0])});n(40,Z=[...Z,He]),(S==null?void 0:S.currency)===($==null?void 0:$.currency)&&n(11,$=Ie(Ie({},$),He)),(S==null?void 0:S.currency)!==($==null?void 0:$.currency)&&(S==null?void 0:S.walletAccountType)===dr.Vault&&n(20,Ce=[...Ce,He]),A&&(S==null?void 0:S.amount)>0&&n(6,E=$!=null&&$.currency?$:_e),E&&(E==null?void 0:E.currency)===(S==null?void 0:S.currency)&&n(6,E=He),b&&(b==null?void 0:b.currency)===(S==null?void 0:S.currency)&&n(7,b=He)}}},Tt=(p=!0)=>{const A=new URL(`${o}/v2/player/${i}/balance`);fetch(A,{method:"GET",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"}}).then(y=>De(y,J.BalanceError)).then(y=>{y&&(Q().then(O=>{n(40,Z=[]),n(20,Ce=[]),j({data:y,shouldUpdateSelectedCurrencies:p,allowed:O})}),window.postMessage({type:"playerBalanceInfo",balance:y},window.location.href))}).catch(y=>{n(17,be=!0),console.error("There was an error with the player balance request.",y),W({type:Oe.error,message:M("generalError"),source:J.BalanceError})}).finally(()=>{n(17,be=!0)})},ut=ka(()=>{lt().then(()=>{const p=new URL(`${o}/v2/player/${i}/check/wallet-exchange`),A={userId:i,amount:C,currency:E==null?void 0:E.currency,fromCurrency:E==null?void 0:E.currency,toCurrency:b==null?void 0:b.currency,payload:{PlayerCurrency:h}},d={method:"POST",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"},body:fr(A)};fetch(p,d).then(y=>De(y,J.CheckWalletExchangeError)).then(y=>{var O,Be;if(y){if((k==null?void 0:k.source)===J.CheckWalletExchangeError&&je(),Array.isArray((O=y==null?void 0:y.fees)==null?void 0:O.fees)&&n(12,ue=y.fees),Array.isArray(y==null?void 0:y.walletActions)){const _e=((Be=y.walletActions.find(Ee=>(Ee==null?void 0:Ee.directionName)===Ga.Credit))==null?void 0:Be.amount)||0;n(10,K=Fa(_e))}C>0&&K>0&&(E!=null&&E.currency)&&(b!=null&&b.currency)&&h&&n(15,ge=!1)}}).catch(y=>{W({type:Oe.error,message:M("generalError"),source:J.CheckWalletExchangeError}),console.error("There was a problem with the wallet exchange request.",y)})}).catch(p=>{We(p)})},500),pe=p=>{const A=p.target.value,[d,y]=A.split(".");!y&&A.length>=xe&&n(9,C=A.slice(0,xe));const O=Number((E==null?void 0:E.precision)||"2");y&&(E==null?void 0:E.type)===mr.Fiat&&(y.length<=O?(n(9,C=A),D=A):n(9,C=D)),y&&(E==null?void 0:E.type)===mr.CryptoCurrency&&(O<=xe&&y.length<=O?(n(9,C=A),D=A):n(9,C=D),O>xe&&y.length<=xe?(n(9,C=A),D=A):n(9,C=D)),ut()},Ct=p=>{const A=p.data;[">","<",","].includes(A)&&p.preventDefault(),A&&!A.match(/[\d.]/)&&p.preventDefault(),A==="."&&p.target.value.includes(".")&&p.preventDefault()},tn=()=>{C===0&&n(9,C=null)},St=()=>{const p=new URL(`${o}/v2/player/${i}/wallet-exchange`);n(19,q=!0);const A={feeDetails:ue,userId:i,amount:C,currency:E==null?void 0:E.currency,fromCurrency:E==null?void 0:E.currency,toCurrency:b==null?void 0:b.currency,payload:{PlayerCurrency:h}},d={method:"PUT",headers:{"X-SessionId":r,"Content-Type":"application/json",Accept:"application/json"},body:fr(A)};fetch(p,d).then(y=>De(y,J.WalletExchangeError)).then(y=>{y&&(W({type:Oe.success,message:M("exchangeSuccess"),source:"ExchangeSuccess"}),Tt(!1))}).catch(y=>{W({type:Oe.error,message:M("generalError"),source:J.WalletExchangeError}),console.error("There was an error with the wallet exchange request.",y)}).finally(()=>{n(19,q=!1),ee(),Se()})},ct=p=>{const{data:{type:A}={}}=p||{};switch(A){case pr.ResetVaultWidget:fe();break;case pr.CloseVaultWidget:st();break}};Pr(()=>(Da(N,_,g,w),window.addEventListener("message",ct),()=>{window.removeEventListener("message",ct)}));function de(){C=Vt(this.value),n(9,C)}function Bt(p){E=p,n(6,E)}function Y(){K=Vt(this.value),n(10,K)}function Pt(p){b=p,n(7,b)}function Xe(p){Qe[p?"unshift":"push"](()=>{oe=p,n(8,oe)})}return e.$$set=p=>{"session"in p&&n(0,r=p.session),"userid"in p&&n(31,i=p.userid),"endpoint"in p&&n(32,o=p.endpoint),"lang"in p&&n(33,a=p.lang),"clientstyling"in p&&n(34,s=p.clientstyling),"clientstylingurl"in p&&n(35,l=p.clientstylingurl),"translationurl"in p&&n(36,u=p.translationurl),"playercurrency"in p&&n(37,h=p.playercurrency),"showvaults"in p&&n(1,f=p.showvaults),"showtotalbalance"in p&&n(2,c=p.showtotalbalance),"showclosebutton"in p&&n(3,m=p.showclosebutton),"showcurrencysymbol"in p&&n(4,_=p.showcurrencysymbol),"currencyposition"in p&&n(38,g=p.currencyposition),"currencydecimals"in p&&n(5,w=p.currencydecimals),"local"in p&&n(39,N=p.local)},e.$$.update=()=>{e.$$.dirty[1]&4&&a&&xt(),e.$$.dirty[0]&256|e.$$.dirty[1]&8&&s&&oe&&wt(),e.$$.dirty[0]&256|e.$$.dirty[1]&16&&l&&oe&&ce(),e.$$.dirty[1]&32&&u&&Ge(),e.$$.dirty[0]&1|e.$$.dirty[1]&67&&r&&i&&o&&h&&Tt(),e.$$.dirty[0]&128|e.$$.dirty[1]&512&&n(21,Ve=Z.filter(p=>(p==null?void 0:p.amount)>0&&(p==null?void 0:p.currency)!==(b==null?void 0:b.currency))),e.$$.dirty[0]&64|e.$$.dirty[1]&512&&n(22,ve=Z.filter(p=>(E==null?void 0:E.currency)!==(p==null?void 0:p.currency)))},[r,f,c,m,_,w,E,b,oe,C,K,$,ue,k,Te,ge,ie,be,ye,q,Ce,Ve,ve,$e,st,fe,ut,pe,Ct,tn,St,i,o,a,s,l,u,h,g,N,Z,de,Bt,Y,Pt,Xe]}class ci extends Dn{constructor(t){super(),Nn(this,t,fs,hs,Xt,{session:0,userid:31,endpoint:32,lang:33,clientstyling:34,clientstylingurl:35,translationurl:36,playercurrency:37,showvaults:1,showtotalbalance:2,showclosebutton:3,showcurrencysymbol:4,currencyposition:38,currencydecimals:5,local:39},qa,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),F()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),F()}get endpoint(){return this.$$.ctx[32]}set endpoint(t){this.$$set({endpoint:t}),F()}get lang(){return this.$$.ctx[33]}set lang(t){this.$$set({lang:t}),F()}get clientstyling(){return this.$$.ctx[34]}set clientstyling(t){this.$$set({clientstyling:t}),F()}get clientstylingurl(){return this.$$.ctx[35]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),F()}get translationurl(){return this.$$.ctx[36]}set translationurl(t){this.$$set({translationurl:t}),F()}get playercurrency(){return this.$$.ctx[37]}set playercurrency(t){this.$$set({playercurrency:t}),F()}get showvaults(){return this.$$.ctx[1]}set showvaults(t){this.$$set({showvaults:t}),F()}get showtotalbalance(){return this.$$.ctx[2]}set showtotalbalance(t){this.$$set({showtotalbalance:t}),F()}get showclosebutton(){return this.$$.ctx[3]}set showclosebutton(t){this.$$set({showclosebutton:t}),F()}get showcurrencysymbol(){return this.$$.ctx[4]}set showcurrencysymbol(t){this.$$set({showcurrencysymbol:t}),F()}get currencyposition(){return this.$$.ctx[38]}set currencyposition(t){this.$$set({currencyposition:t}),F()}get currencydecimals(){return this.$$.ctx[5]}set currencydecimals(t){this.$$set({currencydecimals:t}),F()}get local(){return this.$$.ctx[39]}set local(t){this.$$set({local:t}),F()}}Rn(ci,{session:{},userid:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},showvaults:{},showtotalbalance:{},showclosebutton:{},showcurrencysymbol:{},currencyposition:{},currencydecimals:{},local:{}},[],[],!0);exports.default=ci;
@@ -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/PlayerAccountVault-C_lxngQK.cjs")).then(({default:t})=>{!customElements.get("player-account-vault")&&customElements.define("player-account-vault",t.element)})}
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/PlayerAccountVault-BrNkos08.cjs")).then(({default:t})=>{!customElements.get("player-account-vault")&&customElements.define("player-account-vault",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountVault-Cd46Dcr9.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountVault-4BBFjk92.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-vault") && customElements.define("player-account-vault", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-vault",
3
- "version": "1.86.12",
3
+ "version": "1.86.21",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-vault.cjs",
6
6
  "module": "es2015/player-account-vault.js",