@everymatrix/user-login 1.88.6 → 1.88.8
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/dist/cjs/{player-account-biometrics-action-5aaf0b8d.js → player-account-biometrics-action-3305afaf.js} +1 -1
- package/dist/cjs/user-login.cjs.entry.js +2 -2
- package/dist/esm/{player-account-biometrics-action-62384811.js → player-account-biometrics-action-84ade958.js} +1 -1
- package/dist/esm/user-login.entry.js +2 -2
- package/dist/user-login/{player-account-biometrics-action-62384811.js → player-account-biometrics-action-84ade958.js} +1 -1
- package/dist/user-login/user-login.entry.js +1 -1
- package/package.json +1 -1
|
@@ -3825,7 +3825,7 @@ function hi(e, t) {
|
|
|
3825
3825
|
if (!e)
|
|
3826
3826
|
return;
|
|
3827
3827
|
const n = e.getRootNode(), i = window[U];
|
|
3828
|
-
let s = i[t]
|
|
3828
|
+
let s = i[t] && i[t].sheet;
|
|
3829
3829
|
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3830
3830
|
sheet: s,
|
|
3831
3831
|
refCount: 1
|
|
@@ -482,7 +482,7 @@ function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
|
482
482
|
|
|
483
483
|
const shadowRoot = stylingContainer.getRootNode();
|
|
484
484
|
const cacheStyleObject = window[StyleCacheKey];
|
|
485
|
-
let cachedStyle = cacheStyleObject[domain]
|
|
485
|
+
let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
|
|
486
486
|
|
|
487
487
|
if (!cachedStyle) {
|
|
488
488
|
cachedStyle = new CSSStyleSheet();
|
|
@@ -7193,7 +7193,7 @@ const UserLogin = class {
|
|
|
7193
7193
|
if (((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) === 'NativeAppReady') {
|
|
7194
7194
|
this.isNativeApp = true;
|
|
7195
7195
|
if (!this.biometricsLoaded) {
|
|
7196
|
-
await Promise.resolve().then(function () { return require('./player-account-biometrics-action-
|
|
7196
|
+
await Promise.resolve().then(function () { return require('./player-account-biometrics-action-3305afaf.js'); });
|
|
7197
7197
|
this.biometricsLoaded = true;
|
|
7198
7198
|
}
|
|
7199
7199
|
}
|
|
@@ -3823,7 +3823,7 @@ function hi(e, t) {
|
|
|
3823
3823
|
if (!e)
|
|
3824
3824
|
return;
|
|
3825
3825
|
const n = e.getRootNode(), i = window[U];
|
|
3826
|
-
let s = i[t]
|
|
3826
|
+
let s = i[t] && i[t].sheet;
|
|
3827
3827
|
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3828
3828
|
sheet: s,
|
|
3829
3829
|
refCount: 1
|
|
@@ -478,7 +478,7 @@ function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
|
478
478
|
|
|
479
479
|
const shadowRoot = stylingContainer.getRootNode();
|
|
480
480
|
const cacheStyleObject = window[StyleCacheKey];
|
|
481
|
-
let cachedStyle = cacheStyleObject[domain]
|
|
481
|
+
let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
|
|
482
482
|
|
|
483
483
|
if (!cachedStyle) {
|
|
484
484
|
cachedStyle = new CSSStyleSheet();
|
|
@@ -7189,7 +7189,7 @@ const UserLogin = class {
|
|
|
7189
7189
|
if (((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) === 'NativeAppReady') {
|
|
7190
7190
|
this.isNativeApp = true;
|
|
7191
7191
|
if (!this.biometricsLoaded) {
|
|
7192
|
-
await import('./player-account-biometrics-action-
|
|
7192
|
+
await import('./player-account-biometrics-action-84ade958.js');
|
|
7193
7193
|
this.biometricsLoaded = true;
|
|
7194
7194
|
}
|
|
7195
7195
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function r(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...n){if(null==e){for(const t of n)t(void 0);return t}const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}function h(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t){return document.createElement(t)}function l(t){return document.createTextNode(t)}function f(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e,n){t.classList.toggle(e,!!n)}let d;function B(t){d=t}const p=[],g=[];let H=[];const v=[],w=Promise.resolve();let y=!1;function E(t){H.push(t)}const T=new Set;let A=0;function S(){if(0!==A)return;const t=d;do{try{for(;A<p.length;){const t=p[A];A++,B(t),O(t.$$)}}catch(t){throw p.length=0,A=0,t}for(B(null),p.length=0,A=0;g.length;)g.pop()();for(let t=0;t<H.length;t+=1){const e=H[t];T.has(e)||(T.add(e),e())}H.length=0}while(p.length);for(;v.length;)v.pop()();y=!1,T.clear(),B(t)}function O(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const L=new Set;function _(o,s,h,c,u,l,f=null,b=[-1]){const m=d;B(o);const g=o.$$={fragment:null,ctx:[],props:l,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:n(),dirty:b,skip_bound:!1,root:s.target||m.$$.root};f&&f(g.root);let H=!1;if(g.ctx=h?h(o,s.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return g.ctx&&u(g.ctx[t],g.ctx[t]=i)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](i),H&&function(t,e){-1===t.$$.dirty[0]&&(p.push(t),y||(y=!0,w.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(o,t)),e})):[],g.update(),H=!0,i(g.before_update),g.fragment=!!c&&c(g.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);g.fragment&&g.fragment.l(t),t.forEach(a)}else g.fragment&&g.fragment.c();s.intro&&function(t){t&&t.i&&(L.delete(t),t.i(void 0))}(o.$$.fragment),function(t,n,o){const{fragment:s,after_update:h}=t.$$;s&&s.m(n,o),E((()=>{const n=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...n):i(n),t.$$.on_mount=[]})),h.forEach(E)}(o,s.target,s.anchor),S()}B(m)}let M;function N(t,e,n,i){const r=n[t]?.type;if(e="Boolean"===r&&"boolean"!=typeof e?null!=e:e,!i||!n[t])return e;if("toAttribute"===i)switch(r){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}"function"==typeof HTMLElement&&(M=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=u("slot"),"default"!==t&&b(e,"name",t)},m:function(t,n){c(t,e,n)},d:function(t){t&&a(e)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const t of this.attributes){const e=this.$$g_p(t.name);e in this.$$d||(this.$$d[e]=N(e,t.value,this.$$p_d,"toProp"))}for(const t in this.$$p_d)!(t in this.$$d)&&void 0!==this[t]&&(this.$$d[t]=this[t],delete this[t]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const i=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=N(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const t in this.$$l)for(const e of this.$$l[t]){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=N(t,n,this.$$p_d,"toProp"),this.$$c?.$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((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class k{$$=void 0;$$set=void 0;$destroy(){(function(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];H.forEach((i=>-1===t.indexOf(i)?e.push(i):n.push(i))),n.forEach((t=>t())),H=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])})(this,1),this.$destroy=t}$on(e,n){if(!r(n))return t;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const D=[];function I(e,n=t){let i;const r=new Set;function s(t){if(o(e,t)&&(e=t,i)){const t=!D.length;for(const t of r)t[1](),D.push(t,e);if(t){for(let t=0;t<D.length;t+=2)D[t][0](D[t+1]);D.length=0}}}function h(t){s(t(e))}return{set:s,update:h,subscribe:function(o,c=t){const a=[o,c];return r.add(a),1===r.size&&(i=n(s,h)||t),o(e),()=>{r.delete(a),0===r.size&&i&&(i(),i=null)}}}}function R(e,n,o){const h=!Array.isArray(e),c=h?[e]:e;if(!c.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return function(t,e){return{subscribe:I(t,e).subscribe}}(o,((e,o)=>{let u=!1;const l=[];let f=0,b=t;const m=()=>{if(f)return;b();const i=n(h?l[0]:l,e,o);a?e(i):b=r(i)?i:t},d=c.map(((t,e)=>s(t,(t=>{l[e]=t,f&=~(1<<e),u&&m()}),(()=>{f|=1<<e}))));return u=!0,m(),function(){i(d),b(),u=!1}}))}function C(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j=function(t){return!(!(e=t)||"object"!=typeof e||function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===G}(t)}(t));var e},G="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(t,e){return!1!==e.clone&&e.isMergeableObject(t)?$(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function P(t,e,n){return t.concat(e).map((function(t){return x(t,n)}))}function U(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function F(t,e){try{return e in t}catch{return!1}}function $(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||P,n.isMergeableObject=n.isMergeableObject||j,n.cloneUnlessOtherwiseSpecified=x;var i=Array.isArray(e);return i===Array.isArray(t)?i?n.arrayMerge(t,e,n):function(t,e,n){var i={};return n.isMergeableObject(t)&&U(t).forEach((function(e){i[e]=x(t[e],n)})),U(e).forEach((function(r){(function(t,e){return F(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(i[r]=F(t,r)&&n.isMergeableObject(e[r])?function(t,e){if(!e.customMerge)return $;var n=e.customMerge(t);return"function"==typeof n?n:$}(r,n)(t[r],e[r],n):x(e[r],n))})),i}(t,e,n):x(e,n)}$.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return $(t,n,e)}),{})};const K=C($);var V=function(t,e){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function X(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}V(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Z=function(){return Z=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Z.apply(this,arguments)};function W(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function Y(t,e){return(e&&e.strategy?e.strategy:q)(t,{cache:e&&e.cache?e.cache:st,serializer:e&&e.serializer?e.serializer:rt})}function z(t,e,n,i){var r=function(t){return null==t||"number"==typeof t||"boolean"==typeof t}(i)?i:n(i),o=e.get(r);return typeof o>"u"&&(o=t.call(this,i),e.set(r,o)),o}function J(t,e,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=e.get(r);return typeof o>"u"&&(o=t.apply(this,i),e.set(r,o)),o}function Q(t,e,n,i,r){return n.bind(e,t,i,r)}function q(t,e){return Q(t,this,1===t.length?z:J,e.cache.create(),e.serializer)}var tt,et,nt,it,rt=function(){return JSON.stringify(arguments)},ot=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),st={create:function(){return new ot}},ht={variadic:function(t,e){return Q(t,this,J,e.cache.create(),e.serializer)}},ct=function(){return ct=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ct.apply(this,arguments)};function at(t){return t.type===nt.literal}function ut(t){return t.type===nt.argument}function lt(t){return t.type===nt.number}function ft(t){return t.type===nt.date}function bt(t){return t.type===nt.time}function mt(t){return t.type===nt.select}function dt(t){return t.type===nt.plural}function Bt(t){return t.type===nt.pound}function pt(t){return t.type===nt.tag}function gt(t){return!(!t||"object"!=typeof t||t.type!==it.number)}function Ht(t){return!(!t||"object"!=typeof t||t.type!==it.dateTime)}(et=tt||(tt={}))[et.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",et[et.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",et[et.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",et[et.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",et[et.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",et[et.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",et[et.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",et[et.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",et[et.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",et[et.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",et[et.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",et[et.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",et[et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",et[et.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",et[et.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",et[et.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",et[et.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",et[et.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",et[et.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",et[et.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",et[et.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",et[et.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",et[et.INVALID_TAG=23]="INVALID_TAG",et[et.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",et[et.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",et[et.UNCLOSED_TAG=27]="UNCLOSED_TAG",function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(nt||(nt={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(it||(it={}));var vt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wt=/(?:[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 yt(t){var e={};return t.replace(wt,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"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":e.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":e.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":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][n-1];break;case"s":e.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":e.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""})),e}var Et=function(){return Et=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Et.apply(this,arguments)},Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function At(t){return t.replace(/^(.*?)-/,"")}var St=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ot=/^(@+)?(\+|#+)?[rs]?$/g,Lt=/(\*)(0+)|(#+)(0+)|(0+)/g,_t=/^(0+)$/;function Mt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Ot,(function(t,n,i){return"string"!=typeof i?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===i?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof i?i.length:0)),""})),e}function Nt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function kt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!_t.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Dt(t){return Nt(t)||{}}function It(t){for(var e={},n=0,i=t;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=r.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=At(r.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Et(Et(Et({},e),{notation:"scientific"}),r.options.reduce((function(t,e){return Et(Et({},t),Dt(e))}),{}));continue;case"engineering":e=Et(Et(Et({},e),{notation:"engineering"}),r.options.reduce((function(t,e){return Et(Et({},t),Dt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Lt,(function(t,n,i,r,o,s){if(n)e.minimumIntegerDigits=i.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(_t.test(r.stem))e.minimumIntegerDigits=r.stem.length;else if(St.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(St,(function(t,n,i,r,o,s){return"*"===i?e.minimumFractionDigits=n.length:r&&"#"===r[0]?e.maximumFractionDigits=r.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var o=r.options[0];"w"===o?e=Et(Et({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Et(Et({},e),Mt(o)))}else if(Ot.test(r.stem))e=Et(Et({},e),Mt(r.stem));else{var s=Nt(r.stem);s&&(e=Et(Et({},e),s));var h=kt(r.stem);h&&(e=Et(Et({},e),h))}}return e}var Rt={"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 Ct(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,i=t.language;return"root"!==i&&(n=t.maximize().region),(Rt[n||""]||Rt[i||""]||Rt["".concat(i,"-001")]||Rt["001"])[0]}var jt,Gt=new RegExp("^".concat(vt.source,"*")),xt=new RegExp("".concat(vt.source,"*$"));function Pt(t,e){return{start:t,end:e}}var Ut=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ft=!!String.fromCodePoint,$t=!!Object.fromEntries,Kt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,Xt=!!String.prototype.trimEnd,Zt=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Wt=!0;try{Wt="a"===(null===(jt=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===jt?void 0:jt[0])}catch{Wt=!1}var Yt,zt=Ut?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},Jt=Ft?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,i="",r=t.length,o=0;r>o;){if((n=t[o++])>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},Qt=$t?Object.fromEntries:function(t){for(var e={},n=0,i=t;n<i.length;n++){var r=i[n];e[r[0]]=r[1]}return e},qt=Kt?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||e>=n)){var i,r=t.charCodeAt(e);return r<55296||r>56319||e+1===n||(i=t.charCodeAt(e+1))<56320||i>57343?r:i-56320+(r-55296<<10)+65536}},te=Vt?function(t){return t.trimStart()}:function(t){return t.replace(Gt,"")},ee=Xt?function(t){return t.trimEnd()}:function(t){return t.replace(xt,"")};function ne(t,e){return new RegExp(t,e)}if(Wt){var ie=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yt=function(t,e){var n;return ie.lastIndex=e,null!==(n=ie.exec(t)[1])&&void 0!==n?n:""}}else Yt=function(t,e){for(var n=[];;){var i=qt(t,e);if(void 0===i||ce(i)||ae(i))break;n.push(i),e+=i>=65536?2:1}return Jt.apply(void 0,n)};var re,oe=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var i=[];!this.isEOF();){var r=this.char();if(123===r){if((o=this.parseArgument(t,n)).err)return o;i.push(o.val)}else{if(125===r&&t>0)break;if(35!==r||"plural"!==e&&"selectordinal"!==e){if(60===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(tt.UNMATCHED_CLOSING_TAG,Pt(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&se(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;i.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;i.push(o.val)}}else{var s=this.clonePosition();this.bump(),i.push({type:nt.pound,location:Pt(s,this.clonePosition())})}}}return{val:i,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:nt.literal,value:"<".concat(i,"/>"),location:Pt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(t+1,e,!0);if(r.err)return r;var o=r.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!se(this.char()))return this.error(tt.INVALID_TAG,Pt(s,this.clonePosition()));var h=this.clonePosition();return i!==this.parseTagName()?this.error(tt.UNMATCHED_CLOSING_TAG,Pt(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:i,children:o,location:Pt(n,this.clonePosition())},err:null}:this.error(tt.INVALID_TAG,Pt(s,this.clonePosition())))}return this.error(tt.UNCLOSED_TAG,Pt(n,this.clonePosition()))}return this.error(tt.INVALID_TAG,Pt(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&he(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),i="";;){var r=this.tryParseQuote(e);if(r)i+=r;else{var o=this.tryParseUnquoted(t,e);if(o)i+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;i+=s}}}var h=Pt(n,this.clonePosition());return{val:{type:nt.literal,value:i,location:h},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return se(t)||47===t}(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return Jt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),Jt(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(tt.EMPTY_ARGUMENT,Pt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(tt.MALFORMED_ARGUMENT,Pt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:nt.argument,value:i,location:Pt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition())):this.parseArgumentOptions(t,e,i,n);default:return this.error(tt.MALFORMED_ARGUMENT,Pt(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=Yt(this.message,e);return this.bumpTo(e+n.length),{value:n,location:Pt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,i){var r,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(tt.EXPECT_ARGUMENT_TYPE,Pt(o,h));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var a=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(b=ee(p.val)).length)return this.error(tt.EXPECT_ARGUMENT_STYLE,Pt(this.clonePosition(),this.clonePosition()));c={style:b,styleLocation:Pt(a,this.clonePosition())}}if((g=this.tryParseArgumentClose(i)).err)return g;var u=Pt(i,this.clonePosition());if(c&&zt(c?.style,"::",0)){var l=te(c.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(l,c.styleLocation)).err?p:{val:{type:nt.number,value:n,location:u,style:p.val},err:null};if(0===l.length)return this.error(tt.EXPECT_DATE_TIME_SKELETON,u);var f=l;this.locale&&(f=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t.charAt(i);if("j"===r){for(var o=0;i+1<t.length&&t.charAt(i+1)===r;)o++,i++;var s=1+(1&o),h=o<2?1:3+(o>>1),c=Ct(e);for(("H"==c||"k"==c)&&(h=0);h-- >0;)n+="a";for(;s-- >0;)n=c+n}else n+="J"===r?"H":r}return n}(l,this.locale));var b={type:it.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?yt(f):{}};return{val:{type:"date"===s?nt.date:nt.time,value:n,location:u,style:b},err:null}}return{val:{type:"number"===s?nt.number:"date"===s?nt.date:nt.time,value:n,location:u,style:null!==(r=c?.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(tt.EXPECT_SELECT_ARGUMENT_OPTIONS,Pt(m,ct({},m)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),B=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pt(this.clonePosition(),this.clonePosition()));var p;if(this.bumpSpace(),(p=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,tt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),d=this.parseIdentifierIfPossible(),B=p.val}var g,H=this.tryParsePluralOrSelectOptions(t,s,e,d);if(H.err)return H;if((g=this.tryParseArgumentClose(i)).err)return g;var v=Pt(i,this.clonePosition());return"select"===s?{val:{type:nt.select,value:n,options:Qt(H.val),location:v},err:null}:{val:{type:nt.plural,value:n,options:Qt(H.val),offset:B,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(tt.INVALID_ARGUMENT_TYPE,Pt(o,h))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(tt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Pt(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,i=t.split(Tt).filter((function(t){return t.length>0}));n<i.length;n++){var r=i[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],s=r.slice(1),h=0,c=s;h<c.length;h++)if(0===c[h].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch{return this.error(tt.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?It(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,i){for(var r,o=!1,s=[],h=new Set,c=i.value,a=i.location;;){if(0===c.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,tt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;a=Pt(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(h.has(c))return this.error("select"===e?tt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:tt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,a);"other"===c&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?tt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Pt(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,e,n);if(b.err)return b;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([c,{value:b.val,location:Pt(f,this.clonePosition())}]),h.add(c),this.bumpSpace(),c=(r=this.parseIdentifierIfPossible()).value,a=r.location}return 0===s.length?this.error("select"===e?tt.EXPECT_SELECT_ARGUMENT_SELECTOR:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(tt.MISSING_OTHER_CLAUSE,Pt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;r=!0,o=10*o+(s-48),this.bump()}var h=Pt(i,this.clonePosition());return r?Zt(o*=n)?{val:o,err:null}:this.error(e,h):this.error(t,h)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=qt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.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 e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset();return this.message.charCodeAt(e+(t>=65536?2:1))??null},t}();function se(t){return t>=97&&t<=122||t>=65&&t<=90}function he(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ce(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ae(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ue(t){t.forEach((function(t){if(delete t.location,mt(t)||dt(t))for(var e in t.options)delete t.options[e].location,ue(t.options[e].value);else lt(t)&>(t.style)||(ft(t)||bt(t))&&Ht(t.style)?delete t.style.location:pt(t)&&ue(t.children)}))}function le(t,e){void 0===e&&(e={}),e=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new oe(t,e).parse();if(n.err){var i=SyntaxError(tt[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return e?.captureLocation||ue(n.val),n.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(re||(re={}));var fe,be=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.code=n,r.originalMessage=i,r}return X(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),me=function(t){function e(e,n,i,r){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),re.INVALID_VALUE,r)||this}return X(e,t),e}(be),de=function(t){function e(e,n,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),re.INVALID_VALUE,i)||this}return X(e,t),e}(be),Be=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),re.MISSING_VALUE,n)||this}return X(e,t),e}(be);function pe(t){return"function"==typeof t}function ge(t,e,n,i,r,o,s){if(1===t.length&&at(t[0]))return[{type:fe.literal,value:t[0].value}];for(var h=[],c=0,a=t;c<a.length;c++){var u=a[c];if(at(u))h.push({type:fe.literal,value:u.value});else if(Bt(u))"number"==typeof o&&h.push({type:fe.literal,value:n.getNumberFormat(e).format(o)});else{var l=u.value;if(!r||!(l in r))throw new Be(l,s);var f=r[l];if(ut(u))(!f||"string"==typeof f||"number"==typeof f)&&(f="string"==typeof f||"number"==typeof f?String(f):""),h.push({type:"string"==typeof f?fe.literal:fe.object,value:f});else if(ft(u)){var b="string"==typeof u.style?i.date[u.style]:Ht(u.style)?u.style.parsedOptions:void 0;h.push({type:fe.literal,value:n.getDateTimeFormat(e,b).format(f)})}else if(bt(u))b="string"==typeof u.style?i.time[u.style]:Ht(u.style)?u.style.parsedOptions:i.time.medium,h.push({type:fe.literal,value:n.getDateTimeFormat(e,b).format(f)});else if(lt(u))(b="string"==typeof u.style?i.number[u.style]:gt(u.style)?u.style.parsedOptions:void 0)&&b.scale&&(f*=b.scale||1),h.push({type:fe.literal,value:n.getNumberFormat(e,b).format(f)});else{if(pt(u)){var m=u.children,d=u.value,B=r[d];if(!pe(B))throw new de(d,"function",s);var p=B(ge(m,e,n,i,r,o).map((function(t){return t.value})));Array.isArray(p)||(p=[p]),h.push.apply(h,p.map((function(t){return{type:"string"==typeof t?fe.literal:fe.object,value:t}})))}if(mt(u)){if(!(g=u.options[f]||u.options.other))throw new me(u.value,f,Object.keys(u.options),s);h.push.apply(h,ge(g.value,e,n,i,r))}else if(dt(u)){var g;if(!(g=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new be('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',re.MISSING_INTL_API,s);var H=n.getPluralRules(e,{type:u.pluralType}).select(f-(u.offset||0));g=u.options[H]||u.options.other}if(!g)throw new me(u.value,f,Object.keys(u.options),s);h.push.apply(h,ge(g.value,e,n,i,r,f-(u.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&n.type===fe.literal&&e.type===fe.literal?n.value+=e.value:t.push(e),t}),[])}(h)}function He(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(fe||(fe={}));var ve=function(){function t(e,n,i,r){void 0===n&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=o.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===fe.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return ge(o.ast,o.locales,o.formatters,o.formats,t,void 0,o.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=o.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(r||{},["formatters"]);this.ast=t.__parse(e,Z(Z({},s),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(t,e){return e?Object.keys(t).reduce((function(n,i){return n[i]=function(t,e){return e?Z(Z(Z({},t||{}),e||{}),Object.keys(t).reduce((function(n,i){return n[i]=Z(Z({},t[i]),e[i]||{}),n}),{})):t}(t[i],e[i]),n}),Z({},t)):t}(t.formats,i),this.formatters=r&&r.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Y((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,W([void 0],e,!1)))}),{cache:He(t.number),strategy:ht.variadic}),getDateTimeFormat:Y((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,W([void 0],e,!1)))}),{cache:He(t.dateTime),strategy:ht.variadic}),getPluralRules:Y((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,W([void 0],e,!1)))}),{cache:He(t.pluralRules),strategy:ht.variadic})}}(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=le,t.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"}}},t}();const we={},ye=(t,e,n)=>n&&(e in we||(we[e]={}),t in we[e]||(we[e][t]=n),n),Ee=(t,e)=>{if(null==e)return;if(e in we&&t in we[e])return we[e][t];const n=Ze(e);for(let i=0;i<n.length;i++){const r=Oe(n[i],t);if(r)return ye(t,e,r)}};let Te;const Ae=I({});function Se(t){return t in Te}function Oe(t,e){if(!Se(t))return null;const n=function(t){return Te[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let i=t;for(let t=0;t<n.length;t++)if("object"==typeof i){if(t>0){const e=n.slice(t,n.length).join(".");if(e in i){i=i[e];break}}i=i[n[t]]}else i=void 0;return i}(n,e)}function Le(t,...e){delete we[t],Ae.update((n=>(n[t]=K.all([n[t]||{},...e]),n)))}R([Ae],(([t])=>Object.keys(t))),Ae.subscribe((t=>Te=t));const _e={};function Me(t){return _e[t]}function Ne(t){return null!=t&&Ze(t).some((t=>{var e;return null==(e=Me(t))?void 0:e.size}))}const ke={};function De(t){if(!Ne(t))return t in ke?ke[t]:Promise.resolve();const e=function(t){return Ze(t).map((t=>{const e=Me(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return ke[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){_e[t].delete(e),0===_e[t].size&&delete _e[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>Le(t,...e)))}(t,e)))).then((()=>{if(Ne(t))return De(t);delete ke[t]})),ke[t]}const Ie={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Re(){return Ie}const Ce=I(!1);var je=Object.defineProperty,Ge=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,$e=(t,e,n)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let Ke;const Ve=I(null);function Xe(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Ze(t,e=Re().fallbackLocale){const n=Xe(t);return e?[...new Set([...n,...Xe(e)])]:n}function We(){return Ke??void 0}Ve.subscribe((t=>{Ke=t??void 0,typeof window<"u"&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ye=((t,e)=>Ge(t,xe(e)))(((t,e)=>{for(var n in e||(e={}))Ue.call(e,n)&&$e(t,n,e[n]);if(Pe)for(var n of Pe(e))Fe.call(e,n)&&$e(t,n,e[n]);return t})({},Ve),{set:t=>{if(t&&function(t){if(null==t)return;const e=Ze(t);for(let t=0;t<e.length;t++){const n=e[t];if(Se(n))return n}}(t)&&Ne(t)){const{loadingDelay:e}=Re();let n;return typeof window<"u"&&null!=We()&&e?n=window.setTimeout((()=>Ce.set(!0)),e):Ce.set(!0),De(t).then((()=>{Ve.set(t)})).finally((()=>{clearTimeout(n),Ce.set(!1)}))}return Ve.set(t)}}),ze=t=>{const e=Object.create(null);return n=>{const i=JSON.stringify(n);return i in e?e[i]:e[i]=t(n)}};var Je=Object.defineProperty,Qe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,en=(t,e,n)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nn=(t,e)=>{for(var n in e||(e={}))qe.call(e,n)&&en(t,n,e[n]);if(Qe)for(var n of Qe(e))tn.call(e,n)&&en(t,n,e[n]);return t},rn=(t,e)=>{var n={};for(var i in t)qe.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&Qe)for(var i of Qe(t))e.indexOf(i)<0&&tn.call(t,i)&&(n[i]=t[i]);return n};const on=(t,e)=>{const{formats:n}=Re();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},sn=ze((t=>{var e=t,{locale:n,format:i}=e,r=rn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=on("number",i)),new Intl.NumberFormat(n,r)})),hn=ze((t=>{var e=t,{locale:n,format:i}=e,r=rn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=on("date",i):0===Object.keys(r).length&&(r=on("date","short")),new Intl.DateTimeFormat(n,r)})),cn=ze((t=>{var e=t,{locale:n,format:i}=e,r=rn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=on("time",i):0===Object.keys(r).length&&(r=on("time","short")),new Intl.DateTimeFormat(n,r)})),an=ze(((t,e=We())=>new ve(t,e,Re().formats,{ignoreTag:Re().ignoreTag}))),un=(t,e={})=>{var n,i,r,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:h,locale:c=We(),default:a}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ee(t,c);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(r=null==(i=(n=Re()).handleMissingMessage)?void 0:i.call(n,{locale:c,id:t,defaultValue:a}))?r:a)?o:t;if(!h)return u;let l=u;try{l=an(u,c).format(h)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},ln=(t,e)=>((t={})=>{var e=t,{locale:n=We()}=e,i=rn(e,["locale"]);return cn(nn({locale:n},i))})(e).format(t),fn=(t,e)=>((t={})=>{var e=t,{locale:n=We()}=e,i=rn(e,["locale"]);return hn(nn({locale:n},i))})(e).format(t),bn=(t,e)=>((t={})=>{var e=t,{locale:n=We()}=e,i=rn(e,["locale"]);return sn(nn({locale:n},i))})(e).format(t),mn=(t,e=We())=>Ee(t,e),dn=R([Ye,Ae],(()=>un));R([Ye],(()=>ln)),R([Ye],(()=>fn)),R([Ye],(()=>bn)),R([Ye,Ae],(()=>mn));const Bn={en:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"zh-hk":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},fr:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},tr:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},ro:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},es:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},pt:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},hr:{btnEnableBiometrics:"Omogući biometriju",btnDisableBiometrics:"Onemogući biometriju",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"pt-br":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"es-mx":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"en-us":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"}},pn="__WIDGET_GLOBAL_STYLE_CACHE__";function gn(t){!function(t,e,n){const i=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!i.getElementById(e)){const t=u("style");t.id=e,t.textContent=n,function(t,e){h(t.head||t,e)}(i,t)}}(t,"svelte-4r3z7g",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.toggle-content{display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:20px;cursor:pointer;gap:10px}.toggle-content:disabled{cursor:not-allowed}.toggle-content .skip-switch{display:inline-flex;align-items:center;position:relative;height:20px;vertical-align:middle;transition:opacity 0.2s}.toggle-content .skip-switch.disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.toggle-content .skip-switch.checked .skip-switch-core{border-color:var(--emw--color-primary, #22b04e);background:var(--emw--color-primary, #22b04e)}.toggle-content .skip-switch.checked .skip-switch-core::after{transform:translateX(14px)}.toggle-content .skip-switch .skip-switch-input{position:absolute;width:0;height:0;opacity:0;margin:0}.toggle-content .skip-switch .skip-switch-core{width:34px;height:20px;border-radius:20px;border:1px solid var(--emw--color-gray-300, #ababab);background:var(--emw--color-gray-300, #ababab);position:relative;cursor:pointer;transition:background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1)}.toggle-content .skip-switch .skip-switch-core::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;transform:translateX(0);transition:transform 0.25s cubic-bezier(0.22, 1, 0.36, 1)}.skip-switch.shake{animation:shake 0.4s ease}@keyframes shake{0%{transform:translateX(0)}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}100%{transform:translateX(0)}}.BiometricsToggle{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));color:var(--emw--button-typography, var(--emw--color-white, #ffffff));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsToggle:disabled{opacity:0.6;cursor:not-allowed}')}function Hn(t){let e;function n(t){return"button"===t[1]?wn:"switch"===t[1]?vn:void 0}let i=n(t),r=i&&i(t);return{c(){e=u("div"),r&&r.c()},m(n,i){c(n,e,i),r&&r.m(e,null),t[17](e)},p(t,o){i===(i=n(t))&&r?r.p(t,o):(r&&r.d(1),r=i&&i(t),r&&(r.c(),r.m(e,null)))},d(n){n&&a(e),r&&r.d(),t[17](null)}}}function vn(t){let e,n,i,r,o;return{c(){e=u("button"),n=u("div"),n.innerHTML='<input type="checkbox" class="skip-switch-input"/> <span class="skip-switch-core"></span>',b(n,"class","skip-switch"),m(n,"checked",t[4]),m(n,"disabled",t[5]||t[2]),m(n,"shake",t[6]),b(e,"class","toggle-content"),e.disabled=i=t[5]||t[2]},m(i,s){c(i,e,s),h(e,n),r||(o=f(e,"click",t[8]),r=!0)},p(t,r){16&r&&m(n,"checked",t[4]),36&r&&m(n,"disabled",t[5]||t[2]),64&r&&m(n,"shake",t[6]),36&r&&i!==(i=t[5]||t[2])&&(e.disabled=i)},d(t){t&&a(e),r=!1,o()}}}function wn(t){let e,n,i,r,o,s=t[7](t[4]?"btnDisableBiometrics":"btnEnableBiometrics")+"";return{c(){e=u("button"),n=l(s),b(e,"class","BiometricsToggle"),e.disabled=i=t[5]||t[2]},m(i,s){c(i,e,s),h(e,n),r||(o=f(e,"click",t[16]),r=!0)},p(t,r){144&r&&s!==(s=t[7](t[4]?"btnDisableBiometrics":"btnEnableBiometrics")+"")&&function(t,e){t.data!==(e=""+e)&&(t.data=e)}(n,s),36&r&&i!==(i=t[5]||t[2])&&(e.disabled=i)},d(t){t&&a(e),r=!1,o()}}}function yn(e){let n,i=e[0]&&Hn(e);return{c(){i&&i.c(),n=l("")},m(t,e){i&&i.m(t,e),c(t,n,e)},p(t,[e]){t[0]?i?i.p(t,e):(i=Hn(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){t&&a(n),i&&i.d(t)}}}function En(t,e,n){let i;!function(t,e,n){t.$$.on_destroy.push(s(dn,n))}(t,0,(t=>n(7,i=t)));let r,o,{lang:h="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:a=""}=e,{mbsource:u}=e,{translationurl:l=""}=e,{isNativeApp:f=!1}=e,{mode:b="button"}=e,{isFromLogin:m=!1}=e,{isLoading:B=!1}=e,p=null,H=!1,v=!1,w=!1;const y=t=>{Object.keys(t).forEach((e=>{!function(t,e){Le(t,e)}(e,t[e])}))};y(Bn);let E=!1;const T=()=>{p&&clearTimeout(p),p=setTimeout((()=>{n(5,v=!1),n(6,E=!0),setTimeout((()=>{n(6,E=!1)}),500),L("error",i("errorMessage"))}),3e3)},A=async()=>{v||(n(5,v=!0),w=!0,window.postMessage({type:"ToggleBiometrics",data:`${!H}`,isFromLogin:m}),T())},S=t=>{"NativeAppReady"===t.data?.type&&(n(0,f=!0),O()),"BiometricsStatus"===t.data?.type&&(n(4,H=t.data.status||!1),n(5,v=!1),p&&(clearTimeout(p),p=null),w&&(m||L("success",i(H?"successEnableBiometrics":"successDisableBiometrics"))),w=!1)},O=()=>{n(5,v=!0),window.postMessage({type:"GetBiometricsStatus"}),T()},L=(t,e)=>{window.postMessage({type:"WidgetNotification",data:{type:t,message:e,config:{clearBefore:!0}}},window.location.href)};return function(t){(function(){if(!d)throw new Error("Function called outside component initialization");return d})().$$.on_mount.push(t)}((()=>(window.addEventListener("message",S),!0===f?O():window.postMessage({type:"CheckNativeApp"}),()=>{window.removeEventListener("message",S),o&&o.unsubscribe(),p&&clearTimeout(p)}))),t.$$set=t=>{"lang"in t&&n(9,h=t.lang),"clientstyling"in t&&n(10,c=t.clientstyling),"clientstylingurl"in t&&n(11,a=t.clientstylingurl),"mbsource"in t&&n(12,u=t.mbsource),"translationurl"in t&&n(13,l=t.translationurl),"isNativeApp"in t&&n(0,f=t.isNativeApp),"mode"in t&&n(1,b=t.mode),"isFromLogin"in t&&n(14,m=t.isFromLogin),"isLoading"in t&&n(2,B=t.isLoading)},t.$$.update=()=>{512&t.$$.dirty&&h&&function(t){Ye.set(t)}(h),1032&t.$$.dirty&&c&&r&&function(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}(r,c),2056&t.$$.dirty&&a&&r&&function(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then((t=>t.text())).then((e=>{const n=document.createElement("style");n.innerHTML=e,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}(r,a),4104&t.$$.dirty&&u&&r&&function(t,e,n,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return n=function(t,e){const n=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(n.innerHTML=e,t.appendChild(n))}))}(t,e),n;window[pn]||(window[pn]={}),n=function(t,e){return window.emMessageBus.subscribe(e,(n=>{if(!t)return;const i=t.getRootNode(),r=window[pn];let o=r[e]?.sheet;o?r[e].refCount=r[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),r[e]={sheet:o,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(o)||(i.adoptedStyleSheets=[...s,o])}))}(t,e);const r=n.unsubscribe.bind(n);n.unsubscribe=()=>{if(window[pn][e]){const t=window[pn][e];t.refCount>1?t.refCount=t.refCount-1:delete window[pn][e]}r()}}(r,`${u}.Style`,void 0),8192&t.$$.dirty&&l&&fetch(l).then((t=>t.json())).then((t=>{y(t)})).catch((t=>{console.log(t)})),45056&t.$$.dirty&&u&&!l&&n(15,o=function(t,e,n){return window.emMessageBus&&(e=window.emMessageBus.subscribe(t,n)),e}(`${u}.Translation`,o,y))},[f,b,B,r,H,v,E,i,A,h,c,a,u,l,m,o,()=>A(),function(t){g[t?"unshift":"push"]((()=>{r=t,n(3,r)}))}]}class Tn extends k{constructor(t){super(),_(this,t,En,yn,o,{lang:9,clientstyling:10,clientstylingurl:11,mbsource:12,translationurl:13,isNativeApp:0,mode:1,isFromLogin:14,isLoading:2},gn)}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),S()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),S()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),S()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),S()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),S()}get isNativeApp(){return this.$$.ctx[0]}set isNativeApp(t){this.$$set({isNativeApp:t}),S()}get mode(){return this.$$.ctx[1]}set mode(t){this.$$set({mode:t}),S()}get isFromLogin(){return this.$$.ctx[14]}set isFromLogin(t){this.$$set({isFromLogin:t}),S()}get isLoading(){return this.$$.ctx[2]}set isLoading(t){this.$$set({isLoading:t}),S()}}var An;!function(t,e,n){let i=class extends M{constructor(){super(t,n,true),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};Object.keys(e).forEach((t=>{Object.defineProperty(i.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(n){n=N(t,n,e),this.$$d[t]=n,this.$$c?.$set({[t]:n})}})})),[].forEach((t=>{Object.defineProperty(i.prototype,t,{get(){return this.$$c?.[t]}})})),t.element=i}(Tn,{lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},isNativeApp:{type:"Boolean"},mode:{},isFromLogin:{type:"Boolean"},isLoading:{type:"Boolean"}},[]),customElements.define=(An=customElements.define,function(...t){try{return An.apply(this,t)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}),!customElements.get("player-account-biometrics-action")&&customElements.define("player-account-biometrics-action",Tn.element);
|
|
1
|
+
function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function r(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...n){if(null==e){for(const t of n)t(void 0);return t}const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}function h(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t){return document.createElement(t)}function l(t){return document.createTextNode(t)}function f(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e,n){t.classList.toggle(e,!!n)}let d;function B(t){d=t}const p=[],g=[];let H=[];const v=[],w=Promise.resolve();let y=!1;function E(t){H.push(t)}const T=new Set;let A=0;function S(){if(0!==A)return;const t=d;do{try{for(;A<p.length;){const t=p[A];A++,B(t),O(t.$$)}}catch(t){throw p.length=0,A=0,t}for(B(null),p.length=0,A=0;g.length;)g.pop()();for(let t=0;t<H.length;t+=1){const e=H[t];T.has(e)||(T.add(e),e())}H.length=0}while(p.length);for(;v.length;)v.pop()();y=!1,T.clear(),B(t)}function O(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const L=new Set;function _(o,s,h,c,u,l,f=null,b=[-1]){const m=d;B(o);const g=o.$$={fragment:null,ctx:[],props:l,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:n(),dirty:b,skip_bound:!1,root:s.target||m.$$.root};f&&f(g.root);let H=!1;if(g.ctx=h?h(o,s.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return g.ctx&&u(g.ctx[t],g.ctx[t]=i)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](i),H&&function(t,e){-1===t.$$.dirty[0]&&(p.push(t),y||(y=!0,w.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(o,t)),e})):[],g.update(),H=!0,i(g.before_update),g.fragment=!!c&&c(g.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);g.fragment&&g.fragment.l(t),t.forEach(a)}else g.fragment&&g.fragment.c();s.intro&&function(t){t&&t.i&&(L.delete(t),t.i(void 0))}(o.$$.fragment),function(t,n,o){const{fragment:s,after_update:h}=t.$$;s&&s.m(n,o),E((()=>{const n=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...n):i(n),t.$$.on_mount=[]})),h.forEach(E)}(o,s.target,s.anchor),S()}B(m)}let M;function N(t,e,n,i){const r=n[t]?.type;if(e="Boolean"===r&&"boolean"!=typeof e?null!=e:e,!i||!n[t])return e;if("toAttribute"===i)switch(r){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}"function"==typeof HTMLElement&&(M=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=u("slot"),"default"!==t&&b(e,"name",t)},m:function(t,n){c(t,e,n)},d:function(t){t&&a(e)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const t of this.attributes){const e=this.$$g_p(t.name);e in this.$$d||(this.$$d[e]=N(e,t.value,this.$$p_d,"toProp"))}for(const t in this.$$p_d)!(t in this.$$d)&&void 0!==this[t]&&(this.$$d[t]=this[t],delete this[t]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const i=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=N(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const t in this.$$l)for(const e of this.$$l[t]){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=N(t,n,this.$$p_d,"toProp"),this.$$c?.$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((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class k{$$=void 0;$$set=void 0;$destroy(){(function(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];H.forEach((i=>-1===t.indexOf(i)?e.push(i):n.push(i))),n.forEach((t=>t())),H=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])})(this,1),this.$destroy=t}$on(e,n){if(!r(n))return t;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const D=[];function I(e,n=t){let i;const r=new Set;function s(t){if(o(e,t)&&(e=t,i)){const t=!D.length;for(const t of r)t[1](),D.push(t,e);if(t){for(let t=0;t<D.length;t+=2)D[t][0](D[t+1]);D.length=0}}}function h(t){s(t(e))}return{set:s,update:h,subscribe:function(o,c=t){const a=[o,c];return r.add(a),1===r.size&&(i=n(s,h)||t),o(e),()=>{r.delete(a),0===r.size&&i&&(i(),i=null)}}}}function R(e,n,o){const h=!Array.isArray(e),c=h?[e]:e;if(!c.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return function(t,e){return{subscribe:I(t,e).subscribe}}(o,((e,o)=>{let u=!1;const l=[];let f=0,b=t;const m=()=>{if(f)return;b();const i=n(h?l[0]:l,e,o);a?e(i):b=r(i)?i:t},d=c.map(((t,e)=>s(t,(t=>{l[e]=t,f&=~(1<<e),u&&m()}),(()=>{f|=1<<e}))));return u=!0,m(),function(){i(d),b(),u=!1}}))}function C(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j=function(t){return!(!(e=t)||"object"!=typeof e||function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===G}(t)}(t));var e},G="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(t,e){return!1!==e.clone&&e.isMergeableObject(t)?$(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function P(t,e,n){return t.concat(e).map((function(t){return x(t,n)}))}function U(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function F(t,e){try{return e in t}catch{return!1}}function $(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||P,n.isMergeableObject=n.isMergeableObject||j,n.cloneUnlessOtherwiseSpecified=x;var i=Array.isArray(e);return i===Array.isArray(t)?i?n.arrayMerge(t,e,n):function(t,e,n){var i={};return n.isMergeableObject(t)&&U(t).forEach((function(e){i[e]=x(t[e],n)})),U(e).forEach((function(r){(function(t,e){return F(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(i[r]=F(t,r)&&n.isMergeableObject(e[r])?function(t,e){if(!e.customMerge)return $;var n=e.customMerge(t);return"function"==typeof n?n:$}(r,n)(t[r],e[r],n):x(e[r],n))})),i}(t,e,n):x(e,n)}$.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return $(t,n,e)}),{})};const K=C($);var V=function(t,e){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function X(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}V(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Z=function(){return Z=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Z.apply(this,arguments)};function W(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function Y(t,e){return(e&&e.strategy?e.strategy:q)(t,{cache:e&&e.cache?e.cache:st,serializer:e&&e.serializer?e.serializer:rt})}function z(t,e,n,i){var r=function(t){return null==t||"number"==typeof t||"boolean"==typeof t}(i)?i:n(i),o=e.get(r);return typeof o>"u"&&(o=t.call(this,i),e.set(r,o)),o}function J(t,e,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=e.get(r);return typeof o>"u"&&(o=t.apply(this,i),e.set(r,o)),o}function Q(t,e,n,i,r){return n.bind(e,t,i,r)}function q(t,e){return Q(t,this,1===t.length?z:J,e.cache.create(),e.serializer)}var tt,et,nt,it,rt=function(){return JSON.stringify(arguments)},ot=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),st={create:function(){return new ot}},ht={variadic:function(t,e){return Q(t,this,J,e.cache.create(),e.serializer)}},ct=function(){return ct=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ct.apply(this,arguments)};function at(t){return t.type===nt.literal}function ut(t){return t.type===nt.argument}function lt(t){return t.type===nt.number}function ft(t){return t.type===nt.date}function bt(t){return t.type===nt.time}function mt(t){return t.type===nt.select}function dt(t){return t.type===nt.plural}function Bt(t){return t.type===nt.pound}function pt(t){return t.type===nt.tag}function gt(t){return!(!t||"object"!=typeof t||t.type!==it.number)}function Ht(t){return!(!t||"object"!=typeof t||t.type!==it.dateTime)}(et=tt||(tt={}))[et.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",et[et.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",et[et.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",et[et.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",et[et.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",et[et.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",et[et.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",et[et.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",et[et.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",et[et.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",et[et.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",et[et.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",et[et.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",et[et.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",et[et.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",et[et.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",et[et.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",et[et.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",et[et.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",et[et.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",et[et.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",et[et.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",et[et.INVALID_TAG=23]="INVALID_TAG",et[et.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",et[et.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",et[et.UNCLOSED_TAG=27]="UNCLOSED_TAG",function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(nt||(nt={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(it||(it={}));var vt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wt=/(?:[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 yt(t){var e={};return t.replace(wt,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"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":e.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":e.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":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][n-1];break;case"s":e.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":e.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""})),e}var Et=function(){return Et=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Et.apply(this,arguments)},Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function At(t){return t.replace(/^(.*?)-/,"")}var St=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ot=/^(@+)?(\+|#+)?[rs]?$/g,Lt=/(\*)(0+)|(#+)(0+)|(0+)/g,_t=/^(0+)$/;function Mt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Ot,(function(t,n,i){return"string"!=typeof i?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===i?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof i?i.length:0)),""})),e}function Nt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function kt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!_t.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Dt(t){return Nt(t)||{}}function It(t){for(var e={},n=0,i=t;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=r.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=At(r.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Et(Et(Et({},e),{notation:"scientific"}),r.options.reduce((function(t,e){return Et(Et({},t),Dt(e))}),{}));continue;case"engineering":e=Et(Et(Et({},e),{notation:"engineering"}),r.options.reduce((function(t,e){return Et(Et({},t),Dt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Lt,(function(t,n,i,r,o,s){if(n)e.minimumIntegerDigits=i.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(_t.test(r.stem))e.minimumIntegerDigits=r.stem.length;else if(St.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(St,(function(t,n,i,r,o,s){return"*"===i?e.minimumFractionDigits=n.length:r&&"#"===r[0]?e.maximumFractionDigits=r.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var o=r.options[0];"w"===o?e=Et(Et({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Et(Et({},e),Mt(o)))}else if(Ot.test(r.stem))e=Et(Et({},e),Mt(r.stem));else{var s=Nt(r.stem);s&&(e=Et(Et({},e),s));var h=kt(r.stem);h&&(e=Et(Et({},e),h))}}return e}var Rt={"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 Ct(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,i=t.language;return"root"!==i&&(n=t.maximize().region),(Rt[n||""]||Rt[i||""]||Rt["".concat(i,"-001")]||Rt["001"])[0]}var jt,Gt=new RegExp("^".concat(vt.source,"*")),xt=new RegExp("".concat(vt.source,"*$"));function Pt(t,e){return{start:t,end:e}}var Ut=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ft=!!String.fromCodePoint,$t=!!Object.fromEntries,Kt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,Xt=!!String.prototype.trimEnd,Zt=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Wt=!0;try{Wt="a"===(null===(jt=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===jt?void 0:jt[0])}catch{Wt=!1}var Yt,zt=Ut?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},Jt=Ft?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,i="",r=t.length,o=0;r>o;){if((n=t[o++])>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},Qt=$t?Object.fromEntries:function(t){for(var e={},n=0,i=t;n<i.length;n++){var r=i[n];e[r[0]]=r[1]}return e},qt=Kt?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||e>=n)){var i,r=t.charCodeAt(e);return r<55296||r>56319||e+1===n||(i=t.charCodeAt(e+1))<56320||i>57343?r:i-56320+(r-55296<<10)+65536}},te=Vt?function(t){return t.trimStart()}:function(t){return t.replace(Gt,"")},ee=Xt?function(t){return t.trimEnd()}:function(t){return t.replace(xt,"")};function ne(t,e){return new RegExp(t,e)}if(Wt){var ie=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yt=function(t,e){var n;return ie.lastIndex=e,null!==(n=ie.exec(t)[1])&&void 0!==n?n:""}}else Yt=function(t,e){for(var n=[];;){var i=qt(t,e);if(void 0===i||ce(i)||ae(i))break;n.push(i),e+=i>=65536?2:1}return Jt.apply(void 0,n)};var re,oe=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var i=[];!this.isEOF();){var r=this.char();if(123===r){if((o=this.parseArgument(t,n)).err)return o;i.push(o.val)}else{if(125===r&&t>0)break;if(35!==r||"plural"!==e&&"selectordinal"!==e){if(60===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(tt.UNMATCHED_CLOSING_TAG,Pt(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&se(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;i.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;i.push(o.val)}}else{var s=this.clonePosition();this.bump(),i.push({type:nt.pound,location:Pt(s,this.clonePosition())})}}}return{val:i,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:nt.literal,value:"<".concat(i,"/>"),location:Pt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(t+1,e,!0);if(r.err)return r;var o=r.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!se(this.char()))return this.error(tt.INVALID_TAG,Pt(s,this.clonePosition()));var h=this.clonePosition();return i!==this.parseTagName()?this.error(tt.UNMATCHED_CLOSING_TAG,Pt(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:i,children:o,location:Pt(n,this.clonePosition())},err:null}:this.error(tt.INVALID_TAG,Pt(s,this.clonePosition())))}return this.error(tt.UNCLOSED_TAG,Pt(n,this.clonePosition()))}return this.error(tt.INVALID_TAG,Pt(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&he(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),i="";;){var r=this.tryParseQuote(e);if(r)i+=r;else{var o=this.tryParseUnquoted(t,e);if(o)i+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;i+=s}}}var h=Pt(n,this.clonePosition());return{val:{type:nt.literal,value:i,location:h},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return se(t)||47===t}(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return Jt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),Jt(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(tt.EMPTY_ARGUMENT,Pt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(tt.MALFORMED_ARGUMENT,Pt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:nt.argument,value:i,location:Pt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(n,this.clonePosition())):this.parseArgumentOptions(t,e,i,n);default:return this.error(tt.MALFORMED_ARGUMENT,Pt(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=Yt(this.message,e);return this.bumpTo(e+n.length),{value:n,location:Pt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,i){var r,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(tt.EXPECT_ARGUMENT_TYPE,Pt(o,h));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var a=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(b=ee(p.val)).length)return this.error(tt.EXPECT_ARGUMENT_STYLE,Pt(this.clonePosition(),this.clonePosition()));c={style:b,styleLocation:Pt(a,this.clonePosition())}}if((g=this.tryParseArgumentClose(i)).err)return g;var u=Pt(i,this.clonePosition());if(c&&zt(c?.style,"::",0)){var l=te(c.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(l,c.styleLocation)).err?p:{val:{type:nt.number,value:n,location:u,style:p.val},err:null};if(0===l.length)return this.error(tt.EXPECT_DATE_TIME_SKELETON,u);var f=l;this.locale&&(f=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t.charAt(i);if("j"===r){for(var o=0;i+1<t.length&&t.charAt(i+1)===r;)o++,i++;var s=1+(1&o),h=o<2?1:3+(o>>1),c=Ct(e);for(("H"==c||"k"==c)&&(h=0);h-- >0;)n+="a";for(;s-- >0;)n=c+n}else n+="J"===r?"H":r}return n}(l,this.locale));var b={type:it.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?yt(f):{}};return{val:{type:"date"===s?nt.date:nt.time,value:n,location:u,style:b},err:null}}return{val:{type:"number"===s?nt.number:"date"===s?nt.date:nt.time,value:n,location:u,style:null!==(r=c?.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(tt.EXPECT_SELECT_ARGUMENT_OPTIONS,Pt(m,ct({},m)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),B=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pt(this.clonePosition(),this.clonePosition()));var p;if(this.bumpSpace(),(p=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,tt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),d=this.parseIdentifierIfPossible(),B=p.val}var g,H=this.tryParsePluralOrSelectOptions(t,s,e,d);if(H.err)return H;if((g=this.tryParseArgumentClose(i)).err)return g;var v=Pt(i,this.clonePosition());return"select"===s?{val:{type:nt.select,value:n,options:Qt(H.val),location:v},err:null}:{val:{type:nt.plural,value:n,options:Qt(H.val),offset:B,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(tt.INVALID_ARGUMENT_TYPE,Pt(o,h))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(tt.EXPECT_ARGUMENT_CLOSING_BRACE,Pt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(tt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Pt(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,i=t.split(Tt).filter((function(t){return t.length>0}));n<i.length;n++){var r=i[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],s=r.slice(1),h=0,c=s;h<c.length;h++)if(0===c[h].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch{return this.error(tt.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?It(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,i){for(var r,o=!1,s=[],h=new Set,c=i.value,a=i.location;;){if(0===c.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,tt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;a=Pt(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(h.has(c))return this.error("select"===e?tt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:tt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,a);"other"===c&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?tt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Pt(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,e,n);if(b.err)return b;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([c,{value:b.val,location:Pt(f,this.clonePosition())}]),h.add(c),this.bumpSpace(),c=(r=this.parseIdentifierIfPossible()).value,a=r.location}return 0===s.length?this.error("select"===e?tt.EXPECT_SELECT_ARGUMENT_SELECTOR:tt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(tt.MISSING_OTHER_CLAUSE,Pt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;r=!0,o=10*o+(s-48),this.bump()}var h=Pt(i,this.clonePosition());return r?Zt(o*=n)?{val:o,err:null}:this.error(e,h):this.error(t,h)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=qt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.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 e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset();return this.message.charCodeAt(e+(t>=65536?2:1))??null},t}();function se(t){return t>=97&&t<=122||t>=65&&t<=90}function he(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ce(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ae(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ue(t){t.forEach((function(t){if(delete t.location,mt(t)||dt(t))for(var e in t.options)delete t.options[e].location,ue(t.options[e].value);else lt(t)&>(t.style)||(ft(t)||bt(t))&&Ht(t.style)?delete t.style.location:pt(t)&&ue(t.children)}))}function le(t,e){void 0===e&&(e={}),e=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new oe(t,e).parse();if(n.err){var i=SyntaxError(tt[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return e?.captureLocation||ue(n.val),n.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(re||(re={}));var fe,be=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.code=n,r.originalMessage=i,r}return X(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),me=function(t){function e(e,n,i,r){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),re.INVALID_VALUE,r)||this}return X(e,t),e}(be),de=function(t){function e(e,n,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),re.INVALID_VALUE,i)||this}return X(e,t),e}(be),Be=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),re.MISSING_VALUE,n)||this}return X(e,t),e}(be);function pe(t){return"function"==typeof t}function ge(t,e,n,i,r,o,s){if(1===t.length&&at(t[0]))return[{type:fe.literal,value:t[0].value}];for(var h=[],c=0,a=t;c<a.length;c++){var u=a[c];if(at(u))h.push({type:fe.literal,value:u.value});else if(Bt(u))"number"==typeof o&&h.push({type:fe.literal,value:n.getNumberFormat(e).format(o)});else{var l=u.value;if(!r||!(l in r))throw new Be(l,s);var f=r[l];if(ut(u))(!f||"string"==typeof f||"number"==typeof f)&&(f="string"==typeof f||"number"==typeof f?String(f):""),h.push({type:"string"==typeof f?fe.literal:fe.object,value:f});else if(ft(u)){var b="string"==typeof u.style?i.date[u.style]:Ht(u.style)?u.style.parsedOptions:void 0;h.push({type:fe.literal,value:n.getDateTimeFormat(e,b).format(f)})}else if(bt(u))b="string"==typeof u.style?i.time[u.style]:Ht(u.style)?u.style.parsedOptions:i.time.medium,h.push({type:fe.literal,value:n.getDateTimeFormat(e,b).format(f)});else if(lt(u))(b="string"==typeof u.style?i.number[u.style]:gt(u.style)?u.style.parsedOptions:void 0)&&b.scale&&(f*=b.scale||1),h.push({type:fe.literal,value:n.getNumberFormat(e,b).format(f)});else{if(pt(u)){var m=u.children,d=u.value,B=r[d];if(!pe(B))throw new de(d,"function",s);var p=B(ge(m,e,n,i,r,o).map((function(t){return t.value})));Array.isArray(p)||(p=[p]),h.push.apply(h,p.map((function(t){return{type:"string"==typeof t?fe.literal:fe.object,value:t}})))}if(mt(u)){if(!(g=u.options[f]||u.options.other))throw new me(u.value,f,Object.keys(u.options),s);h.push.apply(h,ge(g.value,e,n,i,r))}else if(dt(u)){var g;if(!(g=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new be('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',re.MISSING_INTL_API,s);var H=n.getPluralRules(e,{type:u.pluralType}).select(f-(u.offset||0));g=u.options[H]||u.options.other}if(!g)throw new me(u.value,f,Object.keys(u.options),s);h.push.apply(h,ge(g.value,e,n,i,r,f-(u.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&n.type===fe.literal&&e.type===fe.literal?n.value+=e.value:t.push(e),t}),[])}(h)}function He(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(fe||(fe={}));var ve=function(){function t(e,n,i,r){void 0===n&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=o.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===fe.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return ge(o.ast,o.locales,o.formatters,o.formats,t,void 0,o.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=o.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(r||{},["formatters"]);this.ast=t.__parse(e,Z(Z({},s),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(t,e){return e?Object.keys(t).reduce((function(n,i){return n[i]=function(t,e){return e?Z(Z(Z({},t||{}),e||{}),Object.keys(t).reduce((function(n,i){return n[i]=Z(Z({},t[i]),e[i]||{}),n}),{})):t}(t[i],e[i]),n}),Z({},t)):t}(t.formats,i),this.formatters=r&&r.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Y((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,W([void 0],e,!1)))}),{cache:He(t.number),strategy:ht.variadic}),getDateTimeFormat:Y((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,W([void 0],e,!1)))}),{cache:He(t.dateTime),strategy:ht.variadic}),getPluralRules:Y((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,W([void 0],e,!1)))}),{cache:He(t.pluralRules),strategy:ht.variadic})}}(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=le,t.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"}}},t}();const we={},ye=(t,e,n)=>n&&(e in we||(we[e]={}),t in we[e]||(we[e][t]=n),n),Ee=(t,e)=>{if(null==e)return;if(e in we&&t in we[e])return we[e][t];const n=Ze(e);for(let i=0;i<n.length;i++){const r=Oe(n[i],t);if(r)return ye(t,e,r)}};let Te;const Ae=I({});function Se(t){return t in Te}function Oe(t,e){if(!Se(t))return null;const n=function(t){return Te[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let i=t;for(let t=0;t<n.length;t++)if("object"==typeof i){if(t>0){const e=n.slice(t,n.length).join(".");if(e in i){i=i[e];break}}i=i[n[t]]}else i=void 0;return i}(n,e)}function Le(t,...e){delete we[t],Ae.update((n=>(n[t]=K.all([n[t]||{},...e]),n)))}R([Ae],(([t])=>Object.keys(t))),Ae.subscribe((t=>Te=t));const _e={};function Me(t){return _e[t]}function Ne(t){return null!=t&&Ze(t).some((t=>{var e;return null==(e=Me(t))?void 0:e.size}))}const ke={};function De(t){if(!Ne(t))return t in ke?ke[t]:Promise.resolve();const e=function(t){return Ze(t).map((t=>{const e=Me(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return ke[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){_e[t].delete(e),0===_e[t].size&&delete _e[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>Le(t,...e)))}(t,e)))).then((()=>{if(Ne(t))return De(t);delete ke[t]})),ke[t]}const Ie={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Re(){return Ie}const Ce=I(!1);var je=Object.defineProperty,Ge=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,$e=(t,e,n)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let Ke;const Ve=I(null);function Xe(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Ze(t,e=Re().fallbackLocale){const n=Xe(t);return e?[...new Set([...n,...Xe(e)])]:n}function We(){return Ke??void 0}Ve.subscribe((t=>{Ke=t??void 0,typeof window<"u"&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ye=((t,e)=>Ge(t,xe(e)))(((t,e)=>{for(var n in e||(e={}))Ue.call(e,n)&&$e(t,n,e[n]);if(Pe)for(var n of Pe(e))Fe.call(e,n)&&$e(t,n,e[n]);return t})({},Ve),{set:t=>{if(t&&function(t){if(null==t)return;const e=Ze(t);for(let t=0;t<e.length;t++){const n=e[t];if(Se(n))return n}}(t)&&Ne(t)){const{loadingDelay:e}=Re();let n;return typeof window<"u"&&null!=We()&&e?n=window.setTimeout((()=>Ce.set(!0)),e):Ce.set(!0),De(t).then((()=>{Ve.set(t)})).finally((()=>{clearTimeout(n),Ce.set(!1)}))}return Ve.set(t)}}),ze=t=>{const e=Object.create(null);return n=>{const i=JSON.stringify(n);return i in e?e[i]:e[i]=t(n)}};var Je=Object.defineProperty,Qe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,en=(t,e,n)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nn=(t,e)=>{for(var n in e||(e={}))qe.call(e,n)&&en(t,n,e[n]);if(Qe)for(var n of Qe(e))tn.call(e,n)&&en(t,n,e[n]);return t},rn=(t,e)=>{var n={};for(var i in t)qe.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&Qe)for(var i of Qe(t))e.indexOf(i)<0&&tn.call(t,i)&&(n[i]=t[i]);return n};const on=(t,e)=>{const{formats:n}=Re();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},sn=ze((t=>{var e=t,{locale:n,format:i}=e,r=rn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=on("number",i)),new Intl.NumberFormat(n,r)})),hn=ze((t=>{var e=t,{locale:n,format:i}=e,r=rn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=on("date",i):0===Object.keys(r).length&&(r=on("date","short")),new Intl.DateTimeFormat(n,r)})),cn=ze((t=>{var e=t,{locale:n,format:i}=e,r=rn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=on("time",i):0===Object.keys(r).length&&(r=on("time","short")),new Intl.DateTimeFormat(n,r)})),an=ze(((t,e=We())=>new ve(t,e,Re().formats,{ignoreTag:Re().ignoreTag}))),un=(t,e={})=>{var n,i,r,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:h,locale:c=We(),default:a}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ee(t,c);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(r=null==(i=(n=Re()).handleMissingMessage)?void 0:i.call(n,{locale:c,id:t,defaultValue:a}))?r:a)?o:t;if(!h)return u;let l=u;try{l=an(u,c).format(h)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},ln=(t,e)=>((t={})=>{var e=t,{locale:n=We()}=e,i=rn(e,["locale"]);return cn(nn({locale:n},i))})(e).format(t),fn=(t,e)=>((t={})=>{var e=t,{locale:n=We()}=e,i=rn(e,["locale"]);return hn(nn({locale:n},i))})(e).format(t),bn=(t,e)=>((t={})=>{var e=t,{locale:n=We()}=e,i=rn(e,["locale"]);return sn(nn({locale:n},i))})(e).format(t),mn=(t,e=We())=>Ee(t,e),dn=R([Ye,Ae],(()=>un));R([Ye],(()=>ln)),R([Ye],(()=>fn)),R([Ye],(()=>bn)),R([Ye,Ae],(()=>mn));const Bn={en:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"zh-hk":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},fr:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},tr:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},ro:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},es:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},pt:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},hr:{btnEnableBiometrics:"Omogući biometriju",btnDisableBiometrics:"Onemogući biometriju",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"pt-br":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"es-mx":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"en-us":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"}},pn="__WIDGET_GLOBAL_STYLE_CACHE__";function gn(t){!function(t,e,n){const i=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!i.getElementById(e)){const t=u("style");t.id=e,t.textContent=n,function(t,e){h(t.head||t,e)}(i,t)}}(t,"svelte-4r3z7g",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.toggle-content{display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:20px;cursor:pointer;gap:10px}.toggle-content:disabled{cursor:not-allowed}.toggle-content .skip-switch{display:inline-flex;align-items:center;position:relative;height:20px;vertical-align:middle;transition:opacity 0.2s}.toggle-content .skip-switch.disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.toggle-content .skip-switch.checked .skip-switch-core{border-color:var(--emw--color-primary, #22b04e);background:var(--emw--color-primary, #22b04e)}.toggle-content .skip-switch.checked .skip-switch-core::after{transform:translateX(14px)}.toggle-content .skip-switch .skip-switch-input{position:absolute;width:0;height:0;opacity:0;margin:0}.toggle-content .skip-switch .skip-switch-core{width:34px;height:20px;border-radius:20px;border:1px solid var(--emw--color-gray-300, #ababab);background:var(--emw--color-gray-300, #ababab);position:relative;cursor:pointer;transition:background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1)}.toggle-content .skip-switch .skip-switch-core::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;transform:translateX(0);transition:transform 0.25s cubic-bezier(0.22, 1, 0.36, 1)}.skip-switch.shake{animation:shake 0.4s ease}@keyframes shake{0%{transform:translateX(0)}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}100%{transform:translateX(0)}}.BiometricsToggle{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));color:var(--emw--button-typography, var(--emw--color-white, #ffffff));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsToggle:disabled{opacity:0.6;cursor:not-allowed}')}function Hn(t){let e;function n(t){return"button"===t[1]?wn:"switch"===t[1]?vn:void 0}let i=n(t),r=i&&i(t);return{c(){e=u("div"),r&&r.c()},m(n,i){c(n,e,i),r&&r.m(e,null),t[17](e)},p(t,o){i===(i=n(t))&&r?r.p(t,o):(r&&r.d(1),r=i&&i(t),r&&(r.c(),r.m(e,null)))},d(n){n&&a(e),r&&r.d(),t[17](null)}}}function vn(t){let e,n,i,r,o;return{c(){e=u("button"),n=u("div"),n.innerHTML='<input type="checkbox" class="skip-switch-input"/> <span class="skip-switch-core"></span>',b(n,"class","skip-switch"),m(n,"checked",t[4]),m(n,"disabled",t[5]||t[2]),m(n,"shake",t[6]),b(e,"class","toggle-content"),e.disabled=i=t[5]||t[2]},m(i,s){c(i,e,s),h(e,n),r||(o=f(e,"click",t[8]),r=!0)},p(t,r){16&r&&m(n,"checked",t[4]),36&r&&m(n,"disabled",t[5]||t[2]),64&r&&m(n,"shake",t[6]),36&r&&i!==(i=t[5]||t[2])&&(e.disabled=i)},d(t){t&&a(e),r=!1,o()}}}function wn(t){let e,n,i,r,o,s=t[7](t[4]?"btnDisableBiometrics":"btnEnableBiometrics")+"";return{c(){e=u("button"),n=l(s),b(e,"class","BiometricsToggle"),e.disabled=i=t[5]||t[2]},m(i,s){c(i,e,s),h(e,n),r||(o=f(e,"click",t[16]),r=!0)},p(t,r){144&r&&s!==(s=t[7](t[4]?"btnDisableBiometrics":"btnEnableBiometrics")+"")&&function(t,e){t.data!==(e=""+e)&&(t.data=e)}(n,s),36&r&&i!==(i=t[5]||t[2])&&(e.disabled=i)},d(t){t&&a(e),r=!1,o()}}}function yn(e){let n,i=e[0]&&Hn(e);return{c(){i&&i.c(),n=l("")},m(t,e){i&&i.m(t,e),c(t,n,e)},p(t,[e]){t[0]?i?i.p(t,e):(i=Hn(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){t&&a(n),i&&i.d(t)}}}function En(t,e,n){let i;!function(t,e,n){t.$$.on_destroy.push(s(dn,n))}(t,0,(t=>n(7,i=t)));let r,o,{lang:h="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:a=""}=e,{mbsource:u}=e,{translationurl:l=""}=e,{isNativeApp:f=!1}=e,{mode:b="button"}=e,{isFromLogin:m=!1}=e,{isLoading:B=!1}=e,p=null,H=!1,v=!1,w=!1;const y=t=>{Object.keys(t).forEach((e=>{!function(t,e){Le(t,e)}(e,t[e])}))};y(Bn);let E=!1;const T=()=>{p&&clearTimeout(p),p=setTimeout((()=>{n(5,v=!1),n(6,E=!0),setTimeout((()=>{n(6,E=!1)}),500),L("error",i("errorMessage"))}),3e3)},A=async()=>{v||(n(5,v=!0),w=!0,window.postMessage({type:"ToggleBiometrics",data:`${!H}`,isFromLogin:m}),T())},S=t=>{"NativeAppReady"===t.data?.type&&(n(0,f=!0),O()),"BiometricsStatus"===t.data?.type&&(n(4,H=t.data.status||!1),n(5,v=!1),p&&(clearTimeout(p),p=null),w&&(m||L("success",i(H?"successEnableBiometrics":"successDisableBiometrics"))),w=!1)},O=()=>{n(5,v=!0),window.postMessage({type:"GetBiometricsStatus"}),T()},L=(t,e)=>{window.postMessage({type:"WidgetNotification",data:{type:t,message:e,config:{clearBefore:!0}}},window.location.href)};return function(t){(function(){if(!d)throw new Error("Function called outside component initialization");return d})().$$.on_mount.push(t)}((()=>(window.addEventListener("message",S),!0===f?O():window.postMessage({type:"CheckNativeApp"}),()=>{window.removeEventListener("message",S),o&&o.unsubscribe(),p&&clearTimeout(p)}))),t.$$set=t=>{"lang"in t&&n(9,h=t.lang),"clientstyling"in t&&n(10,c=t.clientstyling),"clientstylingurl"in t&&n(11,a=t.clientstylingurl),"mbsource"in t&&n(12,u=t.mbsource),"translationurl"in t&&n(13,l=t.translationurl),"isNativeApp"in t&&n(0,f=t.isNativeApp),"mode"in t&&n(1,b=t.mode),"isFromLogin"in t&&n(14,m=t.isFromLogin),"isLoading"in t&&n(2,B=t.isLoading)},t.$$.update=()=>{512&t.$$.dirty&&h&&function(t){Ye.set(t)}(h),1032&t.$$.dirty&&c&&r&&function(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}(r,c),2056&t.$$.dirty&&a&&r&&function(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then((t=>t.text())).then((e=>{const n=document.createElement("style");n.innerHTML=e,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}(r,a),4104&t.$$.dirty&&u&&r&&function(t,e,n,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return n=function(t,e){const n=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(n.innerHTML=e,t.appendChild(n))}))}(t,e),n;window[pn]||(window[pn]={}),n=function(t,e){return window.emMessageBus.subscribe(e,(n=>{if(!t)return;const i=t.getRootNode(),r=window[pn];let o=r[e]&&r[e].sheet;o?r[e].refCount=r[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),r[e]={sheet:o,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(o)||(i.adoptedStyleSheets=[...s,o])}))}(t,e);const r=n.unsubscribe.bind(n);n.unsubscribe=()=>{if(window[pn][e]){const t=window[pn][e];t.refCount>1?t.refCount=t.refCount-1:delete window[pn][e]}r()}}(r,`${u}.Style`,void 0),8192&t.$$.dirty&&l&&fetch(l).then((t=>t.json())).then((t=>{y(t)})).catch((t=>{console.log(t)})),45056&t.$$.dirty&&u&&!l&&n(15,o=function(t,e,n){return window.emMessageBus&&(e=window.emMessageBus.subscribe(t,n)),e}(`${u}.Translation`,o,y))},[f,b,B,r,H,v,E,i,A,h,c,a,u,l,m,o,()=>A(),function(t){g[t?"unshift":"push"]((()=>{r=t,n(3,r)}))}]}class Tn extends k{constructor(t){super(),_(this,t,En,yn,o,{lang:9,clientstyling:10,clientstylingurl:11,mbsource:12,translationurl:13,isNativeApp:0,mode:1,isFromLogin:14,isLoading:2},gn)}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),S()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),S()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),S()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),S()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),S()}get isNativeApp(){return this.$$.ctx[0]}set isNativeApp(t){this.$$set({isNativeApp:t}),S()}get mode(){return this.$$.ctx[1]}set mode(t){this.$$set({mode:t}),S()}get isFromLogin(){return this.$$.ctx[14]}set isFromLogin(t){this.$$set({isFromLogin:t}),S()}get isLoading(){return this.$$.ctx[2]}set isLoading(t){this.$$set({isLoading:t}),S()}}var An;!function(t,e,n){let i=class extends M{constructor(){super(t,n,true),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};Object.keys(e).forEach((t=>{Object.defineProperty(i.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(n){n=N(t,n,e),this.$$d[t]=n,this.$$c?.$set({[t]:n})}})})),[].forEach((t=>{Object.defineProperty(i.prototype,t,{get(){return this.$$c?.[t]}})})),t.element=i}(Tn,{lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},isNativeApp:{type:"Boolean"},mode:{},isFromLogin:{type:"Boolean"},isLoading:{type:"Boolean"}},[]),customElements.define=(An=customElements.define,function(...t){try{return An.apply(this,t)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}),!customElements.get("player-account-biometrics-action")&&customElements.define("player-account-biometrics-action",Tn.element);
|
|
@@ -6654,4 +6654,4 @@ Lt("vaadin-tabs",E`
|
|
|
6654
6654
|
</div>
|
|
6655
6655
|
|
|
6656
6656
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6657
|
-
`}static get is(){return"vaadin-tabs"}}y(gl);const yl=class{constructor(e){t(this,e),this.errorCode="",this.messageHandler=async t=>{var e;"NativeAppReady"===(null===(e=t.data)||void 0===e?void 0:e.type)&&(this.isNativeApp=!0,this.biometricsLoaded||(await import("./player-account-biometrics-action-62384811.js"),this.biometricsLoaded=!0))},this.checkNativeApp=()=>{window.postMessage({type:"CheckNativeApp"})},this.getPhoneCodes=()=>{const t=new URL(`${this.endpoint}/v1/player/operatorSupportedPhoneCodes`);return fetch(t.href).then((t=>t.json())).then((t=>t.phoneCodes.map((t=>({label:t,value:t}))))).catch((t=>console.log("Failed to fetch phone codes:",t)))},this.autofillCredentialsHandler=t=>{const{userNameEmail:e,userPassword:i,userPrefix:o,userPhone:s}=(null==t?void 0:t.detail)||{};this.userNameEmail=e,this.userPassword=i,this.userPrefix=o,this.userPhone=s,this.handleLogin()},this.userLoginGm17=async()=>{let t={"Content-Type":"application/json"};const e={contact:this.userNameEmail,password:this.userPassword};this.captchaData.isEnabled&&(t["X-Captcha-Response"]=this.captchaData.token);const i={method:"POST",headers:t,body:JSON.stringify(e)};try{const t=await fetch(`${this.endpoint}/api/v1/players/password-management/auth/password/verify`,i),e=await t.json(),{token:o}=e;if(!o)throw new Error("Token not received from the API call.");await this.sendLegislationLogin(o)}catch(t){console.error(t),this.hasError=!0,this.isLoginLoading=!1,this.errorMessage=s("genericError",this.lang),this.sendErrorNotification(this.errorMessage)}finally{this.isLoginLoading=!1}},this.sendLegislationLogin=async t=>{const e={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t,method:"login"})};try{const t=await fetch(`${this.endpoint}/api/v2/gm/legislation/login`,e),i=await t.json();if(!t.ok){const{message:t,errors:e}=i;throw this.isLoginLoading=!1,console.error(`Legislation login failed: ${t}`,e),new Error("Legislation login request failed.")}{const{sessionId:t,playerId:e}=i;t&&(this.isLoginLoading=!1,window.postMessage({type:"UserSessionID",session:t,userid:e},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:s("successMessage",this.lang)}},window.location.href),this.hasError=!1)}}catch(t){console.error(t),this.hasError=!0,this.isLoginLoading=!1,this.errorMessage=s("genericError",this.lang),this.sendErrorNotification(this.errorMessage)}},this.userLogin=async()=>{const t=new URL(`${this.endpoint}/v1/player/legislation/login`),e=new Headers;e.append("Content-Type","application/json");const i=JSON.stringify({username:"true"===this.loginByPhoneNumber?`${this.userPrefix} ${this.userPhone}`:this.userNameEmail,password:this.userPassword});return fetch(t.href,{method:"POST",headers:e,body:i}).then((t=>t.json())).then((t=>{var e,i,o,r;if((null===(e=t.sessionBlockers)||void 0===e?void 0:e.includes("has-to-set-consents"))&&window.postMessage({type:"PlayerActions",gmversion:"gm16"},window.location.href),!0===(null==t?void 0:t.hasToSetPass))return this.hasError=!0,this.errorMessage=s("setUpPassowrd",this.lang),this.sendErrorNotification(s("setUpPassowrd",this.lang)),void window.postMessage({type:"HasToSetPass"},window.location.href);t.sessionId?(window.postMessage({type:"UserSessionID",session:t.sessionId,userid:t.userId},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:s("successMessage",this.lang)}},window.location.href),this.hasError=!1,((t,e={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:"logged_in",data:e},bubbles:!0,composed:!0});document.dispatchEvent(i)})(0,{userId:t.userId})):(this.hasError=!0,this.errorCode=null!==(o=null===(i=null==t?void 0:t.thirdPartyResponse)||void 0===i?void 0:i.errorCode)&&void 0!==o?o:null==t?void 0:t.errorCode,this.errorMessage="GmErr_USER_AUTH_FAILED"===this.errorCode&&"true"===this.loginByPhoneNumber?s("AuthFailedPhoneNumber",this.lang):s(`${this.errorCode}`,this.lang)||(null===(r=null==t?void 0:t.thirdPartyResponse)||void 0===r?void 0:r.message)||(null==t?void 0:t.message)||s("genericError",this.lang),"GmErr_USER_AUTH_FAILED"!==this.errorCode&&"GmErr_Unauthorized"!==this.errorCode&&"Unauthorized"!==this.errorCode||this.dispatchClearLoginCredentialsEvent(),this.errorMessage&&(console.error(this.errorMessage),this.sendErrorNotification(this.errorMessage)))})).catch((t=>{console.error(t),this.hasError=!0,this.errorMessage=s("genericError",this.lang),this.sendErrorNotification(this.errorMessage)})).finally((()=>{this.isLoginLoading=!1}))},this.handleLogin=()=>{this.isLoginLoading=!0;const t={gm16:this.userLogin,gm17:this.userLoginGm17}[this.version]||this.userLogin;this.debounce((async()=>{await t(),this.dispatchUpdateLoginCredentialsEvent()}),850)()},this.handleSubmit=t=>{"Enter"===t.key&&!this.checkIsDisabled()&&this.handleLogin()},this.handleInputChange=(t,e)=>{var i;const o=t.target.value;switch(e){case"user":this.userNameEmail=o,this.isValidUserEmail=this.validate("user",this.userNameEmail),this.errorForFields[e]=!this.isValidUserEmail||o.length<3;break;case"phone":this.userPhone=o.replace(/[^0-9]/g,""),this.inputUserPhoneReference&&(this.inputUserPhoneReference.value=this.userPhone),this.isValidUserPhone=this.validate("phone",this.userPhone),this.errorForFields[e]=!this.isValidUserPhone&&o.length>3;break;case"prefix":this.userPrefix=o,this.isValidUserPhone=this.validate("phone",this.userPhone),this.errorForFields[e]=!this.isValidUserPhone;break;case"password":this.userPassword=o,this.isValidPassword=this.validate("password",o);const t=Number(null!==(i=null==this?void 0:this.minPassLength)&&void 0!==i?i:3);this.errorForFields[e]=!this.isValidPassword&&o.length>t}},this.handleInputChangePartial=t=>e=>this.handleInputChange(e,t),this.validate=(t,e)=>{let i;switch(t){case"user":return i=new RegExp(this.userEmailRegex,this.userEmailRegexOptions),i.test(e);case"phone":return i=new RegExp(this.userPhoneRegex,this.userPhoneRegexOptions),i.test(e)&&!!this.userPrefix;case"password":return i=new RegExp(this.passwordRegex,this.passwordRegexOptions),i.test(e)}},this.togglePassword=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.resetPassword=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)},this.endpoint="",this.minPassLength=3,this.lang="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.passwordReset="false",this.userEmailRegex=void 0,this.userEmailRegexOptions="i",this.userPhoneRegex=void 0,this.userPhoneRegexOptions="",this.passwordRegex=void 0,this.passwordRegexOptions="",this.version="gm16",this.loginByPhoneNumber="false",this.defaultPrefix=void 0,this.isPrefixEditable="true",this.mbSource=void 0,this.biometricEnabled="false",this.biometricactionmode="switch",this.isFromLogin=!0,this.userNameEmail="",this.userPassword="",this.isValidUserEmail=!0,this.userPhone="",this.userPrefix="",this.isValidPassword=!0,this.isValidUserPhone=!0,this.isPasswordVisible=!1,this.errorMessage="",this.errorForFields={},this.hasError=!1,this.phoneCodes=void 0,this.isLoginLoading=!1,this.captchaData={isEnabled:!0,token:"",provider:"",siteKey:""},this.isNativeApp=!1,this.biometricsLoaded=!1}handleNewTranslations(){o(this.translationUrl)}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl)}async autofillCredentials(t){const{userNameEmail:e,userPassword:i,userPrefix:o,userPhone:s}=t||{};this.userNameEmail=e,this.userPassword=i,this.userPrefix=o,this.userPhone=s,this.handleLogin()}async componentWillLoad(){"true"===this.loginByPhoneNumber&&(this.defaultPrefix&&"false"===this.isPrefixEditable?(this.phoneCodes=[{label:this.defaultPrefix,value:this.defaultPrefix}],this.userPrefix=this.defaultPrefix):(this.phoneCodes=await this.getPhoneCodes(),this.defaultPrefix||"false"!==this.isPrefixEditable?this.defaultPrefix&&"true"===this.isPrefixEditable&&(this.userPrefix=this.defaultPrefix,this.phoneCodes.some((t=>t.value===this.defaultPrefix))||this.phoneCodes.push({label:this.defaultPrefix,value:this.defaultPrefix})):this.userPrefix=this.phoneCodes[0].value)),this.translationUrl.length>2&&await o(this.translationUrl),"gm17"===this.version&&this.getLoginConfig().then((()=>{this.appendCaptchaScript()})).catch((t=>{console.error(t),this.hasError=!0,this.errorMessage=s("configError",this.lang),this.sendErrorNotification(this.errorMessage)})),"true"===this.biometricEnabled&&(window.addEventListener("message",this.messageHandler),this.checkNativeApp())}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e,i,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e);window[r]||(window[r]={});const s=(i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{if(!t)return;const o=t.getRootNode(),s=window[r];let n=s[e]?.sheet;n?s[e].refCount=s[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(i),s[e]={sheet:n,refCount:1});const a=o.adoptedStyleSheets||[];a.includes(n)||(o.adoptedStyleSheets=[...a,n])}))}(t,e)).unsubscribe.bind(i);i.unsubscribe=()=>{if(window[r][e]){const t=window[r][e];t.refCount>1?t.refCount=t.refCount-1:delete window[r][e]}s()}}(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("LoginCredentials",this.autofillCredentialsHandler),window.postMessage({type:"UserLoginDidLoad"})}getLoginConfig(){const t=new URL(`${this.endpoint}/api/v1/players/password-management/auth/password/config`);return new Promise(((e,i)=>{fetch(t.href).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{const{captcha:i}=t;i&&"string"==typeof i.provider&&(i.provider=i.provider.toLowerCase()),this.captchaData=Object.assign({},i),e()})).catch((t=>{console.error("Error fetching login configuration:",t),i(t)}))}))}handleCaptcha(){const{isEnabled:t,provider:e,siteKey:i}=this.captchaData;t&&["cloudflare","google"].includes(e)&&("cloudflare"===e?window.turnstile.render("#turnstileContainer",{sitekey:i,theme:"light",callback:this.captchaCallback.bind(this)}):"google"===e&&window.grecaptcha.ready((()=>{window.grecaptcha.render("googleContainer",{sitekey:i,callback:this.captchaCallback.bind(this),theme:"light"})})))}captchaCallback(t){this.captchaData.token=t,this.captchaData=Object.assign({},this.captchaData)}appendCaptchaScript(){const{isEnabled:t,provider:e}=this.captchaData;if(!t)return;const i=document.createElement("script");"cloudflare"===e?i.src="https://challenges.cloudflare.com/turnstile/v0/api.js":"google"===e&&(i.src="https://www.google.com/recaptcha/api.js"),i.onload=this.handleCaptcha.bind(this),document.head.appendChild(i)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("LoginCredentials",this.autofillCredentialsHandler),window.removeEventListener("message",this.messageHandler)}sendErrorNotification(t){window.postMessage({type:"HasError",error:t},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)}debounce(t,e){let i;return function(...o){clearTimeout(i),i=setTimeout((()=>{t.apply(this,o)}),e)}}dispatchUpdateLoginCredentialsEvent(){this.hasError||(this.updateLoginCredentialsEvent=new CustomEvent("UpdateLoginCredentials",{bubbles:!0,detail:{userNameEmail:null==this?void 0:this.userNameEmail,userPassword:this.userPassword,userPrefix:null==this?void 0:this.userPrefix,userPhone:null==this?void 0:this.userPhone}}),window.dispatchEvent(this.updateLoginCredentialsEvent))}dispatchClearLoginCredentialsEvent(){const t=new CustomEvent("ClearLoginCredentials",{bubbles:!0});window.dispatchEvent(t)}checkIsDisabled(){return Boolean("true"!==this.loginByPhoneNumber&&(!this.isValidUserEmail||!this.userNameEmail)||"true"===this.loginByPhoneNumber&&(!this.isValidUserPhone||!this.userPhone||!this.userPrefix)||!this.userPassword||!this.isValidPassword||this.isLoginLoading||"gm17"===this.version&&this.captchaData.isEnabled&&!this.captchaData.token)}renderVisibilityIcon(){return e("span",{class:"InputIcon"},this.isPasswordVisible&&e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.844",height:"12.887",viewBox:"0 0 18.844 12.887"},e("g",{transform:"translate(-110.856 -23.242)"},e("circle",{class:"PasswordVisibilityIcon",cx:"0.05",cy:"0.05",r:"0.05",transform:"translate(121.017 31.148)"}),e("g",{transform:"translate(117.499 27.37)"},e("path",{class:"PasswordVisibilityIcon",d:"M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z",transform:"translate(-142.164 -39.123)"}),e("path",{class:"PasswordVisibilityIcon",d:"M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z",transform:"translate(-136.413 -42.068)"})),e("g",{transform:"translate(110.856 24.899)"},e("path",{class:"PasswordVisibilityIcon",d:"M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z",transform:"translate(-110.856 -33.157)"}),e("path",{class:"PasswordVisibilityIcon",d:"M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z",transform:"translate(-130.743 -29.617)"})),e("rect",{class:"PasswordVisibilityIcon",width:"0.972",height:"15.861",rx:"0.486",transform:"translate(114.827 23.858) rotate(-39.315)"}))),!this.isPasswordVisible&&e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility PasswordVisible",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.843",height:"10.5",viewBox:"0 0 18.843 10.5"},e("g",{transform:"translate(-14.185 -27.832)"},e("path",{class:"PasswordVisibilityIcon",d:"M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z",transform:"translate(0)"}),e("circle",{class:"PasswordVisibilityIcon",cx:"2.779",cy:"2.779",r:"2.779",transform:"translate(20.827 30.303)"}))))}renderUserIdentification(){return e("div",{class:"FormBox"},e("div",{class:"FormValue",onKeyDown:this.handleSubmit},"true"===this.loginByPhoneNumber?e("div",{class:!this.isValidUserPhone&&this.hasError?"InputBox InputInvalidBox":"InputBox "},e("div",{class:"PhoneInputBox"},e("div",{class:"PrefixBox"},"true"===this.isPrefixEditable?e("vaadin-combo-box",{items:this.phoneCodes,value:this.userPrefix,onChange:this.handleInputChangePartial("prefix")}):e("div",{class:"UneditablePrefix"},this.userPrefix),e("label",{class:(this.userPrefix?"FieldFilledIn":"")+" "+(!this.isValidUserPhone&&this.errorForFields.phone?"FieldInvalid":"")},s("userPrefix",this.lang))),e("div",{class:"PhoneBox"},e("input",{type:"tel",placeholder:"",ref:t=>this.inputUserPhoneReference=t,value:this.userPhone,onFocus:this.handleInputChangePartial("phone"),onInput:this.handleInputChangePartial("phone"),autocapitalize:"none",required:!0}),e("label",{class:(this.userPhone?"FieldFilledIn":"")+" "+(!this.isValidUserPhone&&this.errorForFields.phone?"FieldInvalid":"")},s("userPhone",this.lang)),!this.isValidUserPhone&&this.errorForFields.phone&&e("p",{class:"CredentialsError"},s("userPhoneError",this.lang))))):e("div",{class:!this.isValidUserEmail&&this.errorForFields.user?"InputBox InputInvalidBox":"InputBox"},e("input",{type:"text",placeholder:"",value:this.userNameEmail,onInput:this.handleInputChangePartial("user"),autocapitalize:"none",required:!0}),e("label",{class:(this.userNameEmail?"FieldFilledIn":"")+" "+(!this.isValidUserEmail&&this.errorForFields.user?"FieldInvalid":"")},s("userEmail",this.lang)),!this.isValidUserEmail&&this.errorForFields.user&&e("p",{class:"CredentialsError"},s("userEmailError",this.lang))),e("div",{class:!this.isValidPassword&&this.errorForFields.password?"InputBox InputInvalidBox":"InputBox"},this.renderVisibilityIcon(),e("input",{type:this.isPasswordVisible?"text":"password",placeholder:"",value:this.userPassword,onInput:this.handleInputChangePartial("password"),autocapitalize:"none",required:!0}),e("label",{class:(this.userPassword?"FieldFilledIn":"")+" "+(!this.isValidPassword&&this.errorForFields.password?"FieldInvalid":"")},s("password",this.lang)),!this.isValidPassword&&this.errorForFields.password&&e("p",{class:"CredentialsError"},s("userPasswordError",this.lang))),"true"===this.biometricEnabled&&this.isNativeApp&&e("div",{class:"PlayerBiometricsContainer"},e("div",{class:"PlayerBiometrics"},e("span",null,s("biometricLogin")),e("player-account-biometrics-action",{mode:this.biometricactionmode,isFromLogin:this.isFromLogin,isNativeApp:this.isNativeApp,lang:this.lang,translationurl:this.translationUrl,clientstyling:this.clientStyling,clientstylingurl:this.clientStylingUrl,mbsource:this.mbSource,isLoading:this.isLoginLoading}))),"true"==this.passwordReset&&e("div",{class:"ForgotPassword"},e("button",{onClick:this.resetPassword},s("forgotPassword",this.lang))),this.captchaData.isEnabled&&"cloudflare"===this.captchaData.provider&&e("slot",{name:"turnstile"}),this.captchaData.isEnabled&&"google"===this.captchaData.provider&&e("slot",{name:"google"}),e("button",{disabled:this.checkIsDisabled(),class:"SubmitCredentials",onClick:this.handleLogin},s("login",this.lang)),this.hasError&&e("p",{class:"CredentialsError"},this.errorMessage)))}render(){return e("section",{key:"b60d626ea01f0804e83efba865234667b9828090",ref:t=>this.stylingContainer=t},this.renderUserIdentification())}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};yl.style=':host{display:block;font-family:"Roboto", sans-serif}section{height:100%;width:100%;background-position:center;background-size:cover}.FormValue{width:100%}.FormBox{height:100%;display:flex;position:relative;background:none;border:none;justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:100%;border-bottom:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .PhoneInputBox{display:flex;flex-direction:row}.InputBox .PhoneInputBox .PhoneBox{position:relative;width:100%}.InputBox .PhoneInputBox .PrefixBox{position:relative;width:fit-content}.InputBox .PhoneInputBox .PrefixBox .UneditablePrefix{height:100%;width:100px;padding:0 0 0 5px;align-content:center;background:var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-medium, 10px)}.InputBox.InputInvalidBox .PasswordVisibilityIcon{fill:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox::after{content:"";height:2px;width:100%;transition:width 0.6s linear;background:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox::after{content:"";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-medium, 16px);pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:var(--emw--font-size-medium, 16px);padding:0 35px 0 5px;color:var(--emw--registration-typography, var(--emw--color-typography, #000000));box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-10px;font-size:var(--emw--font-size-x-small, 16px)}vaadin-combo-box:focus-within~label,label.FieldFilledIn{top:-10px;font-size:var(--emw--font-size-x-small, 16px)}.ForgotPassword button{margin:-10px 0 17px;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.SubmitCredentials{display:block;margin:0 auto;outline:none;cursor:pointer;background:var(--emw--color-primary, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SubmitCredentials:disabled{background:var(--emw--color-primary, #0E5924);opacity:0.4;cursor:default}.Register{font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-typography, #FFFFFF));text-align:center;margin:25px 0 10px}.Register p a{text-decoration:none;font-weight:600}.Register p a:hover{text-decoration:underline}.InvalidField{position:absolute;color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px)}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px);padding:0 0 20px 0;margin:0}.CredentialsError input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.PlayerBiometricsContainer .PlayerBiometrics{margin:30px 0 40px;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-typography, #000));display:flex;justify-content:space-between;background-color:transparent}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}';export{yl as user_login}
|
|
6657
|
+
`}static get is(){return"vaadin-tabs"}}y(gl);const yl=class{constructor(e){t(this,e),this.errorCode="",this.messageHandler=async t=>{var e;"NativeAppReady"===(null===(e=t.data)||void 0===e?void 0:e.type)&&(this.isNativeApp=!0,this.biometricsLoaded||(await import("./player-account-biometrics-action-84ade958.js"),this.biometricsLoaded=!0))},this.checkNativeApp=()=>{window.postMessage({type:"CheckNativeApp"})},this.getPhoneCodes=()=>{const t=new URL(`${this.endpoint}/v1/player/operatorSupportedPhoneCodes`);return fetch(t.href).then((t=>t.json())).then((t=>t.phoneCodes.map((t=>({label:t,value:t}))))).catch((t=>console.log("Failed to fetch phone codes:",t)))},this.autofillCredentialsHandler=t=>{const{userNameEmail:e,userPassword:i,userPrefix:o,userPhone:s}=(null==t?void 0:t.detail)||{};this.userNameEmail=e,this.userPassword=i,this.userPrefix=o,this.userPhone=s,this.handleLogin()},this.userLoginGm17=async()=>{let t={"Content-Type":"application/json"};const e={contact:this.userNameEmail,password:this.userPassword};this.captchaData.isEnabled&&(t["X-Captcha-Response"]=this.captchaData.token);const i={method:"POST",headers:t,body:JSON.stringify(e)};try{const t=await fetch(`${this.endpoint}/api/v1/players/password-management/auth/password/verify`,i),e=await t.json(),{token:o}=e;if(!o)throw new Error("Token not received from the API call.");await this.sendLegislationLogin(o)}catch(t){console.error(t),this.hasError=!0,this.isLoginLoading=!1,this.errorMessage=s("genericError",this.lang),this.sendErrorNotification(this.errorMessage)}finally{this.isLoginLoading=!1}},this.sendLegislationLogin=async t=>{const e={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t,method:"login"})};try{const t=await fetch(`${this.endpoint}/api/v2/gm/legislation/login`,e),i=await t.json();if(!t.ok){const{message:t,errors:e}=i;throw this.isLoginLoading=!1,console.error(`Legislation login failed: ${t}`,e),new Error("Legislation login request failed.")}{const{sessionId:t,playerId:e}=i;t&&(this.isLoginLoading=!1,window.postMessage({type:"UserSessionID",session:t,userid:e},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:s("successMessage",this.lang)}},window.location.href),this.hasError=!1)}}catch(t){console.error(t),this.hasError=!0,this.isLoginLoading=!1,this.errorMessage=s("genericError",this.lang),this.sendErrorNotification(this.errorMessage)}},this.userLogin=async()=>{const t=new URL(`${this.endpoint}/v1/player/legislation/login`),e=new Headers;e.append("Content-Type","application/json");const i=JSON.stringify({username:"true"===this.loginByPhoneNumber?`${this.userPrefix} ${this.userPhone}`:this.userNameEmail,password:this.userPassword});return fetch(t.href,{method:"POST",headers:e,body:i}).then((t=>t.json())).then((t=>{var e,i,o,r;if((null===(e=t.sessionBlockers)||void 0===e?void 0:e.includes("has-to-set-consents"))&&window.postMessage({type:"PlayerActions",gmversion:"gm16"},window.location.href),!0===(null==t?void 0:t.hasToSetPass))return this.hasError=!0,this.errorMessage=s("setUpPassowrd",this.lang),this.sendErrorNotification(s("setUpPassowrd",this.lang)),void window.postMessage({type:"HasToSetPass"},window.location.href);t.sessionId?(window.postMessage({type:"UserSessionID",session:t.sessionId,userid:t.userId},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:s("successMessage",this.lang)}},window.location.href),this.hasError=!1,((t,e={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:"logged_in",data:e},bubbles:!0,composed:!0});document.dispatchEvent(i)})(0,{userId:t.userId})):(this.hasError=!0,this.errorCode=null!==(o=null===(i=null==t?void 0:t.thirdPartyResponse)||void 0===i?void 0:i.errorCode)&&void 0!==o?o:null==t?void 0:t.errorCode,this.errorMessage="GmErr_USER_AUTH_FAILED"===this.errorCode&&"true"===this.loginByPhoneNumber?s("AuthFailedPhoneNumber",this.lang):s(`${this.errorCode}`,this.lang)||(null===(r=null==t?void 0:t.thirdPartyResponse)||void 0===r?void 0:r.message)||(null==t?void 0:t.message)||s("genericError",this.lang),"GmErr_USER_AUTH_FAILED"!==this.errorCode&&"GmErr_Unauthorized"!==this.errorCode&&"Unauthorized"!==this.errorCode||this.dispatchClearLoginCredentialsEvent(),this.errorMessage&&(console.error(this.errorMessage),this.sendErrorNotification(this.errorMessage)))})).catch((t=>{console.error(t),this.hasError=!0,this.errorMessage=s("genericError",this.lang),this.sendErrorNotification(this.errorMessage)})).finally((()=>{this.isLoginLoading=!1}))},this.handleLogin=()=>{this.isLoginLoading=!0;const t={gm16:this.userLogin,gm17:this.userLoginGm17}[this.version]||this.userLogin;this.debounce((async()=>{await t(),this.dispatchUpdateLoginCredentialsEvent()}),850)()},this.handleSubmit=t=>{"Enter"===t.key&&!this.checkIsDisabled()&&this.handleLogin()},this.handleInputChange=(t,e)=>{var i;const o=t.target.value;switch(e){case"user":this.userNameEmail=o,this.isValidUserEmail=this.validate("user",this.userNameEmail),this.errorForFields[e]=!this.isValidUserEmail||o.length<3;break;case"phone":this.userPhone=o.replace(/[^0-9]/g,""),this.inputUserPhoneReference&&(this.inputUserPhoneReference.value=this.userPhone),this.isValidUserPhone=this.validate("phone",this.userPhone),this.errorForFields[e]=!this.isValidUserPhone&&o.length>3;break;case"prefix":this.userPrefix=o,this.isValidUserPhone=this.validate("phone",this.userPhone),this.errorForFields[e]=!this.isValidUserPhone;break;case"password":this.userPassword=o,this.isValidPassword=this.validate("password",o);const t=Number(null!==(i=null==this?void 0:this.minPassLength)&&void 0!==i?i:3);this.errorForFields[e]=!this.isValidPassword&&o.length>t}},this.handleInputChangePartial=t=>e=>this.handleInputChange(e,t),this.validate=(t,e)=>{let i;switch(t){case"user":return i=new RegExp(this.userEmailRegex,this.userEmailRegexOptions),i.test(e);case"phone":return i=new RegExp(this.userPhoneRegex,this.userPhoneRegexOptions),i.test(e)&&!!this.userPrefix;case"password":return i=new RegExp(this.passwordRegex,this.passwordRegexOptions),i.test(e)}},this.togglePassword=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.resetPassword=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)},this.endpoint="",this.minPassLength=3,this.lang="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.passwordReset="false",this.userEmailRegex=void 0,this.userEmailRegexOptions="i",this.userPhoneRegex=void 0,this.userPhoneRegexOptions="",this.passwordRegex=void 0,this.passwordRegexOptions="",this.version="gm16",this.loginByPhoneNumber="false",this.defaultPrefix=void 0,this.isPrefixEditable="true",this.mbSource=void 0,this.biometricEnabled="false",this.biometricactionmode="switch",this.isFromLogin=!0,this.userNameEmail="",this.userPassword="",this.isValidUserEmail=!0,this.userPhone="",this.userPrefix="",this.isValidPassword=!0,this.isValidUserPhone=!0,this.isPasswordVisible=!1,this.errorMessage="",this.errorForFields={},this.hasError=!1,this.phoneCodes=void 0,this.isLoginLoading=!1,this.captchaData={isEnabled:!0,token:"",provider:"",siteKey:""},this.isNativeApp=!1,this.biometricsLoaded=!1}handleNewTranslations(){o(this.translationUrl)}handleClientStylingChange(t,e){t!=e&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl)}async autofillCredentials(t){const{userNameEmail:e,userPassword:i,userPrefix:o,userPhone:s}=t||{};this.userNameEmail=e,this.userPassword=i,this.userPrefix=o,this.userPhone=s,this.handleLogin()}async componentWillLoad(){"true"===this.loginByPhoneNumber&&(this.defaultPrefix&&"false"===this.isPrefixEditable?(this.phoneCodes=[{label:this.defaultPrefix,value:this.defaultPrefix}],this.userPrefix=this.defaultPrefix):(this.phoneCodes=await this.getPhoneCodes(),this.defaultPrefix||"false"!==this.isPrefixEditable?this.defaultPrefix&&"true"===this.isPrefixEditable&&(this.userPrefix=this.defaultPrefix,this.phoneCodes.some((t=>t.value===this.defaultPrefix))||this.phoneCodes.push({label:this.defaultPrefix,value:this.defaultPrefix})):this.userPrefix=this.phoneCodes[0].value)),this.translationUrl.length>2&&await o(this.translationUrl),"gm17"===this.version&&this.getLoginConfig().then((()=>{this.appendCaptchaScript()})).catch((t=>{console.error(t),this.hasError=!0,this.errorMessage=s("configError",this.lang),this.sendErrorNotification(this.errorMessage)})),"true"===this.biometricEnabled&&(window.addEventListener("message",this.messageHandler),this.checkNativeApp())}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e,i,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e);window[r]||(window[r]={});const s=(i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{if(!t)return;const o=t.getRootNode(),s=window[r];let n=s[e]&&s[e].sheet;n?s[e].refCount=s[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(i),s[e]={sheet:n,refCount:1});const a=o.adoptedStyleSheets||[];a.includes(n)||(o.adoptedStyleSheets=[...a,n])}))}(t,e)).unsubscribe.bind(i);i.unsubscribe=()=>{if(window[r][e]){const t=window[r][e];t.refCount>1?t.refCount=t.refCount-1:delete window[r][e]}s()}}(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("LoginCredentials",this.autofillCredentialsHandler),window.postMessage({type:"UserLoginDidLoad"})}getLoginConfig(){const t=new URL(`${this.endpoint}/api/v1/players/password-management/auth/password/config`);return new Promise(((e,i)=>{fetch(t.href).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{const{captcha:i}=t;i&&"string"==typeof i.provider&&(i.provider=i.provider.toLowerCase()),this.captchaData=Object.assign({},i),e()})).catch((t=>{console.error("Error fetching login configuration:",t),i(t)}))}))}handleCaptcha(){const{isEnabled:t,provider:e,siteKey:i}=this.captchaData;t&&["cloudflare","google"].includes(e)&&("cloudflare"===e?window.turnstile.render("#turnstileContainer",{sitekey:i,theme:"light",callback:this.captchaCallback.bind(this)}):"google"===e&&window.grecaptcha.ready((()=>{window.grecaptcha.render("googleContainer",{sitekey:i,callback:this.captchaCallback.bind(this),theme:"light"})})))}captchaCallback(t){this.captchaData.token=t,this.captchaData=Object.assign({},this.captchaData)}appendCaptchaScript(){const{isEnabled:t,provider:e}=this.captchaData;if(!t)return;const i=document.createElement("script");"cloudflare"===e?i.src="https://challenges.cloudflare.com/turnstile/v0/api.js":"google"===e&&(i.src="https://www.google.com/recaptcha/api.js"),i.onload=this.handleCaptcha.bind(this),document.head.appendChild(i)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("LoginCredentials",this.autofillCredentialsHandler),window.removeEventListener("message",this.messageHandler)}sendErrorNotification(t){window.postMessage({type:"HasError",error:t},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)}debounce(t,e){let i;return function(...o){clearTimeout(i),i=setTimeout((()=>{t.apply(this,o)}),e)}}dispatchUpdateLoginCredentialsEvent(){this.hasError||(this.updateLoginCredentialsEvent=new CustomEvent("UpdateLoginCredentials",{bubbles:!0,detail:{userNameEmail:null==this?void 0:this.userNameEmail,userPassword:this.userPassword,userPrefix:null==this?void 0:this.userPrefix,userPhone:null==this?void 0:this.userPhone}}),window.dispatchEvent(this.updateLoginCredentialsEvent))}dispatchClearLoginCredentialsEvent(){const t=new CustomEvent("ClearLoginCredentials",{bubbles:!0});window.dispatchEvent(t)}checkIsDisabled(){return Boolean("true"!==this.loginByPhoneNumber&&(!this.isValidUserEmail||!this.userNameEmail)||"true"===this.loginByPhoneNumber&&(!this.isValidUserPhone||!this.userPhone||!this.userPrefix)||!this.userPassword||!this.isValidPassword||this.isLoginLoading||"gm17"===this.version&&this.captchaData.isEnabled&&!this.captchaData.token)}renderVisibilityIcon(){return e("span",{class:"InputIcon"},this.isPasswordVisible&&e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.844",height:"12.887",viewBox:"0 0 18.844 12.887"},e("g",{transform:"translate(-110.856 -23.242)"},e("circle",{class:"PasswordVisibilityIcon",cx:"0.05",cy:"0.05",r:"0.05",transform:"translate(121.017 31.148)"}),e("g",{transform:"translate(117.499 27.37)"},e("path",{class:"PasswordVisibilityIcon",d:"M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z",transform:"translate(-142.164 -39.123)"}),e("path",{class:"PasswordVisibilityIcon",d:"M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z",transform:"translate(-136.413 -42.068)"})),e("g",{transform:"translate(110.856 24.899)"},e("path",{class:"PasswordVisibilityIcon",d:"M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z",transform:"translate(-110.856 -33.157)"}),e("path",{class:"PasswordVisibilityIcon",d:"M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z",transform:"translate(-130.743 -29.617)"})),e("rect",{class:"PasswordVisibilityIcon",width:"0.972",height:"15.861",rx:"0.486",transform:"translate(114.827 23.858) rotate(-39.315)"}))),!this.isPasswordVisible&&e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility PasswordVisible",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.843",height:"10.5",viewBox:"0 0 18.843 10.5"},e("g",{transform:"translate(-14.185 -27.832)"},e("path",{class:"PasswordVisibilityIcon",d:"M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z",transform:"translate(0)"}),e("circle",{class:"PasswordVisibilityIcon",cx:"2.779",cy:"2.779",r:"2.779",transform:"translate(20.827 30.303)"}))))}renderUserIdentification(){return e("div",{class:"FormBox"},e("div",{class:"FormValue",onKeyDown:this.handleSubmit},"true"===this.loginByPhoneNumber?e("div",{class:!this.isValidUserPhone&&this.hasError?"InputBox InputInvalidBox":"InputBox "},e("div",{class:"PhoneInputBox"},e("div",{class:"PrefixBox"},"true"===this.isPrefixEditable?e("vaadin-combo-box",{items:this.phoneCodes,value:this.userPrefix,onChange:this.handleInputChangePartial("prefix")}):e("div",{class:"UneditablePrefix"},this.userPrefix),e("label",{class:(this.userPrefix?"FieldFilledIn":"")+" "+(!this.isValidUserPhone&&this.errorForFields.phone?"FieldInvalid":"")},s("userPrefix",this.lang))),e("div",{class:"PhoneBox"},e("input",{type:"tel",placeholder:"",ref:t=>this.inputUserPhoneReference=t,value:this.userPhone,onFocus:this.handleInputChangePartial("phone"),onInput:this.handleInputChangePartial("phone"),autocapitalize:"none",required:!0}),e("label",{class:(this.userPhone?"FieldFilledIn":"")+" "+(!this.isValidUserPhone&&this.errorForFields.phone?"FieldInvalid":"")},s("userPhone",this.lang)),!this.isValidUserPhone&&this.errorForFields.phone&&e("p",{class:"CredentialsError"},s("userPhoneError",this.lang))))):e("div",{class:!this.isValidUserEmail&&this.errorForFields.user?"InputBox InputInvalidBox":"InputBox"},e("input",{type:"text",placeholder:"",value:this.userNameEmail,onInput:this.handleInputChangePartial("user"),autocapitalize:"none",required:!0}),e("label",{class:(this.userNameEmail?"FieldFilledIn":"")+" "+(!this.isValidUserEmail&&this.errorForFields.user?"FieldInvalid":"")},s("userEmail",this.lang)),!this.isValidUserEmail&&this.errorForFields.user&&e("p",{class:"CredentialsError"},s("userEmailError",this.lang))),e("div",{class:!this.isValidPassword&&this.errorForFields.password?"InputBox InputInvalidBox":"InputBox"},this.renderVisibilityIcon(),e("input",{type:this.isPasswordVisible?"text":"password",placeholder:"",value:this.userPassword,onInput:this.handleInputChangePartial("password"),autocapitalize:"none",required:!0}),e("label",{class:(this.userPassword?"FieldFilledIn":"")+" "+(!this.isValidPassword&&this.errorForFields.password?"FieldInvalid":"")},s("password",this.lang)),!this.isValidPassword&&this.errorForFields.password&&e("p",{class:"CredentialsError"},s("userPasswordError",this.lang))),"true"===this.biometricEnabled&&this.isNativeApp&&e("div",{class:"PlayerBiometricsContainer"},e("div",{class:"PlayerBiometrics"},e("span",null,s("biometricLogin")),e("player-account-biometrics-action",{mode:this.biometricactionmode,isFromLogin:this.isFromLogin,isNativeApp:this.isNativeApp,lang:this.lang,translationurl:this.translationUrl,clientstyling:this.clientStyling,clientstylingurl:this.clientStylingUrl,mbsource:this.mbSource,isLoading:this.isLoginLoading}))),"true"==this.passwordReset&&e("div",{class:"ForgotPassword"},e("button",{onClick:this.resetPassword},s("forgotPassword",this.lang))),this.captchaData.isEnabled&&"cloudflare"===this.captchaData.provider&&e("slot",{name:"turnstile"}),this.captchaData.isEnabled&&"google"===this.captchaData.provider&&e("slot",{name:"google"}),e("button",{disabled:this.checkIsDisabled(),class:"SubmitCredentials",onClick:this.handleLogin},s("login",this.lang)),this.hasError&&e("p",{class:"CredentialsError"},this.errorMessage)))}render(){return e("section",{key:"b60d626ea01f0804e83efba865234667b9828090",ref:t=>this.stylingContainer=t},this.renderUserIdentification())}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};yl.style=':host{display:block;font-family:"Roboto", sans-serif}section{height:100%;width:100%;background-position:center;background-size:cover}.FormValue{width:100%}.FormBox{height:100%;display:flex;position:relative;background:none;border:none;justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:100%;border-bottom:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .PhoneInputBox{display:flex;flex-direction:row}.InputBox .PhoneInputBox .PhoneBox{position:relative;width:100%}.InputBox .PhoneInputBox .PrefixBox{position:relative;width:fit-content}.InputBox .PhoneInputBox .PrefixBox .UneditablePrefix{height:100%;width:100px;padding:0 0 0 5px;align-content:center;background:var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-medium, 10px)}.InputBox.InputInvalidBox .PasswordVisibilityIcon{fill:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox::after{content:"";height:2px;width:100%;transition:width 0.6s linear;background:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox::after{content:"";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-medium, 16px);pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:var(--emw--font-size-medium, 16px);padding:0 35px 0 5px;color:var(--emw--registration-typography, var(--emw--color-typography, #000000));box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-10px;font-size:var(--emw--font-size-x-small, 16px)}vaadin-combo-box:focus-within~label,label.FieldFilledIn{top:-10px;font-size:var(--emw--font-size-x-small, 16px)}.ForgotPassword button{margin:-10px 0 17px;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.SubmitCredentials{display:block;margin:0 auto;outline:none;cursor:pointer;background:var(--emw--color-primary, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SubmitCredentials:disabled{background:var(--emw--color-primary, #0E5924);opacity:0.4;cursor:default}.Register{font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-typography, #FFFFFF));text-align:center;margin:25px 0 10px}.Register p a{text-decoration:none;font-weight:600}.Register p a:hover{text-decoration:underline}.InvalidField{position:absolute;color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px)}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px);padding:0 0 20px 0;margin:0}.CredentialsError input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.PlayerBiometricsContainer .PlayerBiometrics{margin:30px 0 40px;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-typography, #000));display:flex;justify-content:space-between;background-color:transparent}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}';export{yl as user_login}
|