@everymatrix/general-player-register-form 1.36.0 → 1.37.0

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 ht(){}function f(e){return e()}function w(){return Object.create(null)}function mt(e){e.forEach(f)}function _(e){return"function"==typeof e}function S(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let C;function E(e,t){return(C=C||document.createElement("a")).href=t,e===C.href}function x(e,...t){if(null==e)return ht;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ae(e,t,r){e.$$.on_destroy.push(x(t,r))}var T="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ft(e,t){e.appendChild(t)}function pt(e,t,r){e.insertBefore(t,r||null)}function gt(e){e.parentNode&&e.parentNode.removeChild(e)}function rt(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function yt(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function bt(){return vt(" ")}function it(){return vt("")}function wt(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function _t(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function n(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:_t(e,t,r)}function St(e,t){e.data!==(t=""+t)&&(e.data=t)}function Ct(e,t){e.value=null==t?"":t}function et(t,r,e){for(let e=0;e<t.options.length;e+=1){var i=t.options[e];if(i.__value===r)return i.selected=!0}e&&void 0===r||(t.selectedIndex=-1)}function X(e){e=e.querySelector(":checked");return e&&e.__value}function k(e){var t={};for(const r of e)t[r.name]=r.value;return t}let P;function M(e){P=e}function le(e){!function(){if(P)return P;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const O=[],se=[];let D=[];const A=[],B=Promise.resolve();let N=!1;function tt(e){D.push(e)}const I=new Set;let L=0;function h(){if(0===L){const i=P;do{try{for(;L<O.length;){const i=O[L];L++,M(i),e=t=void 0;var e,t=i.$$;null!==t.fragment&&(t.update(),mt(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(tt))}}catch(i){throw O.length=0,L=0,i}for(M(null),O.length=0,L=0;se.length;)se.pop()();for(let e=0;e<D.length;e+=1){var r=D[e];I.has(r)||(I.add(r),r())}}while(D.length=0,O.length);for(;A.length;)A.pop()();N=!1,I.clear(),M(i)}}const H=new Set;function R(i,e,t,r,n,s,o,a=[-1]){var l=P;M(i);const c=i.$$={fragment:null,ctx:[],props:s,update:ht,not_equal:n,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:w(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(c.root);let u=!1;if(c.ctx=t?t(i,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u)&&(r=e,-1===(e=i).$$.dirty[0]&&(O.push(e),N||(N=!0,B.then(h)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],c.update(),u=!0,mt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){s=e.target;const ht=Array.from(s.childNodes);c.fragment&&c.fragment.l(ht),ht.forEach(gt)}else c.fragment&&c.fragment.c();e.intro&&(a=i.$$.fragment)&&a.i&&(H.delete(a),a.i(void 0));var d=i,o=e.target,t=e.anchor,r=e.customElement,{fragment:s,after_update:a}=d.$$;s&&s.m(o,t),r||tt(()=>{var e=d.$$.on_mount.map(f).filter(_);d.$$.on_destroy?d.$$.on_destroy.push(...e):mt(e),d.$$.on_mount=[]}),a.forEach(tt),h()}M(l)}let $;"function"==typeof HTMLElement&&($=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(f).filter(_);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){mt(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const i=[],n=[];D.forEach(e=>(-1===r.indexOf(e)?i:n).push(e)),n.forEach(e=>e()),D=i}mt(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=ht}$on(e,t){if(!_(t))return ht;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 F,U,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Y="URLSearchParams"in l,j="Symbol"in l&&"iterator"in Symbol,G="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),z="FormData"in l,V="ArrayBuffer"in l;function W(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 Z(e){return e="string"!=typeof e?String(e):e}function Q(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return j&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function q(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function K(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function J(e){var t=new FileReader,r=K(t);return t.readAsArrayBuffer(e),r}function ee(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function te(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:G&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:z&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Y&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():V&&G&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ee(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(e)||U(e))?this._bodyArrayBuffer=ee(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):Y&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},G&&(this.blob=function(){var e=q(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(){if(this._bodyArrayBuffer)return q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(G)return this.blob().then(J);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i=q(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,t=K(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(i.type))?r[1]:"utf-8",e.readAsText(i,r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},z&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}V&&(F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],U=ArrayBuffer.isView||function(e){return e&&-1<F.indexOf(Object.prototype.toString.call(e))}),c.prototype.append=function(e,t){e=W(e),t=Z(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[W(e)]},c.prototype.get=function(e){return e=W(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(W(e))},c.prototype.set=function(e,t){this.map[W(e)]=Z(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),Q(r)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Q(t)},c.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),Q(r)},j&&(c.prototype[Symbol.iterator]=c.prototype.entries);var re=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ie(e,t){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i=(t=t||{}).body;if(e instanceof ie){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 c(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<re.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ne(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})},te.call(ie.prototype),te.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var ce=[301,302,303,307,308],ue=(u.redirect=function(e,t){if(-1===ce.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},l.DOMException);try{new ue}catch(ht){(ue=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),ue.prototype.constructor=ue}function de(i,a){return new Promise(function(n,e){var s=new ie(i,a);if(s.signal&&s.signal.aborted)return e(new ue("Aborted","AbortError"));var r,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,i,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",i=new c,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(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{i.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),i)},r=(s.url.startsWith("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){n(new u(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new ue("Aborted","AbortError"))},0)},o.open(s.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(G?o.responseType="blob":V&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof c||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(W(e)),o.setRequestHeader(e,Z(a.headers[e]))}),s.headers.forEach(function(e,t){-1===r.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}function Or(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}de.polyfill=!0,l.fetch||(l.fetch=de,l.Headers=c,l.Request=ie,l.Response=u),self.fetch.bind(self);var he=function(e,t){return(he=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 me(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}he(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function fe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function ge(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function d(e){return"function"==typeof e}function ye(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 ve=ye(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 be(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,i,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=fe(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(d(s))try{s()}catch(e){n=e instanceof ve?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=fe(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ce(u)}catch(e){n=null!=n?n:[],e instanceof ve?n=ge(ge([],pe(n)),pe(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}if(n)throw new ve(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ce(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&be(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&be(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((i=new r).closed=!0,i);var we=r,_e=we.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Se(e){return e instanceof we||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function Ce(e){d(e)?e():e.unsubscribe()}var Ee=void 0,xe=!1,Te=!1,ke={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=ke.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,ge([e,t],pe(r))):setTimeout.apply(void 0,ge([e,t],pe(r)))},clearTimeout:function(e){var t=ke.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Pe(){}var Me=null;function Oe(e){if(xe){var t=!Me;if(t&&(Me={errorThrown:!1,error:null}),e(),t){var t=Me,r=t.errorThrown,t=t.error;if(Me=null,r)throw t}}else e()}me(e,De=we),e.create=function(e,t,r){return new He(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,De.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var De,Ae=e,Be=Function.prototype.bind;function e(e){var t=De.call(this)||this;return t.isStopped=!1,e?Se(t.destination=e)&&e.add(t):t.destination=Ue,t}function Ne(e,t){return Be.call(e,t)}$e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Fe(e)}},$e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Fe(e)}else Fe(e)},$e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Fe(e)}};var Ie,Le=$e,He=(me(Re,Ie=Ae),Re);function Re(e,t,r){var i=Ie.call(this)||this,r=d(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:i&&Te?((t=Object.create(e)).unsubscribe=function(){return i.unsubscribe()},{next:e.next&&Ne(e.next,t),error:e.error&&Ne(e.error,t),complete:e.complete&&Ne(e.complete,t)}):e;return i.destination=new Le(r),i}function $e(e){this.partialObserver=e}function Fe(e){var t=e;ke.setTimeout(function(){throw t})}var Ue={closed:!0,next:Pe,error:function(e){throw e},complete:Pe},i="function"==typeof Symbol&&Symbol.observable||"@@observable";s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,r){var i,n=this,s=(i=e)&&i instanceof Ae||i&&d(i.next)&&d(i.error)&&d(i.complete)&&Se(i)?e:new He(e,t,r);return Oe(function(){var e=n.operator,t=n.source;s.add(e?e.call(s,t):t?n._subscribe(s):n._trySubscribe(s))}),s},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(i,e){var n=this;return new(e=je(e))(function(e,t){var r=new He({next:function(e){try{i(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});n.subscribe(r)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[i]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},s.prototype.toPromise=function(e){var i=this;return new(e=je(e))(function(e,t){var r;i.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},s.create=function(e){return new s(e)};var Ye=s;function s(e){e&&(this._subscribe=e)}function je(e){return null!=(e=null!=e?e:Ee)?e:Promise}var Ge,ze,Ve,We=ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(me(o,Ve=Ye),o.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new We},o.prototype.next=function(n){var s=this;Oe(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var r=fe(s.currentObservers),i=r.next();!i.done;i=r.next())i.value.next(n)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var r=this;Oe(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)}})},o.prototype.complete=function(){var t=this;Oe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?_e:(this.currentObservers=null,n.push(e),new we(function(){t.currentObservers=null,be(n,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},o.prototype.asObservable=function(){var e=new Ye;return e.source=this,e},o.create=function(e,t){return new Ze(e,t)},o),Ze=(me(Xe,ze=i),Xe.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},Xe.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},Xe.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Xe.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:_e},Xe),Qe={now:function(){return(Qe.delegate||Date).now()},delegate:void 0},qe=(me(Ke,Ge=i),Ke.prototype.next=function(e){var t=this,r=t.isStopped,i=t._buffer,n=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;r||(i.push(e),n)||i.push(s.now()+t),this._trimBuffer(),Ge.prototype.next.call(this,e)},Ke.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},Ke.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},Ke);function Ke(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Qe);var i=Ge.call(this)||this;return i._bufferSize=e,i._windowTime=t,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,t),i}function Xe(e,t){var r=ze.call(this)||this;return r.destination=e,r.source=t,r}function o(){var e=Ve.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Je=[],nt={};const st=[];function ot(i,n=ht){let s;const o=new Set;function a(e){if(S(i,e)&&(i=e,s)){const e=!st.length;for(const e of o)e[1](),st.push(e,i);if(e){for(let e=0;e<st.length;e+=2)st[e][0](st[e+1]);st.length=0}}}return{set:a,update:function(e){a(e(i))},subscribe:function(e,t=ht){const r=[e,t];return o.add(r),1===o.size&&(s=n(a)||ht),e(i),()=>{o.delete(r),0===o.size&&s&&(s(),s=null)}}}}function at(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:ot(t,t=>{let r=!1;const i=[];let n=0,s=ht;const o=()=>{var e;n||(s(),e=a(l?i[0]:i,t),u?t(e):s=_(e)?e:ht)},e=c.map((e,t)=>x(e,e=>{i[t]=e,n&=~(1<<t),r&&o()},()=>{n|=1<<t}));return r=!0,o(),function(){mt(e),s(),r=!1}}).subscribe}}function lt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===ct);var t}var ct="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ut(e,t){return!1!==t.clone&&t.isMergeableObject(e)?kt(Array.isArray(e)?[]:{},e,t):e}function dt(e,t,r){return e.concat(t).map(function(e){return ut(e,r)})}function Et(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function xt(e,t){try{return t in e}catch(e){return!1}}function Tt(i,n,s){var o={};return s.isMergeableObject(i)&&Et(i).forEach(function(e){o[e]=ut(i[e],s)}),Et(n).forEach(function(e){var t,r;(!xt(t=i,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(xt(i,e)&&s.isMergeableObject(n[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:kt)(i[e],n[e],s):o[e]=ut(n[e],s))}),o}function kt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||dt,r.isMergeableObject=r.isMergeableObject||lt,r.cloneUnlessOtherwiseSpecified=ut;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):Tt(e,t,r):ut(t,r)}kt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return kt(e,t,r)},{});throw new Error("first argument should be an array")};var Pt=kt,Mt=function(e,t){return(Mt=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 Ot(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}Mt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p,y,Dt,g=function(){return(g=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function At(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Bt(e){return e.type===y.literal}function Nt(e){return e.type===y.number}function It(e){return e.type===y.date}function Lt(e){return e.type===y.time}function Ht(e){return e.type===y.select}function Rt(e){return e.type===y.plural}function $t(e){return e.type===y.tag}function Ft(e){return e&&"object"==typeof e&&e.type===Dt.number}function Ut(e){return e&&"object"==typeof e&&e.type===Dt.dateTime}(i=p=p||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=Dt=Dt||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yt=/(?:[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 jt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Gt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zt=/^(@+)?(\+|#+)?[rs]?$/g,Vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function Zt(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(zt,function(e,t,r){return"string"!=typeof r?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===r?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),i}function Qt(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 qt(e){return Qt(e)||{}}function Kt(e){for(var o={},t=0,r=e;t<r.length;t++){var i,n=r[t];switch(n.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=n.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=g(g(g({},o),{notation:"scientific"}),n.options.reduce(function(e,t){return g(g({},e),qt(t))},{}));continue;case"engineering":o=g(g(g({},o),{notation:"engineering"}),n.options.reduce(function(e,t){return g(g({},e),qt(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Vt,function(e,t,r,i,n,s){if(t)o.minimumIntegerDigits=r.length;else{if(i&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wt.test(n.stem))o.minimumIntegerDigits=n.stem.length;else if(Gt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Gt,function(e,t,r,i,n,s){return"*"===r?o.minimumFractionDigits=t.length:i&&"#"===i[0]?o.maximumFractionDigits=i.length:n&&s?(o.minimumFractionDigits=n.length,o.maximumFractionDigits=n.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=n.options[0];"w"===s?o=g(g({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=g(g({},o),Zt(s)))}else zt.test(n.stem)?o=g(g({},o),Zt(n.stem)):((s=Qt(n.stem))&&(o=g(g({},o),s)),(i=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)),!Wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(o=g(g({},o),i)))}return o}var Xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Jt=new RegExp("^".concat(i.source,"*")),er=new RegExp("".concat(i.source,"*$"));function v(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,tr=!!String.fromCodePoint,rr=!!Object.fromEntries,ir=!!String.prototype.codePointAt,nr=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,or=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ar=!0;try{ar="a"===(null==(Pr=gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Pr[0])}catch(ht){ar=!1}var lr,cr,ur=i?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=tr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i="",n=e.length,s=0;s<n;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},hr=rr?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r],s=n[0],n=n[1];t[s]=n}return t},mr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0||i<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?r:i-56320+(r-55296<<10)+65536},fr=nr?function(e){return e.trimStart()}:function(e){return e.replace(Jt,"")},pr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(er,"")};function gr(e,t){return new RegExp(e,t)}cr=ar?(lr=gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return lr.lastIndex=t,null!=(t=lr.exec(e)[1])?t:""}):function(e,t){for(var r,i=[];;){var n=mr(e,t);if(void 0===n||br(n)||33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;i.push(n),t+=65536<=n?2:1}return dr.apply(void 0,i)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(e,r)).err)return n;i.push(n.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(p.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&vr(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;i.push(n.val)}else{s=this.clonePosition();this.bump(),i.push({type:y.pound,location:v(s,this.clonePosition())})}}}return{val:i,err:null}},a.prototype.parseTag=function(e,t){var r,i=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(i,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!vr(this.char())?this.error(p.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),n!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(i,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,v(e,this.clonePosition())))):this.error(p.UNCLOSED_TAG,v(i,this.clonePosition()))):this.error(p.INVALID_TAG,v(i,this.clonePosition()))},a.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())},a.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n)i+=n;else{n=this.tryParseUnquoted(e,t);if(n)i+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;i+=n}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:i,location:r},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.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 dr.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},a.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,v(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(p.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(p.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,v(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(h=pr(d.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:v(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(i)).err?c:(m=v(i,this.clonePosition()),l&&ur(null==l?void 0:l.style,"::",0)?(f=fr(l.style.slice(2)),"number"===o?(d=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?d:{val:{type:y.number,value:r,location:m,style:d.val},err:null}:0===f.length?this.error(p.EXPECT_DATE_TIME_SKELETON,m):(u=f,this.locale&&(u=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Xt[t||""]||Xt[r||""]||Xt["".concat(r,"-001")]||Xt["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===n?"H":n}return r}(f,this.locale)),h={type:Dt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(Yt,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n):{}},{val:{type:"date"===o?y.date:y.time,value:r,location:m,style:h},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:r,location:m,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,g({},u)));this.bumpSpace();var d,h=this.parseIdentifierIfPossible(),m=0;if("select"!==o&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),h=this.parseIdentifierIfPossible(),m=d.val}var f,l=this.tryParsePluralOrSelectOptions(e,o,t,h);return l.err?l:(c=this.tryParseArgumentClose(i)).err?c:(f=v(i,this.clonePosition()),"select"===o?{val:{type:y.select,value:r,options:hr(l.val),location:f},err:null}:{val:{type:y.plural,value:r,options:hr(l.val),offset:m,pluralType:"plural"===o?"cardinal":"ordinal",location:f},err:null});default:return this.error(p.INVALID_ARGUMENT_TYPE,v(s,a))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.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(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(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}},a.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,i=e.split(jt).filter(function(e){return 0<e.length});r<i.length;r++){var n=i[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var s=n[0],n=n.slice(1),o=0,a=n;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:n})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Dt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Kt(r):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n=!1,s=[],o=new Set,a=i.value,l=i.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(o.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var d=this.tryParseArgumentClose(u);if(d.err)return d;s.push([a,{value:c.val,location:v(u,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===s.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(p.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:s,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;n=!0,s=10*s+(o-48),this.bump()}i=v(i,this.clonePosition());return n?or(s*=r)?{val:s,err:null}:this.error(t,i):this.error(e,i)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=mr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(ur(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&br(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var yr=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function vr(e){return 97<=e&&e<=122||65<=e&&e<=90}function br(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function wr(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new yr(e,t).parse();if(e.err)throw(r=SyntaxError(p[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ht(e)||Rt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Nt(e)&&Ft(e.style)||(It(e)||Lt(e))&&Ut(e.style)?delete e.style.location:$t(e)&&r(e.children)})}(e.val),e.val}function _r(e,t){var r=t&&t.cache?t.cache:Mr,i=t&&t.serializer?t.serializer:xr;return(t&&t.strategy?t.strategy:function(e,t){return Er(e,this,1===e.length?Sr:Cr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:i})}function Sr(e,t,r,i){var r=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(r);return void 0===n&&(n=e.call(this,i),t.set(r,n)),n}function Cr(e,t,r){var i=Array.prototype.slice.call(arguments,3),r=r(i),n=t.get(r);return void 0===n&&(n=e.apply(this,i),t.set(r,n)),n}function Er(e,t,r,i,n){return r.bind(t,e,i,n)}var xr=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.get=function(e){return this.cache[e]},Tr.prototype.set=function(e,t){this.cache[e]=t};var kr,Pr,Mr={create:function(){return new Tr}},Dr={variadic:function(e,t){return Er(e,this,Cr,t.cache.create(),t.serializer)},monadic:function(e,t){return Er(e,this,Sr,t.cache.create(),t.serializer)}};(Pr=kr=kr||{}).MISSING_VALUE="MISSING_VALUE",Pr.INVALID_VALUE="INVALID_VALUE",Pr.MISSING_INTL_API="MISSING_INTL_API";Ot(jr,Ir=Error),jr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var b,Ar,Br,Nr,Ir,Lr=jr,Hr=(Ot(Yr,Nr=Lr),Yr),Rr=(Ot(Ur,Br=Lr),Ur),$r=(Ot(Fr,Ar=Lr),Fr);function Fr(e,t){return Ar.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),kr.MISSING_VALUE,t)||this}function Ur(e,t,r){return Br.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),kr.INVALID_VALUE,r)||this}function Yr(e,t,r,i){return Nr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),kr.INVALID_VALUE,i)||this}function jr(e,t,r){e=Ir.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Gr(e,t,r,i,n,s,o){if(1===e.length&&Bt(e[0]))return[{type:b.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Bt(u))a.push({type:b.literal,value:u.value});else if(u.type===y.pound)"number"==typeof s&&a.push({type:b.literal,value:r.getNumberFormat(t).format(s)});else{var d=u.value;if(!(n&&d in n))throw new $r(d,o);d=n[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?b.literal:b.object,value:d});else if(It(u)){var h="string"==typeof u.style?i.date[u.style]:Ut(u.style)?u.style.parsedOptions:void 0;a.push({type:b.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(Lt(u))h="string"==typeof u.style?i.time[u.style]:Ut(u.style)?u.style.parsedOptions:i.time.medium,a.push({type:b.literal,value:r.getDateTimeFormat(t,h).format(d)});else if(Nt(u))(h="string"==typeof u.style?i.number[u.style]:Ft(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:b.literal,value:r.getNumberFormat(t,h).format(d)});else{if($t(u)){var m=u.children,f=u.value,p=n[f];if("function"!=typeof p)throw new Rr(f,"function",o);f=p(Gr(m,t,r,i,n,s).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?b.literal:b.object,value:e}}))}if(Ht(u)){if(!(g=u.options[d]||u.options.other))throw new Hr(u.value,d,Object.keys(u.options),o);a.push.apply(a,Gr(g.value,t,r,i,n))}else if(Rt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Lr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kr.MISSING_INTL_API,o);var p=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[p]||u.options.other}if(!g)throw new Hr(u.value,d,Object.keys(u.options),o);a.push.apply(a,Gr(g.value,t,r,i,n,d-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===b.literal&&t.type===b.literal?r.value+=t.value:e.push(t),e},[])}function zr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(i=b=b||{})[i.literal=0]="literal",i[i.object=1]="object";Object.defineProperty(m,"defaultLocale",{get:function(){return m.memoizedDefaultLocale||(m.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),m.memoizedDefaultLocale},enumerable:!1,configurable:!0}),m.memoizedDefaultLocale=null,m.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},m.__parse=wr,m.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Vr=m;function m(e,t,r,i){var n,s,o=this;if(void 0===t&&(t=m.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===b.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Gr(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=m.resolveLocale(t),"string"==typeof e){if(this.message=e,!m.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=m.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=m.formats,(s=r)?Object.keys(n).reduce(function(e,t){var r,i;return e[t]=(r=n[t],(i=s[t])?g(g(g({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=g(g({},r[t]),i[t]||{}),e},{})):r),e},g({},n)):n),this.formatters=i&&i.formatters||{getNumberFormat:_r(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,At([void 0],t,!1)))},{cache:zr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Dr.variadic}),getDateTimeFormat:_r(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,At([void 0],t,!1)))},{cache:zr(t.dateTime),strategy:Dr.variadic}),getPluralRules:_r(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,At([void 0],t,!1)))},{cache:zr(t.pluralRules),strategy:Dr.variadic})}}const Wr={},Zr=(e,t,r)=>r&&(t in Wr||(Wr[t]={}),e in Wr[t]||(Wr[t][e]=r),r),Qr=(t,r)=>{if(null!=r){if(r in Wr&&t in Wr[r])return Wr[r][t];var i=pi(r);for(let e=0;e<i.length;e++){var n=function(e,t){if(!Xr(e))return null;e=function(e){return qr[e]||null}(e);{var r=t;if(null!=r){if(r in e)return e[r];var i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}}(i[e],t);if(n)return Zr(t,r,n)}}};let qr;const Kr=ot({});function Xr(e){return e in qr}function Jr(t,...r){delete Wr[t],Kr.update(e=>(e[t]=Pt.all([e[t]||{},...r]),e))}at([Kr],([e])=>Object.keys(e)),Kr.subscribe(e=>qr=e);const ei={};function ti(e){return ei[e]}function ri(e){return null!=e&&pi(e).some(e=>{return null==(e=ti(e))?void 0:e.size})}function ii(i,e){return Promise.all(e.map(e=>{return t=i,r=e,ei[t].delete(r),0===ei[t].size&&delete ei[t],e().then(e=>e.default||e);var t,r})).then(e=>Jr(i,...e))}const ni={};const si={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const oi=ot(!1);var ai=Object.defineProperty,tr=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,li=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,di=(e,t,r)=>t in e?ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let hi;const mi=ot(null);function fi(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function pi(e,t=si.fallbackLocale){e=fi(e);return t?[...new Set([...e,...fi(t)])]:e}function gi(){return null!=hi?hi:void 0}mi.subscribe(e=>{hi=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const oe=tr(((e,t)=>{for(var r in t=t||{})ci.call(t,r)&&di(e,r,t[r]);if(li)for(var r of li(t))ui.call(t,r)&&di(e,r,t[r]);return e})({},mi),rr({set:t=>{if(t&&function(e){if(null!=e){var t=pi(e);for(let e=0;e<t.length;e++){var r=t[e];if(Xr(r))return r}}}(t)&&ri(t)){var r=si["loadingDelay"];let e;return"undefined"!=typeof window&&null!=gi()&&r?e=window.setTimeout(()=>oi.set(!0),r):oi.set(!0),function e(t){var r;return ri(t)?(r=pi(t).map(e=>{var t=ti(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),ni[t]=Promise.all(r.map(([e,t])=>ii(e,t))).then(()=>{if(ri(t))return e(t);delete ni[t]}),ni[t]):t in ni?ni[t]:Promise.resolve()}(t).then(()=>{mi.set(t)}).finally(()=>{clearTimeout(e),oi.set(!1)})}return mi.set(t)}}));var ir=r=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=r(e)}},yi=Object.defineProperty,vi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,_i=(e,t,r)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Si=(e,t)=>{for(var r in t=t||{})bi.call(t,r)&&_i(e,r,t[r]);if(vi)for(var r of vi(t))wi.call(t,r)&&_i(e,r,t[r]);return e},Ci=(e,t)=>{var r={};for(i in e)bi.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&vi)for(var i of vi(e))t.indexOf(i)<0&&wi.call(e,i)&&(r[i]=e[i]);return r};const Ei=(e,t)=>{var r=si["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xi=ir(e=>{var{locale:t,format:r}=e,e=Ci(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Ei("number",r)),new Intl.NumberFormat(t,e)}),Ti=ir(e=>{var{locale:t,format:r}=e,e=Ci(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Ei("date",r):0===Object.keys(e).length&&(e=Ei("date","short")),new Intl.DateTimeFormat(t,e)}),ki=ir(e=>{var{locale:t,format:r}=e,e=Ci(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Ei("time",r):0===Object.keys(e).length&&(e=Ei("time","short")),new Intl.DateTimeFormat(t,e)}),Pi=ir((e,t=gi())=>new Vr(e,t,si.formats,{ignoreTag:si.ignoreTag})),Mi=at([oe,Kr],()=>(e,t={})=>{var r,i;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:s,locale:o=gi(),default:a}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Qr(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(r=(i=si).handleMissingMessage)?void 0:r.call(i,{locale:o,id:e,defaultValue:a}))?r:a)?i:e;if(!s)return l;let c=l;try{c=Pi(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Oi=(at([oe],()=>(e,t)=>((e={})=>{var{locale:t=gi()}=e,e=Ci(e,["locale"]);return ki(Si({locale:t},e))})(t).format(e)),at([oe],()=>(e,t)=>((e={})=>{var{locale:t=gi()}=e,e=Ci(e,["locale"]);return Ti(Si({locale:t},e))})(t).format(e)),at([oe],()=>(e,t)=>((e={})=>{var{locale:t=gi()}=e,e=Ci(e,["locale"]);return xi(Si({locale:t},e))})(t).format(e)),at([oe,Kr],()=>(e,t=gi())=>Qr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Je.indexOf(e)&&(t=new qe(t),nt[e]=t,Je.push(e)),nt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Di(e,t){Jr(e,t)}const Ai={en:{goToLoginButton:"Go To Login",error:"We encountered an issue. Please go to Login to receive your SMS code."},zhs:{goToLoginButton:"去登錄",error:"我们遇到了一个问题。请转到登录以接收您的短信代码"},fr:{goToLoginButton:"Aller à la connexion",error:"Nous avons rencontré un problème. Veuillez vous connecter pour recevoir votre code SMS."},tr:{goToLoginButton:"Giriş Yap'a Git",error:"Bir sorunla karşılaştık. SMS kodunuzu almak için lütfen Giriş kısmına gidin."},ro:{goToLoginButton:"Catre Autentificare",error:"Am întâmpinat o problemă. Vă rugăm să accesați Login pentru a primi codul SMS."},es:{goToLoginButton:"Ir a Inicio de Sesión",error:"Encontramos un problema. Vaya a Iniciar sesión para recibir su código SMS."},pt:{goToLoginButton:"Ir para o Login",error:"Encontramos um problema. Vá para Login para receber seu código SMS."},hr:{goToLoginButton:"Idi na Prijava",error:"Naišli smo problem. Idite na Prijava kako biste primili svoj SMS kod."},"pt-br":{goToLoginButton:"Ir ao início da sessão",error:"Descobrimos um problema. Por favor, vá ao início da sessão para receber seu código SMS."},"es-mx":{goToLoginButton:"Ir a inicio de sesión",error:"Encontramos un problema. Por favor vaya al inicio de sesión para recibir su código SMS."}};function Bi(e,t){Jr(e,t)}const Ni={en:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerSimplePasswordError:"Password must be 8-20 characters long.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:'It doesn"t match the password.',registerPromoCode:"Promotional Code (Facultative)",promoCodeError:"",registerSecurityQuestion:"Security Question",registerSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityQuestionError2:"Only letters and numbers are accepted.",registerSecurityAnswer:"Security Answer",registerSecurityAnswer2:"Document Number",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerSecurityAnswerError2:"Only letters and numbers are accepted.",registerNext:"Next"},"zh-hk":{registerTitle:"創建您的帳戶",registerSubtitle:"已經有一個帳戶?",registerSubtitleLogin:"登錄",registerEmail:"電子郵件",registerEmailError:"電子郵件應包含“@”和 2-3 個字母長的域。",registerUsername:"用戶名",registerUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。",registerPassword:"密碼",registerPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",registerSimplePasswordError:"密码长度必须为 8-20 个字符。",registerConfirmPassword:"確認密碼",registerConfirmPasswordError:"它與密碼不匹配。",registerPromoCode:"促销代码",promoCodeError:"",registerSecurityQuestion:"安全問題",registerSecurityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",registerSecurityAnswer:"安全答案",registerSecurityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",registerNext:"下一個"},fr:{registerTitle:"Créez votre compte",registerSubtitle:"Vous avez déjà un compte?",registerSubtitleLogin:"Connexion",registerEmail:"Email",registerEmailError:"L'adresse mail doit comporter un '@' et un nom de domaine de 2 à 3 lettres.",registerUsername:'Nom d"utilisateur',registerUsernameError:"Le nom doit être composé d'au moins 2 caractères et ne doitpas contenir de caractères spéciaux.",registerPassword:"Mot de passe",registerPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial.",registerSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",registerConfirmPassword:"Confirmer le mot de passe",registerConfirmPasswordError:"ça ne correspond pas au mot de passe.",registerPromoCode:"Code Promotionnel (Facultatif)",promoCodeError:"",registerSecurityQuestion:"Questions de sécurité",registerSecurityQuestionError:"La question de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerSecurityAnswer:"Réponse de sécurité",registerSecurityAnswerError:"La réponse de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerNext:"Suivant"},tr:{registerTitle:"hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Şifre",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1 karakter uzunluğunda, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki",registerPromoCode:"Promosyon Kodu (İsteğe bağlı)",promoCodeError:"",registerSecurityQuestion2:"Belge Türü (DNI, Yabancı Kimlik Kartı, Pasaport)",registerSecurityQuestionError2:"Yalnızca harf ve rakamlar kabul edilir.",registerSecurityAnswer2:"Belge Numarası",registerSecurityAnswerError2:"Yalnızca harf ve rakamlar kabul edilir."},ro:{registerTitle:"Creeaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"},es:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"Email",registerEmailError:"Email debe contener '@' y un dominio de 2 a 3 letras.",registerUsername:"Usuario",registerUsernameError:"El nombre de Usuario debe tener mínimo 4 y máximo 20 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerSimplePasswordError:"La contraseña debe tener entre 8 y 20 caracteres.",registerConfirmPassword:"Confirmar Contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestion2:"Tipo de Documento (DNI, CE o Pasaporte)",registerSecurityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityQuestionError2:"Solo se aceptan letras y números.",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de Documento",registerSecurityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityAnswerError2:"Solo se aceptan letras y números.",registerNext:"Siguiente"},pt:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"},hr:{registerTitle:"Kreiraj svoj račun",registerSubtitle:"Već imate račun?",registerSubtitleLogin:"Prijava","registerE-mail":"E-mail","registerE-mailError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.",registerUsername:"Korisničko ime",registerUsernameError:"Ime mora imati najmanje 4-20 znakova i ne smije sadržavati posebne znakove.",registerPassword:"Lozinka",registerPasswordError:"Lozinka mora imati 8-20 znakova",registerSimplePasswordError:"Lozinka mora imati 8-20 znakova",registerConfirmPassword:"Potvrdi lozinku",registerConfirmPasswordError:"Ne odgovara lozinci.",registerPromoCode:"Promotivni kod (fakultativno)",promoCodeError:"promoCodeError",registerSecurityQuestion:"Sigurnosno pitanje",registerSecurityQuestion2:"Vrsta dokumenta",registerSecurityQuestionError:"Sigurnosno pitanje mora imati najmanje 1 znak i najviše 120 znakova.",registerSecurityQuestionError2:"Prihvaćaju se samo slova i brojke.",registerSecurityAnswer:"Sigurnosni Odgovor",registerSecurityAnswer2:"Broj dokumenta",registerSecurityAnswerError:"Sigurnosni odgovor mora imati najmanje 1 znak i najviše 120 znakova.",registerSecurityAnswerError2:"Prihvaćaju se samo slova i brojke.",registerNext:"Sljedeće"},"pt-br":{registerTitle:"Crie sua conta",registerSubtitle:"Você ja tem uma conta?",registerSubtitleLogin:"Iniciar sessão",registerEmail:"Correio eletrônico",registerEmailError:"O correio eletrônico deve conter '@' e um domínio de pelo menos 2-3 letras largas.",registerUsername:"Usuário",registerUsernameError:"O nome deve conter pelo menos 4 caracteres largos e não ter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres de largura.,e contener pelo menos 1 mayúscula, 1 número e 1 caractere especial",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres de largura.",registerConfirmPassword:"Confirmar contrasenha",registerConfirmPasswordError:"Não coincide com a contraseña",registerPromoCode:"Código promocional (Facultativo)",promoCodeError:"",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestion2:"Tipo de documento (Identificação Nacional,Carteira de identidade internacional, Pasaporte)",registerSecurityQuestionError:"A questão de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerSecurityQuestionError2:"Somente letras e números individuais são aceitos",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswer2:"Número de documento",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres",registerSecurityAnswerError2:"Solo letras y números son aceptados",registerNext:"Próximo"},"es-mx":{registerTitle:"Crear su cuenta",registerSubtitle:"¿Ya tiene cuenta?",registerSubtitleLogin:"Iniciar Sesión",registerEmail:"Correo electrónico",registerEmailError:"El correo electrónico debe contener '@' y un dominio de al menos 2-3 letras de largo.",registerUsername:"Usuario",registerUsernameError:"El nombre debe contener al menos 4 caracteres de largo y no tener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe ser de 8 a 20 caracteres de largo., y contener al menos 1 mayúscula, 1 número y 1 caracter especial",registerSimplePasswordError:"La contraseña debe ser de 8 a 20 caracteres de largo.",registerConfirmPassword:"Confirmar contraseña",registerConfirmPasswordError:"No coincide con la contraseña",registerPromoCode:"Código promocional (Facultativo)",promoCodeError:"",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestion2:"Tipo de documento (Identificación Nacional, Tarjeta de id internacional, Pasaporte)",registerSecurityQuestionError:"La pregunta de seguridad debe ser de al menos 1 caracter y máximo 120 caracteres.",registerSecurityQuestionError2:"Solo letras y números son aceptados",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de documento",registerSecurityAnswerError:"La respuesta de seguridad debe ser de al menos 1 caracter y máximo 120 caracteres",registerSecurityAnswerError2:"Solo letras y números son aceptados",registerNext:"Siguiente"}};function Ii(e){let r,i,n=e[31]("registerEmailError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerEmailError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Li(e){let r,i,n=e[31]("registerUsernameError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerUsernameError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Hi(r){let i,n,s,o,a,l,c,u,d;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),a=t("g"),l=t("path"),c=t("circle"),_t(l,"class","a"),_t(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"),_t(l,"transform","translate(0)"),_t(c,"class","a"),_t(c,"cx","2.779"),_t(c,"cy","2.779"),_t(c,"r","2.779"),_t(c,"transform","translate(20.827 30.303)"),_t(a,"transform","translate(-14.185 -27.832)"),_t(i,"class","TogglePasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.843"),_t(i,"height","10.5"),_t(i,"viewBox","0 0 18.843 10.5")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(s,o),ft(i,a),ft(a,l),ft(a,c),u||(d=wt(i,"click",r[63]),u=!0)},p:ht,d(e){e&&gt(i),u=!1,d()}}}function Ri(r){let i,n,s,o,a,l,c,u,d,h,m,f,p,g,y;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),a=t("g"),l=t("circle"),c=t("g"),u=t("path"),d=t("path"),h=t("g"),m=t("path"),f=t("path"),p=t("rect"),_t(l,"class","a"),_t(l,"cx","0.05"),_t(l,"cy","0.05"),_t(l,"r","0.05"),_t(l,"transform","translate(121.017 31.148)"),_t(u,"class","a"),_t(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),_t(u,"transform","translate(-142.164 -39.123)"),_t(d,"class","a"),_t(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),_t(d,"transform","translate(-136.413 -42.068)"),_t(c,"transform","translate(117.499 27.37)"),_t(m,"class","a"),_t(m,"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"),_t(m,"transform","translate(-110.856 -33.157)"),_t(f,"class","a"),_t(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"),_t(f,"transform","translate(-130.743 -29.617)"),_t(h,"transform","translate(110.856 24.899)"),_t(p,"class","a"),_t(p,"width","0.972"),_t(p,"height","15.861"),_t(p,"rx","0.486"),_t(p,"transform","translate(114.827 23.858) rotate(-39.315)"),_t(a,"transform","translate(-110.856 -23.242)"),_t(i,"class","TogglePasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.844"),_t(i,"height","12.887"),_t(i,"viewBox","0 0 18.844 12.887")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(s,o),ft(i,a),ft(a,l),ft(a,c),ft(c,u),ft(c,d),ft(a,h),ft(h,m),ft(h,f),ft(a,p),g||(y=wt(i,"click",r[62]),g=!0)},p:ht,d(e){e&&gt(i),g=!1,y()}}}function $i(e){let r,i,n=e[31]("registerPasswordError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerPasswordError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Fi(e){let r,i,n=e[31]("registerSimplePasswordError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerSimplePasswordError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Ui(r){let i,n,s,o,a,l,c,u,d;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),a=t("g"),l=t("path"),c=t("circle"),_t(l,"class","a"),_t(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"),_t(l,"transform","translate(0)"),_t(c,"class","a"),_t(c,"cx","2.779"),_t(c,"cy","2.779"),_t(c,"r","2.779"),_t(c,"transform","translate(20.827 30.303)"),_t(a,"transform","translate(-14.185 -27.832)"),_t(i,"class","ToggleConfirmPasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.843"),_t(i,"height","10.5"),_t(i,"viewBox","0 0 18.843 10.5")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(s,o),ft(i,a),ft(a,l),ft(a,c),u||(d=wt(i,"click",r[69]),u=!0)},p:ht,d(e){e&&gt(i),u=!1,d()}}}function Yi(r){let i,n,s,o,a,l,c,u,d,h,m,f,p,g,y;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),a=t("g"),l=t("circle"),c=t("g"),u=t("path"),d=t("path"),h=t("g"),m=t("path"),f=t("path"),p=t("rect"),_t(l,"class","a"),_t(l,"cx","0.05"),_t(l,"cy","0.05"),_t(l,"r","0.05"),_t(l,"transform","translate(121.017 31.148)"),_t(u,"class","a"),_t(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),_t(u,"transform","translate(-142.164 -39.123)"),_t(d,"class","a"),_t(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),_t(d,"transform","translate(-136.413 -42.068)"),_t(c,"transform","translate(117.499 27.37)"),_t(m,"class","a"),_t(m,"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"),_t(m,"transform","translate(-110.856 -33.157)"),_t(f,"class","a"),_t(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"),_t(f,"transform","translate(-130.743 -29.617)"),_t(h,"transform","translate(110.856 24.899)"),_t(p,"class","a"),_t(p,"width","0.972"),_t(p,"height","15.861"),_t(p,"rx","0.486"),_t(p,"transform","translate(114.827 23.858) rotate(-39.315)"),_t(a,"transform","translate(-110.856 -23.242)"),_t(i,"class","ToggleConfirmPasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.844"),_t(i,"height","12.887"),_t(i,"viewBox","0 0 18.844 12.887")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(s,o),ft(i,a),ft(a,l),ft(a,c),ft(c,u),ft(c,d),ft(a,h),ft(h,m),ft(h,f),ft(a,p),g||(y=wt(i,"click",r[68]),g=!0)},p:ht,d(e){e&&gt(i),g=!1,y()}}}function ji(e){let r,i,n=e[31]("registerConfirmPasswordError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerConfirmPasswordError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Gi(e){let r,i,n=e[31]("promoCodeError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("promoCodeError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function zi(e){let r,i,n=("true"==e[2]?e[31]("registerSecurityQuestionError2"):e[31]("registerSecurityQuestionError"))+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){4&t[0]|1&t[1]&&n!==(n=("true"==e[2]?e[31]("registerSecurityQuestionError2"):e[31]("registerSecurityQuestionError"))+"")&&St(i,n)},d(e){e&&gt(r)}}}function Vi(e){let r,i,n=("true"==e[2]?e[31]("registerSecurityAnswerError2"):e[31]("registerSecurityAnswerError"))+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){4&t[0]|1&t[1]&&n!==(n=("true"==e[2]?e[31]("registerSecurityAnswerError2"):e[31]("registerSecurityAnswerError"))+"")&&St(i,n)},d(e){e&&gt(r)}}}function Wi(r){let i,n,R,$,F,s,U,Y,j,G,z,o,a,l,V,W,Z,Q,c,q,K,X,u,d,J,ee,te,re,h,ie,ne,se,oe,m,f,ae,le,ce,ue,p,de,he,me,fe,pe,ge,ye,g,y,ve,be,we,_e,v,Se,Ce,Ee,xe,b,Te,ke,Pe,Me,w,Oe,De,Ae,_,S,Be,Ne,Ie,Le,C,He,Re,$e,E,x,Fe,Ue,Ye,je,T,Ge,ze,Ve,k,We,Ze,Qe,qe,Ke=r[31]("registerTitle")+"",Xe=r[31]("registerSubtitle")+"",Je=r[31]("registerSubtitleLogin")+"",et=r[31]("registerEmail")+"",tt=r[31]("registerUsername")+"",rt=r[31]("registerPassword")+"",it=r[31]("registerConfirmPassword")+"",nt=r[31]("registerPromoCode")+"",st=("true"==r[2]?r[31]("registerSecurityQuestion2"):r[31]("registerSecurityQuestion"))+"",ot=("true"==r[2]?r[31]("registerSecurityAnswer2"):r[31]("registerSecurityAnswer"))+"",at=r[31]("registerNext")+"",P=r[4]&&Ii(r),M=r[5]&&Li(r);function lt(e){return e[26]?Ri:Hi}let ct=lt(r),O=ct(r),D=r[6]&&"true"!==r[0]&&$i(r),A=r[6]&&"true"===r[0]&&Fi(r);function ut(e){return e[27]?Yi:Ui}let dt=ut(r),B=dt(r),N=r[7]&&ji(r),I=r[10]&&Gi(r),L=r[8]&&zi(r),H=r[9]&&Vi(r);return{c(){i=yt("div"),n=yt("div"),R=yt("h2"),$=vt(Ke),F=bt(),s=yt("p"),U=vt(Xe),Y=bt(),j=yt("span"),G=vt(Je),z=bt(),o=yt("form"),a=yt("div"),l=yt("label"),V=vt(et),W=vt(":"),(Z=yt("span")).textContent="*",Q=bt(),c=yt("input"),q=bt(),P&&P.c(),X=bt(),u=yt("div"),d=yt("label"),J=vt(tt),ee=vt(":"),(te=yt("span")).textContent="*",re=bt(),h=yt("input"),ne=bt(),M&&M.c(),oe=bt(),m=yt("div"),f=yt("label"),ae=vt(rt),le=vt(":"),(ce=yt("span")).textContent="*",ue=bt(),p=yt("input"),he=bt(),O.c(),me=bt(),D&&D.c(),fe=bt(),A&&A.c(),ye=bt(),g=yt("div"),y=yt("label"),ve=vt(it),be=vt(":"),(we=yt("span")).textContent="*",_e=bt(),v=yt("input"),Se=bt(),B.c(),Ce=bt(),N&&N.c(),xe=bt(),b=yt("div"),Te=yt("label"),ke=vt(nt),Pe=vt(":"),Me=bt(),w=yt("input"),Oe=bt(),I&&I.c(),Ae=bt(),_=yt("div"),S=yt("label"),Be=vt(st),Ne=vt(":"),(Ie=yt("span")).textContent="*",Le=bt(),C=yt("input"),He=bt(),L&&L.c(),$e=bt(),E=yt("div"),x=yt("label"),Fe=vt(ot),Ue=vt(":"),(Ye=yt("span")).textContent="*",je=bt(),T=yt("input"),Ge=bt(),H&&H.c(),Ve=bt(),k=yt("button"),We=vt(at),this.c=ht,_t(R,"class","RegisterFormTitle"),_t(j,"class","FormLoginCallToAction"),_t(s,"class","RegisterFormSubtitle"),_t(n,"class","RegisterFormHeader"),_t(Z,"class","FormRequired"),_t(l,"for","Email"),_t(c,"type","text"),_t(c,"id","Email"),_t(a,"class",K="EmailContainer "+(r[4]&&!r[11]?"InvalidField":"")+(0<=r[18]?.indexOf("email")?"Hidden":"")),_t(te,"class","FormRequired"),_t(d,"for","UserName"),_t(h,"type","text"),_t(h,"id","UserName"),_t(h,"autocomplete",ie=r[1]?"username":"off"),_t(u,"class",se="UserContainer "+(r[5]&&!r[12]?"InvalidField":"")+(0<=r[18]?.indexOf("username")?"Hidden":"")),_t(ce,"class","FormRequired"),_t(f,"for","Password"),_t(p,"name","new-password"),_t(p,"type","password"),_t(p,"id","new-password"),_t(p,"autocomplete",de=r[1]?"new-password":"off"),_t(p,"aria-describedby","password-constraints"),_t(m,"class",pe="PasswordContainer "+(r[6]&&!r[13]?"InvalidField":"")+(0<=r[18]?.indexOf("password")?"Hidden":"")),m.hidden=ge=0<=r[18]?.indexOf("password"),_t(we,"class","FormRequired"),_t(y,"for","ConfirmPassword"),_t(v,"type","password"),_t(v,"id","ConfirmPassword"),_t(g,"class",Ee="ConfirmPasswordContainer "+(r[7]&&!r[14]?"InvalidField":"")+(0<=r[18]?.indexOf("confirmPassword")?"Hidden":"")),_t(Te,"for","PromoCode"),_t(w,"type","text"),_t(w,"id","PromoCode"),_t(b,"class",De="PromoCodeContainer "+(0<=r[18]?.indexOf("promoCode")?"Hidden":"")),_t(Ie,"class","FormRequired"),_t(S,"for","SecurityQuestion"),_t(C,"type","text"),_t(C,"id","SecurityQuestion"),_t(_,"class",Re="SecurityQuestionContainer "+(r[8]&&!r[15]?"InvalidField":"")+(0<=r[18]?.indexOf("securityQuestion")?"Hidden":"")),_t(Ye,"class","FormRequired"),_t(x,"for","SecurityAnswer"),_t(T,"type","text"),_t(T,"id","SecurityAnswer"),_t(E,"class",ze="SecurityAnswerContainer "+(r[9]&&!r[16]?"InvalidField":"")+(0<=r[18]?.indexOf("securityAnswer")?"Hidden":"")),_t(k,"class","RegisterStepNext"),k.disabled=Ze=!r[30],_t(o,"class","RegisterFormContent")},m(e,t){pt(e,i,t),ft(i,n),ft(n,R),ft(R,$),ft(n,F),ft(n,s),ft(s,U),ft(s,Y),ft(s,j),ft(j,G),ft(i,z),ft(i,o),ft(o,a),ft(a,l),ft(l,V),ft(l,W),ft(l,Z),ft(a,Q),ft(a,c),Ct(c,r[20]),ft(a,q),P&&P.m(a,null),ft(o,X),ft(o,u),ft(u,d),ft(d,J),ft(d,ee),ft(d,te),ft(u,re),ft(u,h),Ct(h,r[19]),ft(u,ne),M&&M.m(u,null),ft(o,oe),ft(o,m),ft(m,f),ft(f,ae),ft(f,le),ft(f,ce),ft(m,ue),ft(m,p),Ct(p,r[21]),r[61](p),ft(m,he),O.m(m,null),ft(m,me),D&&D.m(m,null),ft(m,fe),A&&A.m(m,null),ft(o,ye),ft(o,g),ft(g,y),ft(y,ve),ft(y,be),ft(y,we),ft(g,_e),ft(g,v),Ct(v,r[22]),r[67](v),ft(g,Se),B.m(g,null),ft(g,Ce),N&&N.m(g,null),ft(o,xe),ft(o,b),ft(b,Te),ft(Te,ke),ft(Te,Pe),ft(b,Me),ft(b,w),Ct(w,r[25]),ft(b,Oe),I&&I.m(b,null),ft(o,Ae),ft(o,_),ft(_,S),ft(S,Be),ft(S,Ne),ft(S,Ie),ft(_,Le),ft(_,C),Ct(C,r[23]),ft(_,He),L&&L.m(_,null),ft(o,$e),ft(o,E),ft(E,x),ft(x,Fe),ft(x,Ue),ft(x,Ye),ft(E,je),ft(E,T),Ct(T,r[24]),ft(E,Ge),H&&H.m(E,null),ft(o,Ve),ft(o,k),ft(k,We),r[80](i),Qe||(qe=[wt(j,"click",r[51]),wt(c,"input",r[52]),wt(c,"keyup",r[33]),wt(c,"focus",r[53]),wt(c,"blur",r[54]),wt(h,"input",r[55]),wt(h,"keyup",r[34]),wt(h,"focus",r[56]),wt(h,"blur",r[57]),wt(p,"input",r[58]),wt(p,"keyup",r[39]),wt(p,"focus",r[59]),wt(p,"blur",r[60]),wt(v,"input",r[64]),wt(v,"keyup",r[40]),wt(v,"focus",r[65]),wt(v,"blur",r[66]),wt(w,"input",r[70]),wt(w,"keyup",r[41]),wt(w,"focus",r[71]),wt(w,"blur",r[72]),wt(C,"input",r[73]),wt(C,"keyup",r[42]),wt(C,"focus",r[74]),wt(C,"blur",r[75]),wt(T,"input",r[76]),wt(T,"keyup",r[43]),wt(T,"focus",r[77]),wt(T,"blur",r[78]),wt(k,"click",r[79])],Qe=!0)},p(e,t){1&t[1]&&Ke!==(Ke=e[31]("registerTitle")+"")&&St($,Ke),1&t[1]&&Xe!==(Xe=e[31]("registerSubtitle")+"")&&St(U,Xe),1&t[1]&&Je!==(Je=e[31]("registerSubtitleLogin")+"")&&St(G,Je),1&t[1]&&et!==(et=e[31]("registerEmail")+"")&&St(V,et),1048576&t[0]&&c.value!==e[20]&&Ct(c,e[20]),e[4]?P?P.p(e,t):((P=Ii(e)).c(),P.m(a,null)):P&&(P.d(1),P=null),264208&t[0]&&K!==(K="EmailContainer "+(e[4]&&!e[11]?"InvalidField":"")+(0<=e[18]?.indexOf("email")?"Hidden":""))&&_t(a,"class",K),1&t[1]&&tt!==(tt=e[31]("registerUsername")+"")&&St(J,tt),2&t[0]&&ie!==(ie=e[1]?"username":"off")&&_t(h,"autocomplete",ie),524288&t[0]&&h.value!==e[19]&&Ct(h,e[19]),e[5]?M?M.p(e,t):((M=Li(e)).c(),M.m(u,null)):M&&(M.d(1),M=null),266272&t[0]&&se!==(se="UserContainer "+(e[5]&&!e[12]?"InvalidField":"")+(0<=e[18]?.indexOf("username")?"Hidden":""))&&_t(u,"class",se),1&t[1]&&rt!==(rt=e[31]("registerPassword")+"")&&St(ae,rt),2&t[0]&&de!==(de=e[1]?"new-password":"off")&&_t(p,"autocomplete",de),2097152&t[0]&&p.value!==e[21]&&Ct(p,e[21]),ct===(ct=lt(e))&&O?O.p(e,t):(O.d(1),(O=ct(e))&&(O.c(),O.m(m,me))),e[6]&&"true"!==e[0]?D?D.p(e,t):((D=$i(e)).c(),D.m(m,fe)):D&&(D.d(1),D=null),e[6]&&"true"===e[0]?A?A.p(e,t):((A=Fi(e)).c(),A.m(m,null)):A&&(A.d(1),A=null),270400&t[0]&&pe!==(pe="PasswordContainer "+(e[6]&&!e[13]?"InvalidField":"")+(0<=e[18]?.indexOf("password")?"Hidden":""))&&_t(m,"class",pe),262144&t[0]&&ge!==(ge=0<=e[18]?.indexOf("password"))&&(m.hidden=ge),1&t[1]&&it!==(it=e[31]("registerConfirmPassword")+"")&&St(ve,it),4194304&t[0]&&v.value!==e[22]&&Ct(v,e[22]),dt===(dt=ut(e))&&B?B.p(e,t):(B.d(1),(B=dt(e))&&(B.c(),B.m(g,Ce))),e[7]?N?N.p(e,t):((N=ji(e)).c(),N.m(g,null)):N&&(N.d(1),N=null),278656&t[0]&&Ee!==(Ee="ConfirmPasswordContainer "+(e[7]&&!e[14]?"InvalidField":"")+(0<=e[18]?.indexOf("confirmPassword")?"Hidden":""))&&_t(g,"class",Ee),1&t[1]&&nt!==(nt=e[31]("registerPromoCode")+"")&&St(ke,nt),33554432&t[0]&&w.value!==e[25]&&Ct(w,e[25]),e[10]?I?I.p(e,t):((I=Gi(e)).c(),I.m(b,null)):I&&(I.d(1),I=null),262144&t[0]&&De!==(De="PromoCodeContainer "+(0<=e[18]?.indexOf("promoCode")?"Hidden":""))&&_t(b,"class",De),4&t[0]|1&t[1]&&st!==(st=("true"==e[2]?e[31]("registerSecurityQuestion2"):e[31]("registerSecurityQuestion"))+"")&&St(Be,st),8388608&t[0]&&C.value!==e[23]&&Ct(C,e[23]),e[8]?L?L.p(e,t):((L=zi(e)).c(),L.m(_,null)):L&&(L.d(1),L=null),295168&t[0]&&Re!==(Re="SecurityQuestionContainer "+(e[8]&&!e[15]?"InvalidField":"")+(0<=e[18]?.indexOf("securityQuestion")?"Hidden":""))&&_t(_,"class",Re),4&t[0]|1&t[1]&&ot!==(ot=("true"==e[2]?e[31]("registerSecurityAnswer2"):e[31]("registerSecurityAnswer"))+"")&&St(Fe,ot),16777216&t[0]&&T.value!==e[24]&&Ct(T,e[24]),e[9]?H?H.p(e,t):((H=Vi(e)).c(),H.m(E,null)):H&&(H.d(1),H=null),328192&t[0]&&ze!==(ze="SecurityAnswerContainer "+(e[9]&&!e[16]?"InvalidField":"")+(0<=e[18]?.indexOf("securityAnswer")?"Hidden":""))&&_t(E,"class",ze),1&t[1]&&at!==(at=e[31]("registerNext")+"")&&St(We,at),1073741824&t[0]&&Ze!==(Ze=!e[30])&&(k.disabled=Ze)},i:ht,o:ht,d(e){e&&gt(i),P&&P.d(),M&&M.d(),r[61](null),O.d(),D&&D.d(),A&&A.d(),r[67](null),B.d(),N&&N.d(),I&&I.d(),L&&L.d(),H&&H.d(),r[80](null),Qe=!1,mt(qe)}}}function Zi(t,e,r){let L;ae(t,Mi,e=>r(31,L=e));let i,n,s,o,{lang:a=""}=e,{disabledfields:l=""}=e,{defaultoptions:H=""}=e,{simplepasswordvalidation:c="false"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:h=""}=e,{savecredentials:R=""}=e,{custominputtextswitch:m="false"}=e,f=!1,p=!1,g=!1,y=!1,v=!1,b=!1,w=!1,_=!1,S=!1,C=!1,E=!1,$=!1,F=!1,U=!1,x="",T="",k="",P="",M="",O="",D="",A=!1,B=!1,Y=!1,N={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/,document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Ni).forEach(e=>{Bi(e,Ni[e])});const I=()=>{r(30,Y=!(f||p||g||y||v||b||w)),(x.length<=0||T.length<=0||k.length<=0||P.length<=0||M.length<=0||O.length<=0)&&r(30,Y=!1)},j=()=>{window.postMessage({type:"ToLogin"},window.location.href)},G=()=>{r(26,A=!0),Z()},z=()=>{r(27,B=!0),Q()},V=()=>{r(26,A=!1),Z()},W=()=>{r(27,B=!1),Q()},Z=()=>{r(28,n.type=A?"text":"password",n)},Q=()=>{r(29,s.type=B?"text":"password",s)},q=e=>{e.preventDefault();e={userEmail:T,userValue:x,userPassword:k,confirmUserPassword:P,securityQuestion:M,securityAnswer:O,promoCode:D};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},K=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(20,T=e.data.userData.email),r(19,x=e.data.userData.username),r(21,k=e.data.userData.password),r(22,P=e.data.userData.password),r(23,M=e.data.userData.securityQuestion),r(24,O=e.data.userData.securityAnswer),r(25,D=e.data.userData.promoCode),I())};return le(()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),t.$$set=e=>{"lang"in e&&r(45,a=e.lang),"disabledfields"in e&&r(46,l=e.disabledfields),"defaultoptions"in e&&r(47,H=e.defaultoptions),"simplepasswordvalidation"in e&&r(0,c=e.simplepasswordvalidation),"clientstyling"in e&&r(48,u=e.clientstyling),"clientstylingurl"in e&&r(49,d=e.clientstylingurl),"translationurl"in e&&r(50,h=e.translationurl),"savecredentials"in e&&r(1,R=e.savecredentials),"custominputtextswitch"in e&&r(2,m=e.custominputtextswitch)},t.$$.update=()=>{if(16384&t.$$.dirty[1]&&a&&(e=a,oe.set(e)),32768&t.$$.dirty[1]&&l&&(r(18,i=l.split(",")),0<=i.indexOf("email")&&(r(20,T="dummy@dummy.com"),r(4,f=!1)),0<=i.indexOf("username")&&(r(19,x="dummy username"),r(5,p=!1)),0<=i.indexOf("password")&&(r(21,k="dummy password"),r(6,g=!1)),0<=i.indexOf("confirmPassword")&&(r(22,P="dummy password"),r(7,y=!1)),0<=i.indexOf("securityQuestion")&&(r(23,M="dummy question"),r(8,v=!1)),0<=i.indexOf("securityAnswer")&&(r(24,O="dummy answer"),r(9,b=!1)),0<=i.indexOf("promoCode"))&&r(10,w=!1),1&t.$$.dirty[0]&&c&&"true"==c&&(N.password=/^(?!.* ).{8,20}$/),8&t.$$.dirty[0]|131072&t.$$.dirty[1]&&u&&o&&((e=document.createElement("style")).innerHTML=u,o.appendChild(e)),8&t.$$.dirty[0]|262144&t.$$.dirty[1]&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;524288&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Bi(e,t[e])})}).catch(e=>{console.log(e)})},[c,R,m,o,f,p,g,y,v,b,w,_,S,C,E,$,F,U,i,x,T,k,P,M,O,D,A,B,n,s,Y,L,j,()=>{var e;r(4,(e=T,f=!(N.email.test(e)&&e.length<=100))),I()},()=>{var e;r(5,(e=x,p=!(N.user.test(e)&&e.length<=20))),I()},G,z,V,W,()=>{var e;r(6,(e=k,g=!N.password.test(e))),k!==P&&0<P.length?r(7,y=!0):r(7,y=!1),I()},()=>{r(7,y=!(k===P)),I()},()=>{r(10,w=!1),I()},()=>{r(8,v=!(()=>{if(M)switch(m){case"true":if(N.document.test(M)&&M.length<=50)return!0;break;case"false":if(M&&M.length<=120)return!0}return!1})()),I()},()=>{r(9,b=!(()=>{if(O)switch(m){case"true":if(N.document.test(O)&&O.length<=50)return!0;break;case"false":if(O&&O.length<=120)return!0}return!1})()),I()},q,a,l,H,u,d,h,()=>j(),function(){T=this.value,r(20,T)},()=>r(11,_=!0),()=>r(11,_=!1),function(){x=this.value,r(19,x)},()=>r(12,S=!0),()=>r(12,S=!1),function(){k=this.value,r(21,k)},()=>r(13,C=!0),()=>r(13,C=!1),function(e){se[e?"unshift":"push"](()=>{n=e,r(28,n)})},()=>V(),()=>G(),function(){P=this.value,r(22,P)},()=>r(14,E=!0),()=>r(14,E=!1),function(e){se[e?"unshift":"push"](()=>{s=e,r(29,s)})},()=>W(),()=>z(),function(){D=this.value,r(25,D)},()=>r(17,U=!0),()=>r(17,U=!1),function(){M=this.value,r(23,M)},()=>r(15,$=!0),()=>r(15,$=!1),function(){O=this.value,r(24,O)},()=>r(16,F=!0),()=>r(16,F=!1),e=>q(e),function(e){se[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent=".RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.PromoCodeContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:40px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.PromoCodeContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.PromoCodeContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;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 var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.PromoCodeContainer.Hidden,.SecurityQuestionContainer.Hidden,.SecurityAnswerContainer.Hidden{display:none}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B))}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;position:absolute;padding-top:5px;top:55px;line-height:10px}.RegisterStepNext{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},Zi,Wi,S,{lang:45,disabledfields:46,defaultoptions:47,simplepasswordvalidation:0,clientstyling:48,clientstylingurl:49,translationurl:50,savecredentials:1,custominputtextswitch:2},null,[-1,-1,-1,-1]),e&&(e.target&&pt(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["lang","disabledfields","defaultoptions","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials","custominputtextswitch"]}get lang(){return this.$$.ctx[45]}set lang(e){this.$$set({lang:e}),h()}get disabledfields(){return this.$$.ctx[46]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[47]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),h()}get clientstyling(){return this.$$.ctx[48]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[49]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[50]}set translationurl(e){this.$$set({translationurl:e}),h()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(e){this.$$set({savecredentials:e}),h()}get custominputtextswitch(){return this.$$.ctx[2]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),h()}});qi=Qi={path:void 0,exports:{},require:function(e,t){return Or(null==t&&Qi.path)}},Qi.exports,qi.exports=function(){var L;function f(){return L.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function a(e){return void 0===e}function $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function F(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function U(e,t){for(var r=[],i=e.length,n=0;n<i;++n)r.push(t(e[n],n));return r}function Y(e,t){for(var r in t)p(t,r)&&(e[r]=t[r]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,r,i){return Dt(e,t,r,i,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function j(e){if(null==e._isValid){var t=g(e),r=z.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function G(e){var t=c(NaN);return null!=e?Y(g(t),e):g(t).userInvalidated=!0,t}var z=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,i=0;i<r;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},V=f.momentProperties=[],W=!1;function Z(e,t){var r,i,n,s=V.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(r=0;r<s;r++)a(n=t[i=V[r]])||(e[i]=n);return e}function Q(e){Z(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===W&&(W=!0,f.updateOffset(this),W=!1)}function l(e){return e instanceof Q||null!=e&&null!=e._isAMomentObject}function q(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return Y(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,s),a){for(var e,t,r=[],i=arguments.length,n=0;n<i;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];r.push(e)}q(s+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var K={};function X(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),K[e]||(q(t),K[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function J(e,t){var r,i=Y({},e);for(r in t)p(t,r)&&(H(e[r])&&H(t[r])?(i[r]={},Y(i[r],e[r]),Y(i[r],t[r])):null!=t[r]?i[r]=t[r]:delete i[r]);for(r in e)p(e,r)&&!p(t,r)&&H(e[r])&&(i[r]=Y({},i[r]));return i}function ee(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)p(e,t)&&r.push(t);return r};function s(e,t,r){var i=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ie=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},se={};function i(e,t,r,i){var n="string"==typeof i?function(){return this[i]()}:i;e&&(se[e]=n),t&&(se[t[0]]=function(){return s(n.apply(this,arguments),t[1],t[2])}),r&&(se[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ne[t]=ne[t]||function(i){for(var e,n=i.match(re),t=0,s=n.length;t<s;t++)se[n[t]]?n[t]=se[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<s;r++)t+=u(n[r])?n[r].call(e,i):n[r];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function i(e){return t.longDateFormat(e)||e}for(ie.lastIndex=0;0<=r&&ie.test(e);)e=e.replace(ie,i),ie.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,r,i={};for(r in e)p(e,r)&&(t=d(r))&&(i[t]=e[r]);return i}var ue={};function r(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function h(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?h(e):t}function he(t,r){return function(e){return null!=e?(fe(this,t,e),f.updateOffset(this,r),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(r=m(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ne(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var n=/\d/,y=/\d\d/,pe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,be=/\d\d\d\d\d\d?/,we=/\d{1,3}/,_e=/\d{1,4}/,Se=/[+-]?\d{1,6}/,Ce=/\d+/,Ee=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,b=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(e,r,i){Pe[e]=u(r)?r:function(e,t){return e&&i?i:r}}function ke(e,t){return p(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,i,n){return t||r||i||n})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},Me={};function S(e,r){var t,i,n=r;for("string"==typeof e&&(e=[e]),$(r)&&(n=function(e,t){t[r]=m(e)}),i=e.length,t=0;t<i;t++)Me[e[t]]=n}function Oe(e,n){S(e,function(e,t,r,i){r._w=r._w||{},n(e,r._w,r,i)})}var C,E=0,x=1,T=2,k=3,P=4,M=5,De=6,Ae=7,Be=8;function Ne(e,t){var r;return isNaN(e)||isNaN(t)?NaN:(r=(t%(r=12)+r)%r,e+=(t-r)/12,1==r?de(e)?29:28:31-r%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),w("M",v),w("MM",v,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),S(["M","MM"],function(e,t){t[x]=m(e)-1}),S(["MMM","MMMM"],function(e,t,r,i){i=r._locale.monthsParse(e,i,r._strict);null!=i?t[x]=i:g(r).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=b,$e=b;function Fe(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!$(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function Ue(e){return null!=e?(Fe(this,e),f.updateOffset(this,!0),this):me(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}for(var t,r=[],i=[],n=[],s=0;s<12;s++)t=c([2e3,s]),r.push(this.monthsShort(t,"")),i.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(r.sort(e),i.sort(e),n.sort(e),s=0;s<12;s++)r[s]=_(r[s]),i[s]=_(i[s]);for(s=0;s<24;s++)n[s]=_(n[s]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){return de(e)?366:365}i("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),w("Y",Ee),w("YY",v,y),w("YYYY",_e,ge),w("YYYYY",Se,ye),w("YYYYYY",Se,ye),S(["YYYYY","YYYYYY"],E),S("YYYY",function(e,t){t[E]=2===e.length?f.parseTwoDigitYear(e):m(e)}),S("YY",function(e,t){t[E]=f.parseTwoDigitYear(e)}),S("Y",function(e,t){t[E]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var Ge=he("FullYear",!0);function ze(e,t,r,i,n,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,i,n,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,s,o),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,r){r=7+t-r;return-(7+Ve(e,0,r).getUTCDay()-t)%7+r-1}function Ze(e,t,r,i,n){var s,t=1+7*(t-1)+(7+r-i)%7+We(e,i,n),r=t<=0?je(s=e-1)+t:t>je(e)?(s=e+1,t-je(e)):(s=e,t);return{year:s,dayOfYear:r}}function Qe(e,t,r){var i,n,s=We(e.year(),t,r),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?i=s+O(n=e.year()-1,t,r):s>O(e.year(),t,r)?(i=s-O(e.year(),t,r),n=e.year()+1):(n=e.year(),i=s),{week:i,year:n}}function O(e,t,r){var i=We(e,t,r),t=We(e+1,t,r);return(je(e)-i+t)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),w("w",v),w("ww",v,y),w("W",v),w("WW",v,y),Oe(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=m(e)});function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),w("d",v),w("e",v),w("E",v),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,r,i){i=r._locale.weekdaysParse(e,i,r._strict);null!=i?t.d=i:g(r).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,r,i){t[i]=m(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,rt=b;function it(){function e(e,t){return t.length-e.length}for(var t,r,i,n=[],s=[],o=[],a=[],l=0;l<7;l++)i=c([2e3,1]).day(l),t=_(this.weekdaysMin(i,"")),r=_(this.weekdaysShort(i,"")),i=_(this.weekdays(i,"")),n.push(t),s.push(r),o.push(i),a.push(t),a.push(r),a.push(i);n.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function st(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,nt),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+nt.apply(this)+s(this.minutes(),2)}),i("hmmss",0,0,function(){return""+nt.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),r("hour",13),w("a",ot),w("A",ot),w("H",v),w("h",v),w("k",v),w("HH",v,y),w("hh",v,y),w("kk",v,y),w("hmm",ve),w("hmmss",be),w("Hmm",ve),w("Hmmss",be),S(["H","HH"],k),S(["k","kk"],function(e,t,r){e=m(e);t[k]=24===e?0:e}),S(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),S(["h","hh"],function(e,t,r){t[k]=m(e),g(r).bigHour=!0}),S("hmm",function(e,t,r){var i=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i)),g(r).bigHour=!0}),S("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i,2)),t[M]=m(e.substr(n)),g(r).bigHour=!0}),S("Hmm",function(e,t,r){var i=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i))}),S("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i,2)),t[M]=m(e.substr(n))});b=he("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Je,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},D={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,r,i,n,s=0;s<e.length;){for(t=(n=ut(e[s]).split("-")).length,r=(r=ut(e[s+1]))?r.split("-"):null;0<t;){if(i=ht(n.slice(0,t).join("-")))return i;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),i=0;i<r;i+=1)if(e[i]!==t[i])return i;return r}(n,r)>=t-1)break;t--}s++}return at}function ht(t){var e;if(void 0===D[t]&&qi&&qi.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Or(),mt(e)}catch(e){D[t]=null}return D[t]}function mt(e,t){return e&&((t=a(t)?A(e):ft(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null===t)return delete D[e],null;var r,i=lt;if(t.abbr=e,null!=D[e])X("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])i=D[t.parentLocale]._config;else{if(null==(r=ht(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;i=r._config}return D[e]=new ee(J(i,t)),ct[e]&&ct[e].forEach(function(e){ft(e.name,e.config)}),mt(e),D[e]}function A(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=ht(e))return t;e=[e]}return dt(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[T]<1||t[T]>Ne(t[E],t[x])?T:t[k]<0||24<t[k]||24===t[k]&&(0!==t[P]||0!==t[M]||0!==t[De])?k:t[P]<0||59<t[P]?P:t[M]<0||59<t[M]?M:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<E||T<t)&&(t=T),g(e)._overflowWeeks&&-1===t&&(t=Ae),g(e)._overflowWeekday&&-1===t&&(t=Be),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,r,i,n,s,o,a=e._i,l=gt.exec(a)||yt.exec(a),a=bt.length,c=wt.length;if(l){for(g(e).iso=!0,t=0,r=a;t<r;t++)if(bt[t][1].exec(l[1])){n=bt[t][0],i=!1!==bt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,r=c;t<r;t++)if(wt[t][1].exec(l[3])){s=(l[2]||" ")+wt[t][0];break}if(null==s)return e._isValid=!1}if(!i&&null!=s)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=n+(s||"")+(o||""),Mt(e)}else e._isValid=!1}function xt(e,t,r,i,n,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&e.push(parseInt(s,10)),e}function Tt(e){var t,r,i,n,s=St.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),r=s[1],i=t,n=e,r&&Xe.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()?(g(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(r=s[8],i=s[9],n=s[10],r?Ct[r]:i?0:((r=parseInt(n,10))-(i=r%100))/100*60+i),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function kt(e,t,r){return null!=e?e:null!=t?t:r}function Pt(e){var t,r,i,n,s,o,a,l,c,u,d,h=[];if(!e._d){for(u=e,d=new Date(f.now()),r=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[T]&&null==e._a[x]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(o=1,a=4,i=kt(d.GG,u._a[E],Qe(B(),1,4).year),n=kt(d.W,1),((s=kt(d.E,1))<1||7<s)&&(l=!0)):(o=u._locale._week.dow,a=u._locale._week.doy,c=Qe(B(),o,a),i=kt(d.gg,u._a[E],c.year),n=kt(d.w,c.week),null!=d.d?((s=d.d)<0||6<s)&&(l=!0):null!=d.e?(s=d.e+o,(d.e<0||6<d.e)&&(l=!0)):s=o),n<1||n>O(i,o,a)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=Ze(i,n,s,o,a),u._a[E]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=kt(e._a[E],r[E]),(e._dayOfYear>je(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=h[t]=r[t];for(;t<7;t++)e._a[t]=h[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[k]&&0===e._a[P]&&0===e._a[M]&&0===e._a[De]&&(e._nextDay=!0,e._a[k]=0),e._d=(e._useUTC?Ve:ze).apply(null,h),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[k]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==f.ISO_8601)if(e._f!==f.RFC_2822){e._a=[],g(e).empty=!0;for(var t,r,i,n=""+e._i,s=n.length,o=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)i=r[l],(t=(n.match(ke(i,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&g(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),o+=t.length),se[i]?(t?g(e).empty=!1:g(e).unusedTokens.push(i),d=i,m=e,null!=(h=t)&&p(Me,d)&&Me[d](h,m._a,m,d)):e._strict&&!t&&g(e).unusedTokens.push(i);g(e).charsLeftOver=s-o,0<n.length&&g(e).unusedInput.push(n),e._a[k]<=12&&!0===g(e).bigHour&&0<e._a[k]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[k]=(s=e._locale,c=e._a[k],null==(u=e._meridiem)?c:null!=s.meridiemHour?s.meridiemHour(c,u):null!=s.isPM?((s=s.isPM(u))&&c<12&&(c+=12),c=s||12!==c?c:0):c),null!==(u=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(u,e._a[E])),Pt(e),pt(e)}else Tt(e);else Et(e);var c,u,d,h,m}function Ot(e){var t,r=e._i,i=e._f;{var n,s;return(e._locale=e._locale||A(e._l),null===r||void 0===i&&""===r)?G({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new Q(pt(r)):(F(r)?e._d=r:o(i)?function(e){var t,r,i,n,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)s=0,o=!1,t=Z({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Mt(t),j(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<i&&(i=s,r=t):(null==i||s<i||o)&&(i=s,r=t,o)&&(a=!0);Y(e,r||t)}(e):i?Mt(e):a(i=(r=e)._i)?r._d=new Date(f.now()):F(i)?r._d=new Date(i.valueOf()):"string"==typeof i?(n=r,null===(s=_t.exec(n._i))?(Et(n),!1===n._isValid&&(delete n._isValid,Tt(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:f.createFromInputFallback(n))):n._d=new Date(+s[1])):o(i)?(r._a=U(i.slice(0),function(e){return parseInt(e,10)}),Pt(r)):H(i)?(n=r)._d||(t=void 0===(s=ce(n._i)).day?s.date:s.day,n._a=U([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(n)):$(i)?r._d=new Date(i):f.createFromInputFallback(r),j(e)||(e._d=null),e))}}function Dt(e,t,r,i,n){var s={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==r&&!1!==r||(i=r,r=void 0),(H(e)&&R(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=i,(n=new Q(pt(Ot(n=s))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function B(e,t,r,i){return Dt(e,t,r,i,!1)}f.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:G()}),be=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:G()});function At(e,t){var r,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return B();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](r)||(r=t[i]);return r}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=ce(e),t=e.year||0,r=e.quarter||0,i=e.month||0,n=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,r,i=!1,n=Bt.length;for(t in e)if(p(e,t)&&(-1===C.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<n;++r)if(e[Bt[r]]){if(i)return!1;parseFloat(e[Bt[r]])!==m(e[Bt[r]])&&(i=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*n,this._months=+i+3*r+12*t,this._data={},this._locale=A(),this._bubble()}function It(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,r){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+r+s(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),w("Z",Te),w("ZZ",Te),S(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=$t(Te,e)});var Rt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function Ft(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||F(e)?e:B(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),f.updateOffset(t,!1),t):B(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var r,i,n=e;return It(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=jt.exec(e))?(r="-"===t[1]?-1:1,n={y:0,d:m(t[T])*r,h:m(t[k])*r,m:m(t[P])*r,s:m(t[M])*r,ms:m(Lt(1e3*t[De]))*r}):(t=Gt.exec(e))?(r="-"===t[1]?-1:1,n={y:zt(t[2],r),M:zt(t[3],r),w:zt(t[4],r),d:zt(t[5],r),h:zt(t[6],r),m:zt(t[7],r),s:zt(t[8],r)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=B(n.from),r=B(n.to),t=t.isValid()&&r.isValid()?(r=Ft(r,t),t.isBefore(r)?i=Vt(t,r):((i=Vt(r,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),i=new Nt(n),It(e)&&p(e,"_locale")&&(i._locale=e._locale),It(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}function zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Wt(i,n){return function(e,t){var r;return null===t||isNaN(+t)||(X(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),Zt(this,N(e,t),i),this}}function Zt(e,t,r,i){var n=t._milliseconds,s=Lt(t._days),t=Lt(t._months);e.isValid()&&(i=null==i||i,t&&Fe(e,me(e,"Month")+t*r),s&&fe(e,"Date",me(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),i)&&f.updateOffset(e,s||t)}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Ie=Wt(1,"add"),Ke=Wt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function qt(e){return l(e)||F(e)||Qt(e)||$(e)||(r=o(t=e),i=!1,r&&(i=0===t.filter(function(e){return!$(e)&&Qt(t)}).length),r&&i)||function(e){var t,r,i=H(e)&&!R(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)r=s[t],n=n||p(e,r);return i&&n}(e)||null==e;var t,r,i}function Kt(e,t){var r,i;return e.date()<t.date()?-Kt(t,e):-((r=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(r,"months"))<0?(t-i)/(i-e.clone().add(r-1,"months")):(t-i)/(e.clone().add(1+r,"months")-i)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=A(e))&&(this._locale=e),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Je=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Jt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function ir(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function nr(e,t){return t.erasAbbrRegex(e)}function sr(){for(var e=[],t=[],r=[],i=[],n=this.eras(),s=0,o=n.length;s<o;++s)t.push(_(n[s].name)),e.push(_(n[s].abbr)),r.push(_(n[s].narrow)),i.push(_(n[s].name)),i.push(_(n[s].abbr)),i.push(_(n[s].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function or(e,t){i(0,[e,e.length],0,t)}function ar(e,t,r,i,n){var s;return null==e?Qe(this,i,n).year:(t>(s=O(e,i,n))&&(t=s),function(e,t,r,i,n){e=Ze(e,t,r,i,n),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,i,n))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),w("N",nr),w("NN",nr),w("NNN",nr),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),S(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){i=r._locale.erasParse(e,i,r._strict);i?g(r).era=i:g(r).invalidEra=e}),w("y",Ce),w("yy",Ce),w("yyy",Ce),w("yyyy",Ce),w("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),S(["y","yy","yyy","yyyy"],E),S(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[E]=r._locale.eraYearOrdinalParse(e,n):t[E]=parseInt(e,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),or("gggg","weekYear"),or("ggggg","weekYear"),or("GGGG","isoWeekYear"),or("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),w("G",Ee),w("g",Ee),w("GG",v,y),w("gg",v,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Se,ye),w("ggggg",Se,ye),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=m(e)}),Oe(["gg","GG"],function(e,t,r,i){t[i]=f.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),w("Q",n),S("Q",function(e,t){t[x]=3*(m(e)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),r("date",9),w("D",v),w("DD",v,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),S(["D","DD"],T),S("Do",function(e,t){t[T]=m(e.match(v)[0])});_e=he("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),w("DDD",we),w("DDDD",pe),S(["DDD","DDDD"],function(e,t,r){r._dayOfYear=m(e)}),i("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),w("m",v),w("mm",v,y),S(["m","mm"],P);ge=he("Minutes",!1);i("s",["ss",2],0,"second"),t("second","s"),r("second",15),w("s",v),w("ss",v,y),S(["s","ss"],M);var lr,Se=he("Seconds",!1);for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),w("S",we,n),w("SS",we,y),w("SSS",we,pe),lr="SSSS";lr.length<=9;lr+="S")w(lr,Ce);function cr(e,t){t[De]=m(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")S(lr,cr);ye=he("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");n=Q.prototype;function ur(e){return e}n.add=Ie,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!R(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<i.length;n+=1)r=r||p(e,i[n]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||B(),r=Ft(e,this).startOf("day"),r=f.calendarFormat(this,r)||"sameElse",t=t&&(u(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,B(e)))},n.clone=function(){return new Q(this)},n.diff=function(e,t,r){var i,n,s;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(n=6e4*(i.utcOffset()-this.utcOffset()),t=d(t)){case"year":s=Kt(this,i)/12;break;case"month":s=Kt(this,i);break;case"quarter":s=Kt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:h(s)},n.endOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?ir:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}this._d.setTime(t),f.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from(B(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to(B(),e)},n.get=function(e){return u(this[e=d(e)])?this[e]():this},n.invalidAt=function(){return g(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,r,i){return e=l(e)?e:B(e),t=l(t)?t:B(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===i[1]?this.isBefore(t,r):!this.isAfter(t,r))},n.isSame=function(e,t){var e=l(e)?e:B(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return j(this)},n.lang=Je,n.locale=Xt,n.localeData=Jt,n.max=be,n.min=ve,n.parsingFlags=function(){return Y({},g(this))},n.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)p(e,t)&&r.push({unit:t,priority:ue[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=ce(e)),i=r.length,n=0;n<i;n++)this[r[n].unit](e[r[n].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},n.startOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?ir:rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}this._d.setTime(t),f.updateOffset(this,!0)}return this},n.subtract=Ke,n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},n.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,r;return this.isValid()?(t="moment",r="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},n.eraYear=function(){for(var e,t,r=this.localeData().eras(),i=0,n=r.length;i<n;++i)if(e=r[i].since<=r[i].until?1:-1,t=this.clone().startOf("day").valueOf(),r[i].since<=t&&t<=r[i].until||r[i].until<=t&&t<=r[i].since)return(this.year()-f(r[i].since).year())*e+r[i].offset;return this.year()},n.year=Ge,n.isLeapYear=function(){return de(this.year())},n.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=Ue,n.daysInMonth=function(){return Ne(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return O(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return O(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return O(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return O(this.isoWeekYear(),1,4)},n.date=_e,n.day=n.days=function(e){var t,r,i;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(r=e,i=this.localeData(),e="string"!=typeof r?r:isNaN(r)?"number"==typeof(r=i.weekdaysParse(r))?r:null:parseInt(r,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,r;return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=b,n.minute=n.minutes=ge,n.second=n.seconds=Se,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,r){var i,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:Ut(this);if("string"==typeof e){if(null===(e=$t(Te,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=Ut(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?Zt(this,N(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ut(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(xe,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?B(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Yt,n.isUTC=Yt,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",_e),n.months=e("months accessor is deprecated. Use month instead",Ue),n.years=e("years accessor is deprecated. Use year instead",Ge),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(Z(t={},this),(t=Ot(t))._a?(e=(t._isUTC?c:B)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,o=0;o<i;o++)(r&&e[o]!==t[o]||!r&&m(e[o])!==m(t[o]))&&s++;return s+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dr(e,t,r,i){var n=A(),i=c().set(i,t);return n[r](i,e)}function hr(e,t,r){if($(e)&&(t=e,e=void 0),e=e||"",null!=t)return dr(e,t,r,"month");for(var i=[],n=0;n<12;n++)i[n]=dr(e,n,r,"month");return i}function mr(e,t,r,i){t=("boolean"==typeof e||(r=t=e,e=!1),$(t)&&(r=t,t=void 0),t||"");var n,s=A(),o=e?s._week.dow:0,a=[];if(null!=r)return dr(t,(r+o)%7,i,"day");for(n=0;n<7;n++)a[n]=dr(t,(n+o)%7,i,"day");return a}y.calendar=function(e,t,r){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ur,y.postformat=ur,y.relativeTime=function(e,t,r,i){var n=this._relativeTime[r];return u(n)?n(e,t,r,i):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)p(e,r)&&(u(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,i=this._eras||A("en")._eras,n=0,s=i.length;n<s;++n)switch("string"==typeof i[n].since&&(r=f(i[n].since).startOf("day"),i[n].since=r.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=f(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}return i},y.erasParse=function(e,t,r){var i,n,s,o,a,l=this.eras();for(e=e.toUpperCase(),i=0,n=l.length;i<n;++i)if(s=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(s===e)return l[i];break;case"NNNNN":if(a===e)return l[i]}else if(0<=[s,o,a].indexOf(e))return l[i]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sr.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sr.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sr.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[He.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var i,n;if(this._monthsParseExact)return function(e,t,r){var i,n,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))||-1!==(n=C.call(this._longMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))||-1!==(n=C.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=c([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[i]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(n.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(r&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Qe(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?qe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var i,n;if(this._weekdaysParseExact)return function(e,t,r){var i,n,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=c([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(n.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(r&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(r&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},mt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),f.langData=e("moment.langData is deprecated. Use moment.localeData instead.",A);var fr=Math.abs;function pr(e,t,r,i){t=N(t,r);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function gr(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function vr(e){return 146097*e/4800}function br(e){return function(){return this.as(e)}}we=br("ms"),pe=br("s"),Ie=br("m"),be=br("h"),ve=br("d"),Ke=br("w"),b=br("M"),ge=br("Q"),Se=br("y");function wr(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wr("milliseconds"),_e=wr("seconds"),Ge=wr("minutes"),y=wr("hours"),_r=wr("days"),Sr=wr("months"),Cr=wr("years");var Er=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tr(e,t,r,i){var n=N(e).abs(),s=Er(n.as("s")),o=Er(n.as("m")),a=Er(n.as("h")),l=Er(n.as("d")),c=Er(n.as("M")),u=Er(n.as("w")),n=Er(n.as("y")),s=(s<=r.ss?["s",s]:s<r.s&&["ss",s])||(o<=1?["m"]:o<r.m&&["mm",o])||(a<=1?["h"]:a<r.h&&["hh",a])||(l<=1?["d"]:l<r.d&&["dd",l]);return(s=(s=null!=r.w?s||(u<=1?["w"]:u<r.w&&["ww",u]):s)||(c<=1?["M"]:c<r.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,s[3]=0<+e,s[4]=i,function(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}.apply(null,s)}var kr=Math.abs;function Pr(e){return(0<e)-(e<0)||+e}function Mr(){var e,t,r,i,n,s,o,a,l,c,u;return this.isValid()?(a=kr(this._milliseconds)/1e3,l=kr(this._days),c=kr(this._months),(u=this.asSeconds())?(e=h(a/60),t=h(e/60),a%=60,e%=60,r=h(c/12),c%=12,i=a?a.toFixed(3).replace(/\.?0+$/,""):"",n=Pr(this._months)!==Pr(u)?"-":"",s=Pr(this._days)!==Pr(u)?"-":"",o=Pr(this._milliseconds)!==Pr(u)?"-":"",(u<0?"-":"")+"P"+(r?n+r+"Y":"")+(c?n+c+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+i+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Nt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=fr(this._milliseconds),this._days=fr(this._days),this._months=fr(this._months),e.milliseconds=fr(e.milliseconds),e.seconds=fr(e.seconds),e.minutes=fr(e.minutes),e.hours=fr(e.hours),e.months=fr(e.months),e.years=fr(e.years),this},I.add=function(e,t){return pr(this,e,t,1)},I.subtract=function(e,t){return pr(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(vr(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=pe,I.asMinutes=Ie,I.asHours=be,I.asDays=ve,I.asWeeks=Ke,I.asMonths=b,I.asQuarters=ge,I.asYears=Se,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*gr(vr(r)+t),r=t=0),i.milliseconds=e%1e3,e=h(e/1e3),i.seconds=e%60,e=h(e/60),i.minutes=e%60,e=h(e/60),i.hours=e%24,t+=h(e/24),r+=e=h(yr(t)),t-=gr(vr(e)),e=h(r/12),r%=12,i.days=t,i.months=r,i.years=e,this},I.clone=function(){return N(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=Ge,I.hours=y,I.days=_r,I.weeks=function(){return h(this.days()/7)},I.months=Sr,I.years=Cr,I.humanize=function(e,t){var r,i;return this.isValid()?(r=!1,i=xr,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},xr,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),t=Tr(this,!r,i,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Mr,I.toString=Mr,I.toJSON=Mr,I.locale=Xt,I.localeData=Jt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mr),I.lang=Je,i("X",0,0,"unix"),i("x",0,0,"valueOf"),w("x",Ee),w("X",/[+-]?\d+(\.\d{1,3})?/),S("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),S("x",function(e,t,r){r._d=new Date(m(e))}),f.version="2.29.4",L=B,f.fn=n,f.min=function(){return At("isBefore",[].slice.call(arguments,0))},f.max=function(){return At("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=c,f.unix=function(e){return B(1e3*e)},f.months=function(e,t){return hr(e,t,"months")},f.isDate=F,f.locale=mt,f.invalid=G,f.duration=N,f.isMoment=l,f.weekdays=function(e,t,r){return mr(e,t,r,"weekdays")},f.parseZone=function(){return B.apply(null,arguments).parseZone()},f.localeData=A,f.isDuration=It,f.monthsShort=function(e,t){return hr(e,t,"monthsShort")},f.weekdaysMin=function(e,t,r){return mr(e,t,r,"weekdaysMin")},f.defineLocale=ft,f.updateLocale=function(e,t){var r,i;return null!=t?(i=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(J(D[e]._config,t)):(t=J(i=null!=(r=ht(e))?r._config:i,t),null==r&&(t.abbr=e),(i=new ee(t)).parentLocale=D[e],D[e]=i),mt(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===mt()&&mt(e)):null!=D[e]&&delete D[e]),D[e]},f.locales=function(){return te(D)},f.weekdaysShort=function(e,t,r){return mr(e,t,r,"weekdaysShort")},f.normalizeUnits=d,f.relativeTimeRounding=function(e){return void 0===e?Er:"function"==typeof e&&(Er=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==xr[e]&&(void 0===t?xr[e]:(xr[e]=t,"s"===e&&(xr.ss=t-1),!0))},f.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},f.prototype=n,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},f}();var Qi,qi,Ki=Qi.exports;function Xi(e,t){Jr(e,t)}const Ji={en:{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},"zh-hk":{registerBackButton:"後退",registerUserTitle:"標題",registerUserTitleSelect:"选择标题",registerUserTitleSelectMr:"先生.",registerUserTitleSelectMrs:"太太.",registerUserTitleSelectMs:"小姐.",registerFirstName:"名",registerFirstNameError:"名字的長度必須至少為 2 個字符,並且不包含特殊字符。",registerLastName:"姓",registerLastNameError:"姓氏必須至少有 2 個字符長並且不包含特殊字符。",registerDateOfBirth:"出生日期",registerBirthDay:"天",registerBirthMonth:"月",registerBirthYear:"年",registerBirthDateError:"最低注册年龄为 {licenseyears} 年。",registerBirthPlace:"出生地",registerBirthPlaceError:"出生地必須至少有 1 個字符長。",registerCurrency:"貨幣",registerNext:"下一個",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},fr:{registerBackButton:"Retour",registerUserTitle:"Titre",registerUserTitleSelect:"Sélectionnez le titre",registerUserTitleSelectMr:"Monsieur",registerUserTitleSelectMrs:"Madame",registerUserTitleSelectMs:"Mademoiselle",registerFirstName:"Prénom",registerFirstNameError:"Le prénom doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerLastName:"Nom de famille",registerLastNameError:"Le nom de famille doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerDateOfBirth:"Date de naissance",registerBirthDay:"Jour",registerBirthMonth:"Mois",registerBirthYear:"An",registerBirthDateError:"L'âge minimum d'enregistrement est de {licenseyears} ans.",registerBirthPlace:"Lieu de naissance",registerBirthPlaceError:"Le lieu de naissance doit comporter au moins un caractère.",registerCurrency:"Monnaie",registerNext:"Suivant",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},tr:{registerBackButton:"Geri",registerUserTitle:"Başlık",registerUserTitleSelect:"Başlık Seçin",registerUserTitleSelectMr:"Bay.",registerUserTitleSelectMrs:"Bayan.",registerUserTitleSelectMs:"Hanım.",registerFirstName:"İlk adı",registerFirstNameError:"Ad 2-50 karakter uzunluğunda olmalıdır.",registerLastName:"Soy isim",registerLastNameError:"Soyadı 2-50 karakter arasında olmalıdır.",registerDateOfBirth:"Doğum tarihi",registerBirthDay:"Gün",registerBirthMonth:"Ay",registerBirthYear:"Yıl",registerBirthDateError:"Minimum kayıt yaşı {licenseyears} yıldır.",registerBirthPlace:"Doğum Yeri",registerBirthPlaceError:"Doğum yeri en az 1 karakter uzunluğunda olmalıdır.",registerCurrency:"Para birimi",registerNext:"Sonraki",registerPersonalId:"Kişisel kimlik",registerPersonalIdCharacters:"Sadece sayılar",registerPersonalIdLength:"Yanlış Uzunluk"},ro:{registerBackButton:"Inapoi",registerUserTitle:"Titlu",registerUserTitleSelect:"Selecteaza Titlu",registerUserTitleSelectMr:"Dl.",registerUserTitleSelectMrs:"Dna.",registerUserTitleSelectMs:"Dra.",registerFirstName:"Prenume",registerFirstNameError:"Prenumele trebuie sa fie de 2-50 litere lungime.",registerLastName:"Nume",registerLastNameError:"Numele trebuie sa fie de 2-50 litere lungime.",registerDateOfBirth:"Data Nasterii",registerBirthDay:"Zi",registerBirthMonth:"Luna",registerBirthYear:"An",registerBirthDateError:"Varsta minima pentru inregistrare este de {licenseyears} ani.",registerBirthPlace:"Locule nasterii",registerBirthPlaceError:"Locul nasterii trebuie sa contina minim o litera",registerCurrency:"Moneda",registerNext:"Urmatorul",registerPersonalId:"Cod Numeric Personal",registerPersonalIdCharacters:"Pot fi introduse doar cifre",registerPersonalIdLength:"Codul numeric personal trebuie sa contina 13 cifre."},es:{registerBackButton:"Anterior",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar Título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srta.",registerFirstName:"Nombre",registerFirstNameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerLastName:"Apellido",registerLastNameError:"Apellido debe tener entre 2 a 50 caracteres.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima para registrarse es {licenseyears} años",registerBirthPlace:"Lugar de Nacimiento",registerBirthPlaceError:"Lugar de Nacimiento debe tener al menos 1 carácter.",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},pt:{registerBackButton:"Voltar",registerUserTitle:"Título",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"Primeiro nome",registerFirstNameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerLastName:"Último nome",registerLastNameError:"O sobrenome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Local de Nascimento",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},hr:{registerBackButton:"Prethodno",registerUserTitle:"Titula",registerUserTitleSelect:"Odaberite titulu",registerUserTitleSelectMr:"Gosp.",registerUserTitleSelectMrs:"Gđa",registerUserTitleSelectMs:"Gđica",registerFirstName:"Ime",registerFirstNameError:"Ime mora imati 2-50 znakova.",registerLastName:"Prezime",registerLastNameError:"Prezime mora imati 2-50 znakova.",registerDateOfBirth:"Datum rođenja",registerBirthDay:"Dan",registerBirthMonth:"Mjesec",registerBirthYear:"Godina",registerBirthDateError:"Za registraciju morate imati najmanje 18 godina.",registerBirthPlace:"Mjesto rođenja",registerBirthPlaceError:"Mjesto rođenja mora imati najmanje 1 znak.",registerCurrency:"Valuta",registerNext:"Slijedeće",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Samo brojevi",registerPersonalIdLength:"Pogrešna duljina"},"pt-br":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Selecionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nome",registerFirstNameError:"O nome deve ser de 2 a 20 caracteres de comprimento.",registerLastName:"Sobrenome",registerLastNameError:"O sobrenome deve ter de 2 a 50 caracteres.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Ano",registerBirthDateError:"A idade mínimo de registro é {licenseyears} anos.",registerBirthPlace:"Lugar de nascimento",registerBirthPlaceError:"O lugar de nascimento deve ter pelo menos 1 caractere",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Somente números",registerPersonalIdLength:"Formato de número de identificação incorreto"},"es-mx":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nombre",registerFirstNameError:"Nombre debe ser de 2 a 20 caracteres de largo.",registerLastName:"Apellido",registerLastNameError:"Apellido debe ser de 2 a 50 caracteres de largo.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima de registro es {licenseyears} años.",registerBirthPlace:"Lugar de nacimiento",registerBirthPlaceError:"Lugar de nacimiento debe tener al menos 1 caracter",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Sólo números",registerPersonalIdLength:"Formato de número de identificación Incorrecto"}};function en(e,t,r){e=e.slice();return e[79]=t[r],e}function tn(e,t,r){e=e.slice();return e[82]=t[r],e}function rn(e,t,r){e=e.slice();return e[85]=t[r],e}function nn(e,t,r){e=e.slice();return e[88]=t[r],e}function sn(r){let i,n,s,o,a,l,c,u,d,h,m,f,p,g,y,v,b,w=r[24]("registerUserTitle")+"",_=r[24]("registerUserTitleSelect")+"",S=r[24]("registerUserTitleSelectMr")+"",C=r[24]("registerUserTitleSelectMrs")+"",E=r[24]("registerUserTitleSelectMs")+"";return{c(){i=yt("div"),n=yt("label"),s=vt(w),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("select"),u=yt("option"),d=vt(_),h=yt("option"),m=vt(S),f=yt("option"),p=vt(C),g=yt("option"),y=vt(E),_t(a,"class","FormRequired"),_t(n,"for","Title"),u.__value="",u.value=u.__value,u.disabled=!0,u.selected=!0,h.__value="Mr.",h.value=h.__value,f.__value="Mrs.",f.value=f.__value,g.__value="Ms.",g.value=g.__value,_t(c,"id","Title"),void 0===r[12]&&tt(()=>r[44].call(c)),_t(i,"class","UserTitleContainer")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c),ft(c,u),ft(u,d),ft(c,h),ft(h,m),ft(c,f),ft(f,p),ft(c,g),ft(g,y),et(c,r[12],!0),v||(b=[wt(c,"change",r[44]),wt(c,"change",r[29])],v=!0)},p(e,t){16777216&t[0]&&w!==(w=e[24]("registerUserTitle")+"")&&St(s,w),16777216&t[0]&&_!==(_=e[24]("registerUserTitleSelect")+"")&&St(d,_),16777216&t[0]&&S!==(S=e[24]("registerUserTitleSelectMr")+"")&&St(m,S),16777216&t[0]&&C!==(C=e[24]("registerUserTitleSelectMrs")+"")&&St(p,C),16777216&t[0]&&E!==(E=e[24]("registerUserTitleSelectMs")+"")&&St(y,E),4096&t[0]&&et(c,e[12])},d(e){e&&gt(i),v=!1,mt(b)}}}function on(r){let i,n,s,o,a,l,c,u,d,h,m,f=r[24]("registerFirstName")+"",p=r[2]&&an(r);return{c(){i=yt("div"),n=yt("label"),s=vt(f),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),p&&p.c(),_t(a,"class","FormRequired"),_t(n,"for","FirstName"),_t(c,"type","text"),_t(c,"id","FirstName"),_t(i,"class",d="FirstNameContainer "+(r[2]&&!r[7]?"InvalidField":""))},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c),Ct(c,r[13]),ft(i,u),p&&p.m(i,null),h||(m=[wt(c,"input",r[45]),wt(c,"keyup",r[30]),wt(c,"focus",r[46]),wt(c,"keyup",r[47])],h=!0)},p(e,t){16777216&t[0]&&f!==(f=e[24]("registerFirstName")+"")&&St(s,f),8192&t[0]&&c.value!==e[13]&&Ct(c,e[13]),e[2]?p?p.p(e,t):((p=an(e)).c(),p.m(i,null)):p&&(p.d(1),p=null),132&t[0]&&d!==(d="FirstNameContainer "+(e[2]&&!e[7]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),p&&p.d(),h=!1,mt(m)}}}function an(e){let r,i,n=e[24]("registerFirstNameError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerFirstNameError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function ln(r){let i,n,s,o,a,l,c,u,d,h,m,f=r[24]("registerLastName")+"",p=r[3]&&cn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(f),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),p&&p.c(),_t(a,"class","FormRequired"),_t(n,"for","LastName"),_t(c,"type","text"),_t(c,"id","LastName"),_t(i,"class",d="LastNameContainer "+(r[3]&&!r[8]?"InvalidField":""))},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c),Ct(c,r[14]),ft(i,u),p&&p.m(i,null),h||(m=[wt(c,"input",r[48]),wt(c,"keyup",r[31]),wt(c,"focus",r[49]),wt(c,"blur",r[50])],h=!0)},p(e,t){16777216&t[0]&&f!==(f=e[24]("registerLastName")+"")&&St(s,f),16384&t[0]&&c.value!==e[14]&&Ct(c,e[14]),e[3]?p?p.p(e,t):((p=cn(e)).c(),p.m(i,null)):p&&(p.d(1),p=null),264&t[0]&&d!==(d="LastNameContainer "+(e[3]&&!e[8]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),p&&p.d(),h=!1,mt(m)}}}function cn(e){let r,i,n=e[24]("registerLastNameError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerLastNameError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function un(r){let i,n,s,o,a,l,c,u,d,h,m,f,p,g,y,v,b,w,_,S,C,e=r[24]("registerDateOfBirth")+"",E=r[24]("registerBirthDay")+"",x=r[24]("registerBirthMonth")+"",T=r[24]("registerBirthYear")+"",k=r[25],P=[];for(let e=0;e<k.length;e+=1)P[e]=dn(nn(r,k,e));let M=r[26],O=[];for(let e=0;e<M.length;e+=1)O[e]=hn(rn(r,M,e));let D=!r[23]&&mn(r),A=r[4]&&pn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(e),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("div"),u=yt("select"),d=yt("option"),h=vt(E);for(let e=0;e<P.length;e+=1)P[e].c();m=bt(),f=yt("select"),p=yt("option"),g=vt(x);for(let e=0;e<O.length;e+=1)O[e].c();y=bt(),v=yt("select"),b=yt("option"),w=vt(T),D&&D.c(),_=bt(),A&&A.c(),_t(a,"class","FormRequired"),d.__value="",d.value=d.__value,d.disabled=!0,d.selected=!0,_t(u,"class","BirthDaySelected"),void 0===r[15]&&tt(()=>r[51].call(u)),p.__value="",p.value=p.__value,p.disabled=!0,p.selected=!0,_t(f,"class","BirthMonthSelected"),void 0===r[16]&&tt(()=>r[52].call(f)),b.__value="",b.value=b.__value,b.disabled=!0,b.selected=!0,_t(v,"class","BirthYearSelected"),void 0===r[17]&&tt(()=>r[53].call(v)),_t(c,"class","BirthDateOptions"),_t(i,"class","BirthDateContainer")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c),ft(c,u),ft(u,d),ft(d,h);for(let e=0;e<P.length;e+=1)P[e]&&P[e].m(u,null);et(u,r[15],!0),ft(c,m),ft(c,f),ft(f,p),ft(p,g);for(let e=0;e<O.length;e+=1)O[e]&&O[e].m(f,null);et(f,r[16],!0),ft(c,y),ft(c,v),ft(v,b),ft(b,w),D&&D.m(v,null),et(v,r[17],!0),ft(c,_),A&&A.m(c,null),S||(C=[wt(u,"change",r[51]),wt(u,"change",r[28]),wt(f,"change",r[52]),wt(f,"change",r[28]),wt(v,"change",r[53]),wt(v,"change",r[28])],S=!0)},p(t,r){if(16777216&r[0]&&e!==(e=t[24]("registerDateOfBirth")+"")&&St(s,e),16777216&r[0]&&E!==(E=t[24]("registerBirthDay")+"")&&St(h,E),33554432&r[0]){let e;for(k=t[25],e=0;e<k.length;e+=1){var i=nn(t,k,e);P[e]?P[e].p(i,r):(P[e]=dn(i),P[e].c(),P[e].m(u,null))}for(;e<P.length;e+=1)P[e].d(1);P.length=k.length}if(33587200&r[0]&&et(u,t[15]),16777216&r[0]&&x!==(x=t[24]("registerBirthMonth")+"")&&St(g,x),67108864&r[0]){let e;for(M=t[26],e=0;e<M.length;e+=1){var n=rn(t,M,e);O[e]?O[e].p(n,r):(O[e]=hn(n),O[e].c(),O[e].m(f,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=M.length}67174400&r[0]&&et(f,t[16]),16777216&r[0]&&T!==(T=t[24]("registerBirthYear")+"")&&St(w,T),t[23]?D&&(D.d(1),D=null):D?D.p(t,r):((D=mn(t)).c(),D.m(v,null)),134348800&r[0]&&et(v,t[17]),t[4]?A?A.p(t,r):((A=pn(t)).c(),A.m(c,null)):A&&(A.d(1),A=null)},d(e){e&&gt(i),rt(P,e),rt(O,e),D&&D.d(),A&&A.d(),S=!1,mt(C)}}}function dn(e){let r,i,t=e[88]+"";return{c(){r=yt("option"),i=vt(t),r.__value=e[88],r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p:ht,d(e){e&&gt(r)}}}function hn(e){let r,i,t=e[85]+"";return{c(){r=yt("option"),i=vt(t),r.__value=e[85],r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p:ht,d(e){e&&gt(r)}}}function mn(t){let n,s=t[27],o=[];for(let e=0;e<s.length;e+=1)o[e]=fn(tn(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();n=it()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);pt(t,n,r)},p(t,r){if(134217728&r[0]){let e;for(s=t[27],e=0;e<s.length;e+=1){var i=tn(t,s,e);o[e]?o[e].p(i,r):(o[e]=fn(i),o[e].c(),o[e].m(n.parentNode,n))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){rt(o,e),e&&gt(n)}}}function fn(e){let r,i,t=e[82]+"";return{c(){r=yt("option"),i=vt(t),r.__value=e[82],r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p:ht,d(e){e&&gt(r)}}}function pn(e){let r,i,n=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){16777217&t[0]&&n!==(n=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"")&&St(i,n)},d(e){e&&gt(r)}}}function gn(r){let i,n,s,o,a,l,c,u,d,h,m,f=r[24]("registerBirthPlace")+"",p=r[5]&&yn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(f),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),p&&p.c(),_t(a,"class","FormRequired"),_t(n,"for","BirthPlace"),_t(c,"type","text"),_t(c,"id","BirthPlace"),_t(i,"class",d="BirthPlaceContainer "+(r[5]&&!r[9]?"InvalidField":""))},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c),Ct(c,r[18]),ft(i,u),p&&p.m(i,null),h||(m=[wt(c,"input",r[54]),wt(c,"keyup",r[32]),wt(c,"focus",r[55]),wt(c,"blur",r[56])],h=!0)},p(e,t){16777216&t[0]&&f!==(f=e[24]("registerBirthPlace")+"")&&St(s,f),262144&t[0]&&c.value!==e[18]&&Ct(c,e[18]),e[5]?p?p.p(e,t):((p=yn(e)).c(),p.m(i,null)):p&&(p.d(1),p=null),544&t[0]&&d!==(d="BirthPlaceContainer "+(e[5]&&!e[9]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),p&&p.d(),h=!1,mt(m)}}}function yn(e){let r,i,n=e[24]("registerBirthPlaceError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerBirthPlaceError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function vn(r){let i,n,s,o,a,l,c,u,d,h,m,f=r[24]("registerPersonalId")+"",p=r[6]&&bn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(f),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),p&&p.c(),_t(a,"class","FormRequired"),_t(n,"for","PersonalId"),_t(c,"type","text"),_t(c,"id","PersonalId"),_t(i,"class",d="PersonalIdContainer "+(r[6]&&!r[10]?"InvalidField":""))},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c),Ct(c,r[21]),ft(i,u),p&&p.m(i,null),h||(m=[wt(c,"input",r[57]),wt(c,"keyup",r[33]),wt(c,"focus",r[58]),wt(c,"blur",r[59])],h=!0)},p(e,t){16777216&t[0]&&f!==(f=e[24]("registerPersonalId")+"")&&St(s,f),2097152&t[0]&&c.value!==e[21]&&Ct(c,e[21]),e[6]?p?p.p(e,t):((p=bn(e)).c(),p.m(i,null)):p&&(p.d(1),p=null),1088&t[0]&&d!==(d="PersonalIdContainer "+(e[6]&&!e[10]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),p&&p.d(),h=!1,mt(m)}}}function bn(e){let r,i;function n(e,t){return(r=null==(r=2097152&t[0]?null:r)?!/^\d+$/.test(e[21]):r)?_n:wn}let s=n(e,[-1,-1,-1]),o=s(e);return{c(){o.c(),i=it()},m(e,t){o.m(e,t),pt(e,i,t)},p(e,t){s===(s=n(e,t))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&gt(i)}}}function wn(e){let r,i,n=e[24]("registerPersonalIdLength")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerPersonalIdLength")+"")&&St(i,n)},d(e){e&&gt(r)}}}function _n(e){let r,i,n=e[24]("registerPersonalIdCharacters")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerPersonalIdCharacters")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Sn(r){let i,n,s,o,a,l,c,e,u,d,h=r[24]("registerCurrency")+"",m=r[19],f=[];for(let e=0;e<m.length;e+=1)f[e]=Cn(en(r,m,e));return{c(){i=yt("div"),n=yt("label"),s=vt(h),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("select");for(let e=0;e<f.length;e+=1)f[e].c();_t(a,"class","FormRequired"),_t(n,"for","Currency"),_t(c,"id","Currency"),void 0===r[20]&&tt(()=>r[60].call(c)),_t(i,"class",e="CurrencyContainer "+(0<=r[11]?.indexOf("currency")?"Hidden":""))},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(i,l),ft(i,c);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(c,null);et(c,r[20],!0),u||(d=wt(c,"change",r[60]),u=!0)},p(t,r){if(16777216&r[0]&&h!==(h=t[24]("registerCurrency")+"")&&St(s,h),524288&r[0]){let e;for(m=t[19],e=0;e<m.length;e+=1){const s=en(t,m,e);f[e]?f[e].p(s,r):(f[e]=Cn(s),f[e].c(),f[e].m(c,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}1572864&r[0]&&et(c,t[20]),2048&r[0]&&e!==(e="CurrencyContainer "+(0<=t[11]?.indexOf("currency")?"Hidden":""))&&_t(i,"class",e)},d(e){e&&gt(i),rt(f,e),u=!1,d()}}}function Cn(e){let r,i,n,s=e[79]+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[79],r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){524288&t[0]&&s!==(s=e[79]+"")&&St(i,s),524288&t[0]&&n!==(n=e[79])&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function En(r){let i,n,s,o,a,l,R,c,$,u,F,d,h,m,f,p,g,y,v,b,w,_,S,U,C=r[24]("registerBackButton")+"",E=!(0<=r[11]?.indexOf("title")),x=!(0<=r[11]?.indexOf("firstName")),T=!(0<=r[11]?.indexOf("lastName")),k=!(0<=r[11]?.indexOf("birthDate")),P=!(0<=r[11]?.indexOf("birthPlace")),M=!(0<=r[11]?.indexOf("personalId")),Y=!(0<=r[11]?.indexOf("currency")),O=r[24]("registerNext")+"",D=E&&sn(r),A=x&&on(r),B=T&&ln(r),N=k&&un(r),I=P&&gn(r),L=M&&vn(r),H=Y&&Sn(r);return{c(){i=yt("div"),n=yt("div"),s=yt("button"),o=t("svg"),a=t("defs"),l=t("style"),R=vt(".a{fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));}"),c=t("path"),$=bt(),u=vt(C),F=bt(),d=yt("form"),D&&D.c(),h=bt(),A&&A.c(),m=bt(),B&&B.c(),f=bt(),N&&N.c(),p=bt(),I&&I.c(),g=bt(),L&&L.c(),y=bt(),H&&H.c(),v=bt(),b=yt("button"),w=vt(O),this.c=ht,_t(c,"class","a"),_t(c,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),_t(c,"transform","translate(24 24) rotate(180)"),_t(o,"xmlns","http://www.w3.org/2000/svg"),_t(o,"viewBox","0 0 24 24"),_t(s,"class","BackButton"),_t(n,"class","RegisterFormHeader"),_t(b,"class","RegisterStepNext"),b.disabled=_=!r[22],_t(d,"class","RegisterFormContent")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(s,o),ft(o,a),ft(a,l),ft(l,R),ft(o,c),ft(s,$),ft(s,u),ft(i,F),ft(i,d),D&&D.m(d,null),ft(d,h),A&&A.m(d,null),ft(d,m),B&&B.m(d,null),ft(d,f),N&&N.m(d,null),ft(d,p),I&&I.m(d,null),ft(d,g),L&&L.m(d,null),ft(d,y),H&&H.m(d,null),ft(d,v),ft(d,b),ft(b,w),r[62](i),S||(U=[wt(s,"click",r[35]),wt(b,"click",r[61])],S=!0)},p(e,t){16777216&t[0]&&C!==(C=e[24]("registerBackButton")+"")&&St(u,C),(E=2048&t[0]?!(0<=e[11]?.indexOf("title")):E)?D?D.p(e,t):((D=sn(e)).c(),D.m(d,h)):D&&(D.d(1),D=null),(x=2048&t[0]?!(0<=e[11]?.indexOf("firstName")):x)?A?A.p(e,t):((A=on(e)).c(),A.m(d,m)):A&&(A.d(1),A=null),(T=2048&t[0]?!(0<=e[11]?.indexOf("lastName")):T)?B?B.p(e,t):((B=ln(e)).c(),B.m(d,f)):B&&(B.d(1),B=null),(k=2048&t[0]?!(0<=e[11]?.indexOf("birthDate")):k)?N?N.p(e,t):((N=un(e)).c(),N.m(d,p)):N&&(N.d(1),N=null),(P=2048&t[0]?!(0<=e[11]?.indexOf("birthPlace")):P)?I?I.p(e,t):((I=gn(e)).c(),I.m(d,g)):I&&(I.d(1),I=null),(M=2048&t[0]?!(0<=e[11]?.indexOf("personalId")):M)?L?L.p(e,t):((L=vn(e)).c(),L.m(d,y)):L&&(L.d(1),L=null),(Y=2048&t[0]?!(0<=e[11]?.indexOf("currency")):Y)?H?H.p(e,t):((H=Sn(e)).c(),H.m(d,v)):H&&(H.d(1),H=null),16777216&t[0]&&O!==(O=e[24]("registerNext")+"")&&St(w,O),4194304&t[0]&&_!==(_=!e[22])&&(b.disabled=_)},i:ht,o:ht,d(e){e&&gt(i),D&&D.d(),A&&A.d(),B&&B.d(),N&&N.d(),I&&I.d(),L&&L.d(),H&&H.d(),r[62](null),S=!1,mt(U)}}}function xn(t,e,r){let L;ae(t,Mi,e=>r(24,L=e));let i,n,s,o,H,R,$,a,{endpoint:l=""}=e,{lang:c=""}=e,{licenseyears:u=""}=e,{disabledfields:d=""}=e,{defaultoptions:F=""}=e,{personalidlength:h=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:p=""}=e,g=!1,y=!1,v=!1,b=!1,w=!1,_=!1,S=!1,C=!1,E=!1,x="",T="",k="",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],Y=[1,2,3,4,5,6,7,8,9,10,11,12],P=[],M="",O=[],D="",A="",B=new Date,N=!1,j=!0;Object.keys(Ji).forEach(e=>{Xi(e,Ji[e])});const I=()=>{r(22,N=!(g||y||v||b||w)),!(T.length<=0||k.length<=0||M.length<=0||A.length<=0)&&x&&n&&s&&o||r(22,N=!1)},G=e=>!!(e&&2<=e.length&&e.length<=50),z=e=>{e.preventDefault();e={userTitleSelected:x,userFirstName:T,userLastName:k,birthDaySelected:n,birthMonthSelected:s,birthYearSelected:o,birthPlace:M,personalId:A,currencySelected:D};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},V=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(12,x=e.data.userData.title),r(13,T=e.data.userData.firstname),r(14,k=e.data.userData.lastname),r(15,n=e.data.userData.birth.day),r(16,s=e.data.userData.birth.month),r(17,o=e.data.userData.birth.year),r(18,M=e.data.userData.birthPlace),r(20,D=e.data.userData.currency),r(21,A=e.data.userData.personalId),I())};return le(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)})),t.$$set=e=>{"endpoint"in e&&r(36,l=e.endpoint),"lang"in e&&r(37,c=e.lang),"licenseyears"in e&&r(0,u=e.licenseyears),"disabledfields"in e&&r(38,d=e.disabledfields),"defaultoptions"in e&&r(39,F=e.defaultoptions),"personalidlength"in e&&r(40,h=e.personalidlength),"clientstyling"in e&&r(41,m=e.clientstyling),"clientstylingurl"in e&&r(42,f=e.clientstylingurl),"translationurl"in e&&r(43,p=e.translationurl)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&l&&fetch(l+"/v1/player/operatorSupportedCurrencies").then(e=>e.json()).then(e=>{r(19,O=e.currencies),D||r(20,D=O[0])}),64&t.$$.dirty[1]&&c&&(e=c,oe.set(e)),1&t.$$.dirty[0]&&u){R=parseInt(Ki(B.setDate(B.getDate())).subtract(parseInt(u,10),"y").format("YYYY")),H=parseInt(Ki(B.setDate(B.getDate())).subtract(100+parseInt(u,10),"y").format("YYYY"));for(let e=R;e>=H;e--)P.push(e);r(23,j=!1)}if(128&t.$$.dirty[1]&&d&&(r(11,i=d.split(",")),0<=i.indexOf("firstName")&&(r(13,T="dummy first name"),r(2,g=!1)),0<=i.indexOf("lastName")&&(r(14,k="dummy last name"),r(3,y=!1)),0<=i.indexOf("birthPlace")&&(r(18,M="dummy birth place"),r(5,b=!1)),0<=i.indexOf("personalId")&&(r(21,A="dummy personal id"),r(6,w=!1)),0<=i.indexOf("birthDate")&&r(4,v=!1),0<=i.indexOf("title")&&r(12,x="Mr."),0<=i.indexOf("currency"))&&r(20,D="CDF"),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&m&&a&&((e=document.createElement("style")).innerHTML=m,a.appendChild(e)),2&t.$$.dirty[0]|2048&t.$$.dirty[1]&&f&&a){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1),setTimeout(()=>{},500)})}var e;4096&t.$$.dirty[1]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xi(e,t[e])})}).catch(e=>{console.log(e)})},[u,a,g,y,v,b,w,_,S,C,E,i,x,T,k,n,s,o,M,O,D,A,N,j,L,U,Y,P,()=>{o&&s&&n&&($=Ki(B.setDate(B.getDate())).diff(Ki(`${o}-${s}-`+n,"YYYY-MM-DD"),"years").toString(),r(4,v=$<u)),I()},I,()=>{r(2,g=!G(T)),I()},()=>{r(3,y=!G(k)),I()},()=>{r(5,b=!(M&&M.length<=120)),I()},()=>{r(6,w=!(A&&A.length===Number(h)&&/^\d+$/.test(A))),I()},z,()=>{var e={userTitleSelected:x,userFirstName:T,userLastName:k,birthDaySelected:n,birthMonthSelected:s,birthYearSelected:o,birthPlace:M,personalId:A,currencySelected:D};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},l,c,d,F,h,m,f,p,function(){x=X(this),r(12,x)},function(){T=this.value,r(13,T)},()=>r(7,_=!0),()=>r(7,_=!1),function(){k=this.value,r(14,k)},()=>r(8,S=!0),()=>r(8,S=!1),function(){n=X(this),r(15,n),r(25,U)},function(){s=X(this),r(16,s),r(26,Y)},function(){o=X(this),r(17,o),r(27,P)},function(){M=this.value,r(18,M)},()=>r(9,C=!0),()=>r(9,C=!1),function(){A=this.value,r(21,A)},()=>r(10,E=!0),()=>r(10,E=!1),function(){D=X(this),r(20,D),r(19,O)},e=>z(e),function(e){se[e?"unshift":"push"](()=>{a=e,r(1,a)})}]}function Tn(e,t){Jr(e,t)}customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent=".BackButton{display:inline-flex;color:var(--emfe-w-registration-typography, var(--emfe-w-color-contrast, #07072A));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.UserTitleContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer select :visited{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.PersonalIdContainer,.CurrencyContainer{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.PersonalIdContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.PersonalIdContainer input,.CurrencyContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input,.PersonalIdContainer.InvalidField input{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.CurrencyContainer.Hidden{display:none}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.BirthDateOptions .BirthMonthSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.BirthDateOptions .BirthYearSelected{width:40%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.FormRequired{color:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},xn,En,S,{endpoint:36,lang:37,licenseyears:0,disabledfields:38,defaultoptions:39,personalidlength:40,clientstyling:41,clientstylingurl:42,translationurl:43},null,[-1,-1,-1]),e&&(e.target&&pt(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["endpoint","lang","licenseyears","disabledfields","defaultoptions","personalidlength","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[36]}set endpoint(e){this.$$set({endpoint:e}),h()}get lang(){return this.$$.ctx[37]}set lang(e){this.$$set({lang:e}),h()}get licenseyears(){return this.$$.ctx[0]}set licenseyears(e){this.$$set({licenseyears:e}),h()}get disabledfields(){return this.$$.ctx[38]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[39]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get personalidlength(){return this.$$.ctx[40]}set personalidlength(e){this.$$set({personalidlength:e}),h()}get clientstyling(){return this.$$.ctx[41]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[42]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[43]}set translationurl(e){this.$$set({translationurl:e}),h()}});const kn={en:{registerBackButton:"Back",registerAddress:"Address",registerAddressError:"Address must be at least 1 character long and 100 characters maximum.",registerPostalCode:"Postal Code",registerPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",registerCity:"City",registerCityError:"City must be at least 1 character long and 50 characters maximum.",registerCountry:"Country",registerNationality:"Nationality",registerMobile:"Mobile",registerMobileError:"Mobile must be at least 5 character long and 12 characters maximum.",registerUserConsents:"I want to receive exclusive offers and bonuses. I am aware that I can unsubscribe whenever I want to.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"I am at least 18 years old and I have read and accepted the <a href='/terms-and-conditions' target='_blank'>Terms and Conditions</a>.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"},"zh-hk":{registerBackButton:"後退",registerAddress:"地址",registerAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",registerPostalCode:"郵政編碼",registerPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",registerCity:"城市",registerCityError:"城市必須至少 1 個字符長,最多 50 個字符。",registerCountry:"國家",registerNationality:"國籍",registerMobile:"移動的",registerMobileError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",registerUserConsents:"我想收到獨家優惠和獎金。 我知道我可以隨時取消訂閱。",registerUserConsentsSMS:"短信",registerUserConsentsEmail:"電子郵件",registerTermsConditions:"我至少 18 歲,並且我已閱讀並接受條件條款。",registerTermsConditionsError:"請在繼續之前接受條款和條件。",registerOpenAccount:"開戶口"},fr:{registerBackButton:"Retour",registerAddress:"Adresse",registerAddressError:"L'adresse doit comporter au moins un caractère et 100 caractères au maximum.",registerPostalCode:"Code postal",registerPostalCodeError:"Le code postal doit comporter au moins un caractère et 20 caractères au maximum.",registerCity:"Ville",registerCityError:"La ville doit comporter au moins un caractère et 50 caractères au maximum.",registerCountry:"Pays",registerNationality:"Nationalité",registerMobile:"Téléphone",registerMobileError:"Le téléphone doit comporter au moins 5 caractère et 12 caractères au maximum.",registerUserConsents:"Je veux recevoir des offres exclusives et des bonus , je sais que je peux me désinscrire quand je le veux.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"J'ai au moins 18 ans et j'ai lu et accepté les conditions d'utilisation.",registerTermsConditionsError:"Veuillez accepter les termes et conditions avant de poursuivre.",registerOpenAccount:"Ouvrir un compte"},tr:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve maksimum 100 karakter olmalıdır.",registerPostalCode:"Posta Kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve maksimum 20 karakter uzunluğunda olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter, maksimum 50 karakter uzunluğunda olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve maksimum 12 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin bilincindeyim.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve <a href='/terms-and-conditions' target='_blank'>Şartlar ve Koşullar</a>'ı okuyup kabul ettim.",registerTermsConditionsError:"Devam etmeden önce lütfen Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"},ro:{registerBackButton:"Inapoi",registerAddress:"Adresa",registerAddressError:"Adresa trebuie sa fie cuprinsa in 1 si 100 de litere.",registerPostalCode:"Cod Postal",registerPostalCodeError:"Codul postal trebuie sa fie cuprins intre 1 si 20 de caractere.",registerCity:"Oras",registerCityError:"Orasul trebuie sa fie cuprins intre 1 si 50 de litere.",registerCountry:"Tara",registerNationality:"Nationalitatea",registerMobile:"Telefon",registerMobileError:"Telefonul trebuie sa fie cuprins intre 5 si 12 de cifre.",registerUserConsents:"Vreau sa primesc oferte si bonusuri exclusive. Sunt constient ca pot sa dau unsubscribe oricand.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Am minim 18 ani si am citit si acceptat Termenii si Conditiile",registerTermsConditionsError:"Te rog accepta Termenii si Conditiile",registerOpenAccount:"Inregistrare"},es:{registerBackButton:"Anterior",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",registerPostalCode:"Código Postal",registerPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",registerCity:"Ciudad",registerCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Celular",registerMobileError:"Número celular debe tener al menos 5 caracteres y un máximo de 12 caracteres",registerUserConsents:"Quiero recibir ofertas Exclusivas y Bonos. Soy consciente que puedo desuscribirme en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Tengo al menos 18 años de edad, y he leido y aceptado los Términos y Condiciones.",registerTermsConditionsError:"Por favor acepta los Términos y Condiciones antes de avanzar.",registerOpenAccount:"Abrir cuenta"},pt:{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter pelo menos 1 caractere e no máximo 100 caracteres.",registerPostalCode:"CEP",registerPostalCodeError:"O CEP deve ter pelo menos 1 caractere e no máximo 20 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Celular",registerMobileError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar a inscrição quando quiser.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-mail",registerTermsConditions:"Tenho pelo menos 18 anos e li e aceito os Termos de Condições.",registerTermsConditionsError:"Por favor, aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Abrir conta"},hr:{registerBackButton:"Prethodno",registerAddress:"Adresa",registerAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",registerPostalCode:"Poštanski broj",registerPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",registerCity:"Grad",registerCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",registerCountry:"Zemlja",registerNationality:"Nacionalnost",registerMobile:"Broj mobitela",registerMobileError:"Broj mobitela mora imati najmanje 5 znakova i najviše 12 znakova.",registerUserConsents:"Želim primati ekskluzivne ponude i bonuse. Svjestan sam da se mogu odjaviti kad god to želim.",registerUserConsentsSMS:"SMS","registerUserConsentsE-mail":"E-mail",registerTermsConditions:"Imam najmanje 18 godina i pročitao sam i prihvatio Uvjete.",registerTermsConditionsError:"Prije nastavka prihvatite Uvjete i odredbe.",registerOpenAccount:"Otvori račun"},"pt-br":{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerPostalCode:"Código postal",registerPostalCodeError:"O CEP deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Número de telemóvel",registerMobileError:"O número do celular deve ter entre 5 e 12 caracteres no máximo.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar esta assinatura a qualquer momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correio eletrônico",registerTermsConditions:"Tenho pelo menos 18 anos de idade e li e aceito os <a href='/terms-and-conditions' target='_blank'>Termos e Condições </a>.",registerTermsConditionsError:"Aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Conta aberta"},"es-mx":{registerBackButton:"Atrás",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 caracter y 100 caracteres máximo.",registerPostalCode:"Código postal",registerPostalCodeError:"El código postal debe tener al menos 1 caracter y 100 caracteres máximo.",registerCity:"Ciudad",registerCityError:"Ciudad debe tener al menos 1 caracter y 50 caracteres máximo.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Número de móvil",registerMobileError:"Número de móvil debe tener entre 5 caracteres de largo y 12 caracteres máximo.",registerUserConsents:"Quiero recibir ofertas exclusivas y bonos. Estoy consciente que puedo cancelar esta subscripción en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correo electrónico",registerTermsConditions:"Tengo al menos 18 años de edad y he leído y aceptado los <a href='/terms-and-conditions' target='_blank'>Términos y Condiciones </a>.",registerTermsConditionsError:"Por favor acepte los Términos y Condiciones antes de proceder.",registerOpenAccount:"Abrir cuenta"}},Pn=T["document"];function Mn(e,t,r){e=e.slice();return e[89]=t[r],e}function On(e,t,r){e=e.slice();return e[92]=t[r],e}function Dn(e,t,r){e=e.slice();return e[95]=t[r],e}function An(e){let r,i;return{c(){E((r=yt("script")).src,i="//www.google.com/recaptcha/api.js?render="+e[4])||_t(r,"src",i),r.async=!0,r.defer=!0},m(e,t){pt(e,r,t)},p(e,t){16&t[0]&&!E(r.src,i="//www.google.com/recaptcha/api.js?render="+e[4])&&_t(r,"src",i)},d(e){e&&gt(r)}}}function Bn(e){let r,i,n=e[32]("registerAddressError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerAddressError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Nn(e){let r,i,n=e[32]("registerPostalCodeError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerPostalCodeError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function In(e){let r,i,n=e[32]("registerCityError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerCityError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Ln(e){let r,i,n,s=e[95].Name+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[95].Alpha2Code,r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1048576&t[0]&&s!==(s=e[95].Name+"")&&St(i,s),1048576&t[0]&&n!==(n=e[95].Alpha2Code)&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function Hn(e){let r,i,n,s=e[92].Name+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[92].Alpha2Code,r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){4194304&t[0]&&s!==(s=e[92].Name+"")&&St(i,s),4194304&t[0]&&n!==(n=e[92].Alpha2Code)&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function Rn(e){let r,i,n,s=e[89].Prefix+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[89].Prefix,r.value=r.__value},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){33554432&t[0]&&s!==(s=e[89].Prefix+"")&&St(i,s),33554432&t[0]&&n!==(n=e[89].Prefix)&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function $n(e){let r,i,n=e[32]("registerMobileError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerMobileError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function Fn(e){let r,i,n=("true"===e[2]||"true"===e[3])&&Un(e),s="true"===e[1]&&Gn(e);return{c(){n&&n.c(),r=bt(),s&&s.c(),i=it()},m(e,t){n&&n.m(e,t),pt(e,r,t),s&&s.m(e,t),pt(e,i,t)},p(e,t){"true"===e[2]||"true"===e[3]?n?n.p(e,t):((n=Un(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null),"true"===e[1]?s?s.p(e,t):((s=Gn(e)).c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(e){n&&n.d(e),e&&gt(r),s&&s.d(e),e&&gt(i)}}}function Un(r){let i,n,s,o,a,l,c,u,d,h,m,f,p=r[32]("registerUserConsents")+"",g="true"===r[2]&&Yn(r),y="true"===r[3]&&jn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(p),o=bt(),a=yt("input"),l=bt(),c=yt("span"),u=bt(),d=yt("div"),g&&g.c(),h=bt(),y&&y.c(),_t(a,"type","Checkbox"),a.checked=r[27],_t(c,"class","Checkmark"),_t(n,"class","Offers"),_t(d,"class","OffersMethodsWrapper"),_t(i,"class","OffersContainer")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(n,o),ft(n,a),ft(n,l),ft(n,c),ft(i,u),ft(i,d),g&&g.m(d,null),ft(d,h),y&&y.m(d,null),m||(f=wt(a,"click",r[64]),m=!0)},p(e,t){2&t[1]&&p!==(p=e[32]("registerUserConsents")+"")&&St(s,p),134217728&t[0]&&(a.checked=e[27]),"true"===e[2]?g?g.p(e,t):((g=Yn(e)).c(),g.m(d,h)):g&&(g.d(1),g=null),"true"===e[3]?y?y.p(e,t):((y=jn(e)).c(),y.m(d,null)):y&&(y.d(1),y=null)},d(e){e&&gt(i),g&&g.d(),y&&y.d(),m=!1,f()}}}function Yn(r){let i,n,s,o,a,l,c,u,d=r[32]("registerUserConsentsSMS")+"";return{c(){i=yt("label"),n=vt(d),s=bt(),o=yt("input"),a=bt(),l=yt("span"),_t(o,"type","Checkbox"),o.checked=r[28],_t(l,"class","Checkmark"),_t(i,"class","OffersMethod")},m(e,t){pt(e,i,t),ft(i,n),ft(i,s),ft(i,o),ft(i,a),ft(i,l),c||(u=wt(o,"click",r[65]),c=!0)},p(e,t){2&t[1]&&d!==(d=e[32]("registerUserConsentsSMS")+"")&&St(n,d),268435456&t[0]&&(o.checked=e[28])},d(e){e&&gt(i),c=!1,u()}}}function jn(r){let i,n,s,o,a,l,c,u,d=r[32]("registerUserConsentsEmail")+"";return{c(){i=yt("label"),n=vt(d),s=bt(),o=yt("input"),a=bt(),l=yt("span"),_t(o,"type","Checkbox"),o.checked=r[29],_t(l,"class","Checkmark"),_t(i,"class","OffersMethod")},m(e,t){pt(e,i,t),ft(i,n),ft(i,s),ft(i,o),ft(i,a),ft(i,l),c||(u=wt(o,"click",r[66]),c=!0)},p(e,t){2&t[1]&&d!==(d=e[32]("registerUserConsentsEmail")+"")&&St(n,d),536870912&t[0]&&(o.checked=e[29])},d(e){e&&gt(i),c=!1,u()}}}function Gn(r){let i,n,s,o,a,l,c,u,d,h,m,f=!r[30]&&zn(r);return{c(){i=yt("div"),n=yt("label"),s=yt("span"),o=bt(),a=yt("input"),l=bt(),c=yt("span"),u=bt(),f&&f.c(),d=it(),_t(a,"type","Checkbox"),a.checked=r[30],_t(c,"class","Checkmark"),_t(n,"class","AgeConsent"),_t(i,"class","AgeContainer")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),s.innerHTML=r[33],ft(n,o),ft(n,a),ft(n,l),ft(n,c),pt(e,u,t),f&&f.m(e,t),pt(e,d,t),h||(m=wt(a,"click",r[67]),h=!0)},p(e,t){1073741824&t[0]&&(a.checked=e[30]),e[30]?f&&(f.d(1),f=null):f?f.p(e,t):((f=zn(e)).c(),f.m(d.parentNode,d))},d(e){e&&gt(i),e&&gt(u),f&&f.d(e),e&&gt(d),h=!1,m()}}}function zn(e){let r,i,n,s=e[32]("registerTermsConditionsError")+"";return{c(){r=yt("div"),i=yt("p"),n=vt(s),_t(r,"class","NotificationContainer")},m(e,t){pt(e,r,t),ft(r,i),ft(i,n)},p(e,t){2&t[1]&&s!==(s=e[32]("registerTermsConditionsError")+"")&&St(n,s)},d(e){e&&gt(r)}}}function Vn(e){let r,i,n;return{c(){r=yt("div"),i=yt("p"),n=vt(e[16]),_t(i,"class","RegisterError")},m(e,t){pt(e,r,t),ft(r,i),ft(i,n)},p(e,t){65536&t[0]&&St(n,e[16])},d(e){e&&gt(r)}}}function Wn(r){let R,$,o,F,a,U,i,n,Y,j,G,z,V,W,Z,l,s,c,u,Q,q,K,X,d,J,e,ee,h,m,te,re,ie,ne,f,se,oe,ae,p,g,le,ce,ue,de,y,he,me,fe,v,b,pe,ge,ye,ve,w,be,we,_,S,_e,Se,Ce,Ee,C,xe,Te,E,ke,Pe,Me,Oe,De,Ae,x,Be,T,Ne,Ie,Le,He,k,Re,$e,Fe,Ue,Ye,je=r[32]("registerBackButton")+"",Ge=r[32]("registerAddress")+"",ze=r[32]("registerPostalCode")+"",Ve=r[32]("registerCity")+"",We=r[32]("registerCountry")+"",Ze=r[32]("registerNationality")+"",Qe=r[32]("registerMobile")+"",qe=r[32]("registerOpenAccount")+"",P=r[4]&&An(r),M=r[6]&&Bn(r),O=r[7]&&Nn(r),D=r[9]&&In(r),Ke=r[20],A=[];for(let e=0;e<Ke.length;e+=1)A[e]=Ln(Dn(r,Ke,e));let Xe=r[22],B=[];for(let e=0;e<Xe.length;e+=1)B[e]=Hn(On(r,Xe,e));let Je=r[25],N=[];for(let e=0;e<Je.length;e+=1)N[e]=Rn(Mn(r,Je,e));let I=r[8]&&$n(r),L="true"===r[0]&&Fn(r),H=r[15]&&Vn(r);return{c(){P&&P.c(),R=it(),$=bt(),o=yt("div"),F=bt(),a=yt("div"),U=yt("div"),i=yt("button"),n=t("svg"),Y=t("defs"),j=t("style"),G=vt(".a{fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));}"),z=t("path"),V=bt(),W=vt(je),Z=bt(),l=yt("form"),s=yt("div"),c=yt("div"),u=yt("label"),Q=vt(Ge),q=vt(":"),(K=yt("span")).textContent="*",X=bt(),d=yt("input"),J=bt(),M&&M.c(),ee=bt(),h=yt("div"),m=yt("label"),te=vt(ze),re=vt(":"),(ie=yt("span")).textContent="*",ne=bt(),f=yt("input"),se=bt(),O&&O.c(),ae=bt(),p=yt("div"),g=yt("label"),le=vt(Ve),ce=vt(":"),(ue=yt("span")).textContent="*",de=bt(),y=yt("input"),he=bt(),D&&D.c(),fe=bt(),v=yt("div"),b=yt("label"),pe=vt(We),ge=vt(":"),(ye=yt("span")).textContent="*",ve=bt(),w=yt("select");for(let e=0;e<A.length;e+=1)A[e].c();we=bt(),_=yt("div"),S=yt("label"),_e=vt(Ze),Se=vt(":"),(Ce=yt("span")).textContent="*",Ee=bt(),C=yt("select");for(let e=0;e<B.length;e+=1)B[e].c();Te=bt(),E=yt("div"),ke=yt("label"),Pe=vt(Qe),Me=vt(":"),(Oe=yt("span")).textContent="*",De=bt(),Ae=yt("div"),x=yt("select");for(let e=0;e<N.length;e+=1)N[e].c();Be=bt(),T=yt("input"),Ne=bt(),I&&I.c(),Le=bt(),L&&L.c(),He=bt(),k=yt("button"),Re=vt(qe),Fe=bt(),H&&H.c(),this.c=ht,_t(o,"class","g-recaptcha"),_t(o,"data-sitekey",r[4]),_t(z,"class","a"),_t(z,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),_t(z,"transform","translate(24 24) rotate(180)"),_t(n,"xmlns","http://www.w3.org/2000/svg"),_t(n,"viewBox","0 0 24 24"),_t(i,"class","BackButton"),_t(U,"class","RegisterFormHeader"),_t(K,"class","FormRequired"),_t(u,"for","Address"),_t(d,"type","text"),_t(d,"id","Address"),_t(c,"class",e="AddressContainer "+(r[6]&&!r[10]?"InvalidField":"")+(0<=r[14]?.indexOf("address")?"Hidden":"")),_t(ie,"class","FormRequired"),_t(m,"for","PostalCode"),_t(f,"type","text"),_t(f,"id","PostalCode"),_t(h,"class",oe="PostalCodeContainer "+(r[7]&&!r[11]?"InvalidField":"")+(0<=r[14]?.indexOf("postalCode")?"Hidden":"")),_t(s,"class","AddressPostalCodeContainer"),_t(ue,"class","FormRequired"),_t(g,"for","City"),_t(y,"type","text"),_t(y,"id","City"),_t(p,"class",me="CityContainer "+(r[9]&&r[13]?"InvalidField":"")+(0<=r[14]?.indexOf("city")?"Hidden":"")),_t(ye,"class","FormRequired"),_t(b,"for","Country"),_t(w,"id","Country"),void 0===r[21]&&tt(()=>r[58].call(w)),_t(v,"class",be="CountryContainer "+(0<=r[14]?.indexOf("country")?"Hidden":"")),_t(Ce,"class","FormRequired"),_t(S,"for","Nationality"),_t(C,"id","Nationality"),void 0===r[23]&&tt(()=>r[59].call(C)),_t(_,"class",xe="NationalityContainer "+(0<=r[14]?.indexOf("nationality")?"Hidden":"")),_t(Oe,"class","FormRequired"),_t(ke,"for","Mobile"),_t(x,"class","MobilePrefixSelected"),void 0===r[26]&&tt(()=>r[60].call(x)),_t(T,"type","text"),_t(T,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),_t(T,"id","Mobile"),_t(T,"class","MobileInput"),_t(Ae,"class","MobileWrapper"),_t(E,"class",Ie="MobileContainer "+(r[8]&&!r[12]?"InvalidField":"")+(0<=r[14]?.indexOf("mobile")?"Hidden":"")),_t(k,"class","RegisterStepNext"),k.disabled=$e=!r[31],_t(l,"class","RegisterFormContent")},m(e,t){P&&P.m(Pn.head,null),ft(Pn.head,R),pt(e,$,t),pt(e,o,t),pt(e,F,t),pt(e,a,t),ft(a,U),ft(U,i),ft(i,n),ft(n,Y),ft(Y,j),ft(j,G),ft(n,z),ft(i,V),ft(i,W),ft(a,Z),ft(a,l),ft(l,s),ft(s,c),ft(c,u),ft(u,Q),ft(u,q),ft(u,K),ft(c,X),ft(c,d),Ct(d,r[17]),ft(c,J),M&&M.m(c,null),ft(s,ee),ft(s,h),ft(h,m),ft(m,te),ft(m,re),ft(m,ie),ft(h,ne),ft(h,f),Ct(f,r[18]),ft(h,se),O&&O.m(h,null),ft(l,ae),ft(l,p),ft(p,g),ft(g,le),ft(g,ce),ft(g,ue),ft(p,de),ft(p,y),Ct(y,r[19]),ft(p,he),D&&D.m(p,null),ft(l,fe),ft(l,v),ft(v,b),ft(b,pe),ft(b,ge),ft(b,ye),ft(v,ve),ft(v,w);for(let e=0;e<A.length;e+=1)A[e]&&A[e].m(w,null);et(w,r[21],!0),ft(l,we),ft(l,_),ft(_,S),ft(S,_e),ft(S,Se),ft(S,Ce),ft(_,Ee),ft(_,C);for(let e=0;e<B.length;e+=1)B[e]&&B[e].m(C,null);et(C,r[23],!0),ft(l,Te),ft(l,E),ft(E,ke),ft(ke,Pe),ft(ke,Me),ft(ke,Oe),ft(E,De),ft(E,Ae),ft(Ae,x);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(x,null);et(x,r[26],!0),ft(Ae,Be),ft(Ae,T),Ct(T,r[24]),ft(E,Ne),I&&I.m(E,null),ft(l,Le),L&&L.m(l,null),ft(l,He),ft(l,k),ft(k,Re),ft(a,Fe),H&&H.m(a,null),r[69](a),Ue||(Ye=[wt(i,"click",r[41]),wt(d,"input",r[49]),wt(d,"keyup",r[34]),wt(d,"focus",r[50]),wt(d,"blur",r[51]),wt(f,"input",r[52]),wt(f,"keyup",r[35]),wt(f,"focus",r[53]),wt(f,"blur",r[54]),wt(y,"input",r[55]),wt(y,"keyup",r[36]),wt(y,"focus",r[56]),wt(y,"blur",r[57]),wt(w,"change",r[58]),wt(C,"change",r[59]),wt(x,"change",r[60]),wt(T,"input",r[61]),wt(T,"keyup",r[37]),wt(T,"focus",r[62]),wt(T,"blur",r[63]),wt(k,"click",r[68])],Ue=!0)},p(t,r){if(t[4]?P?P.p(t,r):((P=An(t)).c(),P.m(R.parentNode,R)):P&&(P.d(1),P=null),16&r[0]&&_t(o,"data-sitekey",t[4]),2&r[1]&&je!==(je=t[32]("registerBackButton")+"")&&St(W,je),2&r[1]&&Ge!==(Ge=t[32]("registerAddress")+"")&&St(Q,Ge),131072&r[0]&&d.value!==t[17]&&Ct(d,t[17]),t[6]?M?M.p(t,r):((M=Bn(t)).c(),M.m(c,null)):M&&(M.d(1),M=null),17472&r[0]&&e!==(e="AddressContainer "+(t[6]&&!t[10]?"InvalidField":"")+(0<=t[14]?.indexOf("address")?"Hidden":""))&&_t(c,"class",e),2&r[1]&&ze!==(ze=t[32]("registerPostalCode")+"")&&St(te,ze),262144&r[0]&&f.value!==t[18]&&Ct(f,t[18]),t[7]?O?O.p(t,r):((O=Nn(t)).c(),O.m(h,null)):O&&(O.d(1),O=null),18560&r[0]&&oe!==(oe="PostalCodeContainer "+(t[7]&&!t[11]?"InvalidField":"")+(0<=t[14]?.indexOf("postalCode")?"Hidden":""))&&_t(h,"class",oe),2&r[1]&&Ve!==(Ve=t[32]("registerCity")+"")&&St(le,Ve),524288&r[0]&&y.value!==t[19]&&Ct(y,t[19]),t[9]?D?D.p(t,r):((D=In(t)).c(),D.m(p,null)):D&&(D.d(1),D=null),25088&r[0]&&me!==(me="CityContainer "+(t[9]&&t[13]?"InvalidField":"")+(0<=t[14]?.indexOf("city")?"Hidden":""))&&_t(p,"class",me),2&r[1]&&We!==(We=t[32]("registerCountry")+"")&&St(pe,We),1048576&r[0]){let e;for(Ke=t[20],e=0;e<Ke.length;e+=1){var i=Dn(t,Ke,e);A[e]?A[e].p(i,r):(A[e]=Ln(i),A[e].c(),A[e].m(w,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=Ke.length}if(3145728&r[0]&&et(w,t[21]),16384&r[0]&&be!==(be="CountryContainer "+(0<=t[14]?.indexOf("country")?"Hidden":""))&&_t(v,"class",be),2&r[1]&&Ze!==(Ze=t[32]("registerNationality")+"")&&St(_e,Ze),4194304&r[0]){let e;for(Xe=t[22],e=0;e<Xe.length;e+=1){var n=On(t,Xe,e);B[e]?B[e].p(n,r):(B[e]=Hn(n),B[e].c(),B[e].m(C,null))}for(;e<B.length;e+=1)B[e].d(1);B.length=Xe.length}if(12582912&r[0]&&et(C,t[23]),16384&r[0]&&xe!==(xe="NationalityContainer "+(0<=t[14]?.indexOf("nationality")?"Hidden":""))&&_t(_,"class",xe),2&r[1]&&Qe!==(Qe=t[32]("registerMobile")+"")&&St(Pe,Qe),33554432&r[0]){let e;for(Je=t[25],e=0;e<Je.length;e+=1){var s=Mn(t,Je,e);N[e]?N[e].p(s,r):(N[e]=Rn(s),N[e].c(),N[e].m(x,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=Je.length}100663296&r[0]&&et(x,t[26]),16777216&r[0]&&T.value!==t[24]&&Ct(T,t[24]),t[8]?I?I.p(t,r):((I=$n(t)).c(),I.m(E,null)):I&&(I.d(1),I=null),20736&r[0]&&Ie!==(Ie="MobileContainer "+(t[8]&&!t[12]?"InvalidField":"")+(0<=t[14]?.indexOf("mobile")?"Hidden":""))&&_t(E,"class",Ie),"true"===t[0]?L?L.p(t,r):((L=Fn(t)).c(),L.m(l,He)):L&&(L.d(1),L=null),2&r[1]&&qe!==(qe=t[32]("registerOpenAccount")+"")&&St(Re,qe),1&r[1]&&$e!==($e=!t[31])&&(k.disabled=$e),t[15]?H?H.p(t,r):((H=Vn(t)).c(),H.m(a,null)):H&&(H.d(1),H=null)},i:ht,o:ht,d(e){P&&P.d(e),gt(R),e&&gt($),e&&gt(o),e&&gt(F),e&&gt(a),M&&M.d(),O&&O.d(),D&&D.d(),rt(A,e),rt(B,e),rt(N,e),I&&I.d(),L&&L.d(),H&&H.d(),r[69](null),Ue=!1,mt(Ye)}}}function Zn(t,e,r){let i;ae(t,Mi,e=>r(32,i=e));let n,s,o,a,l,c,u,{userconsentsexist:d="false"}=e,{termsconditions:h="false"}=e,{smsoffers:L="false"}=e,{emailmarketing:H="false"}=e,{endpoint:m=""}=e,{captchakey:R=""}=e,{lang:f=""}=e,{disabledfields:p=""}=e,{defaultoptions:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{translationurl:b=""}=e,$=!1,F=!1,U=!1,Y=!1,j=!1,G="",w="",_="",S="",C=[],E="",x=[],T="",k="",P=[],M="",O=!1,D=!1,A=!1,B=!1,z=!1;({withLocale:V,translations:W}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(Kr.set(W),oe.set(V))}),Object.keys(kn).forEach(e=>{Tn(e,kn[e])});var V,W,e=i("registerTermsConditions");const N=()=>{r(31,z=!(n||s||a||o||j||"true"===d&&"true"===h&&!B)),(w.length<=0||_.length<=0||S.length<=0||k.length<=0)&&r(31,z=!1)},I=e=>{switch(e){case"GeneralOffers":!1===O?(r(27,O=!0),r(28,D=!0),r(29,A=!0)):(r(27,O=!1),r(28,D=!1),r(29,A=!1));break;case"SmsOffers":!1===D?(r(28,D=!0),r(27,O=!0)):r(28,D=!1),Z();break;case"EmailOffers":!1===A?(r(29,A=!0),r(27,O=!0)):r(29,A=!1),Z()}},Z=()=>{D||A||r(27,O=!1)},Q=()=>{r(30,B=!1===B),N()},q=e=>{e.preventDefault();let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(R,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:w,postalCode:_,city:S,countrySelected:E,nationalitySelected:T,mobilePrefixSelected:M,mobile:k,consentOffersSms:D,consentOffersEmail:A,consentTerms:B,consentOffers:O,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},K=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(17,w=e.data.userData.address1),r(18,_=e.data.userData.postalCode),r(19,S=e.data.userData.city),r(21,E=e.data.userData.country),r(23,T=e.data.userData.nationality),r(26,M=e.data.userData.mobile.prefix),r(24,k=e.data.userData.mobile.number),r(28,D=e.data.userData.userConsents.sms),r(29,A=e.data.userData.userConsents.emailmarketing),r(30,B=e.data.userData.userConsents.termsandconditions),N();break;case"ShowRegistrationError":r(15,j=e.data.showError),r(16,G=e.data.error)}};return le(()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),t.$$set=e=>{"userconsentsexist"in e&&r(0,d=e.userconsentsexist),"termsconditions"in e&&r(1,h=e.termsconditions),"smsoffers"in e&&r(2,L=e.smsoffers),"emailmarketing"in e&&r(3,H=e.emailmarketing),"endpoint"in e&&r(42,m=e.endpoint),"captchakey"in e&&r(4,R=e.captchakey),"lang"in e&&r(43,f=e.lang),"disabledfields"in e&&r(44,p=e.disabledfields),"defaultoptions"in e&&r(45,g=e.defaultoptions),"clientstyling"in e&&r(46,y=e.clientstyling),"clientstylingurl"in e&&r(47,v=e.clientstylingurl),"translationurl"in e&&r(48,b=e.translationurl)},t.$$.update=()=>{if(2048&t.$$.dirty[1]&&m&&fetch(m+"/v1/player/countries").then(e=>e.json()).then(e=>{fetch(m+"/v1/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{r(20,C=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code))),E||r(21,E=C[0].Alpha2Code),r(22,x=e.countries),T||r(23,T=x.filter(e=>0<=t.countries.indexOf(e.Alpha2Code))[0].Alpha2Code)})}),2048&t.$$.dirty[1]&&m&&fetch(m+"/v1/player/phonecodes").then(e=>e.json()).then(e=>{r(25,P=e.phoneCodes),M||r(26,M=P[0].Prefix)}),4096&t.$$.dirty[1]&&f&&(e=f,oe.set(e)),8192&t.$$.dirty[1]&&p&&(r(14,l=p.split(",")),0<=l.indexOf("address")&&(r(6,n=!1),r(17,w="dummy address")),0<=l.indexOf("postalCode")&&(r(7,s=!1),r(18,_="000000")),0<=l.indexOf("mobile")&&(r(8,o=!1),r(24,k="1234123412"),r(26,M="000")),0<=l.indexOf("city")&&(r(9,a=!1),r(19,S="dummy city")),0<=l.indexOf("country")&&r(21,E="dummy country"),0<=l.indexOf("nationality"))&&r(23,T="dummy nationality"),16384&t.$$.dirty[1]&&g&&(0<=(c=g.split(",")).indexOf("consentsTerms")&&r(30,B=!0),0<=c.indexOf("consentsOffers")&&(r(27,O=!0),r(28,D=!0),r(29,A=!0)),c.forEach(e=>{e.includes("phonePrefix")&&r(26,M=e.split(":")[1].toString())})),32&t.$$.dirty[0]|32768&t.$$.dirty[1]&&y&&u&&((e=document.createElement("style")).innerHTML=y,u.appendChild(e)),32&t.$$.dirty[0]|65536&t.$$.dirty[1]&&v&&u){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1),setTimeout(()=>{},500)})}var e;131072&t.$$.dirty[1]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tn(e,t[e])})}).catch(e=>{console.log(e)})},[d,h,L,H,R,u,n,s,o,a,$,F,U,Y,l,j,G,w,_,S,C,E,x,T,k,P,M,O,D,A,B,z,i,e,()=>{r(6,n=!(w&&w.length<=100)),N()},()=>{r(7,s=!(_&&_.length<=20)),N()},()=>{r(9,a=!(S&&S.length<=50)),N()},()=>{r(8,o=!(k&&5<=k.length&&k.length<=12)),N()},I,Q,q,()=>{var e={address:w,postalCode:_,city:S,countrySelected:E,nationalitySelected:T,mobilePrefixSelected:M,mobile:k,consentOffersSms:D,consentOffersEmail:A,consentTerms:B,consentOffers:O};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},m,f,p,g,y,v,b,function(){w=this.value,r(17,w)},()=>r(10,$=!0),()=>r(10,$=!1),function(){_=this.value,r(18,_)},()=>r(11,F=!0),()=>r(11,F=!1),function(){S=this.value,r(19,S)},()=>r(13,Y=!0),()=>r(13,Y=!1),function(){E=X(this),r(21,E),r(20,C)},function(){T=X(this),r(23,T),r(22,x)},function(){M=X(this),r(26,M),r(25,P)},function(){k=this.value,r(24,k)},()=>r(12,U=!0),()=>r(12,U=!1),()=>I("GeneralOffers"),()=>I("SmsOffers"),()=>I("EmailOffers"),()=>Q(),e=>q(e),function(e){se[e?"unshift":"push"](()=>{u=e,r(5,u)})}]}function Qn(e,t){Jr(e,t)}customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent=".BackButton{display:inline-flex;color:var(--emfe-w-registration-typography, var(--emfe-w-color-contrast, #07072A));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:20px;fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #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 select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.AddressContainer.Hidden,.PostalCodeContainer.Hidden,.CityContainer.Hidden,.CountryContainer.Hidden,.NationalityContainer.Hidden,.MobileContainer.Hidden{display:none}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5px 0 0 35px;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.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:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:\"\";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 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:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839));font-size:14px}.RegisterError{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:16px;line-height:18px}.RegisterStepNext{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},Zn,Wn,S,{userconsentsexist:0,termsconditions:1,smsoffers:2,emailmarketing:3,endpoint:42,captchakey:4,lang:43,disabledfields:44,defaultoptions:45,clientstyling:46,clientstylingurl:47,translationurl:48},null,[-1,-1,-1,-1]),e&&(e.target&&pt(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["userconsentsexist","termsconditions","smsoffers","emailmarketing","endpoint","captchakey","lang","disabledfields","defaultoptions","clientstyling","clientstylingurl","translationurl"]}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(e){this.$$set({userconsentsexist:e}),h()}get termsconditions(){return this.$$.ctx[1]}set termsconditions(e){this.$$set({termsconditions:e}),h()}get smsoffers(){return this.$$.ctx[2]}set smsoffers(e){this.$$set({smsoffers:e}),h()}get emailmarketing(){return this.$$.ctx[3]}set emailmarketing(e){this.$$set({emailmarketing:e}),h()}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$$set({endpoint:e}),h()}get captchakey(){return this.$$.ctx[4]}set captchakey(e){this.$$set({captchakey:e}),h()}get lang(){return this.$$.ctx[43]}set lang(e){this.$$set({lang:e}),h()}get disabledfields(){return this.$$.ctx[44]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[45]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),h()}});const qn={en:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"},"zh-hk":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"},tr:{title:"Please enter the verification code you received on your number",errorTitle:"Kodunuz geçersizdi, kodu tekrar gönderip tekrar deneyebilirsiniz",code:"SMS kodu",smsCodeError:"Geçersiz sms kodu, kodu tekrar gönderebilirsiniz",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Aktif hesap",resend:"Yeniden gönder",loginSMSHint:"Telefon numaranıza yeni bir doğrulama kodu gönderildi"},ro:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"},es:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"},pt:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"},hr:{title:"Unesite verifikacijski kod koji ste primili na svoj broj telefona",errorTitle:"Vaš kod je nevažeći",code:"Sms kod",smsCodeError:"Nevažeći sms kod",resendMessage:"Novi verifkacijski kod poslan je na vaš broj telefona.",activate:"Aktiviraj račun",resend:"Ponovno pošalji",loginSMSHint:"Novi verifkacijski kod poslan je na vaš broj telefona"},"pt-br":{title:"Por favor, insira o código de verificação que você recebeu no seu número de celular",errorTitle:"Código inválido,vôce pode reenviar o código e tentar novamente",code:"Código SMS",smsCodeError:"Código SMS inválido,vôce pode reenviar o código",resendMessage:"Um novo código de verificação foi enviado para o seu número de celular.",activate:"Ativar conta",resend:"Reenviar",loginSMSHint:"Um novo código de verificação foi enviado para o seu número de celular."},"es-mx":{title:"Por favor ingrese el código de verificación que recibió en su número móvil",errorTitle:"Código inválido,Puede enviar el código e intentar de nuevo",code:"Código SMS",smsCodeError:"Código SMS inválido,Puede reenviar el código",resendMessage:"Un nuevo código de verificación ha sido enviado a su número móvil .",activate:"Activar Cuenta",resend:"Reenviar",loginSMSHint:"Un nuevo código de verificación ha sido enviado a su número móvil ."}};function Kn(e){let r,i=e[5]("errorTitle")+"";return{c(){r=vt(i)},m(e,t){pt(e,r,t)},p(e,t){32&t&&i!==(i=e[5]("errorTitle")+"")&&St(r,i)},d(e){e&&gt(r)}}}function Xn(e){let r,i=e[5]("title")+"";return{c(){r=vt(i)},m(e,t){pt(e,r,t)},p(e,t){32&t&&i!==(i=e[5]("title")+"")&&St(r,i)},d(e){e&&gt(r)}}}function Jn(e){let r,i,n=e[5]("smsCodeError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){32&t&&n!==(n=e[5]("smsCodeError")+"")&&St(i,n)},d(e){e&&gt(r)}}}function es(e){let r,i,n=e[5]("resendMessage")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","SmsVerificationResendMessage")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){32&t&&n!==(n=e[5]("resendMessage")+"")&&St(i,n)},d(e){e&&gt(r)}}}function ts(e){let r,i,n,s,o,a=e[4]<10?"0":"";return{c(){r=yt("span"),i=vt("(0:"),n=vt(a),s=vt(e[4]),o=vt(")"),_t(r,"class","SmsVerificationResendTimer")},m(e,t){pt(e,r,t),ft(r,i),ft(r,n),ft(r,s),ft(r,o)},p(e,t){16&t&&a!==(a=e[4]<10?"0":"")&&St(n,a),16&t&&St(s,e[4])},d(e){e&&gt(r)}}}function rs(r){let i,n,s,o,a,l,c,u,d,h,m,f,p,g,y,v,b,w,_,S,C,E,x=r[5]("code")+"",T=r[5]("activate")+"",k=r[5]("resend")+"";function P(e){return e[2]?Xn:Kn}let M=P(r),O=M(r),D=!r[2]&&Jn(r),A=r[3]&&es(r),B=r[3]&&ts(r);return{c(){i=yt("div"),n=yt("h3"),O.c(),s=bt(),o=yt("div"),a=yt("label"),l=vt(x),c=vt(":"),(u=yt("span")).textContent="*",d=bt(),h=yt("input"),m=bt(),D&&D.c(),p=bt(),A&&A.c(),g=bt(),y=yt("button"),v=vt(T),b=bt(),w=yt("button"),_=vt(k),S=bt(),B&&B.c(),this.c=ht,_t(n,"class","Title"),_t(u,"class","FormRequired"),_t(a,"for","SmsCode"),_t(h,"type","text"),_t(h,"id","SmsCode"),_t(h,"inputmode","numeric"),_t(h,"pattern","[0-9]*"),_t(h,"maxlength","6"),_t(o,"class",f="Field SmsVerificationField "+(r[2]?"":"InvalidField")),_t(y,"class","Button SmsVerificationValidate"),_t(w,"class","Button SmsVerificationResend"),w.disabled=r[3],_t(i,"class","Container SmsVerificationContainer")},m(e,t){pt(e,i,t),ft(i,n),O.m(n,null),ft(i,s),ft(i,o),ft(o,a),ft(a,l),ft(a,c),ft(a,u),ft(o,d),ft(o,h),Ct(h,r[1]),ft(o,m),D&&D.m(o,null),ft(i,p),A&&A.m(i,null),ft(i,g),ft(i,y),ft(y,v),ft(i,b),ft(i,w),ft(w,_),ft(w,S),B&&B.m(w,null),r[19](i),C||(E=[wt(h,"input",r[17]),wt(h,"keydown",r[18]),wt(y,"click",r[6]),wt(w,"click",r[7])],C=!0)},p(e,[t]){M===(M=P(e))&&O?O.p(e,t):(O.d(1),(O=M(e))&&(O.c(),O.m(n,null))),32&t&&x!==(x=e[5]("code")+"")&&St(l,x),2&t&&h.value!==e[1]&&Ct(h,e[1]),e[2]?D&&(D.d(1),D=null):D?D.p(e,t):((D=Jn(e)).c(),D.m(o,null)),4&t&&f!==(f="Field SmsVerificationField "+(e[2]?"":"InvalidField"))&&_t(o,"class",f),e[3]?A?A.p(e,t):((A=es(e)).c(),A.m(i,g)):A&&(A.d(1),A=null),32&t&&T!==(T=e[5]("activate")+"")&&St(v,T),32&t&&k!==(k=e[5]("resend")+"")&&St(_,k),e[3]?B?B.p(e,t):((B=ts(e)).c(),B.m(w,null)):B&&(B.d(1),B=null),8&t&&(w.disabled=e[3])},i:ht,o:ht,d(e){e&&gt(i),O.d(),D&&D.d(),A&&A.d(),B&&B.d(),r[19](null),C=!1,mt(E)}}}function is(t,e,r){let i;ae(t,Mi,e=>r(5,i=e));let n,s,o,{endpoint:a=""}=e,{tokenid:l=""}=e,{playerid:c=""}=e,{smstemplate:u="Please use this code {0} to activate your accout"}=e,{number:d=""}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,p=!0,g=!1,y=+localStorage.getItem("smsTimer")||0,v=Date.now()/1e3-y,b=60-Math.floor(v);const w={numeric:/^[0-9]{0,6}$/};var _,S;({withLocale:_,translations:S}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(Kr.set(S),oe.set(_))}),Object.keys(qn).forEach(e=>{Qn(e,qn[e])});const C=()=>{0<b?r(4,b--,b):(clearInterval(s),r(3,s=!1),r(4,b=60))},E=()=>{v<60&&r(3,s=setInterval(()=>{C()},1e3))},x=e=>{w.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};return le(()=>{var e;c&&d||(e=JSON.parse(localStorage.getItem("playerData")),r(10,c=e.playerid),r(11,d=e.number)),E()}),t.$$set=e=>{"endpoint"in e&&r(12,a=e.endpoint),"tokenid"in e&&r(9,l=e.tokenid),"playerid"in e&&r(10,c=e.playerid),"smstemplate"in e&&r(13,u=e.smstemplate),"number"in e&&r(11,d=e.number),"clientstyling"in e&&r(14,h=e.clientstyling),"clientstylingurl"in e&&r(15,m=e.clientstylingurl),"translationurl"in e&&r(16,f=e.translationurl)},t.$$.update=()=>{if(t.$$.dirty,16385&t.$$.dirty&&h&&o&&((e=document.createElement("style")).innerHTML=h,o.appendChild(e)),32769&t.$$.dirty&&m&&o){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;65536&t.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qn(e,t[e])})}).catch(e=>{console.log(e)})},[o,n,p,s,b,i,async()=>{try{if(!(await fetch(`${a}/v1/player/${c}/activateSMS?tokenId=${l}&validationCode=`+n,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),r(2,p=!1),new Error("Could not activate user");r(2,p=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href)}catch(e){console.log(e)}},async()=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),E();try{var e=await fetch(a+"/v1/player/sms/token",{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:c,messageTemplate:u,destination:d})}),t=await e.json();if(!e.ok)throw g=!0,new Error("Failed to fetch");r(9,l=t.id),g=!1,C()}catch(e){g=!0,console.error(e)}},x,l,c,d,a,u,h,m,f,function(){n=this.value,r(1,n)},e=>x(e),function(e){se[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function ns(r){let i,n,s,o,a,l,c,u,d;return{c(){i=yt("div"),n=yt("div"),o=bt(),a=yt("div"),c=bt(),u=yt("div"),_t(n,"class",s="RegisterFirstStepDash "+(r[18]||!r[18]&&r[19]||!r[18]&&!r[19]&&r[20]?"RegisterStepDashColor":"")),_t(a,"class",l="RegisterSecondStepDash "+(r[19]||!r[18]&&!r[19]&&r[20]?"RegisterStepDashColor":"")),_t(u,"class",d="RegisterThirdStepDash "+(r[20]?"RegisterStepDashColor":"")),_t(i,"class","RegisterSteps")},m(e,t){pt(e,i,t),ft(i,n),ft(i,o),ft(i,a),ft(i,c),ft(i,u),r[41](i)},p(e,t){1835008&t[0]&&s!==(s="RegisterFirstStepDash "+(e[18]||!e[18]&&e[19]||!e[18]&&!e[19]&&e[20]?"RegisterStepDashColor":""))&&_t(n,"class",s),1835008&t[0]&&l!==(l="RegisterSecondStepDash "+(e[19]||!e[18]&&!e[19]&&e[20]?"RegisterStepDashColor":""))&&_t(a,"class",l),1048576&t[0]&&d!==(d="RegisterThirdStepDash "+(e[20]?"RegisterStepDashColor":""))&&_t(u,"class",d)},d(e){e&&gt(i),r[41](null)}}}function ss(e){let r,i;return{c(){r=yt("div"),n(i=yt("general-player-register-form-step1"),"lang",e[3]),n(i,"disabledfields",e[5]),n(i,"defaultoptions",e[6]),n(i,"dummydata",e[7]),n(i,"custominputtextswitch",e[14]),n(i,"simplepasswordvalidation",e[9]),n(i,"clientstyling",e[10]),n(i,"clientstylingurl",e[11]),n(i,"savecredentials",e[13]),n(i,"translationurl",e[12]),_t(r,"class","RegisterFormStep1")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){8&t[0]&&n(i,"lang",e[3]),32&t[0]&&n(i,"disabledfields",e[5]),64&t[0]&&n(i,"defaultoptions",e[6]),128&t[0]&&n(i,"dummydata",e[7]),16384&t[0]&&n(i,"custominputtextswitch",e[14]),512&t[0]&&n(i,"simplepasswordvalidation",e[9]),1024&t[0]&&n(i,"clientstyling",e[10]),2048&t[0]&&n(i,"clientstylingurl",e[11]),8192&t[0]&&n(i,"savecredentials",e[13]),4096&t[0]&&n(i,"translationurl",e[12])},d(e){e&&gt(r)}}}function os(e){let r,i;return{c(){r=yt("div"),n(i=yt("general-player-register-form-step2"),"endpoint",e[0]),n(i,"lang",e[3]),n(i,"licenseyears",e[4]),n(i,"disabledfields",e[5]),n(i,"defaultoptions",e[6]),n(i,"dummydata",e[7]),n(i,"personalidlength",e[15]),n(i,"clientstyling",e[10]),n(i,"clientstylingurl",e[11]),n(i,"translationurl",e[12]),_t(r,"class","RegisterFormStep2")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){1&t[0]&&n(i,"endpoint",e[0]),8&t[0]&&n(i,"lang",e[3]),16&t[0]&&n(i,"licenseyears",e[4]),32&t[0]&&n(i,"disabledfields",e[5]),64&t[0]&&n(i,"defaultoptions",e[6]),128&t[0]&&n(i,"dummydata",e[7]),32768&t[0]&&n(i,"personalidlength",e[15]),1024&t[0]&&n(i,"clientstyling",e[10]),2048&t[0]&&n(i,"clientstylingurl",e[11]),4096&t[0]&&n(i,"translationurl",e[12])},d(e){e&&gt(r)}}}function as(e){let r,i;return{c(){r=yt("div"),n(i=yt("general-player-register-form-step3"),"userconsentsexist",e[26]),n(i,"termsconditions",e[27]),n(i,"smsoffers",e[28]),n(i,"emailmarketing",e[29]),n(i,"endpoint",e[0]),n(i,"captchakey",e[2]),n(i,"lang",e[3]),n(i,"defaultoptions",e[6]),n(i,"disabledfields",e[5]),n(i,"dummydata",e[7]),n(i,"clientstyling",e[10]),n(i,"clientstylingurl",e[11]),n(i,"translationurl",e[12]),_t(r,"class","RegisterFormStep3")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){67108864&t[0]&&n(i,"userconsentsexist",e[26]),134217728&t[0]&&n(i,"termsconditions",e[27]),268435456&t[0]&&n(i,"smsoffers",e[28]),536870912&t[0]&&n(i,"emailmarketing",e[29]),1&t[0]&&n(i,"endpoint",e[0]),4&t[0]&&n(i,"captchakey",e[2]),8&t[0]&&n(i,"lang",e[3]),64&t[0]&&n(i,"defaultoptions",e[6]),32&t[0]&&n(i,"disabledfields",e[5]),128&t[0]&&n(i,"dummydata",e[7]),1024&t[0]&&n(i,"clientstyling",e[10]),2048&t[0]&&n(i,"clientstylingurl",e[11]),4096&t[0]&&n(i,"translationurl",e[12])},d(e){e&&gt(r)}}}function ls(e){let r,i,n=e[34]("error")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","SMSErrorText")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){8&t[1]&&n!==(n=e[34]("error")+"")&&St(i,n)},d(e){e&&gt(r)}}}function cs(e){let r;function i(e){return e[31]?us:ds}let n=i(e),s=n(e);return{c(){s.c(),r=it()},m(e,t){s.m(e,t),pt(e,r,t)},p(e,t){n===(n=i(e))&&s?s.p(e,t):(s.d(1),(s=n(e))&&(s.c(),s.m(r.parentNode,r)))},d(e){s.d(e),e&&gt(r)}}}function us(e){let r,i,n=e[34]("error")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","SMSErrorText")},m(e,t){pt(e,r,t),ft(r,i)},p(e,t){8&t[1]&&n!==(n=e[34]("error")+"")&&St(i,n)},d(e){e&&gt(r)}}}function ds(e){let r;return{c(){n(r=yt("general-player-sms-verification-form"),"endpoint",e[0]),n(r,"session",e[1]),n(r,"number",e[32]),n(r,"playerid",e[17]),n(r,"tokenid",e[30]),n(r,"clientstyling",e[10]),n(r,"clientstylingurl",e[11])},m(e,t){pt(e,r,t)},p(e,t){1&t[0]&&n(r,"endpoint",e[0]),2&t[0]&&n(r,"session",e[1]),2&t[1]&&n(r,"number",e[32]),131072&t[0]&&n(r,"playerid",e[17]),1073741824&t[0]&&n(r,"tokenid",e[30]),1024&t[0]&&n(r,"clientstyling",e[10]),2048&t[0]&&n(r,"clientstylingurl",e[11])},d(e){e&&gt(r)}}}function hs(r){let i,n,s,o,a,l,c,u,d,h,m,f,p,g,y,v,b,w,_,S,C=r[34]("goToLoginButton")+"";return{c(){i=yt("div"),n=t("svg"),s=t("defs"),o=t("style"),a=vt(".a{fill:#var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));}"),l=t("path"),c=bt(),u=yt("h2"),d=vt(r[23]),h=bt(),m=yt("p"),f=vt(r[24]),p=bt(),g=yt("p"),y=vt(r[25]),v=bt(),b=yt("button"),w=vt(C),_t(l,"class","a"),_t(l,"d","M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"),_t(n,"xmlns","http://www.w3.org/2000/svg"),_t(n,"viewBox","0 0 73.95 51"),_t(u,"class","RegisterConfirmationTitle"),_t(m,"class","RegisterConfirmationSubtitle"),_t(g,"class","RegisterConfirmationNote"),_t(b,"class","RegisterConfirmationGoToLogin"),_t(i,"class","RegisterConfirmation")},m(e,t){pt(e,i,t),ft(i,n),ft(n,s),ft(s,o),ft(o,a),ft(n,l),ft(i,c),ft(i,u),ft(u,d),ft(i,h),ft(i,m),ft(m,f),ft(i,p),ft(i,g),ft(g,y),ft(i,v),ft(i,b),ft(b,w),_||(S=wt(b,"click",r[36]),_=!0)},p(e,t){8388608&t[0]&&St(d,e[23]),16777216&t[0]&&St(f,e[24]),33554432&t[0]&&St(y,e[25]),8&t[1]&&C!==(C=e[34]("goToLoginButton")+"")&&St(w,C)},d(e){e&&gt(i),_=!1,S()}}}function ms(r){let i,n=function(e){let r,i,n,s,o,a,l,c=(e[18]||e[19]||e[20])&&ns(e),u=e[18]&&ss(e),d=e[19]&&os(e),h=e[20]&&as(e);function m(e){return e[8]&&e[21]?cs:e[31]?ls:void 0}let f=m(e),p=f&&f(e),g=e[22]&&hs(e);return{c(){r=yt("div"),i=yt("div"),c&&c.c(),n=bt(),u&&u.c(),s=bt(),d&&d.c(),o=bt(),h&&h.c(),a=bt(),p&&p.c(),l=bt(),g&&g.c(),_t(i,"class","RegisterFormContainer "+(e[35]?"RegisterFormContainerMobile":"")),_t(r,"class","RegisterFormWrapper")},m(e,t){pt(e,r,t),ft(r,i),c&&c.m(i,null),ft(i,n),u&&u.m(i,null),ft(i,s),d&&d.m(i,null),ft(i,o),h&&h.m(i,null),ft(i,a),p&&p.m(i,null),ft(i,l),g&&g.m(i,null)},p(e,t){e[18]||e[19]||e[20]?c?c.p(e,t):((c=ns(e)).c(),c.m(i,n)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=ss(e)).c(),u.m(i,s)):u&&(u.d(1),u=null),e[19]?d?d.p(e,t):((d=os(e)).c(),d.m(i,o)):d&&(d.d(1),d=null),e[20]?h?h.p(e,t):((h=as(e)).c(),h.m(i,a)):h&&(h.d(1),h=null),f===(f=m(e))&&p?p.p(e,t):(p&&p.d(1),(p=f&&f(e))&&(p.c(),p.m(i,l))),e[22]?g?g.p(e,t):((g=hs(e)).c(),g.m(i,null)):g&&(g.d(1),g=null)},d(e){e&&gt(r),c&&c.d(),u&&u.d(),d&&d.d(),h&&h.d(),p&&p.d(),g&&g.d()}}}(r);return{c(){i=yt("div"),n.c(),this.c=ht},m(e,t){pt(e,i,t),n.m(i,null),r[42](i)},p(e,t){n.p(e,t)},i:ht,o:ht,d(e){e&&gt(i),n.d(),r[42](null)}}}function fs(r,e,n){let t;ae(r,Mi,e=>n(34,t=e));let i,s,L,o,a,{endpoint:l=""}=e,{cmsendpoint:c=""}=e,{env:u=""}=e,{session:d=""}=e,{trackedanalyticsdata:h=""}=e,{captchakey:m=""}=e,{lang:f="en"}=e,{licenseyears:p=""}=e,{disabledfields:g=""}=e,{defaultoptions:y=""}=e,{dummydata:v=""}=e,{smsverification:b="false"}=e,{simplepasswordvalidation:H="false"}=e,{userroles:w=""}=e,{clientstyling:_=""}=e,{clientstylingurl:S=""}=e,{translationurl:C=""}=e,{savecredentials:R=""}=e,{custominputtextswitch:$="false"}=e,{personalidlength:F="13"}=e,E=[],U=[],Y="",x=!0,T=!1,k=!1,P=!1,M=!1,j=!1,G="",z="",V="",W=window.navigator.userAgent,Z="PC"!==Oi(W),O={},Q=!1,q=!1,D="false",K="false",X="false",J="false",ee="",A=!1;var te,re;({withLocale:te,translations:re}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(Kr.set(re),oe.set(te))}),Object.keys(Ai).forEach(e=>{Di(e,Ai[e])});const B=()=>{a.scrollIntoView()},N=t=>{let r;return U.forEach(e=>{e.includes(t)&&(r=e.split(":")[1].toString())}),r},I=(e,t)=>{var r;U=y.split(","),"RegisterStepOne"===e&&(O.email=0<=E.indexOf("email")?null!=(r=N("email"))?r:"dummy@dummy.com":t.userEmail,O.username=0<=E.indexOf("username")?null!=(r=N("username"))?r:"dummyUsername":t.userValue,O.password=0<=E.indexOf("password")?null!=(r=N("password"))?r:"dummyPassword01!":t.userPassword,O.securityQuestion=0<=E.indexOf("securityQuestion")?null!=(r=N("securityQuestion"))?r:"dummy question":t.securityQuestion,O.securityAnswer=0<=E.indexOf("securityAnswer")?null!=(r=N("securityAnswer"))?r:"dummy answer":t.securityAnswer,O.promoCode=0<=E.indexOf("promoCode")?null!=(r=N("promoCode"))?r:"":t.promoCode),"RegisterStepTwo"===e&&(O.title=t.userTitleSelected,O.firstname=0<=E.indexOf("firstName")?null!=(r=N("firstName"))?r:"dummy first name":t.userFirstName,O.lastname=0<=E.indexOf("lastName")?null!=(r=N("lastName"))?r:"dummy last name":t.userLastName,0<=E.indexOf("birthDate")?O.birth={day:1,month:1,year:2e3}:(O.birth={},O.birth.day=t.birthDaySelected,O.birth.month=t.birthMonthSelected,O.birth.year=t.birthYearSelected),O.birthPlace=0<=E.indexOf("birthPlace")?null!=(r=N("birthPlace"))?r:"ngenge":t.birthPlace,O.currency=null!=(r=N("currency"))?r:t.currencySelected,0<=(null==E?void 0:E.indexOf("personalId"))||(O.personalId=null!=(r=null!=(r=t.personalId)?r:N("personalId"))?r:"dummy personal id")),"RegisterStepThree"===e&&(O.address1=0<=E.indexOf("address")?null!=(r=N("address"))?r:"dummy address":t.address,O.postalCode=0<=E.indexOf("postalCode")?null!=(e=N("postalCode"))?e:"000000":t.postalCode,O.city=0<=E.indexOf("city")?null!=(r=N("city"))?r:"dummy city":t.city,O.country=0<=E.indexOf("country")?null!=(e=N("country"))?e:"dummy country":t.countrySelected,O.nationality=0<=E.indexOf("nationality")?null!=(r=N("nationality"))?r:"dummy nationality":t.nationalitySelected,0<=E.indexOf("mobile")?O.mobile={prefix:null!=(e=N("phonePrefix"))?e:"0040",number:"1234123412"}:(O.mobile={},O.mobile.prefix=null!=(r=N("phonePrefix"))?r:t.mobilePrefixSelected,O.mobile.number=t.mobile,n(32,o=""+t.mobilePrefixSelected+t.mobile)),O.userConsents={},O.affiliateMarker=O.promoCode||(null!=h?h:""),"true"==D&&(O.userConsents.sms=t.consentOffersSms,O.userConsents.emailmarketing=t.consentOffersEmail,O.userConsents.termsandconditions=t.consentTerms),O.token=t.token)},ie=e=>{if(e.data)switch(e.data.type){case"RegisterStepOne":I("RegisterStepOne",e.data.registerStepOneData),B(),n(18,x=!1),n(19,T=!0),0==Q?Q=!0:window.postMessage({type:"StepTwoDataBackup",userData:O},window.location.href);break;case"RegisterStepTwo":I("RegisterStepTwo",e.data.registerStepTwoData),B(),n(19,T=!1),n(20,k=!0),0==q?q=!0:window.postMessage({type:"StepThreeDataBackup",userData:O},window.location.href);break;case"RegisterStepThree":I("RegisterStepThree",e.data.registerStepThreeData),(async e=>{e.language=f;let t={method:"PUT",headers:{"g-recaptcha-response":e.token,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)},r=await fetch(`${l}/v1/player/register`,t),i=await r.json();r.ok?(n(20,k=!1),"false"===b?n(22,M=!0):(n(17,Y=i.id),ne(e,i.id)),e.username,e.password,"function"==typeof gtag&&gtag("event","Register",{context:"GeneralPlayerRegisterForm"})):(ee=i.error.substring(i.error.indexOf("errorMessage")+13,i.error.length),j=!0,window.postMessage({type:"ShowRegistrationError",showError:j,error:ee},window.location.href))})(O);break;case"SmsHasBeenValidated":n(22,M=!0),n(21,P=!1);break;case"GoBackStepTwo":I("RegisterStepTwo",e.data.registerStepTwoData),B(),n(18,x=!0),n(19,T=!1),window.postMessage({type:"StepOneDataBackup",userData:O},window.location.href);break;case"GoBackStepThree":I("RegisterStepThree",e.data.registerStepThreeData),B(),n(19,T=!0),n(20,k=!1),window.postMessage({type:"StepTwoDataBackup",userData:O},window.location.href)}},ne=async(e,t)=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3)));try{var r=await fetch(l+"/v1/player/sms/token",{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:t,messageTemplate:"Please use this code {0} to activate your account",destination:""+e.mobile.prefix+e.mobile.number})}),i=await r.json();if(!r.ok)throw n(31,A=!0),new Error("Failed to fetch");n(30,L=i.id),i.maxValidationAttempts,n(21,P=!0),n(31,A=!1)}catch(e){n(31,A=!0),console.error(e)}};return le(()=>(window.addEventListener("message",ie,!1),()=>{window.removeEventListener("message",ie)})),r.$$set=e=>{"endpoint"in e&&n(0,l=e.endpoint),"cmsendpoint"in e&&n(37,c=e.cmsendpoint),"env"in e&&n(38,u=e.env),"session"in e&&n(1,d=e.session),"trackedanalyticsdata"in e&&n(39,h=e.trackedanalyticsdata),"captchakey"in e&&n(2,m=e.captchakey),"lang"in e&&n(3,f=e.lang),"licenseyears"in e&&n(4,p=e.licenseyears),"disabledfields"in e&&n(5,g=e.disabledfields),"defaultoptions"in e&&n(6,y=e.defaultoptions),"dummydata"in e&&n(7,v=e.dummydata),"smsverification"in e&&n(8,b=e.smsverification),"simplepasswordvalidation"in e&&n(9,H=e.simplepasswordvalidation),"userroles"in e&&n(40,w=e.userroles),"clientstyling"in e&&n(10,_=e.clientstyling),"clientstylingurl"in e&&n(11,S=e.clientstylingurl),"translationurl"in e&&n(12,C=e.translationurl),"savecredentials"in e&&n(13,R=e.savecredentials),"custominputtextswitch"in e&&n(14,$=e.custominputtextswitch),"personalidlength"in e&&n(15,F=e.personalidlength)},r.$$.update=()=>{if(1&r.$$.dirty[0]&&l&&fetch(l+"/v1/player/consentRequirements").then(e=>e.json()).then(e=>{0<e.items.length?(n(26,D="true"),e.items.forEach(e=>{switch(e.tagCode){case"termsandconditions":n(27,K="true");break;case"sms":n(28,X="true");break;case"emailmarketing":n(29,J="true")}})):n(26,D="false")}),8&r.$$.dirty[0]|704&r.$$.dirty[1]&&c&&f&&u&&w&&(e=new URL(`${c}/${f}/login-register-content?env=`+u),(t=Oi(W))&&("PC"===t?e.searchParams.append("device","dk"):e.searchParams.append("device","mtWeb")),fetch(e.href).then(e=>e.json()).then(e=>{s=e.registerData,n(23,G=s.title),n(24,z=s.subtitle),n(25,V=s.content)}).catch(e=>{console.error(e)})),r.$$.dirty[0],8&r.$$.dirty[0]&&f&&(t=f,oe.set(t)),32&r.$$.dirty[0]&&g&&(E=g.split(",")),66560&r.$$.dirty[0]&&_&&i&&((e=document.createElement("style")).innerHTML=_,i.appendChild(e)),67584&r.$$.dirty[0]&&S&&i){let e=new URL(S),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;4096&r.$$.dirty[0]&&C&&fetch(C).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Di(e,t[e])})}).catch(e=>{console.log(e)})},[l,d,m,f,p,g,y,v,b,H,_,S,C,R,$,F,i,Y,x,T,k,P,M,G,z,V,D,K,X,J,void 0,A,o,a,t,Z,()=>{window.postMessage({type:"ToLogin"},window.location.href)},c,u,h,w,function(e){se[e?"unshift":"push"](()=>{a=e,n(33,a)})},function(e){se[e?"unshift":"push"](()=>{i=e,n(16,i)})}]}customElements.get("general-player-sms-verification-form")||customElements.define("general-player-sms-verification-form",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;line-height:10px}.Button{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emfe-w-registration-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));color:var(--emfe-w-registration-typography, var(--emfe-w-color-contrast, #07072A))}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},is,rs,S,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},null),e&&(e.target&&pt(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["endpoint","tokenid","playerid","smstemplate","number","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),h()}get tokenid(){return this.$$.ctx[9]}set tokenid(e){this.$$set({tokenid:e}),h()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),h()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(e){this.$$set({smstemplate:e}),h()}get number(){return this.$$.ctx[11]}set number(e){this.$$set({number:e}),h()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),h()}});class ps extends ${constructor(e){super();var t=document.createElement("style");t.textContent=".RegisterFormWrapper{background:var(--emfe-w-registration-color-bg, var(--emfe-w-color-gray-50, #F9F8F8))}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.SMSErrorText{height:80%;display:flex;align-items:center}.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:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));font-size:16px;line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emfe-w-registration-typography, var(--emfe-w-color-contrast, #07072A));font-size:18px;line-height:22px}.RegisterConfirmationGoToLogin{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},fs,ms,S,{endpoint:0,cmsendpoint:37,env:38,session:1,trackedanalyticsdata:39,captchakey:2,lang:3,licenseyears:4,disabledfields:5,defaultoptions:6,dummydata:7,smsverification:8,simplepasswordvalidation:9,userroles:40,clientstyling:10,clientstylingurl:11,translationurl:12,savecredentials:13,custominputtextswitch:14,personalidlength:15},null,[-1,-1,-1]),e&&(e.target&&pt(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["endpoint","cmsendpoint","env","session","trackedanalyticsdata","captchakey","lang","licenseyears","disabledfields","defaultoptions","dummydata","smsverification","simplepasswordvalidation","userroles","clientstyling","clientstylingurl","translationurl","savecredentials","custominputtextswitch","personalidlength"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),h()}get cmsendpoint(){return this.$$.ctx[37]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),h()}get env(){return this.$$.ctx[38]}set env(e){this.$$set({env:e}),h()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),h()}get trackedanalyticsdata(){return this.$$.ctx[39]}set trackedanalyticsdata(e){this.$$set({trackedanalyticsdata:e}),h()}get captchakey(){return this.$$.ctx[2]}set captchakey(e){this.$$set({captchakey:e}),h()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),h()}get licenseyears(){return this.$$.ctx[4]}set licenseyears(e){this.$$set({licenseyears:e}),h()}get disabledfields(){return this.$$.ctx[5]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[6]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get dummydata(){return this.$$.ctx[7]}set dummydata(e){this.$$set({dummydata:e}),h()}get smsverification(){return this.$$.ctx[8]}set smsverification(e){this.$$set({smsverification:e}),h()}get simplepasswordvalidation(){return this.$$.ctx[9]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),h()}get userroles(){return this.$$.ctx[40]}set userroles(e){this.$$set({userroles:e}),h()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),h()}get savecredentials(){return this.$$.ctx[13]}set savecredentials(e){this.$$set({savecredentials:e}),h()}get custominputtextswitch(){return this.$$.ctx[14]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),h()}get personalidlength(){return this.$$.ctx[15]}set personalidlength(e){this.$$set({personalidlength:e}),h()}}return customElements.get("general-player-register-form")||customElements.define("general-player-register-form",ps),ps});
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 ht(){}function p(e){return e()}function w(){return Object.create(null)}function mt(e){e.forEach(p)}function _(e){return"function"==typeof e}function E(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let S;function C(e,t){return(S=S||document.createElement("a")).href=t,e===S.href}function x(e,...t){if(null==e)return ht;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ae(e,t,r){e.$$.on_destroy.push(x(t,r))}var T="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function pt(e,t){e.appendChild(t)}function ft(e,t,r){e.insertBefore(t,r||null)}function gt(e){e.parentNode&&e.parentNode.removeChild(e)}function rt(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function yt(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function bt(){return vt(" ")}function it(){return vt("")}function wt(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function _t(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function n(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:_t(e,t,r)}function Et(e,t){e.data!==(t=""+t)&&(e.data=t)}function St(e,t){e.value=null==t?"":t}function et(t,r,e){for(let e=0;e<t.options.length;e+=1){var i=t.options[e];if(i.__value===r)return i.selected=!0}e&&void 0===r||(t.selectedIndex=-1)}function X(e){e=e.querySelector(":checked");return e&&e.__value}function k(e){var t={};for(const r of e)t[r.name]=r.value;return t}let P;function M(e){P=e}function le(e){!function(){if(P)return P;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const O=[],se=[];let B=[];const A=[],D=Promise.resolve();let N=!1;function tt(e){B.push(e)}const I=new Set;let L=0;function h(){if(0===L){const i=P;do{try{for(;L<O.length;){const i=O[L];L++,M(i),e=t=void 0;var e,t=i.$$;null!==t.fragment&&(t.update(),mt(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(tt))}}catch(i){throw O.length=0,L=0,i}for(M(null),O.length=0,L=0;se.length;)se.pop()();for(let e=0;e<B.length;e+=1){var r=B[e];I.has(r)||(I.add(r),r())}}while(B.length=0,O.length);for(;A.length;)A.pop()();N=!1,I.clear(),M(i)}}const H=new Set;function R(i,e,t,r,n,s,o,a=[-1]){var l=P;M(i);const c=i.$$={fragment:null,ctx:[],props:s,update:ht,not_equal:n,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:w(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(c.root);let u=!1;if(c.ctx=t?t(i,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u)&&(r=e,-1===(e=i).$$.dirty[0]&&(O.push(e),N||(N=!0,D.then(h)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],c.update(),u=!0,mt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){s=e.target;const ht=Array.from(s.childNodes);c.fragment&&c.fragment.l(ht),ht.forEach(gt)}else c.fragment&&c.fragment.c();e.intro&&(a=i.$$.fragment)&&a.i&&(H.delete(a),a.i(void 0));var d=i,o=e.target,t=e.anchor,r=e.customElement,{fragment:s,after_update:a}=d.$$;s&&s.m(o,t),r||tt(()=>{var e=d.$$.on_mount.map(p).filter(_);d.$$.on_destroy?d.$$.on_destroy.push(...e):mt(e),d.$$.on_mount=[]}),a.forEach(tt),h()}M(l)}let $;"function"==typeof HTMLElement&&($=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(p).filter(_);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){mt(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const i=[],n=[];B.forEach(e=>(-1===r.indexOf(e)?i:n).push(e)),n.forEach(e=>e()),B=i}mt(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=ht}$on(e,t){if(!_(t))return ht;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 F,U,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Y="URLSearchParams"in l,j="Symbol"in l&&"iterator"in Symbol,z="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),G="FormData"in l,V="ArrayBuffer"in l;function W(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 Q(e){return e="string"!=typeof e?String(e):e}function Z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return j&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function q(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function K(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function J(e){var t=new FileReader,r=K(t);return t.readAsArrayBuffer(e),r}function ee(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function te(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:z&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:G&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Y&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():V&&z&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ee(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(e)||U(e))?this._bodyArrayBuffer=ee(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):Y&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},z&&(this.blob=function(){var e=q(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(){if(this._bodyArrayBuffer)return q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(z)return this.blob().then(J);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i=q(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,t=K(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(i.type))?r[1]:"utf-8",e.readAsText(i,r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},G&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}V&&(F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],U=ArrayBuffer.isView||function(e){return e&&-1<F.indexOf(Object.prototype.toString.call(e))}),c.prototype.append=function(e,t){e=W(e),t=Q(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[W(e)]},c.prototype.get=function(e){return e=W(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(W(e))},c.prototype.set=function(e,t){this.map[W(e)]=Q(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),Z(r)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Z(t)},c.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),Z(r)},j&&(c.prototype[Symbol.iterator]=c.prototype.entries);var re=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ie(e,t){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i=(t=t||{}).body;if(e instanceof ie){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 c(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<re.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ne(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})},te.call(ie.prototype),te.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var ce=[301,302,303,307,308],ue=(u.redirect=function(e,t){if(-1===ce.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},l.DOMException);try{new ue}catch(ht){(ue=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),ue.prototype.constructor=ue}function de(i,a){return new Promise(function(n,e){var s=new ie(i,a);if(s.signal&&s.signal.aborted)return e(new ue("Aborted","AbortError"));var r,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,i,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",i=new c,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(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{i.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),i)},r=(s.url.startsWith("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){n(new u(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new ue("Aborted","AbortError"))},0)},o.open(s.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(z?o.responseType="blob":V&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof c||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(W(e)),o.setRequestHeader(e,Q(a.headers[e]))}),s.headers.forEach(function(e,t){-1===r.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}function Or(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}de.polyfill=!0,l.fetch||(l.fetch=de,l.Headers=c,l.Request=ie,l.Response=u),self.fetch.bind(self);var he=function(e,t){return(he=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 me(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}he(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function pe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function ge(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function d(e){return"function"==typeof e}function ye(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 ve=ye(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 be(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,i,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=pe(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(d(s))try{s()}catch(e){n=e instanceof ve?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=pe(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{Se(u)}catch(e){n=null!=n?n:[],e instanceof ve?n=ge(ge([],fe(n)),fe(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}if(n)throw new ve(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Se(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&be(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&be(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((i=new r).closed=!0,i);var we=r,_e=we.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ee(e){return e instanceof we||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function Se(e){d(e)?e():e.unsubscribe()}var Ce=void 0,xe=!1,Te=!1,ke={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=ke.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,ge([e,t],fe(r))):setTimeout.apply(void 0,ge([e,t],fe(r)))},clearTimeout:function(e){var t=ke.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Pe(){}var Me=null;function Oe(e){if(xe){var t=!Me;if(t&&(Me={errorThrown:!1,error:null}),e(),t){var t=Me,r=t.errorThrown,t=t.error;if(Me=null,r)throw t}}else e()}me(e,Be=we),e.create=function(e,t,r){return new He(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Be.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Be,Ae=e,De=Function.prototype.bind;function e(e){var t=Be.call(this)||this;return t.isStopped=!1,e?Ee(t.destination=e)&&e.add(t):t.destination=Ue,t}function Ne(e,t){return De.call(e,t)}$e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Fe(e)}},$e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Fe(e)}else Fe(e)},$e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Fe(e)}};var Ie,Le=$e,He=(me(Re,Ie=Ae),Re);function Re(e,t,r){var i=Ie.call(this)||this,r=d(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:i&&Te?((t=Object.create(e)).unsubscribe=function(){return i.unsubscribe()},{next:e.next&&Ne(e.next,t),error:e.error&&Ne(e.error,t),complete:e.complete&&Ne(e.complete,t)}):e;return i.destination=new Le(r),i}function $e(e){this.partialObserver=e}function Fe(e){var t=e;ke.setTimeout(function(){throw t})}var Ue={closed:!0,next:Pe,error:function(e){throw e},complete:Pe},i="function"==typeof Symbol&&Symbol.observable||"@@observable";s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,r){var i,n=this,s=(i=e)&&i instanceof Ae||i&&d(i.next)&&d(i.error)&&d(i.complete)&&Ee(i)?e:new He(e,t,r);return Oe(function(){var e=n.operator,t=n.source;s.add(e?e.call(s,t):t?n._subscribe(s):n._trySubscribe(s))}),s},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(i,e){var n=this;return new(e=je(e))(function(e,t){var r=new He({next:function(e){try{i(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});n.subscribe(r)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[i]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},s.prototype.toPromise=function(e){var i=this;return new(e=je(e))(function(e,t){var r;i.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},s.create=function(e){return new s(e)};var Ye=s;function s(e){e&&(this._subscribe=e)}function je(e){return null!=(e=null!=e?e:Ce)?e:Promise}var ze,Ge,Ve,We=ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(me(o,Ve=Ye),o.prototype.lift=function(e){var t=new Qe(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new We},o.prototype.next=function(n){var s=this;Oe(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var r=pe(s.currentObservers),i=r.next();!i.done;i=r.next())i.value.next(n)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var r=this;Oe(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)}})},o.prototype.complete=function(){var t=this;Oe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?_e:(this.currentObservers=null,n.push(e),new we(function(){t.currentObservers=null,be(n,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},o.prototype.asObservable=function(){var e=new Ye;return e.source=this,e},o.create=function(e,t){return new Qe(e,t)},o),Qe=(me(Xe,Ge=i),Xe.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},Xe.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},Xe.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Xe.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:_e},Xe),Ze={now:function(){return(Ze.delegate||Date).now()},delegate:void 0},qe=(me(Ke,ze=i),Ke.prototype.next=function(e){var t=this,r=t.isStopped,i=t._buffer,n=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;r||(i.push(e),n)||i.push(s.now()+t),this._trimBuffer(),ze.prototype.next.call(this,e)},Ke.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},Ke.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},Ke);function Ke(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ze);var i=ze.call(this)||this;return i._bufferSize=e,i._windowTime=t,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,t),i}function Xe(e,t){var r=Ge.call(this)||this;return r.destination=e,r.source=t,r}function o(){var e=Ve.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Je=[],nt={};const st=[];function ot(i,n=ht){let s;const o=new Set;function a(e){if(E(i,e)&&(i=e,s)){const e=!st.length;for(const e of o)e[1](),st.push(e,i);if(e){for(let e=0;e<st.length;e+=2)st[e][0](st[e+1]);st.length=0}}}return{set:a,update:function(e){a(e(i))},subscribe:function(e,t=ht){const r=[e,t];return o.add(r),1===o.size&&(s=n(a)||ht),e(i),()=>{o.delete(r),0===o.size&&s&&(s(),s=null)}}}}function at(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:ot(t,t=>{let r=!1;const i=[];let n=0,s=ht;const o=()=>{var e;n||(s(),e=a(l?i[0]:i,t),u?t(e):s=_(e)?e:ht)},e=c.map((e,t)=>x(e,e=>{i[t]=e,n&=~(1<<t),r&&o()},()=>{n|=1<<t}));return r=!0,o(),function(){mt(e),s(),r=!1}}).subscribe}}function lt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===ct);var t}var ct="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ut(e,t){return!1!==t.clone&&t.isMergeableObject(e)?kt(Array.isArray(e)?[]:{},e,t):e}function dt(e,t,r){return e.concat(t).map(function(e){return ut(e,r)})}function Ct(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function xt(e,t){try{return t in e}catch(e){return!1}}function Tt(i,n,s){var o={};return s.isMergeableObject(i)&&Ct(i).forEach(function(e){o[e]=ut(i[e],s)}),Ct(n).forEach(function(e){var t,r;(!xt(t=i,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(xt(i,e)&&s.isMergeableObject(n[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:kt)(i[e],n[e],s):o[e]=ut(n[e],s))}),o}function kt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||dt,r.isMergeableObject=r.isMergeableObject||lt,r.cloneUnlessOtherwiseSpecified=ut;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):Tt(e,t,r):ut(t,r)}kt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return kt(e,t,r)},{});throw new Error("first argument should be an array")};var Pt=kt,Mt=function(e,t){return(Mt=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 Ot(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}Mt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,y,Bt,g=function(){return(g=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function At(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Dt(e){return e.type===y.literal}function Nt(e){return e.type===y.number}function It(e){return e.type===y.date}function Lt(e){return e.type===y.time}function Ht(e){return e.type===y.select}function Rt(e){return e.type===y.plural}function $t(e){return e.type===y.tag}function Ft(e){return e&&"object"==typeof e&&e.type===Bt.number}function Ut(e){return e&&"object"==typeof e&&e.type===Bt.dateTime}(i=f=f||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=Bt=Bt||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yt=/(?:[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 jt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,zt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gt=/^(@+)?(\+|#+)?[rs]?$/g,Vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function Qt(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(Gt,function(e,t,r){return"string"!=typeof r?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===r?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),i}function Zt(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 qt(e){return Zt(e)||{}}function Kt(e){for(var o={},t=0,r=e;t<r.length;t++){var i,n=r[t];switch(n.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=n.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=g(g(g({},o),{notation:"scientific"}),n.options.reduce(function(e,t){return g(g({},e),qt(t))},{}));continue;case"engineering":o=g(g(g({},o),{notation:"engineering"}),n.options.reduce(function(e,t){return g(g({},e),qt(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Vt,function(e,t,r,i,n,s){if(t)o.minimumIntegerDigits=r.length;else{if(i&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wt.test(n.stem))o.minimumIntegerDigits=n.stem.length;else if(zt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(zt,function(e,t,r,i,n,s){return"*"===r?o.minimumFractionDigits=t.length:i&&"#"===i[0]?o.maximumFractionDigits=i.length:n&&s?(o.minimumFractionDigits=n.length,o.maximumFractionDigits=n.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=n.options[0];"w"===s?o=g(g({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=g(g({},o),Qt(s)))}else Gt.test(n.stem)?o=g(g({},o),Qt(n.stem)):((s=Zt(n.stem))&&(o=g(g({},o),s)),(i=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)),!Wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(o=g(g({},o),i)))}return o}var Xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Jt=new RegExp("^".concat(i.source,"*")),er=new RegExp("".concat(i.source,"*$"));function v(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,tr=!!String.fromCodePoint,rr=!!Object.fromEntries,ir=!!String.prototype.codePointAt,nr=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,or=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ar=!0;try{ar="a"===(null==(Pr=gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Pr[0])}catch(ht){ar=!1}var lr,cr,ur=i?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=tr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i="",n=e.length,s=0;s<n;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},hr=rr?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r],s=n[0],n=n[1];t[s]=n}return t},mr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0||i<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?r:i-56320+(r-55296<<10)+65536},pr=nr?function(e){return e.trimStart()}:function(e){return e.replace(Jt,"")},fr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(er,"")};function gr(e,t){return new RegExp(e,t)}cr=ar?(lr=gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return lr.lastIndex=t,null!=(t=lr.exec(e)[1])?t:""}):function(e,t){for(var r,i=[];;){var n=mr(e,t);if(void 0===n||br(n)||33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;i.push(n),t+=65536<=n?2:1}return dr.apply(void 0,i)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(e,r)).err)return n;i.push(n.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&vr(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;i.push(n.val)}else{s=this.clonePosition();this.bump(),i.push({type:y.pound,location:v(s,this.clonePosition())})}}}return{val:i,err:null}},a.prototype.parseTag=function(e,t){var r,i=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(i,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!vr(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(i,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(i,this.clonePosition()))):this.error(f.INVALID_TAG,v(i,this.clonePosition()))},a.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())},a.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n)i+=n;else{n=this.tryParseUnquoted(e,t);if(n)i+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;i+=n}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:i,location:r},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.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 dr.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},a.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(f.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(h=fr(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:v(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(i)).err?c:(m=v(i,this.clonePosition()),l&&ur(null==l?void 0:l.style,"::",0)?(p=pr(l.style.slice(2)),"number"===o?(d=this.parseNumberSkeletonFromString(p,l.styleLocation)).err?d:{val:{type:y.number,value:r,location:m,style:d.val},err:null}:0===p.length?this.error(f.EXPECT_DATE_TIME_SKELETON,m):(u=p,this.locale&&(u=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Xt[t||""]||Xt[r||""]||Xt["".concat(r,"-001")]||Xt["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===n?"H":n}return r}(p,this.locale)),h={type:Bt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(Yt,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n):{}},{val:{type:"date"===o?y.date:y.time,value:r,location:m,style:h},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:r,location:m,style:null!=(p=null==l?void 0:l.style)?p:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,g({},u)));this.bumpSpace();var d,h=this.parseIdentifierIfPossible(),m=0;if("select"!==o&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),h=this.parseIdentifierIfPossible(),m=d.val}var p,l=this.tryParsePluralOrSelectOptions(e,o,t,h);return l.err?l:(c=this.tryParseArgumentClose(i)).err?c:(p=v(i,this.clonePosition()),"select"===o?{val:{type:y.select,value:r,options:hr(l.val),location:p},err:null}:{val:{type:y.plural,value:r,options:hr(l.val),offset:m,pluralType:"plural"===o?"cardinal":"ordinal",location:p},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(s,a))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.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(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(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}},a.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,i=e.split(jt).filter(function(e){return 0<e.length});r<i.length;r++){var n=i[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var s=n[0],n=n.slice(1),o=0,a=n;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Kt(r):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n=!1,s=[],o=new Set,a=i.value,l=i.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(o.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var d=this.tryParseArgumentClose(u);if(d.err)return d;s.push([a,{value:c.val,location:v(u,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===s.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:s,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;n=!0,s=10*s+(o-48),this.bump()}i=v(i,this.clonePosition());return n?or(s*=r)?{val:s,err:null}:this.error(t,i):this.error(e,i)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=mr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(ur(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&br(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var yr=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function vr(e){return 97<=e&&e<=122||65<=e&&e<=90}function br(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function wr(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new yr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ht(e)||Rt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Nt(e)&&Ft(e.style)||(It(e)||Lt(e))&&Ut(e.style)?delete e.style.location:$t(e)&&r(e.children)})}(e.val),e.val}function _r(e,t){var r=t&&t.cache?t.cache:Mr,i=t&&t.serializer?t.serializer:xr;return(t&&t.strategy?t.strategy:function(e,t){return Cr(e,this,1===e.length?Er:Sr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:i})}function Er(e,t,r,i){var r=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(r);return void 0===n&&(n=e.call(this,i),t.set(r,n)),n}function Sr(e,t,r){var i=Array.prototype.slice.call(arguments,3),r=r(i),n=t.get(r);return void 0===n&&(n=e.apply(this,i),t.set(r,n)),n}function Cr(e,t,r,i,n){return r.bind(t,e,i,n)}var xr=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.get=function(e){return this.cache[e]},Tr.prototype.set=function(e,t){this.cache[e]=t};var kr,Pr,Mr={create:function(){return new Tr}},Br={variadic:function(e,t){return Cr(e,this,Sr,t.cache.create(),t.serializer)},monadic:function(e,t){return Cr(e,this,Er,t.cache.create(),t.serializer)}};(Pr=kr=kr||{}).MISSING_VALUE="MISSING_VALUE",Pr.INVALID_VALUE="INVALID_VALUE",Pr.MISSING_INTL_API="MISSING_INTL_API";Ot(jr,Ir=Error),jr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var b,Ar,Dr,Nr,Ir,Lr=jr,Hr=(Ot(Yr,Nr=Lr),Yr),Rr=(Ot(Ur,Dr=Lr),Ur),$r=(Ot(Fr,Ar=Lr),Fr);function Fr(e,t){return Ar.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),kr.MISSING_VALUE,t)||this}function Ur(e,t,r){return Dr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),kr.INVALID_VALUE,r)||this}function Yr(e,t,r,i){return Nr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),kr.INVALID_VALUE,i)||this}function jr(e,t,r){e=Ir.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function zr(e,t,r,i,n,s,o){if(1===e.length&&Dt(e[0]))return[{type:b.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Dt(u))a.push({type:b.literal,value:u.value});else if(u.type===y.pound)"number"==typeof s&&a.push({type:b.literal,value:r.getNumberFormat(t).format(s)});else{var d=u.value;if(!(n&&d in n))throw new $r(d,o);d=n[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?b.literal:b.object,value:d});else if(It(u)){var h="string"==typeof u.style?i.date[u.style]:Ut(u.style)?u.style.parsedOptions:void 0;a.push({type:b.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(Lt(u))h="string"==typeof u.style?i.time[u.style]:Ut(u.style)?u.style.parsedOptions:i.time.medium,a.push({type:b.literal,value:r.getDateTimeFormat(t,h).format(d)});else if(Nt(u))(h="string"==typeof u.style?i.number[u.style]:Ft(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:b.literal,value:r.getNumberFormat(t,h).format(d)});else{if($t(u)){var m=u.children,p=u.value,f=n[p];if("function"!=typeof f)throw new Rr(p,"function",o);p=f(zr(m,t,r,i,n,s).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),a.push.apply(a,p.map(function(e){return{type:"string"==typeof e?b.literal:b.object,value:e}}))}if(Ht(u)){if(!(g=u.options[d]||u.options.other))throw new Hr(u.value,d,Object.keys(u.options),o);a.push.apply(a,zr(g.value,t,r,i,n))}else if(Rt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Lr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kr.MISSING_INTL_API,o);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new Hr(u.value,d,Object.keys(u.options),o);a.push.apply(a,zr(g.value,t,r,i,n,d-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===b.literal&&t.type===b.literal?r.value+=t.value:e.push(t),e},[])}function Gr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(i=b=b||{})[i.literal=0]="literal",i[i.object=1]="object";Object.defineProperty(m,"defaultLocale",{get:function(){return m.memoizedDefaultLocale||(m.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),m.memoizedDefaultLocale},enumerable:!1,configurable:!0}),m.memoizedDefaultLocale=null,m.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},m.__parse=wr,m.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Vr=m;function m(e,t,r,i){var n,s,o=this;if(void 0===t&&(t=m.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===b.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return zr(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=m.resolveLocale(t),"string"==typeof e){if(this.message=e,!m.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=m.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=m.formats,(s=r)?Object.keys(n).reduce(function(e,t){var r,i;return e[t]=(r=n[t],(i=s[t])?g(g(g({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=g(g({},r[t]),i[t]||{}),e},{})):r),e},g({},n)):n),this.formatters=i&&i.formatters||{getNumberFormat:_r(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,At([void 0],t,!1)))},{cache:Gr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Br.variadic}),getDateTimeFormat:_r(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,At([void 0],t,!1)))},{cache:Gr(t.dateTime),strategy:Br.variadic}),getPluralRules:_r(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,At([void 0],t,!1)))},{cache:Gr(t.pluralRules),strategy:Br.variadic})}}const Wr={},Qr=(e,t,r)=>r&&(t in Wr||(Wr[t]={}),e in Wr[t]||(Wr[t][e]=r),r),Zr=(t,r)=>{if(null!=r){if(r in Wr&&t in Wr[r])return Wr[r][t];var i=fi(r);for(let e=0;e<i.length;e++){var n=function(e,t){if(!Xr(e))return null;e=function(e){return qr[e]||null}(e);{var r=t;if(null!=r){if(r in e)return e[r];var i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}}(i[e],t);if(n)return Qr(t,r,n)}}};let qr;const Kr=ot({});function Xr(e){return e in qr}function Jr(t,...r){delete Wr[t],Kr.update(e=>(e[t]=Pt.all([e[t]||{},...r]),e))}at([Kr],([e])=>Object.keys(e)),Kr.subscribe(e=>qr=e);const ei={};function ti(e){return ei[e]}function ri(e){return null!=e&&fi(e).some(e=>{return null==(e=ti(e))?void 0:e.size})}function ii(i,e){return Promise.all(e.map(e=>{return t=i,r=e,ei[t].delete(r),0===ei[t].size&&delete ei[t],e().then(e=>e.default||e);var t,r})).then(e=>Jr(i,...e))}const ni={};const si={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const oi=ot(!1);var ai=Object.defineProperty,tr=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,li=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,di=(e,t,r)=>t in e?ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let hi;const mi=ot(null);function pi(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function fi(e,t=si.fallbackLocale){e=pi(e);return t?[...new Set([...e,...pi(t)])]:e}function gi(){return null!=hi?hi:void 0}mi.subscribe(e=>{hi=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const oe=tr(((e,t)=>{for(var r in t=t||{})ci.call(t,r)&&di(e,r,t[r]);if(li)for(var r of li(t))ui.call(t,r)&&di(e,r,t[r]);return e})({},mi),rr({set:t=>{if(t&&function(e){if(null!=e){var t=fi(e);for(let e=0;e<t.length;e++){var r=t[e];if(Xr(r))return r}}}(t)&&ri(t)){var r=si["loadingDelay"];let e;return"undefined"!=typeof window&&null!=gi()&&r?e=window.setTimeout(()=>oi.set(!0),r):oi.set(!0),function e(t){var r;return ri(t)?(r=fi(t).map(e=>{var t=ti(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),ni[t]=Promise.all(r.map(([e,t])=>ii(e,t))).then(()=>{if(ri(t))return e(t);delete ni[t]}),ni[t]):t in ni?ni[t]:Promise.resolve()}(t).then(()=>{mi.set(t)}).finally(()=>{clearTimeout(e),oi.set(!1)})}return mi.set(t)}}));var ir=r=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=r(e)}},yi=Object.defineProperty,vi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,_i=(e,t,r)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ei=(e,t)=>{for(var r in t=t||{})bi.call(t,r)&&_i(e,r,t[r]);if(vi)for(var r of vi(t))wi.call(t,r)&&_i(e,r,t[r]);return e},Si=(e,t)=>{var r={};for(i in e)bi.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&vi)for(var i of vi(e))t.indexOf(i)<0&&wi.call(e,i)&&(r[i]=e[i]);return r};const Ci=(e,t)=>{var r=si["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xi=ir(e=>{var{locale:t,format:r}=e,e=Si(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Ci("number",r)),new Intl.NumberFormat(t,e)}),Ti=ir(e=>{var{locale:t,format:r}=e,e=Si(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Ci("date",r):0===Object.keys(e).length&&(e=Ci("date","short")),new Intl.DateTimeFormat(t,e)}),ki=ir(e=>{var{locale:t,format:r}=e,e=Si(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Ci("time",r):0===Object.keys(e).length&&(e=Ci("time","short")),new Intl.DateTimeFormat(t,e)}),Pi=ir((e,t=gi())=>new Vr(e,t,si.formats,{ignoreTag:si.ignoreTag})),Mi=at([oe,Kr],()=>(e,t={})=>{var r,i;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:s,locale:o=gi(),default:a}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Zr(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(r=(i=si).handleMissingMessage)?void 0:r.call(i,{locale:o,id:e,defaultValue:a}))?r:a)?i:e;if(!s)return l;let c=l;try{c=Pi(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Oi=(at([oe],()=>(e,t)=>((e={})=>{var{locale:t=gi()}=e,e=Si(e,["locale"]);return ki(Ei({locale:t},e))})(t).format(e)),at([oe],()=>(e,t)=>((e={})=>{var{locale:t=gi()}=e,e=Si(e,["locale"]);return Ti(Ei({locale:t},e))})(t).format(e)),at([oe],()=>(e,t)=>((e={})=>{var{locale:t=gi()}=e,e=Si(e,["locale"]);return xi(Ei({locale:t},e))})(t).format(e)),at([oe,Kr],()=>(e,t=gi())=>Zr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Je.indexOf(e)&&(t=new qe(t),nt[e]=t,Je.push(e)),nt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Bi(e,t){Jr(e,t)}const Ai={en:{goToLoginButton:"Go To Login",error:"We encountered an issue. Please go to Login to receive your SMS code."},zhs:{goToLoginButton:"去登錄",error:"我们遇到了一个问题。请转到登录以接收您的短信代码"},fr:{goToLoginButton:"Aller à la connexion",error:"Nous avons rencontré un problème. Veuillez vous connecter pour recevoir votre code SMS."},tr:{goToLoginButton:"Giriş Yap'a Git",error:"Bir sorunla karşılaştık. SMS kodunuzu almak için lütfen Giriş kısmına gidin."},ro:{goToLoginButton:"Catre Autentificare",error:"Am întâmpinat o problemă. Vă rugăm să accesați Login pentru a primi codul SMS."},es:{goToLoginButton:"Ir a Inicio de Sesión",error:"Encontramos un problema. Vaya a Iniciar sesión para recibir su código SMS."},pt:{goToLoginButton:"Ir para o Login",error:"Encontramos um problema. Vá para Login para receber seu código SMS."},hr:{goToLoginButton:"Idi na Prijava",error:"Naišli smo problem. Idite na Prijava kako biste primili svoj SMS kod."},"pt-br":{goToLoginButton:"Ir ao início da sessão",error:"Descobrimos um problema. Por favor, vá ao início da sessão para receber seu código SMS."},"es-mx":{goToLoginButton:"Ir a inicio de sesión",error:"Encontramos un problema. Por favor vaya al inicio de sesión para recibir su código SMS."}};function Di(e,t){Jr(e,t)}const Ni={en:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerSimplePasswordError:"Password must be 8-20 characters long.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:'It doesn"t match the password.',registerPromoCode:"Promotional Code (Facultative)",promoCodeError:"",registerSecurityQuestion:"Security Question",registerSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityQuestionError2:"Only letters and numbers are accepted.",registerSecurityAnswer:"Security Answer",registerSecurityAnswer2:"Document Number",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerSecurityAnswerError2:"Only letters and numbers are accepted.",registerNext:"Next"},"zh-hk":{registerTitle:"創建您的帳戶",registerSubtitle:"已經有一個帳戶?",registerSubtitleLogin:"登錄",registerEmail:"電子郵件",registerEmailError:"電子郵件應包含“@”和 2-3 個字母長的域。",registerUsername:"用戶名",registerUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。",registerPassword:"密碼",registerPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",registerSimplePasswordError:"密码长度必须为 8-20 个字符。",registerConfirmPassword:"確認密碼",registerConfirmPasswordError:"它與密碼不匹配。",registerPromoCode:"促销代码",promoCodeError:"",registerSecurityQuestion:"安全問題",registerSecurityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",registerSecurityAnswer:"安全答案",registerSecurityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",registerNext:"下一個"},fr:{registerTitle:"Créez votre compte",registerSubtitle:"Vous avez déjà un compte?",registerSubtitleLogin:"Connexion",registerEmail:"Email",registerEmailError:"L'adresse mail doit comporter un '@' et un nom de domaine de 2 à 3 lettres.",registerUsername:'Nom d"utilisateur',registerUsernameError:"Le nom doit être composé d'au moins 2 caractères et ne doitpas contenir de caractères spéciaux.",registerPassword:"Mot de passe",registerPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial.",registerSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",registerConfirmPassword:"Confirmer le mot de passe",registerConfirmPasswordError:"ça ne correspond pas au mot de passe.",registerPromoCode:"Code Promotionnel (Facultatif)",promoCodeError:"",registerSecurityQuestion:"Questions de sécurité",registerSecurityQuestionError:"La question de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerSecurityAnswer:"Réponse de sécurité",registerSecurityAnswerError:"La réponse de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerNext:"Suivant"},tr:{registerTitle:"hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Şifre",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1 karakter uzunluğunda, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki",registerPromoCode:"Promosyon Kodu (İsteğe bağlı)",promoCodeError:"",registerSecurityQuestion2:"Belge Türü (DNI, Yabancı Kimlik Kartı, Pasaport)",registerSecurityQuestionError2:"Yalnızca harf ve rakamlar kabul edilir.",registerSecurityAnswer2:"Belge Numarası",registerSecurityAnswerError2:"Yalnızca harf ve rakamlar kabul edilir."},ro:{registerTitle:"Creeaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"},es:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"Email",registerEmailError:"Email debe contener '@' y un dominio de 2 a 3 letras.",registerUsername:"Usuario",registerUsernameError:"El nombre de Usuario debe tener mínimo 4 y máximo 20 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerSimplePasswordError:"La contraseña debe tener entre 8 y 20 caracteres.",registerConfirmPassword:"Confirmar Contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestion2:"Tipo de Documento (DNI, CE o Pasaporte)",registerSecurityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityQuestionError2:"Solo se aceptan letras y números.",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de Documento",registerSecurityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityAnswerError2:"Solo se aceptan letras y números.",registerNext:"Siguiente"},pt:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"},hr:{registerTitle:"Kreiraj svoj račun",registerSubtitle:"Već imate račun?",registerSubtitleLogin:"Prijava","registerE-mail":"E-mail","registerE-mailError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.",registerUsername:"Korisničko ime",registerUsernameError:"Ime mora imati najmanje 4-20 znakova i ne smije sadržavati posebne znakove.",registerPassword:"Lozinka",registerPasswordError:"Lozinka mora imati 8-20 znakova",registerSimplePasswordError:"Lozinka mora imati 8-20 znakova",registerConfirmPassword:"Potvrdi lozinku",registerConfirmPasswordError:"Ne odgovara lozinci.",registerPromoCode:"Promotivni kod (fakultativno)",promoCodeError:"promoCodeError",registerSecurityQuestion:"Sigurnosno pitanje",registerSecurityQuestion2:"Vrsta dokumenta",registerSecurityQuestionError:"Sigurnosno pitanje mora imati najmanje 1 znak i najviše 120 znakova.",registerSecurityQuestionError2:"Prihvaćaju se samo slova i brojke.",registerSecurityAnswer:"Sigurnosni Odgovor",registerSecurityAnswer2:"Broj dokumenta",registerSecurityAnswerError:"Sigurnosni odgovor mora imati najmanje 1 znak i najviše 120 znakova.",registerSecurityAnswerError2:"Prihvaćaju se samo slova i brojke.",registerNext:"Sljedeće"},"pt-br":{registerTitle:"Crie sua conta",registerSubtitle:"Você ja tem uma conta?",registerSubtitleLogin:"Iniciar sessão",registerEmail:"Correio eletrônico",registerEmailError:"O correio eletrônico deve conter '@' e um domínio de pelo menos 2-3 letras largas.",registerUsername:"Usuário",registerUsernameError:"O nome deve conter pelo menos 4 caracteres largos e não ter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres de largura.,e contener pelo menos 1 mayúscula, 1 número e 1 caractere especial",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres de largura.",registerConfirmPassword:"Confirmar contrasenha",registerConfirmPasswordError:"Não coincide com a contraseña",registerPromoCode:"Código promocional (Facultativo)",promoCodeError:"",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestion2:"Tipo de documento (Identificação Nacional,Carteira de identidade internacional, Pasaporte)",registerSecurityQuestionError:"A questão de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerSecurityQuestionError2:"Somente letras e números individuais são aceitos",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswer2:"Número de documento",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres",registerSecurityAnswerError2:"Solo letras y números son aceptados",registerNext:"Próximo"},"es-mx":{registerTitle:"Crear su cuenta",registerSubtitle:"¿Ya tiene cuenta?",registerSubtitleLogin:"Iniciar Sesión",registerEmail:"Correo electrónico",registerEmailError:"El correo electrónico debe contener '@' y un dominio de al menos 2-3 letras de largo.",registerUsername:"Usuario",registerUsernameError:"El nombre debe contener al menos 4 caracteres de largo y no tener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe ser de 8 a 20 caracteres de largo., y contener al menos 1 mayúscula, 1 número y 1 caracter especial",registerSimplePasswordError:"La contraseña debe ser de 8 a 20 caracteres de largo.",registerConfirmPassword:"Confirmar contraseña",registerConfirmPasswordError:"No coincide con la contraseña",registerPromoCode:"Código promocional (Facultativo)",promoCodeError:"",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestion2:"Tipo de documento (Identificación Nacional, Tarjeta de id internacional, Pasaporte)",registerSecurityQuestionError:"La pregunta de seguridad debe ser de al menos 1 caracter y máximo 120 caracteres.",registerSecurityQuestionError2:"Solo letras y números son aceptados",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de documento",registerSecurityAnswerError:"La respuesta de seguridad debe ser de al menos 1 caracter y máximo 120 caracteres",registerSecurityAnswerError2:"Solo letras y números son aceptados",registerNext:"Siguiente"}};function Ii(e){let r,i,n=e[31]("registerEmailError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerEmailError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Li(e){let r,i,n=e[31]("registerUsernameError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerUsernameError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Hi(r){let i,n,s,o,a,l,c,u,d;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),a=t("g"),l=t("path"),c=t("circle"),_t(l,"class","a"),_t(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"),_t(l,"transform","translate(0)"),_t(c,"class","a"),_t(c,"cx","2.779"),_t(c,"cy","2.779"),_t(c,"r","2.779"),_t(c,"transform","translate(20.827 30.303)"),_t(a,"transform","translate(-14.185 -27.832)"),_t(i,"class","TogglePasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.843"),_t(i,"height","10.5"),_t(i,"viewBox","0 0 18.843 10.5")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(s,o),pt(i,a),pt(a,l),pt(a,c),u||(d=wt(i,"click",r[63]),u=!0)},p:ht,d(e){e&&gt(i),u=!1,d()}}}function Ri(r){let i,n,s,o,a,l,c,u,d,h,m,p,f,g,y;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),a=t("g"),l=t("circle"),c=t("g"),u=t("path"),d=t("path"),h=t("g"),m=t("path"),p=t("path"),f=t("rect"),_t(l,"class","a"),_t(l,"cx","0.05"),_t(l,"cy","0.05"),_t(l,"r","0.05"),_t(l,"transform","translate(121.017 31.148)"),_t(u,"class","a"),_t(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),_t(u,"transform","translate(-142.164 -39.123)"),_t(d,"class","a"),_t(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),_t(d,"transform","translate(-136.413 -42.068)"),_t(c,"transform","translate(117.499 27.37)"),_t(m,"class","a"),_t(m,"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"),_t(m,"transform","translate(-110.856 -33.157)"),_t(p,"class","a"),_t(p,"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"),_t(p,"transform","translate(-130.743 -29.617)"),_t(h,"transform","translate(110.856 24.899)"),_t(f,"class","a"),_t(f,"width","0.972"),_t(f,"height","15.861"),_t(f,"rx","0.486"),_t(f,"transform","translate(114.827 23.858) rotate(-39.315)"),_t(a,"transform","translate(-110.856 -23.242)"),_t(i,"class","TogglePasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.844"),_t(i,"height","12.887"),_t(i,"viewBox","0 0 18.844 12.887")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(s,o),pt(i,a),pt(a,l),pt(a,c),pt(c,u),pt(c,d),pt(a,h),pt(h,m),pt(h,p),pt(a,f),g||(y=wt(i,"click",r[62]),g=!0)},p:ht,d(e){e&&gt(i),g=!1,y()}}}function $i(e){let r,i,n=e[31]("registerPasswordError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerPasswordError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Fi(e){let r,i,n=e[31]("registerSimplePasswordError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerSimplePasswordError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Ui(r){let i,n,s,o,a,l,c,u,d;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),a=t("g"),l=t("path"),c=t("circle"),_t(l,"class","a"),_t(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"),_t(l,"transform","translate(0)"),_t(c,"class","a"),_t(c,"cx","2.779"),_t(c,"cy","2.779"),_t(c,"r","2.779"),_t(c,"transform","translate(20.827 30.303)"),_t(a,"transform","translate(-14.185 -27.832)"),_t(i,"class","ToggleConfirmPasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.843"),_t(i,"height","10.5"),_t(i,"viewBox","0 0 18.843 10.5")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(s,o),pt(i,a),pt(a,l),pt(a,c),u||(d=wt(i,"click",r[69]),u=!0)},p:ht,d(e){e&&gt(i),u=!1,d()}}}function Yi(r){let i,n,s,o,a,l,c,u,d,h,m,p,f,g,y;return{c(){i=t("svg"),n=t("defs"),s=t("style"),o=vt(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),a=t("g"),l=t("circle"),c=t("g"),u=t("path"),d=t("path"),h=t("g"),m=t("path"),p=t("path"),f=t("rect"),_t(l,"class","a"),_t(l,"cx","0.05"),_t(l,"cy","0.05"),_t(l,"r","0.05"),_t(l,"transform","translate(121.017 31.148)"),_t(u,"class","a"),_t(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),_t(u,"transform","translate(-142.164 -39.123)"),_t(d,"class","a"),_t(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),_t(d,"transform","translate(-136.413 -42.068)"),_t(c,"transform","translate(117.499 27.37)"),_t(m,"class","a"),_t(m,"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"),_t(m,"transform","translate(-110.856 -33.157)"),_t(p,"class","a"),_t(p,"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"),_t(p,"transform","translate(-130.743 -29.617)"),_t(h,"transform","translate(110.856 24.899)"),_t(f,"class","a"),_t(f,"width","0.972"),_t(f,"height","15.861"),_t(f,"rx","0.486"),_t(f,"transform","translate(114.827 23.858) rotate(-39.315)"),_t(a,"transform","translate(-110.856 -23.242)"),_t(i,"class","ToggleConfirmPasswordVisibility"),_t(i,"xmlns","http://www.w3.org/2000/svg"),_t(i,"width","18.844"),_t(i,"height","12.887"),_t(i,"viewBox","0 0 18.844 12.887")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(s,o),pt(i,a),pt(a,l),pt(a,c),pt(c,u),pt(c,d),pt(a,h),pt(h,m),pt(h,p),pt(a,f),g||(y=wt(i,"click",r[68]),g=!0)},p:ht,d(e){e&&gt(i),g=!1,y()}}}function ji(e){let r,i,n=e[31]("registerConfirmPasswordError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("registerConfirmPasswordError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function zi(e){let r,i,n=e[31]("promoCodeError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[1]&&n!==(n=e[31]("promoCodeError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Gi(e){let r,i,n=("true"==e[2]?e[31]("registerSecurityQuestionError2"):e[31]("registerSecurityQuestionError"))+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){4&t[0]|1&t[1]&&n!==(n=("true"==e[2]?e[31]("registerSecurityQuestionError2"):e[31]("registerSecurityQuestionError"))+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Vi(e){let r,i,n=("true"==e[2]?e[31]("registerSecurityAnswerError2"):e[31]("registerSecurityAnswerError"))+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){4&t[0]|1&t[1]&&n!==(n=("true"==e[2]?e[31]("registerSecurityAnswerError2"):e[31]("registerSecurityAnswerError"))+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Wi(r){let i,n,R,$,F,s,U,Y,j,z,G,o,a,l,V,W,Q,Z,c,q,K,X,u,d,J,ee,te,re,h,ie,ne,se,oe,m,p,ae,le,ce,ue,f,de,he,me,pe,fe,ge,ye,g,y,ve,be,we,_e,v,Ee,Se,Ce,xe,b,Te,ke,Pe,Me,w,Oe,Be,Ae,_,E,De,Ne,Ie,Le,S,He,Re,$e,C,x,Fe,Ue,Ye,je,T,ze,Ge,Ve,k,We,Qe,Ze,qe,Ke=r[31]("registerTitle")+"",Xe=r[31]("registerSubtitle")+"",Je=r[31]("registerSubtitleLogin")+"",et=r[31]("registerEmail")+"",tt=r[31]("registerUsername")+"",rt=r[31]("registerPassword")+"",it=r[31]("registerConfirmPassword")+"",nt=r[31]("registerPromoCode")+"",st=("true"==r[2]?r[31]("registerSecurityQuestion2"):r[31]("registerSecurityQuestion"))+"",ot=("true"==r[2]?r[31]("registerSecurityAnswer2"):r[31]("registerSecurityAnswer"))+"",at=r[31]("registerNext")+"",P=r[4]&&Ii(r),M=r[5]&&Li(r);function lt(e){return e[26]?Ri:Hi}let ct=lt(r),O=ct(r),B=r[6]&&"true"!==r[0]&&$i(r),A=r[6]&&"true"===r[0]&&Fi(r);function ut(e){return e[27]?Yi:Ui}let dt=ut(r),D=dt(r),N=r[7]&&ji(r),I=r[10]&&zi(r),L=r[8]&&Gi(r),H=r[9]&&Vi(r);return{c(){i=yt("div"),n=yt("div"),R=yt("h2"),$=vt(Ke),F=bt(),s=yt("p"),U=vt(Xe),Y=bt(),j=yt("span"),z=vt(Je),G=bt(),o=yt("form"),a=yt("div"),l=yt("label"),V=vt(et),W=vt(":"),(Q=yt("span")).textContent="*",Z=bt(),c=yt("input"),q=bt(),P&&P.c(),X=bt(),u=yt("div"),d=yt("label"),J=vt(tt),ee=vt(":"),(te=yt("span")).textContent="*",re=bt(),h=yt("input"),ne=bt(),M&&M.c(),oe=bt(),m=yt("div"),p=yt("label"),ae=vt(rt),le=vt(":"),(ce=yt("span")).textContent="*",ue=bt(),f=yt("input"),he=bt(),O.c(),me=bt(),B&&B.c(),pe=bt(),A&&A.c(),ye=bt(),g=yt("div"),y=yt("label"),ve=vt(it),be=vt(":"),(we=yt("span")).textContent="*",_e=bt(),v=yt("input"),Ee=bt(),D.c(),Se=bt(),N&&N.c(),xe=bt(),b=yt("div"),Te=yt("label"),ke=vt(nt),Pe=vt(":"),Me=bt(),w=yt("input"),Oe=bt(),I&&I.c(),Ae=bt(),_=yt("div"),E=yt("label"),De=vt(st),Ne=vt(":"),(Ie=yt("span")).textContent="*",Le=bt(),S=yt("input"),He=bt(),L&&L.c(),$e=bt(),C=yt("div"),x=yt("label"),Fe=vt(ot),Ue=vt(":"),(Ye=yt("span")).textContent="*",je=bt(),T=yt("input"),ze=bt(),H&&H.c(),Ve=bt(),k=yt("button"),We=vt(at),this.c=ht,_t(R,"class","RegisterFormTitle"),_t(j,"class","FormLoginCallToAction"),_t(s,"class","RegisterFormSubtitle"),_t(n,"class","RegisterFormHeader"),_t(Q,"class","FormRequired"),_t(l,"for","Email"),_t(c,"type","text"),_t(c,"id","Email"),_t(a,"class",K="EmailContainer "+(r[4]&&!r[11]?"InvalidField":"")+(0<=r[18]?.indexOf("email")?"Hidden":"")),_t(te,"class","FormRequired"),_t(d,"for","UserName"),_t(h,"type","text"),_t(h,"id","UserName"),_t(h,"autocomplete",ie=r[1]?"username":"off"),_t(u,"class",se="UserContainer "+(r[5]&&!r[12]?"InvalidField":"")+(0<=r[18]?.indexOf("username")?"Hidden":"")),_t(ce,"class","FormRequired"),_t(p,"for","Password"),_t(f,"name","new-password"),_t(f,"type","password"),_t(f,"id","new-password"),_t(f,"autocomplete",de=r[1]?"new-password":"off"),_t(f,"aria-describedby","password-constraints"),_t(m,"class",fe="PasswordContainer "+(r[6]&&!r[13]?"InvalidField":"")+(0<=r[18]?.indexOf("password")?"Hidden":"")),m.hidden=ge=0<=r[18]?.indexOf("password"),_t(we,"class","FormRequired"),_t(y,"for","ConfirmPassword"),_t(v,"type","password"),_t(v,"id","ConfirmPassword"),_t(g,"class",Ce="ConfirmPasswordContainer "+(r[7]&&!r[14]?"InvalidField":"")+(0<=r[18]?.indexOf("confirmPassword")?"Hidden":"")),_t(Te,"for","PromoCode"),_t(w,"type","text"),_t(w,"id","PromoCode"),_t(b,"class",Be="PromoCodeContainer "+(0<=r[18]?.indexOf("promoCode")?"Hidden":"")),_t(Ie,"class","FormRequired"),_t(E,"for","SecurityQuestion"),_t(S,"type","text"),_t(S,"id","SecurityQuestion"),_t(_,"class",Re="SecurityQuestionContainer "+(r[8]&&!r[15]?"InvalidField":"")+(0<=r[18]?.indexOf("securityQuestion")?"Hidden":"")),_t(Ye,"class","FormRequired"),_t(x,"for","SecurityAnswer"),_t(T,"type","text"),_t(T,"id","SecurityAnswer"),_t(C,"class",Ge="SecurityAnswerContainer "+(r[9]&&!r[16]?"InvalidField":"")+(0<=r[18]?.indexOf("securityAnswer")?"Hidden":"")),_t(k,"class","RegisterStepNext"),k.disabled=Qe=!r[30],_t(o,"class","RegisterFormContent")},m(e,t){ft(e,i,t),pt(i,n),pt(n,R),pt(R,$),pt(n,F),pt(n,s),pt(s,U),pt(s,Y),pt(s,j),pt(j,z),pt(i,G),pt(i,o),pt(o,a),pt(a,l),pt(l,V),pt(l,W),pt(l,Q),pt(a,Z),pt(a,c),St(c,r[20]),pt(a,q),P&&P.m(a,null),pt(o,X),pt(o,u),pt(u,d),pt(d,J),pt(d,ee),pt(d,te),pt(u,re),pt(u,h),St(h,r[19]),pt(u,ne),M&&M.m(u,null),pt(o,oe),pt(o,m),pt(m,p),pt(p,ae),pt(p,le),pt(p,ce),pt(m,ue),pt(m,f),St(f,r[21]),r[61](f),pt(m,he),O.m(m,null),pt(m,me),B&&B.m(m,null),pt(m,pe),A&&A.m(m,null),pt(o,ye),pt(o,g),pt(g,y),pt(y,ve),pt(y,be),pt(y,we),pt(g,_e),pt(g,v),St(v,r[22]),r[67](v),pt(g,Ee),D.m(g,null),pt(g,Se),N&&N.m(g,null),pt(o,xe),pt(o,b),pt(b,Te),pt(Te,ke),pt(Te,Pe),pt(b,Me),pt(b,w),St(w,r[25]),pt(b,Oe),I&&I.m(b,null),pt(o,Ae),pt(o,_),pt(_,E),pt(E,De),pt(E,Ne),pt(E,Ie),pt(_,Le),pt(_,S),St(S,r[23]),pt(_,He),L&&L.m(_,null),pt(o,$e),pt(o,C),pt(C,x),pt(x,Fe),pt(x,Ue),pt(x,Ye),pt(C,je),pt(C,T),St(T,r[24]),pt(C,ze),H&&H.m(C,null),pt(o,Ve),pt(o,k),pt(k,We),r[80](i),Ze||(qe=[wt(j,"click",r[51]),wt(c,"input",r[52]),wt(c,"keyup",r[33]),wt(c,"focus",r[53]),wt(c,"blur",r[54]),wt(h,"input",r[55]),wt(h,"keyup",r[34]),wt(h,"focus",r[56]),wt(h,"blur",r[57]),wt(f,"input",r[58]),wt(f,"keyup",r[39]),wt(f,"focus",r[59]),wt(f,"blur",r[60]),wt(v,"input",r[64]),wt(v,"keyup",r[40]),wt(v,"focus",r[65]),wt(v,"blur",r[66]),wt(w,"input",r[70]),wt(w,"keyup",r[41]),wt(w,"focus",r[71]),wt(w,"blur",r[72]),wt(S,"input",r[73]),wt(S,"keyup",r[42]),wt(S,"focus",r[74]),wt(S,"blur",r[75]),wt(T,"input",r[76]),wt(T,"keyup",r[43]),wt(T,"focus",r[77]),wt(T,"blur",r[78]),wt(k,"click",r[79])],Ze=!0)},p(e,t){1&t[1]&&Ke!==(Ke=e[31]("registerTitle")+"")&&Et($,Ke),1&t[1]&&Xe!==(Xe=e[31]("registerSubtitle")+"")&&Et(U,Xe),1&t[1]&&Je!==(Je=e[31]("registerSubtitleLogin")+"")&&Et(z,Je),1&t[1]&&et!==(et=e[31]("registerEmail")+"")&&Et(V,et),1048576&t[0]&&c.value!==e[20]&&St(c,e[20]),e[4]?P?P.p(e,t):((P=Ii(e)).c(),P.m(a,null)):P&&(P.d(1),P=null),264208&t[0]&&K!==(K="EmailContainer "+(e[4]&&!e[11]?"InvalidField":"")+(0<=e[18]?.indexOf("email")?"Hidden":""))&&_t(a,"class",K),1&t[1]&&tt!==(tt=e[31]("registerUsername")+"")&&Et(J,tt),2&t[0]&&ie!==(ie=e[1]?"username":"off")&&_t(h,"autocomplete",ie),524288&t[0]&&h.value!==e[19]&&St(h,e[19]),e[5]?M?M.p(e,t):((M=Li(e)).c(),M.m(u,null)):M&&(M.d(1),M=null),266272&t[0]&&se!==(se="UserContainer "+(e[5]&&!e[12]?"InvalidField":"")+(0<=e[18]?.indexOf("username")?"Hidden":""))&&_t(u,"class",se),1&t[1]&&rt!==(rt=e[31]("registerPassword")+"")&&Et(ae,rt),2&t[0]&&de!==(de=e[1]?"new-password":"off")&&_t(f,"autocomplete",de),2097152&t[0]&&f.value!==e[21]&&St(f,e[21]),ct===(ct=lt(e))&&O?O.p(e,t):(O.d(1),(O=ct(e))&&(O.c(),O.m(m,me))),e[6]&&"true"!==e[0]?B?B.p(e,t):((B=$i(e)).c(),B.m(m,pe)):B&&(B.d(1),B=null),e[6]&&"true"===e[0]?A?A.p(e,t):((A=Fi(e)).c(),A.m(m,null)):A&&(A.d(1),A=null),270400&t[0]&&fe!==(fe="PasswordContainer "+(e[6]&&!e[13]?"InvalidField":"")+(0<=e[18]?.indexOf("password")?"Hidden":""))&&_t(m,"class",fe),262144&t[0]&&ge!==(ge=0<=e[18]?.indexOf("password"))&&(m.hidden=ge),1&t[1]&&it!==(it=e[31]("registerConfirmPassword")+"")&&Et(ve,it),4194304&t[0]&&v.value!==e[22]&&St(v,e[22]),dt===(dt=ut(e))&&D?D.p(e,t):(D.d(1),(D=dt(e))&&(D.c(),D.m(g,Se))),e[7]?N?N.p(e,t):((N=ji(e)).c(),N.m(g,null)):N&&(N.d(1),N=null),278656&t[0]&&Ce!==(Ce="ConfirmPasswordContainer "+(e[7]&&!e[14]?"InvalidField":"")+(0<=e[18]?.indexOf("confirmPassword")?"Hidden":""))&&_t(g,"class",Ce),1&t[1]&&nt!==(nt=e[31]("registerPromoCode")+"")&&Et(ke,nt),33554432&t[0]&&w.value!==e[25]&&St(w,e[25]),e[10]?I?I.p(e,t):((I=zi(e)).c(),I.m(b,null)):I&&(I.d(1),I=null),262144&t[0]&&Be!==(Be="PromoCodeContainer "+(0<=e[18]?.indexOf("promoCode")?"Hidden":""))&&_t(b,"class",Be),4&t[0]|1&t[1]&&st!==(st=("true"==e[2]?e[31]("registerSecurityQuestion2"):e[31]("registerSecurityQuestion"))+"")&&Et(De,st),8388608&t[0]&&S.value!==e[23]&&St(S,e[23]),e[8]?L?L.p(e,t):((L=Gi(e)).c(),L.m(_,null)):L&&(L.d(1),L=null),295168&t[0]&&Re!==(Re="SecurityQuestionContainer "+(e[8]&&!e[15]?"InvalidField":"")+(0<=e[18]?.indexOf("securityQuestion")?"Hidden":""))&&_t(_,"class",Re),4&t[0]|1&t[1]&&ot!==(ot=("true"==e[2]?e[31]("registerSecurityAnswer2"):e[31]("registerSecurityAnswer"))+"")&&Et(Fe,ot),16777216&t[0]&&T.value!==e[24]&&St(T,e[24]),e[9]?H?H.p(e,t):((H=Vi(e)).c(),H.m(C,null)):H&&(H.d(1),H=null),328192&t[0]&&Ge!==(Ge="SecurityAnswerContainer "+(e[9]&&!e[16]?"InvalidField":"")+(0<=e[18]?.indexOf("securityAnswer")?"Hidden":""))&&_t(C,"class",Ge),1&t[1]&&at!==(at=e[31]("registerNext")+"")&&Et(We,at),1073741824&t[0]&&Qe!==(Qe=!e[30])&&(k.disabled=Qe)},i:ht,o:ht,d(e){e&&gt(i),P&&P.d(),M&&M.d(),r[61](null),O.d(),B&&B.d(),A&&A.d(),r[67](null),D.d(),N&&N.d(),I&&I.d(),L&&L.d(),H&&H.d(),r[80](null),Ze=!1,mt(qe)}}}function Qi(t,e,r){let L;ae(t,Mi,e=>r(31,L=e));let i,n,s,o,{lang:a=""}=e,{disabledfields:l=""}=e,{defaultoptions:H=""}=e,{simplepasswordvalidation:c="false"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:h=""}=e,{savecredentials:R=""}=e,{custominputtextswitch:m="false"}=e,p=!1,f=!1,g=!1,y=!1,v=!1,b=!1,w=!1,_=!1,E=!1,S=!1,C=!1,$=!1,F=!1,U=!1,x="",T="",k="",P="",M="",O="",B="",A=!1,D=!1,Y=!1,N={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/,document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Ni).forEach(e=>{Di(e,Ni[e])});const I=()=>{r(30,Y=!(p||f||g||y||v||b||w)),(x.length<=0||T.length<=0||k.length<=0||P.length<=0||M.length<=0||O.length<=0)&&r(30,Y=!1)},j=()=>{window.postMessage({type:"ToLogin"},window.location.href)},z=()=>{r(26,A=!0),Q()},G=()=>{r(27,D=!0),Z()},V=()=>{r(26,A=!1),Q()},W=()=>{r(27,D=!1),Z()},Q=()=>{r(28,n.type=A?"text":"password",n)},Z=()=>{r(29,s.type=D?"text":"password",s)},q=e=>{e.preventDefault();e={userEmail:T,userValue:x,userPassword:k,confirmUserPassword:P,securityQuestion:M,securityAnswer:O,promoCode:B};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},K=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(20,T=e.data.userData.email),r(19,x=e.data.userData.username),r(21,k=e.data.userData.password),r(22,P=e.data.userData.password),r(23,M=e.data.userData.securityQuestion),r(24,O=e.data.userData.securityAnswer),r(25,B=e.data.userData.promoCode),I())};return le(()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),t.$$set=e=>{"lang"in e&&r(45,a=e.lang),"disabledfields"in e&&r(46,l=e.disabledfields),"defaultoptions"in e&&r(47,H=e.defaultoptions),"simplepasswordvalidation"in e&&r(0,c=e.simplepasswordvalidation),"clientstyling"in e&&r(48,u=e.clientstyling),"clientstylingurl"in e&&r(49,d=e.clientstylingurl),"translationurl"in e&&r(50,h=e.translationurl),"savecredentials"in e&&r(1,R=e.savecredentials),"custominputtextswitch"in e&&r(2,m=e.custominputtextswitch)},t.$$.update=()=>{if(16384&t.$$.dirty[1]&&a&&(e=a,oe.set(e)),32768&t.$$.dirty[1]&&l&&(r(18,i=l.split(",")),0<=i.indexOf("email")&&(r(20,T="dummy@dummy.com"),r(4,p=!1)),0<=i.indexOf("username")&&(r(19,x="dummy username"),r(5,f=!1)),0<=i.indexOf("password")&&(r(21,k="dummy password"),r(6,g=!1)),0<=i.indexOf("confirmPassword")&&(r(22,P="dummy password"),r(7,y=!1)),0<=i.indexOf("securityQuestion")&&(r(23,M="dummy question"),r(8,v=!1)),0<=i.indexOf("securityAnswer")&&(r(24,O="dummy answer"),r(9,b=!1)),0<=i.indexOf("promoCode"))&&r(10,w=!1),1&t.$$.dirty[0]&&c&&"true"==c&&(N.password=/^(?!.* ).{8,20}$/),8&t.$$.dirty[0]|131072&t.$$.dirty[1]&&u&&o&&((e=document.createElement("style")).innerHTML=u,o.appendChild(e)),8&t.$$.dirty[0]|262144&t.$$.dirty[1]&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;524288&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Di(e,t[e])})}).catch(e=>{console.log(e)})},[c,R,m,o,p,f,g,y,v,b,w,_,E,S,C,$,F,U,i,x,T,k,P,M,O,B,A,D,n,s,Y,L,j,()=>{var e;r(4,(e=T,p=!(N.email.test(e)&&e.length<=100))),I()},()=>{var e;r(5,(e=x,f=!(N.user.test(e)&&e.length<=20))),I()},z,G,V,W,()=>{var e;r(6,(e=k,g=!N.password.test(e))),k!==P&&0<P.length?r(7,y=!0):r(7,y=!1),I()},()=>{r(7,y=!(k===P)),I()},()=>{r(10,w=!1),I()},()=>{r(8,v=!(()=>{if(M)switch(m){case"true":if(N.document.test(M)&&M.length<=50)return!0;break;case"false":if(M&&M.length<=120)return!0}return!1})()),I()},()=>{r(9,b=!(()=>{if(O)switch(m){case"true":if(N.document.test(O)&&O.length<=50)return!0;break;case"false":if(O&&O.length<=120)return!0}return!1})()),I()},q,a,l,H,u,d,h,()=>j(),function(){T=this.value,r(20,T)},()=>r(11,_=!0),()=>r(11,_=!1),function(){x=this.value,r(19,x)},()=>r(12,E=!0),()=>r(12,E=!1),function(){k=this.value,r(21,k)},()=>r(13,S=!0),()=>r(13,S=!1),function(e){se[e?"unshift":"push"](()=>{n=e,r(28,n)})},()=>V(),()=>z(),function(){P=this.value,r(22,P)},()=>r(14,C=!0),()=>r(14,C=!1),function(e){se[e?"unshift":"push"](()=>{s=e,r(29,s)})},()=>W(),()=>G(),function(){B=this.value,r(25,B)},()=>r(17,U=!0),()=>r(17,U=!1),function(){M=this.value,r(23,M)},()=>r(15,$=!0),()=>r(15,$=!1),function(){O=this.value,r(24,O)},()=>r(16,F=!0),()=>r(16,F=!1),e=>q(e),function(e){se[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent="input{font-family:inherit}.RegisterFormTitle{font-size:var(--emw--font-size-large, 20px);text-transform:uppercase;font-weight:var(--emw--font-weight-light, 300);margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:var(--emw--font-size-small, 14px);margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.PromoCodeContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:40px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.PromoCodeContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.PromoCodeContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.EmailContainer input:focus,.UserContainer input:focus,.PasswordContainer input:focus,.ConfirmPasswordContainer input:focus,.PromoCodeContainer input:focus,.SecurityQuestionContainer input:focus,.SecurityAnswerContainer input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid var(--emw--color-error, #F5090A);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.PromoCodeContainer.Hidden,.SecurityQuestionContainer.Hidden,.SecurityAnswerContainer.Hidden{display:none}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749))}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.InvalidInput{color:var(--emw--color-error, var(--emw--color-error, #ed0909));font-size:10px;position:absolute;padding-top:5px;top:55px;line-height:10px}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},Qi,Wi,E,{lang:45,disabledfields:46,defaultoptions:47,simplepasswordvalidation:0,clientstyling:48,clientstylingurl:49,translationurl:50,savecredentials:1,custominputtextswitch:2},null,[-1,-1,-1,-1]),e&&(e.target&&ft(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["lang","disabledfields","defaultoptions","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials","custominputtextswitch"]}get lang(){return this.$$.ctx[45]}set lang(e){this.$$set({lang:e}),h()}get disabledfields(){return this.$$.ctx[46]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[47]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),h()}get clientstyling(){return this.$$.ctx[48]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[49]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[50]}set translationurl(e){this.$$set({translationurl:e}),h()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(e){this.$$set({savecredentials:e}),h()}get custominputtextswitch(){return this.$$.ctx[2]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),h()}});qi=Zi={path:void 0,exports:{},require:function(e,t){return Or(null==t&&Zi.path)}},Zi.exports,qi.exports=function(){var L;function p(){return L.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function F(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function U(e,t){for(var r=[],i=e.length,n=0;n<i;++n)r.push(t(e[n],n));return r}function Y(e,t){for(var r in t)f(t,r)&&(e[r]=t[r]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,r,i){return Bt(e,t,r,i,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function j(e){if(null==e._isValid){var t=g(e),r=G.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function z(e){var t=c(NaN);return null!=e?Y(g(t),e):g(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,i=0;i<r;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},V=p.momentProperties=[],W=!1;function Q(e,t){var r,i,n,s=V.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(r=0;r<s;r++)a(n=t[i=V[r]])||(e[i]=n);return e}function Z(e){Q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===W&&(W=!0,p.updateOffset(this),W=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function q(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return Y(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,s),a){for(var e,t,r=[],i=arguments.length,n=0;n<i;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];r.push(e)}q(s+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var K={};function X(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),K[e]||(q(t),K[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function J(e,t){var r,i=Y({},e);for(r in t)f(t,r)&&(H(e[r])&&H(t[r])?(i[r]={},Y(i[r],e[r]),Y(i[r],t[r])):null!=t[r]?i[r]=t[r]:delete i[r]);for(r in e)f(e,r)&&!f(t,r)&&H(e[r])&&(i[r]=Y({},i[r]));return i}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)f(e,t)&&r.push(t);return r};function s(e,t,r){var i=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ie=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},se={};function i(e,t,r,i){var n="string"==typeof i?function(){return this[i]()}:i;e&&(se[e]=n),t&&(se[t[0]]=function(){return s(n.apply(this,arguments),t[1],t[2])}),r&&(se[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ne[t]=ne[t]||function(i){for(var e,n=i.match(re),t=0,s=n.length;t<s;t++)se[n[t]]?n[t]=se[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<s;r++)t+=u(n[r])?n[r].call(e,i):n[r];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function i(e){return t.longDateFormat(e)||e}for(ie.lastIndex=0;0<=r&&ie.test(e);)e=e.replace(ie,i),ie.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,r,i={};for(r in e)f(e,r)&&(t=d(r))&&(i[t]=e[r]);return i}var ue={};function r(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function h(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?h(e):t}function he(t,r){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,r),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(r=m(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ne(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var n=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,be=/\d\d\d\d\d\d?/,we=/\d{1,3}/,_e=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,Se=/\d+/,Ce=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,b=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(e,r,i){Pe[e]=u(r)?r:function(e,t){return e&&i?i:r}}function ke(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,i,n){return t||r||i||n})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},Me={};function E(e,r){var t,i,n=r;for("string"==typeof e&&(e=[e]),$(r)&&(n=function(e,t){t[r]=m(e)}),i=e.length,t=0;t<i;t++)Me[e[t]]=n}function Oe(e,n){E(e,function(e,t,r,i){r._w=r._w||{},n(e,r._w,r,i)})}var S,C=0,x=1,T=2,k=3,P=4,M=5,Be=6,Ae=7,De=8;function Ne(e,t){var r;return isNaN(e)||isNaN(t)?NaN:(r=(t%(r=12)+r)%r,e+=(t-r)/12,1==r?de(e)?29:28:31-r%7%2)}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),w("M",v),w("MM",v,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),E(["M","MM"],function(e,t){t[x]=m(e)-1}),E(["MMM","MMMM"],function(e,t,r,i){i=r._locale.monthsParse(e,i,r._strict);null!=i?t[x]=i:g(r).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=b,$e=b;function Fe(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!$(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function Ue(e){return null!=e?(Fe(this,e),p.updateOffset(this,!0),this):me(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}for(var t,r=[],i=[],n=[],s=0;s<12;s++)t=c([2e3,s]),r.push(this.monthsShort(t,"")),i.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(r.sort(e),i.sort(e),n.sort(e),s=0;s<12;s++)r[s]=_(r[s]),i[s]=_(i[s]);for(s=0;s<24;s++)n[s]=_(n[s]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){return de(e)?366:365}i("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),w("Y",Ce),w("YY",v,y),w("YYYY",_e,ge),w("YYYYY",Ee,ye),w("YYYYYY",Ee,ye),E(["YYYYY","YYYYYY"],C),E("YYYY",function(e,t){t[C]=2===e.length?p.parseTwoDigitYear(e):m(e)}),E("YY",function(e,t){t[C]=p.parseTwoDigitYear(e)}),E("Y",function(e,t){t[C]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var ze=he("FullYear",!0);function Ge(e,t,r,i,n,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,i,n,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,s,o),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,r){r=7+t-r;return-(7+Ve(e,0,r).getUTCDay()-t)%7+r-1}function Qe(e,t,r,i,n){var s,t=1+7*(t-1)+(7+r-i)%7+We(e,i,n),r=t<=0?je(s=e-1)+t:t>je(e)?(s=e+1,t-je(e)):(s=e,t);return{year:s,dayOfYear:r}}function Ze(e,t,r){var i,n,s=We(e.year(),t,r),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?i=s+O(n=e.year()-1,t,r):s>O(e.year(),t,r)?(i=s-O(e.year(),t,r),n=e.year()+1):(n=e.year(),i=s),{week:i,year:n}}function O(e,t,r){var i=We(e,t,r),t=We(e+1,t,r);return(je(e)-i+t)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),w("w",v),w("ww",v,y),w("W",v),w("WW",v,y),Oe(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=m(e)});function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),w("d",v),w("e",v),w("E",v),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,r,i){i=r._locale.weekdaysParse(e,i,r._strict);null!=i?t.d=i:g(r).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,r,i){t[i]=m(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,rt=b;function it(){function e(e,t){return t.length-e.length}for(var t,r,i,n=[],s=[],o=[],a=[],l=0;l<7;l++)i=c([2e3,1]).day(l),t=_(this.weekdaysMin(i,"")),r=_(this.weekdaysShort(i,"")),i=_(this.weekdays(i,"")),n.push(t),s.push(r),o.push(i),a.push(t),a.push(r),a.push(i);n.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function st(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,nt),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+nt.apply(this)+s(this.minutes(),2)}),i("hmmss",0,0,function(){return""+nt.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),r("hour",13),w("a",ot),w("A",ot),w("H",v),w("h",v),w("k",v),w("HH",v,y),w("hh",v,y),w("kk",v,y),w("hmm",ve),w("hmmss",be),w("Hmm",ve),w("Hmmss",be),E(["H","HH"],k),E(["k","kk"],function(e,t,r){e=m(e);t[k]=24===e?0:e}),E(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),E(["h","hh"],function(e,t,r){t[k]=m(e),g(r).bigHour=!0}),E("hmm",function(e,t,r){var i=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i)),g(r).bigHour=!0}),E("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i,2)),t[M]=m(e.substr(n)),g(r).bigHour=!0}),E("Hmm",function(e,t,r){var i=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i))}),E("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[k]=m(e.substr(0,i)),t[P]=m(e.substr(i,2)),t[M]=m(e.substr(n))});b=he("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Je,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},B={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,r,i,n,s=0;s<e.length;){for(t=(n=ut(e[s]).split("-")).length,r=(r=ut(e[s+1]))?r.split("-"):null;0<t;){if(i=ht(n.slice(0,t).join("-")))return i;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),i=0;i<r;i+=1)if(e[i]!==t[i])return i;return r}(n,r)>=t-1)break;t--}s++}return at}function ht(t){var e;if(void 0===B[t]&&qi&&qi.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Or(),mt(e)}catch(e){B[t]=null}return B[t]}function mt(e,t){return e&&((t=a(t)?A(e):pt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function pt(e,t){if(null===t)return delete B[e],null;var r,i=lt;if(t.abbr=e,null!=B[e])X("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=B[e]._config;else if(null!=t.parentLocale)if(null!=B[t.parentLocale])i=B[t.parentLocale]._config;else{if(null==(r=ht(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;i=r._config}return B[e]=new ee(J(i,t)),ct[e]&&ct[e].forEach(function(e){pt(e.name,e.config)}),mt(e),B[e]}function A(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=ht(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[T]<1||t[T]>Ne(t[C],t[x])?T:t[k]<0||24<t[k]||24===t[k]&&(0!==t[P]||0!==t[M]||0!==t[Be])?k:t[P]<0||59<t[P]?P:t[M]<0||59<t[M]?M:t[Be]<0||999<t[Be]?Be:-1,g(e)._overflowDayOfYear&&(t<C||T<t)&&(t=T),g(e)._overflowWeeks&&-1===t&&(t=Ae),g(e)._overflowWeekday&&-1===t&&(t=De),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,r,i,n,s,o,a=e._i,l=gt.exec(a)||yt.exec(a),a=bt.length,c=wt.length;if(l){for(g(e).iso=!0,t=0,r=a;t<r;t++)if(bt[t][1].exec(l[1])){n=bt[t][0],i=!1!==bt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,r=c;t<r;t++)if(wt[t][1].exec(l[3])){s=(l[2]||" ")+wt[t][0];break}if(null==s)return e._isValid=!1}if(!i&&null!=s)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=n+(s||"")+(o||""),Mt(e)}else e._isValid=!1}function xt(e,t,r,i,n,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&e.push(parseInt(s,10)),e}function Tt(e){var t,r,i,n,s=Et.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),r=s[1],i=t,n=e,r&&Xe.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()?(g(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(r=s[8],i=s[9],n=s[10],r?St[r]:i?0:((r=parseInt(n,10))-(i=r%100))/100*60+i),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function kt(e,t,r){return null!=e?e:null!=t?t:r}function Pt(e){var t,r,i,n,s,o,a,l,c,u,d,h=[];if(!e._d){for(u=e,d=new Date(p.now()),r=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[T]&&null==e._a[x]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(o=1,a=4,i=kt(d.GG,u._a[C],Ze(D(),1,4).year),n=kt(d.W,1),((s=kt(d.E,1))<1||7<s)&&(l=!0)):(o=u._locale._week.dow,a=u._locale._week.doy,c=Ze(D(),o,a),i=kt(d.gg,u._a[C],c.year),n=kt(d.w,c.week),null!=d.d?((s=d.d)<0||6<s)&&(l=!0):null!=d.e?(s=d.e+o,(d.e<0||6<d.e)&&(l=!0)):s=o),n<1||n>O(i,o,a)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=Qe(i,n,s,o,a),u._a[C]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=kt(e._a[C],r[C]),(e._dayOfYear>je(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=h[t]=r[t];for(;t<7;t++)e._a[t]=h[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[k]&&0===e._a[P]&&0===e._a[M]&&0===e._a[Be]&&(e._nextDay=!0,e._a[k]=0),e._d=(e._useUTC?Ve:Ge).apply(null,h),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[k]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],g(e).empty=!0;for(var t,r,i,n=""+e._i,s=n.length,o=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)i=r[l],(t=(n.match(ke(i,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&g(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),o+=t.length),se[i]?(t?g(e).empty=!1:g(e).unusedTokens.push(i),d=i,m=e,null!=(h=t)&&f(Me,d)&&Me[d](h,m._a,m,d)):e._strict&&!t&&g(e).unusedTokens.push(i);g(e).charsLeftOver=s-o,0<n.length&&g(e).unusedInput.push(n),e._a[k]<=12&&!0===g(e).bigHour&&0<e._a[k]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[k]=(s=e._locale,c=e._a[k],null==(u=e._meridiem)?c:null!=s.meridiemHour?s.meridiemHour(c,u):null!=s.isPM?((s=s.isPM(u))&&c<12&&(c+=12),c=s||12!==c?c:0):c),null!==(u=g(e).era)&&(e._a[C]=e._locale.erasConvertYear(u,e._a[C])),Pt(e),ft(e)}else Tt(e);else Ct(e);var c,u,d,h,m}function Ot(e){var t,r=e._i,i=e._f;{var n,s;return(e._locale=e._locale||A(e._l),null===r||void 0===i&&""===r)?z({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new Z(ft(r)):(F(r)?e._d=r:o(i)?function(e){var t,r,i,n,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)s=0,o=!1,t=Q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Mt(t),j(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<i&&(i=s,r=t):(null==i||s<i||o)&&(i=s,r=t,o)&&(a=!0);Y(e,r||t)}(e):i?Mt(e):a(i=(r=e)._i)?r._d=new Date(p.now()):F(i)?r._d=new Date(i.valueOf()):"string"==typeof i?(n=r,null===(s=_t.exec(n._i))?(Ct(n),!1===n._isValid&&(delete n._isValid,Tt(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:p.createFromInputFallback(n))):n._d=new Date(+s[1])):o(i)?(r._a=U(i.slice(0),function(e){return parseInt(e,10)}),Pt(r)):H(i)?(n=r)._d||(t=void 0===(s=ce(n._i)).day?s.date:s.day,n._a=U([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(n)):$(i)?r._d=new Date(i):p.createFromInputFallback(r),j(e)||(e._d=null),e))}}function Bt(e,t,r,i,n){var s={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==r&&!1!==r||(i=r,r=void 0),(H(e)&&R(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=i,(n=new Z(ft(Ot(n=s))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function D(e,t,r,i){return Bt(e,t,r,i,!1)}p.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:z()}),be=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:z()});function At(e,t){var r,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return D();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](r)||(r=t[i]);return r}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=ce(e),t=e.year||0,r=e.quarter||0,i=e.month||0,n=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,r,i=!1,n=Dt.length;for(t in e)if(f(e,t)&&(-1===S.call(Dt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<n;++r)if(e[Dt[r]]){if(i)return!1;parseFloat(e[Dt[r]])!==m(e[Dt[r]])&&(i=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*n,this._months=+i+3*r+12*t,this._data={},this._locale=A(),this._bubble()}function It(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,r){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+r+s(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),w("Z",Te),w("ZZ",Te),E(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=$t(Te,e)});var Rt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function Ft(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||F(e)?e:D(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),p.updateOffset(t,!1),t):D(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var r,i,n=e;return It(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=jt.exec(e))?(r="-"===t[1]?-1:1,n={y:0,d:m(t[T])*r,h:m(t[k])*r,m:m(t[P])*r,s:m(t[M])*r,ms:m(Lt(1e3*t[Be]))*r}):(t=zt.exec(e))?(r="-"===t[1]?-1:1,n={y:Gt(t[2],r),M:Gt(t[3],r),w:Gt(t[4],r),d:Gt(t[5],r),h:Gt(t[6],r),m:Gt(t[7],r),s:Gt(t[8],r)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=D(n.from),r=D(n.to),t=t.isValid()&&r.isValid()?(r=Ft(r,t),t.isBefore(r)?i=Vt(t,r):((i=Vt(r,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),i=new Nt(n),It(e)&&f(e,"_locale")&&(i._locale=e._locale),It(e)&&f(e,"_isValid")&&(i._isValid=e._isValid),i}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Wt(i,n){return function(e,t){var r;return null===t||isNaN(+t)||(X(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),Qt(this,N(e,t),i),this}}function Qt(e,t,r,i){var n=t._milliseconds,s=Lt(t._days),t=Lt(t._months);e.isValid()&&(i=null==i||i,t&&Fe(e,me(e,"Month")+t*r),s&&pe(e,"Date",me(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),i)&&p.updateOffset(e,s||t)}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Ie=Wt(1,"add"),Ke=Wt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function qt(e){return l(e)||F(e)||Zt(e)||$(e)||(r=o(t=e),i=!1,r&&(i=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),r&&i)||function(e){var t,r,i=H(e)&&!R(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)r=s[t],n=n||f(e,r);return i&&n}(e)||null==e;var t,r,i}function Kt(e,t){var r,i;return e.date()<t.date()?-Kt(t,e):-((r=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(r,"months"))<0?(t-i)/(i-e.clone().add(r-1,"months")):(t-i)/(e.clone().add(1+r,"months")-i)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=A(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Je=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Jt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function ir(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function nr(e,t){return t.erasAbbrRegex(e)}function sr(){for(var e=[],t=[],r=[],i=[],n=this.eras(),s=0,o=n.length;s<o;++s)t.push(_(n[s].name)),e.push(_(n[s].abbr)),r.push(_(n[s].narrow)),i.push(_(n[s].name)),i.push(_(n[s].abbr)),i.push(_(n[s].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function or(e,t){i(0,[e,e.length],0,t)}function ar(e,t,r,i,n){var s;return null==e?Ze(this,i,n).year:(t>(s=O(e,i,n))&&(t=s),function(e,t,r,i,n){e=Qe(e,t,r,i,n),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,i,n))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),w("N",nr),w("NN",nr),w("NNN",nr),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),E(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){i=r._locale.erasParse(e,i,r._strict);i?g(r).era=i:g(r).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),E(["y","yy","yyy","yyyy"],C),E(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[C]=r._locale.eraYearOrdinalParse(e,n):t[C]=parseInt(e,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),or("gggg","weekYear"),or("ggggg","weekYear"),or("GGGG","isoWeekYear"),or("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),w("G",Ce),w("g",Ce),w("GG",v,y),w("gg",v,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Ee,ye),w("ggggg",Ee,ye),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=m(e)}),Oe(["gg","GG"],function(e,t,r,i){t[i]=p.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),w("Q",n),E("Q",function(e,t){t[x]=3*(m(e)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),r("date",9),w("D",v),w("DD",v,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),E(["D","DD"],T),E("Do",function(e,t){t[T]=m(e.match(v)[0])});_e=he("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),w("DDD",we),w("DDDD",fe),E(["DDD","DDDD"],function(e,t,r){r._dayOfYear=m(e)}),i("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),w("m",v),w("mm",v,y),E(["m","mm"],P);ge=he("Minutes",!1);i("s",["ss",2],0,"second"),t("second","s"),r("second",15),w("s",v),w("ss",v,y),E(["s","ss"],M);var lr,Ee=he("Seconds",!1);for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),w("S",we,n),w("SS",we,y),w("SSS",we,fe),lr="SSSS";lr.length<=9;lr+="S")w(lr,Se);function cr(e,t){t[Be]=m(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")E(lr,cr);ye=he("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");n=Z.prototype;function ur(e){return e}n.add=Ie,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!R(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<i.length;n+=1)r=r||f(e,i[n]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||D(),r=Ft(e,this).startOf("day"),r=p.calendarFormat(this,r)||"sameElse",t=t&&(u(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,D(e)))},n.clone=function(){return new Z(this)},n.diff=function(e,t,r){var i,n,s;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(n=6e4*(i.utcOffset()-this.utcOffset()),t=d(t)){case"year":s=Kt(this,i)/12;break;case"month":s=Kt(this,i);break;case"quarter":s=Kt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:h(s)},n.endOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?ir:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}this._d.setTime(t),p.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||D(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from(D(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||D(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to(D(),e)},n.get=function(e){return u(this[e=d(e)])?this[e]():this},n.invalidAt=function(){return g(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:D(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:D(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,r,i){return e=l(e)?e:D(e),t=l(t)?t:D(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===i[1]?this.isBefore(t,r):!this.isAfter(t,r))},n.isSame=function(e,t){var e=l(e)?e:D(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return j(this)},n.lang=Je,n.locale=Xt,n.localeData=Jt,n.max=be,n.min=ve,n.parsingFlags=function(){return Y({},g(this))},n.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)f(e,t)&&r.push({unit:t,priority:ue[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=ce(e)),i=r.length,n=0;n<i;n++)this[r[n].unit](e[r[n].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},n.startOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?ir:rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}this._d.setTime(t),p.updateOffset(this,!0)}return this},n.subtract=Ke,n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},n.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,r;return this.isValid()?(t="moment",r="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},n.eraYear=function(){for(var e,t,r=this.localeData().eras(),i=0,n=r.length;i<n;++i)if(e=r[i].since<=r[i].until?1:-1,t=this.clone().startOf("day").valueOf(),r[i].since<=t&&t<=r[i].until||r[i].until<=t&&t<=r[i].since)return(this.year()-p(r[i].since).year())*e+r[i].offset;return this.year()},n.year=ze,n.isLeapYear=function(){return de(this.year())},n.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=Ue,n.daysInMonth=function(){return Ne(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return O(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return O(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return O(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return O(this.isoWeekYear(),1,4)},n.date=_e,n.day=n.days=function(e){var t,r,i;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(r=e,i=this.localeData(),e="string"!=typeof r?r:isNaN(r)?"number"==typeof(r=i.weekdaysParse(r))?r:null:parseInt(r,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,r;return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=b,n.minute=n.minutes=ge,n.second=n.seconds=Ee,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,r){var i,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:Ut(this);if("string"==typeof e){if(null===(e=$t(Te,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=Ut(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?Qt(this,N(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ut(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(xe,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Yt,n.isUTC=Yt,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",_e),n.months=e("months accessor is deprecated. Use month instead",Ue),n.years=e("years accessor is deprecated. Use year instead",ze),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(Q(t={},this),(t=Ot(t))._a?(e=(t._isUTC?c:D)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,o=0;o<i;o++)(r&&e[o]!==t[o]||!r&&m(e[o])!==m(t[o]))&&s++;return s+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dr(e,t,r,i){var n=A(),i=c().set(i,t);return n[r](i,e)}function hr(e,t,r){if($(e)&&(t=e,e=void 0),e=e||"",null!=t)return dr(e,t,r,"month");for(var i=[],n=0;n<12;n++)i[n]=dr(e,n,r,"month");return i}function mr(e,t,r,i){t=("boolean"==typeof e||(r=t=e,e=!1),$(t)&&(r=t,t=void 0),t||"");var n,s=A(),o=e?s._week.dow:0,a=[];if(null!=r)return dr(t,(r+o)%7,i,"day");for(n=0;n<7;n++)a[n]=dr(t,(n+o)%7,i,"day");return a}y.calendar=function(e,t,r){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ur,y.postformat=ur,y.relativeTime=function(e,t,r,i){var n=this._relativeTime[r];return u(n)?n(e,t,r,i):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)f(e,r)&&(u(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,i=this._eras||A("en")._eras,n=0,s=i.length;n<s;++n)switch("string"==typeof i[n].since&&(r=p(i[n].since).startOf("day"),i[n].since=r.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=p(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}return i},y.erasParse=function(e,t,r){var i,n,s,o,a,l=this.eras();for(e=e.toUpperCase(),i=0,n=l.length;i<n;++i)if(s=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(s===e)return l[i];break;case"NNNNN":if(a===e)return l[i]}else if(0<=[s,o,a].indexOf(e))return l[i]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||sr.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||sr.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||sr.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[He.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var i,n;if(this._monthsParseExact)return function(e,t,r){var i,n,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(n=S.call(this._shortMonthsParse,e))?n:null:-1!==(n=S.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=S.call(this._shortMonthsParse,e))||-1!==(n=S.call(this._longMonthsParse,e))?n:null:-1!==(n=S.call(this._longMonthsParse,e))||-1!==(n=S.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=c([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[i]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(n.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(r&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?qe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var i,n;if(this._weekdaysParseExact)return function(e,t,r){var i,n,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(n=S.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=S.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=S.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=S.call(this._weekdaysParse,e))||-1!==(n=S.call(this._shortWeekdaysParse,e))||-1!==(n=S.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=S.call(this._shortWeekdaysParse,e))||-1!==(n=S.call(this._weekdaysParse,e))||-1!==(n=S.call(this._minWeekdaysParse,e))?n:null:-1!==(n=S.call(this._minWeekdaysParse,e))||-1!==(n=S.call(this._weekdaysParse,e))||-1!==(n=S.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=c([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(n.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(r&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(r&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},mt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",A);var pr=Math.abs;function fr(e,t,r,i){t=N(t,r);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function gr(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function vr(e){return 146097*e/4800}function br(e){return function(){return this.as(e)}}we=br("ms"),fe=br("s"),Ie=br("m"),be=br("h"),ve=br("d"),Ke=br("w"),b=br("M"),ge=br("Q"),Ee=br("y");function wr(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wr("milliseconds"),_e=wr("seconds"),ze=wr("minutes"),y=wr("hours"),_r=wr("days"),Er=wr("months"),Sr=wr("years");var Cr=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tr(e,t,r,i){var n=N(e).abs(),s=Cr(n.as("s")),o=Cr(n.as("m")),a=Cr(n.as("h")),l=Cr(n.as("d")),c=Cr(n.as("M")),u=Cr(n.as("w")),n=Cr(n.as("y")),s=(s<=r.ss?["s",s]:s<r.s&&["ss",s])||(o<=1?["m"]:o<r.m&&["mm",o])||(a<=1?["h"]:a<r.h&&["hh",a])||(l<=1?["d"]:l<r.d&&["dd",l]);return(s=(s=null!=r.w?s||(u<=1?["w"]:u<r.w&&["ww",u]):s)||(c<=1?["M"]:c<r.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,s[3]=0<+e,s[4]=i,function(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}.apply(null,s)}var kr=Math.abs;function Pr(e){return(0<e)-(e<0)||+e}function Mr(){var e,t,r,i,n,s,o,a,l,c,u;return this.isValid()?(a=kr(this._milliseconds)/1e3,l=kr(this._days),c=kr(this._months),(u=this.asSeconds())?(e=h(a/60),t=h(e/60),a%=60,e%=60,r=h(c/12),c%=12,i=a?a.toFixed(3).replace(/\.?0+$/,""):"",n=Pr(this._months)!==Pr(u)?"-":"",s=Pr(this._days)!==Pr(u)?"-":"",o=Pr(this._milliseconds)!==Pr(u)?"-":"",(u<0?"-":"")+"P"+(r?n+r+"Y":"")+(c?n+c+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+i+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Nt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=pr(this._milliseconds),this._days=pr(this._days),this._months=pr(this._months),e.milliseconds=pr(e.milliseconds),e.seconds=pr(e.seconds),e.minutes=pr(e.minutes),e.hours=pr(e.hours),e.months=pr(e.months),e.years=pr(e.years),this},I.add=function(e,t){return fr(this,e,t,1)},I.subtract=function(e,t){return fr(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(vr(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=be,I.asDays=ve,I.asWeeks=Ke,I.asMonths=b,I.asQuarters=ge,I.asYears=Ee,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*gr(vr(r)+t),r=t=0),i.milliseconds=e%1e3,e=h(e/1e3),i.seconds=e%60,e=h(e/60),i.minutes=e%60,e=h(e/60),i.hours=e%24,t+=h(e/24),r+=e=h(yr(t)),t-=gr(vr(e)),e=h(r/12),r%=12,i.days=t,i.months=r,i.years=e,this},I.clone=function(){return N(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=ze,I.hours=y,I.days=_r,I.weeks=function(){return h(this.days()/7)},I.months=Er,I.years=Sr,I.humanize=function(e,t){var r,i;return this.isValid()?(r=!1,i=xr,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},xr,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),t=Tr(this,!r,i,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Mr,I.toString=Mr,I.toJSON=Mr,I.locale=Xt,I.localeData=Jt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mr),I.lang=Je,i("X",0,0,"unix"),i("x",0,0,"valueOf"),w("x",Ce),w("X",/[+-]?\d+(\.\d{1,3})?/),E("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),E("x",function(e,t,r){r._d=new Date(m(e))}),p.version="2.29.4",L=D,p.fn=n,p.min=function(){return At("isBefore",[].slice.call(arguments,0))},p.max=function(){return At("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=c,p.unix=function(e){return D(1e3*e)},p.months=function(e,t){return hr(e,t,"months")},p.isDate=F,p.locale=mt,p.invalid=z,p.duration=N,p.isMoment=l,p.weekdays=function(e,t,r){return mr(e,t,r,"weekdays")},p.parseZone=function(){return D.apply(null,arguments).parseZone()},p.localeData=A,p.isDuration=It,p.monthsShort=function(e,t){return hr(e,t,"monthsShort")},p.weekdaysMin=function(e,t,r){return mr(e,t,r,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var r,i;return null!=t?(i=lt,null!=B[e]&&null!=B[e].parentLocale?B[e].set(J(B[e]._config,t)):(t=J(i=null!=(r=ht(e))?r._config:i,t),null==r&&(t.abbr=e),(i=new ee(t)).parentLocale=B[e],B[e]=i),mt(e)):null!=B[e]&&(null!=B[e].parentLocale?(B[e]=B[e].parentLocale,e===mt()&&mt(e)):null!=B[e]&&delete B[e]),B[e]},p.locales=function(){return te(B)},p.weekdaysShort=function(e,t,r){return mr(e,t,r,"weekdaysShort")},p.normalizeUnits=d,p.relativeTimeRounding=function(e){return void 0===e?Cr:"function"==typeof e&&(Cr=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==xr[e]&&(void 0===t?xr[e]:(xr[e]=t,"s"===e&&(xr.ss=t-1),!0))},p.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=n,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},p}();var Zi,qi,Ki=Zi.exports;function Xi(e,t){Jr(e,t)}const Ji={en:{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},"zh-hk":{registerBackButton:"後退",registerUserTitle:"標題",registerUserTitleSelect:"选择标题",registerUserTitleSelectMr:"先生.",registerUserTitleSelectMrs:"太太.",registerUserTitleSelectMs:"小姐.",registerFirstName:"名",registerFirstNameError:"名字的長度必須至少為 2 個字符,並且不包含特殊字符。",registerLastName:"姓",registerLastNameError:"姓氏必須至少有 2 個字符長並且不包含特殊字符。",registerDateOfBirth:"出生日期",registerBirthDay:"天",registerBirthMonth:"月",registerBirthYear:"年",registerBirthDateError:"最低注册年龄为 {licenseyears} 年。",registerBirthPlace:"出生地",registerBirthPlaceError:"出生地必須至少有 1 個字符長。",registerCurrency:"貨幣",registerNext:"下一個",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},fr:{registerBackButton:"Retour",registerUserTitle:"Titre",registerUserTitleSelect:"Sélectionnez le titre",registerUserTitleSelectMr:"Monsieur",registerUserTitleSelectMrs:"Madame",registerUserTitleSelectMs:"Mademoiselle",registerFirstName:"Prénom",registerFirstNameError:"Le prénom doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerLastName:"Nom de famille",registerLastNameError:"Le nom de famille doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerDateOfBirth:"Date de naissance",registerBirthDay:"Jour",registerBirthMonth:"Mois",registerBirthYear:"An",registerBirthDateError:"L'âge minimum d'enregistrement est de {licenseyears} ans.",registerBirthPlace:"Lieu de naissance",registerBirthPlaceError:"Le lieu de naissance doit comporter au moins un caractère.",registerCurrency:"Monnaie",registerNext:"Suivant",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},tr:{registerBackButton:"Geri",registerUserTitle:"Başlık",registerUserTitleSelect:"Başlık Seçin",registerUserTitleSelectMr:"Bay.",registerUserTitleSelectMrs:"Bayan.",registerUserTitleSelectMs:"Hanım.",registerFirstName:"İlk adı",registerFirstNameError:"Ad 2-50 karakter uzunluğunda olmalıdır.",registerLastName:"Soy isim",registerLastNameError:"Soyadı 2-50 karakter arasında olmalıdır.",registerDateOfBirth:"Doğum tarihi",registerBirthDay:"Gün",registerBirthMonth:"Ay",registerBirthYear:"Yıl",registerBirthDateError:"Minimum kayıt yaşı {licenseyears} yıldır.",registerBirthPlace:"Doğum Yeri",registerBirthPlaceError:"Doğum yeri en az 1 karakter uzunluğunda olmalıdır.",registerCurrency:"Para birimi",registerNext:"Sonraki",registerPersonalId:"Kişisel kimlik",registerPersonalIdCharacters:"Sadece sayılar",registerPersonalIdLength:"Yanlış Uzunluk"},ro:{registerBackButton:"Inapoi",registerUserTitle:"Titlu",registerUserTitleSelect:"Selecteaza Titlu",registerUserTitleSelectMr:"Dl.",registerUserTitleSelectMrs:"Dna.",registerUserTitleSelectMs:"Dra.",registerFirstName:"Prenume",registerFirstNameError:"Prenumele trebuie sa fie de 2-50 litere lungime.",registerLastName:"Nume",registerLastNameError:"Numele trebuie sa fie de 2-50 litere lungime.",registerDateOfBirth:"Data Nasterii",registerBirthDay:"Zi",registerBirthMonth:"Luna",registerBirthYear:"An",registerBirthDateError:"Varsta minima pentru inregistrare este de {licenseyears} ani.",registerBirthPlace:"Locule nasterii",registerBirthPlaceError:"Locul nasterii trebuie sa contina minim o litera",registerCurrency:"Moneda",registerNext:"Urmatorul",registerPersonalId:"Cod Numeric Personal",registerPersonalIdCharacters:"Pot fi introduse doar cifre",registerPersonalIdLength:"Codul numeric personal trebuie sa contina 13 cifre."},es:{registerBackButton:"Anterior",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar Título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srta.",registerFirstName:"Nombre",registerFirstNameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerLastName:"Apellido",registerLastNameError:"Apellido debe tener entre 2 a 50 caracteres.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima para registrarse es {licenseyears} años",registerBirthPlace:"Lugar de Nacimiento",registerBirthPlaceError:"Lugar de Nacimiento debe tener al menos 1 carácter.",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},pt:{registerBackButton:"Voltar",registerUserTitle:"Título",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"Primeiro nome",registerFirstNameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerLastName:"Último nome",registerLastNameError:"O sobrenome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Local de Nascimento",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},hr:{registerBackButton:"Prethodno",registerUserTitle:"Titula",registerUserTitleSelect:"Odaberite titulu",registerUserTitleSelectMr:"Gosp.",registerUserTitleSelectMrs:"Gđa",registerUserTitleSelectMs:"Gđica",registerFirstName:"Ime",registerFirstNameError:"Ime mora imati 2-50 znakova.",registerLastName:"Prezime",registerLastNameError:"Prezime mora imati 2-50 znakova.",registerDateOfBirth:"Datum rođenja",registerBirthDay:"Dan",registerBirthMonth:"Mjesec",registerBirthYear:"Godina",registerBirthDateError:"Za registraciju morate imati najmanje 18 godina.",registerBirthPlace:"Mjesto rođenja",registerBirthPlaceError:"Mjesto rođenja mora imati najmanje 1 znak.",registerCurrency:"Valuta",registerNext:"Slijedeće",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Samo brojevi",registerPersonalIdLength:"Pogrešna duljina"},"pt-br":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Selecionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nome",registerFirstNameError:"O nome deve ser de 2 a 20 caracteres de comprimento.",registerLastName:"Sobrenome",registerLastNameError:"O sobrenome deve ter de 2 a 50 caracteres.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Ano",registerBirthDateError:"A idade mínimo de registro é {licenseyears} anos.",registerBirthPlace:"Lugar de nascimento",registerBirthPlaceError:"O lugar de nascimento deve ter pelo menos 1 caractere",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Somente números",registerPersonalIdLength:"Formato de número de identificação incorreto"},"es-mx":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nombre",registerFirstNameError:"Nombre debe ser de 2 a 20 caracteres de largo.",registerLastName:"Apellido",registerLastNameError:"Apellido debe ser de 2 a 50 caracteres de largo.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima de registro es {licenseyears} años.",registerBirthPlace:"Lugar de nacimiento",registerBirthPlaceError:"Lugar de nacimiento debe tener al menos 1 caracter",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Sólo números",registerPersonalIdLength:"Formato de número de identificación Incorrecto"}};function en(e,t,r){e=e.slice();return e[79]=t[r],e}function tn(e,t,r){e=e.slice();return e[82]=t[r],e}function rn(e,t,r){e=e.slice();return e[85]=t[r],e}function nn(e,t,r){e=e.slice();return e[88]=t[r],e}function sn(r){let i,n,s,o,a,l,c,u,d,h,m,p,f,g,y,v,b,w=r[24]("registerUserTitle")+"",_=r[24]("registerUserTitleSelect")+"",E=r[24]("registerUserTitleSelectMr")+"",S=r[24]("registerUserTitleSelectMrs")+"",C=r[24]("registerUserTitleSelectMs")+"";return{c(){i=yt("div"),n=yt("label"),s=vt(w),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("select"),u=yt("option"),d=vt(_),h=yt("option"),m=vt(E),p=yt("option"),f=vt(S),g=yt("option"),y=vt(C),_t(a,"class","FormRequired"),_t(n,"for","Title"),u.__value="",u.value=u.__value,u.disabled=!0,u.selected=!0,h.__value="Mr.",h.value=h.__value,p.__value="Mrs.",p.value=p.__value,g.__value="Ms.",g.value=g.__value,_t(c,"id","Title"),void 0===r[12]&&tt(()=>r[44].call(c)),_t(i,"class","UserTitleContainer")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c),pt(c,u),pt(u,d),pt(c,h),pt(h,m),pt(c,p),pt(p,f),pt(c,g),pt(g,y),et(c,r[12],!0),v||(b=[wt(c,"change",r[44]),wt(c,"change",r[29])],v=!0)},p(e,t){16777216&t[0]&&w!==(w=e[24]("registerUserTitle")+"")&&Et(s,w),16777216&t[0]&&_!==(_=e[24]("registerUserTitleSelect")+"")&&Et(d,_),16777216&t[0]&&E!==(E=e[24]("registerUserTitleSelectMr")+"")&&Et(m,E),16777216&t[0]&&S!==(S=e[24]("registerUserTitleSelectMrs")+"")&&Et(f,S),16777216&t[0]&&C!==(C=e[24]("registerUserTitleSelectMs")+"")&&Et(y,C),4096&t[0]&&et(c,e[12])},d(e){e&&gt(i),v=!1,mt(b)}}}function on(r){let i,n,s,o,a,l,c,u,d,h,m,p=r[24]("registerFirstName")+"",f=r[2]&&an(r);return{c(){i=yt("div"),n=yt("label"),s=vt(p),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),f&&f.c(),_t(a,"class","FormRequired"),_t(n,"for","FirstName"),_t(c,"type","text"),_t(c,"id","FirstName"),_t(i,"class",d="FirstNameContainer "+(r[2]&&!r[7]?"InvalidField":""))},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c),St(c,r[13]),pt(i,u),f&&f.m(i,null),h||(m=[wt(c,"input",r[45]),wt(c,"keyup",r[30]),wt(c,"focus",r[46]),wt(c,"keyup",r[47])],h=!0)},p(e,t){16777216&t[0]&&p!==(p=e[24]("registerFirstName")+"")&&Et(s,p),8192&t[0]&&c.value!==e[13]&&St(c,e[13]),e[2]?f?f.p(e,t):((f=an(e)).c(),f.m(i,null)):f&&(f.d(1),f=null),132&t[0]&&d!==(d="FirstNameContainer "+(e[2]&&!e[7]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),f&&f.d(),h=!1,mt(m)}}}function an(e){let r,i,n=e[24]("registerFirstNameError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerFirstNameError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function ln(r){let i,n,s,o,a,l,c,u,d,h,m,p=r[24]("registerLastName")+"",f=r[3]&&cn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(p),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),f&&f.c(),_t(a,"class","FormRequired"),_t(n,"for","LastName"),_t(c,"type","text"),_t(c,"id","LastName"),_t(i,"class",d="LastNameContainer "+(r[3]&&!r[8]?"InvalidField":""))},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c),St(c,r[14]),pt(i,u),f&&f.m(i,null),h||(m=[wt(c,"input",r[48]),wt(c,"keyup",r[31]),wt(c,"focus",r[49]),wt(c,"blur",r[50])],h=!0)},p(e,t){16777216&t[0]&&p!==(p=e[24]("registerLastName")+"")&&Et(s,p),16384&t[0]&&c.value!==e[14]&&St(c,e[14]),e[3]?f?f.p(e,t):((f=cn(e)).c(),f.m(i,null)):f&&(f.d(1),f=null),264&t[0]&&d!==(d="LastNameContainer "+(e[3]&&!e[8]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),f&&f.d(),h=!1,mt(m)}}}function cn(e){let r,i,n=e[24]("registerLastNameError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerLastNameError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function un(r){let i,n,s,o,a,l,c,u,d,h,m,p,f,g,y,v,b,w,_,E,S,e=r[24]("registerDateOfBirth")+"",C=r[24]("registerBirthDay")+"",x=r[24]("registerBirthMonth")+"",T=r[24]("registerBirthYear")+"",k=r[25],P=[];for(let e=0;e<k.length;e+=1)P[e]=dn(nn(r,k,e));let M=r[26],O=[];for(let e=0;e<M.length;e+=1)O[e]=hn(rn(r,M,e));let B=!r[23]&&mn(r),A=r[4]&&fn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(e),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("div"),u=yt("select"),d=yt("option"),h=vt(C);for(let e=0;e<P.length;e+=1)P[e].c();m=bt(),p=yt("select"),f=yt("option"),g=vt(x);for(let e=0;e<O.length;e+=1)O[e].c();y=bt(),v=yt("select"),b=yt("option"),w=vt(T),B&&B.c(),_=bt(),A&&A.c(),_t(a,"class","FormRequired"),d.__value="",d.value=d.__value,d.disabled=!0,d.selected=!0,_t(u,"class","BirthDaySelected"),void 0===r[15]&&tt(()=>r[51].call(u)),f.__value="",f.value=f.__value,f.disabled=!0,f.selected=!0,_t(p,"class","BirthMonthSelected"),void 0===r[16]&&tt(()=>r[52].call(p)),b.__value="",b.value=b.__value,b.disabled=!0,b.selected=!0,_t(v,"class","BirthYearSelected"),void 0===r[17]&&tt(()=>r[53].call(v)),_t(c,"class","BirthDateOptions"),_t(i,"class","BirthDateContainer")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c),pt(c,u),pt(u,d),pt(d,h);for(let e=0;e<P.length;e+=1)P[e]&&P[e].m(u,null);et(u,r[15],!0),pt(c,m),pt(c,p),pt(p,f),pt(f,g);for(let e=0;e<O.length;e+=1)O[e]&&O[e].m(p,null);et(p,r[16],!0),pt(c,y),pt(c,v),pt(v,b),pt(b,w),B&&B.m(v,null),et(v,r[17],!0),pt(c,_),A&&A.m(c,null),E||(S=[wt(u,"change",r[51]),wt(u,"change",r[28]),wt(p,"change",r[52]),wt(p,"change",r[28]),wt(v,"change",r[53]),wt(v,"change",r[28])],E=!0)},p(t,r){if(16777216&r[0]&&e!==(e=t[24]("registerDateOfBirth")+"")&&Et(s,e),16777216&r[0]&&C!==(C=t[24]("registerBirthDay")+"")&&Et(h,C),33554432&r[0]){let e;for(k=t[25],e=0;e<k.length;e+=1){var i=nn(t,k,e);P[e]?P[e].p(i,r):(P[e]=dn(i),P[e].c(),P[e].m(u,null))}for(;e<P.length;e+=1)P[e].d(1);P.length=k.length}if(33587200&r[0]&&et(u,t[15]),16777216&r[0]&&x!==(x=t[24]("registerBirthMonth")+"")&&Et(g,x),67108864&r[0]){let e;for(M=t[26],e=0;e<M.length;e+=1){var n=rn(t,M,e);O[e]?O[e].p(n,r):(O[e]=hn(n),O[e].c(),O[e].m(p,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=M.length}67174400&r[0]&&et(p,t[16]),16777216&r[0]&&T!==(T=t[24]("registerBirthYear")+"")&&Et(w,T),t[23]?B&&(B.d(1),B=null):B?B.p(t,r):((B=mn(t)).c(),B.m(v,null)),134348800&r[0]&&et(v,t[17]),t[4]?A?A.p(t,r):((A=fn(t)).c(),A.m(c,null)):A&&(A.d(1),A=null)},d(e){e&&gt(i),rt(P,e),rt(O,e),B&&B.d(),A&&A.d(),E=!1,mt(S)}}}function dn(e){let r,i,t=e[88]+"";return{c(){r=yt("option"),i=vt(t),r.__value=e[88],r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p:ht,d(e){e&&gt(r)}}}function hn(e){let r,i,t=e[85]+"";return{c(){r=yt("option"),i=vt(t),r.__value=e[85],r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p:ht,d(e){e&&gt(r)}}}function mn(t){let n,s=t[27],o=[];for(let e=0;e<s.length;e+=1)o[e]=pn(tn(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();n=it()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);ft(t,n,r)},p(t,r){if(134217728&r[0]){let e;for(s=t[27],e=0;e<s.length;e+=1){var i=tn(t,s,e);o[e]?o[e].p(i,r):(o[e]=pn(i),o[e].c(),o[e].m(n.parentNode,n))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){rt(o,e),e&&gt(n)}}}function pn(e){let r,i,t=e[82]+"";return{c(){r=yt("option"),i=vt(t),r.__value=e[82],r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p:ht,d(e){e&&gt(r)}}}function fn(e){let r,i,n=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){16777217&t[0]&&n!==(n=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"")&&Et(i,n)},d(e){e&&gt(r)}}}function gn(r){let i,n,s,o,a,l,c,u,d,h,m,p=r[24]("registerBirthPlace")+"",f=r[5]&&yn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(p),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),f&&f.c(),_t(a,"class","FormRequired"),_t(n,"for","BirthPlace"),_t(c,"type","text"),_t(c,"id","BirthPlace"),_t(i,"class",d="BirthPlaceContainer "+(r[5]&&!r[9]?"InvalidField":""))},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c),St(c,r[18]),pt(i,u),f&&f.m(i,null),h||(m=[wt(c,"input",r[54]),wt(c,"keyup",r[32]),wt(c,"focus",r[55]),wt(c,"blur",r[56])],h=!0)},p(e,t){16777216&t[0]&&p!==(p=e[24]("registerBirthPlace")+"")&&Et(s,p),262144&t[0]&&c.value!==e[18]&&St(c,e[18]),e[5]?f?f.p(e,t):((f=yn(e)).c(),f.m(i,null)):f&&(f.d(1),f=null),544&t[0]&&d!==(d="BirthPlaceContainer "+(e[5]&&!e[9]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),f&&f.d(),h=!1,mt(m)}}}function yn(e){let r,i,n=e[24]("registerBirthPlaceError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerBirthPlaceError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function vn(r){let i,n,s,o,a,l,c,u,d,h,m,p=r[24]("registerPersonalId")+"",f=r[6]&&bn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(p),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("input"),u=bt(),f&&f.c(),_t(a,"class","FormRequired"),_t(n,"for","PersonalId"),_t(c,"type","text"),_t(c,"id","PersonalId"),_t(i,"class",d="PersonalIdContainer "+(r[6]&&!r[10]?"InvalidField":""))},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c),St(c,r[21]),pt(i,u),f&&f.m(i,null),h||(m=[wt(c,"input",r[57]),wt(c,"keyup",r[33]),wt(c,"focus",r[58]),wt(c,"blur",r[59])],h=!0)},p(e,t){16777216&t[0]&&p!==(p=e[24]("registerPersonalId")+"")&&Et(s,p),2097152&t[0]&&c.value!==e[21]&&St(c,e[21]),e[6]?f?f.p(e,t):((f=bn(e)).c(),f.m(i,null)):f&&(f.d(1),f=null),1088&t[0]&&d!==(d="PersonalIdContainer "+(e[6]&&!e[10]?"InvalidField":""))&&_t(i,"class",d)},d(e){e&&gt(i),f&&f.d(),h=!1,mt(m)}}}function bn(e){let r,i;function n(e,t){return(r=null==(r=2097152&t[0]?null:r)?!/^\d+$/.test(e[21]):r)?_n:wn}let s=n(e,[-1,-1,-1]),o=s(e);return{c(){o.c(),i=it()},m(e,t){o.m(e,t),ft(e,i,t)},p(e,t){s===(s=n(e,t))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&gt(i)}}}function wn(e){let r,i,n=e[24]("registerPersonalIdLength")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerPersonalIdLength")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function _n(e){let r,i,n=e[24]("registerPersonalIdCharacters")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){16777216&t[0]&&n!==(n=e[24]("registerPersonalIdCharacters")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function En(r){let i,n,s,o,a,l,c,e,u,d,h=r[24]("registerCurrency")+"",m=r[19],p=[];for(let e=0;e<m.length;e+=1)p[e]=Sn(en(r,m,e));return{c(){i=yt("div"),n=yt("label"),s=vt(h),o=vt(":"),(a=yt("span")).textContent="*",l=bt(),c=yt("select");for(let e=0;e<p.length;e+=1)p[e].c();_t(a,"class","FormRequired"),_t(n,"for","Currency"),_t(c,"id","Currency"),void 0===r[20]&&tt(()=>r[60].call(c)),_t(i,"class",e="CurrencyContainer "+(0<=r[11]?.indexOf("currency")?"Hidden":""))},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(i,l),pt(i,c);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(c,null);et(c,r[20],!0),u||(d=wt(c,"change",r[60]),u=!0)},p(t,r){if(16777216&r[0]&&h!==(h=t[24]("registerCurrency")+"")&&Et(s,h),524288&r[0]){let e;for(m=t[19],e=0;e<m.length;e+=1){const s=en(t,m,e);p[e]?p[e].p(s,r):(p[e]=Sn(s),p[e].c(),p[e].m(c,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=m.length}1572864&r[0]&&et(c,t[20]),2048&r[0]&&e!==(e="CurrencyContainer "+(0<=t[11]?.indexOf("currency")?"Hidden":""))&&_t(i,"class",e)},d(e){e&&gt(i),rt(p,e),u=!1,d()}}}function Sn(e){let r,i,n,s=e[79]+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[79],r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){524288&t[0]&&s!==(s=e[79]+"")&&Et(i,s),524288&t[0]&&n!==(n=e[79])&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function Cn(r){let i,n,s,o,a,l,R,c,$,u,F,d,h,m,p,f,g,y,v,b,w,_,E,U,S=r[24]("registerBackButton")+"",C=!(0<=r[11]?.indexOf("title")),x=!(0<=r[11]?.indexOf("firstName")),T=!(0<=r[11]?.indexOf("lastName")),k=!(0<=r[11]?.indexOf("birthDate")),P=!(0<=r[11]?.indexOf("birthPlace")),M=!(0<=r[11]?.indexOf("personalId")),Y=!(0<=r[11]?.indexOf("currency")),O=r[24]("registerNext")+"",B=C&&sn(r),A=x&&on(r),D=T&&ln(r),N=k&&un(r),I=P&&gn(r),L=M&&vn(r),H=Y&&En(r);return{c(){i=yt("div"),n=yt("div"),s=yt("button"),o=t("svg"),a=t("defs"),l=t("style"),R=vt(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),c=t("path"),$=bt(),u=vt(S),F=bt(),d=yt("form"),B&&B.c(),h=bt(),A&&A.c(),m=bt(),D&&D.c(),p=bt(),N&&N.c(),f=bt(),I&&I.c(),g=bt(),L&&L.c(),y=bt(),H&&H.c(),v=bt(),b=yt("button"),w=vt(O),this.c=ht,_t(c,"class","a"),_t(c,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),_t(c,"transform","translate(24 24) rotate(180)"),_t(o,"xmlns","http://www.w3.org/2000/svg"),_t(o,"viewBox","0 0 24 24"),_t(s,"class","BackButton"),_t(n,"class","RegisterFormHeader"),_t(b,"class","RegisterStepNext"),b.disabled=_=!r[22],_t(d,"class","RegisterFormContent")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(s,o),pt(o,a),pt(a,l),pt(l,R),pt(o,c),pt(s,$),pt(s,u),pt(i,F),pt(i,d),B&&B.m(d,null),pt(d,h),A&&A.m(d,null),pt(d,m),D&&D.m(d,null),pt(d,p),N&&N.m(d,null),pt(d,f),I&&I.m(d,null),pt(d,g),L&&L.m(d,null),pt(d,y),H&&H.m(d,null),pt(d,v),pt(d,b),pt(b,w),r[62](i),E||(U=[wt(s,"click",r[35]),wt(b,"click",r[61])],E=!0)},p(e,t){16777216&t[0]&&S!==(S=e[24]("registerBackButton")+"")&&Et(u,S),(C=2048&t[0]?!(0<=e[11]?.indexOf("title")):C)?B?B.p(e,t):((B=sn(e)).c(),B.m(d,h)):B&&(B.d(1),B=null),(x=2048&t[0]?!(0<=e[11]?.indexOf("firstName")):x)?A?A.p(e,t):((A=on(e)).c(),A.m(d,m)):A&&(A.d(1),A=null),(T=2048&t[0]?!(0<=e[11]?.indexOf("lastName")):T)?D?D.p(e,t):((D=ln(e)).c(),D.m(d,p)):D&&(D.d(1),D=null),(k=2048&t[0]?!(0<=e[11]?.indexOf("birthDate")):k)?N?N.p(e,t):((N=un(e)).c(),N.m(d,f)):N&&(N.d(1),N=null),(P=2048&t[0]?!(0<=e[11]?.indexOf("birthPlace")):P)?I?I.p(e,t):((I=gn(e)).c(),I.m(d,g)):I&&(I.d(1),I=null),(M=2048&t[0]?!(0<=e[11]?.indexOf("personalId")):M)?L?L.p(e,t):((L=vn(e)).c(),L.m(d,y)):L&&(L.d(1),L=null),(Y=2048&t[0]?!(0<=e[11]?.indexOf("currency")):Y)?H?H.p(e,t):((H=En(e)).c(),H.m(d,v)):H&&(H.d(1),H=null),16777216&t[0]&&O!==(O=e[24]("registerNext")+"")&&Et(w,O),4194304&t[0]&&_!==(_=!e[22])&&(b.disabled=_)},i:ht,o:ht,d(e){e&&gt(i),B&&B.d(),A&&A.d(),D&&D.d(),N&&N.d(),I&&I.d(),L&&L.d(),H&&H.d(),r[62](null),E=!1,mt(U)}}}function xn(t,e,r){let L;ae(t,Mi,e=>r(24,L=e));let i,n,s,o,H,R,$,a,{endpoint:l=""}=e,{lang:c=""}=e,{licenseyears:u=""}=e,{disabledfields:d=""}=e,{defaultoptions:F=""}=e,{personalidlength:h=""}=e,{clientstyling:m=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,g=!1,y=!1,v=!1,b=!1,w=!1,_=!1,E=!1,S=!1,C=!1,x="",T="",k="",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],Y=[1,2,3,4,5,6,7,8,9,10,11,12],P=[],M="",O=["EUR","USD"],B="",A="",D=new Date,N=!1,j=!0;Object.keys(Ji).forEach(e=>{Xi(e,Ji[e])});const I=()=>{r(22,N=!(g||y||v||b||w)),!(T.length<=0||k.length<=0||M.length<=0||A.length<=0)&&x&&n&&s&&o||r(22,N=!1)},z=e=>!!(e&&2<=e.length&&e.length<=50),G=e=>{e.preventDefault();e={userTitleSelected:x,userFirstName:T,userLastName:k,birthDaySelected:n,birthMonthSelected:s,birthYearSelected:o,birthPlace:M,personalId:A,currencySelected:B};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},V=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(12,x=e.data.userData.title),r(13,T=e.data.userData.firstname),r(14,k=e.data.userData.lastname),r(15,n=e.data.userData.birth.day),r(16,s=e.data.userData.birth.month),r(17,o=e.data.userData.birth.year),r(18,M=e.data.userData.birthPlace),r(20,B=e.data.userData.currency),r(21,A=e.data.userData.personalId),I())};return le(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)})),t.$$set=e=>{"endpoint"in e&&r(36,l=e.endpoint),"lang"in e&&r(37,c=e.lang),"licenseyears"in e&&r(0,u=e.licenseyears),"disabledfields"in e&&r(38,d=e.disabledfields),"defaultoptions"in e&&r(39,F=e.defaultoptions),"personalidlength"in e&&r(40,h=e.personalidlength),"clientstyling"in e&&r(41,m=e.clientstyling),"clientstylingurl"in e&&r(42,p=e.clientstylingurl),"translationurl"in e&&r(43,f=e.translationurl)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&l&&fetch(l+"/v1/player/operatorSupportedCurrencies").then(e=>e.json()).then(e=>{r(19,O=e.currencies),B||r(20,B=O[0])}),64&t.$$.dirty[1]&&c&&(e=c,oe.set(e)),1&t.$$.dirty[0]&&u){R=parseInt(Ki(D.setDate(D.getDate())).subtract(parseInt(u,10),"y").format("YYYY")),H=parseInt(Ki(D.setDate(D.getDate())).subtract(100+parseInt(u,10),"y").format("YYYY"));for(let e=R;e>=H;e--)P.push(e);r(23,j=!1)}if(128&t.$$.dirty[1]&&d&&(r(11,i=d.split(",")),0<=i.indexOf("firstName")&&(r(13,T="dummy first name"),r(2,g=!1)),0<=i.indexOf("lastName")&&(r(14,k="dummy last name"),r(3,y=!1)),0<=i.indexOf("birthPlace")&&(r(18,M="dummy birth place"),r(5,b=!1)),0<=i.indexOf("personalId")&&(r(21,A="dummy personal id"),r(6,w=!1)),0<=i.indexOf("birthDate")&&r(4,v=!1),0<=i.indexOf("title")&&r(12,x="Mr."),0<=i.indexOf("currency"))&&r(20,B="CDF"),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&m&&a&&((e=document.createElement("style")).innerHTML=m,a.appendChild(e)),2&t.$$.dirty[0]|2048&t.$$.dirty[1]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1),setTimeout(()=>{},500)})}var e;4096&t.$$.dirty[1]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xi(e,t[e])})}).catch(e=>{console.log(e)})},[u,a,g,y,v,b,w,_,E,S,C,i,x,T,k,n,s,o,M,O,B,A,N,j,L,U,Y,P,()=>{o&&s&&n&&($=Ki(D.setDate(D.getDate())).diff(Ki(`${o}-${s}-`+n,"YYYY-MM-DD"),"years").toString(),r(4,v=$<u)),I()},I,()=>{r(2,g=!z(T)),I()},()=>{r(3,y=!z(k)),I()},()=>{r(5,b=!(M&&M.length<=120)),I()},()=>{r(6,w=!(A&&A.length===Number(h)&&/^\d+$/.test(A))),I()},G,()=>{var e={userTitleSelected:x,userFirstName:T,userLastName:k,birthDaySelected:n,birthMonthSelected:s,birthYearSelected:o,birthPlace:M,personalId:A,currencySelected:B};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},l,c,d,F,h,m,p,f,function(){x=X(this),r(12,x)},function(){T=this.value,r(13,T)},()=>r(7,_=!0),()=>r(7,_=!1),function(){k=this.value,r(14,k)},()=>r(8,E=!0),()=>r(8,E=!1),function(){n=X(this),r(15,n),r(25,U)},function(){s=X(this),r(16,s),r(26,Y)},function(){o=X(this),r(17,o),r(27,P)},function(){M=this.value,r(18,M)},()=>r(9,S=!0),()=>r(9,S=!1),function(){A=this.value,r(21,A)},()=>r(10,C=!0),()=>r(10,C=!1),function(){B=X(this),r(20,B),r(19,O)},e=>G(e),function(e){se[e?"unshift":"push"](()=>{a=e,r(1,a)})}]}function Tn(e,t){Jr(e,t)}customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent="input,select{font-family:inherit}.BackButton{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer select :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.PersonalIdContainer,.CurrencyContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.PersonalIdContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.PersonalIdContainer input,.CurrencyContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserTitleContainer select:focus,.FirstNameContainer input:focus,.LastNameContainer input:focus,.BirthDateContainer select:focus,.BirthPlaceContainer input:focus,.PersonalIdContainer input:focus,.CurrencyContainer select:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input,.PersonalIdContainer.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.CurrencyContainer.Hidden{display:none}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.BirthDateOptions .BirthMonthSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.BirthDateOptions .BirthYearSelected{width:40%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.FormRequired{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749))}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},xn,Cn,E,{endpoint:36,lang:37,licenseyears:0,disabledfields:38,defaultoptions:39,personalidlength:40,clientstyling:41,clientstylingurl:42,translationurl:43},null,[-1,-1,-1]),e&&(e.target&&ft(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["endpoint","lang","licenseyears","disabledfields","defaultoptions","personalidlength","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[36]}set endpoint(e){this.$$set({endpoint:e}),h()}get lang(){return this.$$.ctx[37]}set lang(e){this.$$set({lang:e}),h()}get licenseyears(){return this.$$.ctx[0]}set licenseyears(e){this.$$set({licenseyears:e}),h()}get disabledfields(){return this.$$.ctx[38]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[39]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get personalidlength(){return this.$$.ctx[40]}set personalidlength(e){this.$$set({personalidlength:e}),h()}get clientstyling(){return this.$$.ctx[41]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[42]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[43]}set translationurl(e){this.$$set({translationurl:e}),h()}});const kn={en:{registerBackButton:"Back",registerAddress:"Address",registerAddressError:"Address must be at least 1 character long and 100 characters maximum.",registerPostalCode:"Postal Code",registerPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",registerCity:"City",registerCityError:"City must be at least 1 character long and 50 characters maximum.",registerCountry:"Country",registerNationality:"Nationality",registerMobile:"Mobile",registerMobileError:"Mobile must be at least 5 character long and 12 characters maximum.",registerUserConsents:"I want to receive exclusive offers and bonuses. I am aware that I can unsubscribe whenever I want to.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"I am at least 18 years old and I have read and accepted the <a href='/terms-and-conditions' target='_blank'>Terms and Conditions</a>.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"},"zh-hk":{registerBackButton:"後退",registerAddress:"地址",registerAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",registerPostalCode:"郵政編碼",registerPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",registerCity:"城市",registerCityError:"城市必須至少 1 個字符長,最多 50 個字符。",registerCountry:"國家",registerNationality:"國籍",registerMobile:"移動的",registerMobileError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",registerUserConsents:"我想收到獨家優惠和獎金。 我知道我可以隨時取消訂閱。",registerUserConsentsSMS:"短信",registerUserConsentsEmail:"電子郵件",registerTermsConditions:"我至少 18 歲,並且我已閱讀並接受條件條款。",registerTermsConditionsError:"請在繼續之前接受條款和條件。",registerOpenAccount:"開戶口"},fr:{registerBackButton:"Retour",registerAddress:"Adresse",registerAddressError:"L'adresse doit comporter au moins un caractère et 100 caractères au maximum.",registerPostalCode:"Code postal",registerPostalCodeError:"Le code postal doit comporter au moins un caractère et 20 caractères au maximum.",registerCity:"Ville",registerCityError:"La ville doit comporter au moins un caractère et 50 caractères au maximum.",registerCountry:"Pays",registerNationality:"Nationalité",registerMobile:"Téléphone",registerMobileError:"Le téléphone doit comporter au moins 5 caractère et 12 caractères au maximum.",registerUserConsents:"Je veux recevoir des offres exclusives et des bonus , je sais que je peux me désinscrire quand je le veux.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"J'ai au moins 18 ans et j'ai lu et accepté les conditions d'utilisation.",registerTermsConditionsError:"Veuillez accepter les termes et conditions avant de poursuivre.",registerOpenAccount:"Ouvrir un compte"},tr:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve maksimum 100 karakter olmalıdır.",registerPostalCode:"Posta Kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve maksimum 20 karakter uzunluğunda olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter, maksimum 50 karakter uzunluğunda olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve maksimum 12 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin bilincindeyim.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve <a href='/terms-and-conditions' target='_blank'>Şartlar ve Koşullar</a>'ı okuyup kabul ettim.",registerTermsConditionsError:"Devam etmeden önce lütfen Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"},ro:{registerBackButton:"Inapoi",registerAddress:"Adresa",registerAddressError:"Adresa trebuie sa fie cuprinsa in 1 si 100 de litere.",registerPostalCode:"Cod Postal",registerPostalCodeError:"Codul postal trebuie sa fie cuprins intre 1 si 20 de caractere.",registerCity:"Oras",registerCityError:"Orasul trebuie sa fie cuprins intre 1 si 50 de litere.",registerCountry:"Tara",registerNationality:"Nationalitatea",registerMobile:"Telefon",registerMobileError:"Telefonul trebuie sa fie cuprins intre 5 si 12 de cifre.",registerUserConsents:"Vreau sa primesc oferte si bonusuri exclusive. Sunt constient ca pot sa dau unsubscribe oricand.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Am minim 18 ani si am citit si acceptat Termenii si Conditiile",registerTermsConditionsError:"Te rog accepta Termenii si Conditiile",registerOpenAccount:"Inregistrare"},es:{registerBackButton:"Anterior",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",registerPostalCode:"Código Postal",registerPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",registerCity:"Ciudad",registerCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Celular",registerMobileError:"Número celular debe tener al menos 5 caracteres y un máximo de 12 caracteres",registerUserConsents:"Quiero recibir ofertas Exclusivas y Bonos. Soy consciente que puedo desuscribirme en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Tengo al menos 18 años de edad, y he leido y aceptado los Términos y Condiciones.",registerTermsConditionsError:"Por favor acepta los Términos y Condiciones antes de avanzar.",registerOpenAccount:"Abrir cuenta"},pt:{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter pelo menos 1 caractere e no máximo 100 caracteres.",registerPostalCode:"CEP",registerPostalCodeError:"O CEP deve ter pelo menos 1 caractere e no máximo 20 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Celular",registerMobileError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar a inscrição quando quiser.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-mail",registerTermsConditions:"Tenho pelo menos 18 anos e li e aceito os Termos de Condições.",registerTermsConditionsError:"Por favor, aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Abrir conta"},hr:{registerBackButton:"Prethodno",registerAddress:"Adresa",registerAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",registerPostalCode:"Poštanski broj",registerPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",registerCity:"Grad",registerCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",registerCountry:"Zemlja",registerNationality:"Nacionalnost",registerMobile:"Broj mobitela",registerMobileError:"Broj mobitela mora imati najmanje 5 znakova i najviše 12 znakova.",registerUserConsents:"Želim primati ekskluzivne ponude i bonuse. Svjestan sam da se mogu odjaviti kad god to želim.",registerUserConsentsSMS:"SMS","registerUserConsentsE-mail":"E-mail",registerTermsConditions:"Imam najmanje 18 godina i pročitao sam i prihvatio Uvjete.",registerTermsConditionsError:"Prije nastavka prihvatite Uvjete i odredbe.",registerOpenAccount:"Otvori račun"},"pt-br":{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerPostalCode:"Código postal",registerPostalCodeError:"O CEP deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Número de telemóvel",registerMobileError:"O número do celular deve ter entre 5 e 12 caracteres no máximo.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar esta assinatura a qualquer momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correio eletrônico",registerTermsConditions:"Tenho pelo menos 18 anos de idade e li e aceito os <a href='/terms-and-conditions' target='_blank'>Termos e Condições </a>.",registerTermsConditionsError:"Aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Conta aberta"},"es-mx":{registerBackButton:"Atrás",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 caracter y 100 caracteres máximo.",registerPostalCode:"Código postal",registerPostalCodeError:"El código postal debe tener al menos 1 caracter y 100 caracteres máximo.",registerCity:"Ciudad",registerCityError:"Ciudad debe tener al menos 1 caracter y 50 caracteres máximo.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Número de móvil",registerMobileError:"Número de móvil debe tener entre 5 caracteres de largo y 12 caracteres máximo.",registerUserConsents:"Quiero recibir ofertas exclusivas y bonos. Estoy consciente que puedo cancelar esta subscripción en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correo electrónico",registerTermsConditions:"Tengo al menos 18 años de edad y he leído y aceptado los <a href='/terms-and-conditions' target='_blank'>Términos y Condiciones </a>.",registerTermsConditionsError:"Por favor acepte los Términos y Condiciones antes de proceder.",registerOpenAccount:"Abrir cuenta"}},Pn=T["document"];function Mn(e,t,r){e=e.slice();return e[89]=t[r],e}function On(e,t,r){e=e.slice();return e[92]=t[r],e}function Bn(e,t,r){e=e.slice();return e[95]=t[r],e}function An(e){let r,i;return{c(){C((r=yt("script")).src,i="//www.google.com/recaptcha/api.js?render="+e[4])||_t(r,"src",i),r.async=!0,r.defer=!0},m(e,t){ft(e,r,t)},p(e,t){16&t[0]&&!C(r.src,i="//www.google.com/recaptcha/api.js?render="+e[4])&&_t(r,"src",i)},d(e){e&&gt(r)}}}function Dn(e){let r,i,n=e[32]("registerAddressError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerAddressError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Nn(e){let r,i,n=e[32]("registerPostalCodeError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerPostalCodeError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function In(e){let r,i,n=e[32]("registerCityError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerCityError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Ln(e){let r,i,n,s=e[95].Name+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[95].Alpha2Code,r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1048576&t[0]&&s!==(s=e[95].Name+"")&&Et(i,s),1048576&t[0]&&n!==(n=e[95].Alpha2Code)&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function Hn(e){let r,i,n,s=e[92].Name+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[92].Alpha2Code,r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){4194304&t[0]&&s!==(s=e[92].Name+"")&&Et(i,s),4194304&t[0]&&n!==(n=e[92].Alpha2Code)&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function Rn(e){let r,i,n,s=e[89].Prefix+"";return{c(){r=yt("option"),i=vt(s),r.__value=n=e[89].Prefix,r.value=r.__value},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){33554432&t[0]&&s!==(s=e[89].Prefix+"")&&Et(i,s),33554432&t[0]&&n!==(n=e[89].Prefix)&&(r.__value=n,r.value=r.__value)},d(e){e&&gt(r)}}}function $n(e){let r,i,n=e[32]("registerMobileError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){2&t[1]&&n!==(n=e[32]("registerMobileError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function Fn(e){let r,i,n=("true"===e[2]||"true"===e[3])&&Un(e),s="true"===e[1]&&zn(e);return{c(){n&&n.c(),r=bt(),s&&s.c(),i=it()},m(e,t){n&&n.m(e,t),ft(e,r,t),s&&s.m(e,t),ft(e,i,t)},p(e,t){"true"===e[2]||"true"===e[3]?n?n.p(e,t):((n=Un(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null),"true"===e[1]?s?s.p(e,t):((s=zn(e)).c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(e){n&&n.d(e),e&&gt(r),s&&s.d(e),e&&gt(i)}}}function Un(r){let i,n,s,o,a,l,c,u,d,h,m,p,f=r[32]("registerUserConsents")+"",g="true"===r[2]&&Yn(r),y="true"===r[3]&&jn(r);return{c(){i=yt("div"),n=yt("label"),s=vt(f),o=bt(),a=yt("input"),l=bt(),c=yt("span"),u=bt(),d=yt("div"),g&&g.c(),h=bt(),y&&y.c(),_t(a,"type","Checkbox"),a.checked=r[27],_t(c,"class","Checkmark"),_t(n,"class","Offers"),_t(d,"class","OffersMethodsWrapper"),_t(i,"class","OffersContainer")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(n,o),pt(n,a),pt(n,l),pt(n,c),pt(i,u),pt(i,d),g&&g.m(d,null),pt(d,h),y&&y.m(d,null),m||(p=wt(a,"click",r[64]),m=!0)},p(e,t){2&t[1]&&f!==(f=e[32]("registerUserConsents")+"")&&Et(s,f),134217728&t[0]&&(a.checked=e[27]),"true"===e[2]?g?g.p(e,t):((g=Yn(e)).c(),g.m(d,h)):g&&(g.d(1),g=null),"true"===e[3]?y?y.p(e,t):((y=jn(e)).c(),y.m(d,null)):y&&(y.d(1),y=null)},d(e){e&&gt(i),g&&g.d(),y&&y.d(),m=!1,p()}}}function Yn(r){let i,n,s,o,a,l,c,u,d=r[32]("registerUserConsentsSMS")+"";return{c(){i=yt("label"),n=vt(d),s=bt(),o=yt("input"),a=bt(),l=yt("span"),_t(o,"type","Checkbox"),o.checked=r[28],_t(l,"class","Checkmark"),_t(i,"class","OffersMethod")},m(e,t){ft(e,i,t),pt(i,n),pt(i,s),pt(i,o),pt(i,a),pt(i,l),c||(u=wt(o,"click",r[65]),c=!0)},p(e,t){2&t[1]&&d!==(d=e[32]("registerUserConsentsSMS")+"")&&Et(n,d),268435456&t[0]&&(o.checked=e[28])},d(e){e&&gt(i),c=!1,u()}}}function jn(r){let i,n,s,o,a,l,c,u,d=r[32]("registerUserConsentsEmail")+"";return{c(){i=yt("label"),n=vt(d),s=bt(),o=yt("input"),a=bt(),l=yt("span"),_t(o,"type","Checkbox"),o.checked=r[29],_t(l,"class","Checkmark"),_t(i,"class","OffersMethod")},m(e,t){ft(e,i,t),pt(i,n),pt(i,s),pt(i,o),pt(i,a),pt(i,l),c||(u=wt(o,"click",r[66]),c=!0)},p(e,t){2&t[1]&&d!==(d=e[32]("registerUserConsentsEmail")+"")&&Et(n,d),536870912&t[0]&&(o.checked=e[29])},d(e){e&&gt(i),c=!1,u()}}}function zn(r){let i,n,s,o,a,l,c,u,d,h,m,p=!r[30]&&Gn(r);return{c(){i=yt("div"),n=yt("label"),s=yt("span"),o=bt(),a=yt("input"),l=bt(),c=yt("span"),u=bt(),p&&p.c(),d=it(),_t(a,"type","Checkbox"),a.checked=r[30],_t(c,"class","Checkmark"),_t(n,"class","AgeConsent"),_t(i,"class","AgeContainer")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),s.innerHTML=r[33],pt(n,o),pt(n,a),pt(n,l),pt(n,c),ft(e,u,t),p&&p.m(e,t),ft(e,d,t),h||(m=wt(a,"click",r[67]),h=!0)},p(e,t){1073741824&t[0]&&(a.checked=e[30]),e[30]?p&&(p.d(1),p=null):p?p.p(e,t):((p=Gn(e)).c(),p.m(d.parentNode,d))},d(e){e&&gt(i),e&&gt(u),p&&p.d(e),e&&gt(d),h=!1,m()}}}function Gn(e){let r,i,n,s=e[32]("registerTermsConditionsError")+"";return{c(){r=yt("div"),i=yt("p"),n=vt(s),_t(r,"class","NotificationContainer")},m(e,t){ft(e,r,t),pt(r,i),pt(i,n)},p(e,t){2&t[1]&&s!==(s=e[32]("registerTermsConditionsError")+"")&&Et(n,s)},d(e){e&&gt(r)}}}function Vn(e){let r,i,n;return{c(){r=yt("div"),i=yt("p"),n=vt(e[16]),_t(i,"class","RegisterError")},m(e,t){ft(e,r,t),pt(r,i),pt(i,n)},p(e,t){65536&t[0]&&Et(n,e[16])},d(e){e&&gt(r)}}}function Wn(r){let R,$,o,F,i,n,U,Y,j,z,G,V,W,a,s,l,c,Q,Z,q,K,u,X,e,J,d,h,ee,te,re,ie,m,ne,se,oe,p,f,ae,le,ce,ue,g,de,he,me,y,v,pe,fe,ge,ye,b,ve,be,w,_,we,_e,Ee,Se,E,Ce,xe,S,C,Te,ke,Pe,Me,Oe,x,Be,T,Ae,De,Ne,Ie,Le,He,k,Re,$e,Fe,Ue,Ye,je=r[32]("registerBackButton")+"",ze=r[32]("registerAddress")+"",Ge=r[32]("registerPostalCode")+"",Ve=r[32]("registerCity")+"",We=r[32]("registerCountry")+"",Qe=r[32]("registerNationality")+"",Ze=r[32]("registerMobile")+"",qe=r[32]("registerOpenAccount")+"",P=r[4]&&An(r),M=r[6]&&Dn(r),O=r[7]&&Nn(r),B=r[9]&&In(r),Ke=r[20],A=[];for(let e=0;e<Ke.length;e+=1)A[e]=Ln(Bn(r,Ke,e));let Xe=r[22],D=[];for(let e=0;e<Xe.length;e+=1)D[e]=Hn(On(r,Xe,e));let Je=r[25],N=[];for(let e=0;e<Je.length;e+=1)N[e]=Rn(Mn(r,Je,e));let I=r[8]&&$n(r),L="true"===r[0]&&Fn(r),H=r[15]&&Vn(r);return{c(){P&&P.c(),R=it(),$=bt(),o=yt("div"),F=yt("div"),i=yt("button"),n=t("svg"),U=t("defs"),Y=t("style"),j=vt(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),z=t("path"),G=bt(),V=vt(je),W=bt(),a=yt("form"),s=yt("div"),l=yt("div"),c=yt("label"),Q=vt(ze),Z=vt(":"),(q=yt("span")).textContent="*",K=bt(),u=yt("input"),X=bt(),M&&M.c(),J=bt(),d=yt("div"),h=yt("label"),ee=vt(Ge),te=vt(":"),(re=yt("span")).textContent="*",ie=bt(),m=yt("input"),ne=bt(),O&&O.c(),oe=bt(),p=yt("div"),f=yt("label"),ae=vt(Ve),le=vt(":"),(ce=yt("span")).textContent="*",ue=bt(),g=yt("input"),de=bt(),B&&B.c(),me=bt(),y=yt("div"),v=yt("label"),pe=vt(We),fe=vt(":"),(ge=yt("span")).textContent="*",ye=bt(),b=yt("select");for(let e=0;e<A.length;e+=1)A[e].c();be=bt(),w=yt("div"),_=yt("label"),we=vt(Qe),_e=vt(":"),(Ee=yt("span")).textContent="*",Se=bt(),E=yt("select");for(let e=0;e<D.length;e+=1)D[e].c();xe=bt(),S=yt("div"),C=yt("label"),Te=vt(Ze),ke=vt(":"),(Pe=yt("span")).textContent="*",Me=bt(),Oe=yt("div"),x=yt("select");for(let e=0;e<N.length;e+=1)N[e].c();Be=bt(),T=yt("input"),Ae=bt(),I&&I.c(),Ne=bt(),L&&L.c(),Ie=bt(),Le=yt("div"),He=bt(),k=yt("button"),Re=vt(qe),Fe=bt(),H&&H.c(),this.c=ht,_t(z,"class","a"),_t(z,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),_t(z,"transform","translate(24 24) rotate(180)"),_t(n,"xmlns","http://www.w3.org/2000/svg"),_t(n,"viewBox","0 0 24 24"),_t(i,"class","BackButton"),_t(F,"class","RegisterFormHeader"),_t(q,"class","FormRequired"),_t(c,"for","Address"),_t(u,"type","text"),_t(u,"id","Address"),_t(l,"class",e="AddressContainer "+(r[6]&&!r[10]?"InvalidField":"")+(0<=r[14]?.indexOf("address")?"Hidden":"")),_t(re,"class","FormRequired"),_t(h,"for","PostalCode"),_t(m,"type","text"),_t(m,"id","PostalCode"),_t(d,"class",se="PostalCodeContainer "+(r[7]&&!r[11]?"InvalidField":"")+(0<=r[14]?.indexOf("postalCode")?"Hidden":"")),_t(s,"class","AddressPostalCodeContainer"),_t(ce,"class","FormRequired"),_t(f,"for","City"),_t(g,"type","text"),_t(g,"id","City"),_t(p,"class",he="CityContainer "+(r[9]&&r[13]?"InvalidField":"")+(0<=r[14]?.indexOf("city")?"Hidden":"")),_t(ge,"class","FormRequired"),_t(v,"for","Country"),_t(b,"id","Country"),void 0===r[21]&&tt(()=>r[58].call(b)),_t(y,"class",ve="CountryContainer "+(0<=r[14]?.indexOf("country")?"Hidden":"")),_t(Ee,"class","FormRequired"),_t(_,"for","Nationality"),_t(E,"id","Nationality"),void 0===r[23]&&tt(()=>r[59].call(E)),_t(w,"class",Ce="NationalityContainer "+(0<=r[14]?.indexOf("nationality")?"Hidden":"")),_t(Pe,"class","FormRequired"),_t(C,"for","Mobile"),_t(x,"class","MobilePrefixSelected"),void 0===r[26]&&tt(()=>r[60].call(x)),_t(T,"type","text"),_t(T,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),_t(T,"id","Mobile"),_t(T,"class","MobileInput"),_t(Oe,"class","MobileWrapper"),_t(S,"class",De="MobileContainer "+(r[8]&&!r[12]?"InvalidField":"")+(0<=r[14]?.indexOf("mobile")?"Hidden":"")),_t(Le,"class","g-recaptcha"),_t(Le,"data-sitekey",r[4]),_t(k,"class","RegisterStepNext"),k.disabled=$e=!r[31],_t(a,"class","RegisterFormContent")},m(e,t){P&&P.m(Pn.head,null),pt(Pn.head,R),ft(e,$,t),ft(e,o,t),pt(o,F),pt(F,i),pt(i,n),pt(n,U),pt(U,Y),pt(Y,j),pt(n,z),pt(i,G),pt(i,V),pt(o,W),pt(o,a),pt(a,s),pt(s,l),pt(l,c),pt(c,Q),pt(c,Z),pt(c,q),pt(l,K),pt(l,u),St(u,r[17]),pt(l,X),M&&M.m(l,null),pt(s,J),pt(s,d),pt(d,h),pt(h,ee),pt(h,te),pt(h,re),pt(d,ie),pt(d,m),St(m,r[18]),pt(d,ne),O&&O.m(d,null),pt(a,oe),pt(a,p),pt(p,f),pt(f,ae),pt(f,le),pt(f,ce),pt(p,ue),pt(p,g),St(g,r[19]),pt(p,de),B&&B.m(p,null),pt(a,me),pt(a,y),pt(y,v),pt(v,pe),pt(v,fe),pt(v,ge),pt(y,ye),pt(y,b);for(let e=0;e<A.length;e+=1)A[e]&&A[e].m(b,null);et(b,r[21],!0),pt(a,be),pt(a,w),pt(w,_),pt(_,we),pt(_,_e),pt(_,Ee),pt(w,Se),pt(w,E);for(let e=0;e<D.length;e+=1)D[e]&&D[e].m(E,null);et(E,r[23],!0),pt(a,xe),pt(a,S),pt(S,C),pt(C,Te),pt(C,ke),pt(C,Pe),pt(S,Me),pt(S,Oe),pt(Oe,x);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(x,null);et(x,r[26],!0),pt(Oe,Be),pt(Oe,T),St(T,r[24]),pt(S,Ae),I&&I.m(S,null),pt(a,Ne),L&&L.m(a,null),pt(a,Ie),pt(a,Le),pt(a,He),pt(a,k),pt(k,Re),pt(o,Fe),H&&H.m(o,null),r[69](o),Ue||(Ye=[wt(i,"click",r[41]),wt(u,"input",r[49]),wt(u,"keyup",r[34]),wt(u,"focus",r[50]),wt(u,"blur",r[51]),wt(m,"input",r[52]),wt(m,"keyup",r[35]),wt(m,"focus",r[53]),wt(m,"blur",r[54]),wt(g,"input",r[55]),wt(g,"keyup",r[36]),wt(g,"focus",r[56]),wt(g,"blur",r[57]),wt(b,"change",r[58]),wt(E,"change",r[59]),wt(x,"change",r[60]),wt(T,"input",r[61]),wt(T,"keyup",r[37]),wt(T,"focus",r[62]),wt(T,"blur",r[63]),wt(k,"click",r[68])],Ue=!0)},p(t,r){if(t[4]?P?P.p(t,r):((P=An(t)).c(),P.m(R.parentNode,R)):P&&(P.d(1),P=null),2&r[1]&&je!==(je=t[32]("registerBackButton")+"")&&Et(V,je),2&r[1]&&ze!==(ze=t[32]("registerAddress")+"")&&Et(Q,ze),131072&r[0]&&u.value!==t[17]&&St(u,t[17]),t[6]?M?M.p(t,r):((M=Dn(t)).c(),M.m(l,null)):M&&(M.d(1),M=null),17472&r[0]&&e!==(e="AddressContainer "+(t[6]&&!t[10]?"InvalidField":"")+(0<=t[14]?.indexOf("address")?"Hidden":""))&&_t(l,"class",e),2&r[1]&&Ge!==(Ge=t[32]("registerPostalCode")+"")&&Et(ee,Ge),262144&r[0]&&m.value!==t[18]&&St(m,t[18]),t[7]?O?O.p(t,r):((O=Nn(t)).c(),O.m(d,null)):O&&(O.d(1),O=null),18560&r[0]&&se!==(se="PostalCodeContainer "+(t[7]&&!t[11]?"InvalidField":"")+(0<=t[14]?.indexOf("postalCode")?"Hidden":""))&&_t(d,"class",se),2&r[1]&&Ve!==(Ve=t[32]("registerCity")+"")&&Et(ae,Ve),524288&r[0]&&g.value!==t[19]&&St(g,t[19]),t[9]?B?B.p(t,r):((B=In(t)).c(),B.m(p,null)):B&&(B.d(1),B=null),25088&r[0]&&he!==(he="CityContainer "+(t[9]&&t[13]?"InvalidField":"")+(0<=t[14]?.indexOf("city")?"Hidden":""))&&_t(p,"class",he),2&r[1]&&We!==(We=t[32]("registerCountry")+"")&&Et(pe,We),1048576&r[0]){let e;for(Ke=t[20],e=0;e<Ke.length;e+=1){var i=Bn(t,Ke,e);A[e]?A[e].p(i,r):(A[e]=Ln(i),A[e].c(),A[e].m(b,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=Ke.length}if(3145728&r[0]&&et(b,t[21]),16384&r[0]&&ve!==(ve="CountryContainer "+(0<=t[14]?.indexOf("country")?"Hidden":""))&&_t(y,"class",ve),2&r[1]&&Qe!==(Qe=t[32]("registerNationality")+"")&&Et(we,Qe),4194304&r[0]){let e;for(Xe=t[22],e=0;e<Xe.length;e+=1){var n=On(t,Xe,e);D[e]?D[e].p(n,r):(D[e]=Hn(n),D[e].c(),D[e].m(E,null))}for(;e<D.length;e+=1)D[e].d(1);D.length=Xe.length}if(12582912&r[0]&&et(E,t[23]),16384&r[0]&&Ce!==(Ce="NationalityContainer "+(0<=t[14]?.indexOf("nationality")?"Hidden":""))&&_t(w,"class",Ce),2&r[1]&&Ze!==(Ze=t[32]("registerMobile")+"")&&Et(Te,Ze),33554432&r[0]){let e;for(Je=t[25],e=0;e<Je.length;e+=1){var s=Mn(t,Je,e);N[e]?N[e].p(s,r):(N[e]=Rn(s),N[e].c(),N[e].m(x,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=Je.length}100663296&r[0]&&et(x,t[26]),16777216&r[0]&&T.value!==t[24]&&St(T,t[24]),t[8]?I?I.p(t,r):((I=$n(t)).c(),I.m(S,null)):I&&(I.d(1),I=null),20736&r[0]&&De!==(De="MobileContainer "+(t[8]&&!t[12]?"InvalidField":"")+(0<=t[14]?.indexOf("mobile")?"Hidden":""))&&_t(S,"class",De),"true"===t[0]?L?L.p(t,r):((L=Fn(t)).c(),L.m(a,Ie)):L&&(L.d(1),L=null),16&r[0]&&_t(Le,"data-sitekey",t[4]),2&r[1]&&qe!==(qe=t[32]("registerOpenAccount")+"")&&Et(Re,qe),1&r[1]&&$e!==($e=!t[31])&&(k.disabled=$e),t[15]?H?H.p(t,r):((H=Vn(t)).c(),H.m(o,null)):H&&(H.d(1),H=null)},i:ht,o:ht,d(e){P&&P.d(e),gt(R),e&&gt($),e&&gt(o),M&&M.d(),O&&O.d(),B&&B.d(),rt(A,e),rt(D,e),rt(N,e),I&&I.d(),L&&L.d(),H&&H.d(),r[69](null),Ue=!1,mt(Ye)}}}function Qn(t,e,r){let i;ae(t,Mi,e=>r(32,i=e));let n,s,o,a,l,c,u,{userconsentsexist:d="false"}=e,{termsconditions:h="false"}=e,{smsoffers:L="false"}=e,{emailmarketing:H="false"}=e,{endpoint:m=""}=e,{captchakey:R=""}=e,{lang:p=""}=e,{disabledfields:f=""}=e,{defaultoptions:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{translationurl:b=""}=e,$=!1,F=!1,U=!1,Y=!1,j=!1,z="",w="",_="",E="",S=[],C="",x=[],T="",k="",P=[],M="",O=!1,B=!1,A=!1,D=!1,G=!1;({withLocale:V,translations:W}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(Kr.set(W),oe.set(V))}),Object.keys(kn).forEach(e=>{Tn(e,kn[e])});var V,W,e=i("registerTermsConditions");const N=()=>{r(31,G=!(n||s||a||o||j||"true"===d&&"true"===h&&!D)),(w.length<=0||_.length<=0||E.length<=0||k.length<=0)&&r(31,G=!1)},I=e=>{switch(e){case"GeneralOffers":!1===O?(r(27,O=!0),r(28,B=!0),r(29,A=!0)):(r(27,O=!1),r(28,B=!1),r(29,A=!1));break;case"SmsOffers":!1===B?(r(28,B=!0),r(27,O=!0)):r(28,B=!1),Q();break;case"EmailOffers":!1===A?(r(29,A=!0),r(27,O=!0)):r(29,A=!1),Q()}},Q=()=>{B||A||r(27,O=!1)},Z=()=>{r(30,D=!1===D),N()},q=e=>{e.preventDefault();let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(R,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:w,postalCode:_,city:E,countrySelected:C,nationalitySelected:T,mobilePrefixSelected:M,mobile:k,consentOffersSms:B,consentOffersEmail:A,consentTerms:D,consentOffers:O,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},K=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(17,w=e.data.userData.address1),r(18,_=e.data.userData.postalCode),r(19,E=e.data.userData.city),r(21,C=e.data.userData.country),r(23,T=e.data.userData.nationality),r(26,M=e.data.userData.mobile.prefix),r(24,k=e.data.userData.mobile.number),r(28,B=e.data.userData.userConsents.sms),r(29,A=e.data.userData.userConsents.emailmarketing),r(30,D=e.data.userData.userConsents.termsandconditions),N();break;case"ShowRegistrationError":r(15,j=e.data.showError),r(16,z=e.data.error)}};return le(()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),t.$$set=e=>{"userconsentsexist"in e&&r(0,d=e.userconsentsexist),"termsconditions"in e&&r(1,h=e.termsconditions),"smsoffers"in e&&r(2,L=e.smsoffers),"emailmarketing"in e&&r(3,H=e.emailmarketing),"endpoint"in e&&r(42,m=e.endpoint),"captchakey"in e&&r(4,R=e.captchakey),"lang"in e&&r(43,p=e.lang),"disabledfields"in e&&r(44,f=e.disabledfields),"defaultoptions"in e&&r(45,g=e.defaultoptions),"clientstyling"in e&&r(46,y=e.clientstyling),"clientstylingurl"in e&&r(47,v=e.clientstylingurl),"translationurl"in e&&r(48,b=e.translationurl)},t.$$.update=()=>{if(2048&t.$$.dirty[1]&&m&&fetch(m+"/v1/player/countries").then(e=>e.json()).then(e=>{fetch(m+"/v1/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{r(20,S=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code))),C||r(21,C=S[0].Alpha2Code),r(22,x=e.countries),T||r(23,T=x.filter(e=>0<=t.countries.indexOf(e.Alpha2Code))[0].Alpha2Code)})}),2048&t.$$.dirty[1]&&m&&fetch(m+"/v1/player/phonecodes").then(e=>e.json()).then(e=>{r(25,P=e.phoneCodes),M||r(26,M=P[0].Prefix)}),4096&t.$$.dirty[1]&&p&&(e=p,oe.set(e)),8192&t.$$.dirty[1]&&f&&(r(14,l=f.split(",")),0<=l.indexOf("address")&&(r(6,n=!1),r(17,w="dummy address")),0<=l.indexOf("postalCode")&&(r(7,s=!1),r(18,_="000000")),0<=l.indexOf("mobile")&&(r(8,o=!1),r(24,k="1234123412"),r(26,M="000")),0<=l.indexOf("city")&&(r(9,a=!1),r(19,E="dummy city")),0<=l.indexOf("country")&&r(21,C="dummy country"),0<=l.indexOf("nationality"))&&r(23,T="dummy nationality"),16384&t.$$.dirty[1]&&g&&(0<=(c=g.split(",")).indexOf("consentsTerms")&&r(30,D=!0),0<=c.indexOf("consentsOffers")&&(r(27,O=!0),r(28,B=!0),r(29,A=!0)),c.forEach(e=>{e.includes("phonePrefix")&&r(26,M=e.split(":")[1].toString())})),32&t.$$.dirty[0]|32768&t.$$.dirty[1]&&y&&u&&((e=document.createElement("style")).innerHTML=y,u.appendChild(e)),32&t.$$.dirty[0]|65536&t.$$.dirty[1]&&v&&u){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1),setTimeout(()=>{},500)})}var e;131072&t.$$.dirty[1]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tn(e,t[e])})}).catch(e=>{console.log(e)})},[d,h,L,H,R,u,n,s,o,a,$,F,U,Y,l,j,z,w,_,E,S,C,x,T,k,P,M,O,B,A,D,G,i,e,()=>{r(6,n=!(w&&w.length<=100)),N()},()=>{r(7,s=!(_&&_.length<=20)),N()},()=>{r(9,a=!(E&&E.length<=50)),N()},()=>{r(8,o=!(k&&5<=k.length&&k.length<=12)),N()},I,Z,q,()=>{var e={address:w,postalCode:_,city:E,countrySelected:C,nationalitySelected:T,mobilePrefixSelected:M,mobile:k,consentOffersSms:B,consentOffersEmail:A,consentTerms:D,consentOffers:O};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},m,p,f,g,y,v,b,function(){w=this.value,r(17,w)},()=>r(10,$=!0),()=>r(10,$=!1),function(){_=this.value,r(18,_)},()=>r(11,F=!0),()=>r(11,F=!1),function(){E=this.value,r(19,E)},()=>r(13,Y=!0),()=>r(13,Y=!1),function(){C=X(this),r(21,C),r(20,S)},function(){T=X(this),r(23,T),r(22,x)},function(){M=X(this),r(26,M),r(25,P)},function(){k=this.value,r(24,k)},()=>r(12,U=!0),()=>r(12,U=!1),()=>I("GeneralOffers"),()=>I("SmsOffers"),()=>I("EmailOffers"),()=>Z(),e=>q(e),function(e){se[e?"unshift":"push"](()=>{u=e,r(5,u)})}]}function Zn(e,t){Jr(e,t)}customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent="input,select{font-family:inherit}.BackButton{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius:var(--emw--border-radius-small, 5px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-medium, 15px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.AddressContainer input:focus,.PostalCodeContainer input:focus,.CityContainer input:focus,.CountryContainer select:focus,.NationalityContainer select:focus,.MobileContainer input:focus,.MobileContainer select:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.AddressContainer.Hidden,.PostalCodeContainer.Hidden,.CityContainer.Hidden,.CountryContainer.Hidden,.NationalityContainer.Hidden,.MobileContainer.Hidden{display:none}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:var(--emw--color-secondary, #E1A749)}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5px 0 0 35px;margin-bottom:16px;font-size:var(--emw--font-size-medium, 16px);user-select:none;line-height:18px}.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:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:\"\";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 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:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749));font-size:var(--emw--font-size-small, 14px)}.RegisterError{color:var(--emw--color-error, #ed0909);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},Qn,Wn,E,{userconsentsexist:0,termsconditions:1,smsoffers:2,emailmarketing:3,endpoint:42,captchakey:4,lang:43,disabledfields:44,defaultoptions:45,clientstyling:46,clientstylingurl:47,translationurl:48},null,[-1,-1,-1,-1]),e&&(e.target&&ft(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["userconsentsexist","termsconditions","smsoffers","emailmarketing","endpoint","captchakey","lang","disabledfields","defaultoptions","clientstyling","clientstylingurl","translationurl"]}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(e){this.$$set({userconsentsexist:e}),h()}get termsconditions(){return this.$$.ctx[1]}set termsconditions(e){this.$$set({termsconditions:e}),h()}get smsoffers(){return this.$$.ctx[2]}set smsoffers(e){this.$$set({smsoffers:e}),h()}get emailmarketing(){return this.$$.ctx[3]}set emailmarketing(e){this.$$set({emailmarketing:e}),h()}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$$set({endpoint:e}),h()}get captchakey(){return this.$$.ctx[4]}set captchakey(e){this.$$set({captchakey:e}),h()}get lang(){return this.$$.ctx[43]}set lang(e){this.$$set({lang:e}),h()}get disabledfields(){return this.$$.ctx[44]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[45]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),h()}});const qn={en:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"},"zh-hk":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"},tr:{title:"Please enter the verification code you received on your number",errorTitle:"Kodunuz geçersizdi, kodu tekrar gönderip tekrar deneyebilirsiniz",code:"SMS kodu",smsCodeError:"Geçersiz sms kodu, kodu tekrar gönderebilirsiniz",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Aktif hesap",resend:"Yeniden gönder",loginSMSHint:"Telefon numaranıza yeni bir doğrulama kodu gönderildi"},ro:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"},es:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"},pt:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"},hr:{title:"Unesite verifikacijski kod koji ste primili na svoj broj telefona",errorTitle:"Vaš kod je nevažeći",code:"Sms kod",smsCodeError:"Nevažeći sms kod",resendMessage:"Novi verifkacijski kod poslan je na vaš broj telefona.",activate:"Aktiviraj račun",resend:"Ponovno pošalji",loginSMSHint:"Novi verifkacijski kod poslan je na vaš broj telefona"},"pt-br":{title:"Por favor, insira o código de verificação que você recebeu no seu número de celular",errorTitle:"Código inválido,vôce pode reenviar o código e tentar novamente",code:"Código SMS",smsCodeError:"Código SMS inválido,vôce pode reenviar o código",resendMessage:"Um novo código de verificação foi enviado para o seu número de celular.",activate:"Ativar conta",resend:"Reenviar",loginSMSHint:"Um novo código de verificação foi enviado para o seu número de celular."},"es-mx":{title:"Por favor ingrese el código de verificación que recibió en su número móvil",errorTitle:"Código inválido,Puede enviar el código e intentar de nuevo",code:"Código SMS",smsCodeError:"Código SMS inválido,Puede reenviar el código",resendMessage:"Un nuevo código de verificación ha sido enviado a su número móvil .",activate:"Activar Cuenta",resend:"Reenviar",loginSMSHint:"Un nuevo código de verificación ha sido enviado a su número móvil ."}};function Kn(e){let r,i=e[5]("errorTitle")+"";return{c(){r=vt(i)},m(e,t){ft(e,r,t)},p(e,t){32&t&&i!==(i=e[5]("errorTitle")+"")&&Et(r,i)},d(e){e&&gt(r)}}}function Xn(e){let r,i=e[5]("title")+"";return{c(){r=vt(i)},m(e,t){ft(e,r,t)},p(e,t){32&t&&i!==(i=e[5]("title")+"")&&Et(r,i)},d(e){e&&gt(r)}}}function Jn(e){let r,i,n=e[5]("smsCodeError")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","InvalidInput")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){32&t&&n!==(n=e[5]("smsCodeError")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function es(e){let r,i,n=e[5]("resendMessage")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","SmsVerificationResendMessage")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){32&t&&n!==(n=e[5]("resendMessage")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function ts(e){let r,i,n,s,o,a=e[4]<10?"0":"";return{c(){r=yt("span"),i=vt("(0:"),n=vt(a),s=vt(e[4]),o=vt(")"),_t(r,"class","SmsVerificationResendTimer")},m(e,t){ft(e,r,t),pt(r,i),pt(r,n),pt(r,s),pt(r,o)},p(e,t){16&t&&a!==(a=e[4]<10?"0":"")&&Et(n,a),16&t&&Et(s,e[4])},d(e){e&&gt(r)}}}function rs(r){let i,n,s,o,a,l,c,u,d,h,m,p,f,g,y,v,b,w,_,E,S,C,x=r[5]("code")+"",T=r[5]("activate")+"",k=r[5]("resend")+"";function P(e){return e[2]?Xn:Kn}let M=P(r),O=M(r),B=!r[2]&&Jn(r),A=r[3]&&es(r),D=r[3]&&ts(r);return{c(){i=yt("div"),n=yt("h3"),O.c(),s=bt(),o=yt("div"),a=yt("label"),l=vt(x),c=vt(":"),(u=yt("span")).textContent="*",d=bt(),h=yt("input"),m=bt(),B&&B.c(),f=bt(),A&&A.c(),g=bt(),y=yt("button"),v=vt(T),b=bt(),w=yt("button"),_=vt(k),E=bt(),D&&D.c(),this.c=ht,_t(n,"class","Title"),_t(u,"class","FormRequired"),_t(a,"for","SmsCode"),_t(h,"type","text"),_t(h,"id","SmsCode"),_t(h,"inputmode","numeric"),_t(h,"pattern","[0-9]*"),_t(h,"maxlength","6"),_t(o,"class",p="Field SmsVerificationField "+(r[2]?"":"InvalidField")),_t(y,"class","Button SmsVerificationValidate"),_t(w,"class","Button SmsVerificationResend"),w.disabled=r[3],_t(i,"class","Container SmsVerificationContainer")},m(e,t){ft(e,i,t),pt(i,n),O.m(n,null),pt(i,s),pt(i,o),pt(o,a),pt(a,l),pt(a,c),pt(a,u),pt(o,d),pt(o,h),St(h,r[1]),pt(o,m),B&&B.m(o,null),pt(i,f),A&&A.m(i,null),pt(i,g),pt(i,y),pt(y,v),pt(i,b),pt(i,w),pt(w,_),pt(w,E),D&&D.m(w,null),r[19](i),S||(C=[wt(h,"input",r[17]),wt(h,"keydown",r[18]),wt(y,"click",r[6]),wt(w,"click",r[7])],S=!0)},p(e,[t]){M===(M=P(e))&&O?O.p(e,t):(O.d(1),(O=M(e))&&(O.c(),O.m(n,null))),32&t&&x!==(x=e[5]("code")+"")&&Et(l,x),2&t&&h.value!==e[1]&&St(h,e[1]),e[2]?B&&(B.d(1),B=null):B?B.p(e,t):((B=Jn(e)).c(),B.m(o,null)),4&t&&p!==(p="Field SmsVerificationField "+(e[2]?"":"InvalidField"))&&_t(o,"class",p),e[3]?A?A.p(e,t):((A=es(e)).c(),A.m(i,g)):A&&(A.d(1),A=null),32&t&&T!==(T=e[5]("activate")+"")&&Et(v,T),32&t&&k!==(k=e[5]("resend")+"")&&Et(_,k),e[3]?D?D.p(e,t):((D=ts(e)).c(),D.m(w,null)):D&&(D.d(1),D=null),8&t&&(w.disabled=e[3])},i:ht,o:ht,d(e){e&&gt(i),O.d(),B&&B.d(),A&&A.d(),D&&D.d(),r[19](null),S=!1,mt(C)}}}function is(t,e,r){let i;ae(t,Mi,e=>r(5,i=e));let n,s,o,{endpoint:a=""}=e,{tokenid:l=""}=e,{playerid:c=""}=e,{smstemplate:u="Please use this code {0} to activate your accout"}=e,{number:d=""}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:p=""}=e,f=!0,g=!1,y=+localStorage.getItem("smsTimer")||0,v=Date.now()/1e3-y,b=60-Math.floor(v);const w={numeric:/^[0-9]{0,6}$/};var _,E;({withLocale:_,translations:E}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(Kr.set(E),oe.set(_))}),Object.keys(qn).forEach(e=>{Zn(e,qn[e])});const S=()=>{0<b?r(4,b--,b):(clearInterval(s),r(3,s=!1),r(4,b=60))},C=()=>{v<60&&r(3,s=setInterval(()=>{S()},1e3))},x=e=>{w.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};return le(()=>{var e;c&&d||(e=JSON.parse(localStorage.getItem("playerData")),r(10,c=e.playerid),r(11,d=e.number)),C()}),t.$$set=e=>{"endpoint"in e&&r(12,a=e.endpoint),"tokenid"in e&&r(9,l=e.tokenid),"playerid"in e&&r(10,c=e.playerid),"smstemplate"in e&&r(13,u=e.smstemplate),"number"in e&&r(11,d=e.number),"clientstyling"in e&&r(14,h=e.clientstyling),"clientstylingurl"in e&&r(15,m=e.clientstylingurl),"translationurl"in e&&r(16,p=e.translationurl)},t.$$.update=()=>{if(t.$$.dirty,16385&t.$$.dirty&&h&&o&&((e=document.createElement("style")).innerHTML=h,o.appendChild(e)),32769&t.$$.dirty&&m&&o){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;65536&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Zn(e,t[e])})}).catch(e=>{console.log(e)})},[o,n,f,s,b,i,async()=>{try{if(!(await fetch(`${a}/v1/player/${c}/activateSMS?tokenId=${l}&validationCode=`+n,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),r(2,f=!1),new Error("Could not activate user");r(2,f=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href)}catch(e){console.log(e)}},async()=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),C();try{var e=await fetch(a+"/v1/player/sms/token",{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:c,messageTemplate:u,destination:d})}),t=await e.json();if(!e.ok)throw g=!0,new Error("Failed to fetch");r(9,l=t.id),g=!1,S()}catch(e){g=!0,console.error(e)}},x,l,c,d,a,u,h,m,p,function(){n=this.value,r(1,n)},e=>x(e),function(e){se[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function ns(r){let i,n,s,o,a,l,c,u,d;return{c(){i=yt("div"),n=yt("div"),o=bt(),a=yt("div"),c=bt(),u=yt("div"),_t(n,"class",s="RegisterFirstStepDash "+(r[18]||!r[18]&&r[19]||!r[18]&&!r[19]&&r[20]?"RegisterStepDashColor":"")),_t(a,"class",l="RegisterSecondStepDash "+(r[19]||!r[18]&&!r[19]&&r[20]?"RegisterStepDashColor":"")),_t(u,"class",d="RegisterThirdStepDash "+(r[20]?"RegisterStepDashColor":"")),_t(i,"class","RegisterSteps")},m(e,t){ft(e,i,t),pt(i,n),pt(i,o),pt(i,a),pt(i,c),pt(i,u),r[41](i)},p(e,t){1835008&t[0]&&s!==(s="RegisterFirstStepDash "+(e[18]||!e[18]&&e[19]||!e[18]&&!e[19]&&e[20]?"RegisterStepDashColor":""))&&_t(n,"class",s),1835008&t[0]&&l!==(l="RegisterSecondStepDash "+(e[19]||!e[18]&&!e[19]&&e[20]?"RegisterStepDashColor":""))&&_t(a,"class",l),1048576&t[0]&&d!==(d="RegisterThirdStepDash "+(e[20]?"RegisterStepDashColor":""))&&_t(u,"class",d)},d(e){e&&gt(i),r[41](null)}}}function ss(e){let r,i;return{c(){r=yt("div"),n(i=yt("general-player-register-form-step1"),"lang",e[3]),n(i,"disabledfields",e[5]),n(i,"defaultoptions",e[6]),n(i,"dummydata",e[7]),n(i,"custominputtextswitch",e[14]),n(i,"simplepasswordvalidation",e[9]),n(i,"clientstyling",e[10]),n(i,"clientstylingurl",e[11]),n(i,"savecredentials",e[13]),n(i,"translationurl",e[12]),_t(r,"class","RegisterFormStep1")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){8&t[0]&&n(i,"lang",e[3]),32&t[0]&&n(i,"disabledfields",e[5]),64&t[0]&&n(i,"defaultoptions",e[6]),128&t[0]&&n(i,"dummydata",e[7]),16384&t[0]&&n(i,"custominputtextswitch",e[14]),512&t[0]&&n(i,"simplepasswordvalidation",e[9]),1024&t[0]&&n(i,"clientstyling",e[10]),2048&t[0]&&n(i,"clientstylingurl",e[11]),8192&t[0]&&n(i,"savecredentials",e[13]),4096&t[0]&&n(i,"translationurl",e[12])},d(e){e&&gt(r)}}}function os(e){let r,i;return{c(){r=yt("div"),n(i=yt("general-player-register-form-step2"),"endpoint",e[0]),n(i,"lang",e[3]),n(i,"licenseyears",e[4]),n(i,"disabledfields",e[5]),n(i,"defaultoptions",e[6]),n(i,"dummydata",e[7]),n(i,"personalidlength",e[15]),n(i,"clientstyling",e[10]),n(i,"clientstylingurl",e[11]),n(i,"translationurl",e[12]),_t(r,"class","RegisterFormStep2")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){1&t[0]&&n(i,"endpoint",e[0]),8&t[0]&&n(i,"lang",e[3]),16&t[0]&&n(i,"licenseyears",e[4]),32&t[0]&&n(i,"disabledfields",e[5]),64&t[0]&&n(i,"defaultoptions",e[6]),128&t[0]&&n(i,"dummydata",e[7]),32768&t[0]&&n(i,"personalidlength",e[15]),1024&t[0]&&n(i,"clientstyling",e[10]),2048&t[0]&&n(i,"clientstylingurl",e[11]),4096&t[0]&&n(i,"translationurl",e[12])},d(e){e&&gt(r)}}}function as(e){let r,i;return{c(){r=yt("div"),n(i=yt("general-player-register-form-step3"),"userconsentsexist",e[26]),n(i,"termsconditions",e[27]),n(i,"smsoffers",e[28]),n(i,"emailmarketing",e[29]),n(i,"endpoint",e[0]),n(i,"captchakey",e[2]),n(i,"lang",e[3]),n(i,"defaultoptions",e[6]),n(i,"disabledfields",e[5]),n(i,"dummydata",e[7]),n(i,"clientstyling",e[10]),n(i,"clientstylingurl",e[11]),n(i,"translationurl",e[12]),_t(r,"class","RegisterFormStep3")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){67108864&t[0]&&n(i,"userconsentsexist",e[26]),134217728&t[0]&&n(i,"termsconditions",e[27]),268435456&t[0]&&n(i,"smsoffers",e[28]),536870912&t[0]&&n(i,"emailmarketing",e[29]),1&t[0]&&n(i,"endpoint",e[0]),4&t[0]&&n(i,"captchakey",e[2]),8&t[0]&&n(i,"lang",e[3]),64&t[0]&&n(i,"defaultoptions",e[6]),32&t[0]&&n(i,"disabledfields",e[5]),128&t[0]&&n(i,"dummydata",e[7]),1024&t[0]&&n(i,"clientstyling",e[10]),2048&t[0]&&n(i,"clientstylingurl",e[11]),4096&t[0]&&n(i,"translationurl",e[12])},d(e){e&&gt(r)}}}function ls(e){let r,i,n=e[34]("error")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","SMSErrorText")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){8&t[1]&&n!==(n=e[34]("error")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function cs(e){let r;function i(e){return e[31]?us:ds}let n=i(e),s=n(e);return{c(){s.c(),r=it()},m(e,t){s.m(e,t),ft(e,r,t)},p(e,t){n===(n=i(e))&&s?s.p(e,t):(s.d(1),(s=n(e))&&(s.c(),s.m(r.parentNode,r)))},d(e){s.d(e),e&&gt(r)}}}function us(e){let r,i,n=e[34]("error")+"";return{c(){r=yt("p"),i=vt(n),_t(r,"class","SMSErrorText")},m(e,t){ft(e,r,t),pt(r,i)},p(e,t){8&t[1]&&n!==(n=e[34]("error")+"")&&Et(i,n)},d(e){e&&gt(r)}}}function ds(e){let r;return{c(){n(r=yt("general-player-sms-verification-form"),"endpoint",e[0]),n(r,"session",e[1]),n(r,"number",e[32]),n(r,"playerid",e[17]),n(r,"tokenid",e[30]),n(r,"clientstyling",e[10]),n(r,"clientstylingurl",e[11])},m(e,t){ft(e,r,t)},p(e,t){1&t[0]&&n(r,"endpoint",e[0]),2&t[0]&&n(r,"session",e[1]),2&t[1]&&n(r,"number",e[32]),131072&t[0]&&n(r,"playerid",e[17]),1073741824&t[0]&&n(r,"tokenid",e[30]),1024&t[0]&&n(r,"clientstyling",e[10]),2048&t[0]&&n(r,"clientstylingurl",e[11])},d(e){e&&gt(r)}}}function hs(r){let i,n,s,o,a,l,c,u,d,h,m,p,f,g,y,v,b,w,_,E,S=r[34]("goToLoginButton")+"";return{c(){i=yt("div"),n=t("svg"),s=t("defs"),o=t("style"),a=vt(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"),l=t("path"),c=bt(),u=yt("h2"),d=vt(r[23]),h=bt(),m=yt("p"),p=vt(r[24]),f=bt(),g=yt("p"),y=vt(r[25]),v=bt(),b=yt("button"),w=vt(S),_t(l,"class","a"),_t(l,"d","M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"),_t(n,"xmlns","http://www.w3.org/2000/svg"),_t(n,"viewBox","0 0 73.95 51"),_t(u,"class","RegisterConfirmationTitle"),_t(m,"class","RegisterConfirmationSubtitle"),_t(g,"class","RegisterConfirmationNote"),_t(b,"class","RegisterConfirmationGoToLogin"),_t(i,"class","RegisterConfirmation")},m(e,t){ft(e,i,t),pt(i,n),pt(n,s),pt(s,o),pt(o,a),pt(n,l),pt(i,c),pt(i,u),pt(u,d),pt(i,h),pt(i,m),pt(m,p),pt(i,f),pt(i,g),pt(g,y),pt(i,v),pt(i,b),pt(b,w),_||(E=wt(b,"click",r[36]),_=!0)},p(e,t){8388608&t[0]&&Et(d,e[23]),16777216&t[0]&&Et(p,e[24]),33554432&t[0]&&Et(y,e[25]),8&t[1]&&S!==(S=e[34]("goToLoginButton")+"")&&Et(w,S)},d(e){e&&gt(i),_=!1,E()}}}function ms(r){let i,n=function(e){let r,i,n,s,o,a,l,c=(e[18]||e[19]||e[20])&&ns(e),u=e[18]&&ss(e),d=e[19]&&os(e),h=e[20]&&as(e);function m(e){return e[8]&&e[21]?cs:e[31]?ls:void 0}let p=m(e),f=p&&p(e),g=e[22]&&hs(e);return{c(){r=yt("div"),i=yt("div"),c&&c.c(),n=bt(),u&&u.c(),s=bt(),d&&d.c(),o=bt(),h&&h.c(),a=bt(),f&&f.c(),l=bt(),g&&g.c(),_t(i,"class","RegisterFormContainer "+(e[35]?"RegisterFormContainerMobile":"")),_t(r,"class","RegisterFormWrapper")},m(e,t){ft(e,r,t),pt(r,i),c&&c.m(i,null),pt(i,n),u&&u.m(i,null),pt(i,s),d&&d.m(i,null),pt(i,o),h&&h.m(i,null),pt(i,a),f&&f.m(i,null),pt(i,l),g&&g.m(i,null)},p(e,t){e[18]||e[19]||e[20]?c?c.p(e,t):((c=ns(e)).c(),c.m(i,n)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=ss(e)).c(),u.m(i,s)):u&&(u.d(1),u=null),e[19]?d?d.p(e,t):((d=os(e)).c(),d.m(i,o)):d&&(d.d(1),d=null),e[20]?h?h.p(e,t):((h=as(e)).c(),h.m(i,a)):h&&(h.d(1),h=null),p===(p=m(e))&&f?f.p(e,t):(f&&f.d(1),(f=p&&p(e))&&(f.c(),f.m(i,l))),e[22]?g?g.p(e,t):((g=hs(e)).c(),g.m(i,null)):g&&(g.d(1),g=null)},d(e){e&&gt(r),c&&c.d(),u&&u.d(),d&&d.d(),h&&h.d(),f&&f.d(),g&&g.d()}}}(r);return{c(){i=yt("div"),n.c(),this.c=ht},m(e,t){ft(e,i,t),n.m(i,null),r[42](i)},p(e,t){n.p(e,t)},i:ht,o:ht,d(e){e&&gt(i),n.d(),r[42](null)}}}function ps(r,e,n){let t;ae(r,Mi,e=>n(34,t=e));let i,s,L,o,a,{endpoint:l=""}=e,{cmsendpoint:c=""}=e,{env:u=""}=e,{session:d=""}=e,{trackedanalyticsdata:h=""}=e,{captchakey:m=""}=e,{lang:p="en"}=e,{licenseyears:f=""}=e,{disabledfields:g=""}=e,{defaultoptions:y=""}=e,{dummydata:v=""}=e,{smsverification:b="false"}=e,{simplepasswordvalidation:H="false"}=e,{userroles:w=""}=e,{clientstyling:_=""}=e,{clientstylingurl:E=""}=e,{translationurl:S=""}=e,{savecredentials:R=""}=e,{custominputtextswitch:$="false"}=e,{personalidlength:F="13"}=e,C=[],U=[],Y="",x=!0,T=!1,k=!1,P=!1,M=!1,j=!1,z="",G="",V="",W=window.navigator.userAgent,Q="PC"!==Oi(W),O={},Z=!1,q=!1,B="false",K="false",X="false",J="false",ee="",A=!1;var te,re;({withLocale:te,translations:re}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(Kr.set(re),oe.set(te))}),Object.keys(Ai).forEach(e=>{Bi(e,Ai[e])});const D=()=>{a.scrollIntoView()},N=t=>{let r;return U.forEach(e=>{e.includes(t)&&(r=e.split(":")[1].toString())}),r},I=(e,t)=>{var r;U=y.split(","),"RegisterStepOne"===e&&(O.email=0<=C.indexOf("email")?null!=(r=N("email"))?r:"dummy@dummy.com":t.userEmail,O.username=0<=C.indexOf("username")?null!=(r=N("username"))?r:"dummyUsername":t.userValue,O.password=0<=C.indexOf("password")?null!=(r=N("password"))?r:"dummyPassword01!":t.userPassword,O.securityQuestion=0<=C.indexOf("securityQuestion")?null!=(r=N("securityQuestion"))?r:"dummy question":t.securityQuestion,O.securityAnswer=0<=C.indexOf("securityAnswer")?null!=(r=N("securityAnswer"))?r:"dummy answer":t.securityAnswer,O.promoCode=0<=C.indexOf("promoCode")?null!=(r=N("promoCode"))?r:"":t.promoCode),"RegisterStepTwo"===e&&(O.title=t.userTitleSelected,O.firstname=0<=C.indexOf("firstName")?null!=(r=N("firstName"))?r:"dummy first name":t.userFirstName,O.lastname=0<=C.indexOf("lastName")?null!=(r=N("lastName"))?r:"dummy last name":t.userLastName,0<=C.indexOf("birthDate")?O.birth={day:1,month:1,year:2e3}:(O.birth={},O.birth.day=t.birthDaySelected,O.birth.month=t.birthMonthSelected,O.birth.year=t.birthYearSelected),O.birthPlace=0<=C.indexOf("birthPlace")?null!=(r=N("birthPlace"))?r:"ngenge":t.birthPlace,O.currency=null!=(r=N("currency"))?r:t.currencySelected,0<=(null==C?void 0:C.indexOf("personalId"))||(O.personalId=null!=(r=null!=(r=t.personalId)?r:N("personalId"))?r:"dummy personal id")),"RegisterStepThree"===e&&(O.address1=0<=C.indexOf("address")?null!=(r=N("address"))?r:"dummy address":t.address,O.postalCode=0<=C.indexOf("postalCode")?null!=(e=N("postalCode"))?e:"000000":t.postalCode,O.city=0<=C.indexOf("city")?null!=(r=N("city"))?r:"dummy city":t.city,O.country=0<=C.indexOf("country")?null!=(e=N("country"))?e:"dummy country":t.countrySelected,O.nationality=0<=C.indexOf("nationality")?null!=(r=N("nationality"))?r:"dummy nationality":t.nationalitySelected,0<=C.indexOf("mobile")?O.mobile={prefix:null!=(e=N("phonePrefix"))?e:"0040",number:"1234123412"}:(O.mobile={},O.mobile.prefix=null!=(r=N("phonePrefix"))?r:t.mobilePrefixSelected,O.mobile.number=t.mobile,n(32,o=""+t.mobilePrefixSelected+t.mobile)),O.userConsents={},O.affiliateMarker=O.promoCode||(null!=h?h:""),"true"==B&&(O.userConsents.sms=t.consentOffersSms,O.userConsents.emailmarketing=t.consentOffersEmail,O.userConsents.termsandconditions=t.consentTerms),O.token=t.token)},ie=e=>{if(e.data)switch(e.data.type){case"RegisterStepOne":I("RegisterStepOne",e.data.registerStepOneData),D(),n(18,x=!1),n(19,T=!0),0==Z?Z=!0:window.postMessage({type:"StepTwoDataBackup",userData:O},window.location.href);break;case"RegisterStepTwo":I("RegisterStepTwo",e.data.registerStepTwoData),D(),n(19,T=!1),n(20,k=!0),0==q?q=!0:window.postMessage({type:"StepThreeDataBackup",userData:O},window.location.href);break;case"RegisterStepThree":I("RegisterStepThree",e.data.registerStepThreeData),(async e=>{e.language=p;let t={method:"PUT",headers:{"g-recaptcha-response":e.token,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)},r=await fetch(`${l}/v1/player/register`,t),i=await r.json();r.ok?(n(20,k=!1),"false"===b?n(22,M=!0):(n(17,Y=i.id),ne(e,i.id)),e.username,e.password,"function"==typeof gtag&&gtag("event","Register",{context:"GeneralPlayerRegisterForm"})):(ee=i.error.substring(i.error.indexOf("errorMessage")+13,i.error.length),j=!0,window.postMessage({type:"ShowRegistrationError",showError:j,error:ee},window.location.href))})(O);break;case"SmsHasBeenValidated":n(22,M=!0),n(21,P=!1);break;case"GoBackStepTwo":I("RegisterStepTwo",e.data.registerStepTwoData),D(),n(18,x=!0),n(19,T=!1),window.postMessage({type:"StepOneDataBackup",userData:O},window.location.href);break;case"GoBackStepThree":I("RegisterStepThree",e.data.registerStepThreeData),D(),n(19,T=!0),n(20,k=!1),window.postMessage({type:"StepTwoDataBackup",userData:O},window.location.href)}},ne=async(e,t)=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3)));try{var r=await fetch(l+"/v1/player/sms/token",{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:t,messageTemplate:"Please use this code {0} to activate your account",destination:""+e.mobile.prefix+e.mobile.number})}),i=await r.json();if(!r.ok)throw n(31,A=!0),new Error("Failed to fetch");n(30,L=i.id),i.maxValidationAttempts,n(21,P=!0),n(31,A=!1)}catch(e){n(31,A=!0),console.error(e)}};return le(()=>(window.addEventListener("message",ie,!1),()=>{window.removeEventListener("message",ie)})),r.$$set=e=>{"endpoint"in e&&n(0,l=e.endpoint),"cmsendpoint"in e&&n(37,c=e.cmsendpoint),"env"in e&&n(38,u=e.env),"session"in e&&n(1,d=e.session),"trackedanalyticsdata"in e&&n(39,h=e.trackedanalyticsdata),"captchakey"in e&&n(2,m=e.captchakey),"lang"in e&&n(3,p=e.lang),"licenseyears"in e&&n(4,f=e.licenseyears),"disabledfields"in e&&n(5,g=e.disabledfields),"defaultoptions"in e&&n(6,y=e.defaultoptions),"dummydata"in e&&n(7,v=e.dummydata),"smsverification"in e&&n(8,b=e.smsverification),"simplepasswordvalidation"in e&&n(9,H=e.simplepasswordvalidation),"userroles"in e&&n(40,w=e.userroles),"clientstyling"in e&&n(10,_=e.clientstyling),"clientstylingurl"in e&&n(11,E=e.clientstylingurl),"translationurl"in e&&n(12,S=e.translationurl),"savecredentials"in e&&n(13,R=e.savecredentials),"custominputtextswitch"in e&&n(14,$=e.custominputtextswitch),"personalidlength"in e&&n(15,F=e.personalidlength)},r.$$.update=()=>{if(1&r.$$.dirty[0]&&l&&fetch(l+"/v1/player/consentRequirements").then(e=>e.json()).then(e=>{0<e.items.length?(n(26,B="true"),e.items.forEach(e=>{switch(e.tagCode){case"termsandconditions":n(27,K="true");break;case"sms":n(28,X="true");break;case"emailmarketing":n(29,J="true")}})):n(26,B="false")}),8&r.$$.dirty[0]|704&r.$$.dirty[1]&&c&&p&&u&&w&&(e=new URL(`${c}/${p}/login-register-content?env=`+u),(t=Oi(W))&&("PC"===t?e.searchParams.append("device","dk"):e.searchParams.append("device","mtWeb")),fetch(e.href).then(e=>e.json()).then(e=>{s=e.registerData,n(23,z=s.title),n(24,G=s.subtitle),n(25,V=s.content)}).catch(e=>{console.error(e)})),r.$$.dirty[0],8&r.$$.dirty[0]&&p&&(t=p,oe.set(t)),32&r.$$.dirty[0]&&g&&(C=g.split(",")),66560&r.$$.dirty[0]&&_&&i&&((e=document.createElement("style")).innerHTML=_,i.appendChild(e)),67584&r.$$.dirty[0]&&E&&i){let e=new URL(E),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;4096&r.$$.dirty[0]&&S&&fetch(S).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Bi(e,t[e])})}).catch(e=>{console.log(e)})},[l,d,m,p,f,g,y,v,b,H,_,E,S,R,$,F,i,Y,x,T,k,P,M,z,G,V,B,K,X,J,void 0,A,o,a,t,Q,()=>{window.postMessage({type:"ToLogin"},window.location.href)},c,u,h,w,function(e){se[e?"unshift":"push"](()=>{a=e,n(33,a)})},function(e){se[e?"unshift":"push"](()=>{i=e,n(16,i)})}]}customElements.get("general-player-sms-verification-form")||customElements.define("general-player-sms-verification-form",class extends ${constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;line-height:10px}.Button{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emfe-w-registration-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));color:var(--emfe-w-registration-typography, var(--emfe-w-color-contrast, #07072A))}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},is,rs,E,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},null),e&&(e.target&&ft(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["endpoint","tokenid","playerid","smstemplate","number","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),h()}get tokenid(){return this.$$.ctx[9]}set tokenid(e){this.$$set({tokenid:e}),h()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),h()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(e){this.$$set({smstemplate:e}),h()}get number(){return this.$$.ctx[11]}set number(e){this.$$set({number:e}),h()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),h()}});class fs extends ${constructor(e){super();var t=document.createElement("style");t.textContent=".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));border-radius:15px}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.SMSErrorText{height:80%;display:flex;align-items:center}.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:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:24px;font-weight:var(--emw--font-weight-normal, 400);text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:22px}.RegisterConfirmationGoToLogin{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}",this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},ps,ms,E,{endpoint:0,cmsendpoint:37,env:38,session:1,trackedanalyticsdata:39,captchakey:2,lang:3,licenseyears:4,disabledfields:5,defaultoptions:6,dummydata:7,smsverification:8,simplepasswordvalidation:9,userroles:40,clientstyling:10,clientstylingurl:11,translationurl:12,savecredentials:13,custominputtextswitch:14,personalidlength:15},null,[-1,-1,-1]),e&&(e.target&&ft(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["endpoint","cmsendpoint","env","session","trackedanalyticsdata","captchakey","lang","licenseyears","disabledfields","defaultoptions","dummydata","smsverification","simplepasswordvalidation","userroles","clientstyling","clientstylingurl","translationurl","savecredentials","custominputtextswitch","personalidlength"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),h()}get cmsendpoint(){return this.$$.ctx[37]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),h()}get env(){return this.$$.ctx[38]}set env(e){this.$$set({env:e}),h()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),h()}get trackedanalyticsdata(){return this.$$.ctx[39]}set trackedanalyticsdata(e){this.$$set({trackedanalyticsdata:e}),h()}get captchakey(){return this.$$.ctx[2]}set captchakey(e){this.$$set({captchakey:e}),h()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),h()}get licenseyears(){return this.$$.ctx[4]}set licenseyears(e){this.$$set({licenseyears:e}),h()}get disabledfields(){return this.$$.ctx[5]}set disabledfields(e){this.$$set({disabledfields:e}),h()}get defaultoptions(){return this.$$.ctx[6]}set defaultoptions(e){this.$$set({defaultoptions:e}),h()}get dummydata(){return this.$$.ctx[7]}set dummydata(e){this.$$set({dummydata:e}),h()}get smsverification(){return this.$$.ctx[8]}set smsverification(e){this.$$set({smsverification:e}),h()}get simplepasswordvalidation(){return this.$$.ctx[9]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),h()}get userroles(){return this.$$.ctx[40]}set userroles(e){this.$$set({userroles:e}),h()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),h()}get savecredentials(){return this.$$.ctx[13]}set savecredentials(e){this.$$set({savecredentials:e}),h()}get custominputtextswitch(){return this.$$.ctx[14]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),h()}get personalidlength(){return this.$$.ctx[15]}set personalidlength(e){this.$$set({personalidlength:e}),h()}}return customElements.get("general-player-register-form")||customElements.define("general-player-register-form",fs),fs});
2
2
  //# sourceMappingURL=general-player-register-form.js.map