@everymatrix/general-player-forgot-password-form 0.0.290 → 0.0.293
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function f(){}function d(t){return t()}function p(){return Object.create(null)}function H(t){t.forEach(d)}function q(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function U(t,...e){if(null==t)return f;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function Z(t,e){t.appendChild(e)}function Y(t,e,r){t.insertBefore(e,r||null)}function K(t){t.parentNode.removeChild(t)}function e(t){return document.createElement(t)}function j(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function W(t){return document.createTextNode(t)}function Q(){return W(" ")}function c(){return W("")}function J(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function tt(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function et(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function rt(t,e){t.value=null==e?"":e}function o(t,e,r,o){t.style.setProperty(e,r,o?"important":"")}let D;function h(t){D=t}const m=[],B=[],n=[],t=[],g=Promise.resolve();let w=!1;function y(t){n.push(t)}let s=!1;const i=new Set;function b(){if(!s){s=!0;do{for(let t=0;t<m.length;t+=1){var e=m[t];h(e),function(t){{var e;null!==t.fragment&&(t.update(),H(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(y))}}(e.$$)}for(h(null),m.length=0;B.length;)B.pop()();for(let t=0;t<n.length;t+=1){const r=n[t];i.has(r)||(i.add(r),r())}}while(n.length=0,m.length);for(;t.length;)t.pop()();w=!1,s=!1,i.clear()}}const v=new Set;function a(o,t,e,r,n,s,i=[-1]){var a,l=D;h(o);const c=o.$$={fragment:null,ctx:null,props:s,update:f,not_equal:n,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:p(),dirty:i,skip_bound:!1};let u=!1;if(c.ctx=e?e(o,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return c.ctx&&n(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&(r=t,-1===(t=o).$$.dirty[0]&&(m.push(t),w||(w=!0,g.then(b)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],c.update(),u=!0,H(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const f=(r=t.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(f),f.forEach(K)}else c.fragment&&c.fragment.c();t.intro&&(a=o.$$.fragment)&&a.i&&(v.delete(a),a.i(void 0)),function(e,t,r,o){const{fragment:n,on_mount:s,on_destroy:i,after_update:a}=e.$$;n&&n.m(t,r),o||y(()=>{var t=s.map(d).filter(q);i?i.push(...t):H(t),e.$$.on_mount=[]}),a.forEach(y)}(o,t.target,t.anchor,t.customElement),b()}h(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(d).filter(q);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){H(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(H(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=f}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var u,E,P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,T="URLSearchParams"in P,_="Symbol"in P&&"iterator"in Symbol,A="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(t){return!1}}(),S="FormData"in P,C="ArrayBuffer"in P;function N(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function F(t){return t="string"!=typeof t?String(t):t}function L(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _&&(t[Symbol.iterator]=function(){return t}),t}function x(e){this.map={},e instanceof x?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function O(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function I(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function R(t){var e=new FileReader,r=I(e);return e.readAsArrayBuffer(t),r}function k(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:A&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:S&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:T&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():C&&A&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=k(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):C&&(ArrayBuffer.prototype.isPrototypeOf(t)||E(t))?this._bodyArrayBuffer=k(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):T&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A&&(this.blob=function(){var t=O(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?O(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(R)}),this.text=function(){var t,e,r=O(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=I(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}C&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(t){return t&&-1<u.indexOf(Object.prototype.toString.call(t))}),x.prototype.append=function(t,e){t=N(t),e=F(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},x.prototype.delete=function(t){delete this.map[N(t)]},x.prototype.get=function(t){return t=N(t),this.has(t)?this.map[t]:null},x.prototype.has=function(t){return this.map.hasOwnProperty(N(t))},x.prototype.set=function(t,e){this.map[N(t)]=F(e)},x.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},x.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),L(r)},x.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),L(e)},x.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),L(r)},_&&(x.prototype[Symbol.iterator]=x.prototype.entries);var G=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $(t,e){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(e=e||{}).body;if(t instanceof $){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new x(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new x(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<G.indexOf(t)?t:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function V(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function z(t,e){if(!(this instanceof z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new x(e.headers),this.url=e.url||"",this._initBody(t)}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})},M.call($.prototype),M.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new x(this.headers),url:this.url})},z.error=function(){var t=new z(null,{status:0,statusText:""});return t.type="error",t};var X=[301,302,303,307,308];z.redirect=function(t,e){if(-1===X.indexOf(e))throw new RangeError("Invalid status code");return new z(null,{status:e,headers:{location:t}})};var ot=P.DOMException;try{new ot}catch(f){(ot=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ot.prototype.constructor=ot}function nt(o,i){return new Promise(function(n,t){var e=new $(o,i);if(e.signal&&e.signal.aborted)return t(new ot("Aborted","AbortError"));var s=new XMLHttpRequest;function r(){s.abort()}s.onload=function(){var t,r,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",r=new x,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;setTimeout(function(){n(new z(o,e))},0)},s.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){t(new ot("Aborted","AbortError"))},0)},s.open(e.method,function(e){try{return""===e&&P.location.href?P.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?s.withCredentials=!0:"omit"===e.credentials&&(s.withCredentials=!1),"responseType"in s&&(A?s.responseType="blob":C&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof x?e.headers.forEach(function(t,e){s.setRequestHeader(e,t)}):Object.getOwnPropertyNames(i.headers).forEach(function(t){s.setRequestHeader(t,F(i.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&e.signal.removeEventListener("abort",r)}),s.send(void 0===e._bodyInit?null:e._bodyInit)})}nt.polyfill=!0,P.fetch||(P.fetch=nt,P.Headers=x,P.Request=$,P.Response=z),self.fetch.bind(self);var st=function(t,e){return(st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function it(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function at(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&o>=t.length?void 0:t)&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,s=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(o=s.next()).done;)i.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i}function ct(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function ut(t){return"function"==typeof t}function ft(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var dt=ft(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function pt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var ht=(gt.prototype.unsubscribe=function(){var t,e,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var i=at(s),a=i.next();!a.done;a=i.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}else s.remove(this);s=this.initialTeardown;if(ut(s))try{s()}catch(t){n=t instanceof dt?t.errors:[t]}s=this._teardowns;if(s){this._teardowns=null;try{for(var l=at(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{yt(u)}catch(t){n=null!=n?n:[],t instanceof dt?n=ct(ct([],lt(n)),lt(t.errors)):n.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(n)throw new dt(n)}},gt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof gt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},gt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},gt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},gt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pt(e,t)},gt.prototype.remove=function(t){var e=this._teardowns;e&&pt(e,t),t instanceof gt&&t._removeParent(this)},gt.EMPTY=((Ge=new gt).closed=!0,Ge),gt),mt=ht.EMPTY;function gt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function wt(t){return t instanceof ht||t&&"closed"in t&&ut(t.remove)&&ut(t.add)&&ut(t.unsubscribe)}function yt(t){ut(t)?t():t.unsubscribe()}var bt=void 0,vt=!1,Et=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,ct([],lt(t)))};function Pt(){}function Tt(t){t()}var _t,At,St=(it(Ft,At=ht),Ft.create=function(t,e,r){return new Ct(t,e,r)},Ft.prototype.next=function(t){this.isStopped||this._next(t)},Ft.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Ft.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ft.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,At.prototype.unsubscribe.call(this),this.destination=null)},Ft.prototype._next=function(t){this.destination.next(t)},Ft.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Ft.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ft),Ct=(it(Nt,_t=St),Nt);function Nt(t,e,r){var o,n,s=_t.call(this)||this;return ut(t)?n=t:t&&(n=t.next,e=t.error,r=t.complete,s&&vt?(o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()}:o=t,n=null==n?void 0:n.bind(o),e=null==e?void 0:e.bind(o),r=null==r?void 0:r.bind(o)),s.destination={next:n?Lt(n):Pt,error:Lt(null!=e?e:xt),complete:r?Lt(r):Pt},s}function Ft(t){var e=At.call(this)||this;return e.isStopped=!1,t?wt(e.destination=t)&&t.add(e):e.destination=Ot,e}function Lt(o){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{o.apply(void 0,ct([],lt(t)))}catch(t){e=t,Et(function(){throw e})}}}function xt(t){throw t}var Ot={closed:!0,next:Pt,error:xt,complete:Pt},It="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rt(t){return t}var kt=(Mt.prototype.lift=function(t){var e=new Mt;return e.source=this,e.operator=t,e},Mt.prototype.subscribe=function(t,e,r){var o,n=this,s=(o=t)&&o instanceof St||o&&ut(o.next)&&ut(o.error)&&ut(o.complete)&&wt(o)?t:new Ct(t,e,r);return Tt(function(){var t=n.operator,e=n.source;s.add(t?t.call(s,e):e?n._subscribe(s):n._trySubscribe(s))}),s},Mt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Mt.prototype.forEach=function(o,t){var n=this;return new(t=Ut(t))(function(t,e){var r=n.subscribe(function(t){try{o(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Mt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Mt.prototype[It]=function(){return this},Mt.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Rt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Mt.prototype.toPromise=function(t){var o=this;return new(t=Ut(t))(function(t,e){var r;o.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Mt.create=function(t){return new Mt(t)},Mt);function Mt(t){t&&(this._subscribe=t)}function Ut(t){return null!==(t=null!=t?t:bt)&&void 0!==t?t:Promise}var Dt,Bt,Gt,jt=ft(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=(it(Zt,Gt=kt),Zt.prototype.lift=function(t){var e=new Vt(this,this);return e.operator=t,e},Zt.prototype._throwIfClosed=function(){if(this.closed)throw new jt},Zt.prototype.next=function(s){var i=this;Tt(function(){var e,t;if(i._throwIfClosed(),!i.isStopped){var r=i.observers.slice();try{for(var o=at(r),n=o.next();!n.done;n=o.next())n.value.next(s)}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}})},Zt.prototype.error=function(e){var r=this;Tt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},Zt.prototype.complete=function(){var e=this;Tt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},Zt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Zt.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Zt.prototype._trySubscribe=function(t){return this._throwIfClosed(),Gt.prototype._trySubscribe.call(this,t)},Zt.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Zt.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,o=this.observers;return e||r?mt:(o.push(t),new ht(function(){return pt(o,t)}))},Zt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,o=this.isStopped;e?t.error(r):o&&t.complete()},Zt.prototype.asObservable=function(){var t=new kt;return t.source=this,t},Zt.create=function(t,e){return new Vt(t,e)},Zt),Vt=(it(qt,Bt=$t),qt.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},qt.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},qt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},qt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:mt},qt),zt={now:function(){return(zt.delegate||Date).now()},delegate:void 0},Xt=(it(Ht,Dt=$t),Ht.prototype.next=function(t){var e=this,r=e.isStopped,o=e._buffer,n=e._infiniteTimeWindow,s=e._timestampProvider,e=e._windowTime;r||(o.push(t),n||o.push(s.now()+e)),this._trimBuffer(),Dt.prototype.next.call(this,t)},Ht.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!t.closed;n+=r?1:2)t.next(o[n]);return this._checkFinalizedStatuses(t),e},Ht.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*t;if(t<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var s=e.now(),i=0,a=1;a<r.length&&r[a]<=s;a+=2)i=a;i&&r.splice(0,i+1)}},Ht);function Ht(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=zt);var o=Dt.call(this)||this;return o._bufferSize=t,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,e),o}function qt(t,e){var r=Bt.call(this)||this;return r.destination=t,r.source=e,r}function Zt(){var t=Gt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Yt=[],Kt={};const Wt=[];function Qt(o,n=f){let s;const i=[];function a(t){if(r(o,t)&&(o=t,s)){const t=!Wt.length;for(let t=0;t<i.length;t+=1){const e=i[t];e[1](),Wt.push(e,o)}if(t){for(let t=0;t<Wt.length;t+=2)Wt[t][0](Wt[t+1]);Wt.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=f){const r=[t,e];return i.push(r),1===i.length&&(s=n(a)||f),t(o),()=>{var t=i.indexOf(r);-1!==t&&i.splice(t,1),0===i.length&&(s(),s=null)}}}}function Jt(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return{subscribe:Qt(e,e=>{let r=!1;const o=[];let n=0,s=f;const i=()=>{var t;n||(s(),t=a(l?o[0]:o,e),u?e(t):s=q(t)?t:f)},t=c.map((t,e)=>U(t,t=>{o[e]=t,n&=~(1<<e),r&&i()},()=>{n|=1<<e}));return r=!0,i(),function(){H(t),s()}}).subscribe}}var te=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===ee));var e},ee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function re(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ae(Array.isArray(t)?[]:{},t,e):t}function oe(t,e,r){return t.concat(e).map(function(t){return re(t,r)})}function ne(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function se(t,e){try{return e in t}catch(t){return!1}}function ie(o,n,s){var i={};return s.isMergeableObject(o)&&ne(o).forEach(function(t){i[t]=re(o[t],s)}),ne(n).forEach(function(e){var t,r;(!se(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(se(o,e)&&s.isMergeableObject(n[e])?i[e]=function(){if(!s.customMerge)return ae;var t=s.customMerge(e);return"function"==typeof t?t:ae}()(o[e],n[e],s):i[e]=re(n[e],s))}),i}function ae(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||oe,r.isMergeableObject=r.isMergeableObject||te,r.cloneUnlessOtherwiseSpecified=re;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):ie(t,e,r):re(e,r)}ae.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return ae(t,e,r)},{})};var le=ae,ce=function(t,e){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function ue(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ce(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var fe,de,pe,he=function(){return(he=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function me(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function ge(t){return t.type===de.literal}function we(t){return t.type===de.number}function ye(t){return t.type===de.date}function be(t){return t.type===de.time}function ve(t){return t.type===de.select}function Ee(t){return t.type===de.plural}function Pe(t){return t.type===de.tag}function Te(t){return t&&"object"==typeof t&&t.type===pe.number}function _e(t){return t&&"object"==typeof t&&t.type===pe.dateTime}(je=fe=fe||{})[je.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",je[je.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",je[je.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",je[je.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",je[je.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",je[je.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",je[je.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",je[je.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",je[je.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",je[je.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",je[je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",je[je.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",je[je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",je[je.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",je[je.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",je[je.INVALID_TAG=23]="INVALID_TAG",je[je.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",je[je.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",je[je.UNCLOSED_TAG=27]="UNCLOSED_TAG",($e=de=de||{})[$e.literal=0]="literal",$e[$e.argument=1]="argument",$e[$e.number=2]="number",$e[$e.date=3]="date",$e[$e.time=4]="time",$e[$e.select=5]="select",$e[$e.plural=6]="plural",$e[$e.pound=7]="pound",$e[$e.tag=8]="tag",(Ve=pe=pe||{})[Ve.number=0]="number",Ve[Ve.dateTime=1]="dateTime";var Ae=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Se=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Ce,Ne=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Fe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Le=/^(@+)?(\+|#+)?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Ie(t){var o={};return t.replace(Le,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function Re(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ke(t){return Re(t)||{}}function Me(t){for(var i={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=he(he(he({},i),{notation:"scientific"}),n.options.reduce(function(t,e){return he(he({},t),ke(e))},{}));continue;case"engineering":i=he(he(he({},i),{notation:"engineering"}),n.options.reduce(function(t,e){return he(he({},t),ke(e))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.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(xe,function(t,e,r,o,n,s){if(e)i.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oe.test(n.stem))i.minimumIntegerDigits=n.stem.length;else if(Fe.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Fe,function(t,e,r,o,n,s){return"*"===r?i.minimumFractionDigits=e.length:o&&"#"===o[0]?i.maximumFractionDigits=o.length:n&&s?(i.minimumFractionDigits=n.length,i.maximumFractionDigits=n.length+s.length):(i.minimumFractionDigits=e.length,i.maximumFractionDigits=e.length),""}),n.options.length&&(i=he(he({},i),Ie(n.options[0])))}else Le.test(n.stem)?i=he(he({},i),Ie(n.stem)):((o=Re(n.stem))&&(i=he(he({},i),o)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Oe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(i=he(he({},i),o)))}return i}var Ue=new RegExp("^"+Ae.source+"*"),De=new RegExp(Ae.source+"*$");function Be(t,e){return{start:t,end:e}}var Ge=!!String.prototype.startsWith,It=!!String.fromCodePoint,$t=!!Object.fromEntries,je=!!String.prototype.codePointAt,$e=!!String.prototype.trimStart,Ve=!!String.prototype.trimEnd,ze=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ae=!0;try{Ae="a"===(null===(Ce=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ce?void 0:Ce[0])}catch(f){Ae=!1}var Xe,He,qe=Ge?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Ze=It?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,s=0;s<n;){if(1114111<(r=t[s++]))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},Ye=$t?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],s=n[0],n=n[1];e[s]=n}return e},Ke=je?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var o,n=t.charCodeAt(e);return n<55296||56319<n||e+1===r||(o=t.charCodeAt(e+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},We=$e?function(t){return t.trimStart()}:function(t){return t.replace(Ue,"")},Qe=Ve?function(t){return t.trimEnd()}:function(t){return t.replace(De,"")};function Je(t,e){return new RegExp(t,e)}He=Ae?(Xe=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Xe.lastIndex=e,null!==(t=Xe.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,o=[];;){var n=Ke(t,e);if(void 0===n||or(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),e+=65536<=n?2:1}return Ze.apply(void 0,o)};var tr=(er.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},er.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===s&&0<t)break;if(35!==s||"plural"!==e&&"selectordinal"!==e){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(fe.UNMATCHED_CLOSING_TAG,Be(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&rr(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{s=this.clonePosition();this.bump(),o.push({type:de.pound,location:Be(s,this.clonePosition())})}}}return{val:o,err:null}},er.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:de.literal,value:"<"+o+"/>",location:Be(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;t=n.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rr(this.char()))return this.error(fe.INVALID_TAG,Be(e,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(fe.UNMATCHED_CLOSING_TAG,Be(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:de.tag,value:o,children:t,location:Be(r,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,Be(e,this.clonePosition())))}return this.error(fe.UNCLOSED_TAG,Be(r,this.clonePosition()))}return this.error(fe.INVALID_TAG,Be(r,this.clonePosition()))},er.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},er.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=Be(r,this.clonePosition());return{val:{type:de.literal,value:o,location:r},err:null}},er.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(rr(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},er.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Ze.apply(void 0,e)},er.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Ze(r))},er.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,Be(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(fe.EMPTY_ARGUMENT,Be(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(fe.MALFORMED_ARGUMENT,Be(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,Be(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:de.argument,value:o,location:Be(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,Be(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(fe.MALFORMED_ARGUMENT,Be(r,this.clonePosition()))}},er.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=He(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:Be(t,this.clonePosition())}},er.prototype.parseArgumentOptions=function(t,e,r,o){var n,s=this.clonePosition(),i=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(i){case"":return this.error(fe.EXPECT_ARGUMENT_TYPE,Be(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(f=Qe(d.val)).length)return this.error(fe.EXPECT_ARGUMENT_STYLE,Be(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Be(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(o)).err)return p;var u=Be(o,this.clonePosition());if(l&&qe(null==l?void 0:l.style,"::",0)){c=We(l.style.slice(2));if("number"===i)return(d=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?d:{val:{type:de.number,value:r,location:u,style:d.val},err:null};if(0===c.length)return this.error(fe.EXPECT_DATE_TIME_SKELETON,u);var f={type:pe.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(Se,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-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"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n):{}};return{val:{type:"date"===i?de.date:de.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===i?de.number:"date"===i?de.date:de.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,Be(l,he({},l)));this.bumpSpace();var d,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Be(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=d.val}u=this.tryParsePluralOrSelectOptions(t,i,e,u);if(u.err)return u;if((p=this.tryParseArgumentClose(o)).err)return p;var p=Be(o,this.clonePosition());return"select"===i?{val:{type:de.select,value:r,options:Ye(u.val),location:p},err:null}:{val:{type:de.plural,value:r,options:Ye(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:p},err:null};default:return this.error(fe.INVALID_ARGUMENT_TYPE,Be(s,a))}},er.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,Be(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},er.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Be(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},er.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(Ne).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var s=n[0],n=n.slice(1),i=0,a=n;i<a.length;i++)if(0===a[i].length)throw new Error("Invalid number skeleton");e.push({stem:s,options:n})}return e}(t)}catch(t){return this.error(fe.INVALID_NUMBER_SKELETON,e)}return{val:{type:pe.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Me(r):{}},err:null}},er.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,s=[],i=new Set,a=o.value,l=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Be(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(i.has(a))return this.error("select"===e?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Be(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;c=this.tryParseArgumentClose(f);if(c.err)return c;s.push([a,{value:u.val,location:Be(f,this.clonePosition())}]),i.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===s.length?this.error("select"===e?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Be(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(fe.MISSING_OTHER_CLAUSE,Be(this.clonePosition(),this.clonePosition())):{val:s,err:null}},er.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;n=!0,s=10*s+(i-48),this.bump()}o=Be(o,this.clonePosition());return n?ze(s*=r)?{val:s,err:null}:this.error(e,o):this.error(t,o)},er.prototype.offset=function(){return this.position.offset},er.prototype.isEOF=function(){return this.offset()===this.message.length},er.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},er.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ke(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},er.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},er.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},er.prototype.bumpIf=function(t){if(qe(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},er.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},er.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},er.prototype.bumpSpace=function(){for(;!this.isEOF()&&or(this.char());)this.bump()},er.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},er);function er(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function rr(t){return 97<=t&&t<=122||65<=t&&t<=90}function or(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function nr(t,e){e=he({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new tr(t,e).parse();if(r.err){t=SyntaxError(fe[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,ve(t)||Ee(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else we(t)&&Te(t.style)||(ye(t)||be(t))&&_e(t.style)?delete t.style.location:Pe(t)&&r(t.children)})}(r.val),r.val}function sr(t,e){var r=e&&e.cache?e.cache:dr,o=e&&e.serializer?e.serializer:cr;return(e&&e.strategy?e.strategy:function(t,e){return lr(t,this,1===t.length?ir:ar,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ir(t,e,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=e.get(n);return void 0===r&&(r=t.call(this,o),e.set(n,r)),r}function ar(t,e,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=e.get(n);return void 0===r&&(r=t.apply(this,o),e.set(n,r)),r}function lr(t,e,r,o,n){return r.bind(e,t,o,n)}var cr=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(t){return t in this.cache},ur.prototype.get=function(t){return this.cache[t]},ur.prototype.set=function(t,e){this.cache[t]=e};var fr,dr={create:function(){return new ur}},pr={variadic:function(t,e){return lr(t,this,ar,e.cache.create(),e.serializer)},monadic:function(t,e){return lr(t,this,ir,e.cache.create(),e.serializer)}};(Ae=fr=fr||{}).MISSING_VALUE="MISSING_VALUE",Ae.INVALID_VALUE="INVALID_VALUE",Ae.MISSING_INTL_API="MISSING_INTL_API";var hr,mr,gr,wr,yr,br=(ue(Sr,yr=Error),Sr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Sr),vr=(ue(Ar,wr=br),Ar),Er=(ue(_r,gr=br),_r),Pr=(ue(Tr,mr=br),Tr);function Tr(t,e){return mr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',fr.MISSING_VALUE,e)||this}function _r(t,e,r){return gr.call(this,'Value for "'+t+'" must be of type '+e,fr.INVALID_VALUE,r)||this}function Ar(t,e,r,o){return wr.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',fr.INVALID_VALUE,o)||this}function Sr(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Cr(t,e,r,o,n,s,i){if(1===t.length&&ge(t[0]))return[{type:hr.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(ge(u))a.push({type:hr.literal,value:u.value});else if(u.type===de.pound)"number"==typeof s&&a.push({type:hr.literal,value:r.getNumberFormat(e).format(s)});else{var f=u.value;if(!(n&&f in n))throw new Pr(f,i);var d=n[f];if(u.type===de.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?hr.literal:hr.object,value:d});else if(ye(u)){var p="string"==typeof u.style?o.date[u.style]:_e(u.style)?u.style.parsedOptions:void 0;a.push({type:hr.literal,value:r.getDateTimeFormat(e,p).format(d)})}else if(be(u))p="string"==typeof u.style?o.time[u.style]:_e(u.style)?u.style.parsedOptions:void 0,a.push({type:hr.literal,value:r.getDateTimeFormat(e,p).format(d)});else if(we(u))(p="string"==typeof u.style?o.number[u.style]:Te(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),a.push({type:hr.literal,value:r.getNumberFormat(e,p).format(d)});else{if(Pe(u)){var h=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new Er(m,"function",i);h=f(Cr(h,e,r,o,n,s).map(function(t){return t.value}));Array.isArray(h)||(h=[h]),a.push.apply(a,h.map(function(t){return{type:"string"==typeof t?hr.literal:hr.object,value:t}}))}if(ve(u)){if(!(g=u.options[d]||u.options.other))throw new vr(u.value,d,Object.keys(u.options),i);a.push.apply(a,Cr(g.value,e,r,o,n))}else if(Ee(u)){if(!(g=u.options["="+d])){if(!Intl.PluralRules)throw new br('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fr.MISSING_INTL_API,i);var h=r.getPluralRules(e,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[h]||u.options.other}if(!g)throw new vr(u.value,d,Object.keys(u.options),i);a.push.apply(a,Cr(g.value,e,r,o,n,d-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===hr.literal&&e.type===hr.literal?r.value+=e.value:t.push(e),t},[])}function Nr(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(Ae=hr=hr||{})[Ae.literal=0]="literal",Ae[Ae.object=1]="object";var Fr=(Object.defineProperty(Lr,"defaultLocale",{get:function(){return Lr.memoizedDefaultLocale||(Lr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Lr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Lr.memoizedDefaultLocale=null,Lr.__parse=nr,Lr.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"}}},Lr);function Lr(t,e,r,o){var n,s,i=this;if(void 0===e&&(e=Lr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=i.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===hr.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Cr(i.ast,i.locales,i.formatters,i.formats,t,void 0,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"string"==typeof t){if(this.message=t,!Lr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Lr.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=Lr.formats,(s=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=s[e])?he(he(he({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=he(he({},r[e]),o[e]||{}),t},{})):r),t},he({},n)):n),this.locales=e,this.formatters=o&&o.formatters||{getNumberFormat:sr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,me([void 0],e)))},{cache:Nr((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:pr.variadic}),getDateTimeFormat:sr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,me([void 0],e)))},{cache:Nr(o.dateTime),strategy:pr.variadic}),getPluralRules:sr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,me([void 0],e)))},{cache:Nr(o.pluralRules),strategy:pr.variadic})}}const xr={},Or=(e,r)=>{if(null!=r){if(r in xr&&e in xr[r])return xr[r][e];var o,n,s=Zr(r);for(let t=0;t<s.length;t++){var i=(o=s[t],n=e,kr(o)?function(t,e){if(e in t)return t[e];const r=e.split(".");let o=t;for(let t=0;t<r.length;t++)if("object"==typeof o){if(0<t){const e=r.slice(t,r.length).join(".");if(e in o){o=o[e];break}}o=o[r[t]]}else o=void 0;return o}(function(t){return Ir[t]||null}(o),n):null);if(i)return o=e,n=r,(i=i)&&(n in xr||(xr[n]={}),o in xr[n]||(xr[n][o]=i),i)}}};let Ir;const Rr=Qt({});function kr(t){return t in Ir}function Mr(e,...r){delete xr[e],Rr.update(t=>(t[e]=le.all([t[e]||{},...r]),t))}Jt([Rr],([t])=>Object.keys(t)),Rr.subscribe(t=>Ir=t);const Ur={};function Dr(t){return Ur[t]}function Br(t){return Zr(t).some(t=>{return null===(t=Dr(t))||void 0===t?void 0:t.size})}const Gr={};function jr(t){if(!Br(t))return t in Gr?Gr[t]:void 0;const e=Zr(t).map(t=>{var e=Dr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Gr[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){Ur[t].delete(e),0===Ur[t].size&&delete Ur[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Mr(e,...t))}(t))).then(()=>Br(t)?jr(t):void delete Gr[t]),Gr[t]}function $r(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const Vr={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 zr=Qt(!1);let Xr;const Hr=Qt(null);function qr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Zr(t,e=Vr.fallbackLocale){t=qr(t);return e?[...new Set([...t,...qr(e)])]:t}Hr.subscribe(t=>{Xr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Yr=Hr.set;Hr.set=e=>{if(function(t){if(null!=t){var e=Zr(t);for(let t=0;t<e.length;t++){var r=e[t];if(kr(r))return r}}}(e)&&Br(e)){var{loadingDelay:r}=Vr;let t;return"undefined"!=typeof window&&null!=Xr&&r?t=window.setTimeout(()=>zr.set(!0),r):zr.set(!0),jr(e).then(()=>{Yr(e)}).finally(()=>{clearTimeout(t),zr.set(!1)})}return Yr(e)},Hr.update=t=>Yr(t(Xr));const Kr=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},Wr=(t,e)=>{var{formats:r}=Vr;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Qr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Wr("number",r)),new Intl.NumberFormat(e,t)}),Jr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Wr("date",r):0===Object.keys(t).length&&(t=Wr("date","short")),new Intl.DateTimeFormat(e,t)}),to=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Wr("time",r):0===Object.keys(t).length&&(t=Wr("time","short")),new Intl.DateTimeFormat(e,t)}),eo=Kr((t,e=Xr)=>new Fr(t,e,Vr.formats,{ignoreTag:Vr.ignoreTag})),ro=Jt([Hr,Rr],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:o=Xr,default:n}=e;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=Or(t,o);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}else Vr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Zr(o).join('", "')}".${Br(Xr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),s=n||t;if(!r)return s;let i=s;try{i=eo(s,o).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return i});Jt([Hr],()=>(t,e)=>((t={})=>{var{locale:e=Xr}=t,t=$r(t,["locale"]);return to(Object.assign({locale:e},t))})(e).format(t)),Jt([Hr],()=>(t,e)=>((t={})=>{var{locale:e=Xr}=t,t=$r(t,["locale"]);return Jr(Object.assign({locale:e},t))})(e).format(t)),Jt([Hr],()=>(t,e)=>((t={})=>{var{locale:e=Xr}=t,t=$r(t,["locale"]);return Qr(Object.assign({locale:e},t))})(e).format(t)),Jt([Hr,Rr],()=>(t,e=Xr)=>Or(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Yt.indexOf(t)&&(e=new Xt(e),Kt[t]=e,Yt.push(t)),Kt[t]}};const oo={en:{forgotPasswordForm:{goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login"}},fr:{forgotPasswordForm:{goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter"}},tr:{forgotPasswordForm:{goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlamak için talimatları içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Onay şifresi yeni şifreyle eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için tıklayınız"}},ro:{forgotPasswordForm:{goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parola Uitata",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",forgotPasswordEmailError:"Acest email nu exista",forgotPasswordReset:"Reseteaza parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instructiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parola",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie sa fie intre 8 si 20 de caractere, sa contina o litera mare, o cifra si un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmata trebuie sa fie la fel ca parola noua si sa respecte aceleasi reguli",forgotNewPasswordButton:"Schimba parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbata cu succes.",forgotChangePasswordLogin:"Autentificare"}},es:{forgotPasswordForm:{goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvidaste tu contraseña",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"El e-mail debe contener '@' y un dominio de 2-3 letras.",forgotPasswordEmailError:"Este e-mail no existe.",forgotPasswordReset:"Redefinir contraseña",forgotPasswordSuccess:"¡Éxito!",forgotPasswordSuccessDescription:"Le hemos enviado un e-mail con instrucciones para restablecer su contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar la contraseña",forgotNewPasswordConfirmPasswordError:"La contraseña de confirmación debe coincidir con la nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar la contraseña",forgotChangePasswordTitle:"¡Éxito!",forgotChangePasswordDescription:"Su contraseña ha sido cambiada con éxito.",forgotChangePasswordLogin:"Haga clic aquí para ingresar"}},pt:{forgotPasswordForm:{goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar"}}};function no(t){let r,o;return{c(){r=e("script"),r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[1])&&tt(r,"src",o),r.async=!0,r.defer=!0},m(t,e){Y(t,r,e)},p(t,e){2&e[0]&&r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[1])&&tt(r,"src",o)},d(t){t&&K(r)}}}function so(r){let o,n,s,i,a,l,c,u,f,d,p,h,m,g,w,y,b,v,E,P,T,_,A,S,C=r[20]("forgotPasswordForm.forgotChangePasswordTitle")+"",N=r[20]("forgotPasswordForm.forgotChangePasswordDescription")+"",F=r[20]("forgotPasswordForm.forgotChangePasswordLogin")+"";return{c(){o=e("div"),n=e("div"),s=e("div"),i=j("svg"),a=j("defs"),l=j("style"),c=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),u=j("g"),f=j("g"),d=j("path"),p=j("g"),h=j("circle"),m=j("circle"),g=Q(),w=e("h4"),y=W(C),b=Q(),v=e("p"),E=W(N),P=Q(),T=e("button"),_=W(F),tt(d,"class","a"),tt(d,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(d,"transform","translate(264.272 482.563)"),tt(f,"transform","translate(-7360.574 8503.438)"),tt(h,"class","c"),tt(h,"cx","30"),tt(h,"cy","30"),tt(h,"r","30"),tt(m,"class","d"),tt(m,"cx","30"),tt(m,"cy","30"),tt(m,"r","29"),tt(p,"class","b"),tt(p,"transform","translate(-7106 8970)"),tt(u,"transform","translate(7106 -8970)"),tt(i,"xmlns","http://www.w3.org/2000/svg"),tt(i,"width","60"),tt(i,"height","60"),tt(i,"viewBox","0 0 60 60"),tt(s,"class","NewPasswordSuccess"),tt(s,"part","NewPasswordSuccess"),tt(T,"class","resetPasswordButton"),tt(T,"part","resetPasswordButton"),tt(n,"class","FormContent"),tt(n,"part","FormContent"),tt(o,"class","FormLeftSide"),tt(o,"part","FormLeftSide")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(i,a),Z(a,l),Z(l,c),Z(i,u),Z(u,f),Z(f,d),Z(u,p),Z(p,h),Z(p,m),Z(s,g),Z(s,w),Z(w,y),Z(s,b),Z(s,v),Z(v,E),Z(n,P),Z(n,T),Z(T,_),A||(S=J(T,"click",r[42]),A=!0)},p(t,e){1048576&e[0]&&C!==(C=t[20]("forgotPasswordForm.forgotChangePasswordTitle")+"")&&et(y,C),1048576&e[0]&&N!==(N=t[20]("forgotPasswordForm.forgotChangePasswordDescription")+"")&&et(E,N),1048576&e[0]&&F!==(F=t[20]("forgotPasswordForm.forgotChangePasswordLogin")+"")&&et(_,F)},d(t){t&&K(o),A=!1,S()}}}function io(r){let o,n,s,i,a,l,c,u,f,d,p,h,m,g,w,y,b,v,E,P,T,_,A,S,C,N,F,L,x,O,I,R=r[20]("forgotPasswordForm.forgotNewPasswordTitle")+"",k=r[20]("forgotPasswordForm.forgotNewPasswordPassword")+"",M=r[20]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"",U=r[20]("forgotPasswordForm.forgotNewPasswordButton")+"";function D(t){return t[16]?uo:co}let B=D(r),G=B(r),j=r[12]&&fo(r);function $(t){return t[17]?ho:po}let V=$(r),z=V(r),X=r[13]&&mo(r);return{c(){o=e("div"),n=e("div"),s=e("h4"),i=W(R),a=Q(),l=e("div"),c=e("div"),u=e("label"),f=W(k),d=W(":"),p=e("span"),p.textContent="*",h=Q(),m=e("input"),g=Q(),G.c(),w=Q(),j&&j.c(),y=Q(),b=e("div"),v=e("label"),E=W(M),P=W(":"),T=e("span"),T.textContent="*",_=Q(),A=e("input"),S=Q(),z.c(),C=Q(),X&&X.c(),N=Q(),F=e("button"),L=W(U),tt(s,"class","FormHeaderTitle"),tt(s,"part","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(n,"part","FormHeader"),tt(p,"class","FormRequired"),tt(p,"part","FormRequired"),tt(u,"for","NewPassword"),tt(m,"type","password"),tt(m,"id","NewPassword"),tt(c,"class","NewPassword"),tt(c,"part","NewPassword"),tt(T,"class","FormRequired"),tt(T,"part","FormRequired"),tt(v,"for","RetypePassword"),tt(A,"type","password"),tt(A,"id","RetypePassword"),tt(b,"class","ConfirmPassword"),tt(b,"part","ConfirmPassword"),tt(F,"class","resetPasswordButton"),tt(F,"part","resetPasswordButton"),F.disabled=x=!r[11],tt(l,"class","FormContent"),tt(l,"part","FormContent"),tt(o,"class","FormLeftSide test"),tt(o,"part","FormLeftSide test")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(o,l),Z(l,c),Z(c,u),Z(u,f),Z(u,d),Z(u,p),Z(c,h),Z(c,m),rt(m,r[18]),r[34](m),Z(c,g),G.m(c,null),Z(c,w),j&&j.m(c,null),Z(l,y),Z(l,b),Z(b,v),Z(v,E),Z(v,P),Z(v,T),Z(b,_),Z(b,A),rt(A,r[19]),r[38](A),Z(b,S),z.m(b,null),Z(b,C),X&&X.m(b,null),Z(l,N),Z(l,F),Z(F,L),O||(I=[J(m,"input",r[33]),J(m,"blur",function(){q(r[26](r[12],r[18],r[14]))&&r[26](r[12],r[18],r[14]).apply(this,arguments)}),J(A,"input",r[37]),J(A,"keyup",function(){q(r[26](r[13],r[19],r[15]))&&r[26](r[13],r[19],r[15]).apply(this,arguments)}),J(F,"click",r[41])],O=!0)},p(t,e){r=t,1048576&e[0]&&R!==(R=r[20]("forgotPasswordForm.forgotNewPasswordTitle")+"")&&et(i,R),1048576&e[0]&&k!==(k=r[20]("forgotPasswordForm.forgotNewPasswordPassword")+"")&&et(f,k),262144&e[0]&&m.value!==r[18]&&rt(m,r[18]),B===(B=D(r))&&G?G.p(r,e):(G.d(1),G=B(r),G&&(G.c(),G.m(c,w))),r[12]?j?j.p(r,e):(j=fo(r),j.c(),j.m(c,null)):j&&(j.d(1),j=null),1048576&e[0]&&M!==(M=r[20]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"")&&et(E,M),524288&e[0]&&A.value!==r[19]&&rt(A,r[19]),V===(V=$(r))&&z?z.p(r,e):(z.d(1),z=V(r),z&&(z.c(),z.m(b,C))),r[13]?X?X.p(r,e):(X=mo(r),X.c(),X.m(b,null)):X&&(X.d(1),X=null),1048576&e[0]&&U!==(U=r[20]("forgotPasswordForm.forgotNewPasswordButton")+"")&&et(L,U),2048&e[0]&&x!==(x=!r[11])&&(F.disabled=x)},d(t){t&&K(o),r[34](null),G.d(),j&&j.d(),r[38](null),z.d(),X&&X.d(),O=!1,H(I)}}}function ao(t){let r,o,n,s,i,a,l,c,u,f,d,p,h,m,g,w,y,b,v,E=t[20]("forgotPasswordForm.forgotPasswordSuccess")+"",P=t[20]("forgotPasswordForm.forgotPasswordSuccessDescription")+"";return{c(){r=e("div"),o=e("div"),n=e("div"),s=j("svg"),i=j("defs"),a=j("style"),l=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),c=j("g"),u=j("g"),f=j("path"),d=j("g"),p=j("circle"),h=j("circle"),m=Q(),g=e("h4"),w=W(E),y=Q(),b=e("p"),v=W(P),tt(f,"class","a"),tt(f,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(f,"transform","translate(264.272 482.563)"),tt(u,"transform","translate(-7360.574 8503.438)"),tt(p,"class","c"),tt(p,"cx","30"),tt(p,"cy","30"),tt(p,"r","30"),tt(h,"class","d"),tt(h,"cx","30"),tt(h,"cy","30"),tt(h,"r","29"),tt(d,"class","b"),tt(d,"transform","translate(-7106 8970)"),tt(c,"transform","translate(7106 -8970)"),tt(s,"xmlns","http://www.w3.org/2000/svg"),tt(s,"width","60"),tt(s,"height","60"),tt(s,"viewBox","0 0 60 60"),tt(n,"class","NewPasswordSuccess"),tt(n,"part","NewPasswordSuccess"),tt(o,"class","FormContent"),tt(o,"part","FormContent"),tt(r,"class","FormLeftSide"),tt(r,"part","FormLeftSide")},m(t,e){Y(t,r,e),Z(r,o),Z(o,n),Z(n,s),Z(s,i),Z(i,a),Z(a,l),Z(s,c),Z(c,u),Z(u,f),Z(c,d),Z(d,p),Z(d,h),Z(n,m),Z(n,g),Z(g,w),Z(n,y),Z(n,b),Z(b,v)},p(t,e){1048576&e[0]&&E!==(E=t[20]("forgotPasswordForm.forgotPasswordSuccess")+"")&&et(w,E),1048576&e[0]&&P!==(P=t[20]("forgotPasswordForm.forgotPasswordSuccessDescription")+"")&&et(v,P)},d(t){t&&K(r)}}}function lo(r){let o,n,s,i,a,l,c,u,f,d,p,h,m,g,w,y,b,v,E,P,T,_,A,S,C,N,F,L,x,O,I,R,k=r[20]("forgotPasswordForm.goToLogin")+"",M=r[20]("forgotPasswordForm.forgotPasswordTitle")+"",U=r[20]("forgotPasswordForm.forgotPasswordEmail")+"",D=r[20]("forgotPasswordForm.forgotPasswordReset")+"",B=r[9]&&go(r),G=r[3]&&wo(r);return{c(){o=e("div"),n=e("div"),s=e("button"),i=j("svg"),a=j("defs"),l=j("style"),c=W(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),u=j("path"),f=Q(),d=W(k),p=Q(),h=e("h4"),m=W(M),g=Q(),w=e("div"),y=e("div"),b=e("label"),v=W(U),E=W(":"),P=e("span"),P.textContent="*",T=Q(),_=e("input"),A=Q(),B&&B.c(),S=Q(),G&&G.c(),F=Q(),L=e("button"),x=W(D),tt(u,"class","a"),tt(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),tt(u,"transform","translate(24 24) rotate(180)"),tt(i,"xmlns","http://www.w3.org/2000/svg"),tt(i,"viewBox","0 0 24 24"),tt(s,"class","backButtonForgotPassword"),tt(s,"part","backButtonForgotPassword"),tt(h,"class","FormHeaderTitle"),tt(h,"part","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(n,"part","FormHeader"),tt(P,"class","FormRequired"),tt(P,"part","FormRequired"),tt(b,"for","ResetPasswordByEmail"),tt(_,"type","text"),tt(_,"id","ResetPasswordByEmail"),tt(y,"class",C="ResetPasswordByEmail "+(r[9]?"InvalidField":"")),tt(y,"part",N="ResetPasswordByEmail "+(r[9]?"InvalidField":"")),tt(L,"class","resetPasswordButton"),tt(L,"part","resetPasswordButton"),L.disabled=O=!r[10],tt(w,"class","FormContent"),tt(w,"part","FormContent"),tt(o,"class","FormLeftSide"),tt(o,"part","FormLeftSide")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(i,a),Z(a,l),Z(l,c),Z(i,u),Z(s,f),Z(s,d),Z(n,p),Z(n,h),Z(h,m),Z(o,g),Z(o,w),Z(w,y),Z(y,b),Z(b,v),Z(b,E),Z(b,P),Z(y,T),Z(y,_),rt(_,r[5]),Z(y,A),B&&B.m(y,null),Z(y,S),G&&G.m(y,null),Z(w,F),Z(w,L),Z(L,x),I||(R=[J(s,"click",r[30]),J(_,"input",r[31]),J(_,"keyup",r[21]),J(L,"click",r[32])],I=!0)},p(t,e){1048576&e[0]&&k!==(k=t[20]("forgotPasswordForm.goToLogin")+"")&&et(d,k),1048576&e[0]&&M!==(M=t[20]("forgotPasswordForm.forgotPasswordTitle")+"")&&et(m,M),1048576&e[0]&&U!==(U=t[20]("forgotPasswordForm.forgotPasswordEmail")+"")&&et(v,U),32&e[0]&&_.value!==t[5]&&rt(_,t[5]),t[9]?B?B.p(t,e):(B=go(t),B.c(),B.m(y,S)):B&&(B.d(1),B=null),t[3]?G?G.p(t,e):(G=wo(t),G.c(),G.m(y,null)):G&&(G.d(1),G=null),512&e[0]&&C!==(C="ResetPasswordByEmail "+(t[9]?"InvalidField":""))&&tt(y,"class",C),512&e[0]&&N!==(N="ResetPasswordByEmail "+(t[9]?"InvalidField":""))&&tt(y,"part",N),1048576&e[0]&&D!==(D=t[20]("forgotPasswordForm.forgotPasswordReset")+"")&&et(x,D),1024&e[0]&&O!==(O=!t[10])&&(L.disabled=O)},d(t){t&&K(o),B&&B.d(),G&&G.d(),I=!1,H(R)}}}function co(r){let o,n,s,i,a,l,c,u,f,d;return{c(){o=j("svg"),n=j("defs"),s=j("style"),i=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=j("g"),l=j("path"),c=j("circle"),tt(l,"class","a"),tt(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),tt(l,"transform","translate(0)"),tt(c,"class","a"),tt(c,"cx","2.779"),tt(c,"cy","2.779"),tt(c,"r","2.779"),tt(c,"transform","translate(20.827 30.303)"),tt(a,"transform","translate(-14.185 -27.832)"),tt(o,"class",u="TogglePasswordVisibility "+(r[12]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.843"),tt(o,"height","10.5"),tt(o,"viewBox","0 0 18.843 10.5")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),f||(d=J(o,"click",r[36]),f=!0)},p(t,e){4096&e[0]&&u!==(u="TogglePasswordVisibility "+(t[12]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,d()}}}function uo(r){let o,n,s,i,a,l,c,u,f,d,p,h,m,g,w,y;return{c(){o=j("svg"),n=j("defs"),s=j("style"),i=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=j("g"),l=j("circle"),c=j("g"),u=j("path"),f=j("path"),d=j("g"),p=j("path"),h=j("path"),m=j("rect"),tt(l,"class","a"),tt(l,"cx","0.05"),tt(l,"cy","0.05"),tt(l,"r","0.05"),tt(l,"transform","translate(121.017 31.148)"),tt(u,"class","a"),tt(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),tt(u,"transform","translate(-142.164 -39.123)"),tt(f,"class","a"),tt(f,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),tt(f,"transform","translate(-136.413 -42.068)"),tt(c,"transform","translate(117.499 27.37)"),tt(p,"class","a"),tt(p,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),tt(p,"transform","translate(-110.856 -33.157)"),tt(h,"class","a"),tt(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),tt(h,"transform","translate(-130.743 -29.617)"),tt(d,"transform","translate(110.856 24.899)"),tt(m,"class","a"),tt(m,"width","0.972"),tt(m,"height","15.861"),tt(m,"rx","0.486"),tt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),tt(a,"transform","translate(-110.856 -23.242)"),tt(o,"class",g="TogglePasswordVisibility "+(r[12]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.844"),tt(o,"height","12.887"),tt(o,"viewBox","0 0 18.844 12.887")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),Z(c,u),Z(c,f),Z(a,d),Z(d,p),Z(d,h),Z(a,m),w||(y=J(o,"click",r[35]),w=!0)},p(t,e){4096&e[0]&&g!==(g="TogglePasswordVisibility "+(t[12]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),w=!1,y()}}}function fo(t){let r,o,n=t[20]("forgotPasswordForm.forgotNewPasswordPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput"),tt(r,"part","InvalidInput")},m(t,e){Y(t,r,e),Z(r,o)},p(t,e){1048576&e[0]&&n!==(n=t[20]("forgotPasswordForm.forgotNewPasswordPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function po(r){let o,n,s,i,a,l,c,u,f,d,p;return{c(){o=j("svg"),n=j("defs"),s=j("style"),i=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=j("g"),l=j("path"),c=j("circle"),tt(l,"class","a"),tt(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),tt(l,"transform","translate(0)"),tt(c,"class","a"),tt(c,"cx","2.779"),tt(c,"cy","2.779"),tt(c,"r","2.779"),tt(c,"transform","translate(20.827 30.303)"),tt(a,"transform","translate(-14.185 -27.832)"),tt(o,"class",u="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),tt(o,"part",f="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.843"),tt(o,"height","10.5"),tt(o,"viewBox","0 0 18.843 10.5")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),d||(p=J(o,"click",r[40]),d=!0)},p(t,e){8192&e[0]&&u!==(u="TogglePasswordVisibility "+(t[13]?"InvalidToggle":""))&&tt(o,"class",u),8192&e[0]&&f!==(f="TogglePasswordVisibility "+(t[13]?"InvalidToggle":""))&&tt(o,"part",f)},d(t){t&&K(o),d=!1,p()}}}function ho(r){let o,n,s,i,a,l,c,u,f,d,p,h,m,g,w,y,b;return{c(){o=j("svg"),n=j("defs"),s=j("style"),i=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=j("g"),l=j("circle"),c=j("g"),u=j("path"),f=j("path"),d=j("g"),p=j("path"),h=j("path"),m=j("rect"),tt(l,"class","a"),tt(l,"cx","0.05"),tt(l,"cy","0.05"),tt(l,"r","0.05"),tt(l,"transform","translate(121.017 31.148)"),tt(u,"class","a"),tt(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),tt(u,"transform","translate(-142.164 -39.123)"),tt(f,"class","a"),tt(f,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),tt(f,"transform","translate(-136.413 -42.068)"),tt(c,"transform","translate(117.499 27.37)"),tt(p,"class","a"),tt(p,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),tt(p,"transform","translate(-110.856 -33.157)"),tt(h,"class","a"),tt(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),tt(h,"transform","translate(-130.743 -29.617)"),tt(d,"transform","translate(110.856 24.899)"),tt(m,"class","a"),tt(m,"width","0.972"),tt(m,"height","15.861"),tt(m,"rx","0.486"),tt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),tt(a,"transform","translate(-110.856 -23.242)"),tt(o,"class",g="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),tt(o,"part",w="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.844"),tt(o,"height","12.887"),tt(o,"viewBox","0 0 18.844 12.887")},m(t,e){Y(t,o,e),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),Z(c,u),Z(c,f),Z(a,d),Z(d,p),Z(d,h),Z(a,m),y||(b=J(o,"click",r[39]),y=!0)},p(t,e){8192&e[0]&&g!==(g="TogglePasswordVisibility "+(t[13]?"InvalidToggle":""))&&tt(o,"class",g),8192&e[0]&&w!==(w="TogglePasswordVisibility "+(t[13]?"InvalidToggle":""))&&tt(o,"part",w)},d(t){t&&K(o),y=!1,b()}}}function mo(t){let r,o,n=t[20]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput"),tt(r,"part","InvalidInput")},m(t,e){Y(t,r,e),Z(r,o)},p(t,e){1048576&e[0]&&n!==(n=t[20]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function go(t){let r,o,n=t[20]("forgotPasswordForm.forgotPasswordEmailInputError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","ForgotPasswordError"),tt(r,"part","ForgotPasswordError")},m(t,e){Y(t,r,e),Z(r,o)},p(t,e){1048576&e[0]&&n!==(n=t[20]("forgotPasswordForm.forgotPasswordEmailInputError")+"")&&et(o,n)},d(t){t&&K(r)}}}function wo(t){let r,o,n=t[20]("forgotPasswordForm.forgotPasswordEmailError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","ForgotPasswordError"),tt(r,"part","ForgotPasswordError")},m(t,e){Y(t,r,e),Z(r,o)},p(t,e){1048576&e[0]&&n!==(n=t[20]("forgotPasswordForm.forgotPasswordEmailError")+"")&&et(o,n)},d(t){t&&K(r)}}}function yo(t){let r;return{c(){r=e("div"),tt(r,"class","FormRightSide"),tt(r,"part","FormRightSide"),o(r,"background-image","url('"+t[0]+"')")},m(t,e){Y(t,r,e)},p(t,e){1&e[0]&&o(r,"background-image","url('"+t[0]+"')")},d(t){t&&K(r)}}}function bo(t){let r,o,n,s,i,a=t[1]&&no(t),l=function(t){let r,o,n;function s(t){return t[2]?lo:t[4]?ao:t[6]?io:t[7]?so:void 0}let i=s(t),a=i&&i(t),l=!t[8]&&yo(t);return{c(){r=e("div"),a&&a.c(),o=Q(),l&&l.c(),tt(r,"class",n="FormContainer "+(t[8]?"FormMobileContainer":"")),tt(r,"part","FormContainer")},m(t,e){Y(t,r,e),a&&a.m(r,null),Z(r,o),l&&l.m(r,null)},p(t,e){i===(i=s(t))&&a?a.p(t,e):(a&&a.d(1),a=i&&i(t),a&&(a.c(),a.m(r,o))),t[8]?l&&(l.d(1),l=null):l?l.p(t,e):(l=yo(t),l.c(),l.m(r,null)),256&e[0]&&n!==(n="FormContainer "+(t[8]?"FormMobileContainer":""))&&tt(r,"class",n)},d(t){t&&K(r),a&&a.d(),l&&l.d()}}}(t);return{c(){a&&a.c(),r=c(),o=Q(),n=e("div"),s=Q(),l.c(),i=c(),this.c=f,tt(n,"class","g-recaptcha"),tt(n,"data-sitekey",t[1])},m(t,e){a&&a.m(document.head,null),Z(document.head,r),Y(t,o,e),Y(t,n,e),Y(t,s,e),l.m(t,e),Y(t,i,e)},p(t,e){t[1]?a?a.p(t,e):(a=no(t),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),2&e[0]&&tt(n,"data-sitekey",t[1]),l.p(t,e)},i:f,o:f,d(t){a&&a.d(t),K(r),t&&K(o),t&&K(n),t&&K(s),l.d(t),t&&K(i)}}}function vo(e,t,o){let r;var n=ro;e.$$.on_destroy.push(U(n,t=>o(20,r=t)));var s=this&&this.__awaiter||function(t,i,a,l){return new(a=a||Promise)(function(r,e){function o(t){try{s(l.next(t))}catch(t){e(t)}}function n(t){try{s(l.throw(t))}catch(t){e(t)}}function s(t){var e;t.done?r(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,n)}s((l=l.apply(t,i||[])).next())})};let i,a,{endpoint:l=""}=t,{forgotpasswordkey:c=""}=t,{imagedesktop:u=""}=t,{captchakey:f=""}=t,{lang:d=""}=t,p=!0,h=!1,m=!1,g="",w=!1,y=!1,b=!1,v,E,P=window.navigator.userAgent,T,_=!1,A=!1,S=!1,C=!1,N="",F="";Object.keys(oo).forEach(t=>{Mr(t,oo[t])});const L={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},x=t=>{switch(t){case"userNewPassword":o(16,S=!S),o(14,i.type=S?"text":"password",i);break;case"userConfirmPassword":o(17,C=!C),o(15,a.type=C?"text":"password",a)}},O=t=>{switch(t){case"ToEmailSuccess":o(3,h=!1),o(2,p=!1),o(4,m=!0);break;case"ToReset":o(2,p=!1),o(6,w=!0);break;case"ToSuccess":o(6,w=!1),o(7,y=!0)}},I=()=>{window.postMessage({type:"ToLogin"},window.location.href)},R=()=>{new Promise((e,t)=>{grecaptcha.ready(()=>{grecaptcha.execute(f,{action:"submit"}).then(t=>{e(t)})})}).then(t=>{let e=new URL(`${l}/player/resetpassword`),r={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":t}};e.searchParams.append("email",g),fetch(e,r).then(t=>{200==t.status?O("ToEmailSuccess"):o(3,h=!0)})})},k=()=>{var t=new URL(`${l}/player/ResetPasswordByHashKey`),e={hashKey:c,plainTextPassword:N},e={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t,e).then(t=>{200==t.status&&O("ToSuccess")})},M=t=>!!L.password.test(t);return t=()=>s(void 0,void 0,void 0,function*(){var t;((t=P).toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))&&o(8,b=!0)}),function(){if(!D)throw new Error("Function called outside component initialization");return D}().$$.on_mount.push(t),e.$$set=t=>{"endpoint"in t&&o(27,l=t.endpoint),"forgotpasswordkey"in t&&o(28,c=t.forgotpasswordkey),"imagedesktop"in t&&o(0,u=t.imagedesktop),"captchakey"in t&&o(1,f=t.captchakey),"lang"in t&&o(29,d=t.lang)},e.$$.update=()=>{var t;268435456&e.$$.dirty[0]&&c&&c&&0<c.length&&O("ToReset"),536870912&e.$$.dirty[0]&&d&&(t=d,Hr.set(t))},[u,f,p,h,m,g,w,y,b,!1,!1,!1,_,A,i,a,S,C,N,F,r,()=>{var t;o(9,(t=g,v=!(L.email.test(t)&&t.length<=100))),o(10,E=!v)},x,I,R,k,(t,e,r)=>{"NewPassword"===r.id?(o(12,_=!M(e)),F&&o(13,A=N!==F||!M(e))):o(13,A=N!==F||!M(e)),o(11,T=!(_||A||!N||!F))},l,c,d,()=>I(),function(){g=this.value,o(5,g)},()=>R(),function(){N=this.value,o(18,N)},function(t){B[t?"unshift":"push"](()=>{i=t,o(14,i)})},()=>x("userNewPassword"),()=>x("userNewPassword"),function(){F=this.value,o(19,F)},function(t){B[t?"unshift":"push"](()=>{a=t,o(15,a)})},()=>x("userConfirmPassword"),()=>x("userConfirmPassword"),()=>k(),()=>I()]}class Eo extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.backButtonForgotPassword{display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emfe-w-color-primary, #D0046C)}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px;height:460px}.FormLeftSide{background:var(--emfe-w-color-gray-50, #F9F8F8)}.FormRightSide{background-repeat:no-repeat;background-size:cover;background-position:center}.FormHeaderTitle{color:var(--emfe-w-color-black, #000000);font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormRequired{color:var(--emfe-w-color-error, #FD2839)}.ForgotPasswordError{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emfe-w-color-green, #48952a);font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:var(--emfe-w-color-black, #000000);text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-color-primary, #D0046C)}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:14px;font-weight:300;padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.ResetPasswordByEmail.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.resetPasswordButton{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.resetPasswordButton[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:10px;line-height:10px}.FormLeftSide{flex:1 1 100%;padding:50px}.FormMobileContainer{height:100%}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset}.FormMobileContainer{height:100%}.FormMobileContainer .FormLeftSide{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}</style>",a(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},vo,bo,r,{endpoint:27,forgotpasswordkey:28,imagedesktop:0,captchakey:1,lang:29},[-1,-1]),t&&(t.target&&Y(t.target,this,t.anchor),t.props&&(this.$set(t.props),b()))}static get observedAttributes(){return["endpoint","forgotpasswordkey","imagedesktop","captchakey","lang"]}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$set({endpoint:t}),b()}get forgotpasswordkey(){return this.$$.ctx[28]}set forgotpasswordkey(t){this.$set({forgotpasswordkey:t}),b()}get imagedesktop(){return this.$$.ctx[0]}set imagedesktop(t){this.$set({imagedesktop:t}),b()}get captchakey(){return this.$$.ctx[1]}set captchakey(t){this.$set({captchakey:t}),b()}get lang(){return this.$$.ctx[29]}set lang(t){this.$set({lang:t}),b()}}return customElements.get("general-player-forgot-password-form")||customElements.define("general-player-forgot-password-form",Eo),Eo});
|
|
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 g(){}function B(e){return e()}function A(){return Object.create(null)}function X(e){e.forEach(B)}function re(e){return"function"==typeof e}function S(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let H,R;function C(e,t){return(H=H||document.createElement("a")).href=t,e===H.href}function M(e,...t){if(null==e)return g;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Z(e,t){e.appendChild(t)}function K(e,t,r){e.insertBefore(t,r||null)}function q(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function G(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Y(e){return document.createTextNode(e)}function W(){return Y(" ")}function N(){return Y("")}function J(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function Q(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ee(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function te(e,t){e.value=null==t?"":t}function L(e,t,r,o){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,o?"important":"")}function F(e){R=e}const I=[],k=[],O=[],x=[],U=Promise.resolve();let D=!1;function j(e){O.push(e)}const $=new Set;let V=0;function y(){const e=R;do{for(;V<I.length;){const e=I[V];V++,F(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),X(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(j))}for(F(null),I.length=0,V=0;k.length;)k.pop()();for(let e=0;e<O.length;e+=1){const o=O[e];$.has(o)||($.add(o),o())}}while(O.length=0,I.length);for(;x.length;)x.pop()();D=!1,$.clear(),F(e)}const z=new Set;function oe(o,e,t,r,n,s,i,a=[-1]){var l=R;F(o);const c=o.$$={fragment:null,ctx:null,props:s,update:g,not_equal:n,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let u=!1;if(c.ctx=t?t(o,e.props||{},(e,t,...r)=>{var 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),u&&(r=e,-1===(e=o).$$.dirty[0]&&(I.push(e),D||(D=!0,U.then(y)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,X(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){s=e.target;const g=Array.from(s.childNodes);c.fragment&&c.fragment.l(g),g.forEach(q)}else c.fragment&&c.fragment.c();e.intro&&(a=o.$$.fragment)&&a.i&&(z.delete(a),a.i(void 0));{var h=o;i=e.target;t=e.anchor;r=e.customElement;const{fragment:f,on_mount:p,on_destroy:d,after_update:m}=h.$$;f&&f.m(i,t),r||j(()=>{var e=p.map(B).filter(re);d?d.push(...e):X(e),h.$$.on_mount=[]}),m.forEach(j)}y()}F(l)}let ne;"function"==typeof HTMLElement&&(ne=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(B).filter(re);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){X(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(X(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=g}$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 se,ie,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ae="URLSearchParams"in a,le="Symbol"in a&&"iterator"in Symbol,ce="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),ue="FormData"in a,he="ArrayBuffer"in a;function fe(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 pe(e){return e="string"!=typeof e?String(e):e}function de(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return le&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?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 me(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ge(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function ye(e){var t=new FileReader,r=ge(t);return t.readAsArrayBuffer(e),r}function we(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function be(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ue&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ae&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():he&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):he&&(ArrayBuffer.prototype.isPrototypeOf(e)||ie(e))?this._bodyArrayBuffer=we(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):ae&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=me(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?me(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(ye)}),this.text=function(){var e,t,r=me(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=ge(e=new FileReader),e.readAsText(r),t;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)},ue&&(this.formData=function(){return this.text().then(ve)}),this.json=function(){return this.text().then(JSON.parse)},this}he&&(se=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ie=ArrayBuffer.isView||function(e){return e&&-1<se.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=fe(e),t=pe(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[fe(e)]},l.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},l.prototype.set=function(e,t){this.map[fe(e)]=pe(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),de(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),de(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),de(r)},le&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Ee=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function c(e,t){if(!(this instanceof c))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 c){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(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 l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Ee.indexOf(r)?r:e),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||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ve(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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 l(t.headers),this.url=t.url||"",this._initBody(e)}c.prototype.clone=function(){return new c(this,{body:this._bodyInit})},be.call(c.prototype),be.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var Pe=[301,302,303,307,308],h=(u.redirect=function(e,t){if(-1===Pe.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},a.DOMException);try{new h}catch(g){(h=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),h.prototype.constructor=h}function Te(o,i){return new Promise(function(n,e){var t=new c(o,i);if(t.signal&&t.signal.aborted)return e(new h("Aborted","AbortError"));var s=new XMLHttpRequest;function r(){s.abort()}s.onload=function(){var e,r,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",r=new l,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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},o=(t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){n(new u(o,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){e(new h("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?s.withCredentials=!0:"omit"===t.credentials&&(s.withCredentials=!1),"responseType"in s&&(ce?s.responseType="blob":he&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof l?t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){s.setRequestHeader(e,pe(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",r)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}Te.polyfill=!0,a.fetch||(a.fetch=Te,a.Headers=l,a.Request=c,a.Response=u),self.fetch.bind(self);var _e=function(e,t){return(_e=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 Be(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}_e(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Ae(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,s=r.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(o=s.next()).done;)i.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i}function He(e,t,r){if(r||2===arguments.length)for(var o,n=0,s=t.length;n<s;n++)!o&&n in t||((o=o||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function f(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 Ne=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 Le(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var i=Ae(s),a=i.next();!a.done;a=i.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(f(s))try{s()}catch(e){n=e instanceof Ne?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Ae(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{xe(u)}catch(e){n=null!=n?n:[],e instanceof Ne?n=He(He([],Se(n)),Se(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(n)throw new Ne(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)xe(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Le(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((o=new r).closed=!0,o);var Fe=r,Ie=Fe.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Oe(e){return e instanceof Fe||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function xe(e){f(e)?e():e.unsubscribe()}var Re=void 0,Me=!1,ke=!1,Ue={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ue.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,He([e,t],Se(r))):setTimeout.apply(void 0,He([e,t],Se(r)))},clearTimeout:function(e){var t=Ue.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function De(){}var Ge=null;function je(e){if(Me){var t=!Ge;if(t&&(Ge={errorThrown:!1,error:null}),e(),t){var t=Ge,r=t.errorThrown,t=t.error;if(Ge=null,r)throw t}}else e()}Be(e,$e=Fe),e.create=function(e,t,r){return new qe(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,$e.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var $e,Ve=e,ze=Function.prototype.bind;function e(e){var t=$e.call(this)||this;return t.isStopped=!1,e?Oe(t.destination=e)&&e.add(t):t.destination=Qe,t}function Xe(e,t){return ze.call(e,t)}We.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Je(e)}},We.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Je(e)}else Je(e)},We.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Je(e)}};var Ze,Ke=We,qe=(Be(Ye,Ze=Ve),Ye);function Ye(e,t,r){var o=Ze.call(this)||this,r=f(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:o&&ke?((t=Object.create(e)).unsubscribe=function(){return o.unsubscribe()},{next:e.next&&Xe(e.next,t),error:e.error&&Xe(e.error,t),complete:e.complete&&Xe(e.complete,t)}):e;return o.destination=new Ke(r),o}function We(e){this.partialObserver=e}function Je(e){var t=e;Ue.setTimeout(function(){throw t})}var Qe={closed:!0,next:De,error:function(e){throw e},complete:De},o="function"==typeof Symbol&&Symbol.observable||"@@observable";function et(e){return e}n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var o,n=this,s=(o=e)&&o instanceof Ve||o&&f(o.next)&&f(o.error)&&f(o.complete)&&Oe(o)?e:new qe(e,t,r);return je(function(){var e=n.operator,t=n.source;s.add(e?e.call(s,t):t?n._subscribe(s):n._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(o,e){var n=this;return new(e=rt(e))(function(e,t){var r=new qe({next:function(e){try{o(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});n.subscribe(r)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[o]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?et:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var o=this;return new(e=rt(e))(function(e,t){var r;o.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},n.create=function(e){return new n(e)};var tt=n;function n(e){e&&(this._subscribe=e)}function rt(e){return null!=(e=null!=e?e:Re)?e:Promise}var ot,nt,st,it=Ce(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=(Be(i,st=tt),i.prototype.lift=function(e){var t=new at(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new it},i.prototype.next=function(n){var s=this;je(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var r=Ae(s.currentObservers),o=r.next();!o.done;o=r.next())o.value.next(n)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var r=this;je(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)}})},i.prototype.complete=function(){var t=this;je(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),st.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,o=this.isStopped,n=this.observers;return r||o?Ie:(this.currentObservers=null,n.push(e),new Fe(function(){t.currentObservers=null,Le(n,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,o=this.isStopped;t?e.error(r):o&&e.complete()},i.prototype.asObservable=function(){var e=new tt;return e.source=this,e},i.create=function(e,t){return new at(e,t)},i),at=(Be(s,nt=o),s.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},s.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},s.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},s.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ie},s),lt={now:function(){return(lt.delegate||Date).now()},delegate:void 0},ct=(Be(ut,ot=o),ut.prototype.next=function(e){var t=this,r=t.isStopped,o=t._buffer,n=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;r||(o.push(e),n||o.push(s.now()+t)),this._trimBuffer(),ot.prototype.next.call(this,e)},ut.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},ut.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 s=t.now(),i=0,a=1;a<r.length&&r[a]<=s;a+=2)i=a;i&&r.splice(0,i+1)}},ut);function ut(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=lt);var o=ot.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 s(e,t){var r=nt.call(this)||this;return r.destination=e,r.source=t,r}function i(){var e=st.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let ht=[],ft={};const p=[];function pt(o,n=g){let s;const i=new Set;function a(e){if(S(o,e)&&(o=e,s)){const e=!p.length;for(const e of i)e[1](),p.push(e,o);if(e){for(let e=0;e<p.length;e+=2)p[e][0](p[e+1]);p.length=0}}}return{set:a,update:function(e){a(e(o))},subscribe:function(e,t=g){const r=[e,t];return i.add(r),1===i.size&&(s=n(a)||g),e(o),()=>{i.delete(r),0===i.size&&(s(),s=null)}}}}function dt(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:pt(t,t=>{let r=!1;const o=[];let n=0,s=g;const i=()=>{var e;n||(s(),e=a(l?o[0]:o,t),u?t(e):s=re(e)?e:g)},e=c.map((e,t)=>M(e,e=>{o[t]=e,n&=~(1<<t),r&&i()},()=>{n|=1<<t}));return r=!0,i(),function(){X(e),s()}}).subscribe}}function mt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===gt));var t}var gt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function yt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt(Array.isArray(e)?[]:{},e,t):e}function wt(e,t,r){return e.concat(t).map(function(e){return yt(e,r)})}function bt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Et(e,t){try{return t in e}catch(e){return!1}}function vt(o,n,s){var i={};return s.isMergeableObject(o)&&bt(o).forEach(function(e){i[e]=yt(o[e],s)}),bt(n).forEach(function(t){var e,r;(!Et(e=o,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Et(o,t)&&s.isMergeableObject(n[t])?i[t]=function(e){if(!e.customMerge)return Pt;e=e.customMerge(t);return"function"==typeof e?e:Pt}(s)(o[t],n[t],s):i[t]=yt(n[t],s))}),i}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||wt,r.isMergeableObject=r.isMergeableObject||mt,r.cloneUnlessOtherwiseSpecified=yt;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):vt(e,t,r):yt(t,r)}Pt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Pt(e,t,r)},{});throw new Error("first argument should be an array")};var Tt=Pt,_t=function(e,t){return(_t=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 Bt(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}_t(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,w,At,b=function(){return(b=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 St(e,t,r){if(r||2===arguments.length)for(var o,n=0,s=t.length;n<s;n++)!o&&n in t||((o=o||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Ht(e){return e.type===w.literal}function Ct(e){return e.type===w.number}function Nt(e){return e.type===w.date}function Lt(e){return e.type===w.time}function Ft(e){return e.type===w.select}function It(e){return e.type===w.plural}function Ot(e){return e.type===w.tag}function xt(e){return e&&"object"==typeof e&&e.type===At.number}function Rt(e){return e&&"object"==typeof e&&e.type===At.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=w=w||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=At=At||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Mt=/(?:[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 kt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ut=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dt=/^(@+)?(\+|#+)?[rs]?$/g,Gt=/(\*)(0+)|(#+)(0+)|(0+)/g,jt=/^(0+)$/;function $t(e){var o={};return"r"===e[e.length-1]?o.roundingPriority="morePrecision":"s"===e[e.length-1]&&(o.roundingPriority="lessPrecision"),e.replace(Dt,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 Vt(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 zt(e){return Vt(e)||{}}function Xt(e){for(var i={},t=0,r=e;t<r.length;t++){var o,n=r[t];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=b(b(b({},i),{notation:"scientific"}),n.options.reduce(function(e,t){return b(b({},e),zt(t))},{}));continue;case"engineering":i=b(b(b({},i),{notation:"engineering"}),n.options.reduce(function(e,t){return b(b({},e),zt(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.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(Gt,function(e,t,r,o,n,s){if(t)i.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(jt.test(n.stem))i.minimumIntegerDigits=n.stem.length;else if(Ut.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ut,function(e,t,r,o,n,s){return"*"===r?i.minimumFractionDigits=t.length:o&&"#"===o[0]?i.maximumFractionDigits=o.length:n&&s?(i.minimumFractionDigits=n.length,i.maximumFractionDigits=n.length+s.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var s=n.options[0];"w"===s?i=b(b({},i),{trailingZeroDisplay:"stripIfInteger"}):s&&(i=b(b({},i),$t(s)))}else Dt.test(n.stem)?i=b(b({},i),$t(n.stem)):((s=Vt(n.stem))&&(i=b(b({},i),s)),(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)),!jt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(i=b(b({},i),o)))}return i}var Zt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Kt=new RegExp("^".concat(o.source,"*")),qt=new RegExp("".concat(o.source,"*$"));function E(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,Yt=!!String.fromCodePoint,Wt=!!Object.fromEntries,Jt=!!String.prototype.codePointAt,Qt=!!String.prototype.trimStart,er=!!String.prototype.trimEnd,tr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rr=!0;try{rr="a"===(null==(Tr=hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Tr[0])}catch(g){rr=!1}var or,nr,sr=o?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ir=Yt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,o="",n=e.length,s=0;s<n;){if(1114111<(r=e[s++]))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},ar=Wt?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],s=n[0],n=n[1];t[s]=n}return t},lr=Jt?function(e,t){return e.codePointAt(t)}:function(e,t){var r,o=e.length;if(!(t<0||o<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===o||(o=e.charCodeAt(t+1))<56320||57343<o?r:o-56320+(r-55296<<10)+65536},cr=Qt?function(e){return e.trimStart()}:function(e){return e.replace(Kt,"")},ur=er?function(e){return e.trimEnd()}:function(e){return e.replace(qt,"")};function hr(e,t){return new RegExp(e,t)}nr=rr?(or=hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return or.lastIndex=t,null!=(t=or.exec(e)[1])?t:""}):function(e,t){for(var r,o=[];;){var n=lr(e,t);if(void 0===n||dr(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 ir.apply(void 0,o)};d.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},d.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(e,r)).err)return n;o.push(n.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&pr(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{s=this.clonePosition();this.bump(),o.push({type:w.pound,location:E(s,this.clonePosition())})}}}return{val:o,err:null}},d.prototype.parseTag=function(e,t){var r=this.clonePosition(),o=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:w.literal,value:"<".concat(o,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pr(this.char()))return this.error(m.INVALID_TAG,E(e,this.clonePosition()));var n=this.clonePosition();return o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:w.tag,value:o,children:t,location:E(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(m.INVALID_TAG,E(r,this.clonePosition()))},d.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())},d.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=E(r,this.clonePosition());return{val:{type:w.literal,value:o,location:r},err:null}},d.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(pr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},d.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 ir.apply(void 0,t)},d.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(),ir(r))},d.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,E(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:w.argument,value:o,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},d.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=nr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},d.prototype.parseArgumentOptions=function(e,t,r,o){var n,s=this.clonePosition(),i=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=ur(d.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:E(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(o)).err)return c;var u=E(o,this.clonePosition());if(l&&sr(null==l?void 0:l.style,"::",0)){var h=cr(l.style.slice(2));if("number"===i)return(d=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?d:{val:{type:w.number,value:r,location:u,style:d.val},err:null};if(0===h.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,u);var f=h,p=(this.locale&&(f=function(e,t){for(var r="",o=0;o<e.length;o++){var n=e.charAt(o);if("j"===n){for(var s=0;o+1<e.length&&e.charAt(o+1)===n;)s++,o++;var i=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Zt[t||""]||Zt[r||""]||Zt["".concat(r,"-001")]||Zt["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<i--;)r=l+r}else r+="J"===n?"H":n}return r}(h,this.locale)),{type:At.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},f.replace(Mt,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"===i?w.date:w.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===i?w.number:"date"===i?w.date:w.time,value:r,location:u,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(f,b({},f)));this.bumpSpace();var d,p=this.parseIdentifierIfPossible(),u=0;if("select"!==i&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),p=this.parseIdentifierIfPossible(),u=d.val}l=this.tryParsePluralOrSelectOptions(e,i,t,p);if(l.err)return l;if((c=this.tryParseArgumentClose(o)).err)return c;h=E(o,this.clonePosition());return"select"===i?{val:{type:w.select,value:r,options:ar(l.val),location:h},err:null}:{val:{type:w.plural,value:r,options:ar(l.val),offset:u,pluralType:"plural"===i?"cardinal":"ordinal",location:h},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,E(s,a))}},d.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},d.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(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}},d.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(kt).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 s=n[0],n=n.slice(1),i=0,a=n;i<a.length;i++)if(0===a[i].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:n})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:At.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Xt(r):{}},err:null}},d.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n=!1,s=[],i=new Set,a=o.value,l=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=E(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(i.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var h=this.tryParseArgumentClose(u);if(h.err)return h;s.push([a,{value:c.val,location:E(u,this.clonePosition())}]),i.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:s,err:null}},d.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;n=!0,s=10*s+(i-48),this.bump()}o=E(o,this.clonePosition());return n?tr(s*=r)?{val:s,err:null}:this.error(t,o):this.error(e,o)},d.prototype.offset=function(){return this.position.offset},d.prototype.isEOF=function(){return this.offset()===this.message.length},d.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},d.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=lr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},d.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},d.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))},d.prototype.bumpIf=function(e){if(sr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},d.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},d.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},d.prototype.bumpSpace=function(){for(;!this.isEOF()&&dr(this.char());)this.bump()},d.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var fr=d;function d(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function pr(e){return 97<=e&&e<=122||65<=e&&e<=90}function dr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function mr(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new fr(e,t).parse();if(e.err)throw(r=SyntaxError(m[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ft(e)||It(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ct(e)&&xt(e.style)||(Nt(e)||Lt(e))&&Rt(e.style)?delete e.style.location:Ot(e)&&r(e.children)})}(e.val),e.val}function gr(e,t){var r=t&&t.cache?t.cache:_r,o=t&&t.serializer?t.serializer:Er;return(t&&t.strategy?t.strategy:function(e,t){return br(e,this,1===e.length?yr:wr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:o})}function yr(e,t,r,o){var r=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=t.get(r);return void 0===n&&(n=e.call(this,o),t.set(r,n)),n}function wr(e,t,r){var o=Array.prototype.slice.call(arguments,3),r=r(o),n=t.get(r);return void 0===n&&(n=e.apply(this,o),t.set(r,n)),n}function br(e,t,r,o,n){return r.bind(t,e,o,n)}var Er=function(){return JSON.stringify(arguments)};function vr(){this.cache=Object.create(null)}vr.prototype.get=function(e){return this.cache[e]},vr.prototype.set=function(e,t){this.cache[e]=t};var Pr,Tr,_r={create:function(){return new vr}},Br={variadic:function(e,t){return br(e,this,wr,t.cache.create(),t.serializer)},monadic:function(e,t){return br(e,this,yr,t.cache.create(),t.serializer)}};(Tr=Pr=Pr||{}).MISSING_VALUE="MISSING_VALUE",Tr.INVALID_VALUE="INVALID_VALUE",Tr.MISSING_INTL_API="MISSING_INTL_API";Bt(Mr,Cr=Error),Mr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Ar,Sr,Hr,Cr,Nr=Mr,Lr=(Bt(Rr,Hr=Nr),Rr),Fr=(Bt(xr,Sr=Nr),xr),Ir=(Bt(Or,Ar=Nr),Or);function Or(e,t){return Ar.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Pr.MISSING_VALUE,t)||this}function xr(e,t,r){return Sr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Pr.INVALID_VALUE,r)||this}function Rr(e,t,r,o){return Hr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pr.INVALID_VALUE,o)||this}function Mr(e,t,r){e=Cr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function kr(e,t,r,o,n,s,i){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===w.pound)"number"==typeof s&&a.push({type:v.literal,value:r.getNumberFormat(t).format(s)});else{var h=u.value;if(!(n&&h in n))throw new Ir(h,i);h=n[h];if(u.type===w.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?v.literal:v.object,value:h});else if(Nt(u)){var f="string"==typeof u.style?o.date[u.style]:Rt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(Lt(u))f="string"==typeof u.style?o.time[u.style]:Rt(u.style)?u.style.parsedOptions:o.time.medium,a.push({type:v.literal,value:r.getDateTimeFormat(t,f).format(h)});else if(Ct(u))(f="string"==typeof u.style?o.number[u.style]:xt(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:v.literal,value:r.getNumberFormat(t,f).format(h)});else{if(Ot(u)){var p=u.children,d=u.value,m=n[d];if("function"!=typeof m)throw new Fr(d,"function",i);d=m(kr(p,t,r,o,n,s).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if(Ft(u)){if(!(g=u.options[h]||u.options.other))throw new Lr(u.value,h,Object.keys(u.options),i);a.push.apply(a,kr(g.value,t,r,o,n))}else if(It(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new Nr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Pr.MISSING_INTL_API,i);var m=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new Lr(u.value,h,Object.keys(u.options),i);a.push.apply(a,kr(g.value,t,r,o,n,h-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===v.literal&&t.type===v.literal?r.value+=t.value:e.push(t),e},[])}function Ur(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(o=v=v||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(P,"defaultLocale",{get:function(){return P.memoizedDefaultLocale||(P.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),P.memoizedDefaultLocale},enumerable:!1,configurable:!0}),P.memoizedDefaultLocale=null,P.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},P.__parse=mr,P.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"}}};var Dr=P;function P(e,t,r,o){var n,s,i=this;if(void 0===t&&(t=P.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===v.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 kr(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=P.resolveLocale(t),"string"==typeof e){if(this.message=e,!P.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=P.__parse(e,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}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=P.formats,(s=r)?Object.keys(n).reduce(function(e,t){var r,o;return e[t]=(r=n[t],(o=s[t])?b(b(b({},r||{}),o||{}),Object.keys(r).reduce(function(e,t){return e[t]=b(b({},r[t]),o[t]||{}),e},{})):r),e},b({},n)):n),this.formatters=o&&o.formatters||{getNumberFormat:gr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,St([void 0],t,!1)))},{cache:Ur((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Br.variadic}),getDateTimeFormat:gr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,St([void 0],t,!1)))},{cache:Ur(t.dateTime),strategy:Br.variadic}),getPluralRules:gr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,St([void 0],t,!1)))},{cache:Ur(t.pluralRules),strategy:Br.variadic})}}const T={},Gr=(e,t,r)=>r&&(t in T||(T[t]={}),e in T[t]||(T[t][e]=r),r),jr=(t,r)=>{if(null!=r){if(r in T&&t in T[r])return T[r][t];var o=no(r);for(let e=0;e<o.length;e++){var n=function(e,r){if(!zr(e))return null;e=function(e){return $r[e]||null}(e);{var o=r;if(null==o)return;if(o in e)return e[o];const n=o.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const o=n.slice(e,n.length).join(".");if(o in t){t=t[o];break}}t=t[n[e]]}else t=void 0;return t}}(o[e],t);if(n)return Gr(t,r,n)}}};let $r;const Vr=pt({});function zr(e){return e in $r}function Xr(t,...r){delete T[t],Vr.update(e=>(e[t]=Tt.all([e[t]||{},...r]),e))}dt([Vr],([e])=>Object.keys(e)),Vr.subscribe(e=>$r=e);const Zr={};function Kr(e){return Zr[e]}function qr(e){return null!=e&&no(e).some(e=>{return null==(e=Kr(e))?void 0:e.size})}const Yr={};function Wr(e){if(!qr(e))return e in Yr?Yr[e]:Promise.resolve();const t=no(e).map(e=>{var t=Kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Yr[e]=Promise.all(t.map(([e,t])=>{{var o=e;e=t;const r=Promise.all(e.map(e=>{var t=o,r=e;return Zr[t].delete(r),0===Zr[t].size&&delete Zr[t],e().then(e=>e.default||e)}));return r.then(e=>Xr(o,...e))}})).then(()=>{if(qr(e))return Wr(e);delete Yr[e]}),Yr[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 Qr={fallbackLocale: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,handleMissingMessage:void 0,ignoreTag:!0};const eo=pt(!1);let to;const ro=pt(null);function oo(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function no(e,t=Qr.fallbackLocale){e=oo(e);return t?[...new Set([...e,...oo(t)])]:e}function _(){return null!=to?to:void 0}ro.subscribe(e=>{to=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const so=Object.assign(Object.assign({},ro),{set:t=>{if(t&&function(e){if(null!=e){var t=no(e);for(let e=0;e<t.length;e++){var r=t[e];if(zr(r))return r}}}(t)&&qr(t)){var r=Qr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=_()&&r?e=window.setTimeout(()=>eo.set(!0),r):eo.set(!0),Wr(t).then(()=>{ro.set(t)}).finally(()=>{clearTimeout(e),eo.set(!1)})}return ro.set(t)}}),io=r=>{const o=Object.create(null);return e=>{var t=JSON.stringify(e);return t in o?o[t]:o[t]=r(e)}},ao=(e,t)=>{var r=Qr["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},lo=io(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=ao("number",r)),new Intl.NumberFormat(t,e)}),co=io(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=ao("date",r):0===Object.keys(e).length&&(e=ao("date","short")),new Intl.DateTimeFormat(t,e)}),uo=io(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=ao("time",r):0===Object.keys(e).length&&(e=ao("time","short")),new Intl.DateTimeFormat(t,e)}),ho=io((e,t=_())=>new Dr(e,t,Qr.formats,{ignoreTag:Qr.ignoreTag})),fo=dt([so,Vr],()=>(e,t={})=>{var r,o;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:s,locale:i=_(),default:a}=n;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=jr(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(r=null==(r=(o=Qr).handleMissingMessage)?void 0:r.call(o,{locale:i,id:e,defaultValue:a}))?r:a)?o:e;if(!s)return l;let c=l;try{c=ho(l,i).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),po=(dt([so],()=>(e,t)=>((e={})=>{var{locale:t=_()}=e,e=Jr(e,["locale"]);return uo(Object.assign({locale:t},e))})(t).format(e)),dt([so],()=>(e,t)=>((e={})=>{var{locale:t=_()}=e,e=Jr(e,["locale"]);return co(Object.assign({locale:t},e))})(t).format(e)),dt([so],()=>(e,t)=>((e={})=>{var{locale:t=_()}=e,e=Jr(e,["locale"]);return lo(Object.assign({locale:t},e))})(t).format(e)),dt([so,Vr],()=>(e,t=_())=>jr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==ht.indexOf(e)&&(t=new ct(t),ft[e]=t,ht.push(e)),ft[e]}},{en:{forgotPasswordForm:{goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login"}},fr:{forgotPasswordForm:{goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter"}},tr:{forgotPasswordForm:{goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlamak için talimatları içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Onay şifresi yeni şifreyle eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için tıklayınız"}},ro:{forgotPasswordForm:{goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parola Uitata",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",forgotPasswordEmailError:"Acest email nu exista",forgotPasswordReset:"Reseteaza parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instructiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parola",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie sa fie intre 8 si 20 de caractere, sa contina o litera mare, o cifra si un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmata trebuie sa fie la fel ca parola noua si sa respecte aceleasi reguli",forgotNewPasswordButton:"Schimba parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbata cu succes.",forgotChangePasswordLogin:"Autentificare"}},es:{forgotPasswordForm:{goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvidaste tu contraseña",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"El e-mail debe contener '@' y un dominio de 2-3 letras.",forgotPasswordEmailError:"Este e-mail no existe.",forgotPasswordReset:"Redefinir contraseña",forgotPasswordSuccess:"¡Éxito!",forgotPasswordSuccessDescription:"Le hemos enviado un e-mail con instrucciones para restablecer su contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar la contraseña",forgotNewPasswordConfirmPasswordError:"La contraseña de confirmación debe coincidir con la nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar la contraseña",forgotChangePasswordTitle:"¡Éxito!",forgotChangePasswordDescription:"Su contraseña ha sido cambiada con éxito.",forgotChangePasswordLogin:"Haga clic aquí para ingresar"}},pt:{forgotPasswordForm:{goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar"}}});function mo(e){let r,o;return{c(){C((r=t("script")).src,o="//www.google.com/recaptcha/api.js?render="+e[1])||Q(r,"src",o),r.async=!0,r.defer=!0},m(e,t){K(e,r,t)},p(e,t){2&t[0]&&!C(r.src,o="//www.google.com/recaptcha/api.js?render="+e[1])&&Q(r,"src",o)},d(e){e&&q(r)}}}function go(r){let o,n,s,i,a,l,c,u,h,f,p,d,m,g,y,w,b,E,v,P,T,_,B,A,S=r[20]("forgotPasswordForm.forgotChangePasswordTitle")+"",H=r[20]("forgotPasswordForm.forgotChangePasswordDescription")+"",C=r[20]("forgotPasswordForm.forgotChangePasswordLogin")+"";return{c(){o=t("div"),n=t("div"),s=t("div"),i=G("svg"),a=G("defs"),l=G("style"),c=Y(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),u=G("g"),h=G("g"),f=G("path"),p=G("g"),d=G("circle"),m=G("circle"),g=W(),y=t("h4"),w=Y(S),b=W(),E=t("p"),v=Y(H),P=W(),T=t("button"),_=Y(C),Q(f,"class","a"),Q(f,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),Q(f,"transform","translate(264.272 482.563)"),Q(h,"transform","translate(-7360.574 8503.438)"),Q(d,"class","c"),Q(d,"cx","30"),Q(d,"cy","30"),Q(d,"r","30"),Q(m,"class","d"),Q(m,"cx","30"),Q(m,"cy","30"),Q(m,"r","29"),Q(p,"class","b"),Q(p,"transform","translate(-7106 8970)"),Q(u,"transform","translate(7106 -8970)"),Q(i,"xmlns","http://www.w3.org/2000/svg"),Q(i,"width","60"),Q(i,"height","60"),Q(i,"viewBox","0 0 60 60"),Q(s,"class","NewPasswordSuccess"),Q(s,"part","NewPasswordSuccess"),Q(T,"class","resetPasswordButton"),Q(T,"part","resetPasswordButton"),Q(n,"class","FormContent"),Q(n,"part","FormContent"),Q(o,"class","FormLeftSide"),Q(o,"part","FormLeftSide")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(i,a),Z(a,l),Z(l,c),Z(i,u),Z(u,h),Z(h,f),Z(u,p),Z(p,d),Z(p,m),Z(s,g),Z(s,y),Z(y,w),Z(s,b),Z(s,E),Z(E,v),Z(n,P),Z(n,T),Z(T,_),B||(A=J(T,"click",r[42]),B=!0)},p(e,t){1048576&t[0]&&S!==(S=e[20]("forgotPasswordForm.forgotChangePasswordTitle")+"")&&ee(w,S),1048576&t[0]&&H!==(H=e[20]("forgotPasswordForm.forgotChangePasswordDescription")+"")&&ee(v,H),1048576&t[0]&&C!==(C=e[20]("forgotPasswordForm.forgotChangePasswordLogin")+"")&&ee(_,C)},d(e){e&&q(o),B=!1,A()}}}function yo(r){let o,n,s,i,a,l,c,u,h,f,p,d,m,g,y,k,w,b,E,U,v,D,P,G,T,j,_,B,A,S,$,H=r[20]("forgotPasswordForm.forgotNewPasswordTitle")+"",C=r[20]("forgotPasswordForm.forgotNewPasswordPassword")+"",N=r[20]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"",L=r[20]("forgotPasswordForm.forgotNewPasswordButton")+"";function V(e){return e[16]?vo:Eo}let F=V(r),I=F(r),O=r[12]&&Po(r);function z(e){return e[17]?_o:To}let x=z(r),R=x(r),M=r[13]&&Bo(r);return{c(){o=t("div"),n=t("div"),s=t("h4"),i=Y(H),a=W(),l=t("div"),c=t("div"),u=t("label"),h=Y(C),f=Y(":"),(p=t("span")).textContent="*",d=W(),m=t("input"),g=W(),I.c(),y=W(),O&&O.c(),k=W(),w=t("div"),b=t("label"),E=Y(N),U=Y(":"),(v=t("span")).textContent="*",D=W(),P=t("input"),G=W(),R.c(),T=W(),M&&M.c(),j=W(),_=t("button"),B=Y(L),Q(s,"class","FormHeaderTitle"),Q(s,"part","FormHeaderTitle"),Q(n,"class","FormHeader"),Q(n,"part","FormHeader"),Q(p,"class","FormRequired"),Q(p,"part","FormRequired"),Q(u,"for","NewPassword"),Q(m,"type","password"),Q(m,"id","NewPassword"),Q(c,"class","NewPassword"),Q(c,"part","NewPassword"),Q(v,"class","FormRequired"),Q(v,"part","FormRequired"),Q(b,"for","RetypePassword"),Q(P,"type","password"),Q(P,"id","RetypePassword"),Q(w,"class","ConfirmPassword"),Q(w,"part","ConfirmPassword"),Q(_,"class","resetPasswordButton"),Q(_,"part","resetPasswordButton"),_.disabled=A=!r[11],Q(l,"class","FormContent"),Q(l,"part","FormContent"),Q(o,"class","FormLeftSide test"),Q(o,"part","FormLeftSide test")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(o,l),Z(l,c),Z(c,u),Z(u,h),Z(u,f),Z(u,p),Z(c,d),Z(c,m),te(m,r[18]),r[34](m),Z(c,g),I.m(c,null),Z(c,y),O&&O.m(c,null),Z(l,k),Z(l,w),Z(w,b),Z(b,E),Z(b,U),Z(b,v),Z(w,D),Z(w,P),te(P,r[19]),r[38](P),Z(w,G),R.m(w,null),Z(w,T),M&&M.m(w,null),Z(l,j),Z(l,_),Z(_,B),S||($=[J(m,"input",r[33]),J(m,"blur",function(){re(r[26](r[12],r[18],r[14]))&&r[26](r[12],r[18],r[14]).apply(this,arguments)}),J(P,"input",r[37]),J(P,"keyup",function(){re(r[26](r[13],r[19],r[15]))&&r[26](r[13],r[19],r[15]).apply(this,arguments)}),J(_,"click",r[41])],S=!0)},p(e,t){r=e,1048576&t[0]&&H!==(H=r[20]("forgotPasswordForm.forgotNewPasswordTitle")+"")&&ee(i,H),1048576&t[0]&&C!==(C=r[20]("forgotPasswordForm.forgotNewPasswordPassword")+"")&&ee(h,C),262144&t[0]&&m.value!==r[18]&&te(m,r[18]),F===(F=V(r))&&I?I.p(r,t):(I.d(1),(I=F(r))&&(I.c(),I.m(c,y))),r[12]?O?O.p(r,t):((O=Po(r)).c(),O.m(c,null)):O&&(O.d(1),O=null),1048576&t[0]&&N!==(N=r[20]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"")&&ee(E,N),524288&t[0]&&P.value!==r[19]&&te(P,r[19]),x===(x=z(r))&&R?R.p(r,t):(R.d(1),(R=x(r))&&(R.c(),R.m(w,T))),r[13]?M?M.p(r,t):((M=Bo(r)).c(),M.m(w,null)):M&&(M.d(1),M=null),1048576&t[0]&&L!==(L=r[20]("forgotPasswordForm.forgotNewPasswordButton")+"")&&ee(B,L),2048&t[0]&&A!==(A=!r[11])&&(_.disabled=A)},d(e){e&&q(o),r[34](null),I.d(),O&&O.d(),r[38](null),R.d(),M&&M.d(),S=!1,X($)}}}function wo(e){let r,o,n,s,i,a,l,c,u,h,f,p,d,m,g,y,w,b,E,v=e[20]("forgotPasswordForm.forgotPasswordSuccess")+"",P=e[20]("forgotPasswordForm.forgotPasswordSuccessDescription")+"";return{c(){r=t("div"),o=t("div"),n=t("div"),s=G("svg"),i=G("defs"),a=G("style"),l=Y(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),c=G("g"),u=G("g"),h=G("path"),f=G("g"),p=G("circle"),d=G("circle"),m=W(),g=t("h4"),y=Y(v),w=W(),b=t("p"),E=Y(P),Q(h,"class","a"),Q(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),Q(h,"transform","translate(264.272 482.563)"),Q(u,"transform","translate(-7360.574 8503.438)"),Q(p,"class","c"),Q(p,"cx","30"),Q(p,"cy","30"),Q(p,"r","30"),Q(d,"class","d"),Q(d,"cx","30"),Q(d,"cy","30"),Q(d,"r","29"),Q(f,"class","b"),Q(f,"transform","translate(-7106 8970)"),Q(c,"transform","translate(7106 -8970)"),Q(s,"xmlns","http://www.w3.org/2000/svg"),Q(s,"width","60"),Q(s,"height","60"),Q(s,"viewBox","0 0 60 60"),Q(n,"class","NewPasswordSuccess"),Q(n,"part","NewPasswordSuccess"),Q(o,"class","FormContent"),Q(o,"part","FormContent"),Q(r,"class","FormLeftSide"),Q(r,"part","FormLeftSide")},m(e,t){K(e,r,t),Z(r,o),Z(o,n),Z(n,s),Z(s,i),Z(i,a),Z(a,l),Z(s,c),Z(c,u),Z(u,h),Z(c,f),Z(f,p),Z(f,d),Z(n,m),Z(n,g),Z(g,y),Z(n,w),Z(n,b),Z(b,E)},p(e,t){1048576&t[0]&&v!==(v=e[20]("forgotPasswordForm.forgotPasswordSuccess")+"")&&ee(y,v),1048576&t[0]&&P!==(P=e[20]("forgotPasswordForm.forgotPasswordSuccessDescription")+"")&&ee(E,P)},d(e){e&&q(r)}}}function bo(r){let o,n,s,i,a,l,c,u,h,f,p,d,m,g,y,w,b,E,v,P,T,_,k,B,A,S,U,H,C,N,L,D,F=r[20]("forgotPasswordForm.goToLogin")+"",I=r[20]("forgotPasswordForm.forgotPasswordTitle")+"",O=r[20]("forgotPasswordForm.forgotPasswordEmail")+"",x=r[20]("forgotPasswordForm.forgotPasswordReset")+"",R=r[9]&&Ao(r),M=r[3]&&So(r);return{c(){o=t("div"),n=t("div"),s=t("button"),i=G("svg"),a=G("defs"),l=G("style"),c=Y(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),u=G("path"),h=W(),f=Y(F),p=W(),d=t("h4"),m=Y(I),g=W(),y=t("div"),w=t("div"),b=t("label"),E=Y(O),v=Y(":"),(P=t("span")).textContent="*",T=W(),_=t("input"),k=W(),R&&R.c(),B=W(),M&&M.c(),U=W(),H=t("button"),C=Y(x),Q(u,"class","a"),Q(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),Q(u,"transform","translate(24 24) rotate(180)"),Q(i,"xmlns","http://www.w3.org/2000/svg"),Q(i,"viewBox","0 0 24 24"),Q(s,"class","backButtonForgotPassword"),Q(s,"part","backButtonForgotPassword"),Q(d,"class","FormHeaderTitle"),Q(d,"part","FormHeaderTitle"),Q(n,"class","FormHeader"),Q(n,"part","FormHeader"),Q(P,"class","FormRequired"),Q(P,"part","FormRequired"),Q(b,"for","ResetPasswordByEmail"),Q(_,"type","text"),Q(_,"id","ResetPasswordByEmail"),Q(w,"class",A="ResetPasswordByEmail "+(r[9]?"InvalidField":"")),Q(w,"part",S="ResetPasswordByEmail "+(r[9]?"InvalidField":"")),Q(H,"class","resetPasswordButton"),Q(H,"part","resetPasswordButton"),H.disabled=N=!r[10],Q(y,"class","FormContent"),Q(y,"part","FormContent"),Q(o,"class","FormLeftSide"),Q(o,"part","FormLeftSide")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(i,a),Z(a,l),Z(l,c),Z(i,u),Z(s,h),Z(s,f),Z(n,p),Z(n,d),Z(d,m),Z(o,g),Z(o,y),Z(y,w),Z(w,b),Z(b,E),Z(b,v),Z(b,P),Z(w,T),Z(w,_),te(_,r[5]),Z(w,k),R&&R.m(w,null),Z(w,B),M&&M.m(w,null),Z(y,U),Z(y,H),Z(H,C),L||(D=[J(s,"click",r[30]),J(_,"input",r[31]),J(_,"keyup",r[21]),J(H,"click",r[32])],L=!0)},p(e,t){1048576&t[0]&&F!==(F=e[20]("forgotPasswordForm.goToLogin")+"")&&ee(f,F),1048576&t[0]&&I!==(I=e[20]("forgotPasswordForm.forgotPasswordTitle")+"")&&ee(m,I),1048576&t[0]&&O!==(O=e[20]("forgotPasswordForm.forgotPasswordEmail")+"")&&ee(E,O),32&t[0]&&_.value!==e[5]&&te(_,e[5]),e[9]?R?R.p(e,t):((R=Ao(e)).c(),R.m(w,B)):R&&(R.d(1),R=null),e[3]?M?M.p(e,t):((M=So(e)).c(),M.m(w,null)):M&&(M.d(1),M=null),512&t[0]&&A!==(A="ResetPasswordByEmail "+(e[9]?"InvalidField":""))&&Q(w,"class",A),512&t[0]&&S!==(S="ResetPasswordByEmail "+(e[9]?"InvalidField":""))&&Q(w,"part",S),1048576&t[0]&&x!==(x=e[20]("forgotPasswordForm.forgotPasswordReset")+"")&&ee(C,x),1024&t[0]&&N!==(N=!e[10])&&(H.disabled=N)},d(e){e&&q(o),R&&R.d(),M&&M.d(),L=!1,X(D)}}}function Eo(r){let o,n,s,i,a,l,c,u,h,f;return{c(){o=G("svg"),n=G("defs"),s=G("style"),i=Y(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=G("g"),l=G("path"),c=G("circle"),Q(l,"class","a"),Q(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),Q(l,"transform","translate(0)"),Q(c,"class","a"),Q(c,"cx","2.779"),Q(c,"cy","2.779"),Q(c,"r","2.779"),Q(c,"transform","translate(20.827 30.303)"),Q(a,"transform","translate(-14.185 -27.832)"),Q(o,"class",u="TogglePasswordVisibility "+(r[12]?"InvalidToggle":"")),Q(o,"xmlns","http://www.w3.org/2000/svg"),Q(o,"width","18.843"),Q(o,"height","10.5"),Q(o,"viewBox","0 0 18.843 10.5")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),h||(f=J(o,"click",r[36]),h=!0)},p(e,t){4096&t[0]&&u!==(u="TogglePasswordVisibility "+(e[12]?"InvalidToggle":""))&&Q(o,"class",u)},d(e){e&&q(o),h=!1,f()}}}function vo(r){let o,n,s,i,a,l,c,u,h,f,p,d,m,g,y,w;return{c(){o=G("svg"),n=G("defs"),s=G("style"),i=Y(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=G("g"),l=G("circle"),c=G("g"),u=G("path"),h=G("path"),f=G("g"),p=G("path"),d=G("path"),m=G("rect"),Q(l,"class","a"),Q(l,"cx","0.05"),Q(l,"cy","0.05"),Q(l,"r","0.05"),Q(l,"transform","translate(121.017 31.148)"),Q(u,"class","a"),Q(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Q(u,"transform","translate(-142.164 -39.123)"),Q(h,"class","a"),Q(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Q(h,"transform","translate(-136.413 -42.068)"),Q(c,"transform","translate(117.499 27.37)"),Q(p,"class","a"),Q(p,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),Q(p,"transform","translate(-110.856 -33.157)"),Q(d,"class","a"),Q(d,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),Q(d,"transform","translate(-130.743 -29.617)"),Q(f,"transform","translate(110.856 24.899)"),Q(m,"class","a"),Q(m,"width","0.972"),Q(m,"height","15.861"),Q(m,"rx","0.486"),Q(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Q(a,"transform","translate(-110.856 -23.242)"),Q(o,"class",g="TogglePasswordVisibility "+(r[12]?"InvalidToggle":"")),Q(o,"xmlns","http://www.w3.org/2000/svg"),Q(o,"width","18.844"),Q(o,"height","12.887"),Q(o,"viewBox","0 0 18.844 12.887")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),Z(c,u),Z(c,h),Z(a,f),Z(f,p),Z(f,d),Z(a,m),y||(w=J(o,"click",r[35]),y=!0)},p(e,t){4096&t[0]&&g!==(g="TogglePasswordVisibility "+(e[12]?"InvalidToggle":""))&&Q(o,"class",g)},d(e){e&&q(o),y=!1,w()}}}function Po(e){let r,o,n=e[20]("forgotPasswordForm.forgotNewPasswordPasswordError")+"";return{c(){r=t("p"),o=Y(n),Q(r,"class","InvalidInput"),Q(r,"part","InvalidInput")},m(e,t){K(e,r,t),Z(r,o)},p(e,t){1048576&t[0]&&n!==(n=e[20]("forgotPasswordForm.forgotNewPasswordPasswordError")+"")&&ee(o,n)},d(e){e&&q(r)}}}function To(r){let o,n,s,i,a,l,c,u,h,f,p;return{c(){o=G("svg"),n=G("defs"),s=G("style"),i=Y(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=G("g"),l=G("path"),c=G("circle"),Q(l,"class","a"),Q(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),Q(l,"transform","translate(0)"),Q(c,"class","a"),Q(c,"cx","2.779"),Q(c,"cy","2.779"),Q(c,"r","2.779"),Q(c,"transform","translate(20.827 30.303)"),Q(a,"transform","translate(-14.185 -27.832)"),Q(o,"class",u="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),Q(o,"part",h="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),Q(o,"xmlns","http://www.w3.org/2000/svg"),Q(o,"width","18.843"),Q(o,"height","10.5"),Q(o,"viewBox","0 0 18.843 10.5")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),f||(p=J(o,"click",r[40]),f=!0)},p(e,t){8192&t[0]&&u!==(u="TogglePasswordVisibility "+(e[13]?"InvalidToggle":""))&&Q(o,"class",u),8192&t[0]&&h!==(h="TogglePasswordVisibility "+(e[13]?"InvalidToggle":""))&&Q(o,"part",h)},d(e){e&&q(o),f=!1,p()}}}function _o(r){let o,n,s,i,a,l,c,u,h,f,p,d,m,g,y,w,b;return{c(){o=G("svg"),n=G("defs"),s=G("style"),i=Y(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=G("g"),l=G("circle"),c=G("g"),u=G("path"),h=G("path"),f=G("g"),p=G("path"),d=G("path"),m=G("rect"),Q(l,"class","a"),Q(l,"cx","0.05"),Q(l,"cy","0.05"),Q(l,"r","0.05"),Q(l,"transform","translate(121.017 31.148)"),Q(u,"class","a"),Q(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Q(u,"transform","translate(-142.164 -39.123)"),Q(h,"class","a"),Q(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Q(h,"transform","translate(-136.413 -42.068)"),Q(c,"transform","translate(117.499 27.37)"),Q(p,"class","a"),Q(p,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),Q(p,"transform","translate(-110.856 -33.157)"),Q(d,"class","a"),Q(d,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),Q(d,"transform","translate(-130.743 -29.617)"),Q(f,"transform","translate(110.856 24.899)"),Q(m,"class","a"),Q(m,"width","0.972"),Q(m,"height","15.861"),Q(m,"rx","0.486"),Q(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Q(a,"transform","translate(-110.856 -23.242)"),Q(o,"class",g="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),Q(o,"part",y="TogglePasswordVisibility "+(r[13]?"InvalidToggle":"")),Q(o,"xmlns","http://www.w3.org/2000/svg"),Q(o,"width","18.844"),Q(o,"height","12.887"),Q(o,"viewBox","0 0 18.844 12.887")},m(e,t){K(e,o,t),Z(o,n),Z(n,s),Z(s,i),Z(o,a),Z(a,l),Z(a,c),Z(c,u),Z(c,h),Z(a,f),Z(f,p),Z(f,d),Z(a,m),w||(b=J(o,"click",r[39]),w=!0)},p(e,t){8192&t[0]&&g!==(g="TogglePasswordVisibility "+(e[13]?"InvalidToggle":""))&&Q(o,"class",g),8192&t[0]&&y!==(y="TogglePasswordVisibility "+(e[13]?"InvalidToggle":""))&&Q(o,"part",y)},d(e){e&&q(o),w=!1,b()}}}function Bo(e){let r,o,n=e[20]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"";return{c(){r=t("p"),o=Y(n),Q(r,"class","InvalidInput"),Q(r,"part","InvalidInput")},m(e,t){K(e,r,t),Z(r,o)},p(e,t){1048576&t[0]&&n!==(n=e[20]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"")&&ee(o,n)},d(e){e&&q(r)}}}function Ao(e){let r,o,n=e[20]("forgotPasswordForm.forgotPasswordEmailInputError")+"";return{c(){r=t("p"),o=Y(n),Q(r,"class","ForgotPasswordError"),Q(r,"part","ForgotPasswordError")},m(e,t){K(e,r,t),Z(r,o)},p(e,t){1048576&t[0]&&n!==(n=e[20]("forgotPasswordForm.forgotPasswordEmailInputError")+"")&&ee(o,n)},d(e){e&&q(r)}}}function So(e){let r,o,n=e[20]("forgotPasswordForm.forgotPasswordEmailError")+"";return{c(){r=t("p"),o=Y(n),Q(r,"class","ForgotPasswordError"),Q(r,"part","ForgotPasswordError")},m(e,t){K(e,r,t),Z(r,o)},p(e,t){1048576&t[0]&&n!==(n=e[20]("forgotPasswordForm.forgotPasswordEmailError")+"")&&ee(o,n)},d(e){e&&q(r)}}}function Ho(e){let r;return{c(){Q(r=t("div"),"class","FormRightSide"),Q(r,"part","FormRightSide"),L(r,"background-image","url('"+e[0]+"')")},m(e,t){K(e,r,t)},p(e,t){1&t[0]&&L(r,"background-image","url('"+e[0]+"')")},d(e){e&&q(r)}}}function Co(e){let r,o,n,s,i,a=e[1]&&mo(e),l=function(e){let r,o,n;function s(e){return e[2]?bo:e[4]?wo:e[6]?yo:e[7]?go:void 0}let i=s(e),a=i&&i(e),l=!e[8]&&Ho(e);return{c(){r=t("div"),a&&a.c(),o=W(),l&&l.c(),Q(r,"class",n="FormContainer "+(e[8]?"FormMobileContainer":"")),Q(r,"part","FormContainer")},m(e,t){K(e,r,t),a&&a.m(r,null),Z(r,o),l&&l.m(r,null)},p(e,t){i===(i=s(e))&&a?a.p(e,t):(a&&a.d(1),(a=i&&i(e))&&(a.c(),a.m(r,o))),e[8]?l&&(l.d(1),l=null):l?l.p(e,t):((l=Ho(e)).c(),l.m(r,null)),256&t[0]&&n!==(n="FormContainer "+(e[8]?"FormMobileContainer":""))&&Q(r,"class",n)},d(e){e&&q(r),a&&a.d(),l&&l.d()}}}(e);return{c(){a&&a.c(),r=N(),o=W(),n=t("div"),s=W(),l.c(),i=N(),this.c=g,Q(n,"class","g-recaptcha"),Q(n,"data-sitekey",e[1])},m(e,t){a&&a.m(document.head,null),Z(document.head,r),K(e,o,t),K(e,n,t),K(e,s,t),l.m(e,t),K(e,i,t)},p(e,t){e[1]?a?a.p(e,t):((a=mo(e)).c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),2&t[0]&&Q(n,"data-sitekey",e[1]),l.p(e,t)},i:g,o:g,d(e){a&&a.d(e),q(r),e&&q(o),e&&q(n),e&&q(s),l.d(e),e&&q(i)}}}function No(t,e,o){let r;var n=fo;t.$$.on_destroy.push(M(n,e=>o(20,r=e)));let s,i,{endpoint:a=""}=e,{forgotpasswordkey:l=""}=e,{imagedesktop:c=""}=e,{captchakey:u=""}=e,{lang:h=""}=e,f=!0,p=!1,d=!1,m="",g=!1,y=!1,w=!1,b,E,v=window.navigator.userAgent,P,T=!1,_=!1,B=!1,A=!1,S="",H="";Object.keys(po).forEach(e=>{Xr(e,po[e])});const C={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},N=e=>{switch(e){case"userNewPassword":o(16,B=!B),o(14,s.type=B?"text":"password",s);break;case"userConfirmPassword":o(17,A=!A),o(15,i.type=A?"text":"password",i)}},L=e=>{switch(e){case"ToEmailSuccess":o(3,p=!1),o(2,f=!1),o(4,d=!0);break;case"ToReset":o(2,f=!1),o(6,g=!0);break;case"ToSuccess":o(6,g=!1),o(7,y=!0)}},F=()=>{window.postMessage({type:"ToLogin"},window.location.href)},I=()=>{new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(u,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{let t=new URL(a+"/player/resetpassword"),r={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":e}};t.searchParams.append("email",m),fetch(t,r).then(e=>{200==e.status?L("ToEmailSuccess"):o(3,p=!0)})})},O=()=>{var e=new URL(a+"/player/ResetPasswordByHashKey"),t={hashKey:l,plainTextPassword:S},t={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e,t).then(e=>{200==e.status&&L("ToSuccess")})},x=e=>!!C.password.test(e);return n=async()=>{var e;((e=v).toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))&&o(8,w=!0)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(n),t.$$set=e=>{"endpoint"in e&&o(27,a=e.endpoint),"forgotpasswordkey"in e&&o(28,l=e.forgotpasswordkey),"imagedesktop"in e&&o(0,c=e.imagedesktop),"captchakey"in e&&o(1,u=e.captchakey),"lang"in e&&o(29,h=e.lang)},t.$$.update=()=>{var e;268435456&t.$$.dirty[0]&&l&&l&&0<l.length&&L("ToReset"),536870912&t.$$.dirty[0]&&h&&(e=h,so.set(e))},[c,u,f,p,d,m,g,y,w,!1,!1,!1,T,_,s,i,B,A,S,H,r,()=>{var e;o(9,(e=m,b=!(C.email.test(e)&&e.length<=100))),o(10,E=!b)},N,F,I,O,(e,t,r)=>{"NewPassword"===r.id?(o(12,T=!x(t)),H&&o(13,_=S!==H||!x(t))):o(13,_=S!==H||!x(t)),o(11,P=!(T||_||!S||!H))},a,l,h,()=>F(),function(){m=this.value,o(5,m)},()=>I(),function(){S=this.value,o(18,S)},function(e){k[e?"unshift":"push"](()=>{s=e,o(14,s)})},()=>N("userNewPassword"),()=>N("userNewPassword"),function(){H=this.value,o(19,H)},function(e){k[e?"unshift":"push"](()=>{i=e,o(15,i)})},()=>N("userConfirmPassword"),()=>N("userConfirmPassword"),()=>O(),()=>F()]}class Lo extends ne{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.backButtonForgotPassword{display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emfe-w-color-primary, #D0046C)}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px;height:460px}.FormLeftSide{background:var(--emfe-w-color-gray-50, #F9F8F8)}.FormRightSide{background-repeat:no-repeat;background-size:cover;background-position:center}.FormHeaderTitle{color:var(--emfe-w-color-black, #000000);font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormRequired{color:var(--emfe-w-color-error, #FD2839)}.ForgotPasswordError{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emfe-w-color-green, #48952a);font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:var(--emfe-w-color-black, #000000);text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-color-primary, #D0046C)}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:14px;font-weight:300;padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.ResetPasswordByEmail.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.resetPasswordButton{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.resetPasswordButton[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:10px;line-height:10px}.FormLeftSide{flex:1 1 100%;padding:50px}.FormMobileContainer{height:100%}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset}.FormMobileContainer{height:100%}.FormMobileContainer .FormLeftSide{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}</style>",oe(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},No,Co,S,{endpoint:27,forgotpasswordkey:28,imagedesktop:0,captchakey:1,lang:29},null,[-1,-1]),e&&(e.target&&K(e.target,this,e.anchor),e.props&&(this.$set(e.props),y()))}static get observedAttributes(){return["endpoint","forgotpasswordkey","imagedesktop","captchakey","lang"]}get endpoint(){return this.$$.ctx[27]}set endpoint(e){this.$$set({endpoint:e}),y()}get forgotpasswordkey(){return this.$$.ctx[28]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),y()}get imagedesktop(){return this.$$.ctx[0]}set imagedesktop(e){this.$$set({imagedesktop:e}),y()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),y()}get lang(){return this.$$.ctx[29]}set lang(e){this.$$set({lang:e}),y()}}return customElements.get("general-player-forgot-password-form")||customElements.define("general-player-forgot-password-form",Lo),Lo});
|
|
2
2
|
//# sourceMappingURL=general-player-forgot-password-form.js.map
|