@everymatrix/general-player-register-form 0.0.192 → 0.0.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function ve(){}function p(e){return e()}function d(){return Object.create(null)}function we(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Ee(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function _e(e){e.parentNode.removeChild(e)}function t(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Te(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xe(e){return document.createTextNode(e)}function Se(){return xe(" ")}function U(){return xe("")}function Ae(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Pe(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function i(e,t,r){t in e?e[t]=r:Pe(e,t,r)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Re(e,t){e.value=null==t?"":t}function m(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function Ie(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}function O(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let f;function g(e){f=e}function D(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const y=[],I=[],o=[],s=[],b=Promise.resolve();let v=!1;function Le(e){o.push(e)}let a=!1;const l=new Set;function w(){if(!a){a=!0;do{for(let e=0;e<y.length;e+=1){var t=y[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),we(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Le))}}(t.$$)}for(g(null),y.length=0;I.length;)I.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];l.has(r)||(l.add(r),r())}}while(o.length=0,y.length);for(;s.length;)s.pop()();v=!1,a=!1,l.clear()}}const E=new Set;function c(n,e,t,r,i,o,s=[-1]){var a,l=f;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:ve,not_equal:i,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:d(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(y.push(e),v||(v=!0,b.then(w)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,we(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const ve=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(ve),ve.forEach(_e)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(E.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||Le(()=>{var e=o.map(p).filter(h);s?s.push(...e):we(e),t.$$.on_mount=[]}),a.forEach(Le)}(n,e.target,e.anchor,e.customElement),w()}g(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){we(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(we(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=ve}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var _,T,x="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==x&&x,S="URLSearchParams"in x,A="Symbol"in x&&"iterator"in Symbol,P="FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(e){return!1}}(),R="FormData"in x,L="ArrayBuffer"in x;function k(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function N(e){return e="string"!=typeof e?String(e):e}function M(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function B(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function G(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function $(e){var t=new FileReader,r=G(t);return t.readAsArrayBuffer(e),r}function j(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:P&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:R&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:S&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():L&&P&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=j(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):L&&(ArrayBuffer.prototype.isPrototypeOf(e)||T(e))?this._bodyArrayBuffer=j(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P&&(this.blob=function(){var e=B(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?B(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($)}),this.text=function(){var e,t,r=B(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=G(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},R&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}L&&(_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],T=ArrayBuffer.isView||function(e){return e&&-1<_.indexOf(Object.prototype.toString.call(e))}),F.prototype.append=function(e,t){e=k(e),t=N(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},F.prototype.delete=function(e){delete this.map[k(e)]},F.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},F.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},F.prototype.set=function(e,t){this.map[k(e)]=N(t)},F.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},F.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),M(r)},F.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),M(t)},F.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),M(r)},A&&(F.prototype[Symbol.iterator]=F.prototype.entries);var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function V(e,t){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof V){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new F(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new F(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<H.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function q(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function X(e,t){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new F(t.headers),this.url=t.url||"",this._initBody(e)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})},z.call(V.prototype),z.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},X.error=function(){var e=new X(null,{status:0,statusText:""});return e.type="error",e};var Z=[301,302,303,307,308];X.redirect=function(e,t){if(-1===Z.indexOf(t))throw new RangeError("Invalid status code");return new X(null,{status:t,headers:{location:e}})};var Y=x.DOMException;try{new Y}catch(ve){(Y=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Y.prototype.constructor=Y}function W(n,s){return new Promise(function(i,e){var t=new V(n,s);if(t.signal&&t.signal.aborted)return e(new Y("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new F,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new X(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Y("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&x.location.href?x.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(P?o.responseType="blob":L&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof F?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,N(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}W.polyfill=!0,x.fetch||(x.fetch=W,x.Headers=F,x.Request=V,x.Response=X),self.fetch.bind(self);var Q=function(e,t){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function J(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function te(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function re(e){return"function"==typeof e}function ne(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var ie=ne(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function oe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var se=(le.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=J(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(re(o))try{o()}catch(e){i=e instanceof ie?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=J(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{ue(u)}catch(e){i=null!=i?i:[],e instanceof ie?i=te(te([],ee(i)),ee(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new ie(i)}},le.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ue(e);else{if(e instanceof le){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},le.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},le.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},le.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&oe(t,e)},le.prototype.remove=function(e){var t=this._teardowns;t&&oe(t,e),e instanceof le&&e._removeParent(this)},le.EMPTY=((Vt=new le).closed=!0,Vt),le),ae=se.EMPTY;function le(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ce(e){return e instanceof se||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function ue(e){re(e)?e():e.unsubscribe()}var pe=void 0,de=!1,he=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,te([],ee(e)))};function fe(){}function me(e){e()}var ge,ye,be=(K(ke,ye=se),ke.create=function(e,t,r){return new Oe(e,t,r)},ke.prototype.next=function(e){this.isStopped||this._next(e)},ke.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ke.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ke.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ye.prototype.unsubscribe.call(this),this.destination=null)},ke.prototype._next=function(e){this.destination.next(e)},ke.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ke.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ke),Oe=(K(De,ge=be),De);function De(e,t,r){var n,i,o=ge.call(this)||this;return re(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&de?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Ne(i):fe,error:Ne(null!=t?t:Me),complete:r?Ne(r):fe},o}function ke(e){var t=ye.call(this)||this;return t.isStopped=!1,e?ce(t.destination=e)&&e.add(t):t.destination=Fe,t}function Ne(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,te([],ee(e)))}catch(e){t=e,he(function(){throw t})}}}function Me(e){throw e}var Fe={closed:!0,next:fe,error:Me,complete:fe},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function Be(e){return e}var Ge=($e.prototype.lift=function(e){var t=new $e;return t.source=this,t.operator=e,t},$e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof be||n&&re(n.next)&&re(n.error)&&re(n.complete)&&ce(n)?e:new Oe(e,t,r);return me(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},$e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},$e.prototype.forEach=function(n,e){var i=this;return new(e=je(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},$e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},$e.prototype[Ue]=function(){return this},$e.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Be:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},$e.prototype.toPromise=function(e){var n=this;return new(e=je(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},$e.create=function(e){return new $e(e)},$e);function $e(e){e&&(this._subscribe=e)}function je(e){return null!==(e=null!=e?e:pe)&&void 0!==e?e:Promise}var ze,He,Ve,qe=ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=(K(Je,Ve=Ge),Je.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},Je.prototype._throwIfClosed=function(){if(this.closed)throw new qe},Je.prototype.next=function(o){var s=this;me(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=J(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Je.prototype.error=function(t){var r=this;me(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Je.prototype.complete=function(){var t=this;me(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Je.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Je.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Je.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},Je.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Je.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ae:(n.push(e),new se(function(){return oe(n,e)}))},Je.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Je.prototype.asObservable=function(){var e=new Ge;return e.source=this,e},Je.create=function(e,t){return new Ze(e,t)},Je),Ze=(K(Ke,He=Xe),Ke.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Ke.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Ke.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Ke.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ae},Ke),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},We=(K(Qe,ze=Xe),Qe.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),ze.prototype.next.call(this,e)},Qe.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Qe.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},Qe);function Qe(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ye);var n=ze.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Ke(e,t){var r=He.call(this)||this;return r.destination=e,r.source=t,r}function Je(){var e=Ve.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let et=[],tt={};const rt=[];function nt(n,i=ve){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!rt.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),rt.push(t,n)}if(e){for(let e=0;e<rt.length;e+=2)rt[e][0](rt[e+1]);rt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=ve){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||ve),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function it(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return nt(t,t=>{let n=!1;const i=[];let o=0,r=ve;const s=()=>{var e;o||(r(),e=a(l?i[0]:i,t),u?t(e):r=h(e)?e:ve)},e=c.map((r,t)=>function(e){if(null==r)return ve;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{i[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}]));return n=!0,s(),function(){we(e),r()}}).subscribe,1}var ot=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var t},st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function at(e,t){return!1!==t.clone&&t.isMergeableObject(e)?dt(Array.isArray(e)?[]:{},e,t):e}function lt(e,t,r){return e.concat(t).map(function(e){return at(e,r)})}function ct(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ut(e,t){try{return t in e}catch(e){return!1}}function pt(n,i,o){var s={};return o.isMergeableObject(n)&&ct(n).forEach(function(e){s[e]=at(n[e],o)}),ct(i).forEach(function(t){var e,r;(!ut(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ut(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return dt;var e=o.customMerge(t);return"function"==typeof e?e:dt}()(n[t],i[t],o):s[t]=at(i[t],o))}),s}function dt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||lt,r.isMergeableObject=r.isMergeableObject||ot,r.cloneUnlessOtherwiseSpecified=at;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):pt(e,t,r):at(t,r)}dt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return dt(e,t,r)},{})};var ht=dt,ft=function(e,t){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var gt,yt,bt,vt=function(){return(vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function wt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function Et(e){return e.type===yt.literal}function Ct(e){return e.type===yt.number}function _t(e){return e.type===yt.date}function Tt(e){return e.type===yt.time}function xt(e){return e.type===yt.select}function St(e){return e.type===yt.plural}function At(e){return e.type===yt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===bt.number}function Rt(e){return e&&"object"==typeof e&&e.type===bt.dateTime}(qt=gt=gt||{})[qt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",qt[qt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",qt[qt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",qt[qt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",qt[qt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",qt[qt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",qt[qt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",qt[qt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",qt[qt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",qt[qt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",qt[qt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",qt[qt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",qt[qt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",qt[qt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",qt[qt.INVALID_TAG=23]="INVALID_TAG",qt[qt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",qt[qt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",qt[qt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Xt=yt=yt||{})[Xt.literal=0]="literal",Xt[Xt.argument=1]="argument",Xt[Xt.number=2]="number",Xt[Xt.date=3]="date",Xt[Xt.time=4]="time",Xt[Xt.select=5]="select",Xt[Xt.plural=6]="plural",Xt[Xt.pound=7]="pound",Xt[Xt.tag=8]="tag",(Zt=bt=bt||{})[Zt.number=0]="number",Zt[Zt.dateTime=1]="dateTime";var It=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Lt=/(?:[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 Ot,Dt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Nt=/^(@+)?(\+|#+)?$/g,Mt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ft=/^(0+)$/;function Ut(e){var n={};return e.replace(Nt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Bt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Gt(e){return Bt(e)||{}}function $t(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=vt(vt(vt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return vt(vt({},e),Gt(t))},{}));continue;case"engineering":s=vt(vt(vt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return vt(vt({},e),Gt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Mt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ft.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(kt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(kt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=vt(vt({},s),Ut(i.options[0])))}else Nt.test(i.stem)?s=vt(vt({},s),Ut(i.stem)):((n=Bt(i.stem))&&(s=vt(vt({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ft.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=vt(vt({},s),n)))}return s}var jt=new RegExp("^"+It.source+"*"),zt=new RegExp(It.source+"*$");function Ht(e,t){return{start:e,end:t}}var Vt=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Xe=!!Object.fromEntries,qt=!!String.prototype.codePointAt,Xt=!!String.prototype.trimStart,Zt=!!String.prototype.trimEnd,Yt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},It=!0;try{It="a"===(null===(Ot=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ot?void 0:Ot[0])}catch(ve){It=!1}var Wt,Qt,Kt=Vt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Jt=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},er=Xe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},tr=qt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},rr=Xt?function(e){return e.trimStart()}:function(e){return e.replace(jt,"")},nr=Zt?function(e){return e.trimEnd()}:function(e){return e.replace(zt,"")};function ir(e,t){return new RegExp(e,t)}Qt=It?(Wt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Wt.lastIndex=t,null!==(e=Wt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=tr(e,t);if(void 0===i||lr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Jt.apply(void 0,n)};var or=(sr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},sr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(gt.UNMATCHED_CLOSING_TAG,Ht(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ar(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:yt.pound,location:Ht(o,this.clonePosition())})}}}return{val:n,err:null}},sr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:yt.literal,value:"<"+n+"/>",location:Ht(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(gt.INVALID_TAG,Ht(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(gt.UNMATCHED_CLOSING_TAG,Ht(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:yt.tag,value:n,children:e,location:Ht(r,this.clonePosition())},err:null}:this.error(gt.INVALID_TAG,Ht(t,this.clonePosition())))}return this.error(gt.UNCLOSED_TAG,Ht(r,this.clonePosition()))}return this.error(gt.INVALID_TAG,Ht(r,this.clonePosition()))},sr.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},sr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Ht(r,this.clonePosition());return{val:{type:yt.literal,value:n,location:r},err:null}},sr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ar(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},sr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Jt.apply(void 0,t)},sr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Jt(r))},sr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(gt.EMPTY_ARGUMENT,Ht(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(gt.MALFORMED_ARGUMENT,Ht(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:yt.argument,value:n,location:Ht(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(gt.MALFORMED_ARGUMENT,Ht(r,this.clonePosition()))}},sr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Qt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ht(e,this.clonePosition())}},sr.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(gt.EXPECT_ARGUMENT_TYPE,Ht(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=nr(d.val)).length)return this.error(gt.EXPECT_ARGUMENT_STYLE,Ht(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Ht(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var u=Ht(n,this.clonePosition());if(l&&Kt(null==l?void 0:l.style,"::",0)){c=rr(l.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?d:{val:{type:yt.number,value:r,location:u,style:d.val},err:null};if(0===c.length)return this.error(gt.EXPECT_DATE_TIME_SKELETON,u);var p={type:bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Lt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===s?yt.date:yt.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?yt.number:"date"===s?yt.date:yt.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(gt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ht(l,vt({},l)));this.bumpSpace();var d,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ht(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=d.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((h=this.tryParseArgumentClose(n)).err)return h;var h=Ht(n,this.clonePosition());return"select"===s?{val:{type:yt.select,value:r,options:er(u.val),location:h},err:null}:{val:{type:yt.plural,value:r,options:er(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(gt.INVALID_ARGUMENT_TYPE,Ht(o,a))}},sr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},sr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ht(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},sr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Dt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(gt.INVALID_NUMBER_SKELETON,t)}return{val:{type:bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?$t(r):{}},err:null}},sr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,gt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ht(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ht(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;o.push([a,{value:u.val,location:Ht(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===o.length?this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ht(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(gt.MISSING_OTHER_CLAUSE,Ht(this.clonePosition(),this.clonePosition())):{val:o,err:null}},sr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=Ht(n,this.clonePosition());return i?Yt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},sr.prototype.offset=function(){return this.position.offset},sr.prototype.isEOF=function(){return this.offset()===this.message.length},sr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},sr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},sr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},sr.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},sr.prototype.bumpIf=function(e){if(Kt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},sr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},sr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},sr.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},sr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},sr);function sr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ar(e){return 97<=e&&e<=122||65<=e&&e<=90}function lr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function cr(e,t){t=vt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new or(e,t).parse();if(r.err){e=SyntaxError(gt[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,xt(e)||St(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ct(e)&&Pt(e.style)||(_t(e)||Tt(e))&&Rt(e.style)?delete e.style.location:At(e)&&r(e.children)})}(r.val),r.val}function ur(e,t){var r=t&&t.cache?t.cache:yr,n=t&&t.serializer?t.serializer:fr;return(t&&t.strategy?t.strategy:function(e,t){return hr(e,this,1===e.length?pr:dr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function pr(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function hr(e,t,r,n,i){return r.bind(t,e,n,i)}var fr=function(){return JSON.stringify(arguments)};function mr(){this.cache=Object.create(null)}mr.prototype.has=function(e){return e in this.cache},mr.prototype.get=function(e){return this.cache[e]},mr.prototype.set=function(e,t){this.cache[e]=t};var gr,yr={create:function(){return new mr}},br={variadic:function(e,t){return hr(e,this,dr,t.cache.create(),t.serializer)},monadic:function(e,t){return hr(e,this,pr,t.cache.create(),t.serializer)}};(It=gr=gr||{}).MISSING_VALUE="MISSING_VALUE",It.INVALID_VALUE="INVALID_VALUE",It.MISSING_INTL_API="MISSING_INTL_API";var vr,wr,Er,Cr,_r,Tr=(mt(Lr,_r=Error),Lr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Lr),xr=(mt(Ir,Cr=Tr),Ir),Sr=(mt(Rr,Er=Tr),Rr),Ar=(mt(Pr,wr=Tr),Pr);function Pr(e,t){return wr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',gr.MISSING_VALUE,t)||this}function Rr(e,t,r){return Er.call(this,'Value for "'+e+'" must be of type '+t,gr.INVALID_VALUE,r)||this}function Ir(e,t,r,n){return Cr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',gr.INVALID_VALUE,n)||this}function Lr(e,t,r){e=_r.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Or(e,t,r,n,i,o,s){if(1===e.length&&Et(e[0]))return[{type:vr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Et(u))a.push({type:vr.literal,value:u.value});else if(u.type===yt.pound)"number"==typeof o&&a.push({type:vr.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!(i&&p in i))throw new Ar(p,s);var d=i[p];if(u.type===yt.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?vr.literal:vr.object,value:d});else if(_t(u)){var h="string"==typeof u.style?n.date[u.style]:Rt(u.style)?u.style.parsedOptions:void 0;a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(Tt(u))h="string"==typeof u.style?n.time[u.style]:Rt(u.style)?u.style.parsedOptions:void 0,a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)});else if(Ct(u))(h="string"==typeof u.style?n.number[u.style]:Pt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:vr.literal,value:r.getNumberFormat(t,h).format(d)});else{if(At(u)){var f=u.children,m=u.value,p=i[m];if("function"!=typeof p)throw new Sr(m,"function",s);f=p(Or(f,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?vr.literal:vr.object,value:e}}))}if(xt(u)){if(!(g=u.options[d]||u.options.other))throw new xr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i))}else if(St(u)){if(!(g=u.options["="+d])){if(!Intl.PluralRules)throw new Tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new xr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i,d-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===vr.literal&&t.type===vr.literal?r.value+=t.value:e.push(t),e},[])}function Dr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(It=vr=vr||{})[It.literal=0]="literal",It[It.object=1]="object";var kr=(Object.defineProperty(Nr,"defaultLocale",{get:function(){return Nr.memoizedDefaultLocale||(Nr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nr.memoizedDefaultLocale=null,Nr.__parse=cr,Nr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Nr);function Nr(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Nr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===vr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Or(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Nr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Nr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?vt(vt(vt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=vt(vt({},r[t]),n[t]||{}),e},{})):r),e},vt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,wt([void 0],t)))},{cache:Dr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:br.variadic}),getDateTimeFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,wt([void 0],t)))},{cache:Dr(n.dateTime),strategy:br.variadic}),getPluralRules:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,wt([void 0],t)))},{cache:Dr(n.pluralRules),strategy:br.variadic})}}const Mr={},Fr=(t,r)=>{if(null!=r){if(r in Mr&&t in Mr[r])return Mr[r][t];var n,i,o=Kr(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,Gr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in Mr||(Mr[i]={}),n in Mr[i]||(Mr[i][n]=s),s)}}};let Ur;const Br=nt({});function Gr(e){return e in Ur}it([Br],([e])=>Object.keys(e)),Br.subscribe(e=>Ur=e);const $r={};function jr(e){return $r[e]}function zr(e){return Kr(e).some(e=>{return null===(e=jr(e))||void 0===e?void 0:e.size})}function Hr(t,e){return Promise.all(e.map(e=>(function(e,t){$r[e].delete(t),0===$r[e].size&&delete $r[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete Mr[t],Br.update(e=>(e[t]=ht.all([e[t]||{},...r]),e))}(t,...e))}const Vr={};function qr(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Xr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zr=nt(!1);let Yr;const Wr=nt(null);function Qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=Xr.fallbackLocale){e=Qr(e);return t?[...new Set([...e,...Qr(t)])]:e}Wr.subscribe(e=>{Yr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Jr=Wr.set;Wr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Gr(r))return r}}}(t)&&zr(t)){var{loadingDelay:r}=Xr;let e;return"undefined"!=typeof window&&null!=Yr&&r?e=window.setTimeout(()=>Zr.set(!0),r):Zr.set(!0),function e(t){if(!zr(t))return t in Vr?Vr[t]:void 0;const r=Kr(t).map(e=>{var t=jr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vr[t]=Promise.all(r.map(([e,t])=>Hr(e,t))).then(()=>zr(t)?e(t):void delete Vr[t]),Vr[t]}(t).then(()=>{Jr(t)}).finally(()=>{clearTimeout(e),Zr.set(!1)})}return Jr(t)},Wr.update=e=>Jr(e(Yr));const en=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},tn=(e,t)=>{var{formats:r}=Xr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},rn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=tn("number",r)),new Intl.NumberFormat(t,e)}),nn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=tn("date",r):0===Object.keys(e).length&&(e=tn("date","short")),new Intl.DateTimeFormat(t,e)}),on=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=tn("time",r):0===Object.keys(e).length&&(e=tn("time","short")),new Intl.DateTimeFormat(t,e)}),sn=en((e,t=Yr)=>new kr(e,t,Xr.formats,{ignoreTag:Xr.ignoreTag}));function an(){let r;return{c(){r=Te("p"),r.textContent="Email should contain '@' and a 2-3 letter long domain.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function ln(){let r;return{c(){r=Te("p"),r.textContent="Name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function cn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Pe(l,"class","a"),Pe(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"),Pe(l,"transform","translate(0)"),Pe(c,"class","a"),Pe(c,"cx","2.779"),Pe(c,"cy","2.779"),Pe(c,"r","2.779"),Pe(c,"transform","translate(20.827 30.303)"),Pe(a,"transform","translate(-14.185 -27.832)"),Pe(n,"class","TogglePasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.843"),Pe(n,"height","10.5"),Pe(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),u||(p=Ae(n,"click",r[35]),u=!0)},p:ve,d(e){e&&_e(n),u=!1,p()}}}function un(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Pe(l,"class","a"),Pe(l,"cx","0.05"),Pe(l,"cy","0.05"),Pe(l,"r","0.05"),Pe(l,"transform","translate(121.017 31.148)"),Pe(u,"class","a"),Pe(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Pe(u,"transform","translate(-142.164 -39.123)"),Pe(p,"class","a"),Pe(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Pe(p,"transform","translate(-136.413 -42.068)"),Pe(c,"transform","translate(117.499 27.37)"),Pe(h,"class","a"),Pe(h,"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"),Pe(h,"transform","translate(-110.856 -33.157)"),Pe(f,"class","a"),Pe(f,"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"),Pe(f,"transform","translate(-130.743 -29.617)"),Pe(d,"transform","translate(110.856 24.899)"),Pe(m,"class","a"),Pe(m,"width","0.972"),Pe(m,"height","15.861"),Pe(m,"rx","0.486"),Pe(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Pe(a,"transform","translate(-110.856 -23.242)"),Pe(n,"class","TogglePasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.844"),Pe(n,"height","12.887"),Pe(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),Ee(c,u),Ee(c,p),Ee(a,d),Ee(d,h),Ee(d,f),Ee(a,m),g||(y=Ae(n,"click",r[34]),g=!0)},p:ve,d(e){e&&_e(n),g=!1,y()}}}function pn(){let r;return{c(){r=Te("p"),r.textContent="Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function dn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Pe(l,"class","a"),Pe(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"),Pe(l,"transform","translate(0)"),Pe(c,"class","a"),Pe(c,"cx","2.779"),Pe(c,"cy","2.779"),Pe(c,"r","2.779"),Pe(c,"transform","translate(20.827 30.303)"),Pe(a,"transform","translate(-14.185 -27.832)"),Pe(n,"class","ToggleConfirmPasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.843"),Pe(n,"height","10.5"),Pe(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),u||(p=Ae(n,"click",r[39]),u=!0)},p:ve,d(e){e&&_e(n),u=!1,p()}}}function hn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Pe(l,"class","a"),Pe(l,"cx","0.05"),Pe(l,"cy","0.05"),Pe(l,"r","0.05"),Pe(l,"transform","translate(121.017 31.148)"),Pe(u,"class","a"),Pe(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Pe(u,"transform","translate(-142.164 -39.123)"),Pe(p,"class","a"),Pe(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Pe(p,"transform","translate(-136.413 -42.068)"),Pe(c,"transform","translate(117.499 27.37)"),Pe(h,"class","a"),Pe(h,"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"),Pe(h,"transform","translate(-110.856 -33.157)"),Pe(f,"class","a"),Pe(f,"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"),Pe(f,"transform","translate(-130.743 -29.617)"),Pe(d,"transform","translate(110.856 24.899)"),Pe(m,"class","a"),Pe(m,"width","0.972"),Pe(m,"height","15.861"),Pe(m,"rx","0.486"),Pe(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Pe(a,"transform","translate(-110.856 -23.242)"),Pe(n,"class","ToggleConfirmPasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.844"),Pe(n,"height","12.887"),Pe(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),Ee(c,u),Ee(c,p),Ee(a,d),Ee(d,h),Ee(d,f),Ee(a,m),g||(y=Ae(n,"click",r[38]),g=!0)},p:ve,d(e){e&&_e(n),g=!1,y()}}}function fn(){let r;return{c(){r=Te("p"),r.textContent="Do not match with password.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function mn(){let r;return{c(){r=Te("p"),r.textContent="Security question must be at least 1 character long and maximum 120 characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function gn(){let r;return{c(){r=Te("p"),r.textContent="Security answer must be at least 1 character long and maximum 120 characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function yn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F,U,B,G,$,j,z,H,V,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se=r[0]&&an(),ae=r[1]&&ln();function le(e){return e[12]?un:cn}let ce=le(r),ue=ce(r),pe=r[2]&&pn();function de(e){return e[13]?hn:dn}let he=de(r),fe=he(r),me=r[3]&&fn(),ge=r[4]&&mn(),ye=r[5]&&gn();return{c(){n=Te("div"),i=Te("h2"),i.textContent="Create your account",o=Se(),s=Te("p"),a=xe("Already have an account? "),l=Te("span"),l.textContent="Login",c=Se(),u=Te("div"),p=Te("div"),d=Te("label"),d.innerHTML='Email:<span class="FormRequired">*</span>',h=Se(),f=Te("input"),m=Se(),se&&se.c(),y=Se(),b=Te("div"),v=Te("label"),v.innerHTML='Username:<span class="FormRequired">*</span>',w=Se(),E=Te("input"),C=Se(),ae&&ae.c(),T=Se(),x=Te("div"),S=Te("label"),S.innerHTML='Password:<span class="FormRequired">*</span>',A=Se(),P=Te("input"),R=Se(),ue.c(),I=Se(),pe&&pe.c(),O=Se(),D=Te("div"),k=Te("label"),k.innerHTML='Confirm Password:<span class="FormRequired">*</span>',N=Se(),M=Te("input"),F=Se(),fe.c(),U=Se(),me&&me.c(),G=Se(),$=Te("div"),j=Te("label"),j.innerHTML='Security Question:<span class="FormRequired">*</span>',z=Se(),H=Te("input"),V=Se(),ge&&ge.c(),X=Se(),Z=Te("div"),Y=Te("label"),Y.innerHTML='Security Answer:<span class="FormRequired">*</span>',W=Se(),Q=Te("input"),K=Se(),ye&&ye.c(),ee=Se(),te=Te("button"),re=xe("Next"),this.c=ve,Pe(i,"class","RegisterFormTitle"),Pe(l,"class","FormLoginCallToAction"),Pe(s,"class","RegisterFormSubtitle"),Pe(n,"class","RegisterFormHeader"),Pe(d,"for","Email"),Pe(f,"type","text"),Pe(f,"id","Email"),Pe(p,"class",g="EmailContainer "+(r[0]?"InvalidField":"")),Pe(v,"for","UserName"),Pe(E,"type","text"),Pe(E,"id","UserName"),Pe(b,"class",_="UserContainer "+(r[1]?"InvalidField":"")),Pe(S,"for","Password"),Pe(P,"type","password"),Pe(P,"id","Password"),Pe(x,"class",L="PasswordContainer "+(r[2]?"InvalidField":"")),Pe(k,"for","ConfirmPassword"),Pe(M,"type","password"),Pe(M,"id","ConfirmPassword"),Pe(D,"class",B="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),Pe(j,"for","SecurityQuestion"),Pe(H,"type","text"),Pe(H,"id","SecurityQuestion"),Pe($,"class",q="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),Pe(Y,"for","SecurityAnswer"),Pe(Q,"type","text"),Pe(Q,"id","SecurityAnswer"),Pe(Z,"class",J="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),Pe(u,"class","RegisterFormContent"),Pe(te,"class","RegisterStepNext"),te.disabled=ne=!r[16]},m(e,t){Ce(e,n,t),Ee(n,i),Ee(n,o),Ee(n,s),Ee(s,a),Ee(s,l),Ce(e,c,t),Ce(e,u,t),Ee(u,p),Ee(p,d),Ee(p,h),Ee(p,f),Re(f,r[7]),Ee(p,m),se&&se.m(p,null),Ee(u,y),Ee(u,b),Ee(b,v),Ee(b,w),Ee(b,E),Re(E,r[6]),Ee(b,C),ae&&ae.m(b,null),Ee(u,T),Ee(u,x),Ee(x,S),Ee(x,A),Ee(x,P),Re(P,r[8]),r[33](P),Ee(x,R),ue.m(x,null),Ee(x,I),pe&&pe.m(x,null),Ee(u,O),Ee(u,D),Ee(D,k),Ee(D,N),Ee(D,M),Re(M,r[9]),r[37](M),Ee(D,F),fe.m(D,null),Ee(D,U),me&&me.m(D,null),Ee(u,G),Ee(u,$),Ee($,j),Ee($,z),Ee($,H),Re(H,r[10]),Ee($,V),ge&&ge.m($,null),Ee(u,X),Ee(u,Z),Ee(Z,Y),Ee(Z,W),Ee(Z,Q),Re(Q,r[11]),Ee(Z,K),ye&&ye.m(Z,null),Ce(e,ee,t),Ce(e,te,t),Ee(te,re),ie||(oe=[Ae(l,"click",r[29]),Ae(f,"input",r[30]),Ae(f,"blur",r[18]),Ae(E,"input",r[31]),Ae(E,"blur",r[19]),Ae(P,"input",r[32]),Ae(P,"blur",r[24]),Ae(M,"input",r[36]),Ae(M,"blur",r[25]),Ae(H,"input",r[40]),Ae(H,"blur",r[26]),Ae(Q,"input",r[41]),Ae(Q,"keyup",r[27]),Ae(te,"click",r[28])],ie=!0)},p(e,t){128&t[0]&&f.value!==e[7]&&Re(f,e[7]),e[0]?se||(se=an(),se.c(),se.m(p,null)):se&&(se.d(1),se=null),1&t[0]&&g!==(g="EmailContainer "+(e[0]?"InvalidField":""))&&Pe(p,"class",g),64&t[0]&&E.value!==e[6]&&Re(E,e[6]),e[1]?ae||(ae=ln(),ae.c(),ae.m(b,null)):ae&&(ae.d(1),ae=null),2&t[0]&&_!==(_="UserContainer "+(e[1]?"InvalidField":""))&&Pe(b,"class",_),256&t[0]&&P.value!==e[8]&&Re(P,e[8]),ce===(ce=le(e))&&ue?ue.p(e,t):(ue.d(1),ue=ce(e),ue&&(ue.c(),ue.m(x,I))),e[2]?pe||(pe=pn(),pe.c(),pe.m(x,null)):pe&&(pe.d(1),pe=null),4&t[0]&&L!==(L="PasswordContainer "+(e[2]?"InvalidField":""))&&Pe(x,"class",L),512&t[0]&&M.value!==e[9]&&Re(M,e[9]),he===(he=de(e))&&fe?fe.p(e,t):(fe.d(1),fe=he(e),fe&&(fe.c(),fe.m(D,U))),e[3]?me||(me=fn(),me.c(),me.m(D,null)):me&&(me.d(1),me=null),8&t[0]&&B!==(B="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&Pe(D,"class",B),1024&t[0]&&H.value!==e[10]&&Re(H,e[10]),e[4]?ge||(ge=mn(),ge.c(),ge.m($,null)):ge&&(ge.d(1),ge=null),16&t[0]&&q!==(q="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&Pe($,"class",q),2048&t[0]&&Q.value!==e[11]&&Re(Q,e[11]),e[5]?ye||(ye=gn(),ye.c(),ye.m(Z,null)):ye&&(ye.d(1),ye=null),32&t[0]&&J!==(J="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&Pe(Z,"class",J),65536&t[0]&&ne!==(ne=!e[16])&&(te.disabled=ne)},i:ve,o:ve,d(e){e&&_e(n),e&&_e(c),e&&_e(u),se&&se.d(),ae&&ae.d(),r[33](null),ue.d(),pe&&pe.d(),r[37](null),fe.d(),me&&me.d(),ge&&ge.d(),ye&&ye.d(),e&&_e(ee),e&&_e(te),ie=!1,we(oe)}}}function bn(e,t,r){let n,i,o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,p="",d="",h="",f="",m="",g="",y=!1,b=!1,v=!1;const w=()=>{r(16,v=!(o||s||a||l||c||u)),(p.length<=0||d.length<=0||h.length<=0||f.length<=0||m.length<=0||g.length<=0)&&r(16,v=!1)},E=()=>{window.postMessage({type:"ToLogin"},window.location.href)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},_=()=>{r(12,y=!0),A()},T=()=>{r(13,b=!0),P()},x=()=>{r(12,y=!1),A()},S=()=>{r(13,b=!1),P()},A=()=>{r(14,n.type=y?"text":"password",n)},P=()=>{r(15,i.type=b?"text":"password",i)},R=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,d=e.data.userData.email),r(6,p=e.data.userData.username),r(8,h=e.data.userData.password),r(9,f=e.data.userData.password),r(10,m=e.data.userData.securityQuestion),r(11,g=e.data.userData.securityAnswer),w())};return D(()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)})),[o,s,a,l,c,u,p,d,h,f,m,g,y,b,n,i,v,E,()=>{var e;r(0,(e=d,o=!C.email.test(e))),w()},()=>{var e;r(1,(e=p,s=!C.user.test(e))),w()},_,T,x,S,()=>{var e;r(2,(e=h,a=!C.password.test(e))),h!==f&&0<f.length&&r(3,l=!0),w()},()=>{r(3,l=!(h===f)),w()},()=>{r(4,c=!(m&&m.length<=120)),w()},()=>{r(5,u=!(g&&g.length<=120)),w()},()=>{var e={userEmail:d,userValue:p,userPassword:h,confirmUserPassword:f,securityQuestion:m,securityAnswer:g};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},()=>E(),function(){d=this.value,r(7,d)},function(){p=this.value,r(6,p)},function(){h=this.value,r(8,h)},function(e){I[e?"unshift":"push"](()=>{n=e,r(14,n)})},()=>x(),()=>_(),function(){f=this.value,r(9,f)},function(e){I[e?"unshift":"push"](()=>{i=e,r(15,i)})},()=>S(),()=>T(),function(){m=this.value,r(10,m)},function(){g=this.value,r(11,g)}]}function vn(e,t,r){const n=e.slice();return n[35]=t[r],n}function wn(e,t,r){const n=e.slice();return n[38]=t[r],n}function En(e,t,r){const n=e.slice();return n[41]=t[r],n}function Cn(e,t,r){const n=e.slice();return n[44]=t[r],n}function _n(e,t,r){const n=e.slice();return n[47]=t[r],n}function Tn(e){let r,n,t=e[47]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[47],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function xn(){let r;return{c(){r=Te("p"),r.textContent="First name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Sn(){let r;return{c(){r=Te("p"),r.textContent="Last name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function An(e){let r,n,t=e[44]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[44],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function Pn(e){let r,n,t=e[41]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[41],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function Rn(e){let r,n,t=e[38]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[38],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function In(){let r;return{c(){r=Te("p"),r.textContent="Birth place must be at least 1 character long.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Ln(e){let r,n,t=e[35]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[35],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function On(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,e,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F,U,B,G,$,j,z,H,V,q,X,Z,Y,W,Q,K,J=r[12],ee=[];for(let e=0;e<J.length;e+=1)ee[e]=Tn(_n(r,J,e));let te=r[0]&&xn(),re=r[1]&&Sn(),ne=r[13],ie=[];for(let e=0;e<ne.length;e+=1)ie[e]=An(Cn(r,ne,e));let oe=r[14],se=[];for(let e=0;e<oe.length;e+=1)se[e]=Pn(En(r,oe,e));let ae=r[15],le=[];for(let e=0;e<ae.length;e+=1)le[e]=Rn(wn(r,ae,e));let ce=r[2]&&In(),ue=r[16],pe=[];for(let e=0;e<ue.length;e+=1)pe[e]=Ln(vn(r,ue,e));return{c(){n=Te("div"),i=Te("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',o=Se(),s=Te("div"),a=Te("div"),l=Te("label"),l.innerHTML='Gender:<span class="FormRequired">*</span>',c=Se(),u=Te("select");for(let e=0;e<ee.length;e+=1)ee[e].c();p=xe("}"),d=Se(),h=Te("div"),f=Te("label"),f.innerHTML='First Name:<span class="FormRequired">*</span>',m=Se(),g=Te("input"),y=Se(),te&&te.c(),b=Se(),v=Te("div"),w=Te("label"),w.innerHTML='Last Name:<span class="FormRequired">*</span>',E=Se(),C=Te("input"),_=Se(),re&&re.c(),x=Se(),S=Te("div"),A=Te("label"),A.innerHTML='Date of Birth:<span class="FormRequired">*</span>',P=Se(),R=Te("div"),I=Te("select");for(let e=0;e<ie.length;e+=1)ie[e].c();L=Se(),O=Te("select");for(let e=0;e<se.length;e+=1)se[e].c();D=Se(),k=Te("select");for(let e=0;e<le.length;e+=1)le[e].c();N=Se(),M=Te("div"),F=Te("label"),F.innerHTML='Birth Place:<span class="FormRequired">*</span>',U=Se(),B=Te("input"),G=Se(),ce&&ce.c(),j=Se(),z=Te("div"),H=Te("label"),H.innerHTML='Currency:<span class="FormRequired">*</span>',V=Se(),q=Te("select");for(let e=0;e<pe.length;e+=1)pe[e].c();X=Se(),Z=Te("button"),Y=xe("Next"),this.c=ve,Pe(i,"class","BackButton"),Pe(n,"class","RegisterFormHeader"),Pe(l,"for","Gender"),Pe(u,"id","Gender"),void 0===r[3]&&Le(()=>r[22].call(u)),Pe(a,"class","GenderContainer"),Pe(f,"for","FirstName"),Pe(g,"type","text"),Pe(g,"id","FirstName"),Pe(h,"class",e="FirstNameContainer "+(r[0]?"InvalidField":"")),Pe(w,"for","LastName"),Pe(C,"type","text"),Pe(C,"id","LastName"),Pe(v,"class",T="LastNameContainer "+(r[1]?"InvalidField":"")),Pe(A,"for","BirthDate"),Pe(I,"class","BirthDaySelected"),void 0===r[6]&&Le(()=>r[25].call(I)),Pe(O,"class","BirthMonthSelected"),void 0===r[7]&&Le(()=>r[26].call(O)),Pe(k,"class","BirthYearSelected"),void 0===r[8]&&Le(()=>r[27].call(k)),Pe(R,"class","BirthDateOptions"),Pe(S,"class","BirthDateContainer"),Pe(F,"for","BirthPlace"),Pe(B,"type","text"),Pe(B,"id","BirthPlace"),Pe(M,"class",$="BirthPlaceContainer "+(r[2]?"InvalidField":"")),Pe(H,"for","Currency"),Pe(q,"id","Currency"),void 0===r[10]&&Le(()=>r[29].call(q)),Pe(z,"class","CurrencyContainer"),Pe(s,"class","RegisterFormContent"),Pe(Z,"class","RegisterStepNext"),Z.disabled=W=!r[11]},m(e,t){Ce(e,n,t),Ee(n,i),Ce(e,o,t),Ce(e,s,t),Ee(s,a),Ee(a,l),Ee(a,c),Ee(a,u);for(let e=0;e<ee.length;e+=1)ee[e].m(u,null);Ee(u,p),Ie(u,r[3]),Ee(s,d),Ee(s,h),Ee(h,f),Ee(h,m),Ee(h,g),Re(g,r[4]),Ee(h,y),te&&te.m(h,null),Ee(s,b),Ee(s,v),Ee(v,w),Ee(v,E),Ee(v,C),Re(C,r[5]),Ee(v,_),re&&re.m(v,null),Ee(s,x),Ee(s,S),Ee(S,A),Ee(S,P),Ee(S,R),Ee(R,I);for(let e=0;e<ie.length;e+=1)ie[e].m(I,null);Ie(I,r[6]),Ee(R,L),Ee(R,O);for(let e=0;e<se.length;e+=1)se[e].m(O,null);Ie(O,r[7]),Ee(R,D),Ee(R,k);for(let e=0;e<le.length;e+=1)le[e].m(k,null);Ie(k,r[8]),Ee(s,N),Ee(s,M),Ee(M,F),Ee(M,U),Ee(M,B),Re(B,r[9]),Ee(M,G),ce&&ce.m(M,null),Ee(s,j),Ee(s,z),Ee(z,H),Ee(z,V),Ee(z,q);for(let e=0;e<pe.length;e+=1)pe[e].m(q,null);Ie(q,r[10]),Ce(e,X,t),Ce(e,Z,t),Ee(Z,Y),Q||(K=[Ae(i,"click",r[21]),Ae(u,"change",r[22]),Ae(g,"input",r[23]),Ae(g,"blur",r[17]),Ae(C,"input",r[24]),Ae(C,"blur",r[18]),Ae(I,"change",r[25]),Ae(O,"change",r[26]),Ae(k,"change",r[27]),Ae(B,"input",r[28]),Ae(B,"keyup",r[19]),Ae(q,"change",r[29]),Ae(Z,"click",r[20])],Q=!0)},p(t,r){if(4096&r[0]){let e;for(J=t[12],e=0;e<J.length;e+=1){var n=_n(t,J,e);ee[e]?ee[e].p(n,r):(ee[e]=Tn(n),ee[e].c(),ee[e].m(u,p))}for(;e<ee.length;e+=1)ee[e].d(1);ee.length=J.length}if(4104&r[0]&&Ie(u,t[3]),16&r[0]&&g.value!==t[4]&&Re(g,t[4]),t[0]?te||(te=xn(),te.c(),te.m(h,null)):te&&(te.d(1),te=null),1&r[0]&&e!==(e="FirstNameContainer "+(t[0]?"InvalidField":""))&&Pe(h,"class",e),32&r[0]&&C.value!==t[5]&&Re(C,t[5]),t[1]?re||(re=Sn(),re.c(),re.m(v,null)):re&&(re.d(1),re=null),2&r[0]&&T!==(T="LastNameContainer "+(t[1]?"InvalidField":""))&&Pe(v,"class",T),8192&r[0]){let e;for(ne=t[13],e=0;e<ne.length;e+=1){var i=Cn(t,ne,e);ie[e]?ie[e].p(i,r):(ie[e]=An(i),ie[e].c(),ie[e].m(I,null))}for(;e<ie.length;e+=1)ie[e].d(1);ie.length=ne.length}if(8256&r[0]&&Ie(I,t[6]),16384&r[0]){let e;for(oe=t[14],e=0;e<oe.length;e+=1){var o=En(t,oe,e);se[e]?se[e].p(o,r):(se[e]=Pn(o),se[e].c(),se[e].m(O,null))}for(;e<se.length;e+=1)se[e].d(1);se.length=oe.length}if(16512&r[0]&&Ie(O,t[7]),32768&r[0]){let e;for(ae=t[15],e=0;e<ae.length;e+=1){var s=wn(t,ae,e);le[e]?le[e].p(s,r):(le[e]=Rn(s),le[e].c(),le[e].m(k,null))}for(;e<le.length;e+=1)le[e].d(1);le.length=ae.length}if(33024&r[0]&&Ie(k,t[8]),512&r[0]&&B.value!==t[9]&&Re(B,t[9]),t[2]?ce||(ce=In(),ce.c(),ce.m(M,null)):ce&&(ce.d(1),ce=null),4&r[0]&&$!==($="BirthPlaceContainer "+(t[2]?"InvalidField":""))&&Pe(M,"class",$),65536&r[0]){let e;for(ue=t[16],e=0;e<ue.length;e+=1){var a=vn(t,ue,e);pe[e]?pe[e].p(a,r):(pe[e]=Ln(a),pe[e].c(),pe[e].m(q,null))}for(;e<pe.length;e+=1)pe[e].d(1);pe.length=ue.length}66560&r[0]&&Ie(q,t[10]),2048&r[0]&&W!==(W=!t[11])&&(Z.disabled=W)},i:ve,o:ve,d(e){e&&_e(n),e&&_e(o),e&&_e(s),t(ee,e),te&&te.d(),re&&re.d(),t(ie,e),t(se,e),t(le,e),ce&&ce.d(),t(pe,e),e&&_e(X),e&&_e(Z),Q=!1,we(K)}}}function Dn(e,t,r){let n=!1,i=!1,o=!1,s=["Mr.","Mrs.","Ms."],a=s[0],l="",c="",u=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],p=u[0],d=[1,2,3,4,5,6,7,8,9,10,11,12],h=d[0],f=[1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979],m=f[0],g="",y=["EUR"],b=y[0],v=!1;const w=()=>{r(11,v=!(n||i||o)),(l.length<=0||c.length<=0||g.length<=0)&&r(11,v=!1)},E={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/},C=e=>!!E.user.test(e),_=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(3,a=e.data.userData.title),r(4,l=e.data.userData.firstname),r(5,c=e.data.userData.lastname),r(6,p=e.data.userData.birth.day),r(7,h=e.data.userData.birth.month),r(8,m=e.data.userData.birth.year),r(9,g=e.data.userData.birthPlace),r(10,b=e.data.userData.currency),w())};return D(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),[n,i,o,a,l,c,p,h,m,g,b,v,s,u,d,f,y,()=>{r(0,n=!C(l)),w()},()=>{r(1,i=!C(c)),w()},()=>{r(2,o=!g),w()},()=>{var e={userTitleSelected:a,userFirstName:l,userLastName:c,birthDaySelected:p,birthMonthSelected:h,birthYearSelected:m,birthPlace:g,currencySelected:b};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},()=>{var e={userTitleSelected:a,userFirstName:l,userLastName:c,birthDaySelected:p,birthMonthSelected:h,birthYearSelected:m,birthPlace:g,currencySelected:b};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},function(){a=O(this),r(3,a),r(12,s)},function(){l=this.value,r(4,l)},function(){c=this.value,r(5,c)},function(){p=O(this),r(6,p),r(13,u)},function(){h=O(this),r(7,h),r(14,d)},function(){m=O(this),r(8,m),r(15,f)},function(){g=this.value,r(9,g)},function(){b=O(this),r(10,b),r(16,y)}]}function kn(e,t,r){const n=e.slice();return n[55]=t[r],n}function Nn(e,t,r){const n=e.slice();return n[58]=t[r],n}function Mn(){let r;return{c(){r=Te("p"),r.textContent="Address must be at least 1 character long and 100 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Fn(){let r;return{c(){r=Te("p"),r.textContent="Postal Code must be at least 1 character long and 20 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Un(){let r;return{c(){r=Te("p"),r.textContent="City must be at least 1 character long and 50 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Bn(e){let r,n,i,o=e[58].Name+"";return{c(){r=Te("option"),n=xe(o),r.__value=i=e[58].Alpha2Code,r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){2048&t[0]&&o!==(o=e[58].Name+"")&&C(n,o),2048&t[0]&&i!==(i=e[58].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&_e(r)}}}function Gn(){let r;return{c(){r=Te("p"),r.textContent="Nationality must be at least 1 character long.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function $n(e){let r,n,i,o=e[55].Prefix+"";return{c(){r=Te("option"),n=xe(o),r.__value=i=e[55].Prefix,r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){32768&t[0]&&o!==(o=e[55].Prefix+"")&&C(n,o),32768&t[0]&&i!==(i=e[55].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&_e(r)}}}function jn(){let r;return{c(){r=Te("p"),r.textContent="Mobile must be at least 5 character long and 20 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function zn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F=!r[20]&&Hn();return{c(){n=Te("div"),i=Te("label"),o=xe("I want to receive exclusive offers and bonuses."),s=Te("br"),a=xe("I am aware that I can unsubscribe whenever I want to.\n "),l=Te("input"),c=Se(),u=Te("span"),p=Se(),d=Te("div"),h=Te("label"),f=xe("SMS\n "),m=Te("input"),y=Se(),b=Te("span"),v=Se(),w=Te("label"),E=xe("Emails\n "),C=Te("input"),T=Se(),x=Te("span"),S=Se(),A=Te("div"),P=Te("label"),R=xe("I am at least 21 years old and I have read and accepted the Terms of Conditions.\n "),I=Te("input"),L=Se(),O=Te("span"),D=Se(),F&&F.c(),k=U(),Pe(l,"type","Checkbox"),l.checked=r[17],Pe(u,"class","Checkmark"),Pe(i,"class","Offers"),Pe(m,"type","Checkbox"),m.disabled=g=!r[17],m.checked=r[18],Pe(b,"class","Checkmark"),Pe(h,"class","OffersMethod"),Pe(C,"type","Checkbox"),C.disabled=_=!r[17],C.checked=r[19],Pe(x,"class","Checkmark"),Pe(w,"class","OffersMethod"),Pe(d,"class","OffersMethodsWrapper"),Pe(n,"class","OffersContainer"),Pe(I,"type","Checkbox"),I.checked=r[20],Pe(O,"class","Checkmark"),Pe(P,"class","AgeConsent"),Pe(A,"class","AgeContainer")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(i,s),Ee(i,a),Ee(i,l),Ee(i,c),Ee(i,u),Ee(n,p),Ee(n,d),Ee(d,h),Ee(h,f),Ee(h,m),Ee(h,y),Ee(h,b),Ee(d,v),Ee(d,w),Ee(w,E),Ee(w,C),Ee(w,T),Ee(w,x),Ce(e,S,t),Ce(e,A,t),Ee(A,P),Ee(P,R),Ee(P,I),Ee(P,L),Ee(P,O),Ce(e,D,t),F&&F.m(e,t),Ce(e,k,t),N||(M=[Ae(l,"click",r[41]),Ae(m,"click",r[42]),Ae(C,"click",r[43]),Ae(I,"click",r[44])],N=!0)},p(e,t){131072&t[0]&&(l.checked=e[17]),131072&t[0]&&g!==(g=!e[17])&&(m.disabled=g),262144&t[0]&&(m.checked=e[18]),131072&t[0]&&_!==(_=!e[17])&&(C.disabled=_),524288&t[0]&&(C.checked=e[19]),1048576&t[0]&&(I.checked=e[20]),e[20]?F&&(F.d(1),F=null):F||(F=Hn(),F.c(),F.m(k.parentNode,k))},d(e){e&&_e(n),e&&_e(S),e&&_e(A),e&&_e(D),F&&F.d(e),e&&_e(k),N=!1,we(M)}}}function Hn(){let r;return{c(){r=Te("div"),r.innerHTML="<p>Please accept the Terms and Conditions before proceeding.</p>",Pe(r,"class","NotificationContainer")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Vn(e){let r,n,i;return{c(){r=Te("div"),n=Te("p"),i=xe(e[7]),Pe(n,"class","RegisterError")},m(e,t){Ce(e,r,t),Ee(r,n),Ee(n,i)},p(e,t){128&t[0]&&C(i,e[7])},d(e){e&&_e(r)}}}function qn(r){let n,e,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F,U,B,G,$,j,z,H,V,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se,ae,le=r[1]&&Mn(),ce=r[2]&&Fn(),ue=r[4]&&Un(),pe=r[11],de=[];for(let e=0;e<pe.length;e+=1)de[e]=Bn(Nn(r,pe,e));let he=r[5]&&Gn(),fe=r[15],me=[];for(let e=0;e<fe.length;e+=1)me[e]=$n(kn(r,fe,e));let ge=r[3]&&jn(),ye=r[0]&&zn(r),be=r[6]&&Vn(r);return{c(){n=Te("script"),i=Se(),o=Te("div"),s=Se(),a=Te("div"),l=Te("button"),l.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',c=Se(),u=Te("div"),p=Te("div"),d=Te("div"),h=Te("label"),h.innerHTML='Address:<span class="FormRequired">*</span>',f=Se(),m=Te("input"),g=Se(),le&&le.c(),b=Se(),v=Te("div"),w=Te("label"),w.innerHTML='Postal Code:<span class="FormRequired">*</span>',E=Se(),C=Te("input"),_=Se(),ce&&ce.c(),x=Se(),S=Te("div"),A=Te("label"),A.innerHTML='City:<span class="FormRequired">*</span>',P=Se(),R=Te("input"),I=Se(),ue&&ue.c(),O=Se(),D=Te("div"),k=Te("label"),k.innerHTML='Country:<span class="FormRequired">*</span>',N=Se(),M=Te("select");for(let e=0;e<de.length;e+=1)de[e].c();F=Se(),U=Te("div"),B=Te("label"),B.innerHTML='Nationality:<span class="FormRequired">*</span>',G=Se(),$=Te("input"),j=Se(),he&&he.c(),H=Se(),V=Te("div"),q=Te("label"),q.innerHTML='Mobile:<span class="FormRequired">*</span>',X=Se(),Z=Te("div"),Y=Te("select");for(let e=0;e<me.length;e+=1)me[e].c();W=Se(),Q=Te("input"),K=Se(),ge&&ge.c(),ee=Se(),ye&&ye.c(),te=Se(),be&&be.c(),re=Se(),ne=Te("button"),ie=xe("Open Account"),this.c=ve,n.src!==(e="//www.google.com/recaptcha/api.js?render="+Xn)&&Pe(n,"src","//www.google.com/recaptcha/api.js?render=6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn"),n.async=!0,n.defer=!0,Pe(o,"class","g-recaptcha"),Pe(o,"data-sitekey",Xn),Pe(l,"class","BackButton"),Pe(a,"class","RegisterFormHeader"),Pe(h,"for","Address"),Pe(m,"type","text"),Pe(m,"id","Address"),Pe(d,"class",y="AddressContainer "+(r[1]?"InvalidField":"")),Pe(w,"for","PostalCode"),Pe(C,"type","text"),Pe(C,"id","PostalCode"),Pe(v,"class",T="PostalCodeContainer "+(r[2]?"InvalidField":"")),Pe(p,"class","AddressPostalCodeContainer"),Pe(A,"for","City"),Pe(R,"type","text"),Pe(R,"id","City"),Pe(S,"class",L="CityContainer "+(r[4]?"InvalidField":"")),Pe(k,"for","Country"),Pe(M,"id","Country"),void 0===r[12]&&Le(()=>r[37].call(M)),Pe(D,"class","CountryContainer"),Pe(B,"for","Nationality"),Pe($,"type","text"),Pe($,"id","Nationality"),Pe(U,"class",z="NationalityContainer "+(r[5]?"InvalidField":"")),Pe(q,"for","Mobile"),Pe(Y,"class","MobilePrefixSelected"),void 0===r[16]&&Le(()=>r[39].call(Y)),Pe(Q,"type","text"),Pe(Q,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),Pe(Q,"id","Mobile"),Pe(Q,"class","MobileInput"),Pe(Z,"class","MobileWrapper"),Pe(V,"class",J="MobileContainer "+(r[3]?"InvalidField":"")),Pe(u,"class","RegisterFormContent"),Pe(ne,"class","RegisterStepNext"),ne.disabled=oe=!r[21]},m(e,t){Ee(document.head,n),Ce(e,i,t),Ce(e,o,t),Ce(e,s,t),Ce(e,a,t),Ee(a,l),Ce(e,c,t),Ce(e,u,t),Ee(u,p),Ee(p,d),Ee(d,h),Ee(d,f),Ee(d,m),Re(m,r[8]),Ee(d,g),le&&le.m(d,null),Ee(p,b),Ee(p,v),Ee(v,w),Ee(v,E),Ee(v,C),Re(C,r[9]),Ee(v,_),ce&&ce.m(v,null),Ee(u,x),Ee(u,S),Ee(S,A),Ee(S,P),Ee(S,R),Re(R,r[10]),Ee(S,I),ue&&ue.m(S,null),Ee(u,O),Ee(u,D),Ee(D,k),Ee(D,N),Ee(D,M);for(let e=0;e<de.length;e+=1)de[e].m(M,null);Ie(M,r[12]),Ee(u,F),Ee(u,U),Ee(U,B),Ee(U,G),Ee(U,$),Re($,r[13]),Ee(U,j),he&&he.m(U,null),Ee(u,H),Ee(u,V),Ee(V,q),Ee(V,X),Ee(V,Z),Ee(Z,Y);for(let e=0;e<me.length;e+=1)me[e].m(Y,null);Ie(Y,r[16]),Ee(Z,W),Ee(Z,Q),Re(Q,r[14]),Ee(Z,K),ge&&ge.m(Z,null),Ee(u,ee),ye&&ye.m(u,null),Ce(e,te,t),be&&be.m(e,t),Ce(e,re,t),Ce(e,ne,t),Ee(ne,ie),se||(ae=[Ae(l,"click",r[32]),Ae(m,"input",r[34]),Ae(m,"blur",r[22]),Ae(C,"input",r[35]),Ae(C,"blur",r[23]),Ae(R,"input",r[36]),Ae(R,"blur",r[24]),Ae(M,"change",r[37]),Ae($,"input",r[38]),Ae($,"blur",r[25]),Ae(Y,"change",r[39]),Ae(Q,"input",r[40]),Ae(Q,"keyup",r[26]),Ae(ne,"click",r[31])],se=!0)},p(t,r){if(256&r[0]&&m.value!==t[8]&&Re(m,t[8]),t[1]?le||(le=Mn(),le.c(),le.m(d,null)):le&&(le.d(1),le=null),2&r[0]&&y!==(y="AddressContainer "+(t[1]?"InvalidField":""))&&Pe(d,"class",y),512&r[0]&&C.value!==t[9]&&Re(C,t[9]),t[2]?ce||(ce=Fn(),ce.c(),ce.m(v,null)):ce&&(ce.d(1),ce=null),4&r[0]&&T!==(T="PostalCodeContainer "+(t[2]?"InvalidField":""))&&Pe(v,"class",T),1024&r[0]&&R.value!==t[10]&&Re(R,t[10]),t[4]?ue||(ue=Un(),ue.c(),ue.m(S,null)):ue&&(ue.d(1),ue=null),16&r[0]&&L!==(L="CityContainer "+(t[4]?"InvalidField":""))&&Pe(S,"class",L),2048&r[0]){let e;for(pe=t[11],e=0;e<pe.length;e+=1){var n=Nn(t,pe,e);de[e]?de[e].p(n,r):(de[e]=Bn(n),de[e].c(),de[e].m(M,null))}for(;e<de.length;e+=1)de[e].d(1);de.length=pe.length}if(6144&r[0]&&Ie(M,t[12]),8192&r[0]&&$.value!==t[13]&&Re($,t[13]),t[5]?he||(he=Gn(),he.c(),he.m(U,null)):he&&(he.d(1),he=null),32&r[0]&&z!==(z="NationalityContainer "+(t[5]?"InvalidField":""))&&Pe(U,"class",z),32768&r[0]){let e;for(fe=t[15],e=0;e<fe.length;e+=1){var i=kn(t,fe,e);me[e]?me[e].p(i,r):(me[e]=$n(i),me[e].c(),me[e].m(Y,null))}for(;e<me.length;e+=1)me[e].d(1);me.length=fe.length}98304&r[0]&&Ie(Y,t[16]),16384&r[0]&&Q.value!==t[14]&&Re(Q,t[14]),t[3]?ge||(ge=jn(),ge.c(),ge.m(Z,null)):ge&&(ge.d(1),ge=null),8&r[0]&&J!==(J="MobileContainer "+(t[3]?"InvalidField":""))&&Pe(V,"class",J),t[0]?ye?ye.p(t,r):(ye=zn(t),ye.c(),ye.m(u,null)):ye&&(ye.d(1),ye=null),t[6]?be?be.p(t,r):(be=Vn(t),be.c(),be.m(re.parentNode,re)):be&&(be.d(1),be=null),2097152&r[0]&&oe!==(oe=!t[21])&&(ne.disabled=oe)},i:ve,o:ve,d(e){_e(n),e&&_e(i),e&&_e(o),e&&_e(s),e&&_e(a),e&&_e(c),e&&_e(u),le&&le.d(),ce&&ce.d(),ue&&ue.d(),t(de,e),he&&he.d(),t(me,e),ge&&ge.d(),ye&&ye.d(),e&&_e(te),be&&be.d(e),e&&_e(re),e&&_e(ne),se=!1,we(ae)}}}it([Wr,Br],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Yr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Fr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Xr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${zr(Yr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=sn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return on(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return nn(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),it([Wr,Br],()=>(e,t=Yr)=>Fr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==et.indexOf(e)&&(t=new We(t),tt[e]=t,et.push(e)),tt[e]}},customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>.RegisterFormTitle{font-size:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer 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}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{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;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},bn,yn,r,{},[-1,-1]),e&&e.target&&Ce(e.target,this,e.anchor)}}),customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.GenderContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.CurrencyContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.GenderContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.GenderContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.CurrencyContainer select{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}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%}.BirthDateOptions .BirthMonthSelected{width:30%}.BirthDateOptions .BirthYearSelected{width:40%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{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;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Dn,On,r,{},[-1,-1]),e&&e.target&&Ce(e.target,this,e.anchor)}});const Xn="6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn";function Zn(e,t,r){let{userconsentexists:n=!1}=t,{endpoint:i=""}=t,o="",s="",a="",l="",c="",u=!1,p="",d="",h="",f="",m=[],g="",y="",b="",v=[],w="",E=!1,C=!1,_=!1,T=!1,x=!1;const S=()=>{r(21,x=!(o||s||l||c||a||u||n&&T)),(d.length<=0||h.length<=0||f.length<=0||y.length<=0||b.length<=0)&&r(21,x=!1)},A=()=>{!1===E?r(17,E=!0):(r(17,E=!1),r(18,C=!1),r(19,_=!1))},P=()=>{r(18,C=!1===C)},R=()=>{r(19,_=!1===_)},I=()=>{r(20,T=!1===T),S()},L=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(8,d=e.data.userData.address1),r(9,h=e.data.userData.postalCode),r(10,f=e.data.userData.city),r(12,g=e.data.userData.country),r(13,y=e.data.userData.nationality),r(16,w=e.data.userData.mobile.prefix),r(14,b=e.data.userData.mobile.number),r(18,C=e.data.userData.userConsents.additionalProp1),r(19,_=e.data.userData.userConsents.additionalProp2),r(20,T=e.data.userData.userConsents.additionalProp3),S();break;case"ShowRegistrationError":r(6,u=e.data.showError),r(7,p=e.data.error)}};return D(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)})),e.$$set=e=>{"userconsentexists"in e&&r(0,n=e.userconsentexists),"endpoint"in e&&r(33,i=e.endpoint)},e.$$.update=()=>{4&e.$$.dirty[1]&&i&&fetch(`${i}/player/countries`).then(e=>e.json()).then(e=>{r(11,m=e.countries),r(12,g=m[0].Alpha2Code)}),4&e.$$.dirty[1]&&i&&fetch(`${i}/player/phonecodes`).then(e=>e.json()).then(e=>{r(15,v=e.phoneCodes),r(16,w=v[0].Prefix)})},[n,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,()=>{r(1,o=!(d&&d.length<=100)),S()},()=>{r(2,s=!(h&&h.length<=20)),S()},()=>{r(4,l=!(f&&f.length<=50)),S()},()=>{r(5,c=!y),S()},()=>{r(3,a=!(b&&5<=b.length&&b.length<=30)),S()},A,P,R,I,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(Xn,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:d,postalCode:h,city:f,countrySelected:g,nationality:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:_,consentTerms:T,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:d,postalCode:h,city:f,countrySelected:g,nationality:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:_,consentTerms:T};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},i,function(){d=this.value,r(8,d)},function(){h=this.value,r(9,h)},function(){f=this.value,r(10,f)},function(){g=O(this),r(12,g),r(11,m)},function(){y=this.value,r(13,y)},function(){w=O(this),r(16,w),r(15,v)},function(){b=this.value,r(14,b)},()=>A(),()=>P(),()=>R(),()=>I()]}function Yn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=Te("div"),i=Te("div"),s=Se(),a=Te("div"),c=Se(),u=Te("div"),Pe(i,"class",o="RegisterFirstStepDash "+(r[2]||!r[2]&&r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Pe(a,"class",l="RegisterSecondStepDash "+(r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Pe(u,"class",p="RegisterThirdStepDash "+(r[4]?"RegisterStepDashColor":"")),Pe(n,"class","RegisterSteps")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(n,s),Ee(n,a),Ee(n,c),Ee(n,u),r[17](n)},p(e,t){28&t[0]&&o!==(o="RegisterFirstStepDash "+(e[2]||!e[2]&&e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Pe(i,"class",o),28&t[0]&&l!==(l="RegisterSecondStepDash "+(e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Pe(a,"class",l),16&t[0]&&p!==(p="RegisterThirdStepDash "+(e[4]?"RegisterStepDashColor":""))&&Pe(u,"class",p)},d(e){e&&_e(n),r[17](null)}}}function Wn(){let r;return{c(){r=Te("div"),r.innerHTML="<general-player-register-form-step1></general-player-register-form-step1>",Pe(r,"class","RegisterFormStep1")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Qn(){let r;return{c(){r=Te("div"),r.innerHTML="<general-player-register-form-step2></general-player-register-form-step2>",Pe(r,"class","RegisterFormStep2")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Kn(e){let r,n;return{c(){r=Te("div"),n=Te("general-player-register-form-step3"),i(n,"userconsentsexist",e[9]),i(n,"endpoint",e[0]),Pe(r,"class","RegisterFormStep3")},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){512&t[0]&&i(n,"userconsentsexist",e[9]),1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&_e(r)}}}function Jn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E;return{c(){n=Te("div"),i=e("svg"),o=e("defs"),s=e("style"),a=xe(".a{fill:#16ce16;}"),l=e("path"),c=Se(),u=Te("h2"),p=xe(r[6]),d=Se(),h=Te("p"),f=xe(r[7]),m=Se(),g=Te("p"),y=xe(r[8]),b=Se(),v=Te("button"),v.textContent="Go To Login",Pe(l,"class","a"),Pe(l,"d","M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"),Pe(i,"xmlns","http://www.w3.org/2000/svg"),Pe(i,"viewBox","0 0 73.95 51"),Pe(u,"class","RegisterConfirmationTitle"),Pe(h,"class","RegisterConfirmationSubtitle"),Pe(g,"class","RegisterConfirmationNote"),Pe(v,"class","RegisterConfirmationGoToLogin"),Pe(n,"class","RegisterConfirmation")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(s,a),Ee(i,l),Ee(n,c),Ee(n,u),Ee(u,p),Ee(n,d),Ee(n,h),Ee(h,f),Ee(n,m),Ee(n,g),Ee(g,y),Ee(n,b),Ee(n,v),w||(E=Ae(v,"click",r[12]),w=!0)},p(e,t){64&t[0]&&C(p,e[6]),128&t[0]&&C(f,e[7]),256&t[0]&&C(y,e[8])},d(e){e&&_e(n),w=!1,E()}}}function ei(e){let r,n=function(e){let r,n,i,o,s,a,l,c=!e[11]&&function(e){let r;return{c(){r=Te("div"),Pe(r,"class","RegisterFormImage"),m(r,"background-image","url('"+e[1]+"')")},m(e,t){Ce(e,r,t)},p(e,t){2&t[0]&&m(r,"background-image","url('"+e[1]+"')")},d(e){e&&_e(r)}}}(e),u=(e[2]||e[3]||e[4])&&Yn(e),p=e[2]&&Wn(),d=e[3]&&Qn(),h=e[4]&&Kn(e),f=e[5]&&Jn(e);return{c(){r=Te("div"),c&&c.c(),n=Se(),i=Te("div"),u&&u.c(),o=Se(),p&&p.c(),s=Se(),d&&d.c(),a=Se(),h&&h.c(),l=Se(),f&&f.c(),Pe(i,"class","RegisterFormContainer "+(e[11]?"RegisterFormContainerMobile":"")),Pe(r,"class","RegisterFormWrapper")},m(e,t){Ce(e,r,t),c&&c.m(r,null),Ee(r,n),Ee(r,i),u&&u.m(i,null),Ee(i,o),p&&p.m(i,null),Ee(i,s),d&&d.m(i,null),Ee(i,a),h&&h.m(i,null),Ee(i,l),f&&f.m(i,null)},p(e,t){e[11]||c.p(e,t),e[2]||e[3]||e[4]?u?u.p(e,t):(u=Yn(e),u.c(),u.m(i,o)):u&&(u.d(1),u=null),e[2]?p||(p=Wn(),p.c(),p.m(i,s)):p&&(p.d(1),p=null),e[3]?d||(d=Qn(),d.c(),d.m(i,a)):d&&(d.d(1),d=null),e[4]?h?h.p(e,t):(h=Kn(e),h.c(),h.m(i,l)):h&&(h.d(1),h=null),e[5]?f?f.p(e,t):(f=Jn(e),f.c(),f.m(i,null)):f&&(f.d(1),f=null)},d(e){e&&_e(r),c&&c.d(),u&&u.d(),p&&p.d(),d&&d.d(),h&&h.d(),f&&f.d()}}}(e);return{c(){n.c(),r=U(),this.c=ve},m(e,t){n.m(e,t),Ce(e,r,t)},p(e,t){n.p(e,t)},i:ve,o:ve,d(e){n.d(e),e&&_e(r)}}}function ti(e,t,i){var r=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((l=l.apply(e,s||[])).next())})};let n,o,{endpoint:s=""}=t,{cmsendpoint:a=""}=t,{imagedesktop:l=""}=t,{playerid:c=""}=t,{session:u=""}=t,{trackedanalyticsdata:p=""}=t,d=!0,h=!1,f=!1,m=!1,g,y="",b="",v="",w="PC"!=((t=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),E={},C=!1,_=!1,T=!1,x;const S=()=>{o.scrollIntoView()},A=(e,t)=>{"RegisterStepOne"===e&&(E.email=t.userEmail,E.username=t.userValue,E.password=t.userPassword,E.securityQuestion=t.securityQuestion,E.securityAnswer=t.securityAnswer),"RegisterStepTwo"===e&&(E.title=t.userTitleSelected,E.firstname=t.userFirstName,E.lastname=t.userLastName,E.birth={},E.birth.day=t.birthDaySelected,E.birth.month=t.birthMonthSelected,E.birth.year=t.birthYearSelected,E.birthPlace=t.birthPlace,E.currency=t.currencySelected),"RegisterStepThree"===e&&(E.address1=t.address,E.postalCode=t.postalCode,E.city=t.city,E.country=t.countrySelected,E.nationality=t.nationality,E.mobile={},E.mobile.prefix=t.mobilePrefixSelected,E.mobile.number=t.mobile,E.userConsents={},E.affiliateMarker=p,T&&(E.userConsents.additionalProp1=t.consentOffersSms,E.userConsents.additionalProp2=t.consentOffersEmail,E.userConsents.additionalProp3=t.consentTerms),E.token=t.token)},P=e=>{if(e.data)switch(e.data.type){case"RegisterStepOne":A("RegisterStepOne",e.data.registerStepOneData),S(),i(2,d=!1),i(3,h=!0),0==C?C=!0:window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href);break;case"RegisterStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(3,h=!1),i(4,f=!0),0==_?_=!0:window.postMessage({type:"StepThreeDataBackup",userData:E},window.location.href);break;case"RegisterStepThree":A("RegisterStepThree",e.data.registerStepThreeData),R(E);break;case"GoBackStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(2,d=!0),i(3,h=!1),window.postMessage({type:"StepOneDataBackup",userData:E},window.location.href);break;case"GoBackStepThree":A("RegisterStepThree",e.data.registerStepThreeData),S(),i(3,h=!0),i(4,f=!1),window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href)}},R=n=>r(void 0,void 0,void 0,function*(){let e={method:"PUT",headers:{"g-recaptcha-response":n.token,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},t=yield fetch(`${s}/player/register`,e),r=yield t.json();t.ok?(i(4,f=!1),i(5,m=!0)):(x=r.error.substring(r.error.indexOf("errorMessage")+13,r.error.length),g=!0,window.postMessage({type:"ShowRegistrationError",showError:!0,error:x},window.location.href))});return D(()=>(fetch(`${s}/player/consentRequirements`).then(e=>e.json()).then(e=>{0<e.items.length?i(9,T=!0):i(9,T=!1)}),fetch(a).then(e=>e.json()).then(e=>{n=e.REGULAR_REGISTRATION[0],i(6,y=n.congrats),i(7,b=n.accCreated),i(8,v=n.accCreatedMsg)}).catch(e=>{console.error(e)}),window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P)})),e.$$set=e=>{"endpoint"in e&&i(0,s=e.endpoint),"cmsendpoint"in e&&i(13,a=e.cmsendpoint),"imagedesktop"in e&&i(1,l=e.imagedesktop),"playerid"in e&&i(14,c=e.playerid),"session"in e&&i(15,u=e.session),"trackedanalyticsdata"in e&&i(16,p=e.trackedanalyticsdata)},e.$$.update=()=>{e.$$.dirty[0]},[s,l,d,h,f,m,y,b,v,T,o,w,()=>{window.postMessage({type:"ToLogin"},window.location.href)},a,c,u,p,function(e){I[e?"unshift":"push"](()=>{o=e,i(10,o)})}]}customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",class extends u{constructor(e){super(),this.shadowRoot.innerHTML='<style>.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.AddressPostalCodeContainer{display:flex;gap:16px}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer input,.MobileContainer input,.MobileContainer select{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}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.NationalityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:#D1D1D1;border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:#D0046C}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:"";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:#FD2839;font-size:14px}.RegisterError{color:#FD2839;font-size:16px;line-height:19.2px}.RegisterStepNext{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;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>',c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Zn,qn,r,{userconsentexists:0,endpoint:33},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["userconsentexists","endpoint"]}get userconsentexists(){return this.$$.ctx[0]}set userconsentexists(e){this.$set({userconsentexists:e}),w()}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$set({endpoint:e}),w()}});class ri extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>.RegisterFormWrapper{background:#F9F8F8;display:inline-flex;width:100%}.RegisterFormImage{background-position:center;background-size:cover;background-repeat:no-repeat;flex:1 1 100%}.RegisterFormContainer{flex:1 1 100%;padding:25.008px;height:520px;overflow-y:auto;scrollbar-color:#cfcfcf #f1f1f1;scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:10px;height:auto;overflow-y:initial}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:#f1f1f1}.RegisterFormContainer::-webkit-scrollbar-thumb{background:#cfcfcf}.RegisterSteps{display:flex;gap:10px;padding:10px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:4px;background-color:#D1D1D1}.RegisterStepDashColor{background-color:#D0046C}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:#16CE16;font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:#58586B;font-size:16px;line-height:19.2px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:#000000;font-size:17.6px;line-height:22.4px}.RegisterConfirmationGoToLogin{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;margin-top:24px}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ti,ei,r,{endpoint:0,cmsendpoint:13,imagedesktop:1,playerid:14,session:15,trackedanalyticsdata:16},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","cmsendpoint","imagedesktop","playerid","session","trackedanalyticsdata"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),w()}get cmsendpoint(){return this.$$.ctx[13]}set cmsendpoint(e){this.$set({cmsendpoint:e}),w()}get imagedesktop(){return this.$$.ctx[1]}set imagedesktop(e){this.$set({imagedesktop:e}),w()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$set({playerid:e}),w()}get session(){return this.$$.ctx[15]}set session(e){this.$set({session:e}),w()}get trackedanalyticsdata(){return this.$$.ctx[16]}set trackedanalyticsdata(e){this.$set({trackedanalyticsdata:e}),w()}}return customElements.get("general-player-register-form")||customElements.define("general-player-register-form",ri),ri});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function ve(){}function p(e){return e()}function d(){return Object.create(null)}function we(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Ee(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function _e(e){e.parentNode.removeChild(e)}function t(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Te(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xe(e){return document.createTextNode(e)}function Se(){return xe(" ")}function U(){return xe("")}function Ae(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Pe(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function i(e,t,r){t in e?e[t]=r:Pe(e,t,r)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Re(e,t){e.value=null==t?"":t}function m(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function Ie(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}function O(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let f;function g(e){f=e}function D(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const y=[],I=[],o=[],s=[],b=Promise.resolve();let v=!1;function Le(e){o.push(e)}let a=!1;const l=new Set;function w(){if(!a){a=!0;do{for(let e=0;e<y.length;e+=1){var t=y[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),we(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Le))}}(t.$$)}for(g(null),y.length=0;I.length;)I.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];l.has(r)||(l.add(r),r())}}while(o.length=0,y.length);for(;s.length;)s.pop()();v=!1,a=!1,l.clear()}}const E=new Set;function c(n,e,t,r,i,o,s=[-1]){var a,l=f;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:ve,not_equal:i,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:d(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(y.push(e),v||(v=!0,b.then(w)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,we(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const ve=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(ve),ve.forEach(_e)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(E.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||Le(()=>{var e=o.map(p).filter(h);s?s.push(...e):we(e),t.$$.on_mount=[]}),a.forEach(Le)}(n,e.target,e.anchor,e.customElement),w()}g(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){we(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(we(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=ve}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var _,T,x="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==x&&x,S="URLSearchParams"in x,A="Symbol"in x&&"iterator"in Symbol,P="FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(e){return!1}}(),R="FormData"in x,L="ArrayBuffer"in x;function k(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function N(e){return e="string"!=typeof e?String(e):e}function M(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function $(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function B(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function G(e){var t=new FileReader,r=B(t);return t.readAsArrayBuffer(e),r}function j(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:P&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:R&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:S&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():L&&P&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=j(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):L&&(ArrayBuffer.prototype.isPrototypeOf(e)||T(e))?this._bodyArrayBuffer=j(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P&&(this.blob=function(){var e=$(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?$(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(G)}),this.text=function(){var e,t,r=$(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=B(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},R&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}L&&(_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],T=ArrayBuffer.isView||function(e){return e&&-1<_.indexOf(Object.prototype.toString.call(e))}),F.prototype.append=function(e,t){e=k(e),t=N(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},F.prototype.delete=function(e){delete this.map[k(e)]},F.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},F.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},F.prototype.set=function(e,t){this.map[k(e)]=N(t)},F.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},F.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),M(r)},F.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),M(t)},F.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),M(r)},A&&(F.prototype[Symbol.iterator]=F.prototype.entries);var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function V(e,t){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof V){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new F(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new F(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<H.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function q(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function X(e,t){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new F(t.headers),this.url=t.url||"",this._initBody(e)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})},z.call(V.prototype),z.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},X.error=function(){var e=new X(null,{status:0,statusText:""});return e.type="error",e};var Z=[301,302,303,307,308];X.redirect=function(e,t){if(-1===Z.indexOf(t))throw new RangeError("Invalid status code");return new X(null,{status:t,headers:{location:e}})};var Y=x.DOMException;try{new Y}catch(ve){(Y=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Y.prototype.constructor=Y}function W(n,s){return new Promise(function(i,e){var t=new V(n,s);if(t.signal&&t.signal.aborted)return e(new Y("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new F,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new X(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Y("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&x.location.href?x.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(P?o.responseType="blob":L&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof F?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,N(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}W.polyfill=!0,x.fetch||(x.fetch=W,x.Headers=F,x.Request=V,x.Response=X),self.fetch.bind(self);var Q=function(e,t){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function J(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function te(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function re(e){return"function"==typeof e}function ne(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var ie=ne(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function oe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var se=(le.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=J(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(re(o))try{o()}catch(e){i=e instanceof ie?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=J(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{ue(u)}catch(e){i=null!=i?i:[],e instanceof ie?i=te(te([],ee(i)),ee(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new ie(i)}},le.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ue(e);else{if(e instanceof le){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},le.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},le.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},le.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&oe(t,e)},le.prototype.remove=function(e){var t=this._teardowns;t&&oe(t,e),e instanceof le&&e._removeParent(this)},le.EMPTY=((Vt=new le).closed=!0,Vt),le),ae=se.EMPTY;function le(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ce(e){return e instanceof se||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function ue(e){re(e)?e():e.unsubscribe()}var pe=void 0,de=!1,he=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,te([],ee(e)))};function fe(){}function me(e){e()}var ge,ye,be=(K(ke,ye=se),ke.create=function(e,t,r){return new Oe(e,t,r)},ke.prototype.next=function(e){this.isStopped||this._next(e)},ke.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ke.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ke.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ye.prototype.unsubscribe.call(this),this.destination=null)},ke.prototype._next=function(e){this.destination.next(e)},ke.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ke.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ke),Oe=(K(De,ge=be),De);function De(e,t,r){var n,i,o=ge.call(this)||this;return re(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&de?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Ne(i):fe,error:Ne(null!=t?t:Me),complete:r?Ne(r):fe},o}function ke(e){var t=ye.call(this)||this;return t.isStopped=!1,e?ce(t.destination=e)&&e.add(t):t.destination=Fe,t}function Ne(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,te([],ee(e)))}catch(e){t=e,he(function(){throw t})}}}function Me(e){throw e}var Fe={closed:!0,next:fe,error:Me,complete:fe},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function $e(e){return e}var Be=(Ge.prototype.lift=function(e){var t=new Ge;return t.source=this,t.operator=e,t},Ge.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof be||n&&re(n.next)&&re(n.error)&&re(n.complete)&&ce(n)?e:new Oe(e,t,r);return me(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ge.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ge.prototype.forEach=function(n,e){var i=this;return new(e=je(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ge.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ge.prototype[Ue]=function(){return this},Ge.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?$e:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ge.prototype.toPromise=function(e){var n=this;return new(e=je(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ge.create=function(e){return new Ge(e)},Ge);function Ge(e){e&&(this._subscribe=e)}function je(e){return null!==(e=null!=e?e:pe)&&void 0!==e?e:Promise}var ze,He,Ve,qe=ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=(K(Je,Ve=Be),Je.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},Je.prototype._throwIfClosed=function(){if(this.closed)throw new qe},Je.prototype.next=function(o){var s=this;me(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=J(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Je.prototype.error=function(t){var r=this;me(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Je.prototype.complete=function(){var t=this;me(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Je.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Je.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Je.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},Je.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Je.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ae:(n.push(e),new se(function(){return oe(n,e)}))},Je.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Je.prototype.asObservable=function(){var e=new Be;return e.source=this,e},Je.create=function(e,t){return new Ze(e,t)},Je),Ze=(K(Ke,He=Xe),Ke.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Ke.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Ke.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Ke.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ae},Ke),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},We=(K(Qe,ze=Xe),Qe.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),ze.prototype.next.call(this,e)},Qe.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Qe.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},Qe);function Qe(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ye);var n=ze.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Ke(e,t){var r=He.call(this)||this;return r.destination=e,r.source=t,r}function Je(){var e=Ve.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let et=[],tt={};const rt=[];function nt(n,i=ve){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!rt.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),rt.push(t,n)}if(e){for(let e=0;e<rt.length;e+=2)rt[e][0](rt[e+1]);rt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=ve){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||ve),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function it(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return nt(t,t=>{let n=!1;const i=[];let o=0,r=ve;const s=()=>{var e;o||(r(),e=a(l?i[0]:i,t),u?t(e):r=h(e)?e:ve)},e=c.map((r,t)=>function(e){if(null==r)return ve;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{i[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}]));return n=!0,s(),function(){we(e),r()}}).subscribe,1}var ot=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var t},st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function at(e,t){return!1!==t.clone&&t.isMergeableObject(e)?dt(Array.isArray(e)?[]:{},e,t):e}function lt(e,t,r){return e.concat(t).map(function(e){return at(e,r)})}function ct(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ut(e,t){try{return t in e}catch(e){return!1}}function pt(n,i,o){var s={};return o.isMergeableObject(n)&&ct(n).forEach(function(e){s[e]=at(n[e],o)}),ct(i).forEach(function(t){var e,r;(!ut(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ut(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return dt;var e=o.customMerge(t);return"function"==typeof e?e:dt}()(n[t],i[t],o):s[t]=at(i[t],o))}),s}function dt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||lt,r.isMergeableObject=r.isMergeableObject||ot,r.cloneUnlessOtherwiseSpecified=at;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):pt(e,t,r):at(t,r)}dt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return dt(e,t,r)},{})};var ht=dt,ft=function(e,t){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var gt,yt,bt,vt=function(){return(vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function wt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function Et(e){return e.type===yt.literal}function Ct(e){return e.type===yt.number}function _t(e){return e.type===yt.date}function Tt(e){return e.type===yt.time}function xt(e){return e.type===yt.select}function St(e){return e.type===yt.plural}function At(e){return e.type===yt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===bt.number}function Rt(e){return e&&"object"==typeof e&&e.type===bt.dateTime}(qt=gt=gt||{})[qt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",qt[qt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",qt[qt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",qt[qt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",qt[qt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",qt[qt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",qt[qt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",qt[qt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",qt[qt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",qt[qt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",qt[qt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",qt[qt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",qt[qt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",qt[qt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",qt[qt.INVALID_TAG=23]="INVALID_TAG",qt[qt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",qt[qt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",qt[qt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Xt=yt=yt||{})[Xt.literal=0]="literal",Xt[Xt.argument=1]="argument",Xt[Xt.number=2]="number",Xt[Xt.date=3]="date",Xt[Xt.time=4]="time",Xt[Xt.select=5]="select",Xt[Xt.plural=6]="plural",Xt[Xt.pound=7]="pound",Xt[Xt.tag=8]="tag",(Zt=bt=bt||{})[Zt.number=0]="number",Zt[Zt.dateTime=1]="dateTime";var It=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Lt=/(?:[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 Ot,Dt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Nt=/^(@+)?(\+|#+)?$/g,Mt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ft=/^(0+)$/;function Ut(e){var n={};return e.replace(Nt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function $t(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Bt(e){return $t(e)||{}}function Gt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=vt(vt(vt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return vt(vt({},e),Bt(t))},{}));continue;case"engineering":s=vt(vt(vt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return vt(vt({},e),Bt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Mt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ft.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(kt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(kt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=vt(vt({},s),Ut(i.options[0])))}else Nt.test(i.stem)?s=vt(vt({},s),Ut(i.stem)):((n=$t(i.stem))&&(s=vt(vt({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ft.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=vt(vt({},s),n)))}return s}var jt=new RegExp("^"+It.source+"*"),zt=new RegExp(It.source+"*$");function Ht(e,t){return{start:e,end:t}}var Vt=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Xe=!!Object.fromEntries,qt=!!String.prototype.codePointAt,Xt=!!String.prototype.trimStart,Zt=!!String.prototype.trimEnd,Yt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},It=!0;try{It="a"===(null===(Ot=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ot?void 0:Ot[0])}catch(ve){It=!1}var Wt,Qt,Kt=Vt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Jt=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},er=Xe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},tr=qt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},rr=Xt?function(e){return e.trimStart()}:function(e){return e.replace(jt,"")},nr=Zt?function(e){return e.trimEnd()}:function(e){return e.replace(zt,"")};function ir(e,t){return new RegExp(e,t)}Qt=It?(Wt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Wt.lastIndex=t,null!==(e=Wt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=tr(e,t);if(void 0===i||lr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Jt.apply(void 0,n)};var or=(sr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},sr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(gt.UNMATCHED_CLOSING_TAG,Ht(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ar(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:yt.pound,location:Ht(o,this.clonePosition())})}}}return{val:n,err:null}},sr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:yt.literal,value:"<"+n+"/>",location:Ht(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(gt.INVALID_TAG,Ht(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(gt.UNMATCHED_CLOSING_TAG,Ht(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:yt.tag,value:n,children:e,location:Ht(r,this.clonePosition())},err:null}:this.error(gt.INVALID_TAG,Ht(t,this.clonePosition())))}return this.error(gt.UNCLOSED_TAG,Ht(r,this.clonePosition()))}return this.error(gt.INVALID_TAG,Ht(r,this.clonePosition()))},sr.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},sr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Ht(r,this.clonePosition());return{val:{type:yt.literal,value:n,location:r},err:null}},sr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ar(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},sr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Jt.apply(void 0,t)},sr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Jt(r))},sr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(gt.EMPTY_ARGUMENT,Ht(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(gt.MALFORMED_ARGUMENT,Ht(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:yt.argument,value:n,location:Ht(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(gt.MALFORMED_ARGUMENT,Ht(r,this.clonePosition()))}},sr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Qt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ht(e,this.clonePosition())}},sr.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(gt.EXPECT_ARGUMENT_TYPE,Ht(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=nr(d.val)).length)return this.error(gt.EXPECT_ARGUMENT_STYLE,Ht(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Ht(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var u=Ht(n,this.clonePosition());if(l&&Kt(null==l?void 0:l.style,"::",0)){c=rr(l.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?d:{val:{type:yt.number,value:r,location:u,style:d.val},err:null};if(0===c.length)return this.error(gt.EXPECT_DATE_TIME_SKELETON,u);var p={type:bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Lt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===s?yt.date:yt.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?yt.number:"date"===s?yt.date:yt.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(gt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ht(l,vt({},l)));this.bumpSpace();var d,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ht(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=d.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((h=this.tryParseArgumentClose(n)).err)return h;var h=Ht(n,this.clonePosition());return"select"===s?{val:{type:yt.select,value:r,options:er(u.val),location:h},err:null}:{val:{type:yt.plural,value:r,options:er(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(gt.INVALID_ARGUMENT_TYPE,Ht(o,a))}},sr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},sr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ht(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},sr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Dt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(gt.INVALID_NUMBER_SKELETON,t)}return{val:{type:bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Gt(r):{}},err:null}},sr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,gt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ht(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ht(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;o.push([a,{value:u.val,location:Ht(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===o.length?this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ht(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(gt.MISSING_OTHER_CLAUSE,Ht(this.clonePosition(),this.clonePosition())):{val:o,err:null}},sr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=Ht(n,this.clonePosition());return i?Yt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},sr.prototype.offset=function(){return this.position.offset},sr.prototype.isEOF=function(){return this.offset()===this.message.length},sr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},sr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},sr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},sr.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},sr.prototype.bumpIf=function(e){if(Kt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},sr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},sr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},sr.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},sr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},sr);function sr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ar(e){return 97<=e&&e<=122||65<=e&&e<=90}function lr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function cr(e,t){t=vt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new or(e,t).parse();if(r.err){e=SyntaxError(gt[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,xt(e)||St(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ct(e)&&Pt(e.style)||(_t(e)||Tt(e))&&Rt(e.style)?delete e.style.location:At(e)&&r(e.children)})}(r.val),r.val}function ur(e,t){var r=t&&t.cache?t.cache:yr,n=t&&t.serializer?t.serializer:fr;return(t&&t.strategy?t.strategy:function(e,t){return hr(e,this,1===e.length?pr:dr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function pr(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function hr(e,t,r,n,i){return r.bind(t,e,n,i)}var fr=function(){return JSON.stringify(arguments)};function mr(){this.cache=Object.create(null)}mr.prototype.has=function(e){return e in this.cache},mr.prototype.get=function(e){return this.cache[e]},mr.prototype.set=function(e,t){this.cache[e]=t};var gr,yr={create:function(){return new mr}},br={variadic:function(e,t){return hr(e,this,dr,t.cache.create(),t.serializer)},monadic:function(e,t){return hr(e,this,pr,t.cache.create(),t.serializer)}};(It=gr=gr||{}).MISSING_VALUE="MISSING_VALUE",It.INVALID_VALUE="INVALID_VALUE",It.MISSING_INTL_API="MISSING_INTL_API";var vr,wr,Er,Cr,_r,Tr=(mt(Lr,_r=Error),Lr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Lr),xr=(mt(Ir,Cr=Tr),Ir),Sr=(mt(Rr,Er=Tr),Rr),Ar=(mt(Pr,wr=Tr),Pr);function Pr(e,t){return wr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',gr.MISSING_VALUE,t)||this}function Rr(e,t,r){return Er.call(this,'Value for "'+e+'" must be of type '+t,gr.INVALID_VALUE,r)||this}function Ir(e,t,r,n){return Cr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',gr.INVALID_VALUE,n)||this}function Lr(e,t,r){e=_r.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Or(e,t,r,n,i,o,s){if(1===e.length&&Et(e[0]))return[{type:vr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Et(u))a.push({type:vr.literal,value:u.value});else if(u.type===yt.pound)"number"==typeof o&&a.push({type:vr.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!(i&&p in i))throw new Ar(p,s);var d=i[p];if(u.type===yt.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?vr.literal:vr.object,value:d});else if(_t(u)){var h="string"==typeof u.style?n.date[u.style]:Rt(u.style)?u.style.parsedOptions:void 0;a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(Tt(u))h="string"==typeof u.style?n.time[u.style]:Rt(u.style)?u.style.parsedOptions:void 0,a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)});else if(Ct(u))(h="string"==typeof u.style?n.number[u.style]:Pt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:vr.literal,value:r.getNumberFormat(t,h).format(d)});else{if(At(u)){var f=u.children,m=u.value,p=i[m];if("function"!=typeof p)throw new Sr(m,"function",s);f=p(Or(f,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?vr.literal:vr.object,value:e}}))}if(xt(u)){if(!(g=u.options[d]||u.options.other))throw new xr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i))}else if(St(u)){if(!(g=u.options["="+d])){if(!Intl.PluralRules)throw new Tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new xr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i,d-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===vr.literal&&t.type===vr.literal?r.value+=t.value:e.push(t),e},[])}function Dr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(It=vr=vr||{})[It.literal=0]="literal",It[It.object=1]="object";var kr=(Object.defineProperty(Nr,"defaultLocale",{get:function(){return Nr.memoizedDefaultLocale||(Nr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nr.memoizedDefaultLocale=null,Nr.__parse=cr,Nr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Nr);function Nr(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Nr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===vr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Or(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Nr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Nr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?vt(vt(vt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=vt(vt({},r[t]),n[t]||{}),e},{})):r),e},vt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,wt([void 0],t)))},{cache:Dr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:br.variadic}),getDateTimeFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,wt([void 0],t)))},{cache:Dr(n.dateTime),strategy:br.variadic}),getPluralRules:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,wt([void 0],t)))},{cache:Dr(n.pluralRules),strategy:br.variadic})}}const Mr={},Fr=(t,r)=>{if(null!=r){if(r in Mr&&t in Mr[r])return Mr[r][t];var n,i,o=Kr(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,Br(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in Mr||(Mr[i]={}),n in Mr[i]||(Mr[i][n]=s),s)}}};let Ur;const $r=nt({});function Br(e){return e in Ur}it([$r],([e])=>Object.keys(e)),$r.subscribe(e=>Ur=e);const Gr={};function jr(e){return Gr[e]}function zr(e){return Kr(e).some(e=>{return null===(e=jr(e))||void 0===e?void 0:e.size})}function Hr(t,e){return Promise.all(e.map(e=>(function(e,t){Gr[e].delete(t),0===Gr[e].size&&delete Gr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete Mr[t],$r.update(e=>(e[t]=ht.all([e[t]||{},...r]),e))}(t,...e))}const Vr={};function qr(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Xr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zr=nt(!1);let Yr;const Wr=nt(null);function Qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=Xr.fallbackLocale){e=Qr(e);return t?[...new Set([...e,...Qr(t)])]:e}Wr.subscribe(e=>{Yr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Jr=Wr.set;Wr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Br(r))return r}}}(t)&&zr(t)){var{loadingDelay:r}=Xr;let e;return"undefined"!=typeof window&&null!=Yr&&r?e=window.setTimeout(()=>Zr.set(!0),r):Zr.set(!0),function e(t){if(!zr(t))return t in Vr?Vr[t]:void 0;const r=Kr(t).map(e=>{var t=jr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vr[t]=Promise.all(r.map(([e,t])=>Hr(e,t))).then(()=>zr(t)?e(t):void delete Vr[t]),Vr[t]}(t).then(()=>{Jr(t)}).finally(()=>{clearTimeout(e),Zr.set(!1)})}return Jr(t)},Wr.update=e=>Jr(e(Yr));const en=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},tn=(e,t)=>{var{formats:r}=Xr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},rn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=tn("number",r)),new Intl.NumberFormat(t,e)}),nn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=tn("date",r):0===Object.keys(e).length&&(e=tn("date","short")),new Intl.DateTimeFormat(t,e)}),on=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=tn("time",r):0===Object.keys(e).length&&(e=tn("time","short")),new Intl.DateTimeFormat(t,e)}),sn=en((e,t=Yr)=>new kr(e,t,Xr.formats,{ignoreTag:Xr.ignoreTag}));function an(){let r;return{c(){r=Te("p"),r.textContent="Email should contain '@' and a 2-3 letter long domain.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function ln(){let r;return{c(){r=Te("p"),r.textContent="Name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function cn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Pe(l,"class","a"),Pe(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"),Pe(l,"transform","translate(0)"),Pe(c,"class","a"),Pe(c,"cx","2.779"),Pe(c,"cy","2.779"),Pe(c,"r","2.779"),Pe(c,"transform","translate(20.827 30.303)"),Pe(a,"transform","translate(-14.185 -27.832)"),Pe(n,"class","TogglePasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.843"),Pe(n,"height","10.5"),Pe(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),u||(p=Ae(n,"click",r[35]),u=!0)},p:ve,d(e){e&&_e(n),u=!1,p()}}}function un(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Pe(l,"class","a"),Pe(l,"cx","0.05"),Pe(l,"cy","0.05"),Pe(l,"r","0.05"),Pe(l,"transform","translate(121.017 31.148)"),Pe(u,"class","a"),Pe(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Pe(u,"transform","translate(-142.164 -39.123)"),Pe(p,"class","a"),Pe(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Pe(p,"transform","translate(-136.413 -42.068)"),Pe(c,"transform","translate(117.499 27.37)"),Pe(h,"class","a"),Pe(h,"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"),Pe(h,"transform","translate(-110.856 -33.157)"),Pe(f,"class","a"),Pe(f,"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"),Pe(f,"transform","translate(-130.743 -29.617)"),Pe(d,"transform","translate(110.856 24.899)"),Pe(m,"class","a"),Pe(m,"width","0.972"),Pe(m,"height","15.861"),Pe(m,"rx","0.486"),Pe(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Pe(a,"transform","translate(-110.856 -23.242)"),Pe(n,"class","TogglePasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.844"),Pe(n,"height","12.887"),Pe(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),Ee(c,u),Ee(c,p),Ee(a,d),Ee(d,h),Ee(d,f),Ee(a,m),g||(y=Ae(n,"click",r[34]),g=!0)},p:ve,d(e){e&&_e(n),g=!1,y()}}}function pn(){let r;return{c(){r=Te("p"),r.textContent="Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function dn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Pe(l,"class","a"),Pe(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"),Pe(l,"transform","translate(0)"),Pe(c,"class","a"),Pe(c,"cx","2.779"),Pe(c,"cy","2.779"),Pe(c,"r","2.779"),Pe(c,"transform","translate(20.827 30.303)"),Pe(a,"transform","translate(-14.185 -27.832)"),Pe(n,"class","ToggleConfirmPasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.843"),Pe(n,"height","10.5"),Pe(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),u||(p=Ae(n,"click",r[39]),u=!0)},p:ve,d(e){e&&_e(n),u=!1,p()}}}function hn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=xe(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Pe(l,"class","a"),Pe(l,"cx","0.05"),Pe(l,"cy","0.05"),Pe(l,"r","0.05"),Pe(l,"transform","translate(121.017 31.148)"),Pe(u,"class","a"),Pe(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Pe(u,"transform","translate(-142.164 -39.123)"),Pe(p,"class","a"),Pe(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Pe(p,"transform","translate(-136.413 -42.068)"),Pe(c,"transform","translate(117.499 27.37)"),Pe(h,"class","a"),Pe(h,"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"),Pe(h,"transform","translate(-110.856 -33.157)"),Pe(f,"class","a"),Pe(f,"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"),Pe(f,"transform","translate(-130.743 -29.617)"),Pe(d,"transform","translate(110.856 24.899)"),Pe(m,"class","a"),Pe(m,"width","0.972"),Pe(m,"height","15.861"),Pe(m,"rx","0.486"),Pe(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Pe(a,"transform","translate(-110.856 -23.242)"),Pe(n,"class","ToggleConfirmPasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.844"),Pe(n,"height","12.887"),Pe(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),Ee(c,u),Ee(c,p),Ee(a,d),Ee(d,h),Ee(d,f),Ee(a,m),g||(y=Ae(n,"click",r[38]),g=!0)},p:ve,d(e){e&&_e(n),g=!1,y()}}}function fn(){let r;return{c(){r=Te("p"),r.textContent="Do not match with password.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function mn(){let r;return{c(){r=Te("p"),r.textContent="Security question must be at least 1 character long and maximum 120 characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function gn(){let r;return{c(){r=Te("p"),r.textContent="Security answer must be at least 1 character long and maximum 120 characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function yn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F,U,$,B,G,j,z,H,V,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se=r[0]&&an(),ae=r[1]&&ln();function le(e){return e[12]?un:cn}let ce=le(r),ue=ce(r),pe=r[2]&&pn();function de(e){return e[13]?hn:dn}let he=de(r),fe=he(r),me=r[3]&&fn(),ge=r[4]&&mn(),ye=r[5]&&gn();return{c(){n=Te("div"),i=Te("h2"),i.textContent="Create your account",o=Se(),s=Te("p"),a=xe("Already have an account? "),l=Te("span"),l.textContent="Login",c=Se(),u=Te("div"),p=Te("div"),d=Te("label"),d.innerHTML='Email:<span class="FormRequired">*</span>',h=Se(),f=Te("input"),m=Se(),se&&se.c(),y=Se(),b=Te("div"),v=Te("label"),v.innerHTML='Username:<span class="FormRequired">*</span>',w=Se(),E=Te("input"),C=Se(),ae&&ae.c(),T=Se(),x=Te("div"),S=Te("label"),S.innerHTML='Password:<span class="FormRequired">*</span>',A=Se(),P=Te("input"),R=Se(),ue.c(),I=Se(),pe&&pe.c(),O=Se(),D=Te("div"),k=Te("label"),k.innerHTML='Confirm Password:<span class="FormRequired">*</span>',N=Se(),M=Te("input"),F=Se(),fe.c(),U=Se(),me&&me.c(),B=Se(),G=Te("div"),j=Te("label"),j.innerHTML='Security Question:<span class="FormRequired">*</span>',z=Se(),H=Te("input"),V=Se(),ge&&ge.c(),X=Se(),Z=Te("div"),Y=Te("label"),Y.innerHTML='Security Answer:<span class="FormRequired">*</span>',W=Se(),Q=Te("input"),K=Se(),ye&&ye.c(),ee=Se(),te=Te("button"),re=xe("Next"),this.c=ve,Pe(i,"class","RegisterFormTitle"),Pe(l,"class","FormLoginCallToAction"),Pe(s,"class","RegisterFormSubtitle"),Pe(n,"class","RegisterFormHeader"),Pe(d,"for","Email"),Pe(f,"type","text"),Pe(f,"id","Email"),Pe(p,"class",g="EmailContainer "+(r[0]?"InvalidField":"")),Pe(v,"for","UserName"),Pe(E,"type","text"),Pe(E,"id","UserName"),Pe(b,"class",_="UserContainer "+(r[1]?"InvalidField":"")),Pe(S,"for","Password"),Pe(P,"type","password"),Pe(P,"id","Password"),Pe(x,"class",L="PasswordContainer "+(r[2]?"InvalidField":"")),Pe(k,"for","ConfirmPassword"),Pe(M,"type","password"),Pe(M,"id","ConfirmPassword"),Pe(D,"class",$="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),Pe(j,"for","SecurityQuestion"),Pe(H,"type","text"),Pe(H,"id","SecurityQuestion"),Pe(G,"class",q="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),Pe(Y,"for","SecurityAnswer"),Pe(Q,"type","text"),Pe(Q,"id","SecurityAnswer"),Pe(Z,"class",J="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),Pe(u,"class","RegisterFormContent"),Pe(te,"class","RegisterStepNext"),te.disabled=ne=!r[16]},m(e,t){Ce(e,n,t),Ee(n,i),Ee(n,o),Ee(n,s),Ee(s,a),Ee(s,l),Ce(e,c,t),Ce(e,u,t),Ee(u,p),Ee(p,d),Ee(p,h),Ee(p,f),Re(f,r[7]),Ee(p,m),se&&se.m(p,null),Ee(u,y),Ee(u,b),Ee(b,v),Ee(b,w),Ee(b,E),Re(E,r[6]),Ee(b,C),ae&&ae.m(b,null),Ee(u,T),Ee(u,x),Ee(x,S),Ee(x,A),Ee(x,P),Re(P,r[8]),r[33](P),Ee(x,R),ue.m(x,null),Ee(x,I),pe&&pe.m(x,null),Ee(u,O),Ee(u,D),Ee(D,k),Ee(D,N),Ee(D,M),Re(M,r[9]),r[37](M),Ee(D,F),fe.m(D,null),Ee(D,U),me&&me.m(D,null),Ee(u,B),Ee(u,G),Ee(G,j),Ee(G,z),Ee(G,H),Re(H,r[10]),Ee(G,V),ge&&ge.m(G,null),Ee(u,X),Ee(u,Z),Ee(Z,Y),Ee(Z,W),Ee(Z,Q),Re(Q,r[11]),Ee(Z,K),ye&&ye.m(Z,null),Ce(e,ee,t),Ce(e,te,t),Ee(te,re),ie||(oe=[Ae(l,"click",r[29]),Ae(f,"input",r[30]),Ae(f,"blur",r[18]),Ae(E,"input",r[31]),Ae(E,"blur",r[19]),Ae(P,"input",r[32]),Ae(P,"blur",r[24]),Ae(M,"input",r[36]),Ae(M,"blur",r[25]),Ae(H,"input",r[40]),Ae(H,"blur",r[26]),Ae(Q,"input",r[41]),Ae(Q,"keyup",r[27]),Ae(te,"click",r[28])],ie=!0)},p(e,t){128&t[0]&&f.value!==e[7]&&Re(f,e[7]),e[0]?se||(se=an(),se.c(),se.m(p,null)):se&&(se.d(1),se=null),1&t[0]&&g!==(g="EmailContainer "+(e[0]?"InvalidField":""))&&Pe(p,"class",g),64&t[0]&&E.value!==e[6]&&Re(E,e[6]),e[1]?ae||(ae=ln(),ae.c(),ae.m(b,null)):ae&&(ae.d(1),ae=null),2&t[0]&&_!==(_="UserContainer "+(e[1]?"InvalidField":""))&&Pe(b,"class",_),256&t[0]&&P.value!==e[8]&&Re(P,e[8]),ce===(ce=le(e))&&ue?ue.p(e,t):(ue.d(1),ue=ce(e),ue&&(ue.c(),ue.m(x,I))),e[2]?pe||(pe=pn(),pe.c(),pe.m(x,null)):pe&&(pe.d(1),pe=null),4&t[0]&&L!==(L="PasswordContainer "+(e[2]?"InvalidField":""))&&Pe(x,"class",L),512&t[0]&&M.value!==e[9]&&Re(M,e[9]),he===(he=de(e))&&fe?fe.p(e,t):(fe.d(1),fe=he(e),fe&&(fe.c(),fe.m(D,U))),e[3]?me||(me=fn(),me.c(),me.m(D,null)):me&&(me.d(1),me=null),8&t[0]&&$!==($="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&Pe(D,"class",$),1024&t[0]&&H.value!==e[10]&&Re(H,e[10]),e[4]?ge||(ge=mn(),ge.c(),ge.m(G,null)):ge&&(ge.d(1),ge=null),16&t[0]&&q!==(q="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&Pe(G,"class",q),2048&t[0]&&Q.value!==e[11]&&Re(Q,e[11]),e[5]?ye||(ye=gn(),ye.c(),ye.m(Z,null)):ye&&(ye.d(1),ye=null),32&t[0]&&J!==(J="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&Pe(Z,"class",J),65536&t[0]&&ne!==(ne=!e[16])&&(te.disabled=ne)},i:ve,o:ve,d(e){e&&_e(n),e&&_e(c),e&&_e(u),se&&se.d(),ae&&ae.d(),r[33](null),ue.d(),pe&&pe.d(),r[37](null),fe.d(),me&&me.d(),ge&&ge.d(),ye&&ye.d(),e&&_e(ee),e&&_e(te),ie=!1,we(oe)}}}function bn(e,t,r){let n,i,o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,p="",d="",h="",f="",m="",g="",y=!1,b=!1,v=!1;const w=()=>{r(16,v=!(o||s||a||l||c||u)),(p.length<=0||d.length<=0||h.length<=0||f.length<=0||m.length<=0||g.length<=0)&&r(16,v=!1)},E=()=>{window.postMessage({type:"ToLogin"},window.location.href)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},_=()=>{r(12,y=!0),A()},T=()=>{r(13,b=!0),P()},x=()=>{r(12,y=!1),A()},S=()=>{r(13,b=!1),P()},A=()=>{r(14,n.type=y?"text":"password",n)},P=()=>{r(15,i.type=b?"text":"password",i)},R=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,d=e.data.userData.email),r(6,p=e.data.userData.username),r(8,h=e.data.userData.password),r(9,f=e.data.userData.password),r(10,m=e.data.userData.securityQuestion),r(11,g=e.data.userData.securityAnswer),w())};return D(()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)})),[o,s,a,l,c,u,p,d,h,f,m,g,y,b,n,i,v,E,()=>{var e;r(0,(e=d,o=!C.email.test(e))),w()},()=>{var e;r(1,(e=p,s=!C.user.test(e))),w()},_,T,x,S,()=>{var e;r(2,(e=h,a=!C.password.test(e))),h!==f&&0<f.length&&r(3,l=!0),w()},()=>{r(3,l=!(h===f)),w()},()=>{r(4,c=!(m&&m.length<=120)),w()},()=>{r(5,u=!(g&&g.length<=120)),w()},()=>{var e={userEmail:d,userValue:p,userPassword:h,confirmUserPassword:f,securityQuestion:m,securityAnswer:g};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},()=>E(),function(){d=this.value,r(7,d)},function(){p=this.value,r(6,p)},function(){h=this.value,r(8,h)},function(e){I[e?"unshift":"push"](()=>{n=e,r(14,n)})},()=>x(),()=>_(),function(){f=this.value,r(9,f)},function(e){I[e?"unshift":"push"](()=>{i=e,r(15,i)})},()=>S(),()=>T(),function(){m=this.value,r(10,m)},function(){g=this.value,r(11,g)}]}function vn(e,t,r){const n=e.slice();return n[37]=t[r],n}function wn(e,t,r){const n=e.slice();return n[40]=t[r],n}function En(e,t,r){const n=e.slice();return n[43]=t[r],n}function Cn(e,t,r){const n=e.slice();return n[46]=t[r],n}function _n(e,t,r){const n=e.slice();return n[49]=t[r],n}function Tn(e){let r,n,t=e[49]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[49],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function xn(){let r;return{c(){r=Te("p"),r.textContent="First name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Sn(){let r;return{c(){r=Te("p"),r.textContent="Last name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function An(e){let r,n,t=e[46]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[46],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function Pn(e){let r,n,t=e[43]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[43],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function Rn(e){let r,n,t=e[40]+"";return{c(){r=Te("option"),n=xe(t),r.__value=e[40],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&_e(r)}}}function In(){let r;return{c(){r=Te("p"),r.textContent="Birth place must be at least 1 character long.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Ln(e){let r,n,i,o=e[37]+"";return{c(){r=Te("option"),n=xe(o),r.__value=i=e[37],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){1024&t[0]&&o!==(o=e[37]+"")&&C(n,o),1024&t[0]&&i!==(i=e[37])&&(r.__value=i,r.value=r.__value)},d(e){e&&_e(r)}}}function On(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,e,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F,U,$,B,G,j,z,H,V,q,X,Z,Y,W,Q,K,J=r[13],ee=[];for(let e=0;e<J.length;e+=1)ee[e]=Tn(_n(r,J,e));let te=r[0]&&xn(),re=r[1]&&Sn(),ne=r[14],ie=[];for(let e=0;e<ne.length;e+=1)ie[e]=An(Cn(r,ne,e));let oe=r[15],se=[];for(let e=0;e<oe.length;e+=1)se[e]=Pn(En(r,oe,e));let ae=r[16],le=[];for(let e=0;e<ae.length;e+=1)le[e]=Rn(wn(r,ae,e));let ce=r[2]&&In(),ue=r[10],pe=[];for(let e=0;e<ue.length;e+=1)pe[e]=Ln(vn(r,ue,e));return{c(){n=Te("div"),i=Te("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',o=Se(),s=Te("div"),a=Te("div"),l=Te("label"),l.innerHTML='Title:<span class="FormRequired">*</span>',c=Se(),u=Te("select");for(let e=0;e<ee.length;e+=1)ee[e].c();p=xe("}"),d=Se(),h=Te("div"),f=Te("label"),f.innerHTML='First Name:<span class="FormRequired">*</span>',m=Se(),g=Te("input"),y=Se(),te&&te.c(),b=Se(),v=Te("div"),w=Te("label"),w.innerHTML='Last Name:<span class="FormRequired">*</span>',E=Se(),C=Te("input"),_=Se(),re&&re.c(),x=Se(),S=Te("div"),A=Te("label"),A.innerHTML='Date of Birth:<span class="FormRequired">*</span>',P=Se(),R=Te("div"),I=Te("select");for(let e=0;e<ie.length;e+=1)ie[e].c();L=Se(),O=Te("select");for(let e=0;e<se.length;e+=1)se[e].c();D=Se(),k=Te("select");for(let e=0;e<le.length;e+=1)le[e].c();N=Se(),M=Te("div"),F=Te("label"),F.innerHTML='Birth Place:<span class="FormRequired">*</span>',U=Se(),$=Te("input"),B=Se(),ce&&ce.c(),j=Se(),z=Te("div"),H=Te("label"),H.innerHTML='Currency:<span class="FormRequired">*</span>',V=Se(),q=Te("select");for(let e=0;e<pe.length;e+=1)pe[e].c();X=Se(),Z=Te("button"),Y=xe("Next"),this.c=ve,Pe(i,"class","BackButton"),Pe(n,"class","RegisterFormHeader"),Pe(l,"for","Title"),Pe(u,"id","Title"),void 0===r[3]&&Le(()=>r[23].call(u)),Pe(a,"class","UserTitleContainer"),Pe(f,"for","FirstName"),Pe(g,"type","text"),Pe(g,"id","FirstName"),Pe(h,"class",e="FirstNameContainer "+(r[0]?"InvalidField":"")),Pe(w,"for","LastName"),Pe(C,"type","text"),Pe(C,"id","LastName"),Pe(v,"class",T="LastNameContainer "+(r[1]?"InvalidField":"")),Pe(A,"for","BirthDate"),Pe(I,"class","BirthDaySelected"),void 0===r[6]&&Le(()=>r[26].call(I)),Pe(O,"class","BirthMonthSelected"),void 0===r[7]&&Le(()=>r[27].call(O)),Pe(k,"class","BirthYearSelected"),void 0===r[8]&&Le(()=>r[28].call(k)),Pe(R,"class","BirthDateOptions"),Pe(S,"class","BirthDateContainer"),Pe(F,"for","BirthPlace"),Pe($,"type","text"),Pe($,"id","BirthPlace"),Pe(M,"class",G="BirthPlaceContainer "+(r[2]?"InvalidField":"")),Pe(H,"for","Currency"),Pe(q,"id","Currency"),void 0===r[11]&&Le(()=>r[30].call(q)),Pe(z,"class","CurrencyContainer"),Pe(s,"class","RegisterFormContent"),Pe(Z,"class","RegisterStepNext"),Z.disabled=W=!r[12]},m(e,t){Ce(e,n,t),Ee(n,i),Ce(e,o,t),Ce(e,s,t),Ee(s,a),Ee(a,l),Ee(a,c),Ee(a,u);for(let e=0;e<ee.length;e+=1)ee[e].m(u,null);Ee(u,p),Ie(u,r[3]),Ee(s,d),Ee(s,h),Ee(h,f),Ee(h,m),Ee(h,g),Re(g,r[4]),Ee(h,y),te&&te.m(h,null),Ee(s,b),Ee(s,v),Ee(v,w),Ee(v,E),Ee(v,C),Re(C,r[5]),Ee(v,_),re&&re.m(v,null),Ee(s,x),Ee(s,S),Ee(S,A),Ee(S,P),Ee(S,R),Ee(R,I);for(let e=0;e<ie.length;e+=1)ie[e].m(I,null);Ie(I,r[6]),Ee(R,L),Ee(R,O);for(let e=0;e<se.length;e+=1)se[e].m(O,null);Ie(O,r[7]),Ee(R,D),Ee(R,k);for(let e=0;e<le.length;e+=1)le[e].m(k,null);Ie(k,r[8]),Ee(s,N),Ee(s,M),Ee(M,F),Ee(M,U),Ee(M,$),Re($,r[9]),Ee(M,B),ce&&ce.m(M,null),Ee(s,j),Ee(s,z),Ee(z,H),Ee(z,V),Ee(z,q);for(let e=0;e<pe.length;e+=1)pe[e].m(q,null);Ie(q,r[11]),Ce(e,X,t),Ce(e,Z,t),Ee(Z,Y),Q||(K=[Ae(i,"click",r[21]),Ae(u,"change",r[23]),Ae(g,"input",r[24]),Ae(g,"blur",r[17]),Ae(C,"input",r[25]),Ae(C,"blur",r[18]),Ae(I,"change",r[26]),Ae(O,"change",r[27]),Ae(k,"change",r[28]),Ae($,"input",r[29]),Ae($,"keyup",r[19]),Ae(q,"change",r[30]),Ae(Z,"click",r[20])],Q=!0)},p(t,r){if(8192&r[0]){let e;for(J=t[13],e=0;e<J.length;e+=1){var n=_n(t,J,e);ee[e]?ee[e].p(n,r):(ee[e]=Tn(n),ee[e].c(),ee[e].m(u,p))}for(;e<ee.length;e+=1)ee[e].d(1);ee.length=J.length}if(8200&r[0]&&Ie(u,t[3]),16&r[0]&&g.value!==t[4]&&Re(g,t[4]),t[0]?te||(te=xn(),te.c(),te.m(h,null)):te&&(te.d(1),te=null),1&r[0]&&e!==(e="FirstNameContainer "+(t[0]?"InvalidField":""))&&Pe(h,"class",e),32&r[0]&&C.value!==t[5]&&Re(C,t[5]),t[1]?re||(re=Sn(),re.c(),re.m(v,null)):re&&(re.d(1),re=null),2&r[0]&&T!==(T="LastNameContainer "+(t[1]?"InvalidField":""))&&Pe(v,"class",T),16384&r[0]){let e;for(ne=t[14],e=0;e<ne.length;e+=1){var i=Cn(t,ne,e);ie[e]?ie[e].p(i,r):(ie[e]=An(i),ie[e].c(),ie[e].m(I,null))}for(;e<ie.length;e+=1)ie[e].d(1);ie.length=ne.length}if(16448&r[0]&&Ie(I,t[6]),32768&r[0]){let e;for(oe=t[15],e=0;e<oe.length;e+=1){var o=En(t,oe,e);se[e]?se[e].p(o,r):(se[e]=Pn(o),se[e].c(),se[e].m(O,null))}for(;e<se.length;e+=1)se[e].d(1);se.length=oe.length}if(32896&r[0]&&Ie(O,t[7]),65536&r[0]){let e;for(ae=t[16],e=0;e<ae.length;e+=1){var s=wn(t,ae,e);le[e]?le[e].p(s,r):(le[e]=Rn(s),le[e].c(),le[e].m(k,null))}for(;e<le.length;e+=1)le[e].d(1);le.length=ae.length}if(65792&r[0]&&Ie(k,t[8]),512&r[0]&&$.value!==t[9]&&Re($,t[9]),t[2]?ce||(ce=In(),ce.c(),ce.m(M,null)):ce&&(ce.d(1),ce=null),4&r[0]&&G!==(G="BirthPlaceContainer "+(t[2]?"InvalidField":""))&&Pe(M,"class",G),1024&r[0]){let e;for(ue=t[10],e=0;e<ue.length;e+=1){var a=vn(t,ue,e);pe[e]?pe[e].p(a,r):(pe[e]=Ln(a),pe[e].c(),pe[e].m(q,null))}for(;e<pe.length;e+=1)pe[e].d(1);pe.length=ue.length}3072&r[0]&&Ie(q,t[11]),4096&r[0]&&W!==(W=!t[12])&&(Z.disabled=W)},i:ve,o:ve,d(e){e&&_e(n),e&&_e(o),e&&_e(s),t(ee,e),te&&te.d(),re&&re.d(),t(ie,e),t(se,e),t(le,e),ce&&ce.d(),t(pe,e),e&&_e(X),e&&_e(Z),Q=!1,we(K)}}}function Dn(e,t,r){let{endpoint:n=""}=t,i=!1,o=!1,s=!1,a=["Mr.","Mrs.","Ms."],l=a[0],c="",u="",p=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],d=p[0],h=[1,2,3,4,5,6,7,8,9,10,11,12],f=h[0],m=[1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979],g=m[0],y="",b=[],v="",w=!1;const E=()=>{r(12,w=!(i||o||s)),(c.length<=0||u.length<=0||y.length<=0)&&r(12,w=!1)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/},_=e=>!!C.user.test(e),T=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(3,l=e.data.userData.title),r(4,c=e.data.userData.firstname),r(5,u=e.data.userData.lastname),r(6,d=e.data.userData.birth.day),r(7,f=e.data.userData.birth.month),r(8,g=e.data.userData.birth.year),r(9,y=e.data.userData.birthPlace),r(11,v=e.data.userData.currency),E())};return D(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),e.$$set=e=>{"endpoint"in e&&r(22,n=e.endpoint)},e.$$.update=()=>{4194304&e.$$.dirty[0]&&n&&fetch(`${n}/player/operatorSupportedCurrencies`).then(e=>e.json()).then(e=>{r(10,b=e.currencies),r(11,v=b[0])})},[i,o,s,l,c,u,d,f,g,y,b,v,w,a,p,h,m,()=>{r(0,i=!_(c)),E()},()=>{r(1,o=!_(u)),E()},()=>{r(2,s=!y),E()},()=>{var e={userTitleSelected:l,userFirstName:c,userLastName:u,birthDaySelected:d,birthMonthSelected:f,birthYearSelected:g,birthPlace:y,currencySelected:v};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},()=>{var e={userTitleSelected:l,userFirstName:c,userLastName:u,birthDaySelected:d,birthMonthSelected:f,birthYearSelected:g,birthPlace:y,currencySelected:v};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},n,function(){l=O(this),r(3,l),r(13,a)},function(){c=this.value,r(4,c)},function(){u=this.value,r(5,u)},function(){d=O(this),r(6,d),r(14,p)},function(){f=O(this),r(7,f),r(15,h)},function(){g=O(this),r(8,g),r(16,m)},function(){y=this.value,r(9,y)},function(){v=O(this),r(11,v),r(10,b)}]}function kn(e,t,r){const n=e.slice();return n[55]=t[r],n}function Nn(e,t,r){const n=e.slice();return n[58]=t[r],n}function Mn(){let r;return{c(){r=Te("p"),r.textContent="Address must be at least 1 character long and 100 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Fn(){let r;return{c(){r=Te("p"),r.textContent="Postal Code must be at least 1 character long and 20 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Un(){let r;return{c(){r=Te("p"),r.textContent="City must be at least 1 character long and 50 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function $n(e){let r,n,i,o=e[58].Name+"";return{c(){r=Te("option"),n=xe(o),r.__value=i=e[58].Alpha2Code,r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){2048&t[0]&&o!==(o=e[58].Name+"")&&C(n,o),2048&t[0]&&i!==(i=e[58].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&_e(r)}}}function Bn(){let r;return{c(){r=Te("p"),r.textContent="Nationality must be at least 1 character long.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Gn(e){let r,n,i,o=e[55].Prefix+"";return{c(){r=Te("option"),n=xe(o),r.__value=i=e[55].Prefix,r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){32768&t[0]&&o!==(o=e[55].Prefix+"")&&C(n,o),32768&t[0]&&i!==(i=e[55].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&_e(r)}}}function jn(){let r;return{c(){r=Te("p"),r.textContent="Mobile must be at least 5 character long and 20 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function zn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F=!r[20]&&Hn();return{c(){n=Te("div"),i=Te("label"),o=xe("I want to receive exclusive offers and bonuses."),s=Te("br"),a=xe("I am aware that I can unsubscribe whenever I want to.\n "),l=Te("input"),c=Se(),u=Te("span"),p=Se(),d=Te("div"),h=Te("label"),f=xe("SMS\n "),m=Te("input"),y=Se(),b=Te("span"),v=Se(),w=Te("label"),E=xe("Emails\n "),C=Te("input"),T=Se(),x=Te("span"),S=Se(),A=Te("div"),P=Te("label"),R=xe("I am at least 21 years old and I have read and accepted the Terms of Conditions.\n "),I=Te("input"),L=Se(),O=Te("span"),D=Se(),F&&F.c(),k=U(),Pe(l,"type","Checkbox"),l.checked=r[17],Pe(u,"class","Checkmark"),Pe(i,"class","Offers"),Pe(m,"type","Checkbox"),m.disabled=g=!r[17],m.checked=r[18],Pe(b,"class","Checkmark"),Pe(h,"class","OffersMethod"),Pe(C,"type","Checkbox"),C.disabled=_=!r[17],C.checked=r[19],Pe(x,"class","Checkmark"),Pe(w,"class","OffersMethod"),Pe(d,"class","OffersMethodsWrapper"),Pe(n,"class","OffersContainer"),Pe(I,"type","Checkbox"),I.checked=r[20],Pe(O,"class","Checkmark"),Pe(P,"class","AgeConsent"),Pe(A,"class","AgeContainer")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(i,s),Ee(i,a),Ee(i,l),Ee(i,c),Ee(i,u),Ee(n,p),Ee(n,d),Ee(d,h),Ee(h,f),Ee(h,m),Ee(h,y),Ee(h,b),Ee(d,v),Ee(d,w),Ee(w,E),Ee(w,C),Ee(w,T),Ee(w,x),Ce(e,S,t),Ce(e,A,t),Ee(A,P),Ee(P,R),Ee(P,I),Ee(P,L),Ee(P,O),Ce(e,D,t),F&&F.m(e,t),Ce(e,k,t),N||(M=[Ae(l,"click",r[41]),Ae(m,"click",r[42]),Ae(C,"click",r[43]),Ae(I,"click",r[44])],N=!0)},p(e,t){131072&t[0]&&(l.checked=e[17]),131072&t[0]&&g!==(g=!e[17])&&(m.disabled=g),262144&t[0]&&(m.checked=e[18]),131072&t[0]&&_!==(_=!e[17])&&(C.disabled=_),524288&t[0]&&(C.checked=e[19]),1048576&t[0]&&(I.checked=e[20]),e[20]?F&&(F.d(1),F=null):F||(F=Hn(),F.c(),F.m(k.parentNode,k))},d(e){e&&_e(n),e&&_e(S),e&&_e(A),e&&_e(D),F&&F.d(e),e&&_e(k),N=!1,we(M)}}}function Hn(){let r;return{c(){r=Te("div"),r.innerHTML="<p>Please accept the Terms and Conditions before proceeding.</p>",Pe(r,"class","NotificationContainer")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Vn(e){let r,n,i;return{c(){r=Te("div"),n=Te("p"),i=xe(e[7]),Pe(n,"class","RegisterError")},m(e,t){Ce(e,r,t),Ee(r,n),Ee(n,i)},p(e,t){128&t[0]&&C(i,e[7])},d(e){e&&_e(r)}}}function qn(r){let n,e,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,S,A,P,R,I,L,O,D,k,N,M,F,U,$,B,G,j,z,H,V,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se,ae,le=r[1]&&Mn(),ce=r[2]&&Fn(),ue=r[4]&&Un(),pe=r[11],de=[];for(let e=0;e<pe.length;e+=1)de[e]=$n(Nn(r,pe,e));let he=r[5]&&Bn(),fe=r[15],me=[];for(let e=0;e<fe.length;e+=1)me[e]=Gn(kn(r,fe,e));let ge=r[3]&&jn(),ye=r[0]&&zn(r),be=r[6]&&Vn(r);return{c(){n=Te("script"),i=Se(),o=Te("div"),s=Se(),a=Te("div"),l=Te("button"),l.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',c=Se(),u=Te("div"),p=Te("div"),d=Te("div"),h=Te("label"),h.innerHTML='Address:<span class="FormRequired">*</span>',f=Se(),m=Te("input"),g=Se(),le&&le.c(),b=Se(),v=Te("div"),w=Te("label"),w.innerHTML='Postal Code:<span class="FormRequired">*</span>',E=Se(),C=Te("input"),_=Se(),ce&&ce.c(),x=Se(),S=Te("div"),A=Te("label"),A.innerHTML='City:<span class="FormRequired">*</span>',P=Se(),R=Te("input"),I=Se(),ue&&ue.c(),O=Se(),D=Te("div"),k=Te("label"),k.innerHTML='Country:<span class="FormRequired">*</span>',N=Se(),M=Te("select");for(let e=0;e<de.length;e+=1)de[e].c();F=Se(),U=Te("div"),$=Te("label"),$.innerHTML='Nationality:<span class="FormRequired">*</span>',B=Se(),G=Te("input"),j=Se(),he&&he.c(),H=Se(),V=Te("div"),q=Te("label"),q.innerHTML='Mobile:<span class="FormRequired">*</span>',X=Se(),Z=Te("div"),Y=Te("select");for(let e=0;e<me.length;e+=1)me[e].c();W=Se(),Q=Te("input"),K=Se(),ge&&ge.c(),ee=Se(),ye&&ye.c(),te=Se(),be&&be.c(),re=Se(),ne=Te("button"),ie=xe("Open Account"),this.c=ve,n.src!==(e="//www.google.com/recaptcha/api.js?render="+Xn)&&Pe(n,"src","//www.google.com/recaptcha/api.js?render=6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn"),n.async=!0,n.defer=!0,Pe(o,"class","g-recaptcha"),Pe(o,"data-sitekey",Xn),Pe(l,"class","BackButton"),Pe(a,"class","RegisterFormHeader"),Pe(h,"for","Address"),Pe(m,"type","text"),Pe(m,"id","Address"),Pe(d,"class",y="AddressContainer "+(r[1]?"InvalidField":"")),Pe(w,"for","PostalCode"),Pe(C,"type","text"),Pe(C,"id","PostalCode"),Pe(v,"class",T="PostalCodeContainer "+(r[2]?"InvalidField":"")),Pe(p,"class","AddressPostalCodeContainer"),Pe(A,"for","City"),Pe(R,"type","text"),Pe(R,"id","City"),Pe(S,"class",L="CityContainer "+(r[4]?"InvalidField":"")),Pe(k,"for","Country"),Pe(M,"id","Country"),void 0===r[12]&&Le(()=>r[37].call(M)),Pe(D,"class","CountryContainer"),Pe($,"for","Nationality"),Pe(G,"type","text"),Pe(G,"id","Nationality"),Pe(U,"class",z="NationalityContainer "+(r[5]?"InvalidField":"")),Pe(q,"for","Mobile"),Pe(Y,"class","MobilePrefixSelected"),void 0===r[16]&&Le(()=>r[39].call(Y)),Pe(Q,"type","text"),Pe(Q,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),Pe(Q,"id","Mobile"),Pe(Q,"class","MobileInput"),Pe(Z,"class","MobileWrapper"),Pe(V,"class",J="MobileContainer "+(r[3]?"InvalidField":"")),Pe(u,"class","RegisterFormContent"),Pe(ne,"class","RegisterStepNext"),ne.disabled=oe=!r[21]},m(e,t){Ee(document.head,n),Ce(e,i,t),Ce(e,o,t),Ce(e,s,t),Ce(e,a,t),Ee(a,l),Ce(e,c,t),Ce(e,u,t),Ee(u,p),Ee(p,d),Ee(d,h),Ee(d,f),Ee(d,m),Re(m,r[8]),Ee(d,g),le&&le.m(d,null),Ee(p,b),Ee(p,v),Ee(v,w),Ee(v,E),Ee(v,C),Re(C,r[9]),Ee(v,_),ce&&ce.m(v,null),Ee(u,x),Ee(u,S),Ee(S,A),Ee(S,P),Ee(S,R),Re(R,r[10]),Ee(S,I),ue&&ue.m(S,null),Ee(u,O),Ee(u,D),Ee(D,k),Ee(D,N),Ee(D,M);for(let e=0;e<de.length;e+=1)de[e].m(M,null);Ie(M,r[12]),Ee(u,F),Ee(u,U),Ee(U,$),Ee(U,B),Ee(U,G),Re(G,r[13]),Ee(U,j),he&&he.m(U,null),Ee(u,H),Ee(u,V),Ee(V,q),Ee(V,X),Ee(V,Z),Ee(Z,Y);for(let e=0;e<me.length;e+=1)me[e].m(Y,null);Ie(Y,r[16]),Ee(Z,W),Ee(Z,Q),Re(Q,r[14]),Ee(Z,K),ge&&ge.m(Z,null),Ee(u,ee),ye&&ye.m(u,null),Ce(e,te,t),be&&be.m(e,t),Ce(e,re,t),Ce(e,ne,t),Ee(ne,ie),se||(ae=[Ae(l,"click",r[32]),Ae(m,"input",r[34]),Ae(m,"blur",r[22]),Ae(C,"input",r[35]),Ae(C,"blur",r[23]),Ae(R,"input",r[36]),Ae(R,"blur",r[24]),Ae(M,"change",r[37]),Ae(G,"input",r[38]),Ae(G,"blur",r[25]),Ae(Y,"change",r[39]),Ae(Q,"input",r[40]),Ae(Q,"keyup",r[26]),Ae(ne,"click",r[31])],se=!0)},p(t,r){if(256&r[0]&&m.value!==t[8]&&Re(m,t[8]),t[1]?le||(le=Mn(),le.c(),le.m(d,null)):le&&(le.d(1),le=null),2&r[0]&&y!==(y="AddressContainer "+(t[1]?"InvalidField":""))&&Pe(d,"class",y),512&r[0]&&C.value!==t[9]&&Re(C,t[9]),t[2]?ce||(ce=Fn(),ce.c(),ce.m(v,null)):ce&&(ce.d(1),ce=null),4&r[0]&&T!==(T="PostalCodeContainer "+(t[2]?"InvalidField":""))&&Pe(v,"class",T),1024&r[0]&&R.value!==t[10]&&Re(R,t[10]),t[4]?ue||(ue=Un(),ue.c(),ue.m(S,null)):ue&&(ue.d(1),ue=null),16&r[0]&&L!==(L="CityContainer "+(t[4]?"InvalidField":""))&&Pe(S,"class",L),2048&r[0]){let e;for(pe=t[11],e=0;e<pe.length;e+=1){var n=Nn(t,pe,e);de[e]?de[e].p(n,r):(de[e]=$n(n),de[e].c(),de[e].m(M,null))}for(;e<de.length;e+=1)de[e].d(1);de.length=pe.length}if(6144&r[0]&&Ie(M,t[12]),8192&r[0]&&G.value!==t[13]&&Re(G,t[13]),t[5]?he||(he=Bn(),he.c(),he.m(U,null)):he&&(he.d(1),he=null),32&r[0]&&z!==(z="NationalityContainer "+(t[5]?"InvalidField":""))&&Pe(U,"class",z),32768&r[0]){let e;for(fe=t[15],e=0;e<fe.length;e+=1){var i=kn(t,fe,e);me[e]?me[e].p(i,r):(me[e]=Gn(i),me[e].c(),me[e].m(Y,null))}for(;e<me.length;e+=1)me[e].d(1);me.length=fe.length}98304&r[0]&&Ie(Y,t[16]),16384&r[0]&&Q.value!==t[14]&&Re(Q,t[14]),t[3]?ge||(ge=jn(),ge.c(),ge.m(Z,null)):ge&&(ge.d(1),ge=null),8&r[0]&&J!==(J="MobileContainer "+(t[3]?"InvalidField":""))&&Pe(V,"class",J),t[0]?ye?ye.p(t,r):(ye=zn(t),ye.c(),ye.m(u,null)):ye&&(ye.d(1),ye=null),t[6]?be?be.p(t,r):(be=Vn(t),be.c(),be.m(re.parentNode,re)):be&&(be.d(1),be=null),2097152&r[0]&&oe!==(oe=!t[21])&&(ne.disabled=oe)},i:ve,o:ve,d(e){_e(n),e&&_e(i),e&&_e(o),e&&_e(s),e&&_e(a),e&&_e(c),e&&_e(u),le&&le.d(),ce&&ce.d(),ue&&ue.d(),t(de,e),he&&he.d(),t(me,e),ge&&ge.d(),ye&&ye.d(),e&&_e(te),be&&be.d(e),e&&_e(re),e&&_e(ne),se=!1,we(ae)}}}it([Wr,$r],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Yr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Fr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Xr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${zr(Yr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=sn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return on(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return nn(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),it([Wr,$r],()=>(e,t=Yr)=>Fr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==et.indexOf(e)&&(t=new We(t),tt[e]=t,et.push(e)),tt[e]}},customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>.RegisterFormTitle{font-size:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer 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}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{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;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},bn,yn,r,{},[-1,-1]),e&&e.target&&Ce(e.target,this,e.anchor)}}),customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.CurrencyContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.CurrencyContainer select{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}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%}.BirthDateOptions .BirthMonthSelected{width:30%}.BirthDateOptions .BirthYearSelected{width:40%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{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;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Dn,On,r,{endpoint:22},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$set({endpoint:e}),w()}});const Xn="6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn";function Zn(e,t,r){let{userconsentexists:n=!1}=t,{endpoint:i=""}=t,o="",s="",a="",l="",c="",u=!1,p="",d="",h="",f="",m=[],g="",y="",b="",v=[],w="",E=!1,C=!1,_=!1,T=!1,x=!1;const S=()=>{r(21,x=!(o||s||l||c||a||u||n&&T)),(d.length<=0||h.length<=0||f.length<=0||y.length<=0||b.length<=0)&&r(21,x=!1)},A=()=>{!1===E?r(17,E=!0):(r(17,E=!1),r(18,C=!1),r(19,_=!1))},P=()=>{r(18,C=!1===C)},R=()=>{r(19,_=!1===_)},I=()=>{r(20,T=!1===T),S()},L=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(8,d=e.data.userData.address1),r(9,h=e.data.userData.postalCode),r(10,f=e.data.userData.city),r(12,g=e.data.userData.country),r(13,y=e.data.userData.nationality),r(16,w=e.data.userData.mobile.prefix),r(14,b=e.data.userData.mobile.number),r(18,C=e.data.userData.userConsents.additionalProp1),r(19,_=e.data.userData.userConsents.additionalProp2),r(20,T=e.data.userData.userConsents.additionalProp3),S();break;case"ShowRegistrationError":r(6,u=e.data.showError),r(7,p=e.data.error)}};return D(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)})),e.$$set=e=>{"userconsentexists"in e&&r(0,n=e.userconsentexists),"endpoint"in e&&r(33,i=e.endpoint)},e.$$.update=()=>{4&e.$$.dirty[1]&&i&&fetch(`${i}/player/countries`).then(e=>e.json()).then(e=>{r(11,m=e.countries),r(12,g=m[0].Alpha2Code)}),4&e.$$.dirty[1]&&i&&fetch(`${i}/player/phonecodes`).then(e=>e.json()).then(e=>{r(15,v=e.phoneCodes),r(16,w=v[0].Prefix)})},[n,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,_,T,x,()=>{r(1,o=!(d&&d.length<=100)),S()},()=>{r(2,s=!(h&&h.length<=20)),S()},()=>{r(4,l=!(f&&f.length<=50)),S()},()=>{r(5,c=!y),S()},()=>{r(3,a=!(b&&5<=b.length&&b.length<=30)),S()},A,P,R,I,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(Xn,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:d,postalCode:h,city:f,countrySelected:g,nationality:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:_,consentTerms:T,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:d,postalCode:h,city:f,countrySelected:g,nationality:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:_,consentTerms:T};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},i,function(){d=this.value,r(8,d)},function(){h=this.value,r(9,h)},function(){f=this.value,r(10,f)},function(){g=O(this),r(12,g),r(11,m)},function(){y=this.value,r(13,y)},function(){w=O(this),r(16,w),r(15,v)},function(){b=this.value,r(14,b)},()=>A(),()=>P(),()=>R(),()=>I()]}function Yn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=Te("div"),i=Te("div"),s=Se(),a=Te("div"),c=Se(),u=Te("div"),Pe(i,"class",o="RegisterFirstStepDash "+(r[2]||!r[2]&&r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Pe(a,"class",l="RegisterSecondStepDash "+(r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Pe(u,"class",p="RegisterThirdStepDash "+(r[4]?"RegisterStepDashColor":"")),Pe(n,"class","RegisterSteps")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(n,s),Ee(n,a),Ee(n,c),Ee(n,u),r[17](n)},p(e,t){28&t[0]&&o!==(o="RegisterFirstStepDash "+(e[2]||!e[2]&&e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Pe(i,"class",o),28&t[0]&&l!==(l="RegisterSecondStepDash "+(e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Pe(a,"class",l),16&t[0]&&p!==(p="RegisterThirdStepDash "+(e[4]?"RegisterStepDashColor":""))&&Pe(u,"class",p)},d(e){e&&_e(n),r[17](null)}}}function Wn(){let r;return{c(){r=Te("div"),r.innerHTML="<general-player-register-form-step1></general-player-register-form-step1>",Pe(r,"class","RegisterFormStep1")},m(e,t){Ce(e,r,t)},d(e){e&&_e(r)}}}function Qn(e){let r,n;return{c(){r=Te("div"),n=Te("general-player-register-form-step2"),i(n,"endpoint",e[0]),Pe(r,"class","RegisterFormStep2")},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&_e(r)}}}function Kn(e){let r,n;return{c(){r=Te("div"),n=Te("general-player-register-form-step3"),i(n,"userconsentsexist",e[9]),i(n,"endpoint",e[0]),Pe(r,"class","RegisterFormStep3")},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){512&t[0]&&i(n,"userconsentsexist",e[9]),1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&_e(r)}}}function Jn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E;return{c(){n=Te("div"),i=e("svg"),o=e("defs"),s=e("style"),a=xe(".a{fill:#16ce16;}"),l=e("path"),c=Se(),u=Te("h2"),p=xe(r[6]),d=Se(),h=Te("p"),f=xe(r[7]),m=Se(),g=Te("p"),y=xe(r[8]),b=Se(),v=Te("button"),v.textContent="Go To Login",Pe(l,"class","a"),Pe(l,"d","M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"),Pe(i,"xmlns","http://www.w3.org/2000/svg"),Pe(i,"viewBox","0 0 73.95 51"),Pe(u,"class","RegisterConfirmationTitle"),Pe(h,"class","RegisterConfirmationSubtitle"),Pe(g,"class","RegisterConfirmationNote"),Pe(v,"class","RegisterConfirmationGoToLogin"),Pe(n,"class","RegisterConfirmation")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(s,a),Ee(i,l),Ee(n,c),Ee(n,u),Ee(u,p),Ee(n,d),Ee(n,h),Ee(h,f),Ee(n,m),Ee(n,g),Ee(g,y),Ee(n,b),Ee(n,v),w||(E=Ae(v,"click",r[12]),w=!0)},p(e,t){64&t[0]&&C(p,e[6]),128&t[0]&&C(f,e[7]),256&t[0]&&C(y,e[8])},d(e){e&&_e(n),w=!1,E()}}}function ei(e){let r,n=function(e){let r,n,i,o,s,a,l,c=!e[11]&&function(e){let r;return{c(){r=Te("div"),Pe(r,"class","RegisterFormImage"),m(r,"background-image","url('"+e[1]+"')")},m(e,t){Ce(e,r,t)},p(e,t){2&t[0]&&m(r,"background-image","url('"+e[1]+"')")},d(e){e&&_e(r)}}}(e),u=(e[2]||e[3]||e[4])&&Yn(e),p=e[2]&&Wn(),d=e[3]&&Qn(e),h=e[4]&&Kn(e),f=e[5]&&Jn(e);return{c(){r=Te("div"),c&&c.c(),n=Se(),i=Te("div"),u&&u.c(),o=Se(),p&&p.c(),s=Se(),d&&d.c(),a=Se(),h&&h.c(),l=Se(),f&&f.c(),Pe(i,"class","RegisterFormContainer "+(e[11]?"RegisterFormContainerMobile":"")),Pe(r,"class","RegisterFormWrapper")},m(e,t){Ce(e,r,t),c&&c.m(r,null),Ee(r,n),Ee(r,i),u&&u.m(i,null),Ee(i,o),p&&p.m(i,null),Ee(i,s),d&&d.m(i,null),Ee(i,a),h&&h.m(i,null),Ee(i,l),f&&f.m(i,null)},p(e,t){e[11]||c.p(e,t),e[2]||e[3]||e[4]?u?u.p(e,t):(u=Yn(e),u.c(),u.m(i,o)):u&&(u.d(1),u=null),e[2]?p||(p=Wn(),p.c(),p.m(i,s)):p&&(p.d(1),p=null),e[3]?d?d.p(e,t):(d=Qn(e),d.c(),d.m(i,a)):d&&(d.d(1),d=null),e[4]?h?h.p(e,t):(h=Kn(e),h.c(),h.m(i,l)):h&&(h.d(1),h=null),e[5]?f?f.p(e,t):(f=Jn(e),f.c(),f.m(i,null)):f&&(f.d(1),f=null)},d(e){e&&_e(r),c&&c.d(),u&&u.d(),p&&p.d(),d&&d.d(),h&&h.d(),f&&f.d()}}}(e);return{c(){n.c(),r=U(),this.c=ve},m(e,t){n.m(e,t),Ce(e,r,t)},p(e,t){n.p(e,t)},i:ve,o:ve,d(e){n.d(e),e&&_e(r)}}}function ti(e,t,i){var r=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((l=l.apply(e,s||[])).next())})};let n,o,{endpoint:s=""}=t,{cmsendpoint:a=""}=t,{imagedesktop:l=""}=t,{playerid:c=""}=t,{session:u=""}=t,{trackedanalyticsdata:p=""}=t,d=!0,h=!1,f=!1,m=!1,g,y="",b="",v="",w="PC"!=((t=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),E={},C=!1,_=!1,T=!1,x;const S=()=>{o.scrollIntoView()},A=(e,t)=>{"RegisterStepOne"===e&&(E.email=t.userEmail,E.username=t.userValue,E.password=t.userPassword,E.securityQuestion=t.securityQuestion,E.securityAnswer=t.securityAnswer),"RegisterStepTwo"===e&&(E.title=t.userTitleSelected,E.firstname=t.userFirstName,E.lastname=t.userLastName,E.birth={},E.birth.day=t.birthDaySelected,E.birth.month=t.birthMonthSelected,E.birth.year=t.birthYearSelected,E.birthPlace=t.birthPlace,E.currency=t.currencySelected),"RegisterStepThree"===e&&(E.address1=t.address,E.postalCode=t.postalCode,E.city=t.city,E.country=t.countrySelected,E.nationality=t.nationality,E.mobile={},E.mobile.prefix=t.mobilePrefixSelected,E.mobile.number=t.mobile,E.userConsents={},E.affiliateMarker=p,T&&(E.userConsents.additionalProp1=t.consentOffersSms,E.userConsents.additionalProp2=t.consentOffersEmail,E.userConsents.additionalProp3=t.consentTerms),E.token=t.token)},P=e=>{if(e.data)switch(e.data.type){case"RegisterStepOne":A("RegisterStepOne",e.data.registerStepOneData),S(),i(2,d=!1),i(3,h=!0),0==C?C=!0:window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href);break;case"RegisterStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(3,h=!1),i(4,f=!0),0==_?_=!0:window.postMessage({type:"StepThreeDataBackup",userData:E},window.location.href);break;case"RegisterStepThree":A("RegisterStepThree",e.data.registerStepThreeData),R(E);break;case"GoBackStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(2,d=!0),i(3,h=!1),window.postMessage({type:"StepOneDataBackup",userData:E},window.location.href);break;case"GoBackStepThree":A("RegisterStepThree",e.data.registerStepThreeData),S(),i(3,h=!0),i(4,f=!1),window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href)}},R=n=>r(void 0,void 0,void 0,function*(){let e={method:"PUT",headers:{"g-recaptcha-response":n.token,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},t=yield fetch(`${s}/player/register`,e),r=yield t.json();t.ok?(i(4,f=!1),i(5,m=!0)):(x=r.error.substring(r.error.indexOf("errorMessage")+13,r.error.length),g=!0,window.postMessage({type:"ShowRegistrationError",showError:!0,error:x},window.location.href))});return D(()=>(fetch(`${s}/player/consentRequirements`).then(e=>e.json()).then(e=>{0<e.items.length?i(9,T=!0):i(9,T=!1)}),fetch(a).then(e=>e.json()).then(e=>{n=e.REGULAR_REGISTRATION[0],i(6,y=n.congrats),i(7,b=n.accCreated),i(8,v=n.accCreatedMsg)}).catch(e=>{console.error(e)}),window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P)})),e.$$set=e=>{"endpoint"in e&&i(0,s=e.endpoint),"cmsendpoint"in e&&i(13,a=e.cmsendpoint),"imagedesktop"in e&&i(1,l=e.imagedesktop),"playerid"in e&&i(14,c=e.playerid),"session"in e&&i(15,u=e.session),"trackedanalyticsdata"in e&&i(16,p=e.trackedanalyticsdata)},e.$$.update=()=>{e.$$.dirty[0]},[s,l,d,h,f,m,y,b,v,T,o,w,()=>{window.postMessage({type:"ToLogin"},window.location.href)},a,c,u,p,function(e){I[e?"unshift":"push"](()=>{o=e,i(10,o)})}]}customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",class extends u{constructor(e){super(),this.shadowRoot.innerHTML='<style>.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.AddressPostalCodeContainer{display:flex;gap:16px}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer input,.MobileContainer input,.MobileContainer select{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}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.NationalityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:#D1D1D1;border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:#D0046C}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:"";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:#FD2839;font-size:14px}.RegisterError{color:#FD2839;font-size:16px;line-height:19.2px}.RegisterStepNext{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;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>',c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Zn,qn,r,{userconsentexists:0,endpoint:33},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["userconsentexists","endpoint"]}get userconsentexists(){return this.$$.ctx[0]}set userconsentexists(e){this.$set({userconsentexists:e}),w()}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$set({endpoint:e}),w()}});class ri extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>.RegisterFormWrapper{background:#F9F8F8;display:inline-flex;width:100%}.RegisterFormImage{background-position:center;background-size:cover;background-repeat:no-repeat;flex:1 1 100%}.RegisterFormContainer{flex:1 1 100%;padding:25.008px;height:520px;overflow-y:auto;scrollbar-color:#cfcfcf #f1f1f1;scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:10px;height:auto;overflow-y:initial}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:#f1f1f1}.RegisterFormContainer::-webkit-scrollbar-thumb{background:#cfcfcf}.RegisterSteps{display:flex;gap:10px;padding:10px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:4px;background-color:#D1D1D1}.RegisterStepDashColor{background-color:#D0046C}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:#16CE16;font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:#58586B;font-size:16px;line-height:19.2px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:#000000;font-size:17.6px;line-height:22.4px}.RegisterConfirmationGoToLogin{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;margin-top:24px}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ti,ei,r,{endpoint:0,cmsendpoint:13,imagedesktop:1,playerid:14,session:15,trackedanalyticsdata:16},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","cmsendpoint","imagedesktop","playerid","session","trackedanalyticsdata"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),w()}get cmsendpoint(){return this.$$.ctx[13]}set cmsendpoint(e){this.$set({cmsendpoint:e}),w()}get imagedesktop(){return this.$$.ctx[1]}set imagedesktop(e){this.$set({imagedesktop:e}),w()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$set({playerid:e}),w()}get session(){return this.$$.ctx[15]}set session(e){this.$set({session:e}),w()}get trackedanalyticsdata(){return this.$$.ctx[16]}set trackedanalyticsdata(e){this.$set({trackedanalyticsdata:e}),w()}}return customElements.get("general-player-register-form")||customElements.define("general-player-register-form",ri),ri});
2
2
  //# sourceMappingURL=general-player-register-form.js.map