@everymatrix/player-account-menu 0.0.232 → 0.0.236
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function p(){}function h(t){return t()}function f(){return Object.create(null)}function d(t){t.forEach(h)}function m(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function y(t,...e){if(null==t)return p;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function v(t,e,r){t.$$.on_destroy.push(y(e,r))}function E(t,e){t.appendChild(e)}function A(t,e,r){t.insertBefore(e,r||null)}function _(t){t.parentNode.removeChild(t)}function w(t){return document.createElement(t)}function t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function P(){return T(" ")}function e(){return T("")}function g(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function M(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function x(t,e,r){e in t?t[e]=r:M(t,e,r)}function S(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function b(t,e,r,n){t.style.setProperty(e,r,n?"important":"")}function n(t){const e={};for(const r of t)e[r.name]=r.value;return e}let L;function I(t){L=t}const O=[],o=[],i=[],s=[],C=Promise.resolve();let N=!1;function R(t){i.push(t)}let a=!1;const c=new Set;function U(){if(!a){a=!0;do{for(let t=0;t<O.length;t+=1){var e=O[t];I(e),function(t){{var e;null!==t.fragment&&(t.update(),d(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(R))}}(e.$$)}for(I(null),O.length=0;o.length;)o.pop()();for(let t=0;t<i.length;t+=1){const r=i[t];c.has(r)||(c.add(r),r())}}while(i.length=0,O.length);for(;s.length;)s.pop()();N=!1,a=!1,c.clear()}}const F=new Set;function u(n,t,e,r,o,i,s=[-1]){var a,c=L;I(n);const u=n.$$={fragment:null,ctx:null,props:i,update:p,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:f(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=e?e(n,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),l&&(r=t,-1===(t=n).$$.dirty[0]&&(O.push(t),N||(N=!0,C.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],u.update(),l=!0,d(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){const p=(r=t.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(p),p.forEach(_)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(F.delete(a),a.i(void 0)),function(e,t,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,r),n||R(()=>{var t=i.map(h).filter(m);s?s.push(...t):d(t),e.$$.on_mount=[]}),a.forEach(R)}(n,t.target,t.anchor,t.customElement),U()}I(c)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(m);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(d(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=p}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var D,k,G="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==G&&G,$="URLSearchParams"in G,j="Symbol"in G&&"iterator"in Symbol,B="FileReader"in G&&"Blob"in G&&function(){try{return new Blob,!0}catch(t){return!1}}(),V="FormData"in G,X="ArrayBuffer"in G;function z(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function H(t){return t="string"!=typeof t?String(t):t}function W(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return j&&(t[Symbol.iterator]=function(){return t}),t}function Y(e){this.map={},e instanceof Y?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function K(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function Z(t){var e=new FileReader,r=K(e);return e.readAsArrayBuffer(t),r}function Q(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:B&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:V&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:$&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():X&&B&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Q(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):X&&(ArrayBuffer.prototype.isPrototypeOf(t)||k(t))?this._bodyArrayBuffer=Q(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):$&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},B&&(this.blob=function(){var t=q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Z)}),this.text=function(){var t,e,r=q(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=K(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},V&&(this.formData=function(){return this.text().then(rt)}),this.json=function(){return this.text().then(JSON.parse)},this}X&&(D=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],k=ArrayBuffer.isView||function(t){return t&&-1<D.indexOf(Object.prototype.toString.call(t))}),Y.prototype.append=function(t,e){t=z(t),e=H(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Y.prototype.delete=function(t){delete this.map[z(t)]},Y.prototype.get=function(t){return t=z(t),this.has(t)?this.map[t]:null},Y.prototype.has=function(t){return this.map.hasOwnProperty(z(t))},Y.prototype.set=function(t,e){this.map[z(t)]=H(e)},Y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Y.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),W(r)},Y.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),W(e)},Y.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),W(r)},j&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var tt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function et(t,e){if(!(this instanceof et))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(e=e||{}).body;if(t instanceof et){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Y(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<tt.indexOf(t)?t:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function rt(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function nt(t,e){if(!(this instanceof nt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Y(e.headers),this.url=e.url||"",this._initBody(t)}et.prototype.clone=function(){return new et(this,{body:this._bodyInit})},J.call(et.prototype),J.call(nt.prototype),nt.prototype.clone=function(){return new nt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},nt.error=function(){var t=new nt(null,{status:0,statusText:""});return t.type="error",t};var ot=[301,302,303,307,308];nt.redirect=function(t,e){if(-1===ot.indexOf(e))throw new RangeError("Invalid status code");return new nt(null,{status:e,headers:{location:t}})};var it=G.DOMException;try{new it}catch(p){(it=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),it.prototype.constructor=it}function st(n,s){return new Promise(function(o,t){var e=new et(n,s);if(e.signal&&e.signal.aborted)return t(new it("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new Y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new nt(n,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new it("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&G.location.href?G.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(B?i.responseType="blob":X&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof Y?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,H(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}st.polyfill=!0,G.fetch||(G.fetch=st,G.Headers=Y,G.Request=et,G.Response=nt),self.fetch.bind(self);var at=function(t,e){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function ct(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ut(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function pt(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function ht(t){return"function"==typeof t}function ft(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var dt=ft(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function mt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var yt=(bt.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ut(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(ht(i))try{i()}catch(t){o=t instanceof dt?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var c=ut(i),u=c.next();!u.done;u=c.next()){var l=u.value;try{vt(l)}catch(t){o=null!=o?o:[],t instanceof dt?o=pt(pt([],lt(o)),lt(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new dt(o)}},bt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)vt(t);else{if(t instanceof bt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},bt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},bt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},bt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},bt.prototype.remove=function(t){var e=this._teardowns;e&&mt(e,t),t instanceof bt&&t._removeParent(this)},bt.EMPTY=((Be=new bt).closed=!0,Be),bt),gt=yt.EMPTY;function bt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function Et(t){return t instanceof yt||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function vt(t){ht(t)?t():t.unsubscribe()}var At=void 0,_t=!1,wt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,pt([],lt(t)))};function Tt(){}function Pt(t){t()}var Mt,xt,St=(ct(Ot,xt=yt),Ot.create=function(t,e,r){return new Lt(t,e,r)},Ot.prototype.next=function(t){this.isStopped||this._next(t)},Ot.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Ot.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ot.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,xt.prototype.unsubscribe.call(this),this.destination=null)},Ot.prototype._next=function(t){this.destination.next(t)},Ot.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Ot.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ot),Lt=(ct(It,Mt=St),It);function It(t,e,r){var n,o,i=Mt.call(this)||this;return ht(t)?o=t:t&&(o=t.next,e=t.error,r=t.complete,i&&_t?(n=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:n=t,o=null==o?void 0:o.bind(n),e=null==e?void 0:e.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Ct(o):Tt,error:Ct(null!=e?e:Nt),complete:r?Ct(r):Tt},i}function Ot(t){var e=xt.call(this)||this;return e.isStopped=!1,t?Et(e.destination=t)&&t.add(e):e.destination=Rt,e}function Ct(n){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{n.apply(void 0,pt([],lt(t)))}catch(t){e=t,wt(function(){throw e})}}}function Nt(t){throw t}var Rt={closed:!0,next:Tt,error:Nt,complete:Tt},Ut="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ft(t){return t}var Dt=(kt.prototype.lift=function(t){var e=new kt;return e.source=this,e.operator=t,e},kt.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof St||n&&ht(n.next)&&ht(n.error)&&ht(n.complete)&&Et(n)?t:new Lt(t,e,r);return Pt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},kt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},kt.prototype.forEach=function(n,t){var o=this;return new(t=Gt(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},kt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},kt.prototype[Ut]=function(){return this},kt.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Ft:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},kt.prototype.toPromise=function(t){var n=this;return new(t=Gt(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},kt.create=function(t){return new kt(t)},kt);function kt(t){t&&(this._subscribe=t)}function Gt(t){return null!==(t=null!=t?t:At)&&void 0!==t?t:Promise}var $t,jt,Bt,Vt=ft(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xt=(ct(Kt,Bt=Dt),Kt.prototype.lift=function(t){var e=new zt(this,this);return e.operator=t,e},Kt.prototype._throwIfClosed=function(){if(this.closed)throw new Vt},Kt.prototype.next=function(i){var s=this;Pt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=ut(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}})},Kt.prototype.error=function(e){var r=this;Pt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},Kt.prototype.complete=function(){var e=this;Pt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},Kt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Kt.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Kt.prototype._trySubscribe=function(t){return this._throwIfClosed(),Bt.prototype._trySubscribe.call(this,t)},Kt.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Kt.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,n=this.observers;return e||r?gt:(n.push(t),new yt(function(){return mt(n,t)}))},Kt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},Kt.prototype.asObservable=function(){var t=new Dt;return t.source=this,t},Kt.create=function(t,e){return new zt(t,e)},Kt),zt=(ct(qt,jt=Xt),qt.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},qt.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},qt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},qt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:gt},qt),Ht={now:function(){return(Ht.delegate||Date).now()},delegate:void 0},Wt=(ct(Yt,$t=Xt),Yt.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(n.push(t),o||n.push(i.now()+e)),this._trimBuffer(),$t.prototype.next.call(this,t)},Yt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},Yt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Yt);function Yt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Ht);var n=$t.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function qt(t,e){var r=jt.call(this)||this;return r.destination=t,r.source=e,r}function Kt(){var t=Bt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Zt=[],Qt={};const Jt=[];function te(n,o=p){let i;const s=[];function a(t){if(r(n,t)&&(n=t,i)){const t=!Jt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Jt.push(e,n)}if(t){for(let t=0;t<Jt.length;t+=2)Jt[t][0](Jt[t+1]);Jt.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=p){const r=[t,e];return s.push(r),1===s.length&&(i=o(a)||p),t(n),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function ee(t,a,e){const c=!Array.isArray(t),u=c?[t]:t,l=a.length<2;return{subscribe:te(e,e=>{let r=!1;const n=[];let o=0,i=p;const s=()=>{var t;o||(i(),t=a(c?n[0]:n,e),l?e(t):i=m(t)?t:p)},t=u.map((t,e)=>y(t,t=>{n[e]=t,o&=~(1<<e),r&&s()},()=>{o|=1<<e}));return r=!0,s(),function(){d(t),i()}}).subscribe}}var re=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===ne));var e},ne="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function oe(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ue(Array.isArray(t)?[]:{},t,e):t}function ie(t,e,r){return t.concat(e).map(function(t){return oe(t,r)})}function se(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ae(t,e){try{return e in t}catch(t){return!1}}function ce(n,o,i){var s={};return i.isMergeableObject(n)&&se(n).forEach(function(t){s[t]=oe(n[t],i)}),se(o).forEach(function(e){var t,r;(!ae(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ae(n,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return ue;var t=i.customMerge(e);return"function"==typeof t?t:ue}()(n[e],o[e],i):s[e]=oe(o[e],i))}),s}function ue(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||ie,r.isMergeableObject=r.isMergeableObject||re,r.cloneUnlessOtherwiseSpecified=oe;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):ce(t,e,r):oe(e,r)}ue.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return ue(t,e,r)},{})};var le=ue,pe=function(t,e){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function he(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}pe(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var fe,de,me,ye=function(){return(ye=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function ge(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function be(t){return t.type===de.literal}function Ee(t){return t.type===de.number}function ve(t){return t.type===de.date}function Ae(t){return t.type===de.time}function _e(t){return t.type===de.select}function we(t){return t.type===de.plural}function Te(t){return t.type===de.tag}function Pe(t){return t&&"object"==typeof t&&t.type===me.number}function Me(t){return t&&"object"==typeof t&&t.type===me.dateTime}(Ve=fe=fe||{})[Ve.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Ve[Ve.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Ve[Ve.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Ve[Ve.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Ve[Ve.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Ve[Ve.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Ve[Ve.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Ve[Ve.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Ve[Ve.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Ve[Ve.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Ve[Ve.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Ve[Ve.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Ve[Ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Ve[Ve.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Ve[Ve.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Ve[Ve.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Ve[Ve.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Ve[Ve.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Ve[Ve.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Ve[Ve.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Ve[Ve.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Ve[Ve.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Ve[Ve.INVALID_TAG=23]="INVALID_TAG",Ve[Ve.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Ve[Ve.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Ve[Ve.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Xe=de=de||{})[Xe.literal=0]="literal",Xe[Xe.argument=1]="argument",Xe[Xe.number=2]="number",Xe[Xe.date=3]="date",Xe[Xe.time=4]="time",Xe[Xe.select=5]="select",Xe[Xe.plural=6]="plural",Xe[Xe.pound=7]="pound",Xe[Xe.tag=8]="tag",(ze=me=me||{})[ze.number=0]="number",ze[ze.dateTime=1]="dateTime";var xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Se=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Le,Ie=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Oe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ce=/^(@+)?(\+|#+)?$/g,Ne=/(\*)(0+)|(#+)(0+)|(0+)/g,Re=/^(0+)$/;function Ue(t){var n={};return t.replace(Ce,function(t,e,r){return"string"!=typeof r?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===r?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),n}function Fe(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function De(t){return Fe(t)||{}}function ke(t){for(var s={},e=0,r=t;e<r.length;e++){var n,o=r[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=ye(ye(ye({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return ye(ye({},t),De(e))},{}));continue;case"engineering":s=ye(ye(ye({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return ye(ye({},t),De(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ne,function(t,e,r,n,o,i){if(e)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Re.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Oe.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Oe,function(t,e,r,n,o,i){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=ye(ye({},s),Ue(o.options[0])))}else Ce.test(o.stem)?s=ye(ye({},s),Ue(o.stem)):((n=Fe(o.stem))&&(s=ye(ye({},s),n)),(n=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Re.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=ye(ye({},s),n)))}return s}var Ge=new RegExp("^"+xe.source+"*"),$e=new RegExp(xe.source+"*$");function je(t,e){return{start:t,end:e}}var Be=!!String.prototype.startsWith,Ut=!!String.fromCodePoint,Xt=!!Object.fromEntries,Ve=!!String.prototype.codePointAt,Xe=!!String.prototype.trimStart,ze=!!String.prototype.trimEnd,He=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},xe=!0;try{xe="a"===(null===(Le=er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Le?void 0:Le[0])}catch(p){xe=!1}var We,Ye,qe=Be?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Ke=Ut?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;i<o;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ze=Xt?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],o=o[1];e[i]=o}return e},Qe=Ve?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var n,o=t.charCodeAt(e);return o<55296||56319<o||e+1===r||(n=t.charCodeAt(e+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Je=Xe?function(t){return t.trimStart()}:function(t){return t.replace(Ge,"")},tr=ze?function(t){return t.trimEnd()}:function(t){return t.replace($e,"")};function er(t,e){return new RegExp(t,e)}Ye=xe?(We=er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return We.lastIndex=e,null!==(t=We.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,n=[];;){var o=Qe(t,e);if(void 0===o||ir(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),e+=65536<=o?2:1}return Ke.apply(void 0,n)};var rr=(nr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},nr.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(fe.UNMATCHED_CLOSING_TAG,je(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&or(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:de.pound,location:je(i,this.clonePosition())})}}}return{val:n,err:null}},nr.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:de.literal,value:"<"+n+"/>",location:je(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!or(this.char()))return this.error(fe.INVALID_TAG,je(e,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(fe.UNMATCHED_CLOSING_TAG,je(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:de.tag,value:n,children:t,location:je(r,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,je(e,this.clonePosition())))}return this.error(fe.UNCLOSED_TAG,je(r,this.clonePosition()))}return this.error(fe.INVALID_TAG,je(r,this.clonePosition()))},nr.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},nr.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{o=this.tryParseUnquoted(t,e);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=je(r,this.clonePosition());return{val:{type:de.literal,value:n,location:r},err:null}},nr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(or(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},nr.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Ke.apply(void 0,e)},nr.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Ke(r))},nr.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,je(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(fe.EMPTY_ARGUMENT,je(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(fe.MALFORMED_ARGUMENT,je(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,je(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:de.argument,value:n,location:je(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,je(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(fe.MALFORMED_ARGUMENT,je(r,this.clonePosition()))}},nr.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Ye(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:je(t,this.clonePosition())}},nr.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(fe.EXPECT_ARGUMENT_TYPE,je(i,a));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=tr(h.val)).length)return this.error(fe.EXPECT_ARGUMENT_STYLE,je(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:je(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var l=je(n,this.clonePosition());if(c&&qe(null==c?void 0:c.style,"::",0)){u=Je(c.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?h:{val:{type:de.number,value:r,location:l,style:h.val},err:null};if(0===u.length)return this.error(fe.EXPECT_DATE_TIME_SKELETON,l);var p={type:me.dateTime,pattern:u,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(Se,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?de.date:de.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===s?de.number:"date"===s?de.date:de.time,value:r,location:l,style:null!==(l=null==c?void 0:c.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,je(c,ye({},c)));this.bumpSpace();var h,l=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===l.value){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,je(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),l=this.parseIdentifierIfPossible(),c=h.val}l=this.tryParsePluralOrSelectOptions(t,s,e,l);if(l.err)return l;if((f=this.tryParseArgumentClose(n)).err)return f;var f=je(n,this.clonePosition());return"select"===s?{val:{type:de.select,value:r,options:Ze(l.val),location:f},err:null}:{val:{type:de.plural,value:r,options:Ze(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(fe.INVALID_ARGUMENT_TYPE,je(i,a))}},nr.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,je(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},nr.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,je(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},nr.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Ie).filter(function(t){return 0<t.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(fe.INVALID_NUMBER_SKELETON,e)}return{val:{type:me.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?ke(r):{}},err:null}},nr.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o=!1,i=[],s=new Set,a=n.value,c=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=je(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===a&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,je(this.clonePosition(),this.clonePosition()));l=this.parseMessage(t+1,e,r);if(l.err)return l;u=this.tryParseArgumentClose(p);if(u.err)return u;i.push([a,{value:l.val,location:je(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,c=p.location}return 0===i.length?this.error("select"===e?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,je(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(fe.MISSING_OTHER_CLAUSE,je(this.clonePosition(),this.clonePosition())):{val:i,err:null}},nr.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=je(n,this.clonePosition());return o?He(i*=r)?{val:i,err:null}:this.error(e,n):this.error(t,n)},nr.prototype.offset=function(){return this.position.offset},nr.prototype.isEOF=function(){return this.offset()===this.message.length},nr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},nr.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Qe(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},nr.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},nr.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},nr.prototype.bumpIf=function(t){if(qe(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},nr.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},nr.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},nr.prototype.bumpSpace=function(){for(;!this.isEOF()&&ir(this.char());)this.bump()},nr.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},nr);function nr(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function or(t){return 97<=t&&t<=122||65<=t&&t<=90}function ir(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function sr(t,e){e=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new rr(t,e).parse();if(r.err){t=SyntaxError(fe[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,_e(t)||we(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else Ee(t)&&Pe(t.style)||(ve(t)||Ae(t))&&Me(t.style)?delete t.style.location:Te(t)&&r(t.children)})}(r.val),r.val}function ar(t,e){var r=e&&e.cache?e.cache:dr,n=e&&e.serializer?e.serializer:pr;return(e&&e.strategy?e.strategy:function(t,e){return lr(t,this,1===t.length?cr:ur,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function cr(t,e,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=e.get(o);return void 0===r&&(r=t.call(this,n),e.set(o,r)),r}function ur(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=e.get(o);return void 0===r&&(r=t.apply(this,n),e.set(o,r)),r}function lr(t,e,r,n,o){return r.bind(e,t,n,o)}var pr=function(){return JSON.stringify(arguments)};function hr(){this.cache=Object.create(null)}hr.prototype.has=function(t){return t in this.cache},hr.prototype.get=function(t){return this.cache[t]},hr.prototype.set=function(t,e){this.cache[t]=e};var fr,dr={create:function(){return new hr}},mr={variadic:function(t,e){return lr(t,this,ur,e.cache.create(),e.serializer)},monadic:function(t,e){return lr(t,this,cr,e.cache.create(),e.serializer)}};(xe=fr=fr||{}).MISSING_VALUE="MISSING_VALUE",xe.INVALID_VALUE="INVALID_VALUE",xe.MISSING_INTL_API="MISSING_INTL_API";var yr,gr,br,Er,vr,Ar=(he(Sr,vr=Error),Sr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Sr),_r=(he(xr,Er=Ar),xr),wr=(he(Mr,br=Ar),Mr),Tr=(he(Pr,gr=Ar),Pr);function Pr(t,e){return gr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',fr.MISSING_VALUE,e)||this}function Mr(t,e,r){return br.call(this,'Value for "'+t+'" must be of type '+e,fr.INVALID_VALUE,r)||this}function xr(t,e,r,n){return Er.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',fr.INVALID_VALUE,n)||this}function Sr(t,e,r){t=vr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Lr(t,e,r,n,o,i,s){if(1===t.length&&be(t[0]))return[{type:yr.literal,value:t[0].value}];for(var a=[],c=0,u=t;c<u.length;c++){var l=u[c];if(be(l))a.push({type:yr.literal,value:l.value});else if(l.type===de.pound)"number"==typeof i&&a.push({type:yr.literal,value:r.getNumberFormat(e).format(i)});else{var p=l.value;if(!(o&&p in o))throw new Tr(p,s);var h=o[p];if(l.type===de.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?yr.literal:yr.object,value:h});else if(ve(l)){var f="string"==typeof l.style?n.date[l.style]:Me(l.style)?l.style.parsedOptions:void 0;a.push({type:yr.literal,value:r.getDateTimeFormat(e,f).format(h)})}else if(Ae(l))f="string"==typeof l.style?n.time[l.style]:Me(l.style)?l.style.parsedOptions:void 0,a.push({type:yr.literal,value:r.getDateTimeFormat(e,f).format(h)});else if(Ee(l))(f="string"==typeof l.style?n.number[l.style]:Pe(l.style)?l.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:yr.literal,value:r.getNumberFormat(e,f).format(h)});else{if(Te(l)){var d=l.children,m=l.value,p=o[m];if("function"!=typeof p)throw new wr(m,"function",s);d=p(Lr(d,e,r,n,o,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?yr.literal:yr.object,value:t}}))}if(_e(l)){if(!(y=l.options[h]||l.options.other))throw new _r(l.value,h,Object.keys(l.options),s);a.push.apply(a,Lr(y.value,e,r,n,o))}else if(we(l)){if(!(y=l.options["="+h])){if(!Intl.PluralRules)throw new Ar('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fr.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:l.pluralType}).select(h-(l.offset||0)),y=l.options[d]||l.options.other}if(!y)throw new _r(l.value,h,Object.keys(l.options),s);a.push.apply(a,Lr(y.value,e,r,n,o,h-(l.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===yr.literal&&e.type===yr.literal?r.value+=e.value:t.push(e),t},[])}function Ir(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(xe=yr=yr||{})[xe.literal=0]="literal",xe[xe.object=1]="object";var Or=(Object.defineProperty(Cr,"defaultLocale",{get:function(){return Cr.memoizedDefaultLocale||(Cr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cr.memoizedDefaultLocale=null,Cr.__parse=sr,Cr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Cr);function Cr(t,e,r,n){var o,i,s=this;if(void 0===e&&(e=Cr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===yr.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Lr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Cr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cr.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Cr.formats,(i=r)?Object.keys(o).reduce(function(t,e){var r,n;return t[e]=(r=o[e],(n=i[e])?ye(ye(ye({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=ye(ye({},r[e]),n[e]||{}),t},{})):r),t},ye({},o)):o),this.locales=e,this.formatters=n&&n.formatters||{getNumberFormat:ar(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ge([void 0],e)))},{cache:Ir((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:mr.variadic}),getDateTimeFormat:ar(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ge([void 0],e)))},{cache:Ir(n.dateTime),strategy:mr.variadic}),getPluralRules:ar(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ge([void 0],e)))},{cache:Ir(n.pluralRules),strategy:mr.variadic})}}const Nr={},Rr=(e,r)=>{if(null!=r){if(r in Nr&&e in Nr[r])return Nr[r][e];var n,o,i=Kr(r);for(let t=0;t<i.length;t++){var s=(n=i[t],o=e,Dr(n)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(0<t){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return Ur[t]||null}(n),o):null);if(s)return n=e,o=r,(s=s)&&(o in Nr||(Nr[o]={}),n in Nr[o]||(Nr[o][n]=s),s)}}};let Ur;const Fr=te({});function Dr(t){return t in Ur}function kr(e,...r){delete Nr[e],Fr.update(t=>(t[e]=le.all([t[e]||{},...r]),t))}ee([Fr],([t])=>Object.keys(t)),Fr.subscribe(t=>Ur=t);const Gr={};function $r(t){return Gr[t]}function jr(t){return Kr(t).some(t=>{return null===(t=$r(t))||void 0===t?void 0:t.size})}const Br={};function Vr(t){if(!jr(t))return t in Br?Br[t]:void 0;const e=Kr(t).map(t=>{var e=$r(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Br[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){Gr[t].delete(e),0===Gr[t].size&&delete Gr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>kr(e,...t))}(t))).then(()=>jr(t)?Vr(t):void delete Br[t]),Br[t]}function Xr(t,e){var r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}const zr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Hr=te(!1);let Wr;const Yr=te(null);function qr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Kr(t,e=zr.fallbackLocale){t=qr(t);return e?[...new Set([...t,...qr(e)])]:t}Yr.subscribe(t=>{Wr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Zr=Yr.set;Yr.set=e=>{if(function(t){if(null!=t){var e=Kr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Dr(r))return r}}}(e)&&jr(e)){var{loadingDelay:r}=zr;let t;return"undefined"!=typeof window&&null!=Wr&&r?t=window.setTimeout(()=>Hr.set(!0),r):Hr.set(!0),Vr(e).then(()=>{Zr(e)}).finally(()=>{clearTimeout(t),Hr.set(!1)})}return Zr(e)},Yr.update=t=>Zr(t(Wr));const Qr=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},Jr=(t,e)=>{var{formats:r}=zr;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},tn=Qr(t=>{var{locale:e,format:r}=t,t=Xr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Jr("number",r)),new Intl.NumberFormat(e,t)}),en=Qr(t=>{var{locale:e,format:r}=t,t=Xr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Jr("date",r):0===Object.keys(t).length&&(t=Jr("date","short")),new Intl.DateTimeFormat(e,t)}),rn=Qr(t=>{var{locale:e,format:r}=t,t=Xr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Jr("time",r):0===Object.keys(t).length&&(t=Jr("time","short")),new Intl.DateTimeFormat(e,t)}),nn=Qr((t,e=Wr)=>new Or(t,e,zr.formats,{ignoreTag:zr.ignoreTag})),on=ee([Yr,Fr],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:n=Wr,default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Rr(t,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else zr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Kr(n).join('", "')}".${jr(Wr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=nn(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});ee([Yr],()=>(t,e)=>((t={})=>{var{locale:e=Wr}=t,t=Xr(t,["locale"]);return rn(Object.assign({locale:e},t))})(e).format(t)),ee([Yr],()=>(t,e)=>((t={})=>{var{locale:e=Wr}=t,t=Xr(t,["locale"]);return en(Object.assign({locale:e},t))})(e).format(t)),ee([Yr],()=>(t,e)=>((t={})=>{var{locale:e=Wr}=t,t=Xr(t,["locale"]);return tn(Object.assign({locale:e},t))})(e).format(t)),ee([Yr,Fr],()=>(t,e=Wr)=>Rr(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Zt.indexOf(t)&&(e=new Wt(e),Qt[t]=e,Zt.push(t)),Qt[t]}};const sn=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",an='<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 1280.000000 1216.000000"\npreserveAspectRatio="xMidYMid meet">\n<g transform="translate(0.000000,1216.000000) scale(0.100000,-0.100000)" fill="#fff" stroke="none">\n<path d="M6177 12145 c-48 -8 -350 -84 -670 -170 l-582 -155 -610 0 c-679 0-725 -3 -920 -65 -264 -82 -511 -256 -677 -475 l-49 -65 -287 -76 c-1001 -267\n-1397 -375 -1472 -401 -388 -136 -713 -468 -839 -856 -51 -158 -66 -258 -65-437 1 -112 6 -196 17 -245 8 -41 77 -304 152 -585 267 -998 355 -1327 505\n-1885 83 -311 200 -747 260 -970 60 -223 168 -625 240 -895 72 -269 180 -672 240 -895 60 -223 177 -659 260 -970 83 -311 209 -781 280 -1045 71 -264 160\n-597 199 -740 38 -143 81 -291 95 -329 119 -316 375 -594 681 -742 124 -59 230 -95 355 -121 107 -22 373 -24 475 -4 65 12 684 176 2078 549 l557 150 143\n-38 c78 -22 464 -125 857 -230 393 -105 899 -241 1125 -301 526 -142 533 -143 735 -143 241 0 387 33 605 138 254 122 478 338 608 585 86 163 30 -33 607\n2121 60 223 177 659 260 970 83 311 200 747 260 970 318 1187 597 2228 755 2815 303 1132 415 1555 427 1620 7 39 13 142 13 230 0 221 -36 383 -130 581\n-152 324 -439 583 -775 702 -72 25 -568 160 -1546 421 l-211 56 -61 76 c-183 231 -403 383 -679 469 -183 56 -237 60 -909 60 l-610 0 -545 146 c-299 80\n-584 155 -634 165 -122 27 -396 34 -518 14z m-1127 -1167 c0 -10 -70 -274 -314 -1183 -124 -463 -364 -1358 -517 -1930 -233 -869 -374 -1393 -498 -1857\n-71 -266 -173 -645 -226 -843 -53 -198 -98 -364 -100 -370 -2 -5 -3 1122 -2 2505 l2 2515 22 90 c63 265 185 487 368 670 231 232 511 367 835 404 120 13\n430 13 430 -1z m2140 -127 c47 -10 202 -51 345 -90 224 -60 1099 -295 2790 -747 475 -128 514 -140 632 -194 398 -185 684 -558 769 -1005 23 -122 23 -350\n0 -469 -9 -49 -49 -206 -87 -350 -124 -463 -367 -1368 -499 -1861 -71 -264 -197 -734 -280 -1045 -83 -311 -200 -747 -260 -970 -497 -1855 -508 -1897\n-537 -1970 -126 -317 -382 -592 -686 -735 -182 -86 -331 -123 -528 -132 -239 -10 -190 -21 -1424 310 -776 208 -1457 391 -2045 548 -493 132 -625 176 -750\n249 -407 238 -665 661 -686 1125 -11 228 -11 229 250 1200 76 281 205 762 287 1070 83 308 200 745 260 970 61 226 168 626 239 890 71 264 197 734 280 1045\n83 311 191 714 240 895 48 182 99 359 113 395 35 94 102 223 160 310 63 95 259 290 357 355 159 105 354 185 540 219 119 22 402 15 520 -13z m-4750 -3698\nc0 -1697 -3 -3084 -6 -3081 -3 3 -32 106 -65 229 -133 496 -367 1367 -469 1749 -221 825 -375 1398 -507 1890 -200 743 -185 672 -187 900 -1 156 3 212\n18 279 112 511 459 894 946 1044 119 37 249 75 263 76 4 1 7 -1388 7 -3086z"/>\n<path d="M8960 9889 c-40 -111 -149 -350 -236 -518 -430 -831 -1050 -1573 -1649 -1976 -303 -203 -564 -310 -862 -350 -250 -35 -420 -122 -600 -308 -179\n-185 -305 -425 -369 -702 -27 -113 -27 -404 0 -525 117 -536 530 -939 1063 -1036 115 -20 339 -20 458 1 176 31 368 111 522 217 43 29 124 98 179 154\nl101 100 -55 -105 c-300 -573 -638 -1052 -1021 -1443 -63 -65 -113 -120 -110 -122 2 -2 347 -96 767 -208 536 -144 762 -200 762 -191 0 7 -11 55 -25 106\n-76 289 -135 658 -166 1047 -12 164 -13 753 0 845 5 33 9 47 10 30 2 -56 50 -223 90 -314 182 -424 547 -711 1000 -786 123 -21 364 -16 476 8 461 103 835\n434 979 867 115 346 99 745 -42 1025 -72 144 -133 214 -302 351 -216 172 -367 359 -514 636 -201 378 -351 874 -431 1431 -46 319 -59 516 -59 892 -1 355 8\n505 45 784 10 80 17 146 15 148 -2 2 -13 -24 -26 -58z"/>\n</g>\n</svg>',cn={en:{myAccount:{title:"My Account"}},ro:{myAccount:{title:"Contul meu"}}},un={en:{logout:{logoutButton:"Logout"}},tr:{logout:{logoutButton:"Çıkış Yap"}},ro:{logout:{logoutButton:"Iesire"}}};function ln(r){let n,o,i,s,a,c,u=r[1]("logout.logoutButton")+"";return{c(){n=w("div"),o=w("button"),i=w("span"),s=T(u),M(n,"class","GeneralLogout")},m(t,e){A(t,n,e),E(n,o),E(o,i),E(i,s),a||(c=g(o,"click",r[9]),a=!0)},p(t,e){2&e&&u!==(u=t[1]("logout.logoutButton")+"")&&S(s,u)},d(t){t&&_(n),a=!1,c()}}}function pn(i){let r,n,o,s,a,c,u,l,p,h,f,d=!i[2]&&function(){let r,n,o=i[1]("logout.logoutButton")+"";return{c(){r=w("span"),n=T(o),M(r,"class","PlayerLogoutText")},m(t,e){A(t,r,e),E(r,n)},p(t,e){2&e&&o!==(o=t[1]("logout.logoutButton")+"")&&S(n,o)},d(t){t&&_(r)}}}();return{c(){r=w("p"),n=w("span"),o=t("svg"),s=t("defs"),a=t("style"),c=T(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("path"),l=t("path"),p=P(),d&&d.c(),M(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(u,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),M(l,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(l,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),M(o,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),M(o,"data-name","Layer 1"),M(o,"xmlns","http://www.w3.org/2000/svg"),M(o,"viewBox","0 0 150 150"),b(n,"width",i[2]?i[3].matches?"50px":"24px":"20px"),M(r,"class","PlayerAccountMenuItemBox "+(i[2]?"PlayerAccountMenuItemBoxMobile":"")+" "+(i[3].matches&&i[2]?"PlayerAccountMenuItemBoxTablet":""))},m(t,e){A(t,r,e),E(r,n),E(n,o),E(o,s),E(s,a),E(a,c),E(o,u),E(o,l),E(r,p),d&&d.m(r,null),h||(f=g(r,"click",i[8]),h=!0)},p(t,e){t[2]||d.p(t,e)},d(t){t&&_(r),d&&d.d(),h=!1,f()}}}function hn(t){let r;function n(t){return"PlayerAccountMenu"===t[0]?pn:ln}let o=n(t),i=o(t);return{c(){i.c(),r=e(),this.c=p},m(t,e){i.m(t,e),A(t,r,e)},p(t,[e]){o===(o=n(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(r.parentNode,r)))},i:p,o:p,d(t){i.d(t),t&&_(r)}}}function fn(e,t,r){let n;v(e,on,t=>r(1,n=t));let{endpoint:o=""}=t,{session:i=""}=t,{buttonlocation:s=""}=t,{lang:a=""}=t,c=!1,u=window.navigator.userAgent,l="PC"!==sn(u);t=window.matchMedia("(min-width: 768px)");Object.keys(un).forEach(t=>{kr(t,un[t])});const p=()=>{let t=new Headers;t.append("Content-type","application/json"),t.append("X-SessionID",i),fetch(`${o}/player/session/player`,{method:"DELETE",headers:t}).then(t=>{window.postMessage({type:"LogoutSuccessfull"})})};return e.$$set=t=>{"endpoint"in t&&r(5,o=t.endpoint),"session"in t&&r(6,i=t.session),"buttonlocation"in t&&r(0,s=t.buttonlocation),"lang"in t&&r(7,a=t.lang)},e.$$.update=()=>{var t;97&e.$$.dirty&&o&&i&&s&&(o||(error="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",c=!0,console.error(error)),i||(error="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",c=!0,console.error(error))),128&e.$$.dirty&&a&&(t=a,Yr.set(t))},[s,n,l,t,p,o,i,a,()=>p(),()=>p()]}function dn(t,e,r){const n=t.slice();return n[22]=e[r],n}function mn(e){let r,n,o,i,s,a,c,u,l,p,h,f,d=e[8]&&function(){let r,n,o=e[7]("myAccount.title")+"";return{c(){r=w("h3"),n=T(o),M(r,"class","PlayerAccountMenuCategoryTitle")},m(t,e){A(t,r,e),E(r,n)},p(t,e){128&e&&o!==(o=t[7]("myAccount.title")+"")&&S(n,o)},d(t){t&&_(r)}}}(),m=e[8]&&function(t){let r,n;return{c(){r=w("div"),n=w("general-logout"),x(n,"endpoint",t[1]),x(n,"session",t[0]),x(n,"buttonlocation","PlayerAccountMenu"),M(r,"class","PlayerAccountLogOutArea")},m(t,e){A(t,r,e),E(r,n)},p(t,e){2&e&&x(n,"endpoint",t[1]),1&e&&x(n,"session",t[0])},d(t){t&&_(r)}}}(e),y=e[2],g=[];for(let t=0;t<y.length;t+=1)g[t]=bn(dn(e,y,t));let b=!e[8]&&function(t){let r,n;return{c(){r=w("div"),n=w("general-logout"),x(n,"endpoint",t[1]),x(n,"session",t[0]),x(n,"buttonlocation","PlayerAccountMenu"),M(r,"class","PlayerAccountLogOutArea")},m(t,e){A(t,r,e),E(r,n)},p(t,e){2&e&&x(n,"endpoint",t[1]),1&e&&x(n,"session",t[0])},d(t){t&&_(r)}}}(e);return{c(){r=w("div"),n=w("div"),d&&d.c(),o=P(),i=w("p"),s=T(e[5]),a=P(),c=w("p"),u=T(e[6]),l=P(),m&&m.c(),p=P(),h=w("div");for(let t=0;t<g.length;t+=1)g[t].c();f=P(),b&&b.c(),M(i,"class","PlayerAccountMenuUser"),M(c,"class","PlayerAccountMenuEmail"),M(n,"class","PlayerAccountMenuHeader"),M(h,"class","PlayerAccountMenuList"),M(r,"class","PlayerAccountMenuContainer "+(e[8]?"PlayerAccountMobileContainer":"")+" "+(e[9].matches&&e[8]?"PlayerAccountTabletContainer":""))},m(t,e){A(t,r,e),E(r,n),d&&d.m(n,null),E(n,o),E(n,i),E(i,s),E(n,a),E(n,c),E(c,u),E(n,l),m&&m.m(n,null),E(r,p),E(r,h);for(let t=0;t<g.length;t+=1)g[t].m(h,null);E(r,f),b&&b.m(r,null)},p(e,r){if(e[8]&&d.p(e,r),32&r&&S(s,e[5]),64&r&&S(u,e[6]),e[8]&&m.p(e,r),1820&r){let t;for(y=e[2],t=0;t<y.length;t+=1){var n=dn(e,y,t);g[t]?g[t].p(n,r):(g[t]=bn(n),g[t].c(),g[t].m(h,null))}for(;t<g.length;t+=1)g[t].d(1);g.length=y.length}e[8]||b.p(e,r)},d(t){t&&_(r),d&&d.d(),m&&m.d(),function(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}(g,t),b&&b.d()}}}function yn(t){let r,n;return{c(){r=w("img"),M(r,"class","PlayerAccountMenuItemIcon "+(t[8]?"PlayerAccountMenuItemIconMobile":"")),r.src!==(n=t[22].img)&&M(r,"src",n)},m(t,e){A(t,r,e)},p(t,e){4&e&&r.src!==(n=t[22].img)&&M(r,"src",n)},d(t){t&&_(r)}}}function gn(t){let r,n=t[22].img+"";return{c(){r=w("span"),b(r,"width",t[8]?t[9].matches?"80px":"30px":"20px"),b(r,"height",t[8]?t[9].matches?"80px":"40px":"20px")},m(t,e){A(t,r,e),r.innerHTML=n},p(t,e){4&e&&n!==(n=t[22].img+"")&&(r.innerHTML=n)},d(t){t&&_(r)}}}function bn(r){let n,o,i,s,a,c,u,l,p,h=r[22].label+"";function f(t){return t[4]?gn:yn}let d=f(r),m=d(r);function y(){return r[13](r[22])}return{c(){n=w("div"),o=w("p"),m.c(),i=P(),s=w("span"),a=T(h),c=P(),M(s,"class","PlayerAccountMenuItemTitle"),M(o,"class","PlayerAccountMenuItemWrapper"),M(n,"class",u="PlayerAccountMenuItemBox "+(r[3]!==r[22].id||r[8]?"":"PlayerAccountMenuActiveItemBox"))},m(t,e){A(t,n,e),E(n,o),m.m(o,null),E(o,i),E(o,s),E(s,a),E(n,c),l||(p=g(n,"click",y),l=!0)},p(t,e){d===(d=f(r=t))&&m?m.p(r,e):(m.d(1),m=d(r),m&&(m.c(),m.m(o,i))),4&e&&h!==(h=r[22].label+"")&&S(a,h),12&e&&u!==(u="PlayerAccountMenuItemBox "+(r[3]!==r[22].id||r[8]?"":"PlayerAccountMenuActiveItemBox"))&&M(n,"class",u)},d(t){t&&_(n),m.d(),l=!1,p()}}}function En(t){let r,n=mn(t);return{c(){n.c(),r=e(),this.c=p},m(t,e){n.m(t,e),A(t,r,e)},p(t,[e]){n.p(t,e)},i:p,o:p,d(t){n.d(t),t&&_(r)}}}function vn(e,t,r){let n;v(e,on,t=>r(7,n=t));let{endpoint:o=""}=t,{session:i=""}=t,{playerid:s=""}=t,{lang:a="en"}=t,c=[],u=0,l=window.navigator.userAgent,p="PC"!==sn(l),h=[],f=!0,d="",m="";var y=window.matchMedia("(min-width: 768px)");Object.keys(cn).forEach(t=>{kr(t,cn[t])}),t=()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}),function(){if(!L)throw new Error("Function called outside component initialization");return L}().$$.on_mount.push(t);const g=t=>{if(t.data)switch(t.data.type){case"AccountMenuDetails":r(2,c=t.data.accountMenuInfo),r(3,u=c[0].id),b();break;case"UserSessionID":r(0,i=t.data.session)}},b=()=>{c.length?r(4,f=!1):(r(2,c=h),r(4,f=!0))},E=t=>{window.postMessage({type:"ChangeAccountPage",page:t},window.location.href),r(3,u=t.id)};return e.$$set=t=>{"endpoint"in t&&r(1,o=t.endpoint),"session"in t&&r(0,i=t.session),"playerid"in t&&r(11,s=t.playerid),"lang"in t&&r(12,a=t.lang)},e.$$.update=()=>{var t;6147&e.$$.dirty&&o&&i&&s&&a&&(t=a,Yr.set(t),h=[{id:0,title:"Profile Info",menu_item_icon:an},{id:1,title:"Account Security",menu_item_icon:an},{id:2,title:"Deposit",menu_item_icon:an},{id:3,title:"Withdrawal",menu_item_icon:an},{id:4,title:"Active Bonuses",menu_item_icon:an},{id:5,title:"Self-Exclusion",menu_item_icon:an},{id:6,title:"Account Closure",menu_item_icon:an}],fetch(`${o}/player/${s}/profile`,{method:"GET",headers:{playerId:s,"X-SessionID":i}}).then(t=>t.json()).then(t=>{r(5,d=t.username),r(6,m=t.email)},t=>{console.error(t)}))},[i,o,c,u,f,d,m,n,p,y,E,s,a,t=>E(t)]}customElements.get("general-logout")||customElements.define("general-logout",class extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-color-white, #FFFFFF)}</style>",u(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},fn,hn,r,{endpoint:5,session:6,buttonlocation:0,lang:7}),t&&(t.target&&A(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["endpoint","session","buttonlocation","lang"]}get endpoint(){return this.$$.ctx[5]}set endpoint(t){this.$set({endpoint:t}),U()}get session(){return this.$$.ctx[6]}set session(t){this.$set({session:t}),U()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(t){this.$set({buttonlocation:t}),U()}get lang(){return this.$$.ctx[7]}set lang(t){this.$set({lang:t}),U()}});class An extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerAccountMenuContainer{color:var(--emfe-w-color-white, #FFFFFF);position:relative;height:100vh;display:flex;flex-direction:column}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-color-white, #FFFFFF);flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{flex-grow:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMobileContainer{height:unset;color:var(--emfe-w-color-contrast, #07072A)}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin-top:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emfe-w-color-contrast, #07072A);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-color-primary, #D0046C);border-bottom:1px solid var(--emfe-w-color-primary, #D0046C)}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}</style>",u(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},vn,En,r,{endpoint:1,session:0,playerid:11,lang:12}),t&&(t.target&&A(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["endpoint","session","playerid","lang"]}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$set({endpoint:t}),U()}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),U()}get playerid(){return this.$$.ctx[11]}set playerid(t){this.$set({playerid:t}),U()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),U()}}return customElements.get("player-account-menu")||customElements.define("player-account-menu",An),An});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function p(){}function h(e){return e()}function f(){return Object.create(null)}function d(e){e.forEach(h)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function y(e,...t){if(null==e)return p;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function A(e,t,r){e.$$.on_destroy.push(y(t,r))}function E(e,t){e.appendChild(t)}function v(e,t,r){e.insertBefore(t,r||null)}function _(e){e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function P(){return T(" ")}function t(){return T("")}function g(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function M(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function x(e,t,r){t in e?e[t]=r:M(e,t,r)}function S(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function b(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let L;function I(e){L=e}const O=[],o=[],i=[],s=[],C=Promise.resolve();let N=!1;function R(e){i.push(e)}let a=!1;const c=new Set;function U(){if(!a){a=!0;do{for(let e=0;e<O.length;e+=1){var t=O[e];I(t),function(e){{var t;null!==e.fragment&&(e.update(),d(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(R))}}(t.$$)}for(I(null),O.length=0;o.length;)o.pop()();for(let e=0;e<i.length;e+=1){const r=i[e];c.has(r)||(c.add(r),r())}}while(i.length=0,O.length);for(;s.length;)s.pop()();N=!1,a=!1,c.clear()}}const F=new Set;function u(n,e,t,r,o,i,s=[-1]){var a,c=L;I(n);const u=n.$$={fragment:null,ctx:null,props:i,update:p,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:e.context||[]),callbacks:f(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&(r=e,-1===(e=n).$$.dirty[0]&&(O.push(e),N||(N=!0,C.then(U)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),l=!0,d(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const p=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(p),p.forEach(_)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(F.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,r),n||R(()=>{var e=i.map(h).filter(m);s?s.push(...e):d(e),t.$$.on_mount=[]}),a.forEach(R)}(n,e.target,e.anchor,e.customElement),U()}I(c)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(d(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=p}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var D,k,$="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==$&&$,G="URLSearchParams"in $,j="Symbol"in $&&"iterator"in Symbol,B="FileReader"in $&&"Blob"in $&&function(){try{return new Blob,!0}catch(e){return!1}}(),V="FormData"in $,X="ArrayBuffer"in $;function z(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function H(e){return e="string"!=typeof e?String(e):e}function W(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return j&&(e[Symbol.iterator]=function(){return e}),e}function Y(t){this.map={},t instanceof Y?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function q(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function K(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Z(e){var t=new FileReader,r=K(t);return t.readAsArrayBuffer(e),r}function Q(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:B&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:V&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:G&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():X&&B&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Q(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):X&&(ArrayBuffer.prototype.isPrototypeOf(e)||k(e))?this._bodyArrayBuffer=Q(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):G&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},B&&(this.blob=function(){var e=q(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Z)}),this.text=function(){var e,t,r=q(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=K(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},V&&(this.formData=function(){return this.text().then(re)}),this.json=function(){return this.text().then(JSON.parse)},this}X&&(D=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],k=ArrayBuffer.isView||function(e){return e&&-1<D.indexOf(Object.prototype.toString.call(e))}),Y.prototype.append=function(e,t){e=z(e),t=H(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},Y.prototype.delete=function(e){delete this.map[z(e)]},Y.prototype.get=function(e){return e=z(e),this.has(e)?this.map[e]:null},Y.prototype.has=function(e){return this.map.hasOwnProperty(z(e))},Y.prototype.set=function(e,t){this.map[z(e)]=H(t)},Y.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},Y.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),W(r)},Y.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),W(t)},Y.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),W(r)},j&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var ee=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function te(e,t){if(!(this instanceof te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof te){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Y(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Y(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<ee.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function re(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function ne(e,t){if(!(this instanceof ne))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Y(t.headers),this.url=t.url||"",this._initBody(e)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})},J.call(te.prototype),J.call(ne.prototype),ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ne.error=function(){var e=new ne(null,{status:0,statusText:""});return e.type="error",e};var oe=[301,302,303,307,308];ne.redirect=function(e,t){if(-1===oe.indexOf(t))throw new RangeError("Invalid status code");return new ne(null,{status:t,headers:{location:e}})};var ie=$.DOMException;try{new ie}catch(p){(ie=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ie.prototype.constructor=ie}function se(n,s){return new Promise(function(o,e){var t=new te(n,s);if(t.signal&&t.signal.aborted)return e(new ie("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new Y,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new ne(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new ie("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&$.location.href?$.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(B?i.responseType="blob":X&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof Y?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,H(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}se.polyfill=!0,$.fetch||($.fetch=se,$.Headers=Y,$.Request=te,$.Response=ne),self.fetch.bind(self);var ae=function(e,t){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ue(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function le(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function pe(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function he(e){return"function"==typeof e}function fe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var de=fe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function me(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var ye=(be.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ue(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(he(i))try{i()}catch(e){o=e instanceof de?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var c=ue(i),u=c.next();!u.done;u=c.next()){var l=u.value;try{ve(l)}catch(e){o=null!=o?o:[],e instanceof de?o=pe(pe([],le(o)),le(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(o)throw new de(o)}},be.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ve(e);else{if(e instanceof be){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},be.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},be.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},be.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&me(t,e)},be.prototype.remove=function(e){var t=this._teardowns;t&&me(t,e),e instanceof be&&e._removeParent(this)},be.EMPTY=((Bt=new be).closed=!0,Bt),be),ge=ye.EMPTY;function be(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function Ee(e){return e instanceof ye||e&&"closed"in e&&he(e.remove)&&he(e.add)&&he(e.unsubscribe)}function ve(e){he(e)?e():e.unsubscribe()}var Ae=void 0,_e=!1,we=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,pe([],le(e)))};function Te(){}function Pe(e){e()}var Me,xe,Se=(ce(Oe,xe=ye),Oe.create=function(e,t,r){return new Le(e,t,r)},Oe.prototype.next=function(e){this.isStopped||this._next(e)},Oe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Oe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Oe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,xe.prototype.unsubscribe.call(this),this.destination=null)},Oe.prototype._next=function(e){this.destination.next(e)},Oe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Oe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Oe),Le=(ce(Ie,Me=Se),Ie);function Ie(e,t,r){var n,o,i=Me.call(this)||this;return he(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&_e?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Ce(o):Te,error:Ce(null!=t?t:Ne),complete:r?Ce(r):Te},i}function Oe(e){var t=xe.call(this)||this;return t.isStopped=!1,e?Ee(t.destination=e)&&e.add(t):t.destination=Re,t}function Ce(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,pe([],le(e)))}catch(e){t=e,we(function(){throw t})}}}function Ne(e){throw e}var Re={closed:!0,next:Te,error:Ne,complete:Te},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fe(e){return e}var De=(ke.prototype.lift=function(e){var t=new ke;return t.source=this,t.operator=e,t},ke.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Se||n&&he(n.next)&&he(n.error)&&he(n.complete)&&Ee(n)?e:new Le(e,t,r);return Pe(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},ke.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},ke.prototype.forEach=function(n,e){var o=this;return new(e=$e(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},ke.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},ke.prototype[Ue]=function(){return this},ke.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Fe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},ke.prototype.toPromise=function(e){var n=this;return new(e=$e(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},ke.create=function(e){return new ke(e)},ke);function ke(e){e&&(this._subscribe=e)}function $e(e){return null!==(e=null!=e?e:Ae)&&void 0!==e?e:Promise}var Ge,je,Be,Ve=fe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=(ce(Ke,Be=De),Ke.prototype.lift=function(e){var t=new ze(this,this);return t.operator=e,t},Ke.prototype._throwIfClosed=function(){if(this.closed)throw new Ve},Ke.prototype.next=function(i){var s=this;Pe(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=ue(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Ke.prototype.error=function(t){var r=this;Pe(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Ke.prototype.complete=function(){var t=this;Pe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Ke.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Ke.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Ke.prototype._trySubscribe=function(e){return this._throwIfClosed(),Be.prototype._trySubscribe.call(this,e)},Ke.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Ke.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ge:(n.push(e),new ye(function(){return me(n,e)}))},Ke.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Ke.prototype.asObservable=function(){var e=new De;return e.source=this,e},Ke.create=function(e,t){return new ze(e,t)},Ke),ze=(ce(qe,je=Xe),qe.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},qe.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},qe.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},qe.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ge},qe),He={now:function(){return(He.delegate||Date).now()},delegate:void 0},We=(ce(Ye,Ge=Xe),Ye.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),Ge.prototype.next.call(this,e)},Ye.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},Ye.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Ye);function Ye(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=He);var n=Ge.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function qe(e,t){var r=je.call(this)||this;return r.destination=e,r.source=t,r}function Ke(){var e=Be.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ze=[],Qe={};const Je=[];function et(n,o=p){let i;const s=[];function a(e){if(r(n,e)&&(n=e,i)){const e=!Je.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),Je.push(t,n)}if(e){for(let e=0;e<Je.length;e+=2)Je[e][0](Je[e+1]);Je.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=p){const r=[e,t];return s.push(r),1===s.length&&(i=o(a)||p),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function tt(e,a,t){const c=!Array.isArray(e),u=c?[e]:e,l=a.length<2;return{subscribe:et(t,t=>{let r=!1;const n=[];let o=0,i=p;const s=()=>{var e;o||(i(),e=a(c?n[0]:n,t),l?t(e):i=m(e)?e:p)},e=u.map((e,t)=>y(e,e=>{n[t]=e,o&=~(1<<t),r&&s()},()=>{o|=1<<t}));return r=!0,s(),function(){d(e),i()}}).subscribe}}var rt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===nt));var t},nt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ot(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ut(Array.isArray(e)?[]:{},e,t):e}function it(e,t,r){return e.concat(t).map(function(e){return ot(e,r)})}function st(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function at(e,t){try{return t in e}catch(e){return!1}}function ct(n,o,i){var s={};return i.isMergeableObject(n)&&st(n).forEach(function(e){s[e]=ot(n[e],i)}),st(o).forEach(function(t){var e,r;(!at(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(at(n,t)&&i.isMergeableObject(o[t])?s[t]=function(){if(!i.customMerge)return ut;var e=i.customMerge(t);return"function"==typeof e?e:ut}()(n[t],o[t],i):s[t]=ot(o[t],i))}),s}function ut(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||it,r.isMergeableObject=r.isMergeableObject||rt,r.cloneUnlessOtherwiseSpecified=ot;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ct(e,t,r):ot(t,r)}ut.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return ut(e,t,r)},{})};var lt=ut,pt=function(e,t){return(pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}pt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ft,dt,mt,yt=function(){return(yt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function gt(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function bt(e){return e.type===dt.literal}function Et(e){return e.type===dt.number}function vt(e){return e.type===dt.date}function At(e){return e.type===dt.time}function _t(e){return e.type===dt.select}function wt(e){return e.type===dt.plural}function Tt(e){return e.type===dt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===mt.number}function Mt(e){return e&&"object"==typeof e&&e.type===mt.dateTime}(Vt=ft=ft||{})[Vt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Vt[Vt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Vt[Vt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Vt[Vt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Vt[Vt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Vt[Vt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Vt[Vt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Vt[Vt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Vt[Vt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Vt[Vt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Vt[Vt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Vt[Vt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Vt[Vt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Vt[Vt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Vt[Vt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Vt[Vt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Vt[Vt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Vt[Vt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Vt[Vt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Vt[Vt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Vt[Vt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Vt[Vt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Vt[Vt.INVALID_TAG=23]="INVALID_TAG",Vt[Vt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Vt[Vt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Vt[Vt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Xt=dt=dt||{})[Xt.literal=0]="literal",Xt[Xt.argument=1]="argument",Xt[Xt.number=2]="number",Xt[Xt.date=3]="date",Xt[Xt.time=4]="time",Xt[Xt.select=5]="select",Xt[Xt.plural=6]="plural",Xt[Xt.pound=7]="pound",Xt[Xt.tag=8]="tag",(zt=mt=mt||{})[zt.number=0]="number",zt[zt.dateTime=1]="dateTime";var xt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,St=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Lt,It=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ct=/^(@+)?(\+|#+)?$/g,Nt=/(\*)(0+)|(#+)(0+)|(0+)/g,Rt=/^(0+)$/;function Ut(e){var n={};return e.replace(Ct,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Ft(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Dt(e){return Ft(e)||{}}function kt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=yt(yt(yt({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return yt(yt({},e),Dt(t))},{}));continue;case"engineering":s=yt(yt(yt({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return yt(yt({},e),Dt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Nt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Rt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ot.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ot,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),o.options.length&&(s=yt(yt({},s),Ut(o.options[0])))}else Ct.test(o.stem)?s=yt(yt({},s),Ut(o.stem)):((n=Ft(o.stem))&&(s=yt(yt({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Rt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=yt(yt({},s),n)))}return s}var $t=new RegExp("^"+xt.source+"*"),Gt=new RegExp(xt.source+"*$");function jt(e,t){return{start:e,end:t}}var Bt=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Xe=!!Object.fromEntries,Vt=!!String.prototype.codePointAt,Xt=!!String.prototype.trimStart,zt=!!String.prototype.trimEnd,Ht=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xt=!0;try{xt="a"===(null===(Lt=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(p){xt=!1}var Wt,Yt,qt=Bt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Kt=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Zt=Xe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},Qt=Vt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Jt=Xt?function(e){return e.trimStart()}:function(e){return e.replace($t,"")},er=zt?function(e){return e.trimEnd()}:function(e){return e.replace(Gt,"")};function tr(e,t){return new RegExp(e,t)}Yt=xt?(Wt=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Wt.lastIndex=t,null!==(e=Wt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=Qt(e,t);if(void 0===o||ir(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return Kt.apply(void 0,n)};var rr=(nr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},nr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,jt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&or(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:dt.pound,location:jt(i,this.clonePosition())})}}}return{val:n,err:null}},nr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:dt.literal,value:"<"+n+"/>",location:jt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!or(this.char()))return this.error(ft.INVALID_TAG,jt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(ft.UNMATCHED_CLOSING_TAG,jt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:dt.tag,value:n,children:e,location:jt(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,jt(t,this.clonePosition())))}return this.error(ft.UNCLOSED_TAG,jt(r,this.clonePosition()))}return this.error(ft.INVALID_TAG,jt(r,this.clonePosition()))},nr.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},nr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=jt(r,this.clonePosition());return{val:{type:dt.literal,value:n,location:r},err:null}},nr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(or(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},nr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Kt.apply(void 0,t)},nr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Kt(r))},nr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,jt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ft.EMPTY_ARGUMENT,jt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ft.MALFORMED_ARGUMENT,jt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,jt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:dt.argument,value:n,location:jt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,jt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ft.MALFORMED_ARGUMENT,jt(r,this.clonePosition()))}},nr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Yt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:jt(e,this.clonePosition())}},nr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,jt(i,a));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=er(h.val)).length)return this.error(ft.EXPECT_ARGUMENT_STYLE,jt(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:jt(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var l=jt(n,this.clonePosition());if(c&&qt(null==c?void 0:c.style,"::",0)){u=Jt(c.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?h:{val:{type:dt.number,value:r,location:l,style:h.val},err:null};if(0===u.length)return this.error(ft.EXPECT_DATE_TIME_SKELETON,l);var p={type:mt.dateTime,pattern:u,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(St,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?dt.date:dt.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===s?dt.number:"date"===s?dt.date:dt.time,value:r,location:l,style:null!==(l=null==c?void 0:c.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,jt(c,yt({},c)));this.bumpSpace();var h,l=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===l.value){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,jt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),l=this.parseIdentifierIfPossible(),c=h.val}l=this.tryParsePluralOrSelectOptions(e,s,t,l);if(l.err)return l;if((f=this.tryParseArgumentClose(n)).err)return f;var f=jt(n,this.clonePosition());return"select"===s?{val:{type:dt.select,value:r,options:Zt(l.val),location:f},err:null}:{val:{type:dt.plural,value:r,options:Zt(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(ft.INVALID_ARGUMENT_TYPE,jt(i,a))}},nr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,jt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},nr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,jt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},nr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(It).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(ft.INVALID_NUMBER_SKELETON,t)}return{val:{type:mt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?kt(r):{}},err:null}},nr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,c=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=jt(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===a&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,jt(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,r);if(l.err)return l;u=this.tryParseArgumentClose(p);if(u.err)return u;i.push([a,{value:l.val,location:jt(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,c=p.location}return 0===i.length?this.error("select"===t?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,jt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ft.MISSING_OTHER_CLAUSE,jt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},nr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=jt(n,this.clonePosition());return o?Ht(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},nr.prototype.offset=function(){return this.position.offset},nr.prototype.isEOF=function(){return this.offset()===this.message.length},nr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},nr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Qt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},nr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},nr.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},nr.prototype.bumpIf=function(e){if(qt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},nr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},nr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},nr.prototype.bumpSpace=function(){for(;!this.isEOF()&&ir(this.char());)this.bump()},nr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},nr);function nr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function or(e){return 97<=e&&e<=122||65<=e&&e<=90}function ir(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function sr(e,t){t=yt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new rr(e,t).parse();if(r.err){e=SyntaxError(ft[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,_t(e)||wt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Et(e)&&Pt(e.style)||(vt(e)||At(e))&&Mt(e.style)?delete e.style.location:Tt(e)&&r(e.children)})}(r.val),r.val}function ar(e,t){var r=t&&t.cache?t.cache:dr,n=t&&t.serializer?t.serializer:pr;return(t&&t.strategy?t.strategy:function(e,t){return lr(e,this,1===e.length?cr:ur,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function cr(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function ur(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function lr(e,t,r,n,o){return r.bind(t,e,n,o)}var pr=function(){return JSON.stringify(arguments)};function hr(){this.cache=Object.create(null)}hr.prototype.has=function(e){return e in this.cache},hr.prototype.get=function(e){return this.cache[e]},hr.prototype.set=function(e,t){this.cache[e]=t};var fr,dr={create:function(){return new hr}},mr={variadic:function(e,t){return lr(e,this,ur,t.cache.create(),t.serializer)},monadic:function(e,t){return lr(e,this,cr,t.cache.create(),t.serializer)}};(xt=fr=fr||{}).MISSING_VALUE="MISSING_VALUE",xt.INVALID_VALUE="INVALID_VALUE",xt.MISSING_INTL_API="MISSING_INTL_API";var yr,gr,br,Er,vr,Ar=(ht(Sr,vr=Error),Sr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Sr),_r=(ht(xr,Er=Ar),xr),wr=(ht(Mr,br=Ar),Mr),Tr=(ht(Pr,gr=Ar),Pr);function Pr(e,t){return gr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',fr.MISSING_VALUE,t)||this}function Mr(e,t,r){return br.call(this,'Value for "'+e+'" must be of type '+t,fr.INVALID_VALUE,r)||this}function xr(e,t,r,n){return Er.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',fr.INVALID_VALUE,n)||this}function Sr(e,t,r){e=vr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Lr(e,t,r,n,o,i,s){if(1===e.length&&bt(e[0]))return[{type:yr.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var l=u[c];if(bt(l))a.push({type:yr.literal,value:l.value});else if(l.type===dt.pound)"number"==typeof i&&a.push({type:yr.literal,value:r.getNumberFormat(t).format(i)});else{var p=l.value;if(!(o&&p in o))throw new Tr(p,s);var h=o[p];if(l.type===dt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?yr.literal:yr.object,value:h});else if(vt(l)){var f="string"==typeof l.style?n.date[l.style]:Mt(l.style)?l.style.parsedOptions:void 0;a.push({type:yr.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(At(l))f="string"==typeof l.style?n.time[l.style]:Mt(l.style)?l.style.parsedOptions:void 0,a.push({type:yr.literal,value:r.getDateTimeFormat(t,f).format(h)});else if(Et(l))(f="string"==typeof l.style?n.number[l.style]:Pt(l.style)?l.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:yr.literal,value:r.getNumberFormat(t,f).format(h)});else{if(Tt(l)){var d=l.children,m=l.value,p=o[m];if("function"!=typeof p)throw new wr(m,"function",s);d=p(Lr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?yr.literal:yr.object,value:e}}))}if(_t(l)){if(!(y=l.options[h]||l.options.other))throw new _r(l.value,h,Object.keys(l.options),s);a.push.apply(a,Lr(y.value,t,r,n,o))}else if(wt(l)){if(!(y=l.options["="+h])){if(!Intl.PluralRules)throw new Ar('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fr.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0)),y=l.options[d]||l.options.other}if(!y)throw new _r(l.value,h,Object.keys(l.options),s);a.push.apply(a,Lr(y.value,t,r,n,o,h-(l.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===yr.literal&&t.type===yr.literal?r.value+=t.value:e.push(t),e},[])}function Ir(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(xt=yr=yr||{})[xt.literal=0]="literal",xt[xt.object=1]="object";var Or=(Object.defineProperty(Cr,"defaultLocale",{get:function(){return Cr.memoizedDefaultLocale||(Cr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cr.memoizedDefaultLocale=null,Cr.__parse=sr,Cr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Cr);function Cr(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=Cr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===yr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Lr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Cr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Cr.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?yt(yt(yt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=yt(yt({},r[t]),n[t]||{}),e},{})):r),e},yt({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ar(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,gt([void 0],t)))},{cache:Ir((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:mr.variadic}),getDateTimeFormat:ar(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,gt([void 0],t)))},{cache:Ir(n.dateTime),strategy:mr.variadic}),getPluralRules:ar(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,gt([void 0],t)))},{cache:Ir(n.pluralRules),strategy:mr.variadic})}}const Nr={},Rr=(t,r)=>{if(null!=r){if(r in Nr&&t in Nr[r])return Nr[r][t];var n,o,i=Kr(r);for(let e=0;e<i.length;e++){var s=(n=i[e],o=t,Dr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),o):null);if(s)return n=t,o=r,(s=s)&&(o in Nr||(Nr[o]={}),n in Nr[o]||(Nr[o][n]=s),s)}}};let Ur;const Fr=et({});function Dr(e){return e in Ur}function kr(t,...r){delete Nr[t],Fr.update(e=>(e[t]=lt.all([e[t]||{},...r]),e))}tt([Fr],([e])=>Object.keys(e)),Fr.subscribe(e=>Ur=e);const $r={};function Gr(e){return $r[e]}function jr(e){return Kr(e).some(e=>{return null===(e=Gr(e))||void 0===e?void 0:e.size})}const Br={};function Vr(e){if(!jr(e))return e in Br?Br[e]:void 0;const t=Kr(e).map(e=>{var t=Gr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Br[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){$r[e].delete(t),0===$r[e].size&&delete $r[e]}(t,e),e().then(e=>e.default||e)))).then(e=>kr(t,...e))}(e))).then(()=>jr(e)?Vr(e):void delete Br[e]),Br[e]}function Xr(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const zr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Hr=et(!1);let Wr;const Yr=et(null);function qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=zr.fallbackLocale){e=qr(e);return t?[...new Set([...e,...qr(t)])]:e}Yr.subscribe(e=>{Wr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Zr=Yr.set;Yr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Dr(r))return r}}}(t)&&jr(t)){var{loadingDelay:r}=zr;let e;return"undefined"!=typeof window&&null!=Wr&&r?e=window.setTimeout(()=>Hr.set(!0),r):Hr.set(!0),Vr(t).then(()=>{Zr(t)}).finally(()=>{clearTimeout(e),Hr.set(!1)})}return Zr(t)},Yr.update=e=>Zr(e(Wr));const Qr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Jr=(e,t)=>{var{formats:r}=zr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},en=Qr(e=>{var{locale:t,format:r}=e,e=Xr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Jr("number",r)),new Intl.NumberFormat(t,e)}),tn=Qr(e=>{var{locale:t,format:r}=e,e=Xr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Jr("date",r):0===Object.keys(e).length&&(e=Jr("date","short")),new Intl.DateTimeFormat(t,e)}),rn=Qr(e=>{var{locale:t,format:r}=e,e=Xr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Jr("time",r):0===Object.keys(e).length&&(e=Jr("time","short")),new Intl.DateTimeFormat(t,e)}),nn=Qr((e,t=Wr)=>new Or(e,t,zr.formats,{ignoreTag:zr.ignoreTag})),on=tt([Yr,Fr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Wr,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Rr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else zr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${jr(Wr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let s=i;try{s=nn(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});tt([Yr],()=>(e,t)=>((e={})=>{var{locale:t=Wr}=e,e=Xr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),tt([Yr],()=>(e,t)=>((e={})=>{var{locale:t=Wr}=e,e=Xr(e,["locale"]);return tn(Object.assign({locale:t},e))})(t).format(e)),tt([Yr],()=>(e,t)=>((e={})=>{var{locale:t=Wr}=e,e=Xr(e,["locale"]);return en(Object.assign({locale:t},e))})(t).format(e)),tt([Yr,Fr],()=>(e,t=Wr)=>Rr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ze.indexOf(e)&&(t=new We(t),Qe[e]=t,Ze.push(e)),Qe[e]}};const sn=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",an='<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 1280.000000 1216.000000"\npreserveAspectRatio="xMidYMid meet">\n<g transform="translate(0.000000,1216.000000) scale(0.100000,-0.100000)" fill="#fff" stroke="none">\n<path d="M6177 12145 c-48 -8 -350 -84 -670 -170 l-582 -155 -610 0 c-679 0-725 -3 -920 -65 -264 -82 -511 -256 -677 -475 l-49 -65 -287 -76 c-1001 -267\n-1397 -375 -1472 -401 -388 -136 -713 -468 -839 -856 -51 -158 -66 -258 -65-437 1 -112 6 -196 17 -245 8 -41 77 -304 152 -585 267 -998 355 -1327 505\n-1885 83 -311 200 -747 260 -970 60 -223 168 -625 240 -895 72 -269 180 -672 240 -895 60 -223 177 -659 260 -970 83 -311 209 -781 280 -1045 71 -264 160\n-597 199 -740 38 -143 81 -291 95 -329 119 -316 375 -594 681 -742 124 -59 230 -95 355 -121 107 -22 373 -24 475 -4 65 12 684 176 2078 549 l557 150 143\n-38 c78 -22 464 -125 857 -230 393 -105 899 -241 1125 -301 526 -142 533 -143 735 -143 241 0 387 33 605 138 254 122 478 338 608 585 86 163 30 -33 607\n2121 60 223 177 659 260 970 83 311 200 747 260 970 318 1187 597 2228 755 2815 303 1132 415 1555 427 1620 7 39 13 142 13 230 0 221 -36 383 -130 581\n-152 324 -439 583 -775 702 -72 25 -568 160 -1546 421 l-211 56 -61 76 c-183 231 -403 383 -679 469 -183 56 -237 60 -909 60 l-610 0 -545 146 c-299 80\n-584 155 -634 165 -122 27 -396 34 -518 14z m-1127 -1167 c0 -10 -70 -274 -314 -1183 -124 -463 -364 -1358 -517 -1930 -233 -869 -374 -1393 -498 -1857\n-71 -266 -173 -645 -226 -843 -53 -198 -98 -364 -100 -370 -2 -5 -3 1122 -2 2505 l2 2515 22 90 c63 265 185 487 368 670 231 232 511 367 835 404 120 13\n430 13 430 -1z m2140 -127 c47 -10 202 -51 345 -90 224 -60 1099 -295 2790 -747 475 -128 514 -140 632 -194 398 -185 684 -558 769 -1005 23 -122 23 -350\n0 -469 -9 -49 -49 -206 -87 -350 -124 -463 -367 -1368 -499 -1861 -71 -264 -197 -734 -280 -1045 -83 -311 -200 -747 -260 -970 -497 -1855 -508 -1897\n-537 -1970 -126 -317 -382 -592 -686 -735 -182 -86 -331 -123 -528 -132 -239 -10 -190 -21 -1424 310 -776 208 -1457 391 -2045 548 -493 132 -625 176 -750\n249 -407 238 -665 661 -686 1125 -11 228 -11 229 250 1200 76 281 205 762 287 1070 83 308 200 745 260 970 61 226 168 626 239 890 71 264 197 734 280 1045\n83 311 191 714 240 895 48 182 99 359 113 395 35 94 102 223 160 310 63 95 259 290 357 355 159 105 354 185 540 219 119 22 402 15 520 -13z m-4750 -3698\nc0 -1697 -3 -3084 -6 -3081 -3 3 -32 106 -65 229 -133 496 -367 1367 -469 1749 -221 825 -375 1398 -507 1890 -200 743 -185 672 -187 900 -1 156 3 212\n18 279 112 511 459 894 946 1044 119 37 249 75 263 76 4 1 7 -1388 7 -3086z"/>\n<path d="M8960 9889 c-40 -111 -149 -350 -236 -518 -430 -831 -1050 -1573 -1649 -1976 -303 -203 -564 -310 -862 -350 -250 -35 -420 -122 -600 -308 -179\n-185 -305 -425 -369 -702 -27 -113 -27 -404 0 -525 117 -536 530 -939 1063 -1036 115 -20 339 -20 458 1 176 31 368 111 522 217 43 29 124 98 179 154\nl101 100 -55 -105 c-300 -573 -638 -1052 -1021 -1443 -63 -65 -113 -120 -110 -122 2 -2 347 -96 767 -208 536 -144 762 -200 762 -191 0 7 -11 55 -25 106\n-76 289 -135 658 -166 1047 -12 164 -13 753 0 845 5 33 9 47 10 30 2 -56 50 -223 90 -314 182 -424 547 -711 1000 -786 123 -21 364 -16 476 8 461 103 835\n434 979 867 115 346 99 745 -42 1025 -72 144 -133 214 -302 351 -216 172 -367 359 -514 636 -201 378 -351 874 -431 1431 -46 319 -59 516 -59 892 -1 355 8\n505 45 784 10 80 17 146 15 148 -2 2 -13 -24 -26 -58z"/>\n</g>\n</svg>',cn={en:{myAccount:{title:"My Account"}},ro:{myAccount:{title:"Contul meu"}}},un={en:{logout:{logoutButton:"Logout"}},tr:{logout:{logoutButton:"Çıkış Yap"}},ro:{logout:{logoutButton:"Iesire"}}};function ln(r){let n,o,i,s,a,c,u=r[1]("logout.logoutButton")+"";return{c(){n=w("div"),o=w("button"),i=w("span"),s=T(u),M(n,"class","GeneralLogout")},m(e,t){v(e,n,t),E(n,o),E(o,i),E(i,s),a||(c=g(o,"click",r[9]),a=!0)},p(e,t){2&t&&u!==(u=e[1]("logout.logoutButton")+"")&&S(s,u)},d(e){e&&_(n),a=!1,c()}}}function pn(i){let r,n,o,s,a,c,u,l,p,h,f,d=!i[2]&&function(){let r,n,o=i[1]("logout.logoutButton")+"";return{c(){r=w("span"),n=T(o),M(r,"class","PlayerLogoutText")},m(e,t){v(e,r,t),E(r,n)},p(e,t){2&t&&o!==(o=e[1]("logout.logoutButton")+"")&&S(n,o)},d(e){e&&_(r)}}}();return{c(){r=w("p"),n=w("span"),o=e("svg"),s=e("defs"),a=e("style"),c=T(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e("path"),l=e("path"),p=P(),d&&d.c(),M(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(u,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),M(l,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(l,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),M(o,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),M(o,"data-name","Layer 1"),M(o,"xmlns","http://www.w3.org/2000/svg"),M(o,"viewBox","0 0 150 150"),b(n,"width",i[2]?i[3].matches?"50px":"24px":"20px"),M(r,"class","PlayerAccountMenuItemBox "+(i[2]?"PlayerAccountMenuItemBoxMobile":"")+" "+(i[3].matches&&i[2]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){v(e,r,t),E(r,n),E(n,o),E(o,s),E(s,a),E(a,c),E(o,u),E(o,l),E(r,p),d&&d.m(r,null),h||(f=g(r,"click",i[8]),h=!0)},p(e,t){e[2]||d.p(e,t)},d(e){e&&_(r),d&&d.d(),h=!1,f()}}}function hn(e){let r;function n(e){return"PlayerAccountMenu"===e[0]?pn:ln}let o=n(e),i=o(e);return{c(){i.c(),r=t(),this.c=p},m(e,t){i.m(e,t),v(e,r,t)},p(e,[t]){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},i:p,o:p,d(e){i.d(e),e&&_(r)}}}function fn(t,e,r){let n;A(t,on,e=>r(1,n=e));let{endpoint:o=""}=e,{session:i=""}=e,{buttonlocation:s=""}=e,{lang:a=""}=e,c=!1,u=window.navigator.userAgent,l="PC"!==sn(u);e=window.matchMedia("(min-width: 768px)");Object.keys(un).forEach(e=>{kr(e,un[e])});const p=()=>{let e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",i),fetch(`${o}/player/session/player`,{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"})})};return t.$$set=e=>{"endpoint"in e&&r(5,o=e.endpoint),"session"in e&&r(6,i=e.session),"buttonlocation"in e&&r(0,s=e.buttonlocation),"lang"in e&&r(7,a=e.lang)},t.$$.update=()=>{var e;97&t.$$.dirty&&o&&i&&s&&(o||(error="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",c=!0,console.error(error)),i||(error="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",c=!0,console.error(error))),128&t.$$.dirty&&a&&(e=a,Yr.set(e))},[s,n,l,e,p,o,i,a,()=>p(),()=>p()]}function dn(e,t,r){const n=e.slice();return n[24]=t[r],n}function mn(t){let r,n,o,i,s,a,c,u,l,p,h,f,d=t[8]&&function(){let r,n,o=t[7]("myAccount.title")+"";return{c(){r=w("h3"),n=T(o),M(r,"class","PlayerAccountMenuCategoryTitle")},m(e,t){v(e,r,t),E(r,n)},p(e,t){128&t&&o!==(o=e[7]("myAccount.title")+"")&&S(n,o)},d(e){e&&_(r)}}}(),m=t[8]&&function(e){let r,n;return{c(){r=w("div"),n=w("general-logout"),x(n,"endpoint",e[1]),x(n,"session",e[0]),x(n,"buttonlocation","PlayerAccountMenu"),M(r,"class","PlayerAccountLogOutArea")},m(e,t){v(e,r,t),E(r,n)},p(e,t){2&t&&x(n,"endpoint",e[1]),1&t&&x(n,"session",e[0])},d(e){e&&_(r)}}}(t),y=t[2],g=[];for(let e=0;e<y.length;e+=1)g[e]=bn(dn(t,y,e));let b=!t[8]&&function(e){let r,n;return{c(){r=w("div"),n=w("general-logout"),x(n,"endpoint",e[1]),x(n,"session",e[0]),x(n,"buttonlocation","PlayerAccountMenu"),M(r,"class","PlayerAccountLogOutArea")},m(e,t){v(e,r,t),E(r,n)},p(e,t){2&t&&x(n,"endpoint",e[1]),1&t&&x(n,"session",e[0])},d(e){e&&_(r)}}}(t);return{c(){r=w("div"),n=w("div"),d&&d.c(),o=P(),i=w("p"),s=T(t[5]),a=P(),c=w("p"),u=T(t[6]),l=P(),m&&m.c(),p=P(),h=w("div");for(let e=0;e<g.length;e+=1)g[e].c();f=P(),b&&b.c(),M(i,"class","PlayerAccountMenuUser"),M(c,"class","PlayerAccountMenuEmail"),M(n,"class","PlayerAccountMenuHeader"),M(h,"class","PlayerAccountMenuList"),M(r,"class","PlayerAccountMenuContainer "+(t[8]?"PlayerAccountMobileContainer":"")+" "+(t[9].matches&&t[8]?"PlayerAccountTabletContainer":""))},m(e,t){v(e,r,t),E(r,n),d&&d.m(n,null),E(n,o),E(n,i),E(i,s),E(n,a),E(n,c),E(c,u),E(n,l),m&&m.m(n,null),E(r,p),E(r,h);for(let e=0;e<g.length;e+=1)g[e].m(h,null);E(r,f),b&&b.m(r,null)},p(t,r){if(t[8]&&d.p(t,r),32&r&&S(s,t[5]),64&r&&S(u,t[6]),t[8]&&m.p(t,r),1820&r){let e;for(y=t[2],e=0;e<y.length;e+=1){var n=dn(t,y,e);g[e]?g[e].p(n,r):(g[e]=bn(n),g[e].c(),g[e].m(h,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=y.length}t[8]||b.p(t,r)},d(e){e&&_(r),d&&d.d(),m&&m.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(g,e),b&&b.d()}}}function yn(e){let r,n;return{c(){r=w("img"),M(r,"class","PlayerAccountMenuItemIcon "+(e[8]?"PlayerAccountMenuItemIconMobile":"")),r.src!==(n=e[24].img)&&M(r,"src",n)},m(e,t){v(e,r,t)},p(e,t){4&t&&r.src!==(n=e[24].img)&&M(r,"src",n)},d(e){e&&_(r)}}}function gn(e){let r,n=e[24].img+"";return{c(){r=w("span"),b(r,"width",e[8]?e[9].matches?"80px":"30px":"20px"),b(r,"height",e[8]?e[9].matches?"80px":"40px":"20px")},m(e,t){v(e,r,t),r.innerHTML=n},p(e,t){4&t&&n!==(n=e[24].img+"")&&(r.innerHTML=n)},d(e){e&&_(r)}}}function bn(r){let n,o,i,s,a,c,u,l,p,h=r[24].label+"";function f(e){return e[4]?gn:yn}let d=f(r),m=d(r);function y(){return r[14](r[24])}return{c(){n=w("div"),o=w("p"),m.c(),i=P(),s=w("span"),a=T(h),c=P(),M(s,"class","PlayerAccountMenuItemTitle"),M(o,"class","PlayerAccountMenuItemWrapper"),M(n,"class",u="PlayerAccountMenuItemBox "+(r[3]!==r[24].id||r[8]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){v(e,n,t),E(n,o),m.m(o,null),E(o,i),E(o,s),E(s,a),E(n,c),l||(p=g(n,"click",y),l=!0)},p(e,t){d===(d=f(r=e))&&m?m.p(r,t):(m.d(1),m=d(r),m&&(m.c(),m.m(o,i))),4&t&&h!==(h=r[24].label+"")&&S(a,h),12&t&&u!==(u="PlayerAccountMenuItemBox "+(r[3]!==r[24].id||r[8]?"":"PlayerAccountMenuActiveItemBox"))&&M(n,"class",u)},d(e){e&&_(n),m.d(),l=!1,p()}}}function En(e){let r,n=mn(e);return{c(){n.c(),r=t(),this.c=p},m(e,t){n.m(e,t),v(e,r,t)},p(e,[t]){n.p(e,t)},i:p,o:p,d(e){n.d(e),e&&_(r)}}}function vn(t,e,r){let n;A(t,on,e=>r(7,n=e));let{endpoint:o=""}=e,{session:i=""}=e,{playerid:s=""}=e,{lang:a="en"}=e,{selecteditem:c=""}=e,u=[],l=0,p=window.navigator.userAgent,h="PC"!==sn(p),f=[],d=!0,m="",y="";var g=window.matchMedia("(min-width: 768px)");Object.keys(cn).forEach(e=>{kr(e,cn[e])}),e=()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)}),function(){if(!L)throw new Error("Function called outside component initialization");return L}().$$.on_mount.push(e);const b=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":r(2,u=e.data.accountMenuInfo),r(3,l=u[0].id),E();break;case"UserSessionID":r(0,i=e.data.session)}},E=()=>{u.length?r(4,d=!1):(r(2,u=f),r(4,d=!0))},v=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),r(3,l=e.id)};return t.$$set=e=>{"endpoint"in e&&r(1,o=e.endpoint),"session"in e&&r(0,i=e.session),"playerid"in e&&r(11,s=e.playerid),"lang"in e&&r(12,a=e.lang),"selecteditem"in e&&r(13,c=e.selecteditem)},t.$$.update=()=>{var e;6147&t.$$.dirty&&o&&i&&s&&a&&(e=a,Yr.set(e),f=[{id:0,title:"Profile Info",menu_item_icon:an},{id:1,title:"Account Security",menu_item_icon:an},{id:2,title:"Deposit",menu_item_icon:an},{id:3,title:"Withdrawal",menu_item_icon:an},{id:4,title:"Active Bonuses",menu_item_icon:an},{id:5,title:"Self-Exclusion",menu_item_icon:an},{id:6,title:"Account Closure",menu_item_icon:an}],fetch(`${o}/player/${s}/profile`,{method:"GET",headers:{playerId:s,"X-SessionID":i}}).then(e=>e.json()).then(e=>{r(5,m=e.username),r(6,y=e.email)},e=>{console.error(e)})),8192&t.$$.dirty&&c&&r(3,l=c)},[i,o,u,l,d,m,y,n,h,g,v,s,a,c,e=>v(e)]}customElements.get("general-logout")||customElements.define("general-logout",class extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-color-white, #FFFFFF)}</style>",u(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},fn,hn,r,{endpoint:5,session:6,buttonlocation:0,lang:7}),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["endpoint","session","buttonlocation","lang"]}get endpoint(){return this.$$.ctx[5]}set endpoint(e){this.$set({endpoint:e}),U()}get session(){return this.$$.ctx[6]}set session(e){this.$set({session:e}),U()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$set({buttonlocation:e}),U()}get lang(){return this.$$.ctx[7]}set lang(e){this.$set({lang:e}),U()}});class An extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerAccountMenuContainer{color:var(--emfe-w-color-white, #FFFFFF);position:relative;height:100vh;display:flex;flex-direction:column}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-color-white, #FFFFFF);flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{flex-grow:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMobileContainer{height:unset;color:var(--emfe-w-color-contrast, #07072A)}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin-top:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emfe-w-color-contrast, #07072A);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-color-primary, #D0046C);border-bottom:1px solid var(--emfe-w-color-primary, #D0046C)}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}</style>",u(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},vn,En,r,{endpoint:1,session:0,playerid:11,lang:12,selecteditem:13}),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["endpoint","session","playerid","lang","selecteditem"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$set({endpoint:e}),U()}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),U()}get playerid(){return this.$$.ctx[11]}set playerid(e){this.$set({playerid:e}),U()}get lang(){return this.$$.ctx[12]}set lang(e){this.$set({lang:e}),U()}get selecteditem(){return this.$$.ctx[13]}set selecteditem(e){this.$set({selecteditem:e}),U()}}return customElements.get("player-account-menu")||customElements.define("player-account-menu",An),An});
|
|
2
2
|
//# sourceMappingURL=player-account-menu.js.map
|