@everymatrix/general-player-forgot-password-form 0.0.212 → 0.0.216

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 h(){}function f(t){return t()}function p(){return Object.create(null)}function M(t){t.forEach(f)}function U(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function k(t,e){t.appendChild(e)}function D(t,e,r){t.insertBefore(e,r||null)}function F(t){t.parentNode.removeChild(t)}function e(t){return document.createElement(t)}function t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function j(){return G(" ")}function c(){return G("")}function B(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function $(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function V(t,e){t.value=null==e?"":e}let I;function d(t){I=t}const m=[],N=[],n=[],o=[],y=Promise.resolve();let g=!1;function b(t){n.push(t)}let i=!1;const s=new Set;function v(){if(!i){i=!0;do{for(let t=0;t<m.length;t+=1){var e=m[t];d(e),function(t){{var e;null!==t.fragment&&(t.update(),M(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(b))}}(e.$$)}for(d(null),m.length=0;N.length;)N.pop()();for(let t=0;t<n.length;t+=1){const r=n[t];s.has(r)||(s.add(r),r())}}while(n.length=0,m.length);for(;o.length;)o.pop()();g=!1,i=!1,s.clear()}}const w=new Set;function a(n,t,e,r,o,i,s=[-1]){var a,l=I;d(n);const c=n.$$={fragment:null,ctx:null,props:i,update:h,not_equal:o,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=e?e(n,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return c.ctx&&o(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&(r=t,-1===(t=n).$$.dirty[0]&&(m.push(t),g||(g=!0,y.then(v)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],c.update(),u=!0,M(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const h=(r=t.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(h),h.forEach(F)}else c.fragment&&c.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(w.delete(a),a.i(void 0)),function(e,t,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,r),n||b(()=>{var t=i.map(f).filter(U);s?s.push(...t):M(t),e.$$.on_mount=[]}),a.forEach(b)}(n,t.target,t.anchor,t.customElement),v()}d(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(f).filter(U);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){M(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(M(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=h}$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,_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==_&&_,T="URLSearchParams"in _,P="Symbol"in _&&"iterator"in Symbol,A="FileReader"in _&&"Blob"in _&&function(){try{return new Blob,!0}catch(t){return!1}}(),S="FormData"in _,L="ArrayBuffer"in _;function x(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 O(t){return t="string"!=typeof t?String(t):t}function C(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return P&&(t[Symbol.iterator]=function(){return t}),t}function R(e){this.map={},e instanceof R?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 X(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function H(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function z(t){var e=new FileReader,r=H(e);return e.readAsArrayBuffer(t),r}function Z(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function q(){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():L&&A&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Z(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):L&&(ArrayBuffer.prototype.isPrototypeOf(t)||E(t))?this._bodyArrayBuffer=Z(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=X(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?X(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(z)}),this.text=function(){var t,e,r=X(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=H(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S&&(this.formData=function(){return this.text().then(W)}),this.json=function(){return this.text().then(JSON.parse)},this}L&&(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))}),R.prototype.append=function(t,e){t=x(t),e=O(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},R.prototype.delete=function(t){delete this.map[x(t)]},R.prototype.get=function(t){return t=x(t),this.has(t)?this.map[t]:null},R.prototype.has=function(t){return this.map.hasOwnProperty(x(t))},R.prototype.set=function(t,e){this.map[x(t)]=O(e)},R.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},R.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),C(r)},R.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),C(e)},R.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),C(r)},P&&(R.prototype[Symbol.iterator]=R.prototype.entries);var Y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function K(t,e){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(e=e||{}).body;if(t instanceof K){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new R(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new R(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<Y.indexOf(t)?t:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function W(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 Q(t,e){if(!(this instanceof Q))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 R(e.headers),this.url=e.url||"",this._initBody(t)}K.prototype.clone=function(){return new K(this,{body:this._bodyInit})},q.call(K.prototype),q.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},Q.error=function(){var t=new Q(null,{status:0,statusText:""});return t.type="error",t};var J=[301,302,303,307,308];Q.redirect=function(t,e){if(-1===J.indexOf(e))throw new RangeError("Invalid status code");return new Q(null,{status:e,headers:{location:t}})};var tt=_.DOMException;try{new tt}catch(h){(tt=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),tt.prototype.constructor=tt}function et(n,s){return new Promise(function(o,t){var e=new K(n,s);if(e.signal&&e.signal.aborted)return t(new tt("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new R,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new Q(n,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new tt("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&_.location.href?_.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(A?i.responseType="blob":L&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof R?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,O(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}et.polyfill=!0,_.fetch||(_.fetch=et,_.Headers=R,_.Request=K,_.Response=Q),self.fetch.bind(self);var rt=function(t,e){return(rt=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 nt(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}rt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ot(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function it(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function st(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function at(t){return"function"==typeof t}function lt(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 ct=lt(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 ut(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var ht=(pt.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ot(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(at(i))try{i()}catch(t){o=t instanceof ct?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=ot(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{mt(u)}catch(t){o=null!=o?o:[],t instanceof ct?o=st(st([],it(o)),it(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new ct(o)}},pt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)mt(t);else{if(t instanceof pt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},pt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},pt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},pt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ut(e,t)},pt.prototype.remove=function(t){var e=this._teardowns;e&&ut(e,t),t instanceof pt&&t._removeParent(this)},pt.EMPTY=((De=new pt).closed=!0,De),pt),ft=ht.EMPTY;function pt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function dt(t){return t instanceof ht||t&&"closed"in t&&at(t.remove)&&at(t.add)&&at(t.unsubscribe)}function mt(t){at(t)?t():t.unsubscribe()}var yt=void 0,gt=!1,bt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,st([],it(t)))};function vt(){}function wt(t){t()}var Et,_t,Tt=(nt(St,_t=ht),St.create=function(t,e,r){return new Pt(t,e,r)},St.prototype.next=function(t){this.isStopped||this._next(t)},St.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},St.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},St.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_t.prototype.unsubscribe.call(this),this.destination=null)},St.prototype._next=function(t){this.destination.next(t)},St.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},St.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},St),Pt=(nt(At,Et=Tt),At);function At(t,e,r){var n,o,i=Et.call(this)||this;return at(t)?o=t:t&&(o=t.next,e=t.error,r=t.complete,i&&gt?(n=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:n=t,o=null==o?void 0:o.bind(n),e=null==e?void 0:e.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Lt(o):vt,error:Lt(null!=e?e:xt),complete:r?Lt(r):vt},i}function St(t){var e=_t.call(this)||this;return e.isStopped=!1,t?dt(e.destination=t)&&t.add(e):e.destination=Ot,e}function Lt(n){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{n.apply(void 0,st([],it(t)))}catch(t){e=t,bt(function(){throw e})}}}function xt(t){throw t}var Ot={closed:!0,next:vt,error:xt,complete:vt},Ct="function"==typeof Symbol&&Symbol.observable||"@@observable";function It(t){return t}var Nt=(Rt.prototype.lift=function(t){var e=new Rt;return e.source=this,e.operator=t,e},Rt.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Tt||n&&at(n.next)&&at(n.error)&&at(n.complete)&&dt(n)?t:new Pt(t,e,r);return wt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},Rt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Rt.prototype.forEach=function(n,t){var o=this;return new(t=Mt(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Rt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Rt.prototype[Ct]=function(){return this},Rt.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?It:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Rt.prototype.toPromise=function(t){var n=this;return new(t=Mt(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Rt.create=function(t){return new Rt(t)},Rt);function Rt(t){t&&(this._subscribe=t)}function Mt(t){return null!==(t=null!=t?t:yt)&&void 0!==t?t:Promise}var Ut,kt,Dt,Ft=lt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gt=(nt(Ht,Dt=Nt),Ht.prototype.lift=function(t){var e=new jt(this,this);return e.operator=t,e},Ht.prototype._throwIfClosed=function(){if(this.closed)throw new Ft},Ht.prototype.next=function(i){var s=this;wt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=ot(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}})},Ht.prototype.error=function(e){var r=this;wt(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)}})},Ht.prototype.complete=function(){var e=this;wt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},Ht.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Ht.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Ht.prototype._trySubscribe=function(t){return this._throwIfClosed(),Dt.prototype._trySubscribe.call(this,t)},Ht.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Ht.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,n=this.observers;return e||r?ft:(n.push(t),new ht(function(){return ut(n,t)}))},Ht.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},Ht.prototype.asObservable=function(){var t=new Nt;return t.source=this,t},Ht.create=function(t,e){return new jt(t,e)},Ht),jt=(nt(Xt,kt=Gt),Xt.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)},Xt.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)},Xt.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)},Xt.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:ft},Xt),Bt={now:function(){return(Bt.delegate||Date).now()},delegate:void 0},$t=(nt(Vt,Ut=Gt),Vt.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(n.push(t),o||n.push(i.now()+e)),this._trimBuffer(),Ut.prototype.next.call(this,t)},Vt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},Vt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Vt);function Vt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Bt);var n=Ut.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function Xt(t,e){var r=kt.call(this)||this;return r.destination=t,r.source=e,r}function Ht(){var t=Dt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let zt=[],Zt={};const qt=[];function Yt(n,o=h){let i;const s=[];function a(t){if(r(n,t)&&(n=t,i)){const t=!qt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),qt.push(e,n)}if(t){for(let t=0;t<qt.length;t+=2)qt[t][0](qt[t+1]);qt.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=h){const r=[t,e];return s.push(r),1===s.length&&(i=o(a)||h),t(n),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function Kt(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return Yt(e,e=>{let n=!1;const o=[];let i=0,r=h;const s=()=>{var t;i||(r(),t=a(l?o[0]:o,e),u?e(t):r=U(t)?t:h)},t=c.map((r,e)=>function(t){if(null==r)return h;const e=r.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}([t=>{o[e]=t,i&=~(1<<e),n&&s()},()=>{i|=1<<e}]));return n=!0,s(),function(){M(t),r()}}).subscribe,1}var Wt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Qt));var e},Qt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Jt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?oe(Array.isArray(t)?[]:{},t,e):t}function te(t,e,r){return t.concat(e).map(function(t){return Jt(t,r)})}function ee(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function re(t,e){try{return e in t}catch(t){return!1}}function ne(n,o,i){var s={};return i.isMergeableObject(n)&&ee(n).forEach(function(t){s[t]=Jt(n[t],i)}),ee(o).forEach(function(e){var t,r;(!re(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(re(n,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return oe;var t=i.customMerge(e);return"function"==typeof t?t:oe}()(n[e],o[e],i):s[e]=Jt(o[e],i))}),s}function oe(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||te,r.isMergeableObject=r.isMergeableObject||Wt,r.cloneUnlessOtherwiseSpecified=Jt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):ne(t,e,r):Jt(e,r)}oe.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return oe(t,e,r)},{})};var ie=oe,se=function(t,e){return(se=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 ae(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}se(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var le,ce,ue,he=function(){return(he=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function fe(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function pe(t){return t.type===ce.literal}function de(t){return t.type===ce.number}function me(t){return t.type===ce.date}function ye(t){return t.type===ce.time}function ge(t){return t.type===ce.select}function be(t){return t.type===ce.plural}function ve(t){return t.type===ce.tag}function we(t){return t&&"object"==typeof t&&t.type===ue.number}function Ee(t){return t&&"object"==typeof t&&t.type===ue.dateTime}(Fe=le=le||{})[Fe.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Fe[Fe.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Fe[Fe.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Fe[Fe.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Fe[Fe.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Fe[Fe.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Fe[Fe.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Fe[Fe.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Fe[Fe.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Fe[Fe.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Fe[Fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Fe[Fe.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Fe[Fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Fe[Fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Fe[Fe.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Fe[Fe.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Fe[Fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Fe[Fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Fe[Fe.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Fe[Fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Fe[Fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Fe[Fe.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Fe[Fe.INVALID_TAG=23]="INVALID_TAG",Fe[Fe.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Fe[Fe.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Fe[Fe.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ge=ce=ce||{})[Ge.literal=0]="literal",Ge[Ge.argument=1]="argument",Ge[Ge.number=2]="number",Ge[Ge.date=3]="date",Ge[Ge.time=4]="time",Ge[Ge.select=5]="select",Ge[Ge.plural=6]="plural",Ge[Ge.pound=7]="pound",Ge[Ge.tag=8]="tag",(je=ue=ue||{})[je.number=0]="number",je[je.dateTime=1]="dateTime";var _e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Te=/(?:[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 Pe,Ae=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Se=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Le=/^(@+)?(\+|#+)?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Ce(t){var n={};return t.replace(Le,function(t,e,r){return"string"!=typeof r?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===r?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),n}function Ie(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 Ne(t){return Ie(t)||{}}function Re(t){for(var s={},e=0,r=t;e<r.length;e++){var n,o=r[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=he(he(he({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return he(he({},t),Ne(e))},{}));continue;case"engineering":s=he(he(he({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return he(he({},t),Ne(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(xe,function(t,e,r,n,o,i){if(e)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oe.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Se.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Se,function(t,e,r,n,o,i){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=he(he({},s),Ce(o.options[0])))}else Le.test(o.stem)?s=he(he({},s),Ce(o.stem)):((n=Ie(o.stem))&&(s=he(he({},s),n)),(n=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Oe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=he(he({},s),n)))}return s}var Me=new RegExp("^"+_e.source+"*"),Ue=new RegExp(_e.source+"*$");function ke(t,e){return{start:t,end:e}}var De=!!String.prototype.startsWith,Ct=!!String.fromCodePoint,Gt=!!Object.fromEntries,Fe=!!String.prototype.codePointAt,Ge=!!String.prototype.trimStart,je=!!String.prototype.trimEnd,Be=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},_e=!0;try{_e="a"===(null===(Pe=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(h){_e=!1}var $e,Ve,Xe=De?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},He=Ct?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;i<o;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},ze=Gt?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],o=o[1];e[i]=o}return e},Ze=Fe?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var n,o=t.charCodeAt(e);return o<55296||56319<o||e+1===r||(n=t.charCodeAt(e+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},qe=Ge?function(t){return t.trimStart()}:function(t){return t.replace(Me,"")},Ye=je?function(t){return t.trimEnd()}:function(t){return t.replace(Ue,"")};function Ke(t,e){return new RegExp(t,e)}Ve=_e?($e=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return $e.lastIndex=e,null!==(t=$e.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,n=[];;){var o=Ze(t,e);if(void 0===o||tr(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),e+=65536<=o?2:1}return He.apply(void 0,n)};var We=(Qe.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Qe.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(le.UNMATCHED_CLOSING_TAG,ke(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Je(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:ce.pound,location:ke(i,this.clonePosition())})}}}return{val:n,err:null}},Qe.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<"+n+"/>",location:ke(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Je(this.char()))return this.error(le.INVALID_TAG,ke(e,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(le.UNMATCHED_CLOSING_TAG,ke(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ce.tag,value:n,children:t,location:ke(r,this.clonePosition())},err:null}:this.error(le.INVALID_TAG,ke(e,this.clonePosition())))}return this.error(le.UNCLOSED_TAG,ke(r,this.clonePosition()))}return this.error(le.INVALID_TAG,ke(r,this.clonePosition()))},Qe.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())},Qe.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{o=this.tryParseUnquoted(t,e);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=ke(r,this.clonePosition());return{val:{type:ce.literal,value:n,location:r},err:null}},Qe.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Je(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},Qe.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 He.apply(void 0,e)},Qe.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(),He(r))},Qe.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(le.EMPTY_ARGUMENT,ke(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(le.MALFORMED_ARGUMENT,ke(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:n,location:ke(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(le.MALFORMED_ARGUMENT,ke(r,this.clonePosition()))}},Qe.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Ve(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:ke(t,this.clonePosition())}},Qe.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(le.EXPECT_ARGUMENT_TYPE,ke(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=Ye(f.val)).length)return this.error(le.EXPECT_ARGUMENT_STYLE,ke(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:ke(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var u=ke(n,this.clonePosition());if(l&&Xe(null==l?void 0:l.style,"::",0)){c=qe(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?f:{val:{type:ce.number,value:r,location:u,style:f.val},err:null};if(0===c.length)return this.error(le.EXPECT_DATE_TIME_SKELETON,u);var h={type:ue.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(Te,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?ce.date:ce.time,value:r,location:u,style:h},err:null}}return{val:{type:"number"===s?ce.number:"date"===s?ce.date:ce.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(le.EXPECT_SELECT_ARGUMENT_OPTIONS,ke(l,he({},l)));this.bumpSpace();var f,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ke(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=f.val}u=this.tryParsePluralOrSelectOptions(t,s,e,u);if(u.err)return u;if((p=this.tryParseArgumentClose(n)).err)return p;var p=ke(n,this.clonePosition());return"select"===s?{val:{type:ce.select,value:r,options:ze(u.val),location:p},err:null}:{val:{type:ce.plural,value:r,options:ze(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(le.INVALID_ARGUMENT_TYPE,ke(i,a))}},Qe.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ke(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},Qe.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(le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ke(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}},Qe.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Ae).filter(function(t){return 0<t.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(le.INVALID_NUMBER_SKELETON,e)}return{val:{type:ue.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Re(r):{}},err:null}},Qe.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o=!1,i=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_SELECTOR,le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=ke(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ke(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;c=this.tryParseArgumentClose(h);if(c.err)return c;i.push([a,{value:u.val,location:ke(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,ke(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(le.MISSING_OTHER_CLAUSE,ke(this.clonePosition(),this.clonePosition())):{val:i,err:null}},Qe.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=ke(n,this.clonePosition());return o?Be(i*=r)?{val:i,err:null}:this.error(e,n):this.error(t,n)},Qe.prototype.offset=function(){return this.position.offset},Qe.prototype.isEOF=function(){return this.offset()===this.message.length},Qe.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Qe.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ze(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},Qe.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},Qe.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))},Qe.prototype.bumpIf=function(t){if(Xe(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},Qe.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)},Qe.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}},Qe.prototype.bumpSpace=function(){for(;!this.isEOF()&&tr(this.char());)this.bump()},Qe.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},Qe);function Qe(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 Je(t){return 97<=t&&t<=122||65<=t&&t<=90}function tr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function er(t,e){e=he({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new We(t,e).parse();if(r.err){t=SyntaxError(le[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,ge(t)||be(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else de(t)&&we(t.style)||(me(t)||ye(t))&&Ee(t.style)?delete t.style.location:ve(t)&&r(t.children)})}(r.val),r.val}function rr(t,e){var r=e&&e.cache?e.cache:cr,n=e&&e.serializer?e.serializer:sr;return(e&&e.strategy?e.strategy:function(t,e){return ir(t,this,1===t.length?nr:or,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function nr(t,e,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=e.get(o);return void 0===r&&(r=t.call(this,n),e.set(o,r)),r}function or(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=e.get(o);return void 0===r&&(r=t.apply(this,n),e.set(o,r)),r}function ir(t,e,r,n,o){return r.bind(e,t,n,o)}var sr=function(){return JSON.stringify(arguments)};function ar(){this.cache=Object.create(null)}ar.prototype.has=function(t){return t in this.cache},ar.prototype.get=function(t){return this.cache[t]},ar.prototype.set=function(t,e){this.cache[t]=e};var lr,cr={create:function(){return new ar}},ur={variadic:function(t,e){return ir(t,this,or,e.cache.create(),e.serializer)},monadic:function(t,e){return ir(t,this,nr,e.cache.create(),e.serializer)}};(_e=lr=lr||{}).MISSING_VALUE="MISSING_VALUE",_e.INVALID_VALUE="INVALID_VALUE",_e.MISSING_INTL_API="MISSING_INTL_API";var hr,fr,pr,dr,mr,yr=(ae(Tr,mr=Error),Tr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Tr),gr=(ae(_r,dr=yr),_r),br=(ae(Er,pr=yr),Er),vr=(ae(wr,fr=yr),wr);function wr(t,e){return fr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',lr.MISSING_VALUE,e)||this}function Er(t,e,r){return pr.call(this,'Value for "'+t+'" must be of type '+e,lr.INVALID_VALUE,r)||this}function _r(t,e,r,n){return dr.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',lr.INVALID_VALUE,n)||this}function Tr(t,e,r){t=mr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Pr(t,e,r,n,o,i,s){if(1===t.length&&pe(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(pe(u))a.push({type:hr.literal,value:u.value});else if(u.type===ce.pound)"number"==typeof i&&a.push({type:hr.literal,value:r.getNumberFormat(e).format(i)});else{var h=u.value;if(!(o&&h in o))throw new vr(h,s);var f=o[h];if(u.type===ce.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?hr.literal:hr.object,value:f});else if(me(u)){var p="string"==typeof u.style?n.date[u.style]:Ee(u.style)?u.style.parsedOptions:void 0;a.push({type:hr.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(ye(u))p="string"==typeof u.style?n.time[u.style]:Ee(u.style)?u.style.parsedOptions:void 0,a.push({type:hr.literal,value:r.getDateTimeFormat(e,p).format(f)});else if(de(u))(p="string"==typeof u.style?n.number[u.style]:we(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:hr.literal,value:r.getNumberFormat(e,p).format(f)});else{if(ve(u)){var d=u.children,m=u.value,h=o[m];if("function"!=typeof h)throw new br(m,"function",s);d=h(Pr(d,e,r,n,o,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?hr.literal:hr.object,value:t}}))}if(ge(u)){if(!(y=u.options[f]||u.options.other))throw new gr(u.value,f,Object.keys(u.options),s);a.push.apply(a,Pr(y.value,e,r,n,o))}else if(be(u)){if(!(y=u.options["="+f])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',lr.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:u.pluralType}).select(f-(u.offset||0)),y=u.options[d]||u.options.other}if(!y)throw new gr(u.value,f,Object.keys(u.options),s);a.push.apply(a,Pr(y.value,e,r,n,o,f-(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 Ar(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}}}}}(_e=hr=hr||{})[_e.literal=0]="literal",_e[_e.object=1]="object";var Sr=(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=er,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,n){var o,i,s=this;if(void 0===e&&(e=Lr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===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 Pr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Lr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Lr.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Lr.formats,(i=r)?Object.keys(o).reduce(function(t,e){var r,n;return t[e]=(r=o[e],(n=i[e])?he(he(he({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=he(he({},r[e]),n[e]||{}),t},{})):r),t},he({},o)):o),this.locales=e,this.formatters=n&&n.formatters||{getNumberFormat:rr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,fe([void 0],e)))},{cache:Ar((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:ur.variadic}),getDateTimeFormat:rr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,fe([void 0],e)))},{cache:Ar(n.dateTime),strategy:ur.variadic}),getPluralRules:rr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,fe([void 0],e)))},{cache:Ar(n.pluralRules),strategy:ur.variadic})}}const xr={},Or=(e,r)=>{if(null!=r){if(r in xr&&e in xr[r])return xr[r][e];var n,o,i=Xr(r);for(let t=0;t<i.length;t++){var s=(n=i[t],o=e,Nr(n)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(0<t){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return Cr[t]||null}(n),o):null);if(s)return n=e,o=r,(s=s)&&(o in xr||(xr[o]={}),n in xr[o]||(xr[o][n]=s),s)}}};let Cr;const Ir=Yt({});function Nr(t){return t in Cr}Kt([Ir],([t])=>Object.keys(t)),Ir.subscribe(t=>Cr=t);const Rr={};function Mr(t){return Rr[t]}function Ur(t){return Xr(t).some(t=>{return null===(t=Mr(t))||void 0===t?void 0:t.size})}function kr(e,t){return Promise.all(t.map(t=>(function(t,e){Rr[t].delete(e),0===Rr[t].size&&delete Rr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>function(e,...r){delete xr[e],Ir.update(t=>(t[e]=ie.all([t[e]||{},...r]),t))}(e,...t))}const Dr={};function Fr(t,e){var r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}const Gr={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 jr=Yt(!1);let Br;const $r=Yt(null);function Vr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Xr(t,e=Gr.fallbackLocale){t=Vr(t);return e?[...new Set([...t,...Vr(e)])]:t}$r.subscribe(t=>{Br=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Hr=$r.set;$r.set=e=>{if(function(t){if(null!=t){var e=Xr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Nr(r))return r}}}(e)&&Ur(e)){var{loadingDelay:r}=Gr;let t;return"undefined"!=typeof window&&null!=Br&&r?t=window.setTimeout(()=>jr.set(!0),r):jr.set(!0),function t(e){if(!Ur(e))return e in Dr?Dr[e]:void 0;const r=Xr(e).map(t=>{var e=Mr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Dr[e]=Promise.all(r.map(([t,e])=>kr(t,e))).then(()=>Ur(e)?t(e):void delete Dr[e]),Dr[e]}(e).then(()=>{Hr(e)}).finally(()=>{clearTimeout(t),jr.set(!1)})}return Hr(e)},$r.update=t=>Hr(t(Br));const zr=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},Zr=(t,e)=>{var{formats:r}=Gr;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},qr=zr(t=>{var{locale:e,format:r}=t,t=Fr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Zr("number",r)),new Intl.NumberFormat(e,t)}),Yr=zr(t=>{var{locale:e,format:r}=t,t=Fr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Zr("date",r):0===Object.keys(t).length&&(t=Zr("date","short")),new Intl.DateTimeFormat(e,t)}),Kr=zr(t=>{var{locale:e,format:r}=t,t=Fr(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Zr("time",r):0===Object.keys(t).length&&(t=Zr("time","short")),new Intl.DateTimeFormat(e,t)}),Wr=zr((t,e=Br)=>new Sr(t,e,Gr.formats,{ignoreTag:Gr.ignoreTag}));function Qr(t){let r,n;return{c(){r=e("script"),r.src!==(n="//www.google.com/recaptcha/api.js?render="+t[0])&&$(r,"src",n),r.async=!0,r.defer=!0},m(t,e){D(t,r,e)},p(t,e){1&e[0]&&r.src!==(n="//www.google.com/recaptcha/api.js?render="+t[0])&&$(r,"src",n)},d(t){t&&F(r)}}}function Jr(r){let n,o,i,s,a,l,c;return{c(){n=e("div"),o=e("div"),i=e("div"),i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><style>.a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}</style></defs><g transform="translate(7106 -8970)"><g transform="translate(-7360.574 8503.438)"><path class="a" d="M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z" transform="translate(264.272 482.563)"></path></g><g class="b" transform="translate(-7106 8970)"><circle class="c" cx="30" cy="30" r="30"></circle><circle class="d" cx="30" cy="30" r="29"></circle></g></g></svg> \n <h4>Success!</h4> \n <p>Your password has been changed successfully.</p>',s=j(),a=e("button"),a.textContent="Click here to Login",$(i,"class","NewPasswordSuccess"),$(a,"class","resetPasswordButton"),$(o,"class","FormContent"),$(n,"class","FormLeftSide")},m(t,e){D(t,n,e),k(n,o),k(o,i),k(o,s),k(o,a),l||(c=B(a,"click",r[36]),l=!0)},p:h,d(t){t&&F(n),l=!1,c()}}}function tn(r){let n,o,i,s,a,l,c,u,h,f,p,d,m,y,g,b,v,w,E,_,T,P,A;function S(t){return t[13]?on:nn}let L=S(r),x=L(r),O=r[9]&&sn();function C(t){return t[14]?ln:an}let I=C(r),N=I(r),R=r[10]&&cn();return{c(){n=e("div"),o=e("div"),o.innerHTML='<h4 class="FormHeaderTitle">New Password</h4>',i=j(),s=e("div"),a=e("div"),l=e("label"),l.innerHTML='Password:<span class="FormRequired">*</span>',c=j(),u=e("input"),h=j(),x.c(),f=j(),O&&O.c(),p=j(),d=e("div"),m=e("label"),m.innerHTML='Confirm Password:<span class="FormRequired">*</span>',y=j(),g=e("input"),b=j(),N.c(),v=j(),R&&R.c(),w=j(),E=e("button"),_=G("Change password"),$(o,"class","FormHeader"),$(l,"for","NewPassword"),$(u,"type","password"),$(u,"id","NewPassword"),$(a,"class","NewPassword"),$(m,"for","RetypePassword"),$(g,"type","password"),$(g,"id","RetypePassword"),$(d,"class","ConfirmPassword"),$(E,"class","resetPasswordButton"),E.disabled=T=!r[8],$(s,"class","FormContent"),$(n,"class","FormLeftSide test")},m(t,e){D(t,n,e),k(n,o),k(n,i),k(n,s),k(s,a),k(a,l),k(a,c),k(a,u),V(u,r[15]),r[28](u),k(a,h),x.m(a,null),k(a,f),O&&O.m(a,null),k(s,p),k(s,d),k(d,m),k(d,y),k(d,g),V(g,r[16]),r[32](g),k(d,b),N.m(d,null),k(d,v),R&&R.m(d,null),k(s,w),k(s,E),k(E,_),P||(A=[B(u,"input",r[27]),B(u,"blur",function(){U(r[21](r[9],r[15],r[11]))&&r[21](r[9],r[15],r[11]).apply(this,arguments)}),B(g,"input",r[31]),B(g,"keyup",function(){U(r[21](r[10],r[16],r[12]))&&r[21](r[10],r[16],r[12]).apply(this,arguments)}),B(E,"click",r[35])],P=!0)},p(t,e){r=t,32768&e[0]&&u.value!==r[15]&&V(u,r[15]),L===(L=S(r))&&x?x.p(r,e):(x.d(1),x=L(r),x&&(x.c(),x.m(a,f))),r[9]?O||(O=sn(),O.c(),O.m(a,null)):O&&(O.d(1),O=null),65536&e[0]&&g.value!==r[16]&&V(g,r[16]),I===(I=C(r))&&N?N.p(r,e):(N.d(1),N=I(r),N&&(N.c(),N.m(d,v))),r[10]?R||(R=cn(),R.c(),R.m(d,null)):R&&(R.d(1),R=null),256&e[0]&&T!==(T=!r[8])&&(E.disabled=T)},d(t){t&&F(n),r[28](null),x.d(),O&&O.d(),r[32](null),N.d(),R&&R.d(),P=!1,M(A)}}}function en(t){let r;return{c(){r=e("div"),r.innerHTML='<div class="FormContent"><div class="NewPasswordSuccess"><svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><style>.a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}</style></defs><g transform="translate(7106 -8970)"><g transform="translate(-7360.574 8503.438)"><path class="a" d="M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z" transform="translate(264.272 482.563)"></path></g><g class="b" transform="translate(-7106 8970)"><circle class="c" cx="30" cy="30" r="30"></circle><circle class="d" cx="30" cy="30" r="29"></circle></g></g></svg> \n <h4>Success!</h4> \n <p>We sent an email with the instructions to reset your password.</p></div></div>',$(r,"class","FormLeftSide")},m(t,e){D(t,r,e)},p:h,d(t){t&&F(r)}}}function rn(r){let n,o,i,s,a,l,c,u,h,f,p,d,m,y,g,b,v=r[2]&&un();return{c(){n=e("div"),o=e("div"),i=e("button"),i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:#d0046c;}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>\n Back to sign in',s=j(),a=e("h4"),a.textContent="Forgot Password",l=j(),c=e("div"),u=e("div"),h=e("label"),h.innerHTML='Email:<span class="FormRequired">*</span>',f=j(),p=e("input"),d=j(),v&&v.c(),m=j(),y=e("button"),y.textContent="Reset password",$(i,"class","backButtonForgotPassword"),$(a,"class","FormHeaderTitle"),$(o,"class","FormHeader"),$(h,"for","ResetPasswordByEmail"),$(p,"type","text"),$(p,"id","ResetPasswordByEmail"),$(u,"class","ResetPasswordByEmail "),$(y,"class","resetPasswordButton"),$(c,"class","FormContent"),$(n,"class","FormLeftSide")},m(t,e){D(t,n,e),k(n,o),k(o,i),k(o,s),k(o,a),k(n,l),k(n,c),k(c,u),k(u,h),k(u,f),k(u,p),V(p,r[4]),k(u,d),v&&v.m(u,null),k(c,m),k(c,y),g||(b=[B(i,"click",r[24]),B(p,"input",r[25]),B(y,"click",r[26])],g=!0)},p(t,e){16&e[0]&&p.value!==t[4]&&V(p,t[4]),t[2]?v||(v=un(),v.c(),v.m(u,null)):v&&(v.d(1),v=null)},d(t){t&&F(n),v&&v.d(),g=!1,M(b)}}}function nn(r){let n,o,i,s,a,l,c,u,h,f;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=G(".a{fill:#fff;}"),a=t("g"),l=t("path"),c=t("circle"),$(l,"class","a"),$(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"),$(l,"transform","translate(0)"),$(c,"class","a"),$(c,"cx","2.779"),$(c,"cy","2.779"),$(c,"r","2.779"),$(c,"transform","translate(20.827 30.303)"),$(a,"transform","translate(-14.185 -27.832)"),$(n,"class",u="TogglePasswordVisibility "+(r[9]?"InvalidToggle":"")),$(n,"xmlns","http://www.w3.org/2000/svg"),$(n,"width","18.843"),$(n,"height","10.5"),$(n,"viewBox","0 0 18.843 10.5")},m(t,e){D(t,n,e),k(n,o),k(o,i),k(i,s),k(n,a),k(a,l),k(a,c),h||(f=B(n,"click",r[30]),h=!0)},p(t,e){512&e[0]&&u!==(u="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&$(n,"class",u)},d(t){t&&F(n),h=!1,f()}}}function on(r){let n,o,i,s,a,l,c,u,h,f,p,d,m,y,g,b;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=G(".a{fill:#fff;}"),a=t("g"),l=t("circle"),c=t("g"),u=t("path"),h=t("path"),f=t("g"),p=t("path"),d=t("path"),m=t("rect"),$(l,"class","a"),$(l,"cx","0.05"),$(l,"cy","0.05"),$(l,"r","0.05"),$(l,"transform","translate(121.017 31.148)"),$(u,"class","a"),$(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),$(u,"transform","translate(-142.164 -39.123)"),$(h,"class","a"),$(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),$(h,"transform","translate(-136.413 -42.068)"),$(c,"transform","translate(117.499 27.37)"),$(p,"class","a"),$(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"),$(p,"transform","translate(-110.856 -33.157)"),$(d,"class","a"),$(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"),$(d,"transform","translate(-130.743 -29.617)"),$(f,"transform","translate(110.856 24.899)"),$(m,"class","a"),$(m,"width","0.972"),$(m,"height","15.861"),$(m,"rx","0.486"),$(m,"transform","translate(114.827 23.858) rotate(-39.315)"),$(a,"transform","translate(-110.856 -23.242)"),$(n,"class",y="TogglePasswordVisibility "+(r[9]?"InvalidToggle":"")),$(n,"xmlns","http://www.w3.org/2000/svg"),$(n,"width","18.844"),$(n,"height","12.887"),$(n,"viewBox","0 0 18.844 12.887")},m(t,e){D(t,n,e),k(n,o),k(o,i),k(i,s),k(n,a),k(a,l),k(a,c),k(c,u),k(c,h),k(a,f),k(f,p),k(f,d),k(a,m),g||(b=B(n,"click",r[29]),g=!0)},p(t,e){512&e[0]&&y!==(y="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&$(n,"class",y)},d(t){t&&F(n),g=!1,b()}}}function sn(){let r;return{c(){r=e("p"),r.textContent="The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",$(r,"class","InvalidInput")},m(t,e){D(t,r,e)},d(t){t&&F(r)}}}function an(r){let n,o,i,s,a,l,c,u,h,f;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=G(".a{fill:#fff;}"),a=t("g"),l=t("path"),c=t("circle"),$(l,"class","a"),$(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"),$(l,"transform","translate(0)"),$(c,"class","a"),$(c,"cx","2.779"),$(c,"cy","2.779"),$(c,"r","2.779"),$(c,"transform","translate(20.827 30.303)"),$(a,"transform","translate(-14.185 -27.832)"),$(n,"class",u="TogglePasswordVisibility "+(r[10]?"InvalidToggle":"")),$(n,"xmlns","http://www.w3.org/2000/svg"),$(n,"width","18.843"),$(n,"height","10.5"),$(n,"viewBox","0 0 18.843 10.5")},m(t,e){D(t,n,e),k(n,o),k(o,i),k(i,s),k(n,a),k(a,l),k(a,c),h||(f=B(n,"click",r[34]),h=!0)},p(t,e){1024&e[0]&&u!==(u="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&$(n,"class",u)},d(t){t&&F(n),h=!1,f()}}}function ln(r){let n,o,i,s,a,l,c,u,h,f,p,d,m,y,g,b;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=G(".a{fill:#fff;}"),a=t("g"),l=t("circle"),c=t("g"),u=t("path"),h=t("path"),f=t("g"),p=t("path"),d=t("path"),m=t("rect"),$(l,"class","a"),$(l,"cx","0.05"),$(l,"cy","0.05"),$(l,"r","0.05"),$(l,"transform","translate(121.017 31.148)"),$(u,"class","a"),$(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),$(u,"transform","translate(-142.164 -39.123)"),$(h,"class","a"),$(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),$(h,"transform","translate(-136.413 -42.068)"),$(c,"transform","translate(117.499 27.37)"),$(p,"class","a"),$(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"),$(p,"transform","translate(-110.856 -33.157)"),$(d,"class","a"),$(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"),$(d,"transform","translate(-130.743 -29.617)"),$(f,"transform","translate(110.856 24.899)"),$(m,"class","a"),$(m,"width","0.972"),$(m,"height","15.861"),$(m,"rx","0.486"),$(m,"transform","translate(114.827 23.858) rotate(-39.315)"),$(a,"transform","translate(-110.856 -23.242)"),$(n,"class",y="TogglePasswordVisibility "+(r[10]?"InvalidToggle":"")),$(n,"xmlns","http://www.w3.org/2000/svg"),$(n,"width","18.844"),$(n,"height","12.887"),$(n,"viewBox","0 0 18.844 12.887")},m(t,e){D(t,n,e),k(n,o),k(o,i),k(i,s),k(n,a),k(a,l),k(a,c),k(c,u),k(c,h),k(a,f),k(f,p),k(f,d),k(a,m),g||(b=B(n,"click",r[33]),g=!0)},p(t,e){1024&e[0]&&y!==(y="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&$(n,"class",y)},d(t){t&&F(n),g=!1,b()}}}function cn(){let r;return{c(){r=e("p"),r.textContent="Cofirm password must match the new password and must follow the same rules.",$(r,"class","InvalidInput")},m(t,e){D(t,r,e)},d(t){t&&F(r)}}}function un(){let r;return{c(){r=e("p"),r.textContent="This email does not exist.",$(r,"class","ForgotPasswordError")},m(t,e){D(t,r,e)},d(t){t&&F(r)}}}function hn(){let r;return{c(){r=e("div"),$(r,"class","FormRightSide"),r.style.setProperty("background","url('https://storage.googleapis.com/stateless-winmasters-one/2021/03/908d327e-em_welcome_promo.jpg') no-repeat","")},m(t,e){D(t,r,e)},d(t){t&&F(r)}}}function fn(t){let r,n,o,i,s,a=t[0]&&Qr(t),l=function(t){let r,n;function o(t){return t[1]?rn:t[3]?en:t[5]?tn:t[6]?Jr:void 0}let i=o(t),s=i&&i(t),a=!t[7]&&hn();return{c(){r=e("div"),s&&s.c(),n=j(),a&&a.c(),$(r,"class","FormContainer")},m(t,e){D(t,r,e),s&&s.m(r,null),k(r,n),a&&a.m(r,null)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s&&s.d(1),s=i&&i(t),s&&(s.c(),s.m(r,n))),t[7]?a&&(a.d(1),a=null):a||(a=hn(),a.c(),a.m(r,null))},d(t){t&&F(r),s&&s.d(),a&&a.d()}}}(t);return{c(){a&&a.c(),r=c(),n=j(),o=e("div"),i=j(),l.c(),s=c(),this.c=h,$(o,"class","g-recaptcha"),$(o,"data-sitekey",t[0])},m(t,e){a&&a.m(document.head,null),k(document.head,r),D(t,n,e),D(t,o,e),D(t,i,e),l.m(t,e),D(t,s,e)},p(t,e){t[0]?a?a.p(t,e):(a=Qr(t),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),1&e[0]&&$(o,"data-sitekey",t[0]),l.p(t,e)},i:h,o:h,d(t){a&&a.d(t),F(r),t&&F(n),t&&F(o),t&&F(i),l.d(t),t&&F(s)}}}function pn(t,e,n){var r=this&&this.__awaiter||function(t,s,a,l){return new(a=a||Promise)(function(r,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function o(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(n,o)}i((l=l.apply(t,s||[])).next())})};let o,i,{endpoint:s=""}=e,{forgotpasswordkey:a=""}=e,{captchakey:l=""}=e,c=!0,u=!1,h=!1,f="",p=!1,d=!1,m=!1,y=window.navigator.userAgent,g,b=!1,v=!1,w=!1,E=!1,_="",T="";const P={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},A=t=>{switch(t){case"userNewPassword":n(13,w=!w),n(11,o.type=w?"text":"password",o);break;case"userConfirmPassword":n(14,E=!E),n(12,i.type=E?"text":"password",i)}},S=t=>{switch(t){case"ToEmailSuccess":n(2,u=!1),n(1,c=!1),n(3,h=!0);break;case"ToReset":n(1,c=!1),n(5,p=!0);break;case"ToSuccess":n(5,p=!1),n(6,d=!0)}},L=()=>{window.postMessage({type:"ToLogin"},window.location.href)},x=()=>{new Promise((e,t)=>{grecaptcha.ready(()=>{grecaptcha.execute(l,{action:"submit"}).then(t=>{e(t)})})}).then(t=>{let e=new URL(`${s}/player/resetpassword`),r={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":t}};e.searchParams.append("email",f),fetch(e,r).then(t=>{200==t.status?S("ToEmailSuccess"):n(2,u=!0)})})},O=()=>{var t=new URL(`${s}/player/ResetPasswordByHashKey`),e={hashKey:a,plainTextPassword:_},e={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t,e).then(t=>{200==t.status&&S("ToSuccess")})},C=t=>!!P.password.test(t);return e=()=>r(void 0,void 0,void 0,function*(){var t;((t=y).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))&&n(7,m=!0)}),function(){if(!I)throw new Error("Function called outside component initialization");return I}().$$.on_mount.push(e),t.$$set=t=>{"endpoint"in t&&n(22,s=t.endpoint),"forgotpasswordkey"in t&&n(23,a=t.forgotpasswordkey),"captchakey"in t&&n(0,l=t.captchakey)},t.$$.update=()=>{8388608&t.$$.dirty[0]&&a&&a&&0<a.length&&S("ToReset")},[l,c,u,h,f,p,d,m,!1,b,v,o,i,w,E,_,T,A,L,x,O,(t,e,r)=>{"NewPassword"===r.id?(n(9,b=!C(e)),T&&n(10,v=_!==T||!C(e))):n(10,v=_!==T||!C(e)),n(8,g=!(b||v||!_||!T))},s,a,()=>L(),function(){f=this.value,n(4,f)},()=>x(),function(){_=this.value,n(15,_)},function(t){N[t?"unshift":"push"](()=>{o=t,n(11,o)})},()=>A("userNewPassword"),()=>A("userNewPassword"),function(){T=this.value,n(16,T)},function(t){N[t?"unshift":"push"](()=>{i=t,n(12,i)})},()=>A("userConfirmPassword"),()=>A("userConfirmPassword"),()=>O(),()=>L()]}Kt([$r,Ir],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:n=Br,default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Or(t,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Gr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Xr(n).join('", "')}".${Ur(Br)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=Wr(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s}),Kt([$r],()=>(t,e)=>((t={})=>{var{locale:e=Br}=t,t=Fr(t,["locale"]);return Kr(Object.assign({locale:e},t))})(e).format(t)),Kt([$r],()=>(t,e)=>((t={})=>{var{locale:e=Br}=t,t=Fr(t,["locale"]);return Yr(Object.assign({locale:e},t))})(e).format(t)),Kt([$r],()=>(t,e)=>((t={})=>{var{locale:e=Br}=t,t=Fr(t,["locale"]);return qr(Object.assign({locale:e},t))})(e).format(t)),Kt([$r,Ir],()=>(t,e=Br)=>Or(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==zt.indexOf(t)&&(e=new $t(e),Zt[t]=e,zt.push(t)),Zt[t]}};class dn 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:#07072A;height:24px !important;line-height:24px;border-radius:5px;border:none;background:transparent;height:60px;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:#F9F8F8}.FormHeaderTitle{color:#000000;font-size:28px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormRequired{color:#FD2839}.ForgotPasswordError{color:#FD2839;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:#16CE16;font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:#000;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:#D0046C}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:#58586B}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:#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 #D1D1D1;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 #D0046C;background:#FBECF4;color:#D0046C}.resetPasswordButton{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.resetPasswordButton[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.InvalidInput{color:#FD2839;font-size:10px;position:absolute;bottom:10px;line-height:10px}.FormLeftSide{padding:40px 20px;height:460px}.FormMobileContainer .ResetPasswordByEmail 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},pn,fn,r,{endpoint:22,forgotpasswordkey:23,captchakey:0},[-1,-1]),t&&(t.target&&D(t.target,this,t.anchor),t.props&&(this.$set(t.props),v()))}static get observedAttributes(){return["endpoint","forgotpasswordkey","captchakey"]}get endpoint(){return this.$$.ctx[22]}set endpoint(t){this.$set({endpoint:t}),v()}get forgotpasswordkey(){return this.$$.ctx[23]}set forgotpasswordkey(t){this.$set({forgotpasswordkey:t}),v()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$set({captchakey:t}),v()}}return customElements.get("general-player-forgot-password-form")||customElements.define("general-player-forgot-password-form",dn),dn});
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 h(t){return t()}function p(){return Object.create(null)}function H(t){t.forEach(h)}function Z(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function F(t,...e){if(null==t)return f;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function q(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 k(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}let U;function d(t){U=t}const m=[],M=[],o=[],t=[],g=Promise.resolve();let y=!1;function w(t){o.push(t)}let n=!1;const s=new Set;function b(){if(!n){n=!0;do{for(let t=0;t<m.length;t+=1){var e=m[t];d(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(w))}}(e.$$)}for(d(null),m.length=0;M.length;)M.pop()();for(let t=0;t<o.length;t+=1){const r=o[t];s.has(r)||(s.add(r),r())}}while(o.length=0,m.length);for(;t.length;)t.pop()();y=!1,n=!1,s.clear()}}const v=new Set;function i(o,t,e,r,n,s,i=[-1]){var a,l=U;d(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),y||(y=!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||w(()=>{var t=s.map(h).filter(Z);i?i.push(...t):H(t),e.$$.on_mount=[]}),a.forEach(w)}(o,t.target,t.anchor,t.customElement),b()}d(l)}let a;"function"==typeof HTMLElement&&(a=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(Z);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 l,u,E="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==E&&E,P="URLSearchParams"in E,_="Symbol"in E&&"iterator"in Symbol,T="FileReader"in E&&"Blob"in E&&function(){try{return new Blob,!0}catch(t){return!1}}(),A="FormData"in E,S="ArrayBuffer"in E;function L(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 N(t){return t="string"!=typeof t?String(t):t}function C(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 R(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function I(t){var e=new FileReader,r=R(e);return e.readAsArrayBuffer(t),r}function D(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:T&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:A&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:P&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():S&&T&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=D(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=D(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):P&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(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(I)}),this.text=function(){var t,e,r=O(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=R(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)},A&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}S&&(l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&-1<l.indexOf(Object.prototype.toString.call(t))}),x.prototype.append=function(t,e){t=L(t),e=N(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},x.prototype.delete=function(t){delete this.map[L(t)]},x.prototype.get=function(t){return t=L(t),this.has(t)?this.map[t]:null},x.prototype.has=function(t){return this.map.hasOwnProperty(L(t))},x.prototype.set=function(t,e){this.map[L(t)]=N(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)}),C(r)},x.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),C(e)},x.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),C(r)},_&&(x.prototype[Symbol.iterator]=x.prototype.entries);var j=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(t,e){if(!(this instanceof B))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 B){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<j.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 $(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 V(t,e){if(!(this instanceof V))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)}B.prototype.clone=function(){return new B(this,{body:this._bodyInit})},G.call(B.prototype),G.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new x(this.headers),url:this.url})},V.error=function(){var t=new V(null,{status:0,statusText:""});return t.type="error",t};var z=[301,302,303,307,308];V.redirect=function(t,e){if(-1===z.indexOf(e))throw new RangeError("Invalid status code");return new V(null,{status:e,headers:{location:t}})};var X=E.DOMException;try{new X}catch(f){(X=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),X.prototype.constructor=X}function ot(o,i){return new Promise(function(n,t){var e=new B(o,i);if(e.signal&&e.signal.aborted)return t(new X("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 V(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 X("Aborted","AbortError"))},0)},s.open(e.method,function(e){try{return""===e&&E.location.href?E.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&&(T?s.responseType="blob":S&&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,N(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)})}ot.polyfill=!0,E.fetch||(E.fetch=ot,E.Headers=x,E.Request=B,E.Response=V),self.fetch.bind(self);var nt=function(t,e){return(nt=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 st(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}nt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function it(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 at(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 lt(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function ct(t){return"function"==typeof t}function ut(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 ft=ut(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 ht(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var pt=(mt.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=it(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(ct(s))try{s()}catch(t){n=t instanceof ft?t.errors:[t]}s=this._teardowns;if(s){this._teardowns=null;try{for(var l=it(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{yt(u)}catch(t){n=null!=n?n:[],t instanceof ft?n=lt(lt([],at(n)),at(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 ft(n)}},mt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof mt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},mt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},mt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},mt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ht(e,t)},mt.prototype.remove=function(t){var e=this._teardowns;e&&ht(e,t),t instanceof mt&&t._removeParent(this)},mt.EMPTY=((Ge=new mt).closed=!0,Ge),mt),dt=pt.EMPTY;function mt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function gt(t){return t instanceof pt||t&&"closed"in t&&ct(t.remove)&&ct(t.add)&&ct(t.unsubscribe)}function yt(t){ct(t)?t():t.unsubscribe()}var wt=void 0,bt=!1,vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],at(t)))};function Et(){}function Pt(t){t()}var _t,Tt,At=(st(Nt,Tt=pt),Nt.create=function(t,e,r){return new St(t,e,r)},Nt.prototype.next=function(t){this.isStopped||this._next(t)},Nt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Nt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Nt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Tt.prototype.unsubscribe.call(this),this.destination=null)},Nt.prototype._next=function(t){this.destination.next(t)},Nt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Nt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Nt),St=(st(Lt,_t=At),Lt);function Lt(t,e,r){var o,n,s=_t.call(this)||this;return ct(t)?n=t:t&&(n=t.next,e=t.error,r=t.complete,s&&bt?(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?Ct(n):Et,error:Ct(null!=e?e:xt),complete:r?Ct(r):Et},s}function Nt(t){var e=Tt.call(this)||this;return e.isStopped=!1,t?gt(e.destination=t)&&t.add(e):e.destination=Ot,e}function Ct(o){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{o.apply(void 0,lt([],at(t)))}catch(t){e=t,vt(function(){throw e})}}}function xt(t){throw t}var Ot={closed:!0,next:Et,error:xt,complete:Et},Rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function It(t){return t}var Ft=(Ut.prototype.lift=function(t){var e=new Ut;return e.source=this,e.operator=t,e},Ut.prototype.subscribe=function(t,e,r){var o,n=this,s=(o=t)&&o instanceof At||o&&ct(o.next)&&ct(o.error)&&ct(o.complete)&&gt(o)?t:new St(t,e,r);return Pt(function(){var t=n.operator,e=n.source;s.add(t?t.call(s,e):e?n._subscribe(s):n._trySubscribe(s))}),s},Ut.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Ut.prototype.forEach=function(o,t){var n=this;return new(t=kt(t))(function(t,e){var r=n.subscribe(function(t){try{o(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Ut.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Ut.prototype[Rt]=function(){return this},Ut.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?It:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Ut.prototype.toPromise=function(t){var o=this;return new(t=kt(t))(function(t,e){var r;o.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Ut.create=function(t){return new Ut(t)},Ut);function Ut(t){t&&(this._subscribe=t)}function kt(t){return null!==(t=null!=t?t:wt)&&void 0!==t?t:Promise}var Mt,Dt,Gt,jt=ut(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Bt=(st(Zt,Gt=Ft),Zt.prototype.lift=function(t){var e=new $t(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;Pt(function(){var e,t;if(i._throwIfClosed(),!i.isStopped){var r=i.observers.slice();try{for(var o=it(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;Pt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},Zt.prototype.complete=function(){var e=this;Pt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},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?dt:(o.push(t),new pt(function(){return ht(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 Ft;return t.source=this,t},Zt.create=function(t,e){return new $t(t,e)},Zt),$t=(st(Ht,Dt=Bt),Ht.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)},Ht.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)},Ht.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)},Ht.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:dt},Ht),Vt={now:function(){return(Vt.delegate||Date).now()},delegate:void 0},zt=(st(Xt,Mt=Bt),Xt.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(),Mt.prototype.next.call(this,t)},Xt.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},Xt.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)}},Xt);function Xt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Vt);var o=Mt.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 Ht(t,e){var r=Dt.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 qt=[],Yt={};const Kt=[];function Wt(o,n=f){let s;const i=[];function a(t){if(r(o,t)&&(o=t,s)){const t=!Kt.length;for(let t=0;t<i.length;t+=1){const e=i[t];e[1](),Kt.push(e,o)}if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.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 Qt(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return{subscribe:Wt(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=Z(t)?t:f)},t=c.map((t,e)=>F(t,t=>{o[e]=t,n&=~(1<<e),r&&i()},()=>{n|=1<<e}));return r=!0,i(),function(){H(t),s()}}).subscribe}}var Jt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===te));var e},te="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ie(Array.isArray(t)?[]:{},t,e):t}function re(t,e,r){return t.concat(e).map(function(t){return ee(t,r)})}function oe(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ne(t,e){try{return e in t}catch(t){return!1}}function se(o,n,s){var i={};return s.isMergeableObject(o)&&oe(o).forEach(function(t){i[t]=ee(o[t],s)}),oe(n).forEach(function(e){var t,r;(!ne(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ne(o,e)&&s.isMergeableObject(n[e])?i[e]=function(){if(!s.customMerge)return ie;var t=s.customMerge(e);return"function"==typeof t?t:ie}()(o[e],n[e],s):i[e]=ee(n[e],s))}),i}function ie(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||re,r.isMergeableObject=r.isMergeableObject||Jt,r.cloneUnlessOtherwiseSpecified=ee;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):se(t,e,r):ee(e,r)}ie.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return ie(t,e,r)},{})};var ae=ie,le=function(t,e){return(le=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 ce(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}le(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ue,fe,he,pe=function(){return(pe=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 de(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function me(t){return t.type===fe.literal}function ge(t){return t.type===fe.number}function ye(t){return t.type===fe.date}function we(t){return t.type===fe.time}function be(t){return t.type===fe.select}function ve(t){return t.type===fe.plural}function Ee(t){return t.type===fe.tag}function Pe(t){return t&&"object"==typeof t&&t.type===he.number}function _e(t){return t&&"object"==typeof t&&t.type===he.dateTime}(je=ue=ue||{})[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",(Be=fe=fe||{})[Be.literal=0]="literal",Be[Be.argument=1]="argument",Be[Be.number=2]="number",Be[Be.date=3]="date",Be[Be.time=4]="time",Be[Be.select=5]="select",Be[Be.plural=6]="plural",Be[Be.pound=7]="pound",Be[Be.tag=8]="tag",($e=he=he||{})[$e.number=0]="number",$e[$e.dateTime=1]="dateTime";var Te=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=/(?:[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 Se,Le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ne=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ce=/^(@+)?(\+|#+)?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Re(t){var o={};return t.replace(Ce,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 Ie(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 Fe(t){return Ie(t)||{}}function Ue(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=pe(pe(pe({},i),{notation:"scientific"}),n.options.reduce(function(t,e){return pe(pe({},t),Fe(e))},{}));continue;case"engineering":i=pe(pe(pe({},i),{notation:"engineering"}),n.options.reduce(function(t,e){return pe(pe({},t),Fe(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(Ne.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ne,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=pe(pe({},i),Re(n.options[0])))}else Ce.test(n.stem)?i=pe(pe({},i),Re(n.stem)):((o=Ie(n.stem))&&(i=pe(pe({},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=pe(pe({},i),o)))}return i}var ke=new RegExp("^"+Te.source+"*"),Me=new RegExp(Te.source+"*$");function De(t,e){return{start:t,end:e}}var Ge=!!String.prototype.startsWith,Rt=!!String.fromCodePoint,Bt=!!Object.fromEntries,je=!!String.prototype.codePointAt,Be=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,Ve=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Te=!0;try{Te="a"===(null===(Se=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Se?void 0:Se[0])}catch(f){Te=!1}var ze,Xe,He=Ge?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Ze=Rt?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},qe=Bt?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},Ye=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}},Ke=Be?function(t){return t.trimStart()}:function(t){return t.replace(ke,"")},We=$e?function(t){return t.trimEnd()}:function(t){return t.replace(Me,"")};function Qe(t,e){return new RegExp(t,e)}Xe=Te?(ze=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return ze.lastIndex=e,null!==(t=ze.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,o=[];;){var n=Ye(t,e);if(void 0===n||rr(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 Je=(tr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},tr.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(ue.UNMATCHED_CLOSING_TAG,De(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&er(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:fe.pound,location:De(s,this.clonePosition())})}}}return{val:o,err:null}},tr.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+o+"/>",location:De(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()||!er(this.char()))return this.error(ue.INVALID_TAG,De(e,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(ue.UNMATCHED_CLOSING_TAG,De(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:o,children:t,location:De(r,this.clonePosition())},err:null}:this.error(ue.INVALID_TAG,De(e,this.clonePosition())))}return this.error(ue.UNCLOSED_TAG,De(r,this.clonePosition()))}return this.error(ue.INVALID_TAG,De(r,this.clonePosition()))},tr.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())},tr.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=De(r,this.clonePosition());return{val:{type:fe.literal,value:o,location:r},err:null}},tr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},tr.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)},tr.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))},tr.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ue.EMPTY_ARGUMENT,De(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ue.MALFORMED_ARGUMENT,De(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:o,location:De(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(ue.MALFORMED_ARGUMENT,De(r,this.clonePosition()))}},tr.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xe(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:De(t,this.clonePosition())}},tr.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(ue.EXPECT_ARGUMENT_TYPE,De(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=We(h.val)).length)return this.error(ue.EXPECT_ARGUMENT_STYLE,De(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:De(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(o)).err)return p;var u=De(o,this.clonePosition());if(l&&He(null==l?void 0:l.style,"::",0)){c=Ke(l.style.slice(2));if("number"===i)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:fe.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(ue.EXPECT_DATE_TIME_SKELETON,u);var f={type:he.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(Ae,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?fe.date:fe.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===i?fe.number:"date"===i?fe.date:fe.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(ue.EXPECT_SELECT_ARGUMENT_OPTIONS,De(l,pe({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ue.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(t,i,e,u);if(u.err)return u;if((p=this.tryParseArgumentClose(o)).err)return p;var p=De(o,this.clonePosition());return"select"===i?{val:{type:fe.select,value:r,options:qe(u.val),location:p},err:null}:{val:{type:fe.plural,value:r,options:qe(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:p},err:null};default:return this.error(ue.INVALID_ARGUMENT_TYPE,De(s,a))}},tr.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},tr.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(ue.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,De(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}},tr.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(Le).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(ue.INVALID_NUMBER_SKELETON,e)}return{val:{type:he.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ue(r):{}},err:null}},tr.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(ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,ue.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=De(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(i.has(a))return this.error("select"===e?ue.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ue.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ue.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,De(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:De(f,this.clonePosition())}]),i.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===s.length?this.error("select"===e?ue.EXPECT_SELECT_ARGUMENT_SELECTOR:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,De(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(ue.MISSING_OTHER_CLAUSE,De(this.clonePosition(),this.clonePosition())):{val:s,err:null}},tr.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=De(o,this.clonePosition());return n?Ve(s*=r)?{val:s,err:null}:this.error(e,o):this.error(t,o)},tr.prototype.offset=function(){return this.position.offset},tr.prototype.isEOF=function(){return this.offset()===this.message.length},tr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},tr.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ye(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},tr.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},tr.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))},tr.prototype.bumpIf=function(t){if(He(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},tr.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)},tr.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}},tr.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},tr.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},tr);function tr(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 er(t){return 97<=t&&t<=122||65<=t&&t<=90}function rr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function or(t,e){e=pe({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Je(t,e).parse();if(r.err){t=SyntaxError(ue[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,be(t)||ve(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else ge(t)&&Pe(t.style)||(ye(t)||we(t))&&_e(t.style)?delete t.style.location:Ee(t)&&r(t.children)})}(r.val),r.val}function nr(t,e){var r=e&&e.cache?e.cache:fr,o=e&&e.serializer?e.serializer:lr;return(e&&e.strategy?e.strategy:function(t,e){return ar(t,this,1===t.length?sr:ir,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function sr(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 ir(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 ar(t,e,r,o,n){return r.bind(e,t,o,n)}var lr=function(){return JSON.stringify(arguments)};function cr(){this.cache=Object.create(null)}cr.prototype.has=function(t){return t in this.cache},cr.prototype.get=function(t){return this.cache[t]},cr.prototype.set=function(t,e){this.cache[t]=e};var ur,fr={create:function(){return new cr}},hr={variadic:function(t,e){return ar(t,this,ir,e.cache.create(),e.serializer)},monadic:function(t,e){return ar(t,this,sr,e.cache.create(),e.serializer)}};(Te=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",Te.INVALID_VALUE="INVALID_VALUE",Te.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,gr,yr,wr=(ce(Ar,yr=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),br=(ce(Tr,gr=wr),Tr),vr=(ce(_r,mr=wr),_r),Er=(ce(Pr,dr=wr),Pr);function Pr(t,e){return dr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',ur.MISSING_VALUE,e)||this}function _r(t,e,r){return mr.call(this,'Value for "'+t+'" must be of type '+e,ur.INVALID_VALUE,r)||this}function Tr(t,e,r,o){return gr.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,o)||this}function Ar(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Sr(t,e,r,o,n,s,i){if(1===t.length&&me(t[0]))return[{type:pr.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(me(u))a.push({type:pr.literal,value:u.value});else if(u.type===fe.pound)"number"==typeof s&&a.push({type:pr.literal,value:r.getNumberFormat(e).format(s)});else{var f=u.value;if(!(n&&f in n))throw new Er(f,i);var h=n[f];if(u.type===fe.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?pr.literal:pr.object,value:h});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:pr.literal,value:r.getDateTimeFormat(e,p).format(h)})}else if(we(u))p="string"==typeof u.style?o.time[u.style]:_e(u.style)?u.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(e,p).format(h)});else if(ge(u))(p="string"==typeof u.style?o.number[u.style]:Pe(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(e,p).format(h)});else{if(Ee(u)){var d=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new vr(m,"function",i);d=f(Sr(d,e,r,o,n,s).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?pr.literal:pr.object,value:t}}))}if(be(u)){if(!(g=u.options[h]||u.options.other))throw new br(u.value,h,Object.keys(u.options),i);a.push.apply(a,Sr(g.value,e,r,o,n))}else if(ve(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,i);var d=r.getPluralRules(e,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new br(u.value,h,Object.keys(u.options),i);a.push.apply(a,Sr(g.value,e,r,o,n,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===pr.literal&&e.type===pr.literal?r.value+=e.value:t.push(e),t},[])}function Lr(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}}}}}(Te=pr=pr||{})[Te.literal=0]="literal",Te[Te.object=1]="object";var Nr=(Object.defineProperty(Cr,"defaultLocale",{get:function(){return Cr.memoizedDefaultLocale||(Cr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cr.memoizedDefaultLocale=null,Cr.__parse=or,Cr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Cr);function Cr(t,e,r,o){var n,s,i=this;if(void 0===e&&(e=Cr.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===pr.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 Sr(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,!Cr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cr.__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=Cr.formats,(s=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=s[e])?pe(pe(pe({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=pe(pe({},r[e]),o[e]||{}),t},{})):r),t},pe({},n)):n),this.locales=e,this.formatters=o&&o.formatters||{getNumberFormat:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,de([void 0],e)))},{cache:Lr((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:hr.variadic}),getDateTimeFormat:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,de([void 0],e)))},{cache:Lr(o.dateTime),strategy:hr.variadic}),getPluralRules:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,de([void 0],e)))},{cache:Lr(o.pluralRules),strategy:hr.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,Fr(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 Rr[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 Rr;const Ir=Wt({});function Fr(t){return t in Rr}function Ur(e,...r){delete xr[e],Ir.update(t=>(t[e]=ae.all([t[e]||{},...r]),t))}Qt([Ir],([t])=>Object.keys(t)),Ir.subscribe(t=>Rr=t);const kr={};function Mr(t){return kr[t]}function Dr(t){return Zr(t).some(t=>{return null===(t=Mr(t))||void 0===t?void 0:t.size})}const Gr={};function jr(t){if(!Dr(t))return t in Gr?Gr[t]:void 0;const e=Zr(t).map(t=>{var e=Mr(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){kr[t].delete(e),0===kr[t].size&&delete kr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Ur(e,...t))}(t))).then(()=>Dr(t)?jr(t):void delete Gr[t]),Gr[t]}function Br(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 $r={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Vr=Wt(!1);let zr;const Xr=Wt(null);function Hr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Zr(t,e=$r.fallbackLocale){t=Hr(t);return e?[...new Set([...t,...Hr(e)])]:t}Xr.subscribe(t=>{zr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const qr=Xr.set;Xr.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(Fr(r))return r}}}(e)&&Dr(e)){var{loadingDelay:r}=$r;let t;return"undefined"!=typeof window&&null!=zr&&r?t=window.setTimeout(()=>Vr.set(!0),r):Vr.set(!0),jr(e).then(()=>{qr(e)}).finally(()=>{clearTimeout(t),Vr.set(!1)})}return qr(e)},Xr.update=t=>qr(t(zr));const Yr=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},Kr=(t,e)=>{var{formats:r}=$r;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Wr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Kr("number",r)),new Intl.NumberFormat(e,t)}),Qr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Kr("date",r):0===Object.keys(t).length&&(t=Kr("date","short")),new Intl.DateTimeFormat(e,t)}),Jr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Kr("time",r):0===Object.keys(t).length&&(t=Kr("time","short")),new Intl.DateTimeFormat(e,t)}),to=Yr((t,e=zr)=>new Nr(t,e,$r.formats,{ignoreTag:$r.ignoreTag})),eo=Qt([Xr,Ir],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:o=zr,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 $r.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Zr(o).join('", "')}".${Dr(zr)?"\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=to(s,o).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return i});Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Jr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Qr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Wr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr,Ir],()=>(t,e=zr)=>Or(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==qt.indexOf(t)&&(e=new zt(e),Yt[t]=e,qt.push(t)),Yt[t]}};const ro={en:{forgotPasswordForm:{goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",forgotPasswordEmail:"Email",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"}},tr:{forgotPasswordForm:{goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",forgotPasswordEmail:"E-posta",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",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"}}};function oo(t){let r,o;return{c(){r=e("script"),r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[0])&&tt(r,"src",o),r.async=!0,r.defer=!0},m(t,e){Y(t,r,e)},p(t,e){1&e[0]&&r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[0])&&tt(r,"src",o)},d(t){t&&K(r)}}}function no(r){let o,n,s,i,a,l,c,u,f,h,p,d,m,g,y,w,b,v,E,P,_,T,A,S,L=r[17]("forgotPasswordForm.forgotChangePasswordTitle")+"",N=r[17]("forgotPasswordForm.forgotChangePasswordDescription")+"",C=r[17]("forgotPasswordForm.forgotChangePasswordLogin")+"";return{c(){o=e("div"),n=e("div"),s=e("div"),i=k("svg"),a=k("defs"),l=k("style"),c=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),u=k("g"),f=k("g"),h=k("path"),p=k("g"),d=k("circle"),m=k("circle"),g=Q(),y=e("h4"),w=W(L),b=Q(),v=e("p"),E=W(N),P=Q(),_=e("button"),T=W(C),tt(h,"class","a"),tt(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(h,"transform","translate(264.272 482.563)"),tt(f,"transform","translate(-7360.574 8503.438)"),tt(d,"class","c"),tt(d,"cx","30"),tt(d,"cy","30"),tt(d,"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(_,"class","resetPasswordButton"),tt(n,"class","FormContent"),tt(o,"class","FormLeftSide")},m(t,e){Y(t,o,e),q(o,n),q(n,s),q(s,i),q(i,a),q(a,l),q(l,c),q(i,u),q(u,f),q(f,h),q(u,p),q(p,d),q(p,m),q(s,g),q(s,y),q(y,w),q(s,b),q(s,v),q(v,E),q(n,P),q(n,_),q(_,T),A||(S=J(_,"click",r[38]),A=!0)},p(t,e){131072&e[0]&&L!==(L=t[17]("forgotPasswordForm.forgotChangePasswordTitle")+"")&&et(w,L),131072&e[0]&&N!==(N=t[17]("forgotPasswordForm.forgotChangePasswordDescription")+"")&&et(E,N),131072&e[0]&&C!==(C=t[17]("forgotPasswordForm.forgotChangePasswordLogin")+"")&&et(T,C)},d(t){t&&K(o),A=!1,S()}}}function so(r){let o,n,s,i,a,l,c,u,f,h,p,d,m,g,y,w,b,v,E,P,_,T,A,S,L,N,C,x,O,R,I,F=r[17]("forgotPasswordForm.forgotNewPasswordTitle")+"",U=r[17]("forgotPasswordForm.forgotNewPasswordPassword")+"",k=r[17]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"",M=r[17]("forgotPasswordForm.forgotNewPasswordButton")+"";function D(t){return t[13]?co:lo}let G=D(r),j=G(r),B=r[9]&&uo(r);function $(t){return t[14]?ho:fo}let V=$(r),z=V(r),X=r[10]&&po(r);return{c(){o=e("div"),n=e("div"),s=e("h4"),i=W(F),a=Q(),l=e("div"),c=e("div"),u=e("label"),f=W(U),h=W(":"),p=e("span"),p.textContent="*",d=Q(),m=e("input"),g=Q(),j.c(),y=Q(),B&&B.c(),w=Q(),b=e("div"),v=e("label"),E=W(k),P=W(":"),_=e("span"),_.textContent="*",T=Q(),A=e("input"),S=Q(),z.c(),L=Q(),X&&X.c(),N=Q(),C=e("button"),x=W(M),tt(s,"class","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(p,"class","FormRequired"),tt(u,"for","NewPassword"),tt(m,"type","password"),tt(m,"id","NewPassword"),tt(c,"class","NewPassword"),tt(_,"class","FormRequired"),tt(v,"for","RetypePassword"),tt(A,"type","password"),tt(A,"id","RetypePassword"),tt(b,"class","ConfirmPassword"),tt(C,"class","resetPasswordButton"),C.disabled=O=!r[8],tt(l,"class","FormContent"),tt(o,"class","FormLeftSide test")},m(t,e){Y(t,o,e),q(o,n),q(n,s),q(s,i),q(o,a),q(o,l),q(l,c),q(c,u),q(u,f),q(u,h),q(u,p),q(c,d),q(c,m),rt(m,r[15]),r[30](m),q(c,g),j.m(c,null),q(c,y),B&&B.m(c,null),q(l,w),q(l,b),q(b,v),q(v,E),q(v,P),q(v,_),q(b,T),q(b,A),rt(A,r[16]),r[34](A),q(b,S),z.m(b,null),q(b,L),X&&X.m(b,null),q(l,N),q(l,C),q(C,x),R||(I=[J(m,"input",r[29]),J(m,"blur",function(){Z(r[22](r[9],r[15],r[11]))&&r[22](r[9],r[15],r[11]).apply(this,arguments)}),J(A,"input",r[33]),J(A,"keyup",function(){Z(r[22](r[10],r[16],r[12]))&&r[22](r[10],r[16],r[12]).apply(this,arguments)}),J(C,"click",r[37])],R=!0)},p(t,e){r=t,131072&e[0]&&F!==(F=r[17]("forgotPasswordForm.forgotNewPasswordTitle")+"")&&et(i,F),131072&e[0]&&U!==(U=r[17]("forgotPasswordForm.forgotNewPasswordPassword")+"")&&et(f,U),32768&e[0]&&m.value!==r[15]&&rt(m,r[15]),G===(G=D(r))&&j?j.p(r,e):(j.d(1),j=G(r),j&&(j.c(),j.m(c,y))),r[9]?B?B.p(r,e):(B=uo(r),B.c(),B.m(c,null)):B&&(B.d(1),B=null),131072&e[0]&&k!==(k=r[17]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"")&&et(E,k),65536&e[0]&&A.value!==r[16]&&rt(A,r[16]),V===(V=$(r))&&z?z.p(r,e):(z.d(1),z=V(r),z&&(z.c(),z.m(b,L))),r[10]?X?X.p(r,e):(X=po(r),X.c(),X.m(b,null)):X&&(X.d(1),X=null),131072&e[0]&&M!==(M=r[17]("forgotPasswordForm.forgotNewPasswordButton")+"")&&et(x,M),256&e[0]&&O!==(O=!r[8])&&(C.disabled=O)},d(t){t&&K(o),r[30](null),j.d(),B&&B.d(),r[34](null),z.d(),X&&X.d(),R=!1,H(I)}}}function io(t){let r,o,n,s,i,a,l,c,u,f,h,p,d,m,g,y,w,b,v,E=t[17]("forgotPasswordForm.forgotPasswordSuccess")+"",P=t[17]("forgotPasswordForm.forgotPasswordSuccessDescription")+"";return{c(){r=e("div"),o=e("div"),n=e("div"),s=k("svg"),i=k("defs"),a=k("style"),l=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),c=k("g"),u=k("g"),f=k("path"),h=k("g"),p=k("circle"),d=k("circle"),m=Q(),g=e("h4"),y=W(E),w=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(d,"class","d"),tt(d,"cx","30"),tt(d,"cy","30"),tt(d,"r","29"),tt(h,"class","b"),tt(h,"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(o,"class","FormContent"),tt(r,"class","FormLeftSide")},m(t,e){Y(t,r,e),q(r,o),q(o,n),q(n,s),q(s,i),q(i,a),q(a,l),q(s,c),q(c,u),q(u,f),q(c,h),q(h,p),q(h,d),q(n,m),q(n,g),q(g,y),q(n,w),q(n,b),q(b,v)},p(t,e){131072&e[0]&&E!==(E=t[17]("forgotPasswordForm.forgotPasswordSuccess")+"")&&et(y,E),131072&e[0]&&P!==(P=t[17]("forgotPasswordForm.forgotPasswordSuccessDescription")+"")&&et(v,P)},d(t){t&&K(r)}}}function ao(r){let o,n,s,i,a,l,c,u,f,h,p,d,m,g,y,w,b,v,E,P,_,T,A,S,L,N,C,x,O=r[17]("forgotPasswordForm.goToLogin")+"",R=r[17]("forgotPasswordForm.forgotPasswordTitle")+"",I=r[17]("forgotPasswordForm.forgotPasswordEmail")+"",F=r[17]("forgotPasswordForm.forgotPasswordReset")+"",U=r[2]&&mo(r);return{c(){o=e("div"),n=e("div"),s=e("button"),i=k("svg"),a=k("defs"),l=k("style"),c=W(".a{fill:#d0046c;}"),u=k("path"),f=Q(),h=W(O),p=Q(),d=e("h4"),m=W(R),g=Q(),y=e("div"),w=e("div"),b=e("label"),v=W(I),E=W(":"),P=e("span"),P.textContent="*",_=Q(),T=e("input"),A=Q(),U&&U.c(),S=Q(),L=e("button"),N=W(F),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(d,"class","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(P,"class","FormRequired"),tt(b,"for","ResetPasswordByEmail"),tt(T,"type","text"),tt(T,"id","ResetPasswordByEmail"),tt(w,"class","ResetPasswordByEmail "),tt(L,"class","resetPasswordButton"),tt(y,"class","FormContent"),tt(o,"class","FormLeftSide")},m(t,e){Y(t,o,e),q(o,n),q(n,s),q(s,i),q(i,a),q(a,l),q(l,c),q(i,u),q(s,f),q(s,h),q(n,p),q(n,d),q(d,m),q(o,g),q(o,y),q(y,w),q(w,b),q(b,v),q(b,E),q(b,P),q(w,_),q(w,T),rt(T,r[4]),q(w,A),U&&U.m(w,null),q(y,S),q(y,L),q(L,N),C||(x=[J(s,"click",r[26]),J(T,"input",r[27]),J(L,"click",r[28])],C=!0)},p(t,e){131072&e[0]&&O!==(O=t[17]("forgotPasswordForm.goToLogin")+"")&&et(h,O),131072&e[0]&&R!==(R=t[17]("forgotPasswordForm.forgotPasswordTitle")+"")&&et(m,R),131072&e[0]&&I!==(I=t[17]("forgotPasswordForm.forgotPasswordEmail")+"")&&et(v,I),16&e[0]&&T.value!==t[4]&&rt(T,t[4]),t[2]?U?U.p(t,e):(U=mo(t),U.c(),U.m(w,null)):U&&(U.d(1),U=null),131072&e[0]&&F!==(F=t[17]("forgotPasswordForm.forgotPasswordReset")+"")&&et(N,F)},d(t){t&&K(o),U&&U.d(),C=!1,H(x)}}}function lo(r){let o,n,s,i,a,l,c,u,f,h;return{c(){o=k("svg"),n=k("defs"),s=k("style"),i=W(".a{fill:#fff;}"),a=k("g"),l=k("path"),c=k("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[9]?"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),q(o,n),q(n,s),q(s,i),q(o,a),q(a,l),q(a,c),f||(h=J(o,"click",r[32]),f=!0)},p(t,e){512&e[0]&&u!==(u="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,h()}}}function co(r){let o,n,s,i,a,l,c,u,f,h,p,d,m,g,y,w;return{c(){o=k("svg"),n=k("defs"),s=k("style"),i=W(".a{fill:#fff;}"),a=k("g"),l=k("circle"),c=k("g"),u=k("path"),f=k("path"),h=k("g"),p=k("path"),d=k("path"),m=k("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(d,"class","a"),tt(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"),tt(d,"transform","translate(-130.743 -29.617)"),tt(h,"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[9]?"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),q(o,n),q(n,s),q(s,i),q(o,a),q(a,l),q(a,c),q(c,u),q(c,f),q(a,h),q(h,p),q(h,d),q(a,m),y||(w=J(o,"click",r[31]),y=!0)},p(t,e){512&e[0]&&g!==(g="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),y=!1,w()}}}function uo(t){let r,o,n=t[17]("forgotPasswordForm.forgotNewPasswordPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotNewPasswordPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function fo(r){let o,n,s,i,a,l,c,u,f,h;return{c(){o=k("svg"),n=k("defs"),s=k("style"),i=W(".a{fill:#fff;}"),a=k("g"),l=k("path"),c=k("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[10]?"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),q(o,n),q(n,s),q(s,i),q(o,a),q(a,l),q(a,c),f||(h=J(o,"click",r[36]),f=!0)},p(t,e){1024&e[0]&&u!==(u="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,h()}}}function ho(r){let o,n,s,i,a,l,c,u,f,h,p,d,m,g,y,w;return{c(){o=k("svg"),n=k("defs"),s=k("style"),i=W(".a{fill:#fff;}"),a=k("g"),l=k("circle"),c=k("g"),u=k("path"),f=k("path"),h=k("g"),p=k("path"),d=k("path"),m=k("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(d,"class","a"),tt(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"),tt(d,"transform","translate(-130.743 -29.617)"),tt(h,"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[10]?"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),q(o,n),q(n,s),q(s,i),q(o,a),q(a,l),q(a,c),q(c,u),q(c,f),q(a,h),q(h,p),q(h,d),q(a,m),y||(w=J(o,"click",r[35]),y=!0)},p(t,e){1024&e[0]&&g!==(g="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),y=!1,w()}}}function po(t){let r,o,n=t[17]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function mo(t){let r,o,n=t[17]("forgotPasswordForm.forgotPasswordEmailError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","ForgotPasswordError")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotPasswordEmailError")+"")&&et(o,n)},d(t){t&&K(r)}}}function go(){let r;return{c(){r=e("div"),tt(r,"class","FormRightSide"),r.style.setProperty("background","url('https://storage.googleapis.com/stateless-winmasters-one/2021/03/908d327e-em_welcome_promo.jpg') no-repeat","")},m(t,e){Y(t,r,e)},d(t){t&&K(r)}}}function yo(t){let r,o,n,s,i,a=t[0]&&oo(t),l=function(t){let r,o;function n(t){return t[1]?ao:t[3]?io:t[5]?so:t[6]?no:void 0}let s=n(t),i=s&&s(t),a=!t[7]&&go();return{c(){r=e("div"),i&&i.c(),o=Q(),a&&a.c(),tt(r,"class","FormContainer")},m(t,e){Y(t,r,e),i&&i.m(r,null),q(r,o),a&&a.m(r,null)},p(t,e){s===(s=n(t))&&i?i.p(t,e):(i&&i.d(1),i=s&&s(t),i&&(i.c(),i.m(r,o))),t[7]?a&&(a.d(1),a=null):a||(a=go(),a.c(),a.m(r,null))},d(t){t&&K(r),i&&i.d(),a&&a.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[0])},m(t,e){a&&a.m(document.head,null),q(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[0]?a?a.p(t,e):(a=oo(t),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),1&e[0]&&tt(n,"data-sitekey",t[0]),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 wo(e,t,o){let r;var n=eo;e.$$.on_destroy.push(F(n,t=>o(17,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,{captchakey:u=""}=t,{lang:f=""}=t,h=!0,p=!1,d=!1,m="",g=!1,y=!1,w=!1,b=window.navigator.userAgent,v,E=!1,P=!1,_=!1,T=!1,A="",S="";Object.keys(ro).forEach(t=>{Ur(t,ro[t])});const L={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},N=t=>{switch(t){case"userNewPassword":o(13,_=!_),o(11,i.type=_?"text":"password",i);break;case"userConfirmPassword":o(14,T=!T),o(12,a.type=T?"text":"password",a)}},C=t=>{switch(t){case"ToEmailSuccess":o(2,p=!1),o(1,h=!1),o(3,d=!0);break;case"ToReset":o(1,h=!1),o(5,g=!0);break;case"ToSuccess":o(5,g=!1),o(6,y=!0)}},x=()=>{window.postMessage({type:"ToLogin"},window.location.href)},O=()=>{new Promise((e,t)=>{grecaptcha.ready(()=>{grecaptcha.execute(u,{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",m),fetch(e,r).then(t=>{200==t.status?C("ToEmailSuccess"):o(2,p=!0)})})},R=()=>{var t=new URL(`${l}/player/ResetPasswordByHashKey`),e={hashKey:c,plainTextPassword:A},e={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t,e).then(t=>{200==t.status&&C("ToSuccess")})},I=t=>!!L.password.test(t);return t=()=>s(void 0,void 0,void 0,function*(){var t;((t=b).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(7,w=!0)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(t),e.$$set=t=>{"endpoint"in t&&o(23,l=t.endpoint),"forgotpasswordkey"in t&&o(24,c=t.forgotpasswordkey),"captchakey"in t&&o(0,u=t.captchakey),"lang"in t&&o(25,f=t.lang)},e.$$.update=()=>{var t;16777216&e.$$.dirty[0]&&c&&c&&0<c.length&&C("ToReset"),33554432&e.$$.dirty[0]&&f&&(t=f,Xr.set(t))},[u,h,p,d,m,g,y,w,!1,E,P,i,a,_,T,A,S,r,N,x,O,R,(t,e,r)=>{"NewPassword"===r.id?(o(9,E=!I(e)),S&&o(10,P=A!==S||!I(e))):o(10,P=A!==S||!I(e)),o(8,v=!(E||P||!A||!S))},l,c,f,()=>x(),function(){m=this.value,o(4,m)},()=>O(),function(){A=this.value,o(15,A)},function(t){M[t?"unshift":"push"](()=>{i=t,o(11,i)})},()=>N("userNewPassword"),()=>N("userNewPassword"),function(){S=this.value,o(16,S)},function(t){M[t?"unshift":"push"](()=>{a=t,o(12,a)})},()=>N("userConfirmPassword"),()=>N("userConfirmPassword"),()=>R(),()=>x()]}class bo extends a{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:#07072A;height:24px !important;line-height:24px;border-radius:5px;border:none;background:transparent;height:60px;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:#F9F8F8}.FormHeaderTitle{color:#000000;font-size:28px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormRequired{color:#FD2839}.ForgotPasswordError{color:#FD2839;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:#16CE16;font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:#000;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:#D0046C}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:#58586B}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:#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 #D1D1D1;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 #D0046C;background:#FBECF4;color:#D0046C}.resetPasswordButton{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.resetPasswordButton[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.InvalidInput{color:#FD2839;font-size:10px;position:absolute;bottom:10px;line-height:10px}.FormLeftSide{padding:40px 20px;height:460px}.FormMobileContainer .ResetPasswordByEmail input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}</style>",i(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},wo,yo,r,{endpoint:23,forgotpasswordkey:24,captchakey:0,lang:25},[-1,-1]),t&&(t.target&&Y(t.target,this,t.anchor),t.props&&(this.$set(t.props),b()))}static get observedAttributes(){return["endpoint","forgotpasswordkey","captchakey","lang"]}get endpoint(){return this.$$.ctx[23]}set endpoint(t){this.$set({endpoint:t}),b()}get forgotpasswordkey(){return this.$$.ctx[24]}set forgotpasswordkey(t){this.$set({forgotpasswordkey:t}),b()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$set({captchakey:t}),b()}get lang(){return this.$$.ctx[25]}set lang(t){this.$set({lang:t}),b()}}return customElements.get("general-player-forgot-password-form")||customElements.define("general-player-forgot-password-form",bo),bo});
2
2
  //# sourceMappingURL=general-player-forgot-password-form.js.map