@everymatrix/player-account-timeout 0.0.284 → 0.0.287

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 L(){}function f(e){return e()}function p(){return Object.create(null)}function C(e){e.forEach(f)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return L;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function I(e,t){e.appendChild(t)}function N(e,t,r){e.insertBefore(t,r||null)}function R(e){e.parentNode.removeChild(e)}function M(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function U(e){return document.createTextNode(e)}function D(){return U(" ")}function F(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function k(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function G(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function j(t,r){for(let e=0;e<t.options.length;e+=1){const o=t.options[e];if(o.__value===r)return o.selected=!0,0}}let d;function y(e){d=e}const g=[],e=[],o=[],n=[],b=Promise.resolve();let v=!1;function $(e){o.push(e)}let i=!1;const s=new Set;function E(){if(!i){i=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),C(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($))}}(t.$$)}for(y(null),g.length=0;e.length;)e.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];s.has(r)||(s.add(r),r())}}while(o.length=0,g.length);for(;n.length;)n.pop()();v=!1,i=!1,s.clear()}}const T=new Set;function a(o,e,t,r,n,i,s=[-1]){var a,u=d;y(o);const c=o.$$={fragment:null,ctx:null,props:i,update:L,not_equal:n,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let l=!1;if(c.ctx=t?t(o,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),l&&(r=e,-1===(e=o).$$.dirty[0]&&(g.push(e),v||(v=!0,b.then(E)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),l=!0,C(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const L=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(L),L.forEach(R)}else c.fragment&&c.fragment.c();e.intro&&(a=o.$$.fragment)&&a.i&&(T.delete(a),a.i(void 0)),function(t,e,r,o){const{fragment:n,on_mount:i,on_destroy:s,after_update:a}=t.$$;n&&n.m(e,r),o||$(()=>{var e=i.map(f).filter(h);s?s.push(...e):C(e),t.$$.on_mount=[]}),a.forEach($)}(o,e.target,e.anchor,e.customElement),E()}y(u)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(f).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){C(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(C(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=L}$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 c,l,_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==_&&_,w="URLSearchParams"in _,A="Symbol"in _&&"iterator"in Symbol,S="FileReader"in _&&"Blob"in _&&function(){try{return new Blob,!0}catch(e){return!1}}(),P="FormData"in _,x="ArrayBuffer"in _;function O(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 B(e){return e="string"!=typeof e?String(e):e}function z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A&&(e[Symbol.iterator]=function(){return e}),e}function V(t){this.map={},t instanceof V?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 X(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function W(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function q(e){var t=new FileReader,r=W(t);return t.readAsArrayBuffer(e),r}function H(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:S&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:P&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:w&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():x&&S&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=H(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=H(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):w&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S&&(this.blob=function(){var e=X(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?X(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(q)}),this.text=function(){var e,t,r=X(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=W(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),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},P&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}x&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),V.prototype.append=function(e,t){e=O(e),t=B(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},V.prototype.delete=function(e){delete this.map[O(e)]},V.prototype.get=function(e){return e=O(e),this.has(e)?this.map[e]:null},V.prototype.has=function(e){return this.map.hasOwnProperty(O(e))},V.prototype.set=function(e,t){this.map[O(e)]=B(t)},V.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},V.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),z(r)},V.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),z(t)},V.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),z(r)},A&&(V.prototype[Symbol.iterator]=V.prototype.entries);var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Z(e,t){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(t=t||{}).body;if(e instanceof Z){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new V(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 V(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<K.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)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"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 J(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 Q(e,t){if(!(this instanceof Q))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 V(t.headers),this.url=t.url||"",this._initBody(e)}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})},Y.call(Z.prototype),Y.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new V(this.headers),url:this.url})},Q.error=function(){var e=new Q(null,{status:0,statusText:""});return e.type="error",e};var ee=[301,302,303,307,308];Q.redirect=function(e,t){if(-1===ee.indexOf(t))throw new RangeError("Invalid status code");return new Q(null,{status:t,headers:{location:e}})};var te=_.DOMException;try{new te}catch(L){(te=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),te.prototype.constructor=te}function re(o,s){return new Promise(function(n,e){var t=new Z(o,s);if(t.signal&&t.signal.aborted)return e(new te("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 V,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 o="response"in i?i.response:i.responseText;setTimeout(function(){n(new Q(o,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 te("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&_.location.href?_.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(S?i.responseType="blob":x&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof V?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,B(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}re.polyfill=!0,_.fetch||(_.fetch=re,_.Headers=V,_.Request=Z,_.Response=Q),self.fetch.bind(self);var oe=function(e,t){return(oe=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 ne(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}oe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ie(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&o>=e.length?void 0:e)&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function ae(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e}function ue(e){return"function"==typeof e}function ce(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 le=ce(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 fe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var pe=(me.prototype.unsubscribe=function(){var e,t,r,o,n;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ie(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(ue(i))try{i()}catch(e){n=e instanceof le?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var u=ie(i),c=u.next();!c.done;c=u.next()){var l=c.value;try{ye(l)}catch(e){n=null!=n?n:[],e instanceof le?n=ae(ae([],se(n)),se(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}if(n)throw new le(n)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ye(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fe(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&fe(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((kt=new me).closed=!0,kt),me),he=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function de(e){return e instanceof pe||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function ye(e){ue(e)?e():e.unsubscribe()}var ge=void 0,be=!1,ve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,ae([],se(e)))};function Ee(){}function Te(e){e()}var _e,we,Ae=(ne(xe,we=pe),xe.create=function(e,t,r){return new Se(e,t,r)},xe.prototype.next=function(e){this.isStopped||this._next(e)},xe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},xe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},xe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,we.prototype.unsubscribe.call(this),this.destination=null)},xe.prototype._next=function(e){this.destination.next(e)},xe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},xe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},xe),Se=(ne(Pe,_e=Ae),Pe);function Pe(e,t,r){var o,n,i=_e.call(this)||this;return ue(e)?n=e:e&&(n=e.next,t=e.error,r=e.complete,i&&be?(o=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:o=e,n=null==n?void 0:n.bind(o),t=null==t?void 0:t.bind(o),r=null==r?void 0:r.bind(o)),i.destination={next:n?Oe(n):Ee,error:Oe(null!=t?t:Le),complete:r?Oe(r):Ee},i}function xe(e){var t=we.call(this)||this;return t.isStopped=!1,e?de(t.destination=e)&&e.add(t):t.destination=Ce,t}function Oe(o){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{o.apply(void 0,ae([],se(e)))}catch(e){t=e,ve(function(){throw t})}}}function Le(e){throw e}var Ce={closed:!0,next:Ee,error:Le,complete:Ee},Ie="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ne(e){return e}var Re=(Me.prototype.lift=function(e){var t=new Me;return t.source=this,t.operator=e,t},Me.prototype.subscribe=function(e,t,r){var o,n=this,i=(o=e)&&o instanceof Ae||o&&ue(o.next)&&ue(o.error)&&ue(o.complete)&&de(o)?e:new Se(e,t,r);return Te(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},Me.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Me.prototype.forEach=function(o,e){var n=this;return new(e=Ue(e))(function(e,t){var r=n.subscribe(function(e){try{o(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Me.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Me.prototype[Ie]=function(){return this},Me.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ne:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Me.prototype.toPromise=function(e){var o=this;return new(e=Ue(e))(function(e,t){var r;o.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Me.create=function(e){return new Me(e)},Me);function Me(e){e&&(this._subscribe=e)}function Ue(e){return null!==(e=null!=e?e:ge)&&void 0!==e?e:Promise}var De,Fe,ke,Ge=ce(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),je=(ne(We,ke=Re),We.prototype.lift=function(e){var t=new $e(this,this);return t.operator=e,t},We.prototype._throwIfClosed=function(){if(this.closed)throw new Ge},We.prototype.next=function(i){var s=this;Te(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var o=ie(r),n=o.next();!n.done;n=o.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}})},We.prototype.error=function(t){var r=this;Te(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)}})},We.prototype.complete=function(){var t=this;Te(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},We.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(We.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),We.prototype._trySubscribe=function(e){return this._throwIfClosed(),ke.prototype._trySubscribe.call(this,e)},We.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},We.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,o=this.observers;return t||r?he:(o.push(e),new pe(function(){return fe(o,e)}))},We.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,o=this.isStopped;t?e.error(r):o&&e.complete()},We.prototype.asObservable=function(){var e=new Re;return e.source=this,e},We.create=function(e,t){return new $e(e,t)},We),$e=(ne(Xe,Fe=je),Xe.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)},Xe.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)},Xe.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)},Xe.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:he},Xe),Be={now:function(){return(Be.delegate||Date).now()},delegate:void 0},ze=(ne(Ve,De=je),Ve.prototype.next=function(e){var t=this,r=t.isStopped,o=t._buffer,n=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(o.push(e),n||o.push(i.now()+t)),this._trimBuffer(),De.prototype.next.call(this,e)},Ve.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!e.closed;n+=r?1:2)e.next(o[n]);return this._checkFinalizedStatuses(e),t},Ve.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Ve);function Ve(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Be);var o=De.call(this)||this;return o._bufferSize=e,o._windowTime=t,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=t===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,t),o}function Xe(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function We(){var e=ke.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let qe=[],He={};const Ye=[];function Ke(o,n=L){let i;const s=[];function a(e){if(r(o,e)&&(o=e,i)){const e=!Ye.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),Ye.push(t,o)}if(e){for(let e=0;e<Ye.length;e+=2)Ye[e][0](Ye[e+1]);Ye.length=0}}}return{set:a,update:function(e){a(e(o))},subscribe:function(e,t=L){const r=[e,t];return s.push(r),1===s.length&&(i=n(a)||L),e(o),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function Ze(e,a,t){const u=!Array.isArray(e),c=u?[e]:e,l=a.length<2;return{subscribe:Ke(t,t=>{let r=!1;const o=[];let n=0,i=L;const s=()=>{var e;n||(i(),e=a(u?o[0]:o,t),l?t(e):i=h(e)?e:L)},e=c.map((e,t)=>m(e,e=>{o[t]=e,n&=~(1<<t),r&&s()},()=>{n|=1<<t}));return r=!0,s(),function(){C(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===Qe));var t},Qe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function et(e,t){return!1!==t.clone&&t.isMergeableObject(e)?it(Array.isArray(e)?[]:{},e,t):e}function tt(e,t,r){return e.concat(t).map(function(e){return et(e,r)})}function rt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ot(e,t){try{return t in e}catch(e){return!1}}function nt(o,n,i){var s={};return i.isMergeableObject(o)&&rt(o).forEach(function(e){s[e]=et(o[e],i)}),rt(n).forEach(function(t){var e,r;(!ot(e=o,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ot(o,t)&&i.isMergeableObject(n[t])?s[t]=function(){if(!i.customMerge)return it;var e=i.customMerge(t);return"function"==typeof e?e:it}()(o[t],n[t],i):s[t]=et(n[t],i))}),s}function it(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||tt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=et;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):nt(e,t,r):et(t,r)}it.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return it(e,t,r)},{})};var st=it,at=function(e,t){return(at=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 ut(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}at(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ct,lt,ft,pt=function(){return(pt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function ht(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e}function mt(e){return e.type===lt.literal}function dt(e){return e.type===lt.number}function yt(e){return e.type===lt.date}function gt(e){return e.type===lt.time}function bt(e){return e.type===lt.select}function vt(e){return e.type===lt.plural}function Et(e){return e.type===lt.tag}function Tt(e){return e&&"object"==typeof e&&e.type===ft.number}function _t(e){return e&&"object"==typeof e&&e.type===ft.dateTime}(Gt=ct=ct||{})[Gt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Gt[Gt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Gt[Gt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Gt[Gt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Gt[Gt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Gt[Gt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Gt[Gt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Gt[Gt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Gt[Gt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Gt[Gt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Gt[Gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Gt[Gt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Gt[Gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Gt[Gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Gt[Gt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Gt[Gt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Gt[Gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Gt[Gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Gt[Gt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Gt[Gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Gt[Gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Gt[Gt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Gt[Gt.INVALID_TAG=23]="INVALID_TAG",Gt[Gt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Gt[Gt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Gt[Gt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(jt=lt=lt||{})[jt.literal=0]="literal",jt[jt.argument=1]="argument",jt[jt.number=2]="number",jt[jt.date=3]="date",jt[jt.time=4]="time",jt[jt.select=5]="select",jt[jt.plural=6]="plural",jt[jt.pound=7]="pound",jt[jt.tag=8]="tag",($t=ft=ft||{})[$t.number=0]="number",$t[$t.dateTime=1]="dateTime";var wt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[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 St,Pt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ot=/^(@+)?(\+|#+)?$/g,Lt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ct=/^(0+)$/;function It(e){var o={};return e.replace(Ot,function(e,t,r){return"string"!=typeof r?(o.minimumSignificantDigits=t.length,o.maximumSignificantDigits=t.length):"+"===r?o.minimumSignificantDigits=t.length:"#"===t[0]?o.maximumSignificantDigits=t.length:(o.minimumSignificantDigits=t.length,o.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),o}function Nt(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 Rt(e){return Nt(e)||{}}function Mt(e){for(var s={},t=0,r=e;t<r.length;t++){var o,n=r[t];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=pt(pt(pt({},s),{notation:"scientific"}),n.options.reduce(function(e,t){return pt(pt({},e),Rt(t))},{}));continue;case"engineering":s=pt(pt(pt({},s),{notation:"engineering"}),n.options.reduce(function(e,t){return pt(pt({},e),Rt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Lt,function(e,t,r,o,n,i){if(t)s.minimumIntegerDigits=r.length;else{if(o&&n)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(Ct.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(xt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(xt,function(e,t,r,o,n,i){return"*"===r?s.minimumFractionDigits=t.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),n.options.length&&(s=pt(pt({},s),It(n.options[0])))}else Ot.test(n.stem)?s=pt(pt({},s),It(n.stem)):((o=Nt(n.stem))&&(s=pt(pt({},s),o)),(o=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)),!Ct.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(s=pt(pt({},s),o)))}return s}var Ut=new RegExp("^"+wt.source+"*"),Dt=new RegExp(wt.source+"*$");function Ft(e,t){return{start:e,end:t}}var kt=!!String.prototype.startsWith,Ie=!!String.fromCodePoint,je=!!Object.fromEntries,Gt=!!String.prototype.codePointAt,jt=!!String.prototype.trimStart,$t=!!String.prototype.trimEnd,Bt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wt=!0;try{wt="a"===(null===(St=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===St?void 0:St[0])}catch(L){wt=!1}var zt,Vt,Xt=kt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Wt=Ie?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,o="",n=e.length,i=0;i<n;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},qt=je?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],i=n[0],n=n[1];t[i]=n}return t},Ht=Gt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var o,n=e.charCodeAt(t);return n<55296||56319<n||t+1===r||(o=e.charCodeAt(t+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},Yt=jt?function(e){return e.trimStart()}:function(e){return e.replace(Ut,"")},Kt=$t?function(e){return e.trimEnd()}:function(e){return e.replace(Dt,"")};function Zt(e,t){return new RegExp(e,t)}Vt=wt?(zt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return zt.lastIndex=t,null!==(e=zt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,o=[];;){var n=Ht(e,t);if(void 0===n||tr(n)||(33<=(r=n)&&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;o.push(n),t+=65536<=n?2:1}return Wt.apply(void 0,o)};var Jt=(Qt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Qt.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(e,r)).err)return n;o.push(n.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(ct.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(e,t)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:lt.pound,location:Ft(i,this.clonePosition())})}}}return{val:o,err:null}},Qt.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:lt.literal,value:"<"+o+"/>",location:Ft(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;e=n.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(ct.INVALID_TAG,Ft(t,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(ct.UNMATCHED_CLOSING_TAG,Ft(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:lt.tag,value:o,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ct.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ct.INVALID_TAG,Ft(r,this.clonePosition()))},Qt.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())},Qt.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n)o+=n;else{n=this.tryParseUnquoted(e,t);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=Ft(r,this.clonePosition());return{val:{type:lt.literal,value:o,location:r},err:null}},Qt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Qt.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 Wt.apply(void 0,t)},Qt.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(),Wt(r))},Qt.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ct.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:lt.argument,value:o,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},Qt.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},Qt.prototype.parseArgumentOptions=function(e,t,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ct.EXPECT_ARGUMENT_TYPE,Ft(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=Kt(p.val)).length)return this.error(ct.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:Ft(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(o)).err)return h;var l=Ft(o,this.clonePosition());if(u&&Xt(null==u?void 0:u.style,"::",0)){c=Yt(u.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(c,u.styleLocation)).err?p:{val:{type:lt.number,value:r,location:l,style:p.val},err:null};if(0===c.length)return this.error(ct.EXPECT_DATE_TIME_SKELETON,l);var f={type:ft.dateTime,pattern:c,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(At,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.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":n.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""}),n):{}};return{val:{type:"date"===s?lt.date:lt.time,value:r,location:l,style:f},err:null}}return{val:{type:"number"===s?lt.number:"date"===s?lt.date:lt.time,value:r,location:l,style:null!==(l=null==u?void 0:u.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(u,pt({},u)));this.bumpSpace();var p,l=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===l.value){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),l=this.parseIdentifierIfPossible(),u=p.val}l=this.tryParsePluralOrSelectOptions(e,s,t,l);if(l.err)return l;if((h=this.tryParseArgumentClose(o)).err)return h;var h=Ft(o,this.clonePosition());return"select"===s?{val:{type:lt.select,value:r,options:qt(l.val),location:h},err:null}:{val:{type:lt.plural,value:r,options:qt(l.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(ct.INVALID_ARGUMENT_TYPE,Ft(i,a))}},Qt.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Qt.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(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(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}},Qt.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,o=e.split(Pt).filter(function(e){return 0<e.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:n})}return t}(e)}catch(e){return this.error(ct.INVALID_NUMBER_SKELETON,t)}return{val:{type:ft.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Mt(r):{}},err:null}},Qt.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n=!1,i=[],s=new Set,a=o.value,u=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;u=Ft(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,r);if(l.err)return l;c=this.tryParseArgumentClose(f);if(c.err)return c;i.push([a,{value:l.val,location:Ft(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,u=f.location}return 0===i.length?this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(ct.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:i,err:null}},Qt.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=Ft(o,this.clonePosition());return n?Bt(i*=r)?{val:i,err:null}:this.error(t,o):this.error(e,o)},Qt.prototype.offset=function(){return this.position.offset},Qt.prototype.isEOF=function(){return this.offset()===this.message.length},Qt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Qt.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ht(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Qt.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Qt.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))},Qt.prototype.bumpIf=function(e){if(Xt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Qt.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)},Qt.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}},Qt.prototype.bumpSpace=function(){for(;!this.isEOF()&&tr(this.char());)this.bump()},Qt.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},Qt);function Qt(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 er(e){return 97<=e&&e<=122||65<=e&&e<=90}function tr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function rr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ct[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,bt(e)||vt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else dt(e)&&Tt(e.style)||(yt(e)||gt(e))&&_t(e.style)?delete e.style.location:Et(e)&&r(e.children)})}(r.val),r.val}function or(e,t){var r=t&&t.cache?t.cache:lr,o=t&&t.serializer?t.serializer:ar;return(t&&t.strategy?t.strategy:function(e,t){return sr(e,this,1===e.length?nr:ir,t.cache.create(),t.serializer)})(e,{cache:r,serializer:o})}function nr(e,t,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=t.get(n);return void 0===r&&(r=e.call(this,o),t.set(n,r)),r}function ir(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=t.get(n);return void 0===r&&(r=e.apply(this,o),t.set(n,r)),r}function sr(e,t,r,o,n){return r.bind(t,e,o,n)}var ar=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(e){return e in this.cache},ur.prototype.get=function(e){return this.cache[e]},ur.prototype.set=function(e,t){this.cache[e]=t};var cr,lr={create:function(){return new ur}},fr={variadic:function(e,t){return sr(e,this,ir,t.cache.create(),t.serializer)},monadic:function(e,t){return sr(e,this,nr,t.cache.create(),t.serializer)}};(wt=cr=cr||{}).MISSING_VALUE="MISSING_VALUE",wt.INVALID_VALUE="INVALID_VALUE",wt.MISSING_INTL_API="MISSING_INTL_API";var pr,hr,mr,dr,yr,gr=(ut(Ar,yr=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),br=(ut(wr,dr=gr),wr),vr=(ut(_r,mr=gr),_r),Er=(ut(Tr,hr=gr),Tr);function Tr(e,t){return hr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',cr.MISSING_VALUE,t)||this}function _r(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,cr.INVALID_VALUE,r)||this}function wr(e,t,r,o){return dr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',cr.INVALID_VALUE,o)||this}function Ar(e,t,r){e=yr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Sr(e,t,r,o,n,i,s){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var a=[],u=0,c=e;u<c.length;u++){var l=c[u];if(mt(l))a.push({type:pr.literal,value:l.value});else if(l.type===lt.pound)"number"==typeof i&&a.push({type:pr.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!(n&&f in n))throw new Er(f,s);var p=n[f];if(l.type===lt.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?pr.literal:pr.object,value:p});else if(yt(l)){var h="string"==typeof l.style?o.date[l.style]:_t(l.style)?l.style.parsedOptions:void 0;a.push({type:pr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(gt(l))h="string"==typeof l.style?o.time[l.style]:_t(l.style)?l.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(dt(l))(h="string"==typeof l.style?o.number[l.style]:Tt(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(Et(l)){var m=l.children,d=l.value,f=n[d];if("function"!=typeof f)throw new vr(d,"function",s);m=f(Sr(m,t,r,o,n,i).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?pr.literal:pr.object,value:e}}))}if(bt(l)){if(!(y=l.options[p]||l.options.other))throw new br(l.value,p,Object.keys(l.options),s);a.push.apply(a,Sr(y.value,t,r,o,n))}else if(vt(l)){if(!(y=l.options["="+p])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cr.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0)),y=l.options[m]||l.options.other}if(!y)throw new br(l.value,p,Object.keys(l.options),s);a.push.apply(a,Sr(y.value,t,r,o,n,p-(l.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Pr(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}}}}}(wt=pr=pr||{})[wt.literal=0]="literal",wt[wt.object=1]="object";var xr=(Object.defineProperty(Or,"defaultLocale",{get:function(){return Or.memoizedDefaultLocale||(Or.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Or.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Or.memoizedDefaultLocale=null,Or.__parse=rr,Or.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"}}},Or);function Or(e,t,r,o){var n,i,s=this;if(void 0===t&&(t=Or.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===pr.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(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Or.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Or.__parse(e,{ignoreTag:null==o?void 0:o.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=(n=Or.formats,(i=r)?Object.keys(n).reduce(function(e,t){var r,o;return e[t]=(r=n[t],(o=i[t])?pt(pt(pt({},r||{}),o||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),o[t]||{}),e},{})):r),e},pt({},n)):n),this.locales=t,this.formatters=o&&o.formatters||{getNumberFormat:or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ht([void 0],t)))},{cache:Pr((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:fr.variadic}),getDateTimeFormat:or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ht([void 0],t)))},{cache:Pr(o.dateTime),strategy:fr.variadic}),getPluralRules:or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ht([void 0],t)))},{cache:Pr(o.pluralRules),strategy:fr.variadic})}}const Lr={},Cr=(t,r)=>{if(null!=r){if(r in Lr&&t in Lr[r])return Lr[r][t];var o,n,i=Wr(r);for(let e=0;e<i.length;e++){var s=(o=i[e],n=t,Rr(o)?function(e,t){if(t in e)return e[t];const r=t.split(".");let o=e;for(let e=0;e<r.length;e++)if("object"==typeof o){if(0<e){const t=r.slice(e,r.length).join(".");if(t in o){o=o[t];break}}o=o[r[e]]}else o=void 0;return o}(function(e){return Ir[e]||null}(o),n):null);if(s)return o=t,n=r,(s=s)&&(n in Lr||(Lr[n]={}),o in Lr[n]||(Lr[n][o]=s),s)}}};let Ir;const Nr=Ke({});function Rr(e){return e in Ir}function Mr(t,...r){delete Lr[t],Nr.update(e=>(e[t]=st.all([e[t]||{},...r]),e))}Ze([Nr],([e])=>Object.keys(e)),Nr.subscribe(e=>Ir=e);const Ur={};function Dr(e){return Ur[e]}function Fr(e){return Wr(e).some(e=>{return null===(e=Dr(e))||void 0===e?void 0:e.size})}const kr={};function Gr(e){if(!Fr(e))return e in kr?kr[e]:void 0;const t=Wr(e).map(e=>{var t=Dr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return kr[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=>Mr(t,...e))}(e))).then(()=>Fr(e)?Gr(e):void delete kr[e]),kr[e]}function jr(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}const $r={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 Br=Ke(!1);let zr;const Vr=Ke(null);function Xr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Wr(e,t=$r.fallbackLocale){e=Xr(e);return t?[...new Set([...e,...Xr(t)])]:e}Vr.subscribe(e=>{zr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const qr=Vr.set;Vr.set=t=>{if(function(e){if(null!=e){var t=Wr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Rr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=$r;let e;return"undefined"!=typeof window&&null!=zr&&r?e=window.setTimeout(()=>Br.set(!0),r):Br.set(!0),Gr(t).then(()=>{qr(t)}).finally(()=>{clearTimeout(e),Br.set(!1)})}return qr(t)},Vr.update=e=>qr(e(zr));const Hr=r=>{const o=Object.create(null);return e=>{var t=JSON.stringify(e);return t in o?o[t]:o[t]=r(e)}},Yr=(e,t)=>{var{formats:r}=$r;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Hr(e=>{var{locale:t,format:r}=e,e=jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Yr("number",r)),new Intl.NumberFormat(t,e)}),Zr=Hr(e=>{var{locale:t,format:r}=e,e=jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Yr("date",r):0===Object.keys(e).length&&(e=Yr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Hr(e=>{var{locale:t,format:r}=e,e=jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Yr("time",r):0===Object.keys(e).length&&(e=Yr("time","short")),new Intl.DateTimeFormat(t,e)}),Qr=Hr((e,t=zr)=>new xr(e,t,$r.formats,{ignoreTag:$r.ignoreTag})),eo=Ze([Vr,Nr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:o=zr,default:n}=t;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Cr(e,o);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 $r.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Wr(o).join('", "')}".${Fr(zr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=n||e;if(!r)return i;let s=i;try{s=Qr(i,o).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});Ze([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=jr(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),Ze([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=jr(e,["locale"]);return Zr(Object.assign({locale:t},e))})(t).format(e)),Ze([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=jr(e,["locale"]);return Kr(Object.assign({locale:t},e))})(t).format(e)),Ze([Vr,Nr],()=>(e,t=zr)=>Cr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==qe.indexOf(e)&&(t=new ze(t),He[e]=t,qe.push(e)),He[e]}};const to={en:{timeout:{title:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",cooloff24:"CoolOffFor24Hours",cooloff7:"CoolOffFor7Days",cooloff30:"CoolOffFor30Days",cooloff3:"CoolOffFor3Months",cooloff24Text:"24 hours",cooloff7Text:"7 days",cooloff30Text:"30 days",cooloff3Text:"3 months"}},ro:{timeout:{title:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",cooloff24:"24 ore",cooloff7:"7 zile",cooloff30:"30 zile",cooloff3:"3 luni",cooloff24Text:"24 ore",cooloff7Text:"7 zile",cooloff30Text:"30 zile",cooloff3Text:"3 luni"}},es:{timeout:{title:"Tiempo agotado",timeoutTextFirst:"{operatorname} ofrece una manera fácil de tomar un descanso de los juegos. Puedes solicitar el bloqueo automático de tu cuenta durante 24 horas. Durante la restricción temporal, no podrá acceder a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la "Facilidad de tiempo de espera" no reemplaza en ningún caso la "Autoexclusión". Si cree que tiene un problema de adicción al juego, vaya al enlace "Juego responsable" y use el "Servicio de autoexclusión" o comuníquese con nosotros lo antes posible.',save:"Guardar",cooloff24:"Autoexclusión por 24 horas",cooloff7:"Autoexclusión por 7 días",cooloff30:"Autoexclusión por 30 días",cooloff3:"Autoexclusión por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 días",cooloff30Text:"30 días",cooloff3Text:"3 meses"}},pt:{timeout:{title:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",cooloff24:"Autoexclusão por 24 horas",cooloff7:"Autoexclusão por 7 dias",cooloff30:"Autoexclusão por 30 dias",cooloff3:"Autoexclusão por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 dias",cooloff30Text:"30 dias30 dias",cooloff3Text:"3 meses"}}};function ro(e,t,r){const o=e.slice();return o[13]=t[r].value,o[14]=t[r].text,o}function oo(e){let r,o,t=e[14]+"";return{c(){r=M("option"),o=U(t),r.__value=e[13],r.value=r.__value},m(e,t){N(e,r,t),I(r,o)},p:L,d(e){e&&R(r)}}}function no(r){let o,n,i,s,a,u,c,l,f,p,h,m,d,y,g,b,v,E,T,_,e=r[2]("timeout.title")+"",w=r[2]("timeout.timeoutTextFirst",{values:{operatorname:r[0]}})+"",A=r[2]("timeout.timeoutTextSecondary")+"",S=r[2]("timeout.save")+"",P=r[3]&&function(r){let o,n,i,s,a,u,c,l,f,p,h,m,d,y=r[2]("timeout.title")+"";return{c(){o=M("div"),n=t("svg"),i=t("defs"),s=t("style"),a=U(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),u=t("g"),c=t("g"),l=t("path"),f=D(),p=M("h2"),h=U(y),k(l,"class","aaa"),k(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),k(l,"transform","translate(15 15) rotate(180)"),k(c,"transform","translate(20 158)"),k(u,"transform","translate(-20 -158)"),k(n,"xmlns","http://www.w3.org/2000/svg"),k(n,"width","15"),k(n,"height","15"),k(n,"viewBox","0 0 15 15"),k(p,"class","TimeoutTitleMobile"),k(p,"part","TimeoutTitleMobile"),k(o,"class","MenuReturnButton"),k(o,"part","MenuReturnButton")},m(e,t){N(e,o,t),I(o,n),I(n,i),I(i,s),I(s,a),I(n,u),I(u,c),I(c,l),I(o,f),I(o,p),I(p,h),m||(d=F(o,"click",r[8]),m=!0)},p(e,t){4&t&&y!==(y=e[2]("timeout.title")+"")&&G(h,y)},d(e){e&&R(o),m=!1,d()}}}(r),x=r[4],O=[];for(let e=0;e<x.length;e+=1)O[e]=oo(ro(r,x,e));return{c(){o=M("div"),P&&P.c(),n=D(),i=M("h2"),s=U(e),a=D(),u=M("div"),c=M("p"),l=U(w),f=D(),p=M("p"),h=U(A),m=D(),d=M("div"),y=M("select");for(let e=0;e<O.length;e+=1)O[e].c();g=D(),b=M("div"),v=M("button"),E=U(S),this.c=L,k(i,"class","TimeoutTitle "+(r[3]?"TimeoutTitleNone":"")),k(i,"part","TimeoutTitle "+(r[3]?"TimeoutTitleNone":"")),k(u,"class","TimeoutDescription "+(r[3]?"TimeoutDescriptionMobile":"")),k(u,"part","TimeoutDescription "+(r[3]?"TimeoutDescriptionMobile":"")),k(y,"class","TimeoutSelect "+(r[3]?"TimeoutSelectMobile":"")),k(y,"part","TimeoutSelect "+(r[3]?"TimeoutSelectMobile":"")),void 0===r[1]&&$(()=>r[9].call(y)),k(d,"class","TimeoutSelectWrapper"),k(d,"part","TimeoutSelectWrapper"),k(v,"class","TimeoutSave"),k(v,"part","TimeoutSave"),k(b,"class","TimeoutActionButtons "+(r[3]?"TimeoutActionButtonsMobile":"")),k(b,"part","TimeoutActionButtons "+(r[3]?"TimeoutActionButtonsMobile":"")),k(o,"class","TimeoutWrapper "+(r[3]?"TimeoutWrapperMobile":"")),k(o,"part","TimeoutWrapper "+(r[3]?"TimeoutWrapperMobile":""))},m(e,t){N(e,o,t),P&&P.m(o,null),I(o,n),I(o,i),I(i,s),I(o,a),I(o,u),I(u,c),I(c,l),I(u,f),I(u,p),I(p,h),I(o,m),I(o,d),I(d,y);for(let e=0;e<O.length;e+=1)O[e].m(y,null);j(y,r[1]),I(o,g),I(o,b),I(b,v),I(v,E),T||(_=[F(y,"change",r[9]),F(v,"click",r[10])],T=!0)},p(t,[r]){if(t[3]&&P.p(t,r),4&r&&e!==(e=t[2]("timeout.title")+"")&&G(s,e),5&r&&w!==(w=t[2]("timeout.timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&G(l,w),4&r&&A!==(A=t[2]("timeout.timeoutTextSecondary")+"")&&G(h,A),16&r){let e;for(x=t[4],e=0;e<x.length;e+=1){var o=ro(t,x,e);O[e]?O[e].p(o,r):(O[e]=oo(o),O[e].c(),O[e].m(y,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=x.length}18&r&&j(y,t[1]),4&r&&S!==(S=t[2]("timeout.save")+"")&&G(E,S)},i:L,o:L,d(e){e&&R(o),P&&P.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(O,e),T=!1,C(_)}}}function io(t,e,r){let o;var n=eo;t.$$.on_destroy.push(m(n,e=>r(2,o=e)));let{operator:i="Everymatrix"}=e,{lang:s="en"}=e,a="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Object.keys(to).forEach(e=>{Mr(e,to[e])});let u=[{value:o("timeout.cooloff24"),text:o("timeout.cooloff24Text")},{value:o("timeout.cooloff7"),text:o("timeout.cooloff7Text")},{value:o("timeout.cooloff30"),text:o("timeout.cooloff30Text")},{value:o("timeout.cooloff3"),text:o("timeout.cooloff3Text")}],c=u[0].value;const l=()=>{window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:c},window.location.href)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:a},window.location.href)};return t.$$set=e=>{"operator"in e&&r(0,i=e.operator),"lang"in e&&r(7,s=e.lang)},t.$$.update=()=>{var e;128&t.$$.dirty&&s&&(e=s,Vr.set(e))},[i,c,o,a,u,l,f,s,()=>f(),function(){c=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(1,c),r(4,u)},()=>l()]}class so extends u{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'}.TimeoutWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:760px}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.TimeoutTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-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 var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}</style>",a(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},io,no,r,{operator:0,lang:7}),e&&(e.target&&N(e.target,this,e.anchor),e.props&&(this.$set(e.props),E()))}static get observedAttributes(){return["operator","lang"]}get operator(){return this.$$.ctx[0]}set operator(e){this.$set({operator:e}),E()}get lang(){return this.$$.ctx[7]}set lang(e){this.$set({lang:e}),E()}}return customElements.get("player-account-timeout")||customElements.define("player-account-timeout",so),so});
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 L(){}function f(e){return e()}function p(){return Object.create(null)}function C(e){e.forEach(f)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return L;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function I(e,t){e.appendChild(t)}function N(e,t,r){e.insertBefore(t,r||null)}function R(e){e.parentNode.removeChild(e)}function M(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function U(e){return document.createTextNode(e)}function D(){return U(" ")}function F(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function k(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function j(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function G(t,r){for(let e=0;e<t.options.length;e+=1){const o=t.options[e];if(o.__value===r)return o.selected=!0,0}}let d;function y(e){d=e}const g=[],e=[],o=[],n=[],b=Promise.resolve();let v=!1;function $(e){o.push(e)}let i=!1;const s=new Set;function E(){if(!i){i=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),C(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($))}}(t.$$)}for(y(null),g.length=0;e.length;)e.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];s.has(r)||(s.add(r),r())}}while(o.length=0,g.length);for(;n.length;)n.pop()();v=!1,i=!1,s.clear()}}const T=new Set;function a(o,e,t,r,n,i,s=[-1]){var a,u=d;y(o);const c=o.$$={fragment:null,ctx:null,props:i,update:L,not_equal:n,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let l=!1;if(c.ctx=t?t(o,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),l&&(r=e,-1===(e=o).$$.dirty[0]&&(g.push(e),v||(v=!0,b.then(E)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),l=!0,C(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const L=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(L),L.forEach(R)}else c.fragment&&c.fragment.c();e.intro&&(a=o.$$.fragment)&&a.i&&(T.delete(a),a.i(void 0)),function(t,e,r,o){const{fragment:n,on_mount:i,on_destroy:s,after_update:a}=t.$$;n&&n.m(e,r),o||$(()=>{var e=i.map(f).filter(h);s?s.push(...e):C(e),t.$$.on_mount=[]}),a.forEach($)}(o,e.target,e.anchor,e.customElement),E()}y(u)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(f).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){C(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(C(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=L}$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 c,l,_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==_&&_,w="URLSearchParams"in _,A="Symbol"in _&&"iterator"in Symbol,S="FileReader"in _&&"Blob"in _&&function(){try{return new Blob,!0}catch(e){return!1}}(),P="FormData"in _,x="ArrayBuffer"in _;function O(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 B(e){return e="string"!=typeof e?String(e):e}function z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A&&(e[Symbol.iterator]=function(){return e}),e}function V(t){this.map={},t instanceof V?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 X(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function q(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function W(e){var t=new FileReader,r=q(t);return t.readAsArrayBuffer(e),r}function H(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:S&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:P&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:w&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():x&&S&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=H(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=H(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):w&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S&&(this.blob=function(){var e=X(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?X(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(W)}),this.text=function(){var e,t,r=X(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=q(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),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},P&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}x&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),V.prototype.append=function(e,t){e=O(e),t=B(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},V.prototype.delete=function(e){delete this.map[O(e)]},V.prototype.get=function(e){return e=O(e),this.has(e)?this.map[e]:null},V.prototype.has=function(e){return this.map.hasOwnProperty(O(e))},V.prototype.set=function(e,t){this.map[O(e)]=B(t)},V.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},V.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),z(r)},V.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),z(t)},V.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),z(r)},A&&(V.prototype[Symbol.iterator]=V.prototype.entries);var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Z(e,t){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(t=t||{}).body;if(e instanceof Z){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new V(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 V(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<K.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)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"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 J(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 Q(e,t){if(!(this instanceof Q))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 V(t.headers),this.url=t.url||"",this._initBody(e)}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})},Y.call(Z.prototype),Y.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new V(this.headers),url:this.url})},Q.error=function(){var e=new Q(null,{status:0,statusText:""});return e.type="error",e};var ee=[301,302,303,307,308];Q.redirect=function(e,t){if(-1===ee.indexOf(t))throw new RangeError("Invalid status code");return new Q(null,{status:t,headers:{location:e}})};var te=_.DOMException;try{new te}catch(L){(te=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),te.prototype.constructor=te}function re(o,s){return new Promise(function(n,e){var t=new Z(o,s);if(t.signal&&t.signal.aborted)return e(new te("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 V,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 o="response"in i?i.response:i.responseText;setTimeout(function(){n(new Q(o,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 te("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&_.location.href?_.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(S?i.responseType="blob":x&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof V?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,B(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}re.polyfill=!0,_.fetch||(_.fetch=re,_.Headers=V,_.Request=Z,_.Response=Q),self.fetch.bind(self);var oe=function(e,t){return(oe=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 ne(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}oe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ie(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&o>=e.length?void 0:e)&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function ae(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e}function ue(e){return"function"==typeof e}function ce(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 le=ce(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 fe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var pe=(me.prototype.unsubscribe=function(){var e,t,r,o,n;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ie(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(ue(i))try{i()}catch(e){n=e instanceof le?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var u=ie(i),c=u.next();!c.done;c=u.next()){var l=c.value;try{ye(l)}catch(e){n=null!=n?n:[],e instanceof le?n=ae(ae([],se(n)),se(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}if(n)throw new le(n)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ye(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fe(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&fe(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((kt=new me).closed=!0,kt),me),he=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function de(e){return e instanceof pe||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function ye(e){ue(e)?e():e.unsubscribe()}var ge=void 0,be=!1,ve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,ae([],se(e)))};function Ee(){}function Te(e){e()}var _e,we,Ae=(ne(xe,we=pe),xe.create=function(e,t,r){return new Se(e,t,r)},xe.prototype.next=function(e){this.isStopped||this._next(e)},xe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},xe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},xe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,we.prototype.unsubscribe.call(this),this.destination=null)},xe.prototype._next=function(e){this.destination.next(e)},xe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},xe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},xe),Se=(ne(Pe,_e=Ae),Pe);function Pe(e,t,r){var o,n,i=_e.call(this)||this;return ue(e)?n=e:e&&(n=e.next,t=e.error,r=e.complete,i&&be?(o=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:o=e,n=null==n?void 0:n.bind(o),t=null==t?void 0:t.bind(o),r=null==r?void 0:r.bind(o)),i.destination={next:n?Oe(n):Ee,error:Oe(null!=t?t:Le),complete:r?Oe(r):Ee},i}function xe(e){var t=we.call(this)||this;return t.isStopped=!1,e?de(t.destination=e)&&e.add(t):t.destination=Ce,t}function Oe(o){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{o.apply(void 0,ae([],se(e)))}catch(e){t=e,ve(function(){throw t})}}}function Le(e){throw e}var Ce={closed:!0,next:Ee,error:Le,complete:Ee},Ie="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ne(e){return e}var Re=(Me.prototype.lift=function(e){var t=new Me;return t.source=this,t.operator=e,t},Me.prototype.subscribe=function(e,t,r){var o,n=this,i=(o=e)&&o instanceof Ae||o&&ue(o.next)&&ue(o.error)&&ue(o.complete)&&de(o)?e:new Se(e,t,r);return Te(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},Me.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Me.prototype.forEach=function(o,e){var n=this;return new(e=Ue(e))(function(e,t){var r=n.subscribe(function(e){try{o(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Me.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Me.prototype[Ie]=function(){return this},Me.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ne:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Me.prototype.toPromise=function(e){var o=this;return new(e=Ue(e))(function(e,t){var r;o.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Me.create=function(e){return new Me(e)},Me);function Me(e){e&&(this._subscribe=e)}function Ue(e){return null!==(e=null!=e?e:ge)&&void 0!==e?e:Promise}var De,Fe,ke,je=ce(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ge=(ne(qe,ke=Re),qe.prototype.lift=function(e){var t=new $e(this,this);return t.operator=e,t},qe.prototype._throwIfClosed=function(){if(this.closed)throw new je},qe.prototype.next=function(i){var s=this;Te(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var o=ie(r),n=o.next();!n.done;n=o.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}})},qe.prototype.error=function(t){var r=this;Te(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)}})},qe.prototype.complete=function(){var t=this;Te(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},qe.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(qe.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),qe.prototype._trySubscribe=function(e){return this._throwIfClosed(),ke.prototype._trySubscribe.call(this,e)},qe.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},qe.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,o=this.observers;return t||r?he:(o.push(e),new pe(function(){return fe(o,e)}))},qe.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,o=this.isStopped;t?e.error(r):o&&e.complete()},qe.prototype.asObservable=function(){var e=new Re;return e.source=this,e},qe.create=function(e,t){return new $e(e,t)},qe),$e=(ne(Xe,Fe=Ge),Xe.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)},Xe.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)},Xe.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)},Xe.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:he},Xe),Be={now:function(){return(Be.delegate||Date).now()},delegate:void 0},ze=(ne(Ve,De=Ge),Ve.prototype.next=function(e){var t=this,r=t.isStopped,o=t._buffer,n=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(o.push(e),n||o.push(i.now()+t)),this._trimBuffer(),De.prototype.next.call(this,e)},Ve.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!e.closed;n+=r?1:2)e.next(o[n]);return this._checkFinalizedStatuses(e),t},Ve.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Ve);function Ve(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Be);var o=De.call(this)||this;return o._bufferSize=e,o._windowTime=t,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=t===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,t),o}function Xe(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function qe(){var e=ke.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let We=[],He={};const Ye=[];function Ke(o,n=L){let i;const s=[];function a(e){if(r(o,e)&&(o=e,i)){const e=!Ye.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),Ye.push(t,o)}if(e){for(let e=0;e<Ye.length;e+=2)Ye[e][0](Ye[e+1]);Ye.length=0}}}return{set:a,update:function(e){a(e(o))},subscribe:function(e,t=L){const r=[e,t];return s.push(r),1===s.length&&(i=n(a)||L),e(o),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function Ze(e,a,t){const u=!Array.isArray(e),c=u?[e]:e,l=a.length<2;return{subscribe:Ke(t,t=>{let r=!1;const o=[];let n=0,i=L;const s=()=>{var e;n||(i(),e=a(u?o[0]:o,t),l?t(e):i=h(e)?e:L)},e=c.map((e,t)=>m(e,e=>{o[t]=e,n&=~(1<<t),r&&s()},()=>{n|=1<<t}));return r=!0,s(),function(){C(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===Qe));var t},Qe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function et(e,t){return!1!==t.clone&&t.isMergeableObject(e)?it(Array.isArray(e)?[]:{},e,t):e}function tt(e,t,r){return e.concat(t).map(function(e){return et(e,r)})}function rt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ot(e,t){try{return t in e}catch(e){return!1}}function nt(o,n,i){var s={};return i.isMergeableObject(o)&&rt(o).forEach(function(e){s[e]=et(o[e],i)}),rt(n).forEach(function(t){var e,r;(!ot(e=o,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ot(o,t)&&i.isMergeableObject(n[t])?s[t]=function(){if(!i.customMerge)return it;var e=i.customMerge(t);return"function"==typeof e?e:it}()(o[t],n[t],i):s[t]=et(n[t],i))}),s}function it(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||tt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=et;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):nt(e,t,r):et(t,r)}it.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return it(e,t,r)},{})};var st=it,at=function(e,t){return(at=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 ut(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}at(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ct,lt,ft,pt=function(){return(pt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function ht(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e}function mt(e){return e.type===lt.literal}function dt(e){return e.type===lt.number}function yt(e){return e.type===lt.date}function gt(e){return e.type===lt.time}function bt(e){return e.type===lt.select}function vt(e){return e.type===lt.plural}function Et(e){return e.type===lt.tag}function Tt(e){return e&&"object"==typeof e&&e.type===ft.number}function _t(e){return e&&"object"==typeof e&&e.type===ft.dateTime}(jt=ct=ct||{})[jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",jt[jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",jt[jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",jt[jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",jt[jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",jt[jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",jt[jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",jt[jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",jt[jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",jt[jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",jt[jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",jt[jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",jt[jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",jt[jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",jt[jt.INVALID_TAG=23]="INVALID_TAG",jt[jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",jt[jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",jt[jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Gt=lt=lt||{})[Gt.literal=0]="literal",Gt[Gt.argument=1]="argument",Gt[Gt.number=2]="number",Gt[Gt.date=3]="date",Gt[Gt.time=4]="time",Gt[Gt.select=5]="select",Gt[Gt.plural=6]="plural",Gt[Gt.pound=7]="pound",Gt[Gt.tag=8]="tag",($t=ft=ft||{})[$t.number=0]="number",$t[$t.dateTime=1]="dateTime";var wt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[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 St,Pt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ot=/^(@+)?(\+|#+)?$/g,Lt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ct=/^(0+)$/;function It(e){var o={};return e.replace(Ot,function(e,t,r){return"string"!=typeof r?(o.minimumSignificantDigits=t.length,o.maximumSignificantDigits=t.length):"+"===r?o.minimumSignificantDigits=t.length:"#"===t[0]?o.maximumSignificantDigits=t.length:(o.minimumSignificantDigits=t.length,o.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),o}function Nt(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 Rt(e){return Nt(e)||{}}function Mt(e){for(var s={},t=0,r=e;t<r.length;t++){var o,n=r[t];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=pt(pt(pt({},s),{notation:"scientific"}),n.options.reduce(function(e,t){return pt(pt({},e),Rt(t))},{}));continue;case"engineering":s=pt(pt(pt({},s),{notation:"engineering"}),n.options.reduce(function(e,t){return pt(pt({},e),Rt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Lt,function(e,t,r,o,n,i){if(t)s.minimumIntegerDigits=r.length;else{if(o&&n)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(Ct.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(xt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(xt,function(e,t,r,o,n,i){return"*"===r?s.minimumFractionDigits=t.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),n.options.length&&(s=pt(pt({},s),It(n.options[0])))}else Ot.test(n.stem)?s=pt(pt({},s),It(n.stem)):((o=Nt(n.stem))&&(s=pt(pt({},s),o)),(o=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)),!Ct.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(s=pt(pt({},s),o)))}return s}var Ut=new RegExp("^"+wt.source+"*"),Dt=new RegExp(wt.source+"*$");function Ft(e,t){return{start:e,end:t}}var kt=!!String.prototype.startsWith,Ie=!!String.fromCodePoint,Ge=!!Object.fromEntries,jt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,$t=!!String.prototype.trimEnd,Bt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wt=!0;try{wt="a"===(null===(St=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===St?void 0:St[0])}catch(L){wt=!1}var zt,Vt,Xt=kt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},qt=Ie?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,o="",n=e.length,i=0;i<n;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Wt=Ge?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],i=n[0],n=n[1];t[i]=n}return t},Ht=jt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var o,n=e.charCodeAt(t);return n<55296||56319<n||t+1===r||(o=e.charCodeAt(t+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},Yt=Gt?function(e){return e.trimStart()}:function(e){return e.replace(Ut,"")},Kt=$t?function(e){return e.trimEnd()}:function(e){return e.replace(Dt,"")};function Zt(e,t){return new RegExp(e,t)}Vt=wt?(zt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return zt.lastIndex=t,null!==(e=zt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,o=[];;){var n=Ht(e,t);if(void 0===n||tr(n)||(33<=(r=n)&&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;o.push(n),t+=65536<=n?2:1}return qt.apply(void 0,o)};var Jt=(Qt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Qt.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(e,r)).err)return n;o.push(n.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(ct.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(e,t)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:lt.pound,location:Ft(i,this.clonePosition())})}}}return{val:o,err:null}},Qt.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:lt.literal,value:"<"+o+"/>",location:Ft(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;e=n.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(ct.INVALID_TAG,Ft(t,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(ct.UNMATCHED_CLOSING_TAG,Ft(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:lt.tag,value:o,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ct.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ct.INVALID_TAG,Ft(r,this.clonePosition()))},Qt.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())},Qt.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n)o+=n;else{n=this.tryParseUnquoted(e,t);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=Ft(r,this.clonePosition());return{val:{type:lt.literal,value:o,location:r},err:null}},Qt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Qt.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 qt.apply(void 0,t)},Qt.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(),qt(r))},Qt.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ct.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:lt.argument,value:o,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},Qt.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},Qt.prototype.parseArgumentOptions=function(e,t,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ct.EXPECT_ARGUMENT_TYPE,Ft(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=Kt(p.val)).length)return this.error(ct.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:Ft(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(o)).err)return h;var l=Ft(o,this.clonePosition());if(u&&Xt(null==u?void 0:u.style,"::",0)){c=Yt(u.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(c,u.styleLocation)).err?p:{val:{type:lt.number,value:r,location:l,style:p.val},err:null};if(0===c.length)return this.error(ct.EXPECT_DATE_TIME_SKELETON,l);var f={type:ft.dateTime,pattern:c,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(At,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.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":n.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""}),n):{}};return{val:{type:"date"===s?lt.date:lt.time,value:r,location:l,style:f},err:null}}return{val:{type:"number"===s?lt.number:"date"===s?lt.date:lt.time,value:r,location:l,style:null!==(l=null==u?void 0:u.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(u,pt({},u)));this.bumpSpace();var p,l=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===l.value){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),l=this.parseIdentifierIfPossible(),u=p.val}l=this.tryParsePluralOrSelectOptions(e,s,t,l);if(l.err)return l;if((h=this.tryParseArgumentClose(o)).err)return h;var h=Ft(o,this.clonePosition());return"select"===s?{val:{type:lt.select,value:r,options:Wt(l.val),location:h},err:null}:{val:{type:lt.plural,value:r,options:Wt(l.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(ct.INVALID_ARGUMENT_TYPE,Ft(i,a))}},Qt.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Qt.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(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(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}},Qt.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,o=e.split(Pt).filter(function(e){return 0<e.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:n})}return t}(e)}catch(e){return this.error(ct.INVALID_NUMBER_SKELETON,t)}return{val:{type:ft.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Mt(r):{}},err:null}},Qt.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n=!1,i=[],s=new Set,a=o.value,u=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;u=Ft(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,r);if(l.err)return l;c=this.tryParseArgumentClose(f);if(c.err)return c;i.push([a,{value:l.val,location:Ft(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,u=f.location}return 0===i.length?this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(ct.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:i,err:null}},Qt.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=Ft(o,this.clonePosition());return n?Bt(i*=r)?{val:i,err:null}:this.error(t,o):this.error(e,o)},Qt.prototype.offset=function(){return this.position.offset},Qt.prototype.isEOF=function(){return this.offset()===this.message.length},Qt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Qt.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ht(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Qt.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Qt.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))},Qt.prototype.bumpIf=function(e){if(Xt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Qt.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)},Qt.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}},Qt.prototype.bumpSpace=function(){for(;!this.isEOF()&&tr(this.char());)this.bump()},Qt.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},Qt);function Qt(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 er(e){return 97<=e&&e<=122||65<=e&&e<=90}function tr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function rr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ct[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,bt(e)||vt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else dt(e)&&Tt(e.style)||(yt(e)||gt(e))&&_t(e.style)?delete e.style.location:Et(e)&&r(e.children)})}(r.val),r.val}function or(e,t){var r=t&&t.cache?t.cache:lr,o=t&&t.serializer?t.serializer:ar;return(t&&t.strategy?t.strategy:function(e,t){return sr(e,this,1===e.length?nr:ir,t.cache.create(),t.serializer)})(e,{cache:r,serializer:o})}function nr(e,t,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=t.get(n);return void 0===r&&(r=e.call(this,o),t.set(n,r)),r}function ir(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=t.get(n);return void 0===r&&(r=e.apply(this,o),t.set(n,r)),r}function sr(e,t,r,o,n){return r.bind(t,e,o,n)}var ar=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(e){return e in this.cache},ur.prototype.get=function(e){return this.cache[e]},ur.prototype.set=function(e,t){this.cache[e]=t};var cr,lr={create:function(){return new ur}},fr={variadic:function(e,t){return sr(e,this,ir,t.cache.create(),t.serializer)},monadic:function(e,t){return sr(e,this,nr,t.cache.create(),t.serializer)}};(wt=cr=cr||{}).MISSING_VALUE="MISSING_VALUE",wt.INVALID_VALUE="INVALID_VALUE",wt.MISSING_INTL_API="MISSING_INTL_API";var pr,hr,mr,dr,yr,gr=(ut(Ar,yr=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),br=(ut(wr,dr=gr),wr),vr=(ut(_r,mr=gr),_r),Er=(ut(Tr,hr=gr),Tr);function Tr(e,t){return hr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',cr.MISSING_VALUE,t)||this}function _r(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,cr.INVALID_VALUE,r)||this}function wr(e,t,r,o){return dr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',cr.INVALID_VALUE,o)||this}function Ar(e,t,r){e=yr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Sr(e,t,r,o,n,i,s){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var a=[],u=0,c=e;u<c.length;u++){var l=c[u];if(mt(l))a.push({type:pr.literal,value:l.value});else if(l.type===lt.pound)"number"==typeof i&&a.push({type:pr.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!(n&&f in n))throw new Er(f,s);var p=n[f];if(l.type===lt.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?pr.literal:pr.object,value:p});else if(yt(l)){var h="string"==typeof l.style?o.date[l.style]:_t(l.style)?l.style.parsedOptions:void 0;a.push({type:pr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(gt(l))h="string"==typeof l.style?o.time[l.style]:_t(l.style)?l.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(dt(l))(h="string"==typeof l.style?o.number[l.style]:Tt(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(Et(l)){var m=l.children,d=l.value,f=n[d];if("function"!=typeof f)throw new vr(d,"function",s);m=f(Sr(m,t,r,o,n,i).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?pr.literal:pr.object,value:e}}))}if(bt(l)){if(!(y=l.options[p]||l.options.other))throw new br(l.value,p,Object.keys(l.options),s);a.push.apply(a,Sr(y.value,t,r,o,n))}else if(vt(l)){if(!(y=l.options["="+p])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cr.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0)),y=l.options[m]||l.options.other}if(!y)throw new br(l.value,p,Object.keys(l.options),s);a.push.apply(a,Sr(y.value,t,r,o,n,p-(l.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Pr(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}}}}}(wt=pr=pr||{})[wt.literal=0]="literal",wt[wt.object=1]="object";var xr=(Object.defineProperty(Or,"defaultLocale",{get:function(){return Or.memoizedDefaultLocale||(Or.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Or.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Or.memoizedDefaultLocale=null,Or.__parse=rr,Or.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"}}},Or);function Or(e,t,r,o){var n,i,s=this;if(void 0===t&&(t=Or.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===pr.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(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Or.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Or.__parse(e,{ignoreTag:null==o?void 0:o.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=(n=Or.formats,(i=r)?Object.keys(n).reduce(function(e,t){var r,o;return e[t]=(r=n[t],(o=i[t])?pt(pt(pt({},r||{}),o||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),o[t]||{}),e},{})):r),e},pt({},n)):n),this.locales=t,this.formatters=o&&o.formatters||{getNumberFormat:or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ht([void 0],t)))},{cache:Pr((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:fr.variadic}),getDateTimeFormat:or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ht([void 0],t)))},{cache:Pr(o.dateTime),strategy:fr.variadic}),getPluralRules:or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ht([void 0],t)))},{cache:Pr(o.pluralRules),strategy:fr.variadic})}}const Lr={},Cr=(t,r)=>{if(null!=r){if(r in Lr&&t in Lr[r])return Lr[r][t];var o,n,i=qr(r);for(let e=0;e<i.length;e++){var s=(o=i[e],n=t,Rr(o)?function(e,t){if(t in e)return e[t];const r=t.split(".");let o=e;for(let e=0;e<r.length;e++)if("object"==typeof o){if(0<e){const t=r.slice(e,r.length).join(".");if(t in o){o=o[t];break}}o=o[r[e]]}else o=void 0;return o}(function(e){return Ir[e]||null}(o),n):null);if(s)return o=t,n=r,(s=s)&&(n in Lr||(Lr[n]={}),o in Lr[n]||(Lr[n][o]=s),s)}}};let Ir;const Nr=Ke({});function Rr(e){return e in Ir}function Mr(t,...r){delete Lr[t],Nr.update(e=>(e[t]=st.all([e[t]||{},...r]),e))}Ze([Nr],([e])=>Object.keys(e)),Nr.subscribe(e=>Ir=e);const Ur={};function Dr(e){return Ur[e]}function Fr(e){return qr(e).some(e=>{return null===(e=Dr(e))||void 0===e?void 0:e.size})}const kr={};function jr(e){if(!Fr(e))return e in kr?kr[e]:void 0;const t=qr(e).map(e=>{var t=Dr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return kr[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=>Mr(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete kr[e]),kr[e]}function Gr(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}const $r={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 Br=Ke(!1);let zr;const Vr=Ke(null);function Xr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function qr(e,t=$r.fallbackLocale){e=Xr(e);return t?[...new Set([...e,...Xr(t)])]:e}Vr.subscribe(e=>{zr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Wr=Vr.set;Vr.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}=$r;let e;return"undefined"!=typeof window&&null!=zr&&r?e=window.setTimeout(()=>Br.set(!0),r):Br.set(!0),jr(t).then(()=>{Wr(t)}).finally(()=>{clearTimeout(e),Br.set(!1)})}return Wr(t)},Vr.update=e=>Wr(e(zr));const Hr=r=>{const o=Object.create(null);return e=>{var t=JSON.stringify(e);return t in o?o[t]:o[t]=r(e)}},Yr=(e,t)=>{var{formats:r}=$r;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Hr(e=>{var{locale:t,format:r}=e,e=Gr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Yr("number",r)),new Intl.NumberFormat(t,e)}),Zr=Hr(e=>{var{locale:t,format:r}=e,e=Gr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Yr("date",r):0===Object.keys(e).length&&(e=Yr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Hr(e=>{var{locale:t,format:r}=e,e=Gr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Yr("time",r):0===Object.keys(e).length&&(e=Yr("time","short")),new Intl.DateTimeFormat(t,e)}),Qr=Hr((e,t=zr)=>new xr(e,t,$r.formats,{ignoreTag:$r.ignoreTag})),eo=Ze([Vr,Nr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:o=zr,default:n}=t;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Cr(e,o);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 $r.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${qr(o).join('", "')}".${Fr(zr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=n||e;if(!r)return i;let s=i;try{s=Qr(i,o).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});Ze([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=Gr(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),Ze([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=Gr(e,["locale"]);return Zr(Object.assign({locale:t},e))})(t).format(e)),Ze([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=Gr(e,["locale"]);return Kr(Object.assign({locale:t},e))})(t).format(e)),Ze([Vr,Nr],()=>(e,t=zr)=>Cr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==We.indexOf(e)&&(t=new ze(t),He[e]=t,We.push(e)),He[e]}};const to={en:{timeout:{title:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",cooloff24:"CoolOffFor24Hours",cooloff7:"CoolOffFor7Days",cooloff30:"CoolOffFor30Days",cooloff3:"CoolOffFor3Months",cooloff24Text:"24 hours",cooloff7Text:"7 days",cooloff30Text:"30 days",cooloff3Text:"3 months"}},fr:{timeout:{title:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:'Veuillez noter que l\'"installation du temps mort" ne remplace en aucun cas "l\'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d\'auto exclusion" ou nous contacter dès que possible.',save:"Savez",cooloff24:"Pause de 24 heures",cooloff7:"Pause de 7 jours",cooloff30:"Pause de 30 jours",cooloff3:"Pause de 3 mois",cooloff24Text:"24 heures",cooloff7Text:"7 jours",cooloff30Text:"30 jours",cooloff3Text:"3 mois"}},ro:{timeout:{title:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",cooloff24:"24 ore",cooloff7:"7 zile",cooloff30:"30 zile",cooloff3:"3 luni",cooloff24Text:"24 ore",cooloff7Text:"7 zile",cooloff30Text:"30 zile",cooloff3Text:"3 luni"}},es:{timeout:{title:"Tiempo agotado",timeoutTextFirst:"{operatorname} ofrece una manera fácil de tomar un descanso de los juegos. Puedes solicitar el bloqueo automático de tu cuenta durante 24 horas. Durante la restricción temporal, no podrá acceder a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la "Facilidad de tiempo de espera" no reemplaza en ningún caso la "Autoexclusión". Si cree que tiene un problema de adicción al juego, vaya al enlace "Juego responsable" y use el "Servicio de autoexclusión" o comuníquese con nosotros lo antes posible.',save:"Guardar",cooloff24:"Autoexclusión por 24 horas",cooloff7:"Autoexclusión por 7 días",cooloff30:"Autoexclusión por 30 días",cooloff3:"Autoexclusión por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 días",cooloff30Text:"30 días",cooloff3Text:"3 meses"}},pt:{timeout:{title:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",cooloff24:"Autoexclusão por 24 horas",cooloff7:"Autoexclusão por 7 dias",cooloff30:"Autoexclusão por 30 dias",cooloff3:"Autoexclusão por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 dias",cooloff30Text:"30 dias30 dias",cooloff3Text:"3 meses"}}};function ro(e,t,r){const o=e.slice();return o[13]=t[r].value,o[14]=t[r].text,o}function oo(e){let r,o,t=e[14]+"";return{c(){r=M("option"),o=U(t),r.__value=e[13],r.value=r.__value},m(e,t){N(e,r,t),I(r,o)},p:L,d(e){e&&R(r)}}}function no(r){let o,n,i,s,a,u,c,l,f,p,h,m,d,y,g,b,v,E,T,_,e=r[2]("timeout.title")+"",w=r[2]("timeout.timeoutTextFirst",{values:{operatorname:r[0]}})+"",A=r[2]("timeout.timeoutTextSecondary")+"",S=r[2]("timeout.save")+"",P=r[3]&&function(r){let o,n,i,s,a,u,c,l,f,p,h,m,d,y=r[2]("timeout.title")+"";return{c(){o=M("div"),n=t("svg"),i=t("defs"),s=t("style"),a=U(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),u=t("g"),c=t("g"),l=t("path"),f=D(),p=M("h2"),h=U(y),k(l,"class","aaa"),k(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),k(l,"transform","translate(15 15) rotate(180)"),k(c,"transform","translate(20 158)"),k(u,"transform","translate(-20 -158)"),k(n,"xmlns","http://www.w3.org/2000/svg"),k(n,"width","15"),k(n,"height","15"),k(n,"viewBox","0 0 15 15"),k(p,"class","TimeoutTitleMobile"),k(p,"part","TimeoutTitleMobile"),k(o,"class","MenuReturnButton"),k(o,"part","MenuReturnButton")},m(e,t){N(e,o,t),I(o,n),I(n,i),I(i,s),I(s,a),I(n,u),I(u,c),I(c,l),I(o,f),I(o,p),I(p,h),m||(d=F(o,"click",r[8]),m=!0)},p(e,t){4&t&&y!==(y=e[2]("timeout.title")+"")&&j(h,y)},d(e){e&&R(o),m=!1,d()}}}(r),x=r[4],O=[];for(let e=0;e<x.length;e+=1)O[e]=oo(ro(r,x,e));return{c(){o=M("div"),P&&P.c(),n=D(),i=M("h2"),s=U(e),a=D(),u=M("div"),c=M("p"),l=U(w),f=D(),p=M("p"),h=U(A),m=D(),d=M("div"),y=M("select");for(let e=0;e<O.length;e+=1)O[e].c();g=D(),b=M("div"),v=M("button"),E=U(S),this.c=L,k(i,"class","TimeoutTitle "+(r[3]?"TimeoutTitleNone":"")),k(i,"part","TimeoutTitle "+(r[3]?"TimeoutTitleNone":"")),k(u,"class","TimeoutDescription "+(r[3]?"TimeoutDescriptionMobile":"")),k(u,"part","TimeoutDescription "+(r[3]?"TimeoutDescriptionMobile":"")),k(y,"class","TimeoutSelect "+(r[3]?"TimeoutSelectMobile":"")),k(y,"part","TimeoutSelect "+(r[3]?"TimeoutSelectMobile":"")),void 0===r[1]&&$(()=>r[9].call(y)),k(d,"class","TimeoutSelectWrapper"),k(d,"part","TimeoutSelectWrapper"),k(v,"class","TimeoutSave"),k(v,"part","TimeoutSave"),k(b,"class","TimeoutActionButtons "+(r[3]?"TimeoutActionButtonsMobile":"")),k(b,"part","TimeoutActionButtons "+(r[3]?"TimeoutActionButtonsMobile":"")),k(o,"class","TimeoutWrapper "+(r[3]?"TimeoutWrapperMobile":"")),k(o,"part","TimeoutWrapper "+(r[3]?"TimeoutWrapperMobile":""))},m(e,t){N(e,o,t),P&&P.m(o,null),I(o,n),I(o,i),I(i,s),I(o,a),I(o,u),I(u,c),I(c,l),I(u,f),I(u,p),I(p,h),I(o,m),I(o,d),I(d,y);for(let e=0;e<O.length;e+=1)O[e].m(y,null);G(y,r[1]),I(o,g),I(o,b),I(b,v),I(v,E),T||(_=[F(y,"change",r[9]),F(v,"click",r[10])],T=!0)},p(t,[r]){if(t[3]&&P.p(t,r),4&r&&e!==(e=t[2]("timeout.title")+"")&&j(s,e),5&r&&w!==(w=t[2]("timeout.timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&j(l,w),4&r&&A!==(A=t[2]("timeout.timeoutTextSecondary")+"")&&j(h,A),16&r){let e;for(x=t[4],e=0;e<x.length;e+=1){var o=ro(t,x,e);O[e]?O[e].p(o,r):(O[e]=oo(o),O[e].c(),O[e].m(y,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=x.length}18&r&&G(y,t[1]),4&r&&S!==(S=t[2]("timeout.save")+"")&&j(E,S)},i:L,o:L,d(e){e&&R(o),P&&P.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(O,e),T=!1,C(_)}}}function io(t,e,r){let o;var n=eo;t.$$.on_destroy.push(m(n,e=>r(2,o=e)));let{operator:i="Everymatrix"}=e,{lang:s="en"}=e,a="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Object.keys(to).forEach(e=>{Mr(e,to[e])});let u=[{value:o("timeout.cooloff24"),text:o("timeout.cooloff24Text")},{value:o("timeout.cooloff7"),text:o("timeout.cooloff7Text")},{value:o("timeout.cooloff30"),text:o("timeout.cooloff30Text")},{value:o("timeout.cooloff3"),text:o("timeout.cooloff3Text")}],c=u[0].value;const l=()=>{window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:c},window.location.href)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:a},window.location.href)};return t.$$set=e=>{"operator"in e&&r(0,i=e.operator),"lang"in e&&r(7,s=e.lang)},t.$$.update=()=>{var e;128&t.$$.dirty&&s&&(e=s,Vr.set(e))},[i,c,o,a,u,l,f,s,()=>f(),function(){c=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(1,c),r(4,u)},()=>l()]}class so extends u{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'}.TimeoutWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:760px}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.TimeoutTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-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 var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}</style>",a(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},io,no,r,{operator:0,lang:7}),e&&(e.target&&N(e.target,this,e.anchor),e.props&&(this.$set(e.props),E()))}static get observedAttributes(){return["operator","lang"]}get operator(){return this.$$.ctx[0]}set operator(e){this.$set({operator:e}),E()}get lang(){return this.$$.ctx[7]}set lang(e){this.$set({lang:e}),E()}}return customElements.get("player-account-timeout")||customElements.define("player-account-timeout",so),so});
2
2
  //# sourceMappingURL=player-account-timeout.js.map