@everymatrix/general-player-register-form-step3-nd 1.86.3 → 1.86.5
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.
- package/components/GeneralPlayerRegisterFormStep3Nd-BCF6MR_A.cjs +3 -0
- package/components/{GeneralPlayerRegisterFormStep3Nd-DYot0PRn.js → GeneralPlayerRegisterFormStep3Nd-CJT8VX4D.js} +717 -713
- package/components/{GeneralPlayerRegisterFormStep3Nd-Dy5k1QtK.js → GeneralPlayerRegisterFormStep3Nd-LnOS1rex.js} +701 -697
- package/es2015/general-player-register-form-step3-nd.cjs +1 -1
- package/es2015/general-player-register-form-step3-nd.js +1 -1
- package/esnext/general-player-register-form-step3-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerRegisterFormStep3Nd-D_Q4Lvk8.cjs +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralPlayerRegisterFormStep3Nd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralPlayerRegisterFormStep3Nd-BCF6MR_A.cjs")).then(({default:t})=>{!customElements.get("general-player-register-form-step3-nd")&&customElements.define("general-player-register-form-step3-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterFormStep3Nd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterFormStep3Nd-CJT8VX4D.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("general-player-register-form-step3-nd") && customElements.define("general-player-register-form-step3-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";var Yn=Object.defineProperty,Kn=Object.defineProperties;var ei=Object.getOwnPropertyDescriptors;var Ur=Object.getOwnPropertySymbols;var ti=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable;var ar=(e,t,r)=>t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))ti.call(t,r)&&ar(e,r,t[r]);if(Ur)for(var r of Ur(t))ri.call(t,r)&&ar(e,r,t[r]);return e},ur=(e,t)=>Kn(e,ei(t));var be=(e,t,r)=>(ar(e,typeof t!="symbol"?t+"":t,r),r);var Fr=(e,t,r)=>new Promise((n,i)=>{var s=c=>{try{l(r.next(c))}catch(a){i(a)}},o=c=>{try{l(r.throw(c))}catch(a){i(a)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);l((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ce(){}function xn(e){return e()}function Dr(){return Object.create(null)}function gt(e){e.forEach(xn)}function Pr(e){return typeof e=="function"}function An(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let qt;function Gr(e,t){return e===t?!0:(qt||(qt=document.createElement("a")),qt.href=t,e===qt.href)}function ni(e){return Object.keys(e).length===0}function wn(e,...t){if(e==null){for(const n of t)n(void 0);return Ce}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ii(e,t,r){e.$$.on_destroy.push(wn(t,r))}function u(e,t){e.appendChild(t)}function si(e,t,r){const n=oi(e);if(!n.getElementById(t)){const i=b("style");i.id=t,i.textContent=r,ai(n,i)}}function oi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ai(e,t){return u(e.head||e,t),t.sheet}function R(e,t,r){e.insertBefore(t,r||null)}function I(e){e.parentNode&&e.parentNode.removeChild(e)}function cr(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function b(e){return document.createElement(e)}function Zt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function M(e){return document.createTextNode(e)}function T(){return M(" ")}function Or(){return M("")}function k(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function li(e){return Array.from(e.childNodes)}function D(e,t){t=""+t,e.data!==t&&(e.data=t)}function ce(e,t){e.value=t==null?"":t}function st(e,t,r){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===t){i.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function hr(e){const t=e.querySelector(":checked");return t&&t.__value}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Mt;function Ot(e){Mt=e}function ci(){if(!Mt)throw new Error("Function called outside component initialization");return Mt}function hi(e){ci().$$.on_mount.push(e)}const ut=[],_r=[];let ct=[];const jr=[],fi=Promise.resolve();let vr=!1;function di(){vr||(vr=!0,fi.then(K))}function ht(e){ct.push(e)}const fr=new Set;let ot=0;function K(){if(ot!==0)return;const e=Mt;do{try{for(;ot<ut.length;){const t=ut[ot];ot++,Ot(t),mi(t.$$)}}catch(t){throw ut.length=0,ot=0,t}for(Ot(null),ut.length=0,ot=0;_r.length;)_r.pop()();for(let t=0;t<ct.length;t+=1){const r=ct[t];fr.has(r)||(fr.add(r),r())}ct.length=0}while(ut.length);for(;jr.length;)jr.pop()();vr=!1,fr.clear(),Ot(e)}function mi(e){if(e.fragment!==null){e.update(),gt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ht)}}function pi(e){const t=[],r=[];ct.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ct=t}const gi=new Set;function bi(e,t){e&&e.i&&(gi.delete(e),e.i(t))}function at(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function yi(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),ht(()=>{const s=e.$$.on_mount.map(xn).filter(Pr);e.$$.on_destroy?e.$$.on_destroy.push(...s):gt(s),e.$$.on_mount=[]}),i.forEach(ht)}function _i(e,t){const r=e.$$;r.fragment!==null&&(pi(r.after_update),gt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function vi(e,t){e.$$.dirty[0]===-1&&(ut.push(e),di(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ei(e,t,r,n,i,s,o=null,l=[-1]){const c=Mt;Ot(e);const a=e.$$={fragment:null,ctx:[],props:s,update:Ce,not_equal:i,bound:Dr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Dr(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};o&&o(a.root);let h=!1;if(a.ctx=r?r(e,t.props||{},(d,m,...v)=>{const _=v.length?v[0]:m;return a.ctx&&i(a.ctx[d],a.ctx[d]=_)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](_),h&&vi(e,d)),m}):[],a.update(),h=!0,gt(a.before_update),a.fragment=n?n(a.ctx):!1,t.target){if(t.hydrate){const d=li(t.target);a.fragment&&a.fragment.l(d),d.forEach(I)}else a.fragment&&a.fragment.c();t.intro&&bi(e.$$.fragment),yi(e,t.target,t.anchor),K()}Ot(c)}let Tn;typeof HTMLElement=="function"&&(Tn=class extends HTMLElement{constructor(t,r,n){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Fr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=b("slot"),s!=="default"&&p(o,"name",s)},m:function(a,h){R(a,o,h)},d:function(a){a&&I(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ui(this);for(const s of this.$$s)s in n&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Qt(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ur(lr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Qt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const l=this.$$c.$on(s,o);this.$$l_u.set(o,l)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Qt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Qt(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ci(e,t,r,n,i,s){let o=class extends Tn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){var a;c=Qt(l,c,t),this.$$d[l]=c,(a=this.$$c)==null||a.$set({[l]:c})}})}),n.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var c;return(c=this.$$c)==null?void 0:c[l]}})}),e.element=o,o}class xi{constructor(){be(this,"$$");be(this,"$$set")}$destroy(){_i(this,1),this.$destroy=Ce}$on(t,r){if(!Pr(r))return Ce;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ni(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ai="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ai);const lt=[];function wi(e,t){return{subscribe:tr(e,t).subscribe}}function tr(e,t=Ce){let r;const n=new Set;function i(l){if(An(e,l)&&(e=l,r)){const c=!lt.length;for(const a of n)a[1](),lt.push(a,e);if(c){for(let a=0;a<lt.length;a+=2)lt[a][0](lt[a+1]);lt.length=0}}}function s(l){i(l(e))}function o(l,c=Ce){const a=[l,c];return n.add(a),n.size===1&&(r=t(i,s)||Ce),l(e),()=>{n.delete(a),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function bt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return wi(r,(o,l)=>{let c=!1;const a=[];let h=0,d=Ce;const m=()=>{if(h)return;d();const _=t(n?a[0]:a,o,l);s?o(_):d=Pr(_)?_:Ce},v=i.map((_,E)=>wn(_,O=>{a[E]=O,h&=~(1<<E),c&&m()},()=>{h|=1<<E}));return c=!0,m(),function(){gt(v),d(),c=!1}})}function Ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Si=function(t){return Hi(t)&&!Bi(t)};function Hi(e){return!!e&&typeof e=="object"}function Bi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mi(e)}var Pi=typeof Symbol=="function"&&Symbol.for,Oi=Pi?Symbol.for("react.element"):60103;function Mi(e){return e.$$typeof===Oi}function Ni(e){return Array.isArray(e)?[]:{}}function Nt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ft(Ni(e),e,t):e}function ki(e,t,r){return e.concat(t).map(function(n){return Nt(n,r)})}function Ii(e,t){if(!t.customMerge)return ft;var r=t.customMerge(e);return typeof r=="function"?r:ft}function Li(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zr(e){return Object.keys(e).concat(Li(e))}function Sn(e,t){try{return t in e}catch(r){return!1}}function Ri(e,t){return Sn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ui(e,t,r){var n={};return r.isMergeableObject(e)&&zr(e).forEach(function(i){n[i]=Nt(e[i],r)}),zr(t).forEach(function(i){Ri(e,i)||(Sn(e,i)&&r.isMergeableObject(t[i])?n[i]=Ii(i,r)(e[i],t[i],r):n[i]=Nt(t[i],r))}),n}function ft(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ki,r.isMergeableObject=r.isMergeableObject||Si,r.cloneUnlessOtherwiseSpecified=Nt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Ui(e,t,r):Nt(t,r)}ft.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ft(n,i,r)},{})};var Fi=ft,Di=Fi;const Gi=Ti(Di);/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var Er=function(e,t){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Er(e,t)};function rr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Er(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var P=function(){return P=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},P.apply(this,arguments)};function ji(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function dr(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||t)}function mr(e,t){var r=t&&t.cache?t.cache:Zi,n=t&&t.serializer?t.serializer:qi,i=t&&t.strategy?t.strategy:Vi;return i(e,{cache:r,serializer:n})}function zi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Hn(e,t,r,n){var i=zi(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Bn(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Mr(e,t,r,n,i){return r.bind(t,e,n,i)}function Vi(e,t){var r=e.length===1?Hn:Bn;return Mr(e,this,r,t.cache.create(),t.serializer)}function Xi(e,t){return Mr(e,this,Bn,t.cache.create(),t.serializer)}function Wi(e,t){return Mr(e,this,Hn,t.cache.create(),t.serializer)}var qi=function(){return JSON.stringify(arguments)};function Nr(){this.cache=Object.create(null)}Nr.prototype.get=function(e){return this.cache[e]};Nr.prototype.set=function(e,t){this.cache[e]=t};var Zi={create:function(){return new Nr}},pr={variadic:Xi,monadic:Wi},w;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(w||(w={}));var L;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(L||(L={}));var dt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(dt||(dt={}));function Vr(e){return e.type===L.literal}function $i(e){return e.type===L.argument}function Pn(e){return e.type===L.number}function On(e){return e.type===L.date}function Mn(e){return e.type===L.time}function Nn(e){return e.type===L.select}function kn(e){return e.type===L.plural}function Qi(e){return e.type===L.pound}function In(e){return e.type===L.tag}function Ln(e){return!!(e&&typeof e=="object"&&e.type===dt.number)}function Cr(e){return!!(e&&typeof e=="object"&&e.type===dt.dateTime)}var Rn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ji=/(?:[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;function Yi(e){var t={};return e.replace(Ji,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"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":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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""}),t}var Ki=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function es(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ki).filter(function(m){return m.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],c=o.slice(1),a=0,h=c;a<h.length;a++){var d=h[a];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:c})}return r}function ts(e){return e.replace(/^(.*?)-/,"")}var Xr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Un=/^(@+)?(\+|#+)?[rs]?$/g,rs=/(\*)(0+)|(#+)(0+)|(0+)/g,Fn=/^(0+)$/;function Wr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Un,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Dn(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 ns(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(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)),!Fn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function qr(e){var t={},r=Dn(e);return r||t}function is(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ts(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=P(P(P({},t),{notation:"scientific"}),i.options.reduce(function(c,a){return P(P({},c),qr(a))},{}));continue;case"engineering":t=P(P(P({},t),{notation:"engineering"}),i.options.reduce(function(c,a){return P(P({},c),qr(a))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(rs,function(c,a,h,d,m,v){if(a)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xr,function(c,a,h,d,m,v){return h==="*"?t.minimumFractionDigits=a.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&v?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+v.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""});var s=i.options[0];s==="w"?t=P(P({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=P(P({},t),Wr(s)));continue}if(Un.test(i.stem)){t=P(P({},t),Wr(i.stem));continue}var o=Dn(i.stem);o&&(t=P(P({},t),o));var l=ns(i.stem);l&&(t=P(P({},t),l))}return t}var $t={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ss(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),l=s<2?1:3+(s>>1),c="a",a=os(t);for((a=="H"||a=="k")&&(l=0);l-- >0;)r+=c;for(;o-- >0;)r=a+r}else i==="J"?r+="H":r+=i}return r}function os(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=$t[n||""]||$t[r||""]||$t["".concat(r,"-001")]||$t["001"];return i[0]}var gr,as=new RegExp("^".concat(Rn.source,"*")),ls=new RegExp("".concat(Rn.source,"*$"));function H(e,t){return{start:e,end:t}}var us=!!String.prototype.startsWith&&"_a".startsWith("a",1),cs=!!String.fromCodePoint,hs=!!Object.fromEntries,fs=!!String.prototype.codePointAt,ds=!!String.prototype.trimStart,ms=!!String.prototype.trimEnd,ps=!!Number.isSafeInteger,gs=ps?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xr=!0;try{var bs=jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xr=((gr=bs.exec("a"))===null||gr===void 0?void 0:gr[0])==="a"}catch(e){xr=!1}var Zr=us?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ar=cs?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},$r=hs?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],l=s[1];r[o]=l}return r},Gn=fs?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},ys=ds?function(t){return t.trimStart()}:function(t){return t.replace(as,"")},_s=ms?function(t){return t.trimEnd()}:function(t){return t.replace(ls,"")};function jn(e,t){return new RegExp(e,t)}var wr;if(xr){var Qr=jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wr=function(t,r){var n;Qr.lastIndex=r;var i=Qr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else wr=function(t,r){for(var n=[];;){var i=Gn(t,r);if(i===void 0||zn(i)||xs(i))break;n.push(i),r+=i>=65536?2:1}return Ar.apply(void 0,n)};var vs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:L.pound,location:H(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(w.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Tr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(i,"/>"),location:H(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tr(this.char()))return this.error(w.INVALID_TAG,H(l,this.clonePosition()));var c=this.clonePosition(),a=this.parseTagName();return i!==a?this.error(w.UNMATCHED_CLOSING_TAG,H(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:i,children:o,location:H(n,this.clonePosition())},err:null}:this.error(w.INVALID_TAG,H(l,this.clonePosition())))}else return this.error(w.UNCLOSED_TAG,H(n,this.clonePosition()))}else return this.error(w.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Cs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=H(n,this.clonePosition());return{val:{type:L.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Es(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ar.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ar(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(w.EMPTY_ARGUMENT,H(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(w.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(w.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=wr(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=H(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(w.EXPECT_ARGUMENT_TYPE,H(o,c));case"number":case"date":case"time":{this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=_s(d.val);if(m.length===0)return this.error(w.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var v=H(h,this.clonePosition());a={style:m,styleLocation:v}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var E=H(i,this.clonePosition());if(a&&Zr(a==null?void 0:a.style,"::",0)){var O=ys(a.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(O,a.styleLocation);return d.err?d:{val:{type:L.number,value:n,location:E,style:d.val},err:null}}else{if(O.length===0)return this.error(w.EXPECT_DATE_TIME_SKELETON,E);var S=O;this.locale&&(S=ss(O,this.locale));var m={type:dt.dateTime,pattern:S,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?Yi(S):{}},z=l==="date"?L.date:L.time;return{val:{type:z,value:n,location:E,style:m},err:null}}}return{val:{type:l==="number"?L.number:l==="date"?L.date:L.time,value:n,location:E,style:(s=a==null?void 0:a.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var N=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS,H(N,P({},N)));this.bumpSpace();var V=this.parseIdentifierIfPossible(),X=0;if(l!=="select"&&V.value==="offset"){if(!this.bumpIf(":"))return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),V=this.parseIdentifierIfPossible(),X=d.val}var me=this.tryParsePluralOrSelectOptions(t,l,r,V);if(me.err)return me;var _=this.tryParseArgumentClose(i);if(_.err)return _;var we=H(i,this.clonePosition());return l==="select"?{val:{type:L.select,value:n,options:$r(me.val),location:we},err:null}:{val:{type:L.plural,value:n,options:$r(me.val),offset:X,pluralType:l==="plural"?"cardinal":"ordinal",location:we},err:null}}default:return this.error(w.INVALID_ARGUMENT_TYPE,H(o,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=es(t)}catch(i){return this.error(w.INVALID_NUMBER_SKELETON,r)}return{val:{type:dt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?is(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,l=[],c=new Set,a=i.value,h=i.location;;){if(a.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR,w.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=H(d,this.clonePosition()),a=this.message.slice(d.offset,this.offset())}else break}if(c.has(a))return this.error(r==="select"?w.DUPLICATE_SELECT_ARGUMENT_SELECTOR:w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);a==="other"&&(o=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var E=this.tryParseArgumentClose(v);if(E.err)return E;l.push([a,{value:_.val,location:H(v,this.clonePosition())}]),c.add(a),this.bumpSpace(),s=this.parseIdentifierIfPossible(),a=s.value,h=s.location}return l.length===0?this.error(r==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR:w.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(w.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,o=o*10+(l-48),this.bump();else break}var c=H(i,this.clonePosition());return s?(o*=n,gs(o)?{val:o,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Gn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Zr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&zn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Tr(e){return e>=97&&e<=122||e>=65&&e<=90}function Es(e){return Tr(e)||e===47}function Cs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function zn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function xs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Sr(e){e.forEach(function(t){if(delete t.location,Nn(t)||kn(t))for(var r in t.options)delete t.options[r].location,Sr(t.options[r].value);else Pn(t)&&Ln(t.style)||(On(t)||Mn(t))&&Cr(t.style)?delete t.style.location:In(t)&&Sr(t.children)})}function As(e,t){t===void 0&&(t={}),t=P({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new vs(e,t).parse();if(r.err){var n=SyntaxError(w[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Sr(r.val),r.val}var mt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(mt||(mt={}));var nr=function(e){rr(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Jr=function(e){rr(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),mt.INVALID_VALUE,s)||this}return t}(nr),ws=function(e){rr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),mt.INVALID_VALUE,i)||this}return t}(nr),Ts=function(e){rr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),mt.MISSING_VALUE,n)||this}return t}(nr),ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ee||(ee={}));function Ss(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ee.literal||r.type!==ee.literal?t.push(r):n.value+=r.value,t},[])}function Hs(e){return typeof e=="function"}function Jt(e,t,r,n,i,s,o){if(e.length===1&&Vr(e[0]))return[{type:ee.literal,value:e[0].value}];for(var l=[],c=0,a=e;c<a.length;c++){var h=a[c];if(Vr(h)){l.push({type:ee.literal,value:h.value});continue}if(Qi(h)){typeof s=="number"&&l.push({type:ee.literal,value:r.getNumberFormat(t).format(s)});continue}var d=h.value;if(!(i&&d in i))throw new Ts(d,o);var m=i[d];if($i(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),l.push({type:typeof m=="string"?ee.literal:ee.object,value:m});continue}if(On(h)){var v=typeof h.style=="string"?n.date[h.style]:Cr(h.style)?h.style.parsedOptions:void 0;l.push({type:ee.literal,value:r.getDateTimeFormat(t,v).format(m)});continue}if(Mn(h)){var v=typeof h.style=="string"?n.time[h.style]:Cr(h.style)?h.style.parsedOptions:n.time.medium;l.push({type:ee.literal,value:r.getDateTimeFormat(t,v).format(m)});continue}if(Pn(h)){var v=typeof h.style=="string"?n.number[h.style]:Ln(h.style)?h.style.parsedOptions:void 0;v&&v.scale&&(m=m*(v.scale||1)),l.push({type:ee.literal,value:r.getNumberFormat(t,v).format(m)});continue}if(In(h)){var _=h.children,E=h.value,O=i[E];if(!Hs(O))throw new ws(E,"function",o);var S=Jt(_,t,r,n,i,s),z=O(S.map(function(X){return X.value}));Array.isArray(z)||(z=[z]),l.push.apply(l,z.map(function(X){return{type:typeof X=="string"?ee.literal:ee.object,value:X}}))}if(Nn(h)){var N=h.options[m]||h.options.other;if(!N)throw new Jr(h.value,m,Object.keys(h.options),o);l.push.apply(l,Jt(N.value,t,r,n,i));continue}if(kn(h)){var N=h.options["=".concat(m)];if(!N){if(!Intl.PluralRules)throw new nr(`Intl.PluralRules is not available in this environment.
|
|
15
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
16
|
-
`,mt.MISSING_INTL_API,o);var V=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));N=h.options[V]||h.options.other}if(!N)throw new Jr(h.value,m,Object.keys(h.options),o);l.push.apply(l,Jt(N.value,t,r,n,i,m-(h.offset||0)));continue}}return Ss(l)}function Bs(e,t){return t?P(P(P({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=P(P({},e[n]),t[n]||{}),r},{})):e}function Ps(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Bs(e[n],t[n]),r},P({},e)):e}function br(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Os(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,dr([void 0],r,!1)))},{cache:br(e.number),strategy:pr.variadic}),getDateTimeFormat:mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,dr([void 0],r,!1)))},{cache:br(e.dateTime),strategy:pr.variadic}),getPluralRules:mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,dr([void 0],r,!1)))},{cache:br(e.pluralRules),strategy:pr.variadic})}}var Ms=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var a=s.formatToParts(c);if(a.length===1)return a[0].value;var h=a.reduce(function(d,m){return!d.length||m.type!==ee.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return Jt(s.ast,s.locales,s.formatters,s.formats,c,void 0,s.message)},this.resolvedOptions=function(){var c;return{locale:((c=s.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var l=ji(o,["formatters"]);this.ast=e.__parse(t,P(P({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ps(e.formats,n),this.formatters=i&&i.formatters||Os(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=As,e.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"}}},e}();function Ns(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Le={},ks=(e,t,r)=>r&&(t in Le||(Le[t]={}),e in Le[t]||(Le[t][e]=r),r),Vn=(e,t)=>{if(t==null)return;if(t in Le&&e in Le[t])return Le[t][e];const r=ir(t);for(let n=0;n<r.length;n++){const i=r[n],s=Ls(i,e);if(s)return ks(e,t,s)}};let kr;const yt=tr({});function Is(e){return kr[e]||null}function Xn(e){return e in kr}function Ls(e,t){if(!Xn(e))return null;const r=Is(e);return Ns(r,t)}function Rs(e){if(e==null)return;const t=ir(e);for(let r=0;r<t.length;r++){const n=t[r];if(Xn(n))return n}}function Wn(e,...t){delete Le[e],yt.update(r=>(r[e]=Gi.all([r[e]||{},...t]),r))}bt([yt],([e])=>Object.keys(e));yt.subscribe(e=>kr=e);const Yt={};function Us(e,t){Yt[e].delete(t),Yt[e].size===0&&delete Yt[e]}function qn(e){return Yt[e]}function Fs(e){return ir(e).map(t=>{const r=qn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Hr(e){return e==null?!1:ir(e).some(t=>{var r;return(r=qn(t))==null?void 0:r.size})}function Ds(e,t){return Promise.all(t.map(n=>(Us(e,n),n().then(i=>i.default||i)))).then(n=>Wn(e,...n))}const Pt={};function Zn(e){if(!Hr(e))return e in Pt?Pt[e]:Promise.resolve();const t=Fs(e);return Pt[e]=Promise.all(t.map(([r,n])=>Ds(r,n))).then(()=>{if(Hr(e))return Zn(e);delete Pt[e]}),Pt[e]}const Gs={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"}}},js={fallbackLocale:null,loadingDelay:200,formats:Gs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},zs=js;function pt(){return zs}const yr=tr(!1);var Vs=Object.defineProperty,Xs=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,Zs=Object.prototype.propertyIsEnumerable,Kr=(e,t,r)=>t in e?Vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$s=(e,t)=>{for(var r in t||(t={}))qs.call(t,r)&&Kr(e,r,t[r]);if(Yr)for(var r of Yr(t))Zs.call(t,r)&&Kr(e,r,t[r]);return e},Qs=(e,t)=>Xs(e,Ws(t));let Br;const Kt=tr(null);function en(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ir(e,t=pt().fallbackLocale){const r=en(e);return t?[...new Set([...r,...en(t)])]:r}function Ve(){return Br!=null?Br:void 0}Kt.subscribe(e=>{Br=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Js=e=>{if(e&&Rs(e)&&Hr(e)){const{loadingDelay:t}=pt();let r;return typeof window!="undefined"&&Ve()!=null&&t?r=window.setTimeout(()=>yr.set(!0),t):yr.set(!0),Zn(e).then(()=>{Kt.set(e)}).finally(()=>{clearTimeout(r),yr.set(!1)})}return Kt.set(e)},Re=Qs($s({},Kt),{set:Js}),sr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Ys=Object.defineProperty,er=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,tn=(e,t,r)=>t in e?Ys(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ir=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&tn(e,r,t[r]);if(er)for(var r of er(t))Qn.call(t,r)&&tn(e,r,t[r]);return e},_t=(e,t)=>{var r={};for(var n in e)$n.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&er)for(var n of er(e))t.indexOf(n)<0&&Qn.call(e,n)&&(r[n]=e[n]);return r};const kt=(e,t)=>{const{formats:r}=pt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ks=sr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=kt("number",n)),new Intl.NumberFormat(r,i)}),eo=sr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=kt("date",n):Object.keys(i).length===0&&(i=kt("date","short")),new Intl.DateTimeFormat(r,i)}),to=sr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=kt("time",n):Object.keys(i).length===0&&(i=kt("time","short")),new Intl.DateTimeFormat(r,i)}),ro=(e={})=>{var t=e,{locale:r=Ve()}=t,n=_t(t,["locale"]);return Ks(Ir({locale:r},n))},no=(e={})=>{var t=e,{locale:r=Ve()}=t,n=_t(t,["locale"]);return eo(Ir({locale:r},n))},io=(e={})=>{var t=e,{locale:r=Ve()}=t,n=_t(t,["locale"]);return to(Ir({locale:r},n))},so=sr((e,t=Ve())=>new Ms(e,t,pt().formats,{ignoreTag:pt().ignoreTag})),oo=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:c=Ve(),default:a}=o;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Vn(e,c);if(!h)h=(s=(i=(n=(r=pt()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:a}))!=null?i:a)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!l)return h;let d=h;try{d=so(h,c).format(l)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return d},ao=(e,t)=>io(t).format(e),lo=(e,t)=>no(t).format(e),uo=(e,t)=>ro(t).format(e),co=(e,t=Ve())=>Vn(e,t),ho=bt([Re,yt],()=>oo);bt([Re],()=>ao);bt([Re],()=>lo);bt([Re],()=>uo);bt([Re,yt],()=>co);function fo({withLocale:e,translations:t}){Re.subscribe(r=>{r==null&&(yt.set(t),Re.set(e))})}function rn(e,t){Wn(e,t)}function mo(e){Re.set(e)}const nn={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"}};function po(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function go(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function bo(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function yo(e){si(e,"svelte-1b2qzhz",`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,.AddressContainer select,.PostalCodeContainer input,.PostalCodeContainer select,.CityContainer input,.CityContainer select,.CountryContainer input,.CountryContainer select,.NationalityContainer input,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--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,.AddressContainer select:focus,.PostalCodeContainer input:focus,.PostalCodeContainer select:focus,.CityContainer input:focus,.CityContainer select:focus,.CountryContainer input:focus,.CountryContainer select:focus,.NationalityContainer input: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,.CountryContainer.InvalidField input,.NationalityContainer.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%}.grecaptcha-badge{opacity:0}.FormRequired{color:var(--emw--color-secondary, #E1A749)}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.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 label,.OffersMethod label,.AgeConsent label{font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.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, 10px);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-100, #E6E6E6);cursor:not-allowed}`)}function sn(e,t,r){const n=e.slice();return n[87]=t[r],n}function on(e,t,r){const n=e.slice();return n[90]=t[r],n}function an(e,t,r){const n=e.slice();return n[93]=t[r],n}function ln(e){let t,r;return{c(){t=b("script"),Gr(t.src,r="//www.google.com/recaptcha/api.js?render="+e[4])||p(t,"src",r),t.async=!0,t.defer=!0},m(n,i){R(n,t,i)},p(n,i){i[0]&16&&!Gr(t.src,r="//www.google.com/recaptcha/api.js?render="+n[4])&&p(t,"src",r)},d(n){n&&I(t)}}}function un(e){let t,r=e[31]("registerAddressError")+"",n;return{c(){t=b("p"),n=M(r),p(t,"class","InvalidInput")},m(i,s){R(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerAddressError")+"")&&D(n,r)},d(i){i&&I(t)}}}function cn(e){let t,r=e[31]("registerPostalCodeError")+"",n;return{c(){t=b("p"),n=M(r),p(t,"class","InvalidInput")},m(i,s){R(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerPostalCodeError")+"")&&D(n,r)},d(i){i&&I(t)}}}function hn(e){let t,r=e[31]("registerCityError")+"",n;return{c(){t=b("p"),n=M(r),p(t,"class","InvalidInput")},m(i,s){R(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerCityError")+"")&&D(n,r)},d(i){i&&I(t)}}}function fn(e){let t,r=e[93].Name+"",n,i;return{c(){t=b("option"),n=M(r),t.__value=i=e[93].Alpha2Code,ce(t,t.__value)},m(s,o){R(s,t,o),u(t,n)},p(s,o){o[0]&1048576&&r!==(r=s[93].Name+"")&&D(n,r),o[0]&1048576&&i!==(i=s[93].Alpha2Code)&&(t.__value=i,ce(t,t.__value))},d(s){s&&I(t)}}}function dn(e){let t,r=e[90].Name+"",n,i;return{c(){t=b("option"),n=M(r),t.__value=i=e[90].Alpha2Code,ce(t,t.__value)},m(s,o){R(s,t,o),u(t,n)},p(s,o){o[0]&4194304&&r!==(r=s[90].Name+"")&&D(n,r),o[0]&4194304&&i!==(i=s[90].Alpha2Code)&&(t.__value=i,ce(t,t.__value))},d(s){s&&I(t)}}}function mn(e){let t,r=e[87].Prefix+"",n,i;return{c(){t=b("option"),n=M(r),t.__value=i=e[87].Prefix,ce(t,t.__value)},m(s,o){R(s,t,o),u(t,n)},p(s,o){o[0]&33554432&&r!==(r=s[87].Prefix+"")&&D(n,r),o[0]&33554432&&i!==(i=s[87].Prefix)&&(t.__value=i,ce(t,t.__value))},d(s){s&&I(t)}}}function pn(e){let t,r=e[31]("registerMobileError")+"",n;return{c(){t=b("p"),n=M(r),p(t,"class","InvalidInput")},m(i,s){R(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerMobileError")+"")&&D(n,r)},d(i){i&&I(t)}}}function gn(e){let t,r,n=(e[2]==="true"||e[3]==="true")&&bn(e),i=e[1]==="true"&&vn(e);return{c(){n&&n.c(),t=T(),i&&i.c(),r=Or()},m(s,o){n&&n.m(s,o),R(s,t,o),i&&i.m(s,o),R(s,r,o)},p(s,o){s[2]==="true"||s[3]==="true"?n?n.p(s,o):(n=bn(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[1]==="true"?i?i.p(s,o):(i=vn(s),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},d(s){s&&(I(t),I(r)),n&&n.d(s),i&&i.d(s)}}}function bn(e){let t,r,n=e[31]("registerUserConsents")+"",i,s,o,l,c,a,h,d,m,v,_=e[2]==="true"&&yn(e),E=e[3]==="true"&&_n(e);return{c(){t=b("div"),r=b("label"),i=M(n),s=T(),o=b("input"),l=T(),c=b("span"),a=T(),h=b("div"),_&&_.c(),d=T(),E&&E.c(),p(o,"type","Checkbox"),o.checked=e[27],p(c,"class","Checkmark"),p(r,"class","Offers"),p(h,"class","OffersMethodsWrapper"),p(t,"class","OffersContainer")},m(O,S){R(O,t,S),u(t,r),u(r,i),u(r,s),u(r,o),u(r,l),u(r,c),u(t,a),u(t,h),_&&_.m(h,null),u(h,d),E&&E.m(h,null),m||(v=k(o,"click",e[64]),m=!0)},p(O,S){S[1]&1&&n!==(n=O[31]("registerUserConsents")+"")&&D(i,n),S[0]&134217728&&(o.checked=O[27]),O[2]==="true"?_?_.p(O,S):(_=yn(O),_.c(),_.m(h,d)):_&&(_.d(1),_=null),O[3]==="true"?E?E.p(O,S):(E=_n(O),E.c(),E.m(h,null)):E&&(E.d(1),E=null)},d(O){O&&I(t),_&&_.d(),E&&E.d(),m=!1,v()}}}function yn(e){let t,r=e[31]("registerUserConsentsSMS")+"",n,i,s,o,l,c,a,h;return{c(){t=b("label"),n=M(r),i=T(),s=b("input"),l=T(),c=b("span"),p(s,"type","Checkbox"),s.checked=o=e[29].userConsents.sms,p(c,"class","Checkmark"),p(t,"class","OffersMethod")},m(d,m){R(d,t,m),u(t,n),u(t,i),u(t,s),u(t,l),u(t,c),a||(h=k(s,"click",e[65]),a=!0)},p(d,m){m[1]&1&&r!==(r=d[31]("registerUserConsentsSMS")+"")&&D(n,r),m[0]&536870912&&o!==(o=d[29].userConsents.sms)&&(s.checked=o)},d(d){d&&I(t),a=!1,h()}}}function _n(e){let t,r=e[31]("registerUserConsentsEmail")+"",n,i,s,o,l,c,a,h;return{c(){t=b("label"),n=M(r),i=T(),s=b("input"),l=T(),c=b("span"),p(s,"type","Checkbox"),s.checked=o=e[29].userConsents.emailmarketing,p(c,"class","Checkmark"),p(t,"class","OffersMethod")},m(d,m){R(d,t,m),u(t,n),u(t,i),u(t,s),u(t,l),u(t,c),a||(h=k(s,"click",e[66]),a=!0)},p(d,m){m[1]&1&&r!==(r=d[31]("registerUserConsentsEmail")+"")&&D(n,r),m[0]&536870912&&o!==(o=d[29].userConsents.emailmarketing)&&(s.checked=o)},d(d){d&&I(t),a=!1,h()}}}function vn(e){let t,r,n,i,s,o,l,c,a,h,d,m,v=!e[30].termsandconditions&&En(e);return{c(){t=b("div"),r=b("label"),n=b("span"),i=T(),s=b("input"),l=T(),c=b("span"),a=T(),v&&v.c(),h=Or(),p(s,"type","Checkbox"),s.checked=o=e[29].userConsents.termsandconditions,p(c,"class","Checkmark"),p(r,"class","AgeConsent"),p(t,"class","AgeContainer")},m(_,E){R(_,t,E),u(t,r),u(r,n),n.innerHTML=e[32],u(r,i),u(r,s),u(r,l),u(r,c),R(_,a,E),v&&v.m(_,E),R(_,h,E),d||(m=k(s,"click",e[67]),d=!0)},p(_,E){E[0]&536870912&&o!==(o=_[29].userConsents.termsandconditions)&&(s.checked=o),_[30].termsandconditions?v&&(v.d(1),v=null):v?v.p(_,E):(v=En(_),v.c(),v.m(h.parentNode,h))},d(_){_&&(I(t),I(a),I(h)),v&&v.d(_),d=!1,m()}}}function En(e){let t,r,n=e[31]("registerTermsConditionsError")+"",i;return{c(){t=b("div"),r=b("p"),i=M(n),p(t,"class","NotificationContainer")},m(s,o){R(s,t,o),u(t,r),u(r,i)},p(s,o){o[1]&1&&n!==(n=s[31]("registerTermsConditionsError")+"")&&D(i,n)},d(s){s&&I(t)}}}function Cn(e){let t,r,n;return{c(){t=b("div"),r=b("p"),n=M(e[16]),p(r,"class","RegisterError")},m(i,s){R(i,t,s),u(t,r),u(r,n)},p(i,s){s[0]&65536&&D(n,i[16])},d(i){i&&I(t)}}}function _o(e){let t,r,n,i,s,o,l,c,a,h,d,m,v,_=e[31]("registerBackButton")+"",E,O,S,z,N,V,X=e[31]("registerAddress")+"",me,we,Oe,vt,W,Et,Ue,xe,j,te,Te=e[31]("registerPostalCode")+"",pe,Fe,he,ye,q,fe,Z,Xe,U,y,B=e[31]("registerCity")+"",Ct,It,We,Lt,de,Se,qe,xt,He,Be,Ze=e[31]("registerCountry")+"",$e,Rt,De,Ge,_e,je,Ut,Ae,Me,ze=e[31]("registerNationality")+"",At,Ft,Qe,Dt,ve,Je,Gt,ge,Ne,Ye=e[31]("registerMobile")+"",wt,jt,Ke,zt,ke,Ee,Vt,$,Xt,et,Wt,Tt,Pe,tt=e[31]("registerOpenAccount")+"",g,x,G,or,Lr,re=e[4]&&ln(e),ne=e[6]&&un(e),ie=e[7]&&cn(e),se=e[9]&&hn(e),rt=at(e[20]),Q=[];for(let f=0;f<rt.length;f+=1)Q[f]=fn(an(e,rt,f));let nt=at(e[22]),J=[];for(let f=0;f<nt.length;f+=1)J[f]=dn(on(e,nt,f));let it=at(e[25]),Y=[];for(let f=0;f<it.length;f+=1)Y[f]=mn(sn(e,it,f));let oe=e[8]&&pn(e),ae=e[0]==="true"&&gn(e),le=e[15]&&Cn(e);return{c(){var f,C,F,St,Ht,Bt;re&&re.c(),t=Or(),r=T(),n=b("div"),i=T(),s=b("div"),o=b("div"),l=b("button"),c=Zt("svg"),a=Zt("defs"),h=Zt("style"),d=M(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),m=Zt("path"),v=T(),E=M(_),O=T(),S=b("form"),z=b("div"),N=b("div"),V=b("label"),me=M(X),we=M(":"),Oe=b("span"),Oe.textContent="*",vt=T(),W=b("input"),Et=T(),ne&&ne.c(),xe=T(),j=b("div"),te=b("label"),pe=M(Te),Fe=M(":"),he=b("span"),he.textContent="*",ye=T(),q=b("input"),fe=T(),ie&&ie.c(),Xe=T(),U=b("div"),y=b("label"),Ct=M(B),It=M(":"),We=b("span"),We.textContent="*",Lt=T(),de=b("input"),Se=T(),se&&se.c(),xt=T(),He=b("div"),Be=b("label"),$e=M(Ze),Rt=M(":"),De=b("span"),De.textContent="*",Ge=T(),_e=b("select");for(let ue=0;ue<Q.length;ue+=1)Q[ue].c();Ut=T(),Ae=b("div"),Me=b("label"),At=M(ze),Ft=M(":"),Qe=b("span"),Qe.textContent="*",Dt=T(),ve=b("select");for(let ue=0;ue<J.length;ue+=1)J[ue].c();Gt=T(),ge=b("div"),Ne=b("label"),wt=M(Ye),jt=M(":"),Ke=b("span"),Ke.textContent="*",zt=T(),ke=b("div"),Ee=b("select");for(let ue=0;ue<Y.length;ue+=1)Y[ue].c();Vt=T(),$=b("input"),Xt=T(),oe&&oe.c(),Wt=T(),ae&&ae.c(),Tt=T(),Pe=b("button"),g=M(tt),G=T(),le&&le.c(),p(n,"class","g-recaptcha"),p(n,"data-sitekey",e[4]),p(m,"class","a"),p(m,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),p(m,"transform","translate(24 24) rotate(180)"),p(c,"xmlns","http://www.w3.org/2000/svg"),p(c,"viewBox","0 0 24 24"),p(l,"class","BackButton"),p(o,"class","RegisterFormHeader"),p(Oe,"class","FormRequired"),p(V,"for","Address"),p(W,"type","text"),p(W,"id","Address"),p(N,"class",Ue="AddressContainer "+(e[6]&&!e[10]?"InvalidField":"")+(((f=e[14])==null?void 0:f.indexOf("address"))>=0?"Hidden":"")),p(he,"class","FormRequired"),p(te,"for","PostalCode"),p(q,"type","text"),p(q,"id","PostalCode"),p(j,"class",Z="PostalCodeContainer "+(e[7]&&!e[11]?"InvalidField":"")+(((C=e[14])==null?void 0:C.indexOf("postalCode"))>=0?"Hidden":"")),p(z,"class","AddressPostalCodeContainer"),p(We,"class","FormRequired"),p(y,"for","City"),p(de,"type","text"),p(de,"id","City"),p(U,"class",qe="CityContainer "+(e[9]&&e[13]?"InvalidField":"")+(((F=e[14])==null?void 0:F.indexOf("city"))>=0?"Hidden":"")),p(De,"class","FormRequired"),p(Be,"for","Country"),p(_e,"id","Country"),e[21]===void 0&&ht(()=>e[58].call(_e)),p(He,"class",je="CountryContainer "+(((St=e[14])==null?void 0:St.indexOf("country"))>=0?"Hidden":"")),p(Qe,"class","FormRequired"),p(Me,"for","Nationality"),p(ve,"id","Nationality"),e[23]===void 0&&ht(()=>e[59].call(ve)),p(Ae,"class",Je="NationalityContainer "+(((Ht=e[14])==null?void 0:Ht.indexOf("nationality"))>=0?"Hidden":"")),p(Ke,"class","FormRequired"),p(Ne,"for","Mobile"),p(Ee,"class","MobilePrefixSelected"),e[26]===void 0&&ht(()=>e[60].call(Ee)),p($,"type","text"),p($,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),p($,"id","Mobile"),p($,"class","MobileInput"),p(ke,"class","MobileWrapper"),p(ge,"class",et="MobileContainer "+(e[8]&&!e[12]?"InvalidField":"")+(((Bt=e[14])==null?void 0:Bt.indexOf("mobile"))>=0?"Hidden":"")),p(Pe,"class","RegisterStepNext"),Pe.disabled=x=!e[28],p(S,"class","RegisterFormContent")},m(f,C){re&&re.m(document.head,null),u(document.head,t),R(f,r,C),R(f,n,C),R(f,i,C),R(f,s,C),u(s,o),u(o,l),u(l,c),u(c,a),u(a,h),u(h,d),u(c,m),u(l,v),u(l,E),u(s,O),u(s,S),u(S,z),u(z,N),u(N,V),u(V,me),u(V,we),u(V,Oe),u(N,vt),u(N,W),ce(W,e[17]),u(N,Et),ne&&ne.m(N,null),u(z,xe),u(z,j),u(j,te),u(te,pe),u(te,Fe),u(te,he),u(j,ye),u(j,q),ce(q,e[18]),u(j,fe),ie&&ie.m(j,null),u(S,Xe),u(S,U),u(U,y),u(y,Ct),u(y,It),u(y,We),u(U,Lt),u(U,de),ce(de,e[19]),u(U,Se),se&&se.m(U,null),u(S,xt),u(S,He),u(He,Be),u(Be,$e),u(Be,Rt),u(Be,De),u(He,Ge),u(He,_e);for(let F=0;F<Q.length;F+=1)Q[F]&&Q[F].m(_e,null);st(_e,e[21],!0),u(S,Ut),u(S,Ae),u(Ae,Me),u(Me,At),u(Me,Ft),u(Me,Qe),u(Ae,Dt),u(Ae,ve);for(let F=0;F<J.length;F+=1)J[F]&&J[F].m(ve,null);st(ve,e[23],!0),u(S,Gt),u(S,ge),u(ge,Ne),u(Ne,wt),u(Ne,jt),u(Ne,Ke),u(ge,zt),u(ge,ke),u(ke,Ee);for(let F=0;F<Y.length;F+=1)Y[F]&&Y[F].m(Ee,null);st(Ee,e[26],!0),u(ke,Vt),u(ke,$),ce($,e[24]),u(ge,Xt),oe&&oe.m(ge,null),u(S,Wt),ae&&ae.m(S,null),u(S,Tt),u(S,Pe),u(Pe,g),u(s,G),le&&le.m(s,null),e[69](s),or||(Lr=[k(l,"click",e[40]),k(W,"input",e[49]),k(W,"keyup",e[33]),k(W,"focus",e[50]),k(W,"blur",e[51]),k(q,"input",e[52]),k(q,"keyup",e[34]),k(q,"focus",e[53]),k(q,"blur",e[54]),k(de,"input",e[55]),k(de,"keyup",e[35]),k(de,"focus",e[56]),k(de,"blur",e[57]),k(_e,"change",e[58]),k(ve,"change",e[59]),k(Ee,"change",e[60]),k($,"input",e[61]),k($,"keyup",e[36]),k($,"focus",e[62]),k($,"blur",e[63]),k(Pe,"click",e[68])],or=!0)},p(f,C){var F,St,Ht,Bt,ue,Rr;if(f[4]?re?re.p(f,C):(re=ln(f),re.c(),re.m(t.parentNode,t)):re&&(re.d(1),re=null),C[0]&16&&p(n,"data-sitekey",f[4]),C[1]&1&&_!==(_=f[31]("registerBackButton")+"")&&D(E,_),C[1]&1&&X!==(X=f[31]("registerAddress")+"")&&D(me,X),C[0]&131072&&W.value!==f[17]&&ce(W,f[17]),f[6]?ne?ne.p(f,C):(ne=un(f),ne.c(),ne.m(N,null)):ne&&(ne.d(1),ne=null),C[0]&17472&&Ue!==(Ue="AddressContainer "+(f[6]&&!f[10]?"InvalidField":"")+(((F=f[14])==null?void 0:F.indexOf("address"))>=0?"Hidden":""))&&p(N,"class",Ue),C[1]&1&&Te!==(Te=f[31]("registerPostalCode")+"")&&D(pe,Te),C[0]&262144&&q.value!==f[18]&&ce(q,f[18]),f[7]?ie?ie.p(f,C):(ie=cn(f),ie.c(),ie.m(j,null)):ie&&(ie.d(1),ie=null),C[0]&18560&&Z!==(Z="PostalCodeContainer "+(f[7]&&!f[11]?"InvalidField":"")+(((St=f[14])==null?void 0:St.indexOf("postalCode"))>=0?"Hidden":""))&&p(j,"class",Z),C[1]&1&&B!==(B=f[31]("registerCity")+"")&&D(Ct,B),C[0]&524288&&de.value!==f[19]&&ce(de,f[19]),f[9]?se?se.p(f,C):(se=hn(f),se.c(),se.m(U,null)):se&&(se.d(1),se=null),C[0]&25088&&qe!==(qe="CityContainer "+(f[9]&&f[13]?"InvalidField":"")+(((Ht=f[14])==null?void 0:Ht.indexOf("city"))>=0?"Hidden":""))&&p(U,"class",qe),C[1]&1&&Ze!==(Ze=f[31]("registerCountry")+"")&&D($e,Ze),C[0]&1048576){rt=at(f[20]);let A;for(A=0;A<rt.length;A+=1){const Ie=an(f,rt,A);Q[A]?Q[A].p(Ie,C):(Q[A]=fn(Ie),Q[A].c(),Q[A].m(_e,null))}for(;A<Q.length;A+=1)Q[A].d(1);Q.length=rt.length}if(C[0]&3145728&&st(_e,f[21]),C[0]&16384&&je!==(je="CountryContainer "+(((Bt=f[14])==null?void 0:Bt.indexOf("country"))>=0?"Hidden":""))&&p(He,"class",je),C[1]&1&&ze!==(ze=f[31]("registerNationality")+"")&&D(At,ze),C[0]&4194304){nt=at(f[22]);let A;for(A=0;A<nt.length;A+=1){const Ie=on(f,nt,A);J[A]?J[A].p(Ie,C):(J[A]=dn(Ie),J[A].c(),J[A].m(ve,null))}for(;A<J.length;A+=1)J[A].d(1);J.length=nt.length}if(C[0]&12582912&&st(ve,f[23]),C[0]&16384&&Je!==(Je="NationalityContainer "+(((ue=f[14])==null?void 0:ue.indexOf("nationality"))>=0?"Hidden":""))&&p(Ae,"class",Je),C[1]&1&&Ye!==(Ye=f[31]("registerMobile")+"")&&D(wt,Ye),C[0]&33554432){it=at(f[25]);let A;for(A=0;A<it.length;A+=1){const Ie=sn(f,it,A);Y[A]?Y[A].p(Ie,C):(Y[A]=mn(Ie),Y[A].c(),Y[A].m(Ee,null))}for(;A<Y.length;A+=1)Y[A].d(1);Y.length=it.length}C[0]&100663296&&st(Ee,f[26]),C[0]&16777216&&$.value!==f[24]&&ce($,f[24]),f[8]?oe?oe.p(f,C):(oe=pn(f),oe.c(),oe.m(ge,null)):oe&&(oe.d(1),oe=null),C[0]&20736&&et!==(et="MobileContainer "+(f[8]&&!f[12]?"InvalidField":"")+(((Rr=f[14])==null?void 0:Rr.indexOf("mobile"))>=0?"Hidden":""))&&p(ge,"class",et),f[0]==="true"?ae?ae.p(f,C):(ae=gn(f),ae.c(),ae.m(S,Tt)):ae&&(ae.d(1),ae=null),C[1]&1&&tt!==(tt=f[31]("registerOpenAccount")+"")&&D(g,tt),C[0]&268435456&&x!==(x=!f[28])&&(Pe.disabled=x),f[15]?le?le.p(f,C):(le=Cn(f),le.c(),le.m(s,null)):le&&(le.d(1),le=null)},i:Ce,o:Ce,d(f){f&&(I(r),I(n),I(i),I(s)),re&&re.d(f),I(t),ne&&ne.d(),ie&&ie.d(),se&&se.d(),cr(Q,f),cr(J,f),cr(Y,f),oe&&oe.d(),ae&&ae.d(),le&&le.d(),e[69](null),or=!1,gt(Lr)}}}function vo(e,t,r){let n;ii(e,ho,g=>r(31,n=g));let{userconsentsexist:i="false"}=t,{termsconditions:s="false"}=t,{smsoffers:o="false"}=t,{emailmarketing:l="false"}=t,{endpoint:c=""}=t,{captchakey:a=""}=t,{lang:h=""}=t,{disabledfields:d=""}=t,{defaultoptions:m=""}=t,{mbsource:v}=t,{clientstyling:_=""}=t,{clientstylingurl:E=""}=t,{translationurl:O=""}=t,S,z,N,V,X=!1,me=!1,we=!1,Oe=!1,vt,W,Et=!1,Ue="",xe="",j="",te="",Te=[],pe="",Fe=[],he="",ye="",q=[],fe="",Z=!1,Xe=!1,U,y={mobile:{},userConsents:{}},B={address1:!1,postalCode:!1,city:!1,country:!1,nationality:!1,mobile:!1,termsandconditions:s==="false"};fo({withLocale:"en",translations:{}});const Ct=()=>{fetch(O).then(x=>x.json()).then(x=>{Object.keys(x).forEach(G=>{rn(G,x[G])})}).catch(x=>{console.log(x)})};Object.keys(nn).forEach(g=>{rn(g,nn[g])});let It=n("registerTermsConditions");const We=()=>{fetch(`${c}/v1/player/countries`).then(g=>g.json()).then(g=>{fetch(`${c}/v1/player/operatorSupportedCountries`).then(x=>x.status>=300?new Error("Error while fetching the supported countries"):x.json()).then(x=>{r(20,Te=g.countries.filter(G=>x.countries.indexOf(G.Alpha2Code)>=0)),pe||(r(21,pe=Te[0].Alpha2Code),r(30,B.country=!0,B)),r(22,Fe=g.countries),he||(r(23,he=Fe.filter(G=>x.countries.indexOf(G.Alpha2Code)>=0)[0].Alpha2Code),r(30,B.nationality=!0,B))})})},Lt=()=>{fetch(`${c}/v1/player/phonecodes`).then(g=>g.json()).then(g=>{r(25,q=g.phoneCodes),fe||r(26,fe=q[0].Prefix)})},de=(g,x)=>{if(!(d.indexOf(g)>=0))switch(g){case"address1":r(17,xe=x),xt();break;case"postalCode":r(18,j=x),Be();break;case"city":r(19,te=x),$e();break;case"country":r(21,pe=x),r(30,B.country=!0,B);break;case"nationality":r(23,he=x),r(30,B.nationality=!0,B);break;case"mobile":r(26,fe=x.prefix),r(24,ye=x.number),De();break;case"userConsents":Object.keys(x).length!==0&&(x.termsandconditions&&x.sms&&r(27,Z=!0),r(30,B.termsandconditions=x.termsandconditions,B),r(29,y.userConsents.termsandconditions=x.termsandconditions,y),r(29,y.userConsents.sms=x.sms,y),r(29,y.userConsents.emailmarketing=x.emailmarketing,y)),Se();break}},Se=()=>{r(28,Xe=Object.keys(B).every(g=>d.includes(g)?!0:B[g]!==!1))},qe=()=>!!(xe&&xe.length<=100),xt=()=>{r(29,y.address1=xe,y),r(6,S=!qe()),r(30,B.address1=!S,B),Se()},He=()=>!!(j&&j.length<=20),Be=()=>{r(29,y.postalCode=j,y),r(7,z=!He()),r(30,B.postalCode=!z,B),Se()},Ze=()=>!!(te&&te.length<=50),$e=()=>{r(29,y.city=te,y),r(9,V=!Ze()),r(30,B.city=!V,B),Se()},Rt=()=>!!(ye&&ye.length>=5&&ye.length<=12),De=()=>{r(29,y.mobile.number=ye,y),r(8,N=!Rt()),r(30,B.mobile=!N,B),Se()},Ge=g=>{g==="GeneralOffers"?(r(27,Z=!Z),r(29,y.userConsents.sms=Z,y),r(29,y.userConsents.emailmarketing=Z,y)):g==="SmsOffers"?(r(29,y.userConsents.sms=!y.userConsents.sms,y),y.userConsents.sms&&r(27,Z=!0)):g==="EmailOffers"&&(r(29,y.userConsents.emailmarketing=!y.userConsents.emailmarketing,y),y.userConsents.emailmarketing&&r(27,Z=!0)),_e()},_e=()=>{!y.userConsents.sms&&!y.userConsents.emailmarketing&&r(27,Z=!1)},je=()=>{r(29,y.userConsents.termsandconditions=!y.userConsents.termsandconditions,y),r(30,B.termsandconditions=!B.termsandconditions,B),Se()},Ut=()=>new Promise((g,x)=>{grecaptcha.ready(()=>{grecaptcha.execute(a,{action:"submit"}).then(G=>{g(G)})})}),Ae=g=>{g.preventDefault(),r(29,y.nationality=he,y),r(29,y.country=pe,y),r(29,y.mobile.prefix=fe,y);let x={};Ut().then(G=>{x=ur(lr({},y),{token:G}),window.postMessage({type:"RegisterStepThree",registerStepThreeData:x},window.location.href)})},Me=()=>{r(29,y.nationality=he,y),r(29,y.country=pe,y),r(29,y.mobile.prefix=fe,y),window.postMessage({type:"GoBackStepThree",registerStepThreeData:y},window.location.href)},ze=g=>{if(g.data)switch(g.data.type){case"StepThreeDataBackup":const x=g.data.userData;for(const G in x)de(G,x[G]);r(28,Xe=Object.keys(B).every(G=>d.includes(G)?!0:B[G]!==!1));break;case"ShowRegistrationError":r(15,Et=g.data.showError),r(16,Ue=g.data.error)}},At=()=>{r(14,vt=d.split(","))},Ft=()=>{W=m.split(","),W.indexOf("consentsTerms")>=0&&r(29,y.userConsents.termsandconditions=!0,y),W.indexOf("consentsOffers")>=0&&(r(27,Z=!0),r(29,y.userConsents.sms=!0,y),r(29,y.userConsents.emailmarketing=!0,y)),W.forEach(g=>{g.includes("phonePrefix")&&(r(26,fe=g.split(":")[1].toString()),r(29,y.mobile.prefix=fe,y))})},Qe=()=>{mo(h)};hi(()=>(window.addEventListener("message",ze,!1),()=>{window.removeEventListener("message",ze)}));function Dt(){xe=this.value,r(17,xe)}const ve=()=>r(10,X=!0),Je=()=>r(10,X=!1);function Gt(){j=this.value,r(18,j)}const ge=()=>r(11,me=!0),Ne=()=>r(11,me=!1);function Ye(){te=this.value,r(19,te)}const wt=()=>r(13,Oe=!0),jt=()=>r(13,Oe=!1);function Ke(){pe=hr(this),r(21,pe),r(20,Te)}function zt(){he=hr(this),r(23,he),r(22,Fe)}function ke(){fe=hr(this),r(26,fe),r(25,q)}function Ee(){ye=this.value,r(24,ye)}const Vt=()=>r(12,we=!0),$=()=>r(12,we=!1),Xt=()=>Ge("GeneralOffers"),et=()=>Ge("SmsOffers"),Wt=()=>Ge("EmailOffers"),Tt=()=>je(),Pe=g=>Ae(g);function tt(g){_r[g?"unshift":"push"](()=>{U=g,r(5,U)})}return e.$$set=g=>{"userconsentsexist"in g&&r(0,i=g.userconsentsexist),"termsconditions"in g&&r(1,s=g.termsconditions),"smsoffers"in g&&r(2,o=g.smsoffers),"emailmarketing"in g&&r(3,l=g.emailmarketing),"endpoint"in g&&r(41,c=g.endpoint),"captchakey"in g&&r(4,a=g.captchakey),"lang"in g&&r(42,h=g.lang),"disabledfields"in g&&r(43,d=g.disabledfields),"defaultoptions"in g&&r(44,m=g.defaultoptions),"mbsource"in g&&r(45,v=g.mbsource),"clientstyling"in g&&r(46,_=g.clientstyling),"clientstylingurl"in g&&r(47,E=g.clientstylingurl),"translationurl"in g&&r(48,O=g.translationurl)},e.$$.update=()=>{e.$$.dirty[1]&1024&&c&&We(),e.$$.dirty[1]&1024&&c&&Lt(),e.$$.dirty[1]&2048&&h&&Qe(),e.$$.dirty[1]&4096&&d&&At(),e.$$.dirty[1]&8192&&m&&Ft(),e.$$.dirty[0]&32|e.$$.dirty[1]&32768&&_&&U&&po(U,_),e.$$.dirty[0]&32|e.$$.dirty[1]&65536&&E&&U&&go(U,E),e.$$.dirty[0]&32|e.$$.dirty[1]&16384&&v&&U&&bo(U,`${v}.Style`),e.$$.dirty[1]&131072&&O&&Ct(),e.$$.dirty[0]&3&&i&&r(30,B.termsandconditions=s==="false",B)},[i,s,o,l,a,U,S,z,N,V,X,me,we,Oe,vt,Et,Ue,xe,j,te,Te,pe,Fe,he,ye,q,fe,Z,Xe,y,B,n,It,xt,Be,$e,De,Ge,je,Ae,Me,c,h,d,m,v,_,E,O,Dt,ve,Je,Gt,ge,Ne,Ye,wt,jt,Ke,zt,ke,Ee,Vt,$,Xt,et,Wt,Tt,Pe,tt]}class Jn extends xi{constructor(t){super(),Ei(this,t,vo,_o,An,{userconsentsexist:0,termsconditions:1,smsoffers:2,emailmarketing:3,endpoint:41,captchakey:4,lang:42,disabledfields:43,defaultoptions:44,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48},yo,[-1,-1,-1,-1])}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(t){this.$$set({userconsentsexist:t}),K()}get termsconditions(){return this.$$.ctx[1]}set termsconditions(t){this.$$set({termsconditions:t}),K()}get smsoffers(){return this.$$.ctx[2]}set smsoffers(t){this.$$set({smsoffers:t}),K()}get emailmarketing(){return this.$$.ctx[3]}set emailmarketing(t){this.$$set({emailmarketing:t}),K()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),K()}get captchakey(){return this.$$.ctx[4]}set captchakey(t){this.$$set({captchakey:t}),K()}get lang(){return this.$$.ctx[42]}set lang(t){this.$$set({lang:t}),K()}get disabledfields(){return this.$$.ctx[43]}set disabledfields(t){this.$$set({disabledfields:t}),K()}get defaultoptions(){return this.$$.ctx[44]}set defaultoptions(t){this.$$set({defaultoptions:t}),K()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),K()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),K()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),K()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),K()}}Ci(Jn,{userconsentsexist:{},termsconditions:{},smsoffers:{},emailmarketing:{},endpoint:{},captchakey:{},lang:{},disabledfields:{},defaultoptions:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Jn;
|