@everymatrix/player-profile-info 0.0.201 → 0.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function f(){}function p(e){return e()}function h(){return Object.create(null)}function ar(e){e.forEach(p)}function d(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Q(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function sr(e,t){e.appendChild(t)}function lr(e,t,r){e.insertBefore(t,r||null)}function ur(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function cr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function fr(e){return document.createTextNode(e)}function pr(){return fr(" ")}function a(){return fr("")}function hr(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function dr(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function yr(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function mr(e,t){e.value=null==t?"":t}function br(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}let Y;function y(e){Y=e}const m=[],q=[],n=[],e=[],b=Promise.resolve();let g=!1;function gr(e){n.push(e)}let o=!1;const i=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),ar(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(gr))}}(t.$$)}for(y(null),m.length=0;q.length;)q.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];i.has(r)||(i.add(r),r())}}while(n.length=0,m.length);for(;e.length;)e.pop()();g=!1,o=!1,i.clear()}}const E=new Set;function s(n,e,t,r,o,i,a=[-1]){var s,l=Y;y(n);const u=n.$$={fragment:null,ctx:null,props:i,update:f,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,skip_bound:!1};let c=!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),c&&(r=e,-1===(e=n).$$.dirty[0]&&(m.push(e),g||(g=!0,b.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,ar(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const f=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(f),f.forEach(ur)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(E.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:a,after_update:s}=t.$$;o&&o.m(e,r),n||gr(()=>{var e=i.map(p).filter(d);a?a.push(...e):ar(e),t.$$.on_mount=[]}),s.forEach(gr)}(n,e.target,e.anchor,e.customElement),v()}y(l)}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(p).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){ar(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(ar(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$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 u,c,P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,_="URLSearchParams"in P,w="Symbol"in P&&"iterator"in Symbol,T="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(e){return!1}}(),A="FormData"in P,x="ArrayBuffer"in P;function S(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 I(e){return e="string"!=typeof e?String(e):e}function C(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return w&&(e[Symbol.iterator]=function(){return e}),e}function N(t){this.map={},t instanceof N?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 O(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function L(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function D(e){var t=new FileReader,r=L(t);return t.readAsArrayBuffer(e),r}function M(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:T&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:A&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():x&&T&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=M(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=M(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):_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(this.blob=function(){var e=O(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?O(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(D)}),this.text=function(){var e,t,r=O(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=L(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)},A&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}x&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&-1<u.indexOf(Object.prototype.toString.call(e))}),N.prototype.append=function(e,t){e=S(e),t=I(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},N.prototype.delete=function(e){delete this.map[S(e)]},N.prototype.get=function(e){return e=S(e),this.has(e)?this.map[e]:null},N.prototype.has=function(e){return this.map.hasOwnProperty(S(e))},N.prototype.set=function(e,t){this.map[S(e)]=I(t)},N.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},N.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),C(r)},N.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C(t)},N.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),C(r)},w&&(N.prototype[Symbol.iterator]=N.prototype.entries);var U=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(e,t){if(!(this instanceof B))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 B){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new N(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 N(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<U.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 k(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 F(e,t){if(!(this instanceof F))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 N(t.headers),this.url=t.url||"",this._initBody(e)}B.prototype.clone=function(){return new B(this,{body:this._bodyInit})},R.call(B.prototype),R.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},F.error=function(){var e=new F(null,{status:0,statusText:""});return e.type="error",e};var G=[301,302,303,307,308];F.redirect=function(e,t){if(-1===G.indexOf(t))throw new RangeError("Invalid status code");return new F(null,{status:t,headers:{location:e}})};var j=P.DOMException;try{new j}catch(f){(j=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function $(n,a){return new Promise(function(o,e){var t=new B(n,a);if(t.signal&&t.signal.aborted)return e(new j("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 N,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 F(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 j("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&P.location.href?P.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&&(T?i.responseType="blob":x&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof N?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){i.setRequestHeader(e,I(a.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)})}$.polyfill=!0,P.fetch||(P.fetch=$,P.Headers=N,P.Request=B,P.Response=F),self.fetch.bind(self);var z=function(e,t){return(z=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 W(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}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function V(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 X(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.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 a}function H(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function K(e){return"function"==typeof e}function Z(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 J=Z(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 ee(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var te=(ne.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 a=V(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(K(i))try{i()}catch(e){o=e instanceof J?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=V(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{ie(c)}catch(e){o=null!=o?o:[],e instanceof J?o=H(H([],X(o)),X(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new J(o)}},ne.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ie(e);else{if(e instanceof ne){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},ne.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},ne.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},ne.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ee(t,e)},ne.prototype.remove=function(e){var t=this._teardowns;t&&ee(t,e),e instanceof ne&&e._removeParent(this)},ne.EMPTY=((St=new ne).closed=!0,St),ne),re=te.EMPTY;function ne(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function oe(e){return e instanceof te||e&&"closed"in e&&K(e.remove)&&K(e.add)&&K(e.unsubscribe)}function ie(e){K(e)?e():e.unsubscribe()}var ae=void 0,se=!1,le=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,H([],X(e)))};function ue(){}function ce(e){e()}var fe,pe,he=(W(me,pe=te),me.create=function(e,t,r){return new de(e,t,r)},me.prototype.next=function(e){this.isStopped||this._next(e)},me.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},me.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},me.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,pe.prototype.unsubscribe.call(this),this.destination=null)},me.prototype._next=function(e){this.destination.next(e)},me.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},me.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},me),de=(W(ye,fe=he),ye);function ye(e,t,r){var n,o,i=fe.call(this)||this;return K(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&se?(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?be(o):ue,error:be(null!=t?t:ge),complete:r?be(r):ue},i}function me(e){var t=pe.call(this)||this;return t.isStopped=!1,e?oe(t.destination=e)&&e.add(t):t.destination=ve,t}function be(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,H([],X(e)))}catch(e){t=e,le(function(){throw t})}}}function ge(e){throw e}var ve={closed:!0,next:ue,error:ge,complete:ue},Ee="function"==typeof Symbol&&Symbol.observable||"@@observable";function Pe(e){return e}var _e=(we.prototype.lift=function(e){var t=new we;return t.source=this,t.operator=e,t},we.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof he||n&&K(n.next)&&K(n.error)&&K(n.complete)&&oe(n)?e:new de(e,t,r);return ce(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},we.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},we.prototype.forEach=function(n,e){var o=this;return new(e=Te(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},we.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},we.prototype[Ee]=function(){return this},we.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Pe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},we.prototype.toPromise=function(e){var n=this;return new(e=Te(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},we.create=function(e){return new we(e)},we);function we(e){e&&(this._subscribe=e)}function Te(e){return null!==(e=null!=e?e:ae)&&void 0!==e?e:Promise}var Ae,xe,Se,Ie=Z(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ce=(W(Re,Se=_e),Re.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},Re.prototype._throwIfClosed=function(){if(this.closed)throw new Ie},Re.prototype.next=function(i){var a=this;ce(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=V(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}}}})},Re.prototype.error=function(t){var r=this;ce(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)}})},Re.prototype.complete=function(){var t=this;ce(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Re.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Re.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Re.prototype._trySubscribe=function(e){return this._throwIfClosed(),Se.prototype._trySubscribe.call(this,e)},Re.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Re.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?re:(n.push(e),new te(function(){return ee(n,e)}))},Re.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Re.prototype.asObservable=function(){var e=new _e;return e.source=this,e},Re.create=function(e,t){return new Ne(e,t)},Re),Ne=(W(Me,xe=Ce),Me.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)},Me.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)},Me.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)},Me.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:re},Me),Oe={now:function(){return(Oe.delegate||Date).now()},delegate:void 0},Le=(W(De,Ae=Ce),De.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(),Ae.prototype.next.call(this,e)},De.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},De.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(),a=0,s=1;s<r.length&&r[s]<=i;s+=2)a=s;a&&r.splice(0,a+1)}},De);function De(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Oe);var n=Ae.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 Me(e,t){var r=xe.call(this)||this;return r.destination=e,r.source=t,r}function Re(){var e=Se.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ue=[],Be={};const ke=[];function Fe(n,o=f){let i;const a=[];function s(e){if(r(n,e)&&(n=e,i)){const e=!ke.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),ke.push(t,n)}if(e){for(let e=0;e<ke.length;e+=2)ke[e][0](ke[e+1]);ke.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=f){const r=[e,t];return a.push(r),1===a.length&&(i=o(s)||f),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(i(),i=null)}}}}function Ge(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Fe(t,t=>{let r=!1;const n=[];let o=0,i=f;const a=()=>{var e;o||(i(),e=s(l?n[0]:n,t),c?t(e):i=d(e)?e:f)},e=u.map((e,t)=>Q(e,e=>{n[t]=e,o&=~(1<<t),r&&a()},()=>{o|=1<<t}));return r=!0,a(),function(){ar(e),i()}}).subscribe}}var je=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===$e));var t},$e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Qe(Array.isArray(e)?[]:{},e,t):e}function We(e,t,r){return e.concat(t).map(function(e){return ze(e,r)})}function Ve(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Xe(e,t){try{return t in e}catch(e){return!1}}function He(n,o,i){var a={};return i.isMergeableObject(n)&&Ve(n).forEach(function(e){a[e]=ze(n[e],i)}),Ve(o).forEach(function(t){var e,r;(!Xe(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Xe(n,t)&&i.isMergeableObject(o[t])?a[t]=function(){if(!i.customMerge)return Qe;var e=i.customMerge(t);return"function"==typeof e?e:Qe}()(n[t],o[t],i):a[t]=ze(o[t],i))}),a}function Qe(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||We,r.isMergeableObject=r.isMergeableObject||je,r.cloneUnlessOtherwiseSpecified=ze;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):He(e,t,r):ze(t,r)}Qe.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return Qe(e,t,r)},{})};var Ye=Qe,qe=function(e,t){return(qe=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 Ke(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}qe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ze,Je,et,tt=function(){return(tt=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 rt(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function nt(e){return e.type===Je.literal}function ot(e){return e.type===Je.number}function it(e){return e.type===Je.date}function at(e){return e.type===Je.time}function st(e){return e.type===Je.select}function lt(e){return e.type===Je.plural}function ut(e){return e.type===Je.tag}function ct(e){return e&&"object"==typeof e&&e.type===et.number}function ft(e){return e&&"object"==typeof e&&e.type===et.dateTime}(It=Ze=Ze||{})[It.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",It[It.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",It[It.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",It[It.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",It[It.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",It[It.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",It[It.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",It[It.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",It[It.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",It[It.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",It[It.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",It[It.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",It[It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",It[It.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",It[It.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",It[It.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",It[It.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",It[It.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",It[It.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",It[It.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",It[It.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",It[It.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",It[It.INVALID_TAG=23]="INVALID_TAG",It[It.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",It[It.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",It[It.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ct=Je=Je||{})[Ct.literal=0]="literal",Ct[Ct.argument=1]="argument",Ct[Ct.number=2]="number",Ct[Ct.date=3]="date",Ct[Ct.time=4]="time",Ct[Ct.select=5]="select",Ct[Ct.plural=6]="plural",Ct[Ct.pound=7]="pound",Ct[Ct.tag=8]="tag",(Nt=et=et||{})[Nt.number=0]="number",Nt[Nt.dateTime=1]="dateTime";var pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ht=/(?:[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 dt,yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?$/g,gt=/(\*)(0+)|(#+)(0+)|(0+)/g,vt=/^(0+)$/;function Et(e){var n={};return e.replace(bt,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 Pt(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 _t(e){return Pt(e)||{}}function wt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=tt(tt(tt({},a),{notation:"scientific"}),o.options.reduce(function(e,t){return tt(tt({},e),_t(t))},{}));continue;case"engineering":a=tt(tt(tt({},a),{notation:"engineering"}),o.options.reduce(function(e,t){return tt(tt({},e),_t(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.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(gt,function(e,t,r,n,o,i){if(t)a.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(vt.test(o.stem))a.minimumIntegerDigits=o.stem.length;else if(mt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(mt,function(e,t,r,n,o,i){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:o&&i?(a.minimumFractionDigits=o.length,a.maximumFractionDigits=o.length+i.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),o.options.length&&(a=tt(tt({},a),Et(o.options[0])))}else bt.test(o.stem)?a=tt(tt({},a),Et(o.stem)):((n=Pt(o.stem))&&(a=tt(tt({},a),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)),!vt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(a=tt(tt({},a),n)))}return a}var Tt=new RegExp("^"+pt.source+"*"),At=new RegExp(pt.source+"*$");function xt(e,t){return{start:e,end:t}}var St=!!String.prototype.startsWith,Ee=!!String.fromCodePoint,Ce=!!Object.fromEntries,It=!!String.prototype.codePointAt,Ct=!!String.prototype.trimStart,Nt=!!String.prototype.trimEnd,Ot=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pt=!0;try{pt="a"===(null===(dt=Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===dt?void 0:dt[0])}catch(f){pt=!1}var Lt,Dt,Mt=St?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Rt=Ee?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},Ut=Ce?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},Bt=It?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}},kt=Ct?function(e){return e.trimStart()}:function(e){return e.replace(Tt,"")},Ft=Nt?function(e){return e.trimEnd()}:function(e){return e.replace(At,"")};function Gt(e,t){return new RegExp(e,t)}Dt=pt?(Lt=Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Lt.lastIndex=t,null!==(e=Lt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=Bt(e,t);if(void 0===o||Wt(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 Rt.apply(void 0,n)};var jt=($t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},$t.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(Ze.UNMATCHED_CLOSING_TAG,xt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&zt(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:Je.pound,location:xt(i,this.clonePosition())})}}}return{val:n,err:null}},$t.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Je.literal,value:"<"+n+"/>",location:xt(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()||!zt(this.char()))return this.error(Ze.INVALID_TAG,xt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(Ze.UNMATCHED_CLOSING_TAG,xt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Je.tag,value:n,children:e,location:xt(r,this.clonePosition())},err:null}:this.error(Ze.INVALID_TAG,xt(t,this.clonePosition())))}return this.error(Ze.UNCLOSED_TAG,xt(r,this.clonePosition()))}return this.error(Ze.INVALID_TAG,xt(r,this.clonePosition()))},$t.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())},$t.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=xt(r,this.clonePosition());return{val:{type:Je.literal,value:n,location:r},err:null}},$t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(zt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},$t.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 Rt.apply(void 0,t)},$t.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(),Rt(r))},$t.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ze.EMPTY_ARGUMENT,xt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ze.MALFORMED_ARGUMENT,xt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Je.argument,value:n,location:xt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Ze.MALFORMED_ARGUMENT,xt(r,this.clonePosition()))}},$t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Dt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:xt(e,this.clonePosition())}},$t.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Ze.EXPECT_ARGUMENT_TYPE,xt(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=Ft(p.val)).length)return this.error(Ze.EXPECT_ARGUMENT_STYLE,xt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:xt(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=xt(n,this.clonePosition());if(l&&Mt(null==l?void 0:l.style,"::",0)){u=kt(l.style.slice(2));if("number"===a)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:Je.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(Ze.EXPECT_DATE_TIME_SKELETON,c);var f={type:et.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(ht,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"===a?Je.date:Je.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?Je.number:"date"===a?Je.date:Je.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ze.EXPECT_SELECT_ARGUMENT_OPTIONS,xt(l,tt({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ze.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=xt(n,this.clonePosition());return"select"===a?{val:{type:Je.select,value:r,options:Ut(c.val),location:h},err:null}:{val:{type:Je.plural,value:r,options:Ut(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Ze.INVALID_ARGUMENT_TYPE,xt(i,s))}},$t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},$t.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(Ze.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xt(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}},$t.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(yt).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),a=0,s=o;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(Ze.INVALID_NUMBER_SKELETON,t)}return{val:{type:et.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?wt(r):{}},err:null}},$t.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ze.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=xt(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Ze.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ze.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ze.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;i.push([s,{value:c.val,location:xt(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===i.length?this.error("select"===t?Ze.EXPECT_SELECT_ARGUMENT_SELECTOR:Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR,xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Ze.MISSING_OTHER_CLAUSE,xt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},$t.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 a=this.char();if(!(48<=a&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}n=xt(n,this.clonePosition());return o?Ot(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},$t.prototype.offset=function(){return this.position.offset},$t.prototype.isEOF=function(){return this.offset()===this.message.length},$t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},$t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Bt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},$t.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},$t.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))},$t.prototype.bumpIf=function(e){if(Mt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},$t.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)},$t.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}},$t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Wt(this.char());)this.bump()},$t.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},$t);function $t(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 zt(e){return 97<=e&&e<=122||65<=e&&e<=90}function Wt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Vt(e,t){t=tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new jt(e,t).parse();if(r.err){e=SyntaxError(Ze[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,st(e)||lt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ot(e)&&ct(e.style)||(it(e)||at(e))&&ft(e.style)?delete e.style.location:ut(e)&&r(e.children)})}(r.val),r.val}function Xt(e,t){var r=t&&t.cache?t.cache:Jt,n=t&&t.serializer?t.serializer:qt;return(t&&t.strategy?t.strategy:function(e,t){return Yt(e,this,1===e.length?Ht:Qt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ht(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 Qt(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 Yt(e,t,r,n,o){return r.bind(t,e,n,o)}var qt=function(){return JSON.stringify(arguments)};function Kt(){this.cache=Object.create(null)}Kt.prototype.has=function(e){return e in this.cache},Kt.prototype.get=function(e){return this.cache[e]},Kt.prototype.set=function(e,t){this.cache[e]=t};var Zt,Jt={create:function(){return new Kt}},er={variadic:function(e,t){return Yt(e,this,Qt,t.cache.create(),t.serializer)},monadic:function(e,t){return Yt(e,this,Ht,t.cache.create(),t.serializer)}};(pt=Zt=Zt||{}).MISSING_VALUE="MISSING_VALUE",pt.INVALID_VALUE="INVALID_VALUE",pt.MISSING_INTL_API="MISSING_INTL_API";var tr,rr,nr,or,ir,vr=(Ke(xr,ir=Error),xr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},xr),Er=(Ke(Ar,or=vr),Ar),Pr=(Ke(Tr,nr=vr),Tr),_r=(Ke(wr,rr=vr),wr);function wr(e,t){return rr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Zt.MISSING_VALUE,t)||this}function Tr(e,t,r){return nr.call(this,'Value for "'+e+'" must be of type '+t,Zt.INVALID_VALUE,r)||this}function Ar(e,t,r,n){return or.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Zt.INVALID_VALUE,n)||this}function xr(e,t,r){e=ir.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Sr(e,t,r,n,o,i,a){if(1===e.length&&nt(e[0]))return[{type:tr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(nt(c))s.push({type:tr.literal,value:c.value});else if(c.type===Je.pound)"number"==typeof i&&s.push({type:tr.literal,value:r.getNumberFormat(t).format(i)});else{var f=c.value;if(!(o&&f in o))throw new _r(f,a);var p=o[f];if(c.type===Je.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?tr.literal:tr.object,value:p});else if(it(c)){var h="string"==typeof c.style?n.date[c.style]:ft(c.style)?c.style.parsedOptions:void 0;s.push({type:tr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(at(c))h="string"==typeof c.style?n.time[c.style]:ft(c.style)?c.style.parsedOptions:void 0,s.push({type:tr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(ot(c))(h="string"==typeof c.style?n.number[c.style]:ct(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:tr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(ut(c)){var d=c.children,y=c.value,f=o[y];if("function"!=typeof f)throw new Pr(y,"function",a);d=f(Sr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?tr.literal:tr.object,value:e}}))}if(st(c)){if(!(m=c.options[p]||c.options.other))throw new Er(c.value,p,Object.keys(c.options),a);s.push.apply(s,Sr(m.value,t,r,n,o))}else if(lt(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new vr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Zt.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new Er(c.value,p,Object.keys(c.options),a);s.push.apply(s,Sr(m.value,t,r,n,o,p-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===tr.literal&&t.type===tr.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}}}}}(pt=tr=tr||{})[pt.literal=0]="literal",pt[pt.object=1]="object";var Cr=(Object.defineProperty(Nr,"defaultLocale",{get:function(){return Nr.memoizedDefaultLocale||(Nr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nr.memoizedDefaultLocale=null,Nr.__parse=Vt,Nr.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"}}},Nr);function Nr(e,t,r,n){var o,i,a=this;if(void 0===t&&(t=Nr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===tr.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 Sr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Nr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nr.__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=Nr.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?tt(tt(tt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=tt(tt({},r[t]),n[t]||{}),e},{})):r),e},tt({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,rt([void 0],t)))},{cache:Ir((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:er.variadic}),getDateTimeFormat:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rt([void 0],t)))},{cache:Ir(n.dateTime),strategy:er.variadic}),getPluralRules:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,rt([void 0],t)))},{cache:Ir(n.pluralRules),strategy:er.variadic})}}const Or={},Lr=(t,r)=>{if(null!=r){if(r in Or&&t in Or[r])return Or[r][t];var n,o,i=Qr(r);for(let e=0;e<i.length;e++){var a=(n=i[e],o=t,Rr(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 Dr[e]||null}(n),o):null);if(a)return n=t,o=r,(a=a)&&(o in Or||(Or[o]={}),n in Or[o]||(Or[o][n]=a),a)}}};let Dr;const Mr=Fe({});function Rr(e){return e in Dr}function Ur(t,...r){delete Or[t],Mr.update(e=>(e[t]=Ye.all([e[t]||{},...r]),e))}Ge([Mr],([e])=>Object.keys(e)),Mr.subscribe(e=>Dr=e);const Br={};function kr(e){return Br[e]}function Fr(e){return Qr(e).some(e=>{return null===(e=kr(e))||void 0===e?void 0:e.size})}const Gr={};function jr(e){if(!Fr(e))return e in Gr?Gr[e]:void 0;const t=Qr(e).map(e=>{var t=kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Gr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Br[e].delete(t),0===Br[e].size&&delete Br[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Ur(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete Gr[e]),Gr[e]}function $r(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 Wr=Fe(!1);let Vr;const Xr=Fe(null);function Hr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Qr(e,t=zr.fallbackLocale){e=Hr(e);return t?[...new Set([...e,...Hr(t)])]:e}Xr.subscribe(e=>{Vr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Yr=Xr.set;Xr.set=t=>{if(function(e){if(null!=e){var t=Qr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Rr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=zr;let e;return"undefined"!=typeof window&&null!=Vr&&r?e=window.setTimeout(()=>Wr.set(!0),r):Wr.set(!0),jr(t).then(()=>{Yr(t)}).finally(()=>{clearTimeout(e),Wr.set(!1)})}return Yr(t)},Xr.update=e=>Yr(e(Vr));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)}},Kr=(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.`)},Zr=qr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kr("number",r)),new Intl.NumberFormat(t,e)}),Jr=qr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kr("date",r):0===Object.keys(e).length&&(e=Kr("date","short")),new Intl.DateTimeFormat(t,e)}),en=qr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kr("time",r):0===Object.keys(e).length&&(e=Kr("time","short")),new Intl.DateTimeFormat(t,e)}),tn=qr((e,t=Vr)=>new Cr(e,t,zr.formats,{ignoreTag:zr.ignoreTag})),rn=Ge([Xr,Mr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Vr,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Lr(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 "${Qr(n).join('", "')}".${Fr(Vr)?"\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 a=i;try{a=tn(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return en(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Zr(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr,Mr],()=>(e,t=Vr)=>Lr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ue.indexOf(e)&&(t=new Le(t),Be[e]=t,Ue.push(e)),Be[e]}};const nn={en:{playerProfile:{title:"Profile Info",personalDetails:"Personal Details",userName:"User name:",userPhone:"Phone:",userEmail:"Email:",securityQuestion:"Security Question:",firstName:"First name:",securityAnswer:"Security Answer:",lastName:"Last Name:",dateOfBirth:"Date of birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userAddress:"Address:",userPostalCode:"Postal Code:",userNotifications:"Notifications",userSMSNotification:"Enable SMS notifications",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"}},ro:{playerProfile:{title:"Profile Info",personalDetails:"Personal Details",userName:"User name:",userPhone:"Phone:",userEmail:"Email:",securityQuestion:"Security Question:",firstName:"First name:",securityAnswer:"Security Answer:",lastName:"Last Name:",dateOfBirth:"Date of birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userAddress:"Address:",userPostalCode:"Postal Code:",userNotifications:"Notifications",userSMSNotification:"Enable SMS notifications",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"}}};function on(e,t,r){const n=e.slice();return n[70]=t[r],n}function an(r){let o,n,i,a,s,l,u,c,f,p,h,d,y,m,b,g,v,E,P,_,w,T,A,x,e,S,I,C,N,O,L,D,M,R,U,B,k,F,G,j,$,z,W,V,X,H,Q,Y,q,K,Z,J,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,fe,pe,he,de,ye,me,be,ge,ve,Ee,Pe,_e,we,Te,Ae,xe,Se,Ie,Ce,Ne,Oe,Le,De,Me,Re,Ue,Be,ke,Fe,Ge,je,$e,ze,We,Ve,Xe,He,Qe,Ye,qe,Ke,Ze,Je,et,tt,rt,nt,ot,it,at,st,lt,ut,ct,ft,pt,ht,dt,yt,mt,bt,gt,vt,Et,Pt,_t,wt,Tt,At,xt,St,It,Ct,Nt,Ot,Lt,Dt,Mt,Rt=r[25]("playerProfile.title")+"",Ut=r[25]("playerProfile.personalDetails")+"",Bt=r[25]("playerProfile.userName")+"",kt=r[25]("playerProfile.userPhone")+"",Ft=r[25]("playerProfile.userEmail")+"",Gt=r[25]("playerProfile.securityQuestion")+"",jt=r[25]("playerProfile.firstName")+"",$t=r[25]("playerProfile.securityAnswer")+"",zt=r[25]("playerProfile.lastName")+"",Wt=r[25]("playerProfile.dateOfBirth")+"",Vt=r[25]("playerProfile.currency")+"",Xt=r[25]("playerProfile.userTitle")+"",Ht=r[25]("playerProfile.locationDetails")+"",Qt=r[25]("playerProfile.userCountry")+"",Yt=r[25]("playerProfile.userCity")+"",qt=r[25]("playerProfile.userAddress")+"",Kt=r[25]("playerProfile.userPostalCode")+"",Zt=r[25]("playerProfile.userNotifications")+"",Jt=r[25]("playerProfile.userSMSNotification")+"",er=r[25]("playerProfile.userEmailNotification")+"",tr=r[25]("playerProfile.userProfileSaveChanges")+"",rr=r[26]&&function(r){let n,o,i,a,s,l,u,c,f,p,h,d,y,m=r[25]("playerProfile.title")+"";return{c(){n=t("div"),o=cr("svg"),i=cr("defs"),a=cr("style"),s=fr(".aaa{fill:#d0046c;}"),l=cr("g"),u=cr("g"),c=cr("path"),f=pr(),p=t("h2"),h=fr(m),dr(c,"class","aaa"),dr(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),dr(c,"transform","translate(15 15) rotate(180)"),dr(u,"transform","translate(20 158)"),dr(l,"transform","translate(-20 -158)"),dr(o,"xmlns","http://www.w3.org/2000/svg"),dr(o,"width","15"),dr(o,"height","15"),dr(o,"viewBox","0 0 15 15"),dr(p,"class","MyAccountCategoryTitleMobile"),dr(n,"class","MenuReturnButton")},m(e,t){lr(e,n,t),sr(n,o),sr(o,i),sr(i,a),sr(a,s),sr(o,l),sr(l,u),sr(u,c),sr(n,f),sr(n,p),sr(p,h),d||(y=hr(n,"click",r[38]),d=!0)},p(e,t){33554432&t[0]&&m!==(m=e[25]("playerProfile.title")+"")&&yr(h,m)},d(e){e&&ur(n),d=!1,y()}}}(r),nr=r[12],or=[];for(let e=0;e<nr.length;e+=1)or[e]=un(on(r,nr,e));let ir=r[13]&&cn(r);return{c(){o=t("form"),rr&&rr.c(),n=pr(),i=t("h2"),a=fr(Rt),s=pr(),l=t("div"),u=t("h3"),c=fr(Ut),f=pr(),p=t("section"),h=t("div"),d=t("label"),y=fr(Bt),m=pr(),b=t("input"),g=pr(),v=t("div"),E=t("label"),P=fr(kt),_=pr(),w=t("div"),T=t("select");for(let e=0;e<or.length;e+=1)or[e].c();A=pr(),x=t("input"),S=pr(),I=t("div"),C=t("label"),N=fr(Ft),O=pr(),L=t("input"),D=pr(),M=t("div"),R=t("label"),U=fr(Gt),B=pr(),k=t("input"),G=pr(),j=t("div"),$=t("label"),z=fr(jt),W=pr(),V=t("input"),X=pr(),H=t("div"),Q=t("label"),Y=fr($t),q=pr(),K=t("input"),J=pr(),ee=t("div"),te=t("label"),re=fr(zt),ne=pr(),oe=t("input"),ie=pr(),ae=t("div"),se=t("label"),le=fr(Wt),ue=pr(),ce=t("input"),fe=pr(),pe=t("div"),he=t("label"),de=fr(Vt),ye=pr(),me=t("input"),be=pr(),ge=t("div"),ve=t("label"),Ee=fr(Xt),Pe=pr(),_e=t("input"),we=pr(),Te=t("div"),Ae=t("h3"),xe=fr(Ht),Se=pr(),Ie=t("section"),Ce=t("div"),Ne=t("label"),Oe=fr(Qt),Le=pr(),De=t("input"),Re=pr(),Ue=t("div"),Be=t("label"),ke=fr(Yt),Fe=pr(),Ge=t("input"),ze=pr(),We=t("div"),Ve=t("label"),Xe=fr(qt),He=pr(),Qe=t("input"),qe=pr(),Ke=t("div"),Ze=t("label"),Je=fr(Kt),et=pr(),tt=t("input"),ot=pr(),it=t("div"),at=t("h3"),st=fr(Zt),lt=pr(),ut=t("section"),ct=t("div"),ft=t("label"),pt=t("input"),ht=pr(),dt=t("span"),yt=pr(),mt=t("span"),bt=fr(Jt),gt=pr(),vt=t("div"),Et=t("label"),Pt=t("input"),_t=pr(),wt=t("span"),Tt=pr(),At=t("span"),xt=fr(er),St=pr(),It=t("section"),Ct=t("div"),Nt=fr(tr),Lt=pr(),ir&&ir.c(),dr(i,"class","MyAccountCategoryTitle "+(r[26]?"MyAccountCategoryTitleNone":"")),dr(l,"class","PlayerNotificationsHeader"),dr(b,"type","text"),dr(b,"class","FieldDisabled"),b.value=r[23],b.readOnly=!0,dr(h,"class","PlayerInfoBox"),void 0===r[8]&&gr(()=>r[39].call(T)),dr(x,"type","text"),dr(x,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),dr(x,"placeholder",e=r[0]?r[18].number:""),dr(w,"class","PlayerPhoneNumber"),dr(v,"class","PlayerInfoBox"),dr(L,"type","email"),dr(L,"class","FieldDisabled"),L.value=r[19],L.readOnly=!0,dr(I,"class","PlayerInfoBox"),dr(k,"type","text"),dr(k,"placeholder",F=r[0]?r[32]:""),dr(M,"class","PlayerInfoBox"),dr(V,"type","text"),dr(V,"class","FieldDisabled"),V.value=r[20],V.readOnly=!0,dr(j,"class","PlayerInfoBox"),dr(K,"type","text"),dr(K,"placeholder",Z=r[0]?r[31]:""),dr(H,"class","PlayerInfoBox"),dr(oe,"type","text"),dr(oe,"class","FieldDisabled"),oe.value=r[22],oe.readOnly=!0,dr(ee,"class","PlayerInfoBox"),dr(ce,"type","text"),dr(ce,"class","FieldDisabled"),ce.value=r[15],ce.readOnly=!0,dr(ae,"class","PlayerInfoBox"),dr(me,"type","text"),dr(me,"class","FieldDisabled"),me.value=r[17],me.readOnly=!0,dr(pe,"class","PlayerInfoBox"),dr(_e,"type","text"),dr(_e,"class","FieldDisabled"),_e.value=r[21],_e.readOnly=!0,dr(ge,"class","PlayerInfoBox"),dr(p,"class","PlayerDetailsContent"),dr(Te,"class","PlayerLocationHeader"),dr(De,"type","text"),dr(De,"class","PlayerCountry FieldDisabled"),dr(De,"placeholder",r[16]),De.value=Me=r[11].Name,De.readOnly=!0,dr(Ce,"class","PlayerInfoBox"),dr(Ge,"type","text"),dr(Ge,"placeholder",je=r[0]?r[29]:""),Ge.value=$e=r[0]?"":r[14].city,dr(Ue,"class","PlayerInfoBox"),dr(Qe,"placeholder",r[28]),dr(Qe,"type","text"),Qe.value=Ye=r[0]?"":r[14].address,dr(We,"class","PlayerInfoBox"),dr(tt,"type","number"),dr(tt,"placeholder",rt=r[0]?r[30]:""),tt.value=nt=r[0]?"":r[14].postalCode,dr(Ke,"class","PlayerInfoBox"),dr(Ie,"class","PlayerLocationContent"),dr(it,"class","PlayerNotificationsHeader"),dr(pt,"type","checkbox"),dr(pt,"id","SMSNotification"),dr(pt,"name","Enable SMS notifications"),dr(dt,"class","Checkmark"),dr(ft,"for","SMSNotification"),dr(ct,"class","PlayerNotificationBox"),dr(Pt,"type","checkbox"),dr(Pt,"id","EmailNotification"),dr(Pt,"name","Enable Emails"),dr(wt,"class","Checkmark"),dr(Et,"for","EmailNotification"),dr(vt,"class","PlayerNotificationBox"),dr(ut,"class","PlayerNotificationsCheckboxArea"),dr(Ct,"class",Ot="PlayerDetailsSaveButton "+(r[10]&&r[24]?"":"PlayerButtonDisabled")),dr(It,"class","PlayerDetailsButtonsArea "+(r[26]?"PlayerDetailsButtonsAreaMobile":"")),dr(o,"class","PlayerInfoWrapper "+(r[26]?"PlayerInfoWrapperMobile":"")+" "+(r[27].matches&&r[26]?"PlayerInfoWrapperTablet":""))},m(e,t){lr(e,o,t),rr&&rr.m(o,null),sr(o,n),sr(o,i),sr(i,a),sr(o,s),sr(o,l),sr(l,u),sr(u,c),sr(o,f),sr(o,p),sr(p,h),sr(h,d),sr(d,y),sr(h,m),sr(h,b),sr(p,g),sr(p,v),sr(v,E),sr(E,P),sr(v,_),sr(v,w),sr(w,T);for(let e=0;e<or.length;e+=1)or[e].m(T,null);br(T,r[8]),sr(w,A),sr(w,x),mr(x,r[9]),sr(p,S),sr(p,I),sr(I,C),sr(C,N),sr(I,O),sr(I,L),sr(p,D),sr(p,M),sr(M,R),sr(R,U),sr(M,B),sr(M,k),mr(k,r[6]),sr(p,G),sr(p,j),sr(j,$),sr($,z),sr(j,W),sr(j,V),sr(p,X),sr(p,H),sr(H,Q),sr(Q,Y),sr(H,q),sr(H,K),mr(K,r[7]),sr(p,J),sr(p,ee),sr(ee,te),sr(te,re),sr(ee,ne),sr(ee,oe),sr(p,ie),sr(p,ae),sr(ae,se),sr(se,le),sr(ae,ue),sr(ae,ce),sr(p,fe),sr(p,pe),sr(pe,he),sr(he,de),sr(pe,ye),sr(pe,me),sr(p,be),sr(p,ge),sr(ge,ve),sr(ve,Ee),sr(ge,Pe),sr(ge,_e),sr(o,we),sr(o,Te),sr(Te,Ae),sr(Ae,xe),sr(o,Se),sr(o,Ie),sr(Ie,Ce),sr(Ce,Ne),sr(Ne,Oe),sr(Ce,Le),sr(Ce,De),sr(Ie,Re),sr(Ie,Ue),sr(Ue,Be),sr(Be,ke),sr(Ue,Fe),sr(Ue,Ge),r[47](Ge),sr(Ie,ze),sr(Ie,We),sr(We,Ve),sr(Ve,Xe),sr(We,He),sr(We,Qe),r[49](Qe),sr(Ie,qe),sr(Ie,Ke),sr(Ke,Ze),sr(Ze,Je),sr(Ke,et),sr(Ke,tt),r[51](tt),sr(o,ot),sr(o,it),sr(it,at),sr(at,st),sr(o,lt),sr(o,ut),sr(ut,ct),sr(ct,ft),sr(ft,pt),pt.checked=r[4],sr(ft,ht),sr(ft,dt),sr(ft,yt),sr(ft,mt),sr(mt,bt),sr(ut,gt),sr(ut,vt),sr(vt,Et),sr(Et,Pt),Pt.checked=r[5],sr(Et,_t),sr(Et,wt),sr(Et,Tt),sr(Et,At),sr(At,xt),sr(o,St),sr(o,It),sr(It,Ct),sr(Ct,Nt),sr(o,Lt),ir&&ir.m(o,null),Dt||(Mt=[hr(T,"change",r[39]),hr(T,"change",r[40]),hr(x,"input",r[41]),hr(x,"keyup",r[42]),hr(k,"input",r[43]),hr(k,"keyup",r[44]),hr(K,"input",r[45]),hr(K,"keyup",r[46]),hr(Ge,"keyup",r[48]),hr(Qe,"keyup",r[50]),hr(tt,"keyup",r[52]),hr(pt,"change",r[53]),hr(pt,"change",r[35]),hr(Pt,"change",r[54]),hr(Pt,"change",r[35]),hr(Ct,"click",r[55])],Dt=!0)},p(t,r){if(t[26]&&rr.p(t,r),33554432&r[0]&&Rt!==(Rt=t[25]("playerProfile.title")+"")&&yr(a,Rt),33554432&r[0]&&Ut!==(Ut=t[25]("playerProfile.personalDetails")+"")&&yr(c,Ut),33554432&r[0]&&Bt!==(Bt=t[25]("playerProfile.userName")+"")&&yr(y,Bt),8388608&r[0]&&b.value!==t[23]&&(b.value=t[23]),33554432&r[0]&&kt!==(kt=t[25]("playerProfile.userPhone")+"")&&yr(P,kt),20480&r[0]){let e;for(nr=t[12],e=0;e<nr.length;e+=1){var n=on(t,nr,e);or[e]?or[e].p(n,r):(or[e]=un(n),or[e].c(),or[e].m(T,null))}for(;e<or.length;e+=1)or[e].d(1);or.length=nr.length}4352&r[0]&&br(T,t[8]),262145&r[0]&&e!==(e=t[0]?t[18].number:"")&&dr(x,"placeholder",e),512&r[0]&&x.value!==t[9]&&mr(x,t[9]),33554432&r[0]&&Ft!==(Ft=t[25]("playerProfile.userEmail")+"")&&yr(N,Ft),524288&r[0]&&L.value!==t[19]&&(L.value=t[19]),33554432&r[0]&&Gt!==(Gt=t[25]("playerProfile.securityQuestion")+"")&&yr(U,Gt),1&r[0]&&F!==(F=t[0]?t[32]:"")&&dr(k,"placeholder",F),64&r[0]&&k.value!==t[6]&&mr(k,t[6]),33554432&r[0]&&jt!==(jt=t[25]("playerProfile.firstName")+"")&&yr(z,jt),1048576&r[0]&&V.value!==t[20]&&(V.value=t[20]),33554432&r[0]&&$t!==($t=t[25]("playerProfile.securityAnswer")+"")&&yr(Y,$t),1&r[0]&&Z!==(Z=t[0]?t[31]:"")&&dr(K,"placeholder",Z),128&r[0]&&K.value!==t[7]&&mr(K,t[7]),33554432&r[0]&&zt!==(zt=t[25]("playerProfile.lastName")+"")&&yr(re,zt),4194304&r[0]&&oe.value!==t[22]&&(oe.value=t[22]),33554432&r[0]&&Wt!==(Wt=t[25]("playerProfile.dateOfBirth")+"")&&yr(le,Wt),32768&r[0]&&ce.value!==t[15]&&(ce.value=t[15]),33554432&r[0]&&Vt!==(Vt=t[25]("playerProfile.currency")+"")&&yr(de,Vt),131072&r[0]&&me.value!==t[17]&&(me.value=t[17]),33554432&r[0]&&Xt!==(Xt=t[25]("playerProfile.userTitle")+"")&&yr(Ee,Xt),2097152&r[0]&&_e.value!==t[21]&&(_e.value=t[21]),33554432&r[0]&&Ht!==(Ht=t[25]("playerProfile.locationDetails")+"")&&yr(xe,Ht),33554432&r[0]&&Qt!==(Qt=t[25]("playerProfile.userCountry")+"")&&yr(Oe,Qt),65536&r[0]&&dr(De,"placeholder",t[16]),2048&r[0]&&Me!==(Me=t[11].Name)&&De.value!==Me&&(De.value=Me),33554432&r[0]&&Yt!==(Yt=t[25]("playerProfile.userCity")+"")&&yr(ke,Yt),1&r[0]&&je!==(je=t[0]?t[29]:"")&&dr(Ge,"placeholder",je),16385&r[0]&&$e!==($e=t[0]?"":t[14].city)&&Ge.value!==$e&&(Ge.value=$e),33554432&r[0]&&qt!==(qt=t[25]("playerProfile.userAddress")+"")&&yr(Xe,qt),16385&r[0]&&Ye!==(Ye=t[0]?"":t[14].address)&&Qe.value!==Ye&&(Qe.value=Ye),33554432&r[0]&&Kt!==(Kt=t[25]("playerProfile.userPostalCode")+"")&&yr(Je,Kt),1&r[0]&&rt!==(rt=t[0]?t[30]:"")&&dr(tt,"placeholder",rt),16385&r[0]&&nt!==(nt=t[0]?"":t[14].postalCode)&&(tt.value=nt),33554432&r[0]&&Zt!==(Zt=t[25]("playerProfile.userNotifications")+"")&&yr(st,Zt),16&r[0]&&(pt.checked=t[4]),33554432&r[0]&&Jt!==(Jt=t[25]("playerProfile.userSMSNotification")+"")&&yr(bt,Jt),32&r[0]&&(Pt.checked=t[5]),33554432&r[0]&&er!==(er=t[25]("playerProfile.userEmailNotification")+"")&&yr(xt,er),33554432&r[0]&&tr!==(tr=t[25]("playerProfile.userProfileSaveChanges")+"")&&yr(Nt,tr),16778240&r[0]&&Ot!==(Ot="PlayerDetailsSaveButton "+(t[10]&&t[24]?"":"PlayerButtonDisabled"))&&dr(Ct,"class",Ot),t[13]?ir?ir.p(t,r):(ir=cn(t),ir.c(),ir.m(o,null)):ir&&(ir.d(1),ir=null)},d(e){e&&ur(o),rr&&rr.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(or,e),r[47](null),r[49](null),r[51](null),ir&&ir.d(),Dt=!1,ar(Mt)}}}function sn(e){let r,n,o,i=e[70].Prefix+"";return{c(){r=t("option"),n=fr(i),r.__value=o=e[70].Prefix,r.value=r.__value},m(e,t){lr(e,r,t),sr(r,n)},p(e,t){4096&t[0]&&i!==(i=e[70].Prefix+"")&&yr(n,i),4096&t[0]&&o!==(o=e[70].Prefix)&&(r.__value=o,r.value=r.__value)},d(e){e&&ur(r)}}}function ln(e){let r,n,o,i=e[70].Prefix+"";return{c(){r=t("option"),n=fr(i),r.selected=!0,r.__value=o=e[70].Prefix,r.value=r.__value},m(e,t){lr(e,r,t),sr(r,n)},p(e,t){4096&t[0]&&i!==(i=e[70].Prefix+"")&&yr(n,i),4096&t[0]&&o!==(o=e[70].Prefix)&&(r.__value=o,r.value=r.__value)},d(e){e&&ur(r)}}}function un(e){let r;function n(e){return e[70].Prefix===e[14].mobiePrefix?ln:sn}let o=n(e),i=o(e);return{c(){i.c(),r=a()},m(e,t){i.m(e,t),lr(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)))},d(e){i.d(e),e&&ur(r)}}}function cn(e){let r,n,o,i=e[25]("playerProfile.userProfileConfirmationMessage")+"";return{c(){r=t("section"),n=t("p"),o=fr(i),dr(n,"class","PlayerDetailsConfirmSaveText"),dr(r,"class","PlayerDetailsConfirmSave")},m(e,t){lr(e,r,t),sr(r,n),sr(n,o)},p(e,t){33554432&t[0]&&i!==(i=e[25]("playerProfile.userProfileConfirmationMessage")+"")&&yr(o,i)},d(e){e&&ur(r)}}}function fn(e){let r,n=an(e);return{c(){n.c(),r=a(),this.c=f},m(e,t){n.m(e,t),lr(e,r,t)},p(e,t){n.p(e,t)},i:f,o:f,d(e){n.d(e),e&&ur(r)}}}function pn(t,e,r){let n;var o=rn;t.$$.on_destroy.push(Q(o,e=>r(25,n=e)));let i,a,s,{endpoint:l=""}=e,{lang:u="en"}=e,c="PC"!=((o=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":o.toLowerCase().match(/iphone/i)?"iPhone":o.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!0,p=!1,h=!1,d="",y="",m="",b="",g=!1,v={},E=[],P=[],_=!1;Object.keys(nn).forEach(e=>{Ur(e,nn[e])});e=window.matchMedia("(min-width: 768px)");let w={address1:"",address2:"",city:"",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},T={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},A={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:x,birth:S,city:I,country:C,currency:N,mobile:O,email:L,firstname:D,userTitles:M,language:R,lastname:U,postalCode:B,securityAnswer:k,securityQuestion:F,username:G}=A;const j=e=>{if(e.data)switch(e.data.type){case"ProfileDetailsData":r(0,f=!1),A=e.data.profileDetails,r(23,G=A.username),r(18,O=A.mobile),r(19,L=A.email),r(20,D=A.firstname),r(22,U=A.lastname),R=A.language,r(15,S=A.birth.day+"/"+A.birth.month+"/"+A.birth.year),r(17,N=A.currency),r(21,M=A.title),r(16,C=A.country),r(11,v=P.find(e=>e.Alpha2Code===A.country)),r(4,p=A.consents.acceptSMSOffers),r(5,h=A.consents.acceptNewsEmail),r(6,d=A.securityQuestion),r(7,y=A.securityAnswer),r(8,m=A.mobile.prefix),r(9,b=A.mobile.number),r(14,T={address:A.address1,city:A.city,acceptNewsEmail:A.consents.acceptNewsEmail,acceptSMSOffers:A.consents.acceptSMSOffers,mobilePrefix:O.prefix,mobileNumber:O.number,postalCode:A.postalCode,securityAnswer:A.securityAnswer,securityQuestion:A.securityQuestion});break;case"ConfirmProfileInfoSave":r(10,g=!1),$()}},$=()=>{r(13,_=!0),setTimeout(()=>{r(13,_=!1)},3e3)};let z=!1;const W=()=>{1==g&&1==z&&window.postMessage({type:"UpdatePlayerInfo",provisionalArray:w},window.location.href)},V=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},X=()=>{w={acceptNewsEmail:h,acceptSMSOffers:p,address:a.value,city:s.value,mobileNumber:b,mobilePrefix:m,postalCode:i.value,securityAnswer:y,securityQuestion:d},H(w,T),d.length<=0||y.length<=0||!s.value||!a.value||!i.value||b.length<=0?r(24,z=!1):r(24,z=!0)},H=(e,t)=>{JSON.stringify(e)===JSON.stringify(t)?r(10,g=!1):r(10,g=!0)};return o=()=>(window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)}),function(){if(!Y)throw new Error("Function called outside component initialization");return Y}().$$.on_mount.push(o),t.$$set=e=>{"endpoint"in e&&r(36,l=e.endpoint),"lang"in e&&r(37,u=e.lang)},t.$$.update=()=>{var e;64&t.$$.dirty[1]&&u&&(e=u,Xr.set(e)),32&t.$$.dirty[1]&&l&&fetch(`${l}/player/countries`).then(e=>e.json()).then(e=>{P=e.countries}),32&t.$$.dirty[1]&&l&&fetch(`${l}/player/phonecodes`).then(e=>e.json()).then(e=>{r(12,E=e.phoneCodes)})},[f,i,a,s,p,h,d,y,m,b,g,v,E,_,T,S,C,N,O,L,D,M,U,G,z,n,c,e,x,I,B,k,F,W,V,X,l,u,()=>V(),function(){m=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(8,m),r(12,E)},()=>X(),function(){b=this.value,r(9,b)},()=>X(),function(){d=this.value,r(6,d)},()=>X(),function(){y=this.value,r(7,y)},()=>X(),function(e){q[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>X(),function(e){q[e?"unshift":"push"](()=>{a=e,r(2,a)})},()=>X(),function(e){q[e?"unshift":"push"](()=>{i=e,r(1,i)})},()=>X(),function(){p=this.checked,r(4,p)},function(){h=this.checked,r(5,h)},()=>W()]}class hn 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'}.MyAccountCategoryTitle{font-size:26px;color:#D0046C;font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:#D0046C}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:#07072A;background:#F9F8F8;padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:#D0046C;text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;background:#FFF;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:#07072A;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:#D1D1D1;cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:#D0046C}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#07072A;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:#9e0352}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:#F9F8F8;max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:#58586B}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:#07072A;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:#fff}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:#fff}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:#0cdc13;color:#fff;padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>",s(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},pn,fn,r,{endpoint:36,lang:37},[-1,-1,-1]),e&&(e.target&&lr(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["endpoint","lang"]}get endpoint(){return this.$$.ctx[36]}set endpoint(e){this.$set({endpoint:e}),v()}get lang(){return this.$$.ctx[37]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("player-profile-info")||customElements.define("player-profile-info",hn),hn});
|
|
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 f(){}function p(e){return e()}function h(){return Object.create(null)}function yr(e){e.forEach(p)}function d(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Z(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function mr(e,t){e.appendChild(t)}function br(e,t,r){e.insertBefore(t,r||null)}function gr(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function vr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Er(e){return document.createTextNode(e)}function Pr(){return Er(" ")}function a(){return Er("")}function _r(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function wr(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Tr(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Ar(e,t){e.value=null==t?"":t}function xr(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}let J;function y(e){J=e}const m=[],ee=[],n=[],e=[],b=Promise.resolve();let g=!1;function Sr(e){n.push(e)}let i=!1;const o=new Set;function v(){if(!i){i=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),yr(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Sr))}}(t.$$)}for(y(null),m.length=0;ee.length;)ee.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];o.has(r)||(o.add(r),r())}}while(n.length=0,m.length);for(;e.length;)e.pop()();g=!1,i=!1,o.clear()}}const E=new Set;function s(n,e,t,r,i,o,a=[-1]){var s,l=J;y(n);const u=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(m.push(e),g||(g=!0,b.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,yr(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const f=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(f),f.forEach(gr)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(E.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:a,after_update:s}=t.$$;i&&i.m(e,r),n||Sr(()=>{var e=o.map(p).filter(d);a?a.push(...e):yr(e),t.$$.on_mount=[]}),s.forEach(Sr)}(n,e.target,e.anchor,e.customElement),v()}y(l)}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(p).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){yr(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(yr(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$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 u,c,P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,_="URLSearchParams"in P,w="Symbol"in P&&"iterator"in Symbol,T="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(e){return!1}}(),A="FormData"in P,x="ArrayBuffer"in P;function S(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 I(e){return e="string"!=typeof e?String(e):e}function C(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return w&&(e[Symbol.iterator]=function(){return e}),e}function N(t){this.map={},t instanceof N?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 O(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function D(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function L(e){var t=new FileReader,r=D(t);return t.readAsArrayBuffer(e),r}function M(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:T&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:A&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():x&&T&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=M(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=M(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):_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(this.blob=function(){var e=O(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?O(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(L)}),this.text=function(){var e,t,r=O(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=D(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)},A&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}x&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&-1<u.indexOf(Object.prototype.toString.call(e))}),N.prototype.append=function(e,t){e=S(e),t=I(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},N.prototype.delete=function(e){delete this.map[S(e)]},N.prototype.get=function(e){return e=S(e),this.has(e)?this.map[e]:null},N.prototype.has=function(e){return this.map.hasOwnProperty(S(e))},N.prototype.set=function(e,t){this.map[S(e)]=I(t)},N.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},N.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),C(r)},N.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C(t)},N.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),C(r)},w&&(N.prototype[Symbol.iterator]=N.prototype.entries);var B=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function U(e,t){if(!(this instanceof U))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 U){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new N(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 N(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<B.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 k(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 F(e,t){if(!(this instanceof F))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 N(t.headers),this.url=t.url||"",this._initBody(e)}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})},R.call(U.prototype),R.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},F.error=function(){var e=new F(null,{status:0,statusText:""});return e.type="error",e};var G=[301,302,303,307,308];F.redirect=function(e,t){if(-1===G.indexOf(t))throw new RangeError("Invalid status code");return new F(null,{status:t,headers:{location:e}})};var j=P.DOMException;try{new j}catch(f){(j=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function $(n,a){return new Promise(function(i,e){var t=new U(n,a);if(t.signal&&t.signal.aborted)return e(new j("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new N,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 o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new F(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new j("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&P.location.href?P.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(T?o.responseType="blob":x&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof N?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,I(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}$.polyfill=!0,P.fetch||(P.fetch=$,P.Headers=N,P.Request=U,P.Response=F),self.fetch.bind(self);var z=function(e,t){return(z=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 W(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}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function V(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 X(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function H(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function q(e){return"function"==typeof e}function Q(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 Y=Q(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 K(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var te=(ne.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=V(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(q(o))try{o()}catch(e){i=e instanceof Y?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=V(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{oe(c)}catch(e){i=null!=i?i:[],e instanceof Y?i=H(H([],X(i)),X(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Y(i)}},ne.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)oe(e);else{if(e instanceof ne){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},ne.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},ne.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},ne.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&K(t,e)},ne.prototype.remove=function(e){var t=this._teardowns;t&&K(t,e),e instanceof ne&&e._removeParent(this)},ne.EMPTY=((St=new ne).closed=!0,St),ne),re=te.EMPTY;function ne(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ie(e){return e instanceof te||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function oe(e){q(e)?e():e.unsubscribe()}var ae=void 0,se=!1,le=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,H([],X(e)))};function ue(){}function ce(e){e()}var fe,pe,he=(W(me,pe=te),me.create=function(e,t,r){return new de(e,t,r)},me.prototype.next=function(e){this.isStopped||this._next(e)},me.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},me.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},me.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,pe.prototype.unsubscribe.call(this),this.destination=null)},me.prototype._next=function(e){this.destination.next(e)},me.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},me.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},me),de=(W(ye,fe=he),ye);function ye(e,t,r){var n,i,o=fe.call(this)||this;return q(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&se?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?be(i):ue,error:be(null!=t?t:ge),complete:r?be(r):ue},o}function me(e){var t=pe.call(this)||this;return t.isStopped=!1,e?ie(t.destination=e)&&e.add(t):t.destination=ve,t}function be(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,H([],X(e)))}catch(e){t=e,le(function(){throw t})}}}function ge(e){throw e}var ve={closed:!0,next:ue,error:ge,complete:ue},Ee="function"==typeof Symbol&&Symbol.observable||"@@observable";function Pe(e){return e}var _e=(we.prototype.lift=function(e){var t=new we;return t.source=this,t.operator=e,t},we.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof he||n&&q(n.next)&&q(n.error)&&q(n.complete)&&ie(n)?e:new de(e,t,r);return ce(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},we.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},we.prototype.forEach=function(n,e){var i=this;return new(e=Te(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},we.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},we.prototype[Ee]=function(){return this},we.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Pe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},we.prototype.toPromise=function(e){var n=this;return new(e=Te(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},we.create=function(e){return new we(e)},we);function we(e){e&&(this._subscribe=e)}function Te(e){return null!==(e=null!=e?e:ae)&&void 0!==e?e:Promise}var Ae,xe,Se,Ie=Q(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ce=(W(Re,Se=_e),Re.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},Re.prototype._throwIfClosed=function(){if(this.closed)throw new Ie},Re.prototype.next=function(o){var a=this;ce(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=V(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Re.prototype.error=function(t){var r=this;ce(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)}})},Re.prototype.complete=function(){var t=this;ce(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Re.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Re.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Re.prototype._trySubscribe=function(e){return this._throwIfClosed(),Se.prototype._trySubscribe.call(this,e)},Re.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Re.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?re:(n.push(e),new te(function(){return K(n,e)}))},Re.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Re.prototype.asObservable=function(){var e=new _e;return e.source=this,e},Re.create=function(e,t){return new Ne(e,t)},Re),Ne=(W(Me,xe=Ce),Me.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)},Me.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)},Me.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)},Me.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:re},Me),Oe={now:function(){return(Oe.delegate||Date).now()},delegate:void 0},De=(W(Le,Ae=Ce),Le.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),Ae.prototype.next.call(this,e)},Le.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Le.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},Le);function Le(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Oe);var n=Ae.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 Me(e,t){var r=xe.call(this)||this;return r.destination=e,r.source=t,r}function Re(){var e=Se.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Be=[],Ue={};const ke=[];function Fe(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!ke.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),ke.push(t,n)}if(e){for(let e=0;e<ke.length;e+=2)ke[e][0](ke[e+1]);ke.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=f){const r=[e,t];return a.push(r),1===a.length&&(o=i(s)||f),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(o(),o=null)}}}}function Ge(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Fe(t,t=>{let r=!1;const n=[];let i=0,o=f;const a=()=>{var e;i||(o(),e=s(l?n[0]:n,t),c?t(e):o=d(e)?e:f)},e=u.map((e,t)=>Z(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){yr(e),o()}}).subscribe}}var je=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===$e));var t},$e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe(Array.isArray(e)?[]:{},e,t):e}function We(e,t,r){return e.concat(t).map(function(e){return ze(e,r)})}function Ve(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Xe(e,t){try{return t in e}catch(e){return!1}}function He(n,i,o){var a={};return o.isMergeableObject(n)&&Ve(n).forEach(function(e){a[e]=ze(n[e],o)}),Ve(i).forEach(function(t){var e,r;(!Xe(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Xe(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return qe;var e=o.customMerge(t);return"function"==typeof e?e:qe}()(n[t],i[t],o):a[t]=ze(i[t],o))}),a}function qe(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||We,r.isMergeableObject=r.isMergeableObject||je,r.cloneUnlessOtherwiseSpecified=ze;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):He(e,t,r):ze(t,r)}qe.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return qe(e,t,r)},{})};var Qe=qe,Ye=function(e,t){return(Ye=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 Ke(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}Ye(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ze,Je,et,tt=function(){return(tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function rt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function nt(e){return e.type===Je.literal}function it(e){return e.type===Je.number}function ot(e){return e.type===Je.date}function at(e){return e.type===Je.time}function st(e){return e.type===Je.select}function lt(e){return e.type===Je.plural}function ut(e){return e.type===Je.tag}function ct(e){return e&&"object"==typeof e&&e.type===et.number}function ft(e){return e&&"object"==typeof e&&e.type===et.dateTime}(It=Ze=Ze||{})[It.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",It[It.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",It[It.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",It[It.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",It[It.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",It[It.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",It[It.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",It[It.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",It[It.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",It[It.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",It[It.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",It[It.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",It[It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",It[It.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",It[It.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",It[It.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",It[It.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",It[It.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",It[It.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",It[It.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",It[It.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",It[It.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",It[It.INVALID_TAG=23]="INVALID_TAG",It[It.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",It[It.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",It[It.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ct=Je=Je||{})[Ct.literal=0]="literal",Ct[Ct.argument=1]="argument",Ct[Ct.number=2]="number",Ct[Ct.date=3]="date",Ct[Ct.time=4]="time",Ct[Ct.select=5]="select",Ct[Ct.plural=6]="plural",Ct[Ct.pound=7]="pound",Ct[Ct.tag=8]="tag",(Nt=et=et||{})[Nt.number=0]="number",Nt[Nt.dateTime=1]="dateTime";var pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ht=/(?:[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 dt,yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?$/g,gt=/(\*)(0+)|(#+)(0+)|(0+)/g,vt=/^(0+)$/;function Et(e){var n={};return e.replace(bt,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 Pt(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 _t(e){return Pt(e)||{}}function wt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=tt(tt(tt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return tt(tt({},e),_t(t))},{}));continue;case"engineering":a=tt(tt(tt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return tt(tt({},e),_t(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(gt,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(vt.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(mt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(mt,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),i.options.length&&(a=tt(tt({},a),Et(i.options[0])))}else bt.test(i.stem)?a=tt(tt({},a),Et(i.stem)):((n=Pt(i.stem))&&(a=tt(tt({},a),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)),!vt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=tt(tt({},a),n)))}return a}var Tt=new RegExp("^"+pt.source+"*"),At=new RegExp(pt.source+"*$");function xt(e,t){return{start:e,end:t}}var St=!!String.prototype.startsWith,Ee=!!String.fromCodePoint,Ce=!!Object.fromEntries,It=!!String.prototype.codePointAt,Ct=!!String.prototype.trimStart,Nt=!!String.prototype.trimEnd,Ot=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pt=!0;try{pt="a"===(null===(dt=Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===dt?void 0:dt[0])}catch(f){pt=!1}var Dt,Lt,Mt=St?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Rt=Ee?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))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},Bt=Ce?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Ut=It?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},kt=Ct?function(e){return e.trimStart()}:function(e){return e.replace(Tt,"")},Ft=Nt?function(e){return e.trimEnd()}:function(e){return e.replace(At,"")};function Gt(e,t){return new RegExp(e,t)}Lt=pt?(Dt=Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Dt.lastIndex=t,null!==(e=Dt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Ut(e,t);if(void 0===i||Wt(i)||(33<=(r=i)&&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(i),t+=65536<=i?2:1}return Rt.apply(void 0,n)};var jt=($t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},$t.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Ze.UNMATCHED_CLOSING_TAG,xt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&zt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:Je.pound,location:xt(o,this.clonePosition())})}}}return{val:n,err:null}},$t.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Je.literal,value:"<"+n+"/>",location:xt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zt(this.char()))return this.error(Ze.INVALID_TAG,xt(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(Ze.UNMATCHED_CLOSING_TAG,xt(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Je.tag,value:n,children:e,location:xt(r,this.clonePosition())},err:null}:this.error(Ze.INVALID_TAG,xt(t,this.clonePosition())))}return this.error(Ze.UNCLOSED_TAG,xt(r,this.clonePosition()))}return this.error(Ze.INVALID_TAG,xt(r,this.clonePosition()))},$t.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())},$t.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=xt(r,this.clonePosition());return{val:{type:Je.literal,value:n,location:r},err:null}},$t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(zt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},$t.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 Rt.apply(void 0,t)},$t.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(),Rt(r))},$t.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ze.EMPTY_ARGUMENT,xt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ze.MALFORMED_ARGUMENT,xt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Je.argument,value:n,location:xt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Ze.MALFORMED_ARGUMENT,xt(r,this.clonePosition()))}},$t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Lt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:xt(e,this.clonePosition())}},$t.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Ze.EXPECT_ARGUMENT_TYPE,xt(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=Ft(p.val)).length)return this.error(Ze.EXPECT_ARGUMENT_STYLE,xt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:xt(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=xt(n,this.clonePosition());if(l&&Mt(null==l?void 0:l.style,"::",0)){u=kt(l.style.slice(2));if("number"===a)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:Je.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(Ze.EXPECT_DATE_TIME_SKELETON,c);var f={type:et.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(ht,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===a?Je.date:Je.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?Je.number:"date"===a?Je.date:Je.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ze.EXPECT_SELECT_ARGUMENT_OPTIONS,xt(l,tt({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ze.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=xt(n,this.clonePosition());return"select"===a?{val:{type:Je.select,value:r,options:Bt(c.val),location:h},err:null}:{val:{type:Je.plural,value:r,options:Bt(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Ze.INVALID_ARGUMENT_TYPE,xt(o,s))}},$t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},$t.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(Ze.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xt(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}},$t.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(yt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Ze.INVALID_NUMBER_SKELETON,t)}return{val:{type:et.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?wt(r):{}},err:null}},$t.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ze.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=xt(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Ze.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ze.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ze.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;o.push([s,{value:c.val,location:xt(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?Ze.EXPECT_SELECT_ARGUMENT_SELECTOR:Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR,xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Ze.MISSING_OTHER_CLAUSE,xt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},$t.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=xt(n,this.clonePosition());return i?Ot(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},$t.prototype.offset=function(){return this.position.offset},$t.prototype.isEOF=function(){return this.offset()===this.message.length},$t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},$t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ut(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},$t.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},$t.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))},$t.prototype.bumpIf=function(e){if(Mt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},$t.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)},$t.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}},$t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Wt(this.char());)this.bump()},$t.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},$t);function $t(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 zt(e){return 97<=e&&e<=122||65<=e&&e<=90}function Wt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Vt(e,t){t=tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new jt(e,t).parse();if(r.err){e=SyntaxError(Ze[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,st(e)||lt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else it(e)&&ct(e.style)||(ot(e)||at(e))&&ft(e.style)?delete e.style.location:ut(e)&&r(e.children)})}(r.val),r.val}function Xt(e,t){var r=t&&t.cache?t.cache:Jt,n=t&&t.serializer?t.serializer:Yt;return(t&&t.strategy?t.strategy:function(e,t){return Qt(e,this,1===e.length?Ht:qt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ht(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function qt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Qt(e,t,r,n,i){return r.bind(t,e,n,i)}var Yt=function(){return JSON.stringify(arguments)};function Kt(){this.cache=Object.create(null)}Kt.prototype.has=function(e){return e in this.cache},Kt.prototype.get=function(e){return this.cache[e]},Kt.prototype.set=function(e,t){this.cache[e]=t};var Zt,Jt={create:function(){return new Kt}},er={variadic:function(e,t){return Qt(e,this,qt,t.cache.create(),t.serializer)},monadic:function(e,t){return Qt(e,this,Ht,t.cache.create(),t.serializer)}};(pt=Zt=Zt||{}).MISSING_VALUE="MISSING_VALUE",pt.INVALID_VALUE="INVALID_VALUE",pt.MISSING_INTL_API="MISSING_INTL_API";var tr,rr,nr,ir,or,ar=(Ke(hr,or=Error),hr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},hr),sr=(Ke(pr,ir=ar),pr),lr=(Ke(fr,nr=ar),fr),ur=(Ke(cr,rr=ar),cr);function cr(e,t){return rr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Zt.MISSING_VALUE,t)||this}function fr(e,t,r){return nr.call(this,'Value for "'+e+'" must be of type '+t,Zt.INVALID_VALUE,r)||this}function pr(e,t,r,n){return ir.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Zt.INVALID_VALUE,n)||this}function hr(e,t,r){e=or.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function dr(e,t,r,n,i,o,a){if(1===e.length&&nt(e[0]))return[{type:tr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(nt(c))s.push({type:tr.literal,value:c.value});else if(c.type===Je.pound)"number"==typeof o&&s.push({type:tr.literal,value:r.getNumberFormat(t).format(o)});else{var f=c.value;if(!(i&&f in i))throw new ur(f,a);var p=i[f];if(c.type===Je.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?tr.literal:tr.object,value:p});else if(ot(c)){var h="string"==typeof c.style?n.date[c.style]:ft(c.style)?c.style.parsedOptions:void 0;s.push({type:tr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(at(c))h="string"==typeof c.style?n.time[c.style]:ft(c.style)?c.style.parsedOptions:void 0,s.push({type:tr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(it(c))(h="string"==typeof c.style?n.number[c.style]:ct(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:tr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(ut(c)){var d=c.children,y=c.value,f=i[y];if("function"!=typeof f)throw new lr(y,"function",a);d=f(dr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?tr.literal:tr.object,value:e}}))}if(st(c)){if(!(m=c.options[p]||c.options.other))throw new sr(c.value,p,Object.keys(c.options),a);s.push.apply(s,dr(m.value,t,r,n,i))}else if(lt(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new ar('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Zt.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new sr(c.value,p,Object.keys(c.options),a);s.push.apply(s,dr(m.value,t,r,n,i,p-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===tr.literal&&t.type===tr.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}}}}}(pt=tr=tr||{})[pt.literal=0]="literal",pt[pt.object=1]="object";var Cr=(Object.defineProperty(Nr,"defaultLocale",{get:function(){return Nr.memoizedDefaultLocale||(Nr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nr.memoizedDefaultLocale=null,Nr.__parse=Vt,Nr.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"}}},Nr);function Nr(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=Nr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===tr.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 dr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Nr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nr.__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=(i=Nr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?tt(tt(tt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=tt(tt({},r[t]),n[t]||{}),e},{})):r),e},tt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,rt([void 0],t)))},{cache:Ir((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:er.variadic}),getDateTimeFormat:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rt([void 0],t)))},{cache:Ir(n.dateTime),strategy:er.variadic}),getPluralRules:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,rt([void 0],t)))},{cache:Ir(n.pluralRules),strategy:er.variadic})}}const Or={},Dr=(t,r)=>{if(null!=r){if(r in Or&&t in Or[r])return Or[r][t];var n,i,o=qr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,Rr(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 Lr[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in Or||(Or[i]={}),n in Or[i]||(Or[i][n]=a),a)}}};let Lr;const Mr=Fe({});function Rr(e){return e in Lr}function Br(t,...r){delete Or[t],Mr.update(e=>(e[t]=Qe.all([e[t]||{},...r]),e))}Ge([Mr],([e])=>Object.keys(e)),Mr.subscribe(e=>Lr=e);const Ur={};function kr(e){return Ur[e]}function Fr(e){return qr(e).some(e=>{return null===(e=kr(e))||void 0===e?void 0:e.size})}const Gr={};function jr(e){if(!Fr(e))return e in Gr?Gr[e]:void 0;const t=qr(e).map(e=>{var t=kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Gr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Ur[e].delete(t),0===Ur[e].size&&delete Ur[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Br(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete Gr[e]),Gr[e]}function $r(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[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 Wr=Fe(!1);let Vr;const Xr=Fe(null);function Hr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function qr(e,t=zr.fallbackLocale){e=Hr(e);return t?[...new Set([...e,...Hr(t)])]:e}Xr.subscribe(e=>{Vr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qr=Xr.set;Xr.set=t=>{if(function(e){if(null!=e){var t=qr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Rr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=zr;let e;return"undefined"!=typeof window&&null!=Vr&&r?e=window.setTimeout(()=>Wr.set(!0),r):Wr.set(!0),jr(t).then(()=>{Qr(t)}).finally(()=>{clearTimeout(e),Wr.set(!1)})}return Qr(t)},Xr.update=e=>Qr(e(Vr));const Yr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Kr=(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.`)},Zr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kr("number",r)),new Intl.NumberFormat(t,e)}),Jr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kr("date",r):0===Object.keys(e).length&&(e=Kr("date","short")),new Intl.DateTimeFormat(t,e)}),en=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kr("time",r):0===Object.keys(e).length&&(e=Kr("time","short")),new Intl.DateTimeFormat(t,e)}),tn=Yr((e,t=Vr)=>new Cr(e,t,zr.formats,{ignoreTag:zr.ignoreTag})),rn=Ge([Xr,Mr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Vr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Dr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else zr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${qr(n).join('", "')}".${Fr(Vr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let a=o;try{a=tn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return en(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Zr(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr,Mr],()=>(e,t=Vr)=>Dr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Be.indexOf(e)&&(t=new De(t),Ue[e]=t,Be.push(e)),Ue[e]}};const nn={en:{playerProfile:{title:"Profile Info",personalDetails:"Personal Details",userName:"User name:",userPhone:"Phone:",userEmail:"Email:",securityQuestion:"Security Question:",firstName:"First name:",securityAnswer:"Security Answer:",lastName:"Last Name:",dateOfBirth:"Date of birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userAddress:"Address:",userPostalCode:"Postal Code:",userNotifications:"Notifications",userSMSNotification:"Enable SMS notifications",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"}},ro:{playerProfile:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCity:"Oraș:",userAddress:"Adresă:",userPostalCode:"Cod poștal:",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"}}};function on(e,t,r){const n=e.slice();return n[79]=t[r],n}function an(r){let i,n,o,a,s,l,u,c,f,p,h,d,y,m,b,g,v,E,P,_,w,T,A,x,e,S,I,C,N,O,D,L,M,R,B,U,k,F,G,j,$,z,W,V,X,H,q,Q,Y,K,Z,J,ee,te,re,ne,ie,oe,ae,se,le,ue,ce,fe,pe,he,de,ye,me,be,ge,ve,Ee,Pe,_e,we,Te,Ae,xe,Se,Ie,Ce,Ne,Oe,De,Le,Me,Re,Be,Ue,ke,Fe,Ge,je,$e,ze,We,Ve,Xe,He,qe,Qe,Ye,Ke,Ze,Je,et,tt,rt,nt,it,ot,at,st,lt,ut,ct,ft,pt,ht,dt,yt,mt,bt,gt,vt,Et,Pt,_t,wt,Tt,At,xt,St,It,Ct,Nt,Ot,Dt,Lt,Mt,Rt,Bt,Ut,kt,Ft,Gt,jt=r[28]("playerProfile.title")+"",$t=r[28]("playerProfile.personalDetails")+"",zt=r[28]("playerProfile.userName")+"",Wt=r[28]("playerProfile.userPhone")+"",Vt=r[28]("playerProfile.userEmail")+"",Xt=r[28]("playerProfile.securityQuestion")+"",Ht=r[28]("playerProfile.firstName")+"",qt=r[28]("playerProfile.securityAnswer")+"",Qt=r[28]("playerProfile.lastName")+"",Yt=r[28]("playerProfile.dateOfBirth")+"",Kt=r[28]("playerProfile.currency")+"",Zt=r[28]("playerProfile.userTitle")+"",Jt=r[28]("playerProfile.locationDetails")+"",er=r[28]("playerProfile.userCountry")+"",tr=r[28]("playerProfile.userCity")+"",rr=r[28]("playerProfile.userAddress")+"",nr=r[28]("playerProfile.userPostalCode")+"",ir=r[28]("playerProfile.userNotifications")+"",or=r[28]("playerProfile.userSMSNotification")+"",ar=r[28]("playerProfile.userEmailNotification")+"",sr=r[28]("playerProfile.userProfileSaveChanges")+"",lr=r[29]&&function(r){let n,i,o,a,s,l,u,c,f,p,h,d,y,m=r[28]("playerProfile.title")+"";return{c(){n=t("div"),i=vr("svg"),o=vr("defs"),a=vr("style"),s=Er(".aaa{fill:#d0046c;}"),l=vr("g"),u=vr("g"),c=vr("path"),f=Pr(),p=t("h2"),h=Er(m),wr(c,"class","aaa"),wr(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),wr(c,"transform","translate(15 15) rotate(180)"),wr(u,"transform","translate(20 158)"),wr(l,"transform","translate(-20 -158)"),wr(i,"xmlns","http://www.w3.org/2000/svg"),wr(i,"width","15"),wr(i,"height","15"),wr(i,"viewBox","0 0 15 15"),wr(p,"class","MyAccountCategoryTitleMobile"),wr(n,"class","MenuReturnButton")},m(e,t){br(e,n,t),mr(n,i),mr(i,o),mr(o,a),mr(a,s),mr(i,l),mr(l,u),mr(u,c),mr(n,f),mr(n,p),mr(p,h),d||(y=_r(n,"click",r[44]),d=!0)},p(e,t){268435456&t[0]&&m!==(m=e[28]("playerProfile.title")+"")&&Tr(h,m)},d(e){e&&gr(n),d=!1,y()}}}(r),ur=r[12],cr=[];for(let e=0;e<ur.length;e+=1)cr[e]=un(on(r,ur,e));let fr=r[13]&&cn(),pr=r[15]&&fn(),hr=r[14]&&pn(),dr=r[16]&&hn(r);return{c(){i=t("form"),lr&&lr.c(),n=Pr(),o=t("h2"),a=Er(jt),s=Pr(),l=t("div"),u=t("h3"),c=Er($t),f=Pr(),p=t("section"),h=t("div"),d=t("label"),y=Er(zt),m=Pr(),b=t("input"),g=Pr(),v=t("div"),E=t("label"),P=Er(Wt),_=Pr(),w=t("div"),T=t("select");for(let e=0;e<cr.length;e+=1)cr[e].c();A=Pr(),x=t("input"),S=Pr(),I=t("div"),C=t("label"),N=Er(Vt),O=Pr(),D=t("input"),L=Pr(),M=t("div"),R=t("label"),B=Er(Xt),U=Pr(),k=t("input"),G=Pr(),j=t("div"),$=t("label"),z=Er(Ht),W=Pr(),V=t("input"),X=Pr(),H=t("div"),q=t("label"),Q=Er(qt),Y=Pr(),K=t("input"),J=Pr(),ee=t("div"),te=t("label"),re=Er(Qt),ne=Pr(),ie=t("input"),oe=Pr(),ae=t("div"),se=t("label"),le=Er(Yt),ue=Pr(),ce=t("input"),fe=Pr(),pe=t("div"),he=t("label"),de=Er(Kt),ye=Pr(),me=t("input"),be=Pr(),ge=t("div"),ve=t("label"),Ee=Er(Zt),Pe=Pr(),_e=t("input"),we=Pr(),Te=t("div"),Ae=t("h3"),xe=Er(Jt),Se=Pr(),Ie=t("section"),Ce=t("div"),Ne=t("label"),Oe=Er(er),De=Pr(),Le=t("input"),Re=Pr(),Be=t("div"),Ue=t("label"),ke=Er(tr),Fe=Pr(),Ge=t("input"),ze=Pr(),fr&&fr.c(),Ve=Pr(),Xe=t("div"),He=t("label"),qe=Er(rr),Qe=Pr(),Ye=t("input"),Ze=Pr(),pr&&pr.c(),et=Pr(),tt=t("div"),rt=t("label"),nt=Er(nr),it=Pr(),ot=t("input"),lt=Pr(),hr&&hr.c(),ct=Pr(),ft=t("div"),pt=t("h3"),ht=Er(ir),dt=Pr(),yt=t("section"),mt=t("div"),bt=t("label"),gt=t("input"),vt=Pr(),Et=t("span"),Pt=Pr(),_t=t("span"),wt=Er(or),Tt=Pr(),At=t("div"),xt=t("label"),St=t("input"),It=Pr(),Ct=t("span"),Nt=Pr(),Ot=t("span"),Dt=Er(ar),Lt=Pr(),Mt=t("section"),Rt=t("div"),Bt=Er(sr),kt=Pr(),dr&&dr.c(),wr(o,"class","MyAccountCategoryTitle "+(r[29]?"MyAccountCategoryTitleNone":"")),wr(l,"class","PlayerNotificationsHeader"),wr(b,"type","text"),wr(b,"class","FieldDisabled"),b.value=r[26],b.readOnly=!0,wr(h,"class","PlayerInfoBox"),void 0===r[8]&&Sr(()=>r[45].call(T)),wr(x,"type","text"),wr(x,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),wr(x,"placeholder",e=r[0]?r[21].number:""),wr(w,"class","PlayerPhoneNumber"),wr(v,"class","PlayerInfoBox"),wr(D,"type","email"),wr(D,"class","FieldDisabled"),D.value=r[22],D.readOnly=!0,wr(I,"class","PlayerInfoBox"),wr(k,"type","text"),wr(k,"placeholder",F=r[0]?r[35]:""),wr(M,"class","PlayerInfoBox"),wr(V,"type","text"),wr(V,"class","FieldDisabled"),V.value=r[23],V.readOnly=!0,wr(j,"class","PlayerInfoBox"),wr(K,"type","text"),wr(K,"placeholder",Z=r[0]?r[34]:""),wr(H,"class","PlayerInfoBox"),wr(ie,"type","text"),wr(ie,"class","FieldDisabled"),ie.value=r[25],ie.readOnly=!0,wr(ee,"class","PlayerInfoBox"),wr(ce,"type","text"),wr(ce,"class","FieldDisabled"),ce.value=r[18],ce.readOnly=!0,wr(ae,"class","PlayerInfoBox"),wr(me,"type","text"),wr(me,"class","FieldDisabled"),me.value=r[20],me.readOnly=!0,wr(pe,"class","PlayerInfoBox"),wr(_e,"type","text"),wr(_e,"class","FieldDisabled"),_e.value=r[24],_e.readOnly=!0,wr(ge,"class","PlayerInfoBox"),wr(p,"class","PlayerDetailsContent"),wr(Te,"class","PlayerLocationHeader"),wr(Le,"type","text"),wr(Le,"class","PlayerCountry FieldDisabled"),wr(Le,"placeholder",r[19]),Le.value=Me=r[11].Name,Le.readOnly=!0,wr(Ce,"class","PlayerInfoBox"),wr(Ge,"type","text"),wr(Ge,"placeholder",je=r[0]?r[32]:""),Ge.value=$e=r[0]?"":r[17].city,wr(Be,"class",We="PlayerInfoBox "+(r[13]?"InvalidField":"")),wr(Ye,"placeholder",r[31]),wr(Ye,"type","text"),Ye.value=Ke=r[0]?"":r[17].address,wr(Xe,"class",Je="PlayerInfoBox "+(r[15]?"InvalidField":"")),wr(ot,"type","number"),wr(ot,"placeholder",at=r[0]?r[33]:""),ot.value=st=r[0]?"":r[17].postalCode,wr(tt,"class",ut="PlayerInfoBox "+(r[14]?"InvalidField":"")),wr(Ie,"class","PlayerLocationContent"),wr(ft,"class","PlayerNotificationsHeader"),wr(gt,"type","checkbox"),wr(gt,"id","SMSNotification"),wr(gt,"name","Enable SMS notifications"),wr(Et,"class","Checkmark"),wr(bt,"for","SMSNotification"),wr(mt,"class","PlayerNotificationBox"),wr(St,"type","checkbox"),wr(St,"id","EmailNotification"),wr(St,"name","Enable Emails"),wr(Ct,"class","Checkmark"),wr(xt,"for","EmailNotification"),wr(At,"class","PlayerNotificationBox"),wr(yt,"class","PlayerNotificationsCheckboxArea"),wr(Rt,"class",Ut="PlayerDetailsSaveButton "+(r[10]&&r[27]?"":"PlayerButtonDisabled")),wr(Mt,"class","PlayerDetailsButtonsArea "+(r[29]?"PlayerDetailsButtonsAreaMobile":"")),wr(i,"class","PlayerInfoWrapper "+(r[29]?"PlayerInfoWrapperMobile":"")+" "+(r[30].matches&&r[29]?"PlayerInfoWrapperTablet":""))},m(e,t){br(e,i,t),lr&&lr.m(i,null),mr(i,n),mr(i,o),mr(o,a),mr(i,s),mr(i,l),mr(l,u),mr(u,c),mr(i,f),mr(i,p),mr(p,h),mr(h,d),mr(d,y),mr(h,m),mr(h,b),mr(p,g),mr(p,v),mr(v,E),mr(E,P),mr(v,_),mr(v,w),mr(w,T);for(let e=0;e<cr.length;e+=1)cr[e].m(T,null);xr(T,r[8]),mr(w,A),mr(w,x),Ar(x,r[9]),mr(p,S),mr(p,I),mr(I,C),mr(C,N),mr(I,O),mr(I,D),mr(p,L),mr(p,M),mr(M,R),mr(R,B),mr(M,U),mr(M,k),Ar(k,r[6]),mr(p,G),mr(p,j),mr(j,$),mr($,z),mr(j,W),mr(j,V),mr(p,X),mr(p,H),mr(H,q),mr(q,Q),mr(H,Y),mr(H,K),Ar(K,r[7]),mr(p,J),mr(p,ee),mr(ee,te),mr(te,re),mr(ee,ne),mr(ee,ie),mr(p,oe),mr(p,ae),mr(ae,se),mr(se,le),mr(ae,ue),mr(ae,ce),mr(p,fe),mr(p,pe),mr(pe,he),mr(he,de),mr(pe,ye),mr(pe,me),mr(p,be),mr(p,ge),mr(ge,ve),mr(ve,Ee),mr(ge,Pe),mr(ge,_e),mr(i,we),mr(i,Te),mr(Te,Ae),mr(Ae,xe),mr(i,Se),mr(i,Ie),mr(Ie,Ce),mr(Ce,Ne),mr(Ne,Oe),mr(Ce,De),mr(Ce,Le),mr(Ie,Re),mr(Ie,Be),mr(Be,Ue),mr(Ue,ke),mr(Be,Fe),mr(Be,Ge),r[53](Ge),mr(Be,ze),fr&&fr.m(Be,null),mr(Ie,Ve),mr(Ie,Xe),mr(Xe,He),mr(He,qe),mr(Xe,Qe),mr(Xe,Ye),r[55](Ye),mr(Xe,Ze),pr&&pr.m(Xe,null),mr(Ie,et),mr(Ie,tt),mr(tt,rt),mr(rt,nt),mr(tt,it),mr(tt,ot),r[57](ot),mr(tt,lt),hr&&hr.m(tt,null),mr(i,ct),mr(i,ft),mr(ft,pt),mr(pt,ht),mr(i,dt),mr(i,yt),mr(yt,mt),mr(mt,bt),mr(bt,gt),gt.checked=r[4],mr(bt,vt),mr(bt,Et),mr(bt,Pt),mr(bt,_t),mr(_t,wt),mr(yt,Tt),mr(yt,At),mr(At,xt),mr(xt,St),St.checked=r[5],mr(xt,It),mr(xt,Ct),mr(xt,Nt),mr(xt,Ot),mr(Ot,Dt),mr(i,Lt),mr(i,Mt),mr(Mt,Rt),mr(Rt,Bt),mr(i,kt),dr&&dr.m(i,null),Ft||(Gt=[_r(T,"change",r[45]),_r(T,"change",r[46]),_r(x,"input",r[47]),_r(x,"keyup",r[48]),_r(k,"input",r[49]),_r(k,"keyup",r[50]),_r(K,"input",r[51]),_r(K,"keyup",r[52]),_r(Ge,"blur",r[36]),_r(Ge,"keyup",r[54]),_r(Ye,"blur",r[38]),_r(Ye,"keyup",r[56]),_r(ot,"blur",r[37]),_r(ot,"keyup",r[58]),_r(gt,"change",r[59]),_r(gt,"change",r[41]),_r(St,"change",r[60]),_r(St,"change",r[41]),_r(Rt,"click",r[61])],Ft=!0)},p(t,r){if(t[29]&&lr.p(t,r),268435456&r[0]&&jt!==(jt=t[28]("playerProfile.title")+"")&&Tr(a,jt),268435456&r[0]&&$t!==($t=t[28]("playerProfile.personalDetails")+"")&&Tr(c,$t),268435456&r[0]&&zt!==(zt=t[28]("playerProfile.userName")+"")&&Tr(y,zt),67108864&r[0]&&b.value!==t[26]&&(b.value=t[26]),268435456&r[0]&&Wt!==(Wt=t[28]("playerProfile.userPhone")+"")&&Tr(P,Wt),135168&r[0]){let e;for(ur=t[12],e=0;e<ur.length;e+=1){var n=on(t,ur,e);cr[e]?cr[e].p(n,r):(cr[e]=un(n),cr[e].c(),cr[e].m(T,null))}for(;e<cr.length;e+=1)cr[e].d(1);cr.length=ur.length}4352&r[0]&&xr(T,t[8]),2097153&r[0]&&e!==(e=t[0]?t[21].number:"")&&wr(x,"placeholder",e),512&r[0]&&x.value!==t[9]&&Ar(x,t[9]),268435456&r[0]&&Vt!==(Vt=t[28]("playerProfile.userEmail")+"")&&Tr(N,Vt),4194304&r[0]&&D.value!==t[22]&&(D.value=t[22]),268435456&r[0]&&Xt!==(Xt=t[28]("playerProfile.securityQuestion")+"")&&Tr(B,Xt),1&r[0]&&F!==(F=t[0]?t[35]:"")&&wr(k,"placeholder",F),64&r[0]&&k.value!==t[6]&&Ar(k,t[6]),268435456&r[0]&&Ht!==(Ht=t[28]("playerProfile.firstName")+"")&&Tr(z,Ht),8388608&r[0]&&V.value!==t[23]&&(V.value=t[23]),268435456&r[0]&&qt!==(qt=t[28]("playerProfile.securityAnswer")+"")&&Tr(Q,qt),1&r[0]&&Z!==(Z=t[0]?t[34]:"")&&wr(K,"placeholder",Z),128&r[0]&&K.value!==t[7]&&Ar(K,t[7]),268435456&r[0]&&Qt!==(Qt=t[28]("playerProfile.lastName")+"")&&Tr(re,Qt),33554432&r[0]&&ie.value!==t[25]&&(ie.value=t[25]),268435456&r[0]&&Yt!==(Yt=t[28]("playerProfile.dateOfBirth")+"")&&Tr(le,Yt),262144&r[0]&&ce.value!==t[18]&&(ce.value=t[18]),268435456&r[0]&&Kt!==(Kt=t[28]("playerProfile.currency")+"")&&Tr(de,Kt),1048576&r[0]&&me.value!==t[20]&&(me.value=t[20]),268435456&r[0]&&Zt!==(Zt=t[28]("playerProfile.userTitle")+"")&&Tr(Ee,Zt),16777216&r[0]&&_e.value!==t[24]&&(_e.value=t[24]),268435456&r[0]&&Jt!==(Jt=t[28]("playerProfile.locationDetails")+"")&&Tr(xe,Jt),268435456&r[0]&&er!==(er=t[28]("playerProfile.userCountry")+"")&&Tr(Oe,er),524288&r[0]&&wr(Le,"placeholder",t[19]),2048&r[0]&&Me!==(Me=t[11].Name)&&Le.value!==Me&&(Le.value=Me),268435456&r[0]&&tr!==(tr=t[28]("playerProfile.userCity")+"")&&Tr(ke,tr),1&r[0]&&je!==(je=t[0]?t[32]:"")&&wr(Ge,"placeholder",je),131073&r[0]&&$e!==($e=t[0]?"":t[17].city)&&Ge.value!==$e&&(Ge.value=$e),t[13]?fr||(fr=cn(),fr.c(),fr.m(Be,null)):fr&&(fr.d(1),fr=null),8192&r[0]&&We!==(We="PlayerInfoBox "+(t[13]?"InvalidField":""))&&wr(Be,"class",We),268435456&r[0]&&rr!==(rr=t[28]("playerProfile.userAddress")+"")&&Tr(qe,rr),131073&r[0]&&Ke!==(Ke=t[0]?"":t[17].address)&&Ye.value!==Ke&&(Ye.value=Ke),t[15]?pr||(pr=fn(),pr.c(),pr.m(Xe,null)):pr&&(pr.d(1),pr=null),32768&r[0]&&Je!==(Je="PlayerInfoBox "+(t[15]?"InvalidField":""))&&wr(Xe,"class",Je),268435456&r[0]&&nr!==(nr=t[28]("playerProfile.userPostalCode")+"")&&Tr(nt,nr),1&r[0]&&at!==(at=t[0]?t[33]:"")&&wr(ot,"placeholder",at),131073&r[0]&&st!==(st=t[0]?"":t[17].postalCode)&&(ot.value=st),t[14]?hr||(hr=pn(),hr.c(),hr.m(tt,null)):hr&&(hr.d(1),hr=null),16384&r[0]&&ut!==(ut="PlayerInfoBox "+(t[14]?"InvalidField":""))&&wr(tt,"class",ut),268435456&r[0]&&ir!==(ir=t[28]("playerProfile.userNotifications")+"")&&Tr(ht,ir),16&r[0]&&(gt.checked=t[4]),268435456&r[0]&&or!==(or=t[28]("playerProfile.userSMSNotification")+"")&&Tr(wt,or),32&r[0]&&(St.checked=t[5]),268435456&r[0]&&ar!==(ar=t[28]("playerProfile.userEmailNotification")+"")&&Tr(Dt,ar),268435456&r[0]&&sr!==(sr=t[28]("playerProfile.userProfileSaveChanges")+"")&&Tr(Bt,sr),134218752&r[0]&&Ut!==(Ut="PlayerDetailsSaveButton "+(t[10]&&t[27]?"":"PlayerButtonDisabled"))&&wr(Rt,"class",Ut),t[16]?dr?dr.p(t,r):(dr=hn(t),dr.c(),dr.m(i,null)):dr&&(dr.d(1),dr=null)},d(e){e&&gr(i),lr&&lr.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(cr,e),r[53](null),fr&&fr.d(),r[55](null),pr&&pr.d(),r[57](null),hr&&hr.d(),dr&&dr.d(),Ft=!1,yr(Gt)}}}function sn(e){let r,n,i,o=e[79].Prefix+"";return{c(){r=t("option"),n=Er(o),r.__value=i=e[79].Prefix,r.value=r.__value},m(e,t){br(e,r,t),mr(r,n)},p(e,t){4096&t[0]&&o!==(o=e[79].Prefix+"")&&Tr(n,o),4096&t[0]&&i!==(i=e[79].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&gr(r)}}}function ln(e){let r,n,i,o=e[79].Prefix+"";return{c(){r=t("option"),n=Er(o),r.selected=!0,r.__value=i=e[79].Prefix,r.value=r.__value},m(e,t){br(e,r,t),mr(r,n)},p(e,t){4096&t[0]&&o!==(o=e[79].Prefix+"")&&Tr(n,o),4096&t[0]&&i!==(i=e[79].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&gr(r)}}}function un(e){let r;function n(e){return e[79].Prefix===e[17].mobiePrefix?ln:sn}let i=n(e),o=i(e);return{c(){o.c(),r=a()},m(e,t){o.m(e,t),br(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&gr(r)}}}function cn(){let r;return{c(){r=t("p"),r.textContent="City must be at least 1 character long and 50 characters maximum.",wr(r,"class","InvalidInput")},m(e,t){br(e,r,t)},d(e){e&&gr(r)}}}function fn(){let r;return{c(){r=t("p"),r.textContent="Address must be at least 1 character long and 100 characters maximum.",wr(r,"class","InvalidInput")},m(e,t){br(e,r,t)},d(e){e&&gr(r)}}}function pn(){let r;return{c(){r=t("p"),r.textContent="Postal Code must be at least 1 character long and 20 characters maximum.",wr(r,"class","InvalidInput")},m(e,t){br(e,r,t)},d(e){e&&gr(r)}}}function hn(e){let r,n,i,o=e[28]("playerProfile.userProfileConfirmationMessage")+"";return{c(){r=t("section"),n=t("p"),i=Er(o),wr(n,"class","PlayerDetailsConfirmSaveText"),wr(r,"class","PlayerDetailsConfirmSave")},m(e,t){br(e,r,t),mr(r,n),mr(n,i)},p(e,t){268435456&t[0]&&o!==(o=e[28]("playerProfile.userProfileConfirmationMessage")+"")&&Tr(i,o)},d(e){e&&gr(r)}}}function dn(e){let r,n=an(e);return{c(){n.c(),r=a(),this.c=f},m(e,t){n.m(e,t),br(e,r,t)},p(e,t){n.p(e,t)},i:f,o:f,d(e){n.d(e),e&&gr(r)}}}function yn(t,e,r){let n;var i=rn;t.$$.on_destroy.push(Z(i,e=>r(28,n=e)));let o,a,s,{endpoint:l=""}=e,{lang:u="en"}=e,c="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!0,p=!1,h=!1,d="",y="",m="",b="",g=!1,v={},E=[],P=[],_="",w="",T="",A=!1;Object.keys(nn).forEach(e=>{Br(e,nn[e])});e=window.matchMedia("(min-width: 768px)");let x={address1:"",address2:"",city:"",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},S={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},I={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:C,birth:N,city:O,country:D,currency:L,mobile:M,email:R,firstname:B,userTitles:U,language:k,lastname:F,postalCode:G,securityAnswer:j,securityQuestion:$,username:z}=I;const W=e=>{if(e.data)switch(e.data.type){case"ProfileDetailsData":r(0,f=!1),I=e.data.profileDetails,r(26,z=I.username),r(21,M=I.mobile),r(22,R=I.email),r(23,B=I.firstname),r(25,F=I.lastname),k=I.language,r(18,N=I.birth.day+"/"+I.birth.month+"/"+I.birth.year),r(20,L=I.currency),r(24,U=I.title),r(19,D=I.country),r(11,v=P.find(e=>e.Alpha2Code===I.country)),r(4,p=I.consents.acceptSMSOffers),r(5,h=I.consents.acceptNewsEmail),r(6,d=I.securityQuestion),r(7,y=I.securityAnswer),r(8,m=I.mobile.prefix),r(9,b=I.mobile.number),r(17,S={address:I.address1,city:I.city,acceptNewsEmail:I.consents.acceptNewsEmail,acceptSMSOffers:I.consents.acceptSMSOffers,mobilePrefix:M.prefix,mobileNumber:M.number,postalCode:I.postalCode,securityAnswer:I.securityAnswer,securityQuestion:I.securityQuestion});break;case"ConfirmProfileInfoSave":r(10,g=!1),V()}},V=()=>{r(16,A=!0),setTimeout(()=>{r(16,A=!1)},3e3)};let X=!1;const H=()=>{d.length<=0||y.length<=0||_||T||w||b.length<=0?r(27,X=!1):r(27,X=!0)},q=()=>{1==g&&1==X&&window.postMessage({type:"UpdatePlayerInfo",provisionalArray:x},window.location.href)},Q=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},Y=()=>{x={acceptNewsEmail:h,acceptSMSOffers:p,address:a.value,city:s.value,mobileNumber:b,mobilePrefix:m,postalCode:o.value,securityAnswer:y,securityQuestion:d},K(x,S),H()},K=(e,t)=>{JSON.stringify(e)===JSON.stringify(t)?r(10,g=!1):r(10,g=!0)};return i=()=>(window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W)}),function(){if(!J)throw new Error("Function called outside component initialization");return J}().$$.on_mount.push(i),t.$$set=e=>{"endpoint"in e&&r(42,l=e.endpoint),"lang"in e&&r(43,u=e.lang)},t.$$.update=()=>{var e;4096&t.$$.dirty[1]&&u&&(e=u,Xr.set(e)),2048&t.$$.dirty[1]&&l&&fetch(`${l}/player/countries`).then(e=>e.json()).then(e=>{P=e.countries}),2048&t.$$.dirty[1]&&l&&fetch(`${l}/player/phonecodes`).then(e=>e.json()).then(e=>{r(12,E=e.phoneCodes)})},[f,o,a,s,p,h,d,y,m,b,g,v,E,_,w,T,A,S,N,D,L,M,R,B,U,F,z,X,n,c,e,C,O,G,j,$,()=>{r(13,_=!(s.value&&s.value.length<=50)),H()},()=>{r(14,w=!(o.value&&o.value.length<=20)),H()},()=>{r(15,T=!(a.value&&a.value.length<=100)),H()},q,Q,Y,l,u,()=>Q(),function(){m=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(8,m),r(12,E)},()=>Y(),function(){b=this.value,r(9,b)},()=>Y(),function(){d=this.value,r(6,d)},()=>Y(),function(){y=this.value,r(7,y)},()=>Y(),function(e){ee[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>Y(),function(e){ee[e?"unshift":"push"](()=>{a=e,r(2,a)})},()=>Y(),function(e){ee[e?"unshift":"push"](()=>{o=e,r(1,o)})},()=>Y(),function(){p=this.checked,r(4,p)},function(){h=this.checked,r(5,h)},()=>q()]}class mn 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'}.MyAccountCategoryTitle{font-size:26px;color:#D0046C;font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:#D0046C}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:#07072A;background:#F9F8F8;padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:#D0046C;text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;background:#FFF;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox.InvalidField input{border:1px solid #FD2839;background:#FFF1F1;color:#FD2839}.PlayerInfoBox .InvalidInput{color:#FD2839;font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:#07072A;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:#D1D1D1;cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:#D0046C}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#07072A;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:#9e0352}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:#F9F8F8;max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:#58586B}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:#07072A;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:#fff}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:#fff}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:#0cdc13;color:#fff;padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>",s(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},yn,dn,r,{endpoint:42,lang:43},[-1,-1,-1]),e&&(e.target&&br(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["endpoint","lang"]}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$set({endpoint:e}),v()}get lang(){return this.$$.ctx[43]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("player-profile-info")||customElements.define("player-profile-info",mn),mn});
|
|
2
2
|
//# sourceMappingURL=player-profile-info.js.map
|