@everymatrix/general-registration-hsl 1.74.2 → 1.74.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1056 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-8c1bd3e8.js';
2
-
3
- const DEFAULT_LANGUAGE = 'en';
4
- const TRANSLATIONS = {
5
- "en": {
6
- "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
7
- "GmErr_REGISTER_OVERAGE": "The registration has exceeded the allowable limit.",
8
- "GmErr_REGISTER_UNDERAGE": "The registration is under the allowable limit.",
9
- "GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS": "User authentication failed due to too many unsuccessful attempts.",
10
- "GmErr_USER_ACCOUNT_BLOCKED": "The user account is blocked.",
11
- "GmErr_USER_NOT_VERIFIED": "The user has not been verified.",
12
- "GmErr_USER_NOT_FOUND": "No user found with the provided information.",
13
- "GmErr_USER_ID_INVALID": "The user ID provided is invalid.",
14
- "GmErr_USER_AUTH_FAILED": "User authentication failed.",
15
- "GmErr_USER_DUPLICATED": "The user already exists in the system.",
16
- "GmErr_USER_NOT_ACTIVATED": "The user account has not been activated.",
17
- "GmErr_PASSWORD_CONTAINS_EMAIL": "The password cannot contain the email address.",
18
- "GmErr_PASSWORD_CONTAINS_USERNAME": "The password cannot contain the username.",
19
- "GmErr_PASSWORD_CONTAINS_SPACES": "The password cannot contain spaces.",
20
- "GmErr_USER_4TS_CHECK_EXISTS": "The user 4TS check already exists.",
21
- "GmErr_USER_NAV_EXCLUDED_REGISTRATION": "The user is excluded from registration.",
22
- "GmErr_USER_NAV_EXCLUDED_LOGIN": "The user is excluded from login.",
23
- "GmErr_USERNAME_REQUIRED": "A username is required.",
24
- "GmErr_USER_EMAIL_NOT_VERIFIED": "The user's email address has not been verified.",
25
- "GmErr_EMAIL_ALREADY_EXISTS": "User with same email already exists",
26
- "GmErr_EMAIL_REQUIRED": "An email address is required.",
27
- "GmErr_USERNAME_ALREADY_EXISTS": "The username is already taken.",
28
- "GmErr_DUPLICATE_PERSONAL_ID": "Duplicate personal ID found.",
29
- "GmErr_INVALID_USER_DOCUMENT": "The user document is invalid.",
30
- "GmErr_INVALID_CODE": "The code provided is invalid.",
31
- "GmErr_EXPIRED_TOKEN": "The token has expired.",
32
- "GmErr_ATTEMPTS_EXCEEDED": "The maximum number of attempts has been exceeded.",
33
- "GmErr_BLOCK_USER_INCORRECT_CODE": "The user has been blocked due to an incorrect code.",
34
- "GmErr_TOKEN_NOT_FOUND": "The token was not found.",
35
- "GmErr_INVALID_PHONE_NUMBER": "The phone number provided is invalid.",
36
- "GmErr_CODE_MISSING": "The code is missing.",
37
- "GmErr_UNREGISTERED_USER": "The user is not registered.",
38
- "GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED": "Maximum attempts to generate a code have been exceeded.",
39
- "GmErr_UNEXPECTED_EXCEPTION": "An unexpected exception occurred.",
40
- "GmErr_INVALID_USER_ID": "The user ID provided is invalid.",
41
- "GmErr_NOT_ALLOWED_EXCEPTION": "This action is not allowed.",
42
- "GmErr_CAN_NOT_FIND_ROLE": "Unable to find the specified role.",
43
- "GmErr_NO_SESSION_PROVIDED": "No session was provided.",
44
- "GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER": "No active session found for this user.",
45
- "GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED": "The user has already been anonymized.",
46
- "GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED": "No role has been set up to be assigned.",
47
- "GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER": "The provided session does not belong to the user.",
48
- "GmErr_PROVIDED_SESSION_DOES_NOT_EXIST": "The provided session does not exist.",
49
- "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "The role has already been assigned to the user.",
50
- "GmErr_ASSIGN_USER_ROLE_FAILED": "Failed to assign a role to the user.",
51
- "GmErr_BadRequest_1000": "There was a problem with the personal identification number",
52
- "CountryRestricted": "Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",
53
- "nextButton": 'Next',
54
- "backButton": 'Back',
55
- "doneButton": 'Done',
56
- "generalError": "Something went wrong... Please try again.",
57
- "successMessage": "Register successful",
58
- "requestTwofaError": "There was an error when sending the code",
59
- "loadingMessage": "Please wait, loading...",
60
- //Prod old errors which will be deleted after prod is updated to new keys.
61
- "GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
62
- "GmErr_BadRequest_PasswordContainsUsername": "The password cannot be the same as the username.",
63
- "GmErr_BadRequest_PasswordContainsEmail": "The password cannot be the same as the email.",
64
- "GmErr_BadRequest_Duplicate_PersonalId": "There is already a registration with the data you entered or you entered your data in an incorrect format.",
65
- "GmErr_Forbidden_UserAccount_NavExcluded": 'User is NAV Excluded. Registration was denied.',
66
- "GmErr_BadRequest_ModelValidationFailed": 'Something went wrong... Please try again.',
67
- "GmErr_BadInternalConfigs": 'Something went wrong... Please try again.',
68
- "GmErr_Unauthorized": 'Something went wrong... Please try again.',
69
- "GmErr_NotFound": 'Something went wrong... Please try again.',
70
- "BadRequest_Duplicate_User": "User with same username already exists.",
71
- "BadRequest": "The request is invalid, please check the API.",
72
- "Unauthorized": "The player account number, e-mail address or password is incorrect",
73
- "Forbidden_TooManyAttempts": "You have made too many invalid login attempts, your account has been blocked, please try again later.",
74
- "Forbidden_UserAccount_NotActive": "It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",
75
- "GmErr_BadRequest_ExpiredToken": "The token you are using is expired.",
76
- "GmErr_BadRequest_INVALID_CODE": "The code you are using is invalid.",
77
- "GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED": "You have made too many attempts to validate your code.",
78
- "GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED": "You have made too many attempts to generate your code.",
79
- "GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE": "You have been blocked due to an invalid code.",
80
- "GmErr_BadRequest_CODE_MISSING": "The token is missing for your reqest.",
81
- "GmErr_BadRequest_TOKEN_NOT_FOUND": "The token is not found for your request.",
82
- "GmErr_BadRequest_USER_NOT_REGISTERED": "The user is not register. Please register first.",
83
- "GmErr_BadRequest_INVALID_PHONE_NUMBER": "The phone number you are using is invalid.",
84
- "GmErr_BadRequest_INVALID_USER_ID": "The user ID is invalid.",
85
- "GmErr_UnexpectedException": "Something went wrong... Please try again.",
86
- "GmErr_BadRequest_INVALID_USER_DOCUMENT": "The user document is invalid.",
87
- "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
88
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
89
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
90
- },
91
- "hu": {
92
- "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
93
- "GmErr_REGISTER_OVERAGE": "A regisztráció túllépte a megengedett határt.",
94
- "GmErr_REGISTER_UNDERAGE": "A regisztráció a megengedett határ alatt van.",
95
- "GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS": "A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",
96
- "GmErr_USER_ACCOUNT_BLOCKED": "A felhasználói fiók le van tiltva.",
97
- "GmErr_USER_NOT_VERIFIED": "A felhasználó nincs ellenőrizve.",
98
- "GmErr_USER_NOT_FOUND": "A megadott adatokkal nem található felhasználó.",
99
- "GmErr_USER_ID_INVALID": "A megadott felhasználói azonosító érvénytelen.",
100
- "GmErr_USER_AUTH_FAILED": "A felhasználó hitelesítése meghiúsult.",
101
- "GmErr_USER_DUPLICATED": "A felhasználó már létezik a rendszerben.",
102
- "GmErr_USER_NOT_ACTIVATED": "A felhasználó fiókja nincs aktiválva.",
103
- "GmErr_PASSWORD_CONTAINS_EMAIL": "A jelszó nem tartalmazhat e-mail címet.",
104
- "GmErr_PASSWORD_CONTAINS_USERNAME": "A jelszó nem tartalmazhat felhasználónevet.",
105
- "GmErr_PASSWORD_CONTAINS_SPACES": "A jelszó nem tartalmazhat szóközöket.",
106
- "GmErr_USER_4TS_CHECK_EXISTS": "A felhasználó 4TS ellenőrzése már létezik.",
107
- "GmErr_USER_NAV_EXCLUDED_REGISTRATION": "A felhasználó kizárva a regisztrációból.",
108
- "GmErr_USER_NAV_EXCLUDED_LOGIN": "A felhasználó kizárva a bejelentkezésből.",
109
- "GmErr_USERNAME_REQUIRED": "Felhasználónév megadása szükséges.",
110
- "GmErr_USER_EMAIL_NOT_VERIFIED": "A felhasználó e-mail címe nincs megerősítve.",
111
- "GmErr_EMAIL_ALREADY_EXISTS": "A megadott e-mail címmel már létezik felhasználó",
112
- "GmErr_EMAIL_REQUIRED": "E-mail cím megadása szükséges.",
113
- "GmErr_USERNAME_ALREADY_EXISTS": "A felhasználónév már foglalt.",
114
- "GmErr_DUPLICATE_PERSONAL_ID": "Már létező személyes azonosító.",
115
- "GmErr_INVALID_USER_DOCUMENT": "A felhasználói dokumentum érvénytelen.",
116
- "GmErr_INVALID_CODE": "A megadott kód érvénytelen.",
117
- "GmErr_EXPIRED_TOKEN": "A token lejárt.",
118
- "GmErr_ATTEMPTS_EXCEEDED": "A megengedett próbálkozások száma túllépve.",
119
- "GmErr_BLOCK_USER_INCORRECT_CODE": "A felhasználó blokkolva lett a hibás kód miatt.",
120
- "GmErr_TOKEN_NOT_FOUND": "A token nem található.",
121
- "GmErr_INVALID_PHONE_NUMBER": "A megadott telefonszám érvénytelen.",
122
- "GmErr_CODE_MISSING": "A szükséges kód hiányzik.",
123
- "GmErr_UNREGISTERED_USER": "A felhasználó nincs regisztrálva.",
124
- "GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED": "Túllépték a kódgenerálási próbálkozások számát.",
125
- "GmErr_UNEXPECTED_EXCEPTION": "Váratlan kivétel történt.",
126
- "GmErr_INVALID_USER_ID": "A felhasználói azonosító érvénytelen.",
127
- "GmErr_NOT_ALLOWED_EXCEPTION": "Ez a művelet nem engedélyezett.",
128
- "GmErr_CAN_NOT_FIND_ROLE": "A megadott szerepkör nem található.",
129
- "GmErr_NO_SESSION_PROVIDED": "Nem került megadásra munkamenet.",
130
- "GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER": "Nincs aktív munkamenet ehhez a felhasználóhoz.",
131
- "GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED": "A felhasználó már anonimizálva lett.",
132
- "GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED": "Nincs beállítva hozzárendelhető szerepkör.",
133
- "GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER": "A megadott munkamenet nem tartozik a felhasználóhoz.",
134
- "GmErr_PROVIDED_SESSION_DOES_NOT_EXIST": "A megadott munkamenet nem létezik.",
135
- "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A szerepkör már hozzá lett rendelve a felhasználóhoz.",
136
- "GmErr_ASSIGN_USER_ROLE_FAILED": "Nem sikerült a felhasználói szerepkört hozzárendelni.",
137
- "GmErr_BadRequest_1000": "Probléma volt a személyi azonosító számmal",
138
- "CountryRestricted": "Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",
139
- "nextButton": 'Következő',
140
- "backButton": 'Vissza',
141
- "doneButton": 'Kész',
142
- "generalError": "Valami hiba történt... Próbáld újra.",
143
- "requestTwofaError": "Hiba történt a kód elküldésekor",
144
- "successMessage": "Sikeres regisztráció",
145
- "loadingMessage": "Kérjük, várjon, betöltés folyamatban...",
146
- //Prod old errors which will be deleted after prod is updated to new keys.
147
- "GmErr_BadRequest_Duplicate_User": 'Egy ilyen információval rendelkező felhasználó már létezik.',
148
- "GmErr_BadRequest_PasswordContainsUsername": "A jelszó nem lehet azonos a felhasználónévvel.",
149
- "GmErr_BadRequest_PasswordContainsEmail": "A jelszó nem lehet azonos az e-mail címmel.",
150
- "GmErr_BadRequest_Duplicate_PersonalId": "Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",
151
- "GmErr_Forbidden_UserAccount_NavExcluded": 'A felhasználó NAV kizárt. A regisztrációt elutasították.',
152
- "GmErr_BadRequest_ModelValidationFailed": 'Valami hiba történt... Kérjük, próbálja újra.',
153
- "GmErr_BadInternalConfigs": 'Valami hiba történt... Kérjük, próbálja újra.',
154
- "GmErr_Unauthorized": 'Valami hiba történt... Kérjük, próbálja újra.',
155
- "GmErr_NotFound": 'Valami hiba történt... Kérjük, próbálja újra.',
156
- "BadRequest_Duplicate_User": "Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",
157
- "BadRequest": "A kérés érvénytelen, kérjük, ellenőrizze az API-t.",
158
- "Unauthorized": "A játékos számlaszáma, e-mail címe vagy jelszava helytelen",
159
- "Forbidden_TooManyAttempts": "Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",
160
- "Forbidden_UserAccount_NotActive": "Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",
161
- "GmErr_BadRequest_ExpiredToken": "A használt token lejárt.",
162
- "GmErr_BadRequest_INVALID_CODE": "A használt kód érvénytelen.",
163
- "GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED": "Túl sok kísérletet tett a kód érvényesítésére.",
164
- "GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED": "Túl sok kísérletet tett a kód generálására.",
165
- "GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE": "Érvénytelen kód miatt zárolták.",
166
- "GmErr_BadRequest_CODE_MISSING": "A kéréshez hiányzik a token.",
167
- "GmErr_BadRequest_TOKEN_NOT_FOUND": "A kéréshez nem található token.",
168
- "GmErr_BadRequest_USER_NOT_REGISTERED": "A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",
169
- "GmErr_BadRequest_INVALID_PHONE_NUMBER": "A használt telefonszám érvénytelen.",
170
- "GmErr_BadRequest_INVALID_USER_ID": "A felhasználói azonosító érvénytelen.",
171
- "GmErr_UnexpectedException": "Valami hiba történt... Kérjük, próbálja újra.",
172
- "GmErr_BadRequest_INVALID_USER_DOCUMENT": "A felhasználói dokumentum érvénytelen.",
173
- "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",
174
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",
175
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba.",
176
- }
177
- };
178
- const getTranslations = (url) => {
179
- // fetch url, get the data, replace the TRANSLATIONS content
180
- return new Promise((resolve) => {
181
- fetch(url)
182
- .then((res) => res.json())
183
- .then((data) => {
184
- Object.keys(data).forEach((item) => {
185
- TRANSLATIONS[item] = TRANSLATIONS[item] || {};
186
- for (let key in data[item]) {
187
- TRANSLATIONS[item][key] = data[item][key];
188
- }
189
- });
190
- resolve(true);
191
- });
192
- });
193
- };
194
- const translate = (key, customLang, values) => {
195
- let lang = TRANSLATIONS[customLang] ? customLang : DEFAULT_LANGUAGE;
196
- let translation = TRANSLATIONS[lang][key];
197
- if (values !== undefined) {
198
- for (const [key, value] of Object.entries(values.values)) {
199
- const regex = new RegExp(`{${key}}`, 'g');
200
- translation = translation.replace(regex, value);
201
- }
202
- }
203
- return translation;
204
- };
205
-
206
- /**
207
- * @name dispatchCustomEvent
208
- * @description dispatches the custom event CustomEventProcessor is listening for
209
- * @param {string} type of the custom event
210
- * @param {Object} data may contain additional information about the event, e.g. userId
211
- */
212
- const dispatchCustomEvent = (type, data = {}) => {
213
- const event = new CustomEvent('track-custom-event', {
214
- detail: {
215
- type,
216
- data
217
- },
218
- bubbles: true,
219
- composed: true
220
- });
221
-
222
- document.dispatchEvent(event);
223
- };
224
-
225
- var PlayerConsentsDrhcDBLh = {};
226
-
227
- var GeneralAnimationLoadingSk__cGd0 = {};
228
-
229
- var st=Object.defineProperty,it=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var S=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&S(e,n,t[n]);if(H)for(var n of H(t))ot.call(t,n)&&S(e,n,t[n]);return e},R=(e,t)=>it(e,ct(t));var f=(e,t,n)=>(S(e,typeof t!="symbol"?t+"":t,n),n);var U=(e,t,n)=>new Promise((s,c)=>{var i=o=>{try{u(n.next(o));}catch(l){c(l);}},r=o=>{try{u(n.throw(o));}catch(l){c(l);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,r);u((n=n.apply(e,t)).next());});function h(){}function I(e){return e()}function z(){return Object.create(null)}function b(e){e.forEach(I);}function N(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function lt(e){return Object.keys(e).length===0}function F(e,...t){if(e==null){for(const s of t)s(void 0);return h}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(F(t,n));}function ft(e){return e}function J(e,t){e.appendChild(t);}function V(e,t,n){const s=dt(e);if(!s.getElementById(t)){const c=w("style");c.id=t,c.textContent=n,ht(s,c);}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return J(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null);}function y(e){e.parentNode&&e.parentNode.removeChild(e);}function at(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function w(e){return document.createElement(e)}function q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function $t(){return T(" ")}function mt(){return T("")}function _t(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function M(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function gt(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:M(e,t,n);}function pt(e){return Array.from(e.childNodes)}function bt(e,t){t=""+t,e.data!==t&&(e.data=t);}class yt{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,n,s=null){this.e||(this.is_svg?this.e=q(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(s);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let n=0;n<this.n.length;n+=1)v(this.t,this.n[n],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(y);}}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let p;function g(e){p=e;}function xt(){if(!p)throw new Error("Function called outside component initialization");return p}function K(e){xt().$$.on_mount.push(e);}const $=[],L=[];let m=[];const G=[],Et=Promise.resolve();let C=!1;function Lt(){C||(C=!0,Et.then(_));}function A(e){m.push(e);}const k=new Set;let a=0;function _(){if(a!==0)return;const e=p;do{try{for(;a<$.length;){const t=$[a];a++,g(t),vt(t.$$);}}catch(t){throw $.length=0,a=0,t}for(g(null),$.length=0,a=0;L.length;)L.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while($.length);for(;G.length;)G.pop()();C=!1,k.clear(),g(e);}function vt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A);}}function St(e){const t=[],n=[];m.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),m=t;}const kt=new Set;function Ct(e,t){e&&e.i&&(kt.delete(e),e.i(t));}function At(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nt(e,t,n){const{fragment:s,after_update:c}=e.$$;s&&s.m(t,n),A(()=>{const i=e.$$.on_mount.map(I).filter(N);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),c.forEach(A);}function Tt(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Mt(e,t){e.$$.dirty[0]===-1&&($.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function Q(e,t,n,s,c,i,r=null,u=[-1]){const o=p;g(e);const l=e.$$={fragment:null,ctx:[],props:i,update:h,not_equal:c,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:z(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};r&&r(l.root);let x=!1;if(l.ctx=n?n(e,t.props||{},(d,j,...O)=>{const P=O.length?O[0]:j;return l.ctx&&c(l.ctx[d],l.ctx[d]=P)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](P),x&&Mt(e,d)),j}):[],l.update(),x=!0,b(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const d=pt(t.target);l.fragment&&l.fragment.l(d),d.forEach(y);}else l.fragment&&l.fragment.c();t.intro&&Ct(e.$$.fragment),Nt(e,t.target,t.anchor),_();}g(o);}let W;typeof HTMLElement=="function"&&(W=class extends HTMLElement{constructor(t,n,s){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const c=this.$$c.$on(t,n);this.$$l_u.set(n,c);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n));}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let r;return {c:function(){r=w("slot"),i!=="default"&&M(r,"name",i);},m:function(l,x){v(l,r,x);},d:function(l){l&&y(r);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=wt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=E(r,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:R(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const c=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=E(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r);}this.$$r=!1;};this.$$c.$$.after_update.push(c),c();for(const i in this.$$l)for(const r of this.$$l[i]){const u=this.$$c.$on(i,r);this.$$l_u.set(r,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var c;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,this.$$p_d,"toProp"),(c=this.$$c)==null||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(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function E(e,t,n,s){var i;const c=(i=n[e])==null?void 0:i.type;if(t=c==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(c){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(c){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function X(e,t,n,s,c,i){let r=class extends W{constructor(){super(e,n,c),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(r.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=E(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(r.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=r,r}class Y{constructor(){f(this,"$$");f(this,"$$set");}$destroy(){Tt(this,1),this.$destroy=h;}$on(t,n){if(!N(n))return h;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1);}}$set(t){this.$$set&&!lt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const jt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);function Z(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function tt(e,t){const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const c=document.createElement("style");c.innerHTML=s,e&&e.appendChild(c);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function et(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,c=>{s.innerHTML=c,e&&e.appendChild(s);});}}function Ot(e){V(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function Pt(e){let t;return {c(){t=w("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){v(n,t,s),e[4](t);},p:h,i:h,o:h,d(n){n&&y(t),e[4](null);}}}function Ht(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,r;K(()=>()=>{});function u(o){L[o?"unshift":"push"](()=>{r=o,n(0,r);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,c=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&r&&Z(r,s),e.$$.dirty&5&&c&&r&&tt(r,c),e.$$.dirty&9&&i&&r&&et(r,`${i}.Style`);},[r,s,c,i,u]}class nt extends Y{constructor(t){super(),Q(this,t,Ht,Pt,D,{clientstyling:1,clientstylingurl:2,mbsource:3},Ot);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),_();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_();}}X(nt,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));GeneralAnimationLoadingSk__cGd0.GeneralAnimationLoading_ce=Bt;GeneralAnimationLoadingSk__cGd0.HtmlTag=yt;GeneralAnimationLoadingSk__cGd0.SvelteComponent=Y;GeneralAnimationLoadingSk__cGd0.append=J;GeneralAnimationLoadingSk__cGd0.append_styles=V;GeneralAnimationLoadingSk__cGd0.attr=M;GeneralAnimationLoadingSk__cGd0.binding_callbacks=L;GeneralAnimationLoadingSk__cGd0.component_subscribe=ut;GeneralAnimationLoadingSk__cGd0.create_custom_element=X;GeneralAnimationLoadingSk__cGd0.destroy_each=at;GeneralAnimationLoadingSk__cGd0.detach=y;GeneralAnimationLoadingSk__cGd0.element=w;GeneralAnimationLoadingSk__cGd0.empty=mt;GeneralAnimationLoadingSk__cGd0.ensure_array_like=At;GeneralAnimationLoadingSk__cGd0.flush=_;GeneralAnimationLoadingSk__cGd0.init=Q;GeneralAnimationLoadingSk__cGd0.insert=v;GeneralAnimationLoadingSk__cGd0.is_function=N;GeneralAnimationLoadingSk__cGd0.listen=_t;GeneralAnimationLoadingSk__cGd0.noop=h;GeneralAnimationLoadingSk__cGd0.null_to_empty=ft;GeneralAnimationLoadingSk__cGd0.onMount=K;GeneralAnimationLoadingSk__cGd0.run_all=b;GeneralAnimationLoadingSk__cGd0.safe_not_equal=D;GeneralAnimationLoadingSk__cGd0.setClientStyling=Z;GeneralAnimationLoadingSk__cGd0.setClientStylingURL=tt;GeneralAnimationLoadingSk__cGd0.setStreamStyling=et;GeneralAnimationLoadingSk__cGd0.set_custom_element_data=gt;GeneralAnimationLoadingSk__cGd0.set_data=bt;GeneralAnimationLoadingSk__cGd0.space=$t;GeneralAnimationLoadingSk__cGd0.subscribe=F;GeneralAnimationLoadingSk__cGd0.svg_element=q;GeneralAnimationLoadingSk__cGd0.text=T;
230
-
231
- (function (exports) {
232
- var gr=Object.defineProperty,fr=Object.defineProperties;var _r=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var yr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var We=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&We(e,r,t[r]);if(qe)for(var r of qe(t))vr.call(t,r)&&We(e,r,t[r]);return e},Ze=(e,t)=>fr(e,_r(t));var ne=(e,t,r)=>new Promise((n,i)=>{var o=d=>{try{l(r.next(d));}catch(h){i(h);}},s=d=>{try{l(r.throw(d));}catch(h){i(h);}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=GeneralAnimationLoadingSk__cGd0,X=[];function kr(e,t){return {subscribe:ke(e,t).subscribe}}function ke(e,t=a.noop){let r;const n=new Set;function i(l){if(a.safe_not_equal(e,l)&&(e=l,r)){const d=!X.length;for(const h of n)h[1](),X.push(h,e);if(d){for(let h=0;h<X.length;h+=2)X[h][0](X[h+1]);X.length=0;}}}function o(l){i(l(e));}function s(l,d=a.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,o)||a.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:s}}function Q(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return kr(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},k=i.map((_,g)=>a.subscribe(_,C=>{h[g]=C,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){a.run_all(k),m(),d=!1;}})}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er=function(t){return Cr(t)&&!Sr(t)};function Cr(e){return !!e&&typeof e=="object"}function Sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var xr=typeof Symbol=="function"&&Symbol.for,Tr=xr?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Tr}function wr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?q(wr(e),e,t):e}function Nr(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function Ar(e,t){if(!t.customMerge)return q;var r=t.customMerge(e);return typeof r=="function"?r:q}function Hr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Je(e){return Object.keys(e).concat(Hr(e))}function Et(e,t){try{return t in e}catch(r){return !1}}function Pr(e,t){return Et(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Br(e,t,r){var n={};return r.isMergeableObject(e)&&Je(e).forEach(function(i){n[i]=ae(e[i],r);}),Je(t).forEach(function(i){Pr(e,i)||(Et(e,i)&&r.isMergeableObject(t[i])?n[i]=Ar(i,r)(e[i],t[i],r):n[i]=ae(t[i],r));}),n}function q(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Nr,r.isMergeableObject=r.isMergeableObject||Er,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Br(e,t,r):ae(t,r)}q.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return q(n,i,r)},{})};var Or=q,zr=Or;const Ir=br(zr);var Pe=function(e,t){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},Pe(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pe(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var U=function(){return U=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},U.apply(this,arguments)};function jr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Te(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Me(e,t){var r=t&&t.cache?t.cache:Vr,n=t&&t.serializer?t.serializer:Gr,i=t&&t.strategy?t.strategy:Ur;return i(e,{cache:r,serializer:n})}function Lr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rr(e,t,r,n){var i=Lr(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Ct(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function St(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?Rr:Ct;return St(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return St(e,this,Ct,t.cache.create(),t.serializer)}var Gr=function(){return JSON.stringify(arguments)},Fr=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),Vr={create:function(){return new Fr}},we={variadic:Dr},_e=function(){return _e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},_e.apply(this,arguments)};var M;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(M||(M={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(A||(A={}));var W;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(W||(W={}));function Qe(e){return e.type===A.literal}function Xr(e){return e.type===A.argument}function xt(e){return e.type===A.number}function Tt(e){return e.type===A.date}function Mt(e){return e.type===A.time}function wt(e){return e.type===A.select}function Nt(e){return e.type===A.plural}function qr(e){return e.type===A.pound}function At(e){return e.type===A.tag}function Ht(e){return !!(e&&typeof e=="object"&&e.type===W.number)}function Be(e){return !!(e&&typeof e=="object"&&e.type===W.dateTime)}var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wr=/(?:[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 Zr(e){var t={};return e.replace(Wr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var B=function(){return B=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},B.apply(this,arguments)};var Jr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jr).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Yr(e){return e.replace(/^(.*?)-/,"")}var Ye=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bt=/^(@+)?(\+|#+)?[rs]?$/g,Kr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function Ke(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Bt,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function zt(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function $r(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function $e(e){var t={},r=zt(e);return r||t}function en(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=B(B(B({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"engineering":t=B(B(B({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Kr,function(d,h,c,m,p,k){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(k)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Ot.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ye.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ye,function(d,h,c,m,p,k){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&k?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+k.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=B(B({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=B(B({},t),Ke(o)));continue}if(Bt.test(i.stem)){t=B(B({},t),Ke(i.stem));continue}var s=zt(i.stem);s&&(t=B(B({},t),s));var l=$r(i.stem);l&&(t=B(B({},t),l));}return t}var pe={"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 tn(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),l=o<2?1:3+(o>>1),d="a",h=rn(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function rn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=pe[n||""]||pe[r||""]||pe["".concat(r,"-001")]||pe["001"];return i[0]}var Ne,nn=new RegExp("^".concat(Pt.source,"*")),an=new RegExp("".concat(Pt.source,"*$"));function w(e,t){return {start:e,end:t}}var on=!!String.prototype.startsWith&&"_a".startsWith("a",1),sn=!!String.fromCodePoint,ln=!!Object.fromEntries,cn=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,dn=!!Number.isSafeInteger,mn=dn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Oe=!0;try{var pn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oe=((Ne=pn.exec("a"))===null||Ne===void 0?void 0:Ne[0])==="a";}catch(e){Oe=!1;}var et=on?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ze=sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},tt=ln?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=l;}return r},It=cn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},gn=un?function(t){return t.trimStart()}:function(t){return t.replace(nn,"")},fn=hn?function(t){return t.trimEnd()}:function(t){return t.replace(an,"")};function jt(e,t){return new RegExp(e,t)}var Ie;if(Oe){var rt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ie=function(t,r){var n;rt.lastIndex=r;var i=rt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Ie=function(t,r){for(var n=[];;){var i=It(t,r);if(i===void 0||Lt(i)||kn(i))break;n.push(i),r+=i>=65536?2:1;}return ze.apply(void 0,n)};var _n=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:A.pound,location:w(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(M.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&je(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:A.literal,value:"<".concat(i,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!je(this.char()))return this.error(M.INVALID_TAG,w(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(M.UNMATCHED_CLOSING_TAG,w(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:s,location:w(n,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,w(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(M.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=w(n,this.clonePosition());return {val:{type:A.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!yn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return ze.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ze(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ie(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=w(t,o);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,w(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=fn(m.val);if(p.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var k=w(c,this.clonePosition());h={style:p,styleLocation:k};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=w(i,this.clonePosition());if(h&&et(h==null?void 0:h.style,"::",0)){var C=gn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(C,h.styleLocation);return m.err?m:{val:{type:A.number,value:n,location:g,style:m.val},err:null}}else {if(C.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,g);var y=C;this.locale&&(y=tn(C,this.locale));var p={type:W.dateTime,pattern:y,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(y):{}},v=l==="date"?A.date:A.time;return {val:{type:v,value:n,location:g,style:p},err:null}}}return {val:{type:l==="number"?A.number:l==="date"?A.date:A.time,value:n,location:g,style:(o=h==null?void 0:h.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,w(S,_e({},S)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),N=this.parseIdentifierIfPossible(),E=m.val;}var H=this.tryParsePluralOrSelectOptions(t,l,r,N);if(H.err)return H;var _=this.tryParseArgumentClose(i);if(_.err)return _;var P=w(i,this.clonePosition());return l==="select"?{val:{type:A.select,value:n,options:tt(H.val),location:P},err:null}:{val:{type:A.plural,value:n,options:tt(H.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,w(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Qr(t);}catch(i){return this.error(M.INVALID_NUMBER_SKELETON,r)}return {val:{type:W.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,l=[],d=new Set,h=i.value,c=i.location;;){if(h.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=w(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var k=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(k);if(g.err)return g;l.push([h,{value:_.val,location:w(k,this.clonePosition())}]),d.add(h),this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=o.value,c=o.location;}return l.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var d=w(i,this.clonePosition());return o?(s*=n,mn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=It(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(et(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Lt(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function je(e){return e>=97&&e<=122||e>=65&&e<=90}function yn(e){return je(e)||e===47}function vn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Lt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Le(e){e.forEach(function(t){if(delete t.location,wt(t)||Nt(t))for(var r in t.options)delete t.options[r].location,Le(t.options[r].value);else xt(t)&&Ht(t.style)||(Tt(t)||Mt(t))&&Be(t.style)?delete t.style.location:At(t)&&Le(t.children);});}function bn(e,t){t===void 0&&(t={}),t=_e({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _n(e,t).parse();if(r.err){var n=SyntaxError(M[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Le(r.val),r.val}var Z;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(Z||(Z={}));var Ee=function(e){be(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),nt=function(e){be(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Z.INVALID_VALUE,o)||this}return t}(Ee),En=function(e){be(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Z.INVALID_VALUE,i)||this}return t}(Ee),Cn=function(e){be(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Z.MISSING_VALUE,n)||this}return t}(Ee),j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(j||(j={}));function Sn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==j.literal||r.type!==j.literal?t.push(r):n.value+=r.value,t},[])}function xn(e){return typeof e=="function"}function ge(e,t,r,n,i,o,s){if(e.length===1&&Qe(e[0]))return [{type:j.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Qe(c)){l.push({type:j.literal,value:c.value});continue}if(qr(c)){typeof o=="number"&&l.push({type:j.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var p=i[m];if(Xr(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?j.literal:j.object,value:p});continue}if(Tt(c)){var k=typeof c.style=="string"?n.date[c.style]:Be(c.style)?c.style.parsedOptions:void 0;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(Mt(c)){var k=typeof c.style=="string"?n.time[c.style]:Be(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(xt(c)){var k=typeof c.style=="string"?n.number[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;k&&k.scale&&(p=p*(k.scale||1)),l.push({type:j.literal,value:r.getNumberFormat(t,k).format(p)});continue}if(At(c)){var _=c.children,g=c.value,C=i[g];if(!xn(C))throw new En(g,"function",s);var y=ge(_,t,r,n,i,o),v=C(y.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(E){return {type:typeof E=="string"?j.literal:j.object,value:E}}));}if(wt(c)){var S=c.options[p]||c.options.other;if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i));continue}if(Nt(c)){var S=c.options["=".concat(p)];if(!S){if(!Intl.PluralRules)throw new Ee(`Intl.PluralRules is not available in this environment.
233
- Try polyfilling it using "@formatjs/intl-pluralrules"
234
- `,Z.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));S=c.options[N]||c.options.other;}if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i,p-(c.offset||0)));continue}}return Sn(l)}function Tn(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Mn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Tn(e[n],t[n]),r},U({},e)):e}function Ae(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function wn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.number),strategy:we.variadic}),getDateTimeFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.dateTime),strategy:we.variadic}),getPluralRules:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.pluralRules),strategy:we.variadic})}}var Nn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=o.formatToParts(d);if(h.length===1)return h[0].value;var c=h.reduce(function(m,p){return !m.length||p.type!==j.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return ge(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return {locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=jr(s,["formatters"]);this.ast=e.__parse(t,U(U({},l),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mn(e.formats,n),this.formatters=i&&i.formatters||wn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=bn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function An(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const F={},Hn=(e,t,r)=>r&&(t in F||(F[t]={}),e in F[t]||(F[t][e]=r),r),Rt=(e,t)=>{if(t==null)return;if(t in F&&e in F[t])return F[t][e];const r=Ce(t);for(let n=0;n<r.length;n++){const i=r[n],o=Bn(i,e);if(o)return Hn(e,t,o)}};let De;const se=ke({});function Pn(e){return De[e]||null}function Ut(e){return e in De}function Bn(e,t){if(!Ut(e))return null;const r=Pn(e);return An(r,t)}function On(e){if(e==null)return;const t=Ce(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ut(n))return n}}function Dt(e,...t){delete F[e],se.update(r=>(r[e]=Ir.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>De=e);const fe={};function zn(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Gt(e){return fe[e]}function In(e){return Ce(e).map(t=>{const r=Gt(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Re(e){return e==null?!1:Ce(e).some(t=>{var r;return (r=Gt(t))==null?void 0:r.size})}function jn(e,t){return Promise.all(t.map(n=>(zn(e,n),n().then(i=>i.default||i)))).then(n=>Dt(e,...n))}const ie={};function Ft(e){if(!Re(e))return e in ie?ie[e]:Promise.resolve();const t=In(e);return ie[e]=Promise.all(t.map(([r,n])=>jn(r,n))).then(()=>{if(Re(e))return Ft(e);delete ie[e];}),ie[e]}const Ln={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"}}},Rn={fallbackLocale:null,loadingDelay:200,formats:Ln,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Un=Rn;function J(){return Un}const He=ke(!1);var Dn=Object.defineProperty,Gn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,at=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))Vn.call(t,r)&&at(e,r,t[r]);if(it)for(var r of it(t))Xn.call(t,r)&&at(e,r,t[r]);return e},Wn=(e,t)=>Gn(e,Fn(t));let Ue;const ye=ke(null);function ot(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ce(e,t=J().fallbackLocale){const r=ot(e);return t?[...new Set([...r,...ot(t)])]:r}function V(){return Ue!=null?Ue:void 0}ye.subscribe(e=>{Ue=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Zn=e=>{if(e&&On(e)&&Re(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>He.set(!0),t):He.set(!0),Ft(e).then(()=>{ye.set(e);}).finally(()=>{clearTimeout(r),He.set(!1);})}return ye.set(e)},Y=Wn(qn({},ye),{set:Zn}),Se=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Jn=Object.defineProperty,ve=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,st=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&st(e,r,t[r]);if(ve)for(var r of ve(t))Xt.call(t,r)&&st(e,r,t[r]);return e},K=(e,t)=>{var r={};for(var n in e)Vt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&Xt.call(e,n)&&(r[n]=e[n]);return r};const oe=(e,t)=>{const{formats:r}=J();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=oe("number",n)),new Intl.NumberFormat(r,i)}),Yn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=oe("date",n):Object.keys(i).length===0&&(i=oe("date","short")),new Intl.DateTimeFormat(r,i)}),Kn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=oe("time",n):Object.keys(i).length===0&&(i=oe("time","short")),new Intl.DateTimeFormat(r,i)}),$n=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Qn(Ge({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Yn(Ge({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Kn(Ge({locale:r},n))},ri=Se((e,t=V())=>new Nn(e,t,J().formats,{ignoreTag:J().ignoreTag})),ni=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=V(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rt(e,d);if(!c)c=(o=(i=(n=(r=J()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ri(c,d).format(l);}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message);}return m},ii=(e,t)=>ti(t).format(e),ai=(e,t)=>ei(t).format(e),oi=(e,t)=>$n(t).format(e),si=(e,t=V())=>Rt(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>ai);Q([Y],()=>oi);Q([Y,se],()=>si);function lt(e,t){Dt(e,t);}function ci(e){Y.set(e);}const ct={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingSk__cGd0).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ui(e){let t,r;return {c(){t=a.svg_element("svg"),r=a.svg_element("path"),a.attr(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),a.attr(t,"xmlns","http://www.w3.org/2000/svg"),a.attr(t,"viewBox","0 0 512 512");},m(n,i){a.insert(n,t,i),a.append(t,r);},p:a.noop,i:a.noop,o:a.noop,d(n){n&&a.detach(t);}}}class hi extends a.SvelteComponent{constructor(t){super(),a.init(this,t,null,ui,a.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",a.create_custom_element(hi,{},[],[],!0));function di(e){a.append_styles(e,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function ut(e,t,r){const n=e.slice();return n[64]=t[r],n}function ht(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function dt(e,t,r){const n=e.slice();return n[64]=t[r],n}function mi(e){let t,r,n=a.ensure_array_like(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=mt(ut(e,n,o));return {c(){t=a.element("div"),r=a.element("form");for(let o=0;o<i.length;o+=1)i[o].c();a.attr(r,"class","checkbox svelte-etk3ty"),a.attr(t,"class","legacyStyle");},m(o,s){a.insert(o,t,s),a.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(o,s){if(s[0]&590336){n=a.ensure_array_like(o[9]);let l;for(l=0;l<n.length;l+=1){const d=ut(o,n,l);i[l]?i[l].p(d,s):(i[l]=mt(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(o){o&&a.detach(t),a.destroy_each(i,o),e[31](null);}}}function pi(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&pt(e),p=a.ensure_array_like(e[8]),k=[];for(let g=0;g<p.length;g+=1)k[g]=kt(ht(e,p,g));let _=e[6]&&bt(e);return {c(){m&&m.c(),r=a.space();for(let g=0;g<k.length;g+=1)k[g].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=s=!e[14];},m(g,C){m&&m.m(g,C),a.insert(g,r,C);for(let y=0;y<k.length;y+=1)k[y]&&k[y].m(g,C);a.insert(g,n,C),a.insert(g,i,C),i.innerHTML=o,a.insert(g,l,C),_&&_.m(g,C),a.insert(g,d,C),h||(c=a.listen(i,"click",e[17]),h=!0);},p(g,C){if(C[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,C):(m=pt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),C[0]&867088){p=a.ensure_array_like(g[8]);let y;for(y=0;y<p.length;y+=1){const v=ht(g,p,y);k[y]?k[y].p(v,C):(k[y]=kt(v),k[y].c(),k[y].m(n.parentNode,n));}for(;y<k.length;y+=1)k[y].d(1);k.length=p.length;}C[0]&65536&&o!==(o=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),C[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,C):(_=bt(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(g),a.destroy_each(k,g),_&&_.d(g),h=!1,c();}}}function gi(e){let t,r,n;return {c(){t=a.element("div"),r=a.element("strong"),n=a.text(e[7]),a.attr(r,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ContainerCenter svelte-etk3ty");},m(i,o){a.insert(i,t,o),a.append(t,r),a.append(r,n);},p(i,o){o[0]&128&&a.set_data(n,i[7]);},d(i){i&&a.detach(t);}}}function fi(e){let t;return {c(){t=a.element("general-animation-loading"),a.set_custom_element_data(t,"clientstyling",e[1]),a.set_custom_element_data(t,"clientstylingurl",e[2]),a.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){a.insert(r,t,n);},p(r,n){n[0]&2&&a.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&a.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&a.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&a.detach(t);}}}function mt(e){let t,r,n,i,o,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,p,k,_,g,C,y,v,S;function N(...E){return e[30](e[64],...E)}return {c(){t=a.element("div"),r=a.element("input"),o=a.space(),s=a.element("label"),l=a.element("div"),d=new a.HtmlTag(!1),m=a.text(c),k=a.space(),_=a.element("small"),C=a.space(),a.attr(r,"class","checkbox__input svelte-etk3ty"),a.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",a.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,a.attr(l,"class","checkbox__label-text svelte-etk3ty"),a.attr(s,"class","checkbox__label svelte-etk3ty"),a.attr(s,"for",p=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-etk3ty"),a.attr(_,"id",g="checkBoxError__"+e[64].tagCode),a.attr(t,"class",y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,H){a.insert(E,t,H),a.append(t,r),a.append(t,o),a.append(t,s),a.append(s,l),d.m(h,l),a.append(l,m),a.append(t,k),a.append(t,_),a.append(t,C),v||(S=a.listen(r,"input",N),v=!0);},p(E,H){e=E,H[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),H[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),H[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),H[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),H[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&a.attr(s,"for",p),H[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",g),H[0]&512&&y!==(y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&a.attr(t,"class",y);},d(E){E&&a.detach(t),v=!1,S();}}}function pt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&gt(e),s=i&&ft(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-etk3ty");},m(l,d){a.insert(l,t,d),o&&o.m(t,null),a.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?o?o.p(l,d):(o=gt(l),o.c(),o.m(t,n)):o&&(o.d(1),o=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=ft(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&a.detach(t),o&&o.d(),s&&s.d();}}}function gt(e){let t,r=e[16]("title")+"",n;return {c(){t=a.element("h2"),n=a.text(r),a.attr(t,"class","PlayerConsentsTitle");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function ft(e){let t,r=e[16]("description")+"",n;return {c(){t=a.element("p"),n=a.text(r),a.attr(t,"class","PlayerConsentsDescription");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function _t(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function yt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=a.element("p"),a.attr(t,"class","ConsentDescription svelte-etk3ty");},m(n,i){a.insert(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&a.detach(t);}}}function vt(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,k,_,g,C,y=e[64].mustAccept===!0&&_t(),v=e[4]==="true"&&yt(e);function S(...N){return e[29](e[64],...N)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),y&&y.c(),l=a.space(),v&&v.c(),d=a.space(),h=a.element("label"),c=a.element("input"),k=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-etk3ty"),a.attr(r,"class","ConsentContent"),a.attr(c,"type","checkbox"),c.disabled=m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,c.checked=p=e[13][e[64].tagCode],a.attr(c,"class","svelte-etk3ty"),a.attr(_,"class","Slider Round svelte-etk3ty"),a.attr(h,"class","ToggleSwitch svelte-etk3ty"),a.attr(t,"class","ConsentItem svelte-etk3ty");},m(N,E){a.insert(N,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),y&&y.m(n,null),a.append(r,l),v&&v.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,k),a.append(h,_),g||(C=a.listen(c,"input",S),g=!0);},p(N,E){e=N,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?y||(y=_t(),y.c(),y.m(n,null)):y&&(y.d(1),y=null),e[4]==="true"?v?v.p(e,E):(v=yt(e),v.c(),v.m(r,null)):v&&(v.d(1),v=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(N){N&&a.detach(t),y&&y.d(),v&&v.d(),g=!1,C();}}}function kt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,p,k;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function C(...S){return e[28](e[61],...S)}let y=a.ensure_array_like(e[9].filter(C)),v=[];for(let S=0;S<y.length;S+=1)v[S]=vt(dt(e,y,S));return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h3"),o=a.space(),s=a.element("label"),l=a.element("input"),d=a.space(),h=a.element("span"),c=a.space(),m=a.element("div");for(let S=0;S<v.length;S+=1)v[S].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-etk3ty"),a.attr(h,"class","Slider Round svelte-etk3ty"),a.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),a.attr(r,"class","AccordionHeader svelte-etk3ty"),a.attr(m,"class","AccordionContent svelte-etk3ty"),a.attr(t,"class","AccordionItem svelte-etk3ty");},m(S,N){a.insert(S,t,N),a.append(t,r),a.append(r,n),n.innerHTML=i,a.append(r,o),a.append(r,s),a.append(s,l),l.checked=e[11][e[61].categoryTagCode],a.append(s,d),a.append(s,h),a.append(t,c),a.append(t,m);for(let E=0;E<v.length;E+=1)v[E]&&v[E].m(m,null);p||(k=[a.listen(l,"change",_),a.listen(l,"change",g)],p=!0);},p(S,N){if(e=S,N[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),N[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),N[0]&602896){y=a.ensure_array_like(e[9].filter(C));let E;for(E=0;E<y.length;E+=1){const H=dt(e,y,E);v[E]?v[E].p(H,N):(v[E]=vt(H),v[E].c(),v[E].m(m,null));}for(;E<v.length;E+=1)v[E].d(1);v.length=y.length;}},d(S){S&&a.detach(t),a.destroy_each(v,S),p=!1,a.run_all(k);}}}function bt(e){let t,r,n,i,o;return {c(){t=a.element("div"),r=a.element("circle-exclamation-icon"),n=a.space(),i=a.element("strong"),o=a.text(e[6]),a.set_custom_element_data(r,"class","svelte-etk3ty"),a.attr(i,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ConsentErrorContainer svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),a.append(t,n),a.append(t,i),a.append(i,o);},p(s,l){l[0]&64&&a.set_data(o,s[6]);},d(s){s&&a.detach(t);}}}function _i(e){let t,r;function n(s,l){if(s[10])return fi;if(s[7])return gi;if(s[0])return pi;if(!s[0])return mi}let i=n(e),o=i&&i(e);return {c(){t=a.element("div"),r=a.element("div"),o&&o.c(),a.attr(r,"class","ConsentsContainer svelte-etk3ty"),a.attr(t,"class",a.null_to_empty("")+" svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),o&&o.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&o?o.p(s,l):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(r,null)));},i:a.noop,o:a.noop,d(s){s&&a.detach(t),o&&o.d(),e[32](null);}}}function yi(e,t,r){let n;a.component_subscribe(e,li,u=>r(16,n=u));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:p=""}=t,{modalconsents:k="false"}=t,_,g=!1,C=!1,y="",v="",S="",N="",E=[],H=[],P=[],$=!0,le=!0,L={},ce={},G={},I={},ee,ue,z={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},he=!1;Object.keys(ct).forEach(u=>{lt(u,ct[u]);});const Wt=()=>{ci(c);},Zt=()=>{let u=new URL(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(T=>{lt(T,f[T]);});}).catch(f=>{console.log(f);});},Jt=()=>{i&&(y=i,C=!0),o&&(v=o);},de=(u,f=!1)=>{f?r(7,N=u):(tr(),r(6,S=u));},te=(u,f,T,b=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,T);if(!x.ok)throw new Error(n(f));const O=yield x.json();return C?O:O.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,b),x}}),Qt=()=>ne(this,null,function*(){try{let u=[],f=[];if(C?[u,f]=yield Fe():u=yield Fe(),r(10,$=!1),H=[...u],r(8,E=Kt(H).sort((T,b)=>T.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,L=$t(E)),ce=D({},L),r(9,P=[...f]),H.forEach(T=>{let b=P.find(x=>x.tagCode===T.tagCode);b||(b=Ze(D({},T),{status:z.denied.value}),P.push(b)),b.description=T.description,b.orderNumber=T.orderNumber;}),k==="true"){if(r(9,P=P.filter(T=>T.status===z.expired.value)),P.length!==0)return;de(n("wrongModalConfig"),!0);}er();}catch(u){throw r(10,$=!1),de(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),Fe=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!C)return yield te(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${v}`);return yield Promise.all([te(u.href,"fetchConsentsError",{method:"GET"},!0),te(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":y,"Content-Type":"application/json"}})])}),Yt=()=>{he=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},T={method:"GET",headers:f};fetch(u.href,T).then(b=>b.ok?b.json():(he=!0,b.json().then(x=>(console.error(x),me(x))))).then(b=>{if(!he){if(H=b,localStorage.getItem("playerConsents")){try{r(9,P=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),me(x)}return}return r(9,P=H.map(x=>({id:x.id,status:z.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(P)),P}}).catch(b=>(console.error(b),me(b))).finally(()=>{r(10,$=!1);});},Kt=u=>{const f=new Map;return u.forEach(T=>{f.has(T.category.categoryTagCode)||f.set(T.category.categoryTagCode,T.category);}),Array.from(f.values())},$t=u=>{const f=localStorage.getItem("categoryToggle"+v);if(f===null){const T=u.reduce((b,x)=>(b[x.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+v,JSON.stringify(T)),T}else return JSON.parse(f)},er=()=>{P.forEach(u=>{r(12,G[u.tagCode]=u.status===z.accepted.value,G);}),r(13,I=D({},G));},tr=()=>{r(13,I=D({},G)),r(11,L=D({},ce));},rr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(b=>{const x=P.find(O=>O.tagCode===b);I[b]!==G[b]&&(x?u.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}):f.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}));}),!C){localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),le=!0;return}const T=new URL(`${s}/api/v1/gm/user-consents/${v}`);try{const b=yield Promise.allSettled([f.length>0&&te(T.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(T.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);b.forEach((x,O)=>{if(x.status==="rejected"||x.value.ok===!1){const R=O<f.length?f[O]:u[O-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),b.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,G=D({},I)));}catch(b){de(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{le=!0,r(14,ee=!1);}}),nr=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),T={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:P,registrationId:u},x={method:"POST",body:JSON.stringify(b),headers:T};fetch(f.href,x).then(O=>{O.ok||(he=!0);}).catch(O=>(console.error(O),me(O))).finally(()=>{r(10,$=!1);});},Ve=u=>{P.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===z.denied.value?z.accepted.value:z.denied.value,r(13,I[f.tagCode]=L[u]||!1,I);}),r(14,ee=Xe());},xe=(u,f,T)=>{const b=P.find(R=>R.id===T),x=f?"value":"key";let O;if(!f&&b.mustAccept){const R=Array.from(ue.children);for(const re of R)if(O=Array.from(re.children).find(pr=>pr.getAttribute("id")===`checkBoxError__${b.tagCode}`),O)break}if(b.status===z.accepted[x]?(b.status=z.denied[x],O&&(O.innerHTML=n("requiredError"))):(b.status=z.accepted[x],O&&(O.innerHTML="")),f){r(13,I[b.tagCode]=!I[b.tagCode],I);const R=P.filter(re=>re.category.categoryTagCode===f.categoryTagCode).every(re=>re.status!==z.denied.value);r(11,L[f.categoryTagCode]=R,L);}ir();},ir=((u,f)=>{let T;return function(...b){const x=this;clearTimeout(T),T=setTimeout(()=>{u.apply(x,b);},f);}})(()=>ar(),500),ar=()=>{r(14,ee=Xe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(P)));},Xe=()=>P.filter(f=>P.some(T=>f.tagCode===T.tagCode&&T.mustAccept&&(f.status===z.denied.key||f.status===z.denied.value))).length===0,me=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},or=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||nr(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,g=!0);},50);const u=f=>or(f);return window.addEventListener("message",u),()=>{window.removeEventListener("message",u);}});function sr(u){L[u.categoryTagCode]=this.checked,r(11,L);}const lr=u=>Ve(u.categoryTagCode),cr=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,ur=(u,f)=>xe(f,u.category,u.id),hr=(u,f)=>xe(f,null,u.id);function dr(u){a.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function mr(u){a.binding_callbacks[u?"unshift":"push"](()=>{_=u,r(5,_);});}return e.$$set=u=>{"session"in u&&r(0,i=u.session),"userid"in u&&r(20,o=u.userid),"endpoint"in u&&r(21,s=u.endpoint),"clientstyling"in u&&r(1,l=u.clientstyling),"clientstylingurl"in u&&r(2,d=u.clientstylingurl),"mbsource"in u&&r(3,h=u.mbsource),"lang"in u&&r(22,c=u.lang),"displayconsentdescription"in u&&r(4,m=u.displayconsentdescription),"translationurl"in u&&r(23,p=u.translationurl),"modalconsents"in u&&r(24,k=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&g&&i&&(Jt(),Qt()),e.$$.dirty[0]&1&&(i||Yt()),e.$$.dirty[0]&34&&l&&_&&a.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&a.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&a.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Wt(),e.$$.dirty[0]&8388608&&p&&Zt();},[i,l,d,h,m,_,S,N,E,P,$,L,G,I,ee,ue,n,rr,Ve,xe,o,s,c,p,k,g,sr,lr,cr,ur,hr,dr,mr]}class qt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,yi,_i,a.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},di,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),a.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),a.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),a.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),a.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),a.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),a.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),a.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),a.flush();}}a.create_custom_element(qt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=qt;
235
- }(PlayerConsentsDrhcDBLh));
236
-
237
- if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsDrhcDBLh).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
238
-
239
- const generalRegistrationHslCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
240
- const GeneralRegistrationHslStyle0 = generalRegistrationHslCss;
241
-
242
- const GeneralRegistrationHsl = class {
243
- constructor(hostRef) {
244
- registerInstance(this, hostRef);
245
- this.registrationWidgetLoaded = createEvent(this, "registrationWidgetLoaded", 7);
246
- this.registrationStepUpdated = createEvent(this, "registrationStepUpdated", 7);
247
- this.validationChange = createEvent(this, "validationChange", 7);
248
- this.listOfInputValues = [];
249
- this.listOfInputValidity = [];
250
- this.listOfActions = [];
251
- this.listOfInputs = [];
252
- this.conditionalValidationMap = {};
253
- this.lastStep = '';
254
- this.emitValue = false;
255
- this.form = null;
256
- this.errorCode = '';
257
- this.backButtonPressed = false;
258
- this.registerErrors = false;
259
- this.extraActions = [];
260
- this.registerCredentialsEvent = null;
261
- this.twofaDestination = '';
262
- this.registrationStepsState = {
263
- regId: null
264
- };
265
- this.setClientStyling = () => {
266
- let sheet = document.createElement('style');
267
- sheet.innerHTML = this.clientStyling;
268
- this.host.shadowRoot.prepend(sheet);
269
- };
270
- this.setClientStylingURL = () => {
271
- let url = new URL(this.clientStylingUrl);
272
- let cssFile = document.createElement('style');
273
- fetch(url.href)
274
- .then((res) => res.text())
275
- .then((data) => {
276
- cssFile.innerHTML = data;
277
- this.clientStyling = data;
278
- setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
279
- });
280
- };
281
- this.setStreamStyling = (domain) => {
282
- if (window.emMessageBus) {
283
- const sheet = document.createElement('style');
284
- this.stylingSubscription = window.emMessageBus.subscribe(domain, (data) => {
285
- sheet.innerHTML = data;
286
- this.clientStyling = data;
287
- this.host.shadowRoot.prepend(sheet);
288
- });
289
- }
290
- };
291
- // handles sending a custom event for initial interaction with the registration form
292
- this.handleInitialClick = (e) => {
293
- if (!this.isInitalInteraction)
294
- return;
295
- dispatchCustomEvent('register_start', { field: e.target.name });
296
- this.isInitalInteraction = false;
297
- };
298
- this.endpoint = undefined;
299
- this.language = 'en';
300
- this.clientStyling = '';
301
- this.mbSource = undefined;
302
- this.clientStylingUrl = '';
303
- this.translationUrl = '';
304
- this.dateFormat = undefined;
305
- this.buttonInsideForm = undefined;
306
- this.btag = null;
307
- this.emitOnClick = false;
308
- this.errorMessage = '';
309
- this.isFormValid = false;
310
- this.isConsentValid = false;
311
- this.isConsentReady = false;
312
- this.isLoading = true;
313
- this.isLoadingPOST = false;
314
- this.registrationStep = '';
315
- this.forms = [];
316
- this.limitStylingAppends = false;
317
- this.autofilled = false;
318
- this.isInitalInteraction = true;
319
- }
320
- sendStep() {
321
- this.registrationStepUpdated.emit(this.registrationStep);
322
- window.postMessage({ type: 'registrationStepUpdated', step: this.registrationStep }, window.location.href);
323
- }
324
- handleStylingChange(newValue, oldValue) {
325
- if (newValue !== oldValue)
326
- this.setClientStyling();
327
- }
328
- handleStylingUrlChange(newValue, oldValue) {
329
- if (newValue !== oldValue)
330
- this.setClientStylingURL();
331
- }
332
- setFormValidity() {
333
- this.errorMessage = '';
334
- if (this.listOfInputValidity) {
335
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
336
- }
337
- //Check for autofilled.
338
- if (this.listOfInputs.some(inputs => inputs.autofill)) {
339
- this.autofilled = true;
340
- }
341
- }
342
- addBtag() {
343
- this.addBtagValue();
344
- }
345
- checkInputsValidityHandler(event) {
346
- // Set isValid state of the input in the list.
347
- this.listOfInputValidity.find(input => input.name == event.detail.name).isValid = event.detail.valid;
348
- // Check if any one is invalid.
349
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
350
- }
351
- getInputsValueHandler(event) {
352
- this.listOfInputValues.find(input => {
353
- if (input.name == event.detail.name) {
354
- input.value = event.detail.value;
355
- input.type = event.detail.type || null;
356
- }
357
- });
358
- this.stepsStateMachine({ event: 'set', type: 'values' });
359
- this.handleConditionalValidation(event.detail.name, event.detail.value);
360
- }
361
- handleRequestTwofa() {
362
- if (!this.twofaDestination)
363
- return;
364
- const url = new URL('api/v1/gm/legislation/twoFaCode/', this.endpoint);
365
- const headers = new Headers({
366
- 'Content-Type': 'application/problem+json; charset=utf-8'
367
- });
368
- const body = JSON.stringify({
369
- channel: 'Sms',
370
- destination: this.twofaDestination
371
- });
372
- const options = { method: 'POST', headers, body };
373
- fetch(url.href, options)
374
- .then(res => {
375
- if (res.ok)
376
- return;
377
- res.json().then(err => {
378
- var _a;
379
- const errorCode = (_a = err.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
380
- this.errorMessage = translate(errorCode, this.language) || translate('requestTwofaError', this.language);
381
- });
382
- })
383
- .catch((err) => console.log(err));
384
- }
385
- messageHandler(e) {
386
- //Handle Consents Message
387
- if (!e.data)
388
- return;
389
- switch (e.data.type) {
390
- case 'isConsentsValid':
391
- this.listOfInputValidity.find((input) => input.name === "Consents").isValid = e.data.isValid;
392
- this.isConsentValid = e.data.isValid;
393
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
394
- break;
395
- }
396
- }
397
- componentWillLoad() {
398
- return this.getRegisterConfig()
399
- .then((config) => {
400
- this.formatConfig(config);
401
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
402
- this.stepsStateMachine({ event: 'set', type: 'inputs' });
403
- this.setupConditionalValidationMap();
404
- }, (err) => {
405
- console.error(err);
406
- });
407
- }
408
- componentDidLoad() {
409
- this.registrationWidgetLoaded.emit();
410
- window.postMessage({ type: 'registrationWidgetLoaded' }, window.location.href);
411
- if (!this.limitStylingAppends && this.host) {
412
- if (window.emMessageBus != undefined) {
413
- this.setStreamStyling(`${this.mbSource}.Style`);
414
- }
415
- else {
416
- if (this.clientStyling)
417
- this.setClientStyling();
418
- if (this.clientStylingUrl)
419
- this.setClientStylingURL();
420
- this.limitStylingAppends = true;
421
- }
422
- }
423
- }
424
- disconnectedCallback() {
425
- this.stylingSubscription && this.stylingSubscription.unsubscribe();
426
- }
427
- /**
428
- * This function produces the conditionalValidationMap object presented below
429
- *
430
- * this.conditionalValidationMap =
431
- * {
432
- * correlationField: {
433
- * correlationValue: {
434
- * field: {
435
- * ...validation
436
- * },
437
- * ...
438
- * },
439
- * ...
440
- * },
441
- * ...
442
- * }
443
- *
444
- * - this object describes the conditional validation of some fields based on the value of others.
445
- * - correlationField is the conditioning field, correlationValue is the value of the correlationField for which
446
- * a certain validation is applied to the affected fields. {...validation} is an object of type ValidationSchema
447
- */
448
- setupConditionalValidationMap() {
449
- for (const input of this.listOfInputs) {
450
- // unconditioned rules (i.e correlationField and corrlationValue == null)
451
- const staticRules = [];
452
- // conditional rules
453
- const conditionalRules = [];
454
- for (const rule of input.validate.custom) {
455
- if (!rule.correlationField || !rule.correlationValue) {
456
- staticRules.push(rule);
457
- continue;
458
- }
459
- conditionalRules.push(rule);
460
- }
461
- for (const rule of conditionalRules) {
462
- if (rule.rule === 'regex') {
463
- /**
464
- * copy the original validation, replace the original "custom" rules (which contain all conditional rules)
465
- * with only one conditional rule + all static rules, resulting in the validation for ${input} when
466
- * ${rule.correlationField} takes value ${rule.correlationValue}
467
- */
468
- const validate = Object.assign({}, input.validate);
469
- validate.custom = [...staticRules, rule];
470
- const cf = rule.correlationField;
471
- const cv = rule.correlationValue;
472
- // assign new validation to ${input}
473
- this.conditionalValidationMap[cf] = this.conditionalValidationMap[cf] || {};
474
- this.conditionalValidationMap[cf][cv] = this.conditionalValidationMap[cf][cv] || {};
475
- this.conditionalValidationMap[cf][cv][input.name] = validate;
476
- }
477
- }
478
- }
479
- }
480
- /**
481
- * Whenever a field changes its value, we check if it is conditioning any other fields and
482
- * if it is we update the validation of the affected fields.
483
- */
484
- handleConditionalValidation(correlationField, correlationValue) {
485
- if (!this.conditionalValidationMap[correlationField] ||
486
- !this.conditionalValidationMap[correlationField][correlationValue]) {
487
- return;
488
- }
489
- for (const [field, validation] of Object.entries(this.conditionalValidationMap[correlationField][correlationValue])) {
490
- const registrationStepIdx = this.registrationStep && parseInt(this.registrationStep.replace('Step', '')) - 1;
491
- this.forms[registrationStepIdx][this.registrationStep].find(item => item.name === field).validate = validation;
492
- this.validationChange.emit({ validation, field });
493
- }
494
- }
495
- nextHandler(e) {
496
- e.preventDefault();
497
- // Trigger events in subwidgets.
498
- this.emitValue = true;
499
- this.errorMessage = '';
500
- this.registerErrors = false;
501
- this.setRegisterStep();
502
- }
503
- backHandler(e) {
504
- e.preventDefault();
505
- this.registrationStep = this.stepChange('decrement');
506
- this.errorMessage = '';
507
- this.stepsStateMachine({ event: 'get', type: 'inputs' });
508
- this.stepsStateMachine({ event: 'get', type: 'values' });
509
- }
510
- dispatchRegisterCredentialsEvent() {
511
- let userNameEmail = '';
512
- let userPassword = '';
513
- Object.keys(this.registrationStepsState).forEach((step) => {
514
- if (!this.registrationStepsState[step]['registerUserData'])
515
- return;
516
- if (!userNameEmail) {
517
- userNameEmail = this.registrationStepsState[step]['registerUserData']['Email']
518
- ? this.registrationStepsState[step]['registerUserData']['Email']['value']
519
- : userNameEmail;
520
- }
521
- if (!userPassword) {
522
- userPassword = this.registrationStepsState[step]['registerUserData']['Password']
523
- ? this.registrationStepsState[step]['registerUserData']['Password']['value']
524
- : userPassword;
525
- }
526
- });
527
- this.registerCredentialsEvent = new CustomEvent('RegisterCredentials', {
528
- bubbles: true,
529
- detail: {
530
- userNameEmail: userNameEmail,
531
- userPassword: userPassword
532
- }
533
- });
534
- window.dispatchEvent(this.registerCredentialsEvent);
535
- }
536
- stepsStateMachine(state) {
537
- const saveToLocalStorage = () => {
538
- localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
539
- };
540
- const loadFromLocalStorage = () => {
541
- return JSON.parse(localStorage.getItem('registrationStepsState'));
542
- };
543
- switch (state.event) {
544
- case 'set':
545
- if (state.type == 'inputs') {
546
- // Store input-related data into the current step state
547
- const currentStep = this.registrationStepsState[this.registrationStep];
548
- currentStep.fields = this.listOfInputs;
549
- currentStep.actions = this.listOfActions;
550
- currentStep.fieldsValidity = this.listOfInputValidity;
551
- }
552
- if (state.type == 'values') {
553
- // Map input values into the current step state
554
- const currentStep = this.registrationStepsState[this.registrationStep];
555
- currentStep.registerUserData = this.listOfInputValues.reduce((acc, curr) => {
556
- acc[curr.name] = { value: curr.value, isDuplicate: curr.isDuplicate };
557
- return acc;
558
- }, {});
559
- }
560
- saveToLocalStorage();
561
- break;
562
- case 'get':
563
- const savedUserData = loadFromLocalStorage();
564
- if (!savedUserData)
565
- return;
566
- if (state.type == 'inputs') {
567
- // Load input-related data from the saved state
568
- const currentStep = this.registrationStepsState[this.registrationStep];
569
- this.listOfInputs = currentStep.fields;
570
- this.listOfActions = currentStep.actions;
571
- this.listOfInputValidity = currentStep.fieldsValidity;
572
- }
573
- if (state.type == 'values') {
574
- const savedValues = savedUserData[this.registrationStep].registerUserData;
575
- // Convert saved values to the expected format for inputs
576
- this.listOfInputValues = Object.keys(savedValues).map(name => {
577
- return { name, value: savedValues[name].value, isDuplicate: savedValues[name].isDuplicate };
578
- });
579
- // Give to each field the user input as the default value.
580
- this.listOfInputValues.forEach(inputValue => {
581
- const input = this.listOfInputs.find(input => input.name === inputValue.name);
582
- if (input) {
583
- input.defaultValue = inputValue.value;
584
- // if the input is a togglecheckbox, set the default value for each subfield.
585
- if (input.inputType === 'togglecheckbox') {
586
- input.data.subFields.forEach((subfield) => {
587
- const subfieldValue = this.listOfInputValues.find(subfieldValue => subfieldValue.name === subfield.name);
588
- subfield.defaultValue = subfieldValue.value;
589
- });
590
- }
591
- }
592
- });
593
- }
594
- this.isConsentReady = this.listOfActions.some(action => action === '/Consents');
595
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
596
- break;
597
- }
598
- }
599
- triggerNotification(errMsg, errType = 'WidgetNotification') {
600
- window.postMessage({
601
- type: errType,
602
- data: {
603
- type: 'error',
604
- message: errMsg
605
- }
606
- }, window.location.href);
607
- }
608
- getRegisterConfig(registrationID) {
609
- const url = new URL('v1/player/legislation/registration/config/', this.endpoint);
610
- const headers = new Headers();
611
- headers.append('Content-Type', 'application/json');
612
- headers.append('Accept', 'application/json');
613
- if (registrationID) {
614
- url.searchParams.append('registrationId', registrationID);
615
- }
616
- const options = {
617
- method: 'GET',
618
- headers
619
- };
620
- return new Promise((resolve, reject) => {
621
- this.isLoading = true;
622
- fetch(url.href, options)
623
- .then((res) => {
624
- if (!res.ok) {
625
- this.registerErrors = true;
626
- return res.json().then(error => {
627
- this.errorCode = error.thirdPartyResponse.errorCode;
628
- this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
629
- this.triggerNotification(this.errorMessage);
630
- });
631
- }
632
- return res.json();
633
- })
634
- .then((config) => {
635
- this.isLoading = false;
636
- if (!config) {
637
- return reject('Get register config is empty or has an error.');
638
- }
639
- return resolve(config);
640
- }, (err) => {
641
- console.error('Get register config is empty or has an error: ', err);
642
- return reject(err);
643
- }).finally(() => {
644
- this.isLoading = false;
645
- });
646
- });
647
- }
648
- setRegisterStep() {
649
- this.isLoadingPOST = true;
650
- const url = new URL('v1/player/legislation/registration/step/', this.endpoint);
651
- const registerStep = {
652
- registrationId: this.registrationID,
653
- registerUserDto: this.listOfInputValues
654
- .filter(input => !input.isDuplicate)
655
- .reduce((acc, curr) => {
656
- // Because the API is very robust, some values need to be split as separate entities.
657
- if (curr.name === 'TypeOfPublicArea') {
658
- acc[curr.name] = curr.value.toLowerCase();
659
- }
660
- else if (curr.type === 'tel') {
661
- //@ts-ignore
662
- acc['MobilePrefix'] = curr.value.prefix;
663
- //@ts-ignore
664
- acc[curr.name] = curr.value.phone;
665
- }
666
- else if (curr.type === 'checkboxgroup') {
667
- // Skip adding the parent of the checkboxgroup as a key.
668
- if (curr.value !== null) {
669
- Object.entries(curr.value).forEach(([key, value]) => {
670
- acc[key] = value ? 'true' : 'false';
671
- });
672
- }
673
- }
674
- else if (curr.type === 'toggle') {
675
- acc[curr.name] = curr.value ? 'true' : 'false';
676
- }
677
- else {
678
- acc[curr.name] = curr.value;
679
- }
680
- return acc;
681
- }, {}),
682
- step: this.registrationStep,
683
- };
684
- const headers = new Headers();
685
- headers.append('Content-Type', 'application/json');
686
- headers.append('Accept', 'application/json');
687
- const options = {
688
- method: 'POST',
689
- body: JSON.stringify(registerStep),
690
- headers
691
- };
692
- fetch(url.href, options)
693
- .then((res) => {
694
- if (!res.ok) {
695
- return res.json().then(error => {
696
- this.errorCode = error.thirdPartyResponse.errorCode;
697
- // Show the idomsoft error if it is the case
698
- if (this.errorCode == 'GmErr_BadRequest_IdomsoftVerification_ShouldRetry') {
699
- this.errorMessage = error.thirdPartyResponse.message;
700
- }
701
- else if (this.errorCode === 'GmErr_Forbidden_UserAccount_NavExcluded') {
702
- this.errorMessage = translate(`${this.errorCode}`, this.language);
703
- }
704
- else if (this.errorCode == 'GmErr_BadRequest') {
705
- this.errorMessage = error.thirdPartyResponse.message;
706
- }
707
- else {
708
- this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
709
- }
710
- this.triggerNotification(this.errorMessage);
711
- });
712
- }
713
- // handles sending suctom events and the requested data for each registration step
714
- if (this.registrationStep === 'Step1') {
715
- const eventData = {
716
- // @ts-ignore
717
- IBAN: registerStep.registerUserDto.IBAN,
718
- // @ts-ignore
719
- username: registerStep.registerUserDto.Username,
720
- };
721
- dispatchCustomEvent('register_step1', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration', eventData: eventData });
722
- }
723
- else if (this.registrationStep === 'Step2') {
724
- const eventData = {
725
- // @ts-ignore
726
- gender: registerStep.registerUserDto.Gender,
727
- // @ts-ignore
728
- fullName: `${registerStep.registerUserDto.FirstnameOnDocument} ${registerStep.registerUserDto.LastNameOnDocument}`,
729
- // @ts-ignore
730
- city: registerStep.registerUserDto.City
731
- };
732
- dispatchCustomEvent('register_step2', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration', eventData: eventData });
733
- }
734
- else if (this.registrationStep === 'Step3') {
735
- const eventData = {
736
- // @ts-ignore
737
- OIB: registerStep.registerUserDto.PersonalID,
738
- // @ts-ignore
739
- documentType: registerStep.registerUserDto.DocumentType,
740
- };
741
- dispatchCustomEvent('register_step3', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration', eventData: eventData });
742
- }
743
- return res.json();
744
- })
745
- .then((data) => {
746
- this.isLoadingPOST = false;
747
- this.registrationID = data.registrationId;
748
- if (this.listOfActions.find(action => action === '/request-2FA')) {
749
- this.twofaDestination = Object.values(this.listOfInputValues.find(item => item.type === 'tel').value).join('');
750
- this.handleRequestTwofa();
751
- }
752
- if (this.listOfActions.some(action => action == '/register')) {
753
- if (this.listOfActions.some(action => action == '/generate-2FA-code/Generate2FACode')) {
754
- this.extraActions.push('2fa');
755
- }
756
- if (localStorage.getItem('playerConsents')) {
757
- localStorage.removeItem("playerConsents");
758
- }
759
- this.setRegister();
760
- }
761
- else {
762
- if (this.isConsentValid) {
763
- window.postMessage({ type: 'setUpPlayerConsents', registerid: this.registrationID });
764
- }
765
- // After sending the current step, increment and check if the next one is in state.
766
- this.registrationStep = this.stepChange('increment');
767
- // If step is present in state do NOT fetch the next config.
768
- if (Object.keys(this.registrationStepsState).find(key => key == this.registrationStep)) {
769
- // Use the one from state
770
- this.stepsStateMachine({ event: 'get', type: 'inputs' });
771
- this.stepsStateMachine({ event: 'get', type: 'values' });
772
- }
773
- else {
774
- this.getRegisterConfig(this.registrationID).then((config) => {
775
- // Format the new step config.
776
- this.formatConfig(config);
777
- // Set it in local storage.
778
- this.stepsStateMachine({ event: 'set', type: 'inputs' });
779
- // Setup conditionalValidationMap
780
- this.setupConditionalValidationMap();
781
- }, (err) => {
782
- // Only send the error to user because this.getRegisterConfig already has proper error logging
783
- this.triggerNotification(err);
784
- });
785
- }
786
- }
787
- })
788
- .catch((err) => {
789
- this.isLoadingPOST = false;
790
- console.error(err);
791
- }).finally(() => {
792
- this.isLoadingPOST = false;
793
- });
794
- }
795
- setRegister() {
796
- this.isLoading = true;
797
- this.registerErrors = false;
798
- const url = new URL('v1/player/legislation/register/', this.endpoint);
799
- const headers = new Headers();
800
- headers.append('Content-Type', 'application/json');
801
- headers.append('Accept', 'application/json');
802
- const options = {
803
- method: 'PUT',
804
- body: JSON.stringify({ registrationId: this.registrationID }),
805
- headers
806
- };
807
- dispatchCustomEvent('register_submit', { registrationId: this.registrationID });
808
- fetch(url.href, options)
809
- .then((res) => {
810
- if (!res.ok) {
811
- this.registerErrors = true;
812
- return res.json().then(error => {
813
- this.errorCode = error.thirdPartyResponse.errorCode;
814
- // Show the idomsoft error if it is the case
815
- if (this.errorCode == 'GmErr_BadRequest_IdomsoftVerification_ShouldRetry') {
816
- this.errorMessage = error.thirdPartyResponse.message;
817
- }
818
- else if (this.errorCode == 'GmErr_BadRequest') {
819
- this.errorMessage = error.thirdPartyResponse.message;
820
- }
821
- else {
822
- this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
823
- }
824
- window.postMessage({ type: 'registrationFailed', errorMessage: error === null || error === void 0 ? void 0 : error.thirdPartyResponse.message }, window.location.href);
825
- this.triggerNotification(this.errorMessage);
826
- dispatchCustomEvent('register_fail', { error: this.errorMessage });
827
- });
828
- }
829
- return res.json();
830
- })
831
- .then((data) => {
832
- this.isLoading = false;
833
- if (!this.registerErrors) {
834
- this.dispatchRegisterCredentialsEvent();
835
- window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId, extraActions: this.extraActions }, window.location.href);
836
- window.postMessage({
837
- type: 'WidgetNotification', data: {
838
- type: 'success',
839
- message: translate('successMessage', this.language)
840
- }
841
- }, window.location.href);
842
- dispatchCustomEvent('register_closed', { userId: data.userId });
843
- }
844
- })
845
- .catch((err) => {
846
- this.isLoading = false;
847
- console.error(err);
848
- })
849
- .finally(() => {
850
- this.isLoading = false;
851
- });
852
- }
853
- formatConfig(config) {
854
- this.listOfInputs = config.content.fields.flatMap((field) => {
855
- // Special case for inputs that need to be duplicated.
856
- const duplicateInputRule = field.validate.custom.find(customRule => customRule.rule === 'duplicate-input');
857
- const inputElement = Object.assign({}, field);
858
- if (duplicateInputRule) {
859
- const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: duplicateInputRule.displayName, isDuplicateInput: true });
860
- return [inputElement, duplicateInput];
861
- }
862
- else {
863
- return [inputElement];
864
- }
865
- });
866
- this.listOfInputValidity = this.listOfInputs.reduce((acc, field) => {
867
- var _a;
868
- // If the field is a togglecheckbox, add its subfields
869
- if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "togglecheckbox") {
870
- field.data.subFields.forEach(subfield => {
871
- acc.push({
872
- name: subfield.name,
873
- isValid: this.setInitialValidStatus(subfield)
874
- });
875
- });
876
- }
877
- else {
878
- acc.push({
879
- name: field.name,
880
- isValid: this.setInitialValidStatus(field)
881
- });
882
- }
883
- return acc;
884
- }, []);
885
- this.listOfInputValues = this.listOfInputs.reduce((acc, field) => {
886
- var _a;
887
- const inputType = (_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase();
888
- // If the field type is a 'togglecheckbox', add its subfields
889
- if (inputType === 'togglecheckbox') {
890
- field.data.subFields.forEach(subfield => {
891
- var _a;
892
- acc.push({
893
- name: subfield.name,
894
- value: ((_a = subfield.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) == 'checkbox' ? 'false' : null,
895
- isDuplicate: subfield.isDuplicateInput || false,
896
- type: inputType === 'togglecheckbox' ? 'togglecheckbox' : null
897
- });
898
- });
899
- }
900
- acc.push({
901
- name: field.name,
902
- value: inputType === 'checkbox' || inputType === 'togglecheckbox' ? 'false' : null,
903
- isDuplicate: field.isDuplicateInput || false,
904
- type: inputType === 'checkboxgroup' ? 'checkboxgroup' : (inputType === 'togglecheckbox' ? 'toggle' : null)
905
- });
906
- return acc;
907
- }, []);
908
- if (this.btag)
909
- this.addBtagValue();
910
- // Set the list of actions
911
- this.listOfActions = config.content.actions.map(action => action);
912
- this.registrationID = config.content.registrationID;
913
- this.registrationStep = config.content.step;
914
- if (this.listOfActions.some(action => action == '/register')) {
915
- this.lastStep = this.registrationStep;
916
- }
917
- if (this.listOfActions.some(action => action == '/Consents')) {
918
- if (this.isConsentReady) {
919
- this.listOfInputValidity.find((input) => input.name === "Consents").isValid = false;
920
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
921
- return;
922
- }
923
- this.listOfInputValidity.push({ name: 'Consents', isValid: false });
924
- this.isConsentReady = true;
925
- }
926
- else {
927
- this.isConsentReady = false;
928
- }
929
- // The translations for fields happens here.
930
- if (this.translationUrl) {
931
- getTranslations(this.translationUrl).then(() => {
932
- this.listOfInputs.forEach(field => {
933
- var _a, _b;
934
- this.addTranslation(field);
935
- // Logic for field types that have subfields
936
- if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'togglecheckbox') {
937
- field.data.subFields.forEach(subField => this.addTranslation(subField));
938
- }
939
- if (((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'checkboxgroup') {
940
- this.addTranslation(field);
941
- field.data.subFields.forEach(subField => this.addTranslation(subField));
942
- }
943
- return field;
944
- });
945
- })
946
- .catch((error) => {
947
- console.error('Failed to fetch translations:', error);
948
- }).finally(() => {
949
- this.forms = [...this.forms, { [this.registrationStep]: this.listOfInputs }];
950
- });
951
- }
952
- else {
953
- this.forms = [...this.forms, { [this.registrationStep]: this.listOfInputs }];
954
- }
955
- // Add the step to the registrationStepsData
956
- this.registrationStepsState.regId = this.registrationID;
957
- if (!this.registrationStepsState[this.registrationStep]) {
958
- this.registrationStepsState[this.registrationStep] = {
959
- fields: [],
960
- fieldsValidity: [],
961
- registerUserData: {},
962
- actions: []
963
- };
964
- }
965
- }
966
- addBtagValue() {
967
- const btagField = this.listOfInputs.find(input => input.name.toLowerCase() === 'btag');
968
- if (btagField) {
969
- btagField.defaultValue = this.btag;
970
- }
971
- const btagValue = this.listOfInputValues.find(input => input.name.toLowerCase() === 'btag');
972
- if (btagValue) {
973
- btagValue.value = this.btag;
974
- }
975
- }
976
- addTranslation(field) {
977
- const lang = TRANSLATIONS[this.language] ? this.language : DEFAULT_LANGUAGE;
978
- if (TRANSLATIONS[lang][field.name]) {
979
- Object.keys(TRANSLATIONS[this.language][field.name]).forEach((key) => {
980
- field[key] = TRANSLATIONS[this.language][field.name][key];
981
- });
982
- }
983
- }
984
- setInitialValidStatus(field) {
985
- var _a, _b, _c, _d;
986
- // Input type checkbox, with no validation are valid
987
- if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) == 'checkbox' && ((_b = field.validate) === null || _b === void 0 ? void 0 : _b.mandatory) == false) {
988
- return true;
989
- }
990
- //Checkboxes that are mandatory and set as false || null should't be valid.
991
- if (((_c = field.inputType) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'checkbox' && ((_d = field.validate) === null || _d === void 0 ? void 0 : _d.mandatory) && field.defaultValue !== 'true') {
992
- return false;
993
- }
994
- //Inputs that have default value and aren't mandatory are valid.
995
- if (field.defaultValue !== null) {
996
- return true;
997
- }
998
- return false;
999
- }
1000
- stepChange(action) {
1001
- const stepNum = parseInt(this.registrationStep.replace('Step', ''));
1002
- if (action === 'increment') {
1003
- return 'Step' + (stepNum + 1);
1004
- }
1005
- if (action === 'decrement') {
1006
- return 'Step' + (stepNum - 1);
1007
- }
1008
- }
1009
- getInvalidStatus(listOfInputs) {
1010
- return listOfInputs.filter(input => input.isValid == false).length > 0;
1011
- }
1012
- renderErrorMessage(errorMsg) {
1013
- return (h$1("p", { class: "registration registration__error-message" }, errorMsg));
1014
- }
1015
- renderForm() {
1016
- return this.forms.map((form, index) => {
1017
- return h$1("form", { action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index + 1}` ? 'hidden' : ''}`, ref: el => this.form = el, onClick: this.handleInitialClick }, form[this.registrationStep] && form[this.registrationStep].map((input) => {
1018
- var _a, _b;
1019
- return h$1("div", { key: input.name, class: "input-wrapper" }, h$1("general-input-hsl", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
1020
- ? (input.inputType.toLowerCase() === 'checkboxgroup' || input.inputType.toLowerCase() === 'togglecheckbox')
1021
- ? input.data.subFields
1022
- : input.data.values
1023
- : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder, "date-format": this.dateFormat, "twofa-destination": this.twofaDestination, "twofa-resend-interval-seconds": (_a = input.customInfo) === null || _a === void 0 ? void 0 : _a.twofaResendIntervalSeconds, "translation-url": this.translationUrl, emitOnClick: this.emitOnClick, onClick: this.handleInitialClick }), ((_b = input.customInfo) === null || _b === void 0 ? void 0 : _b.description) && (h$1("div", { class: "input-description" }, input.customInfo.description)));
1024
- }), this.isConsentReady && this.renderConsents(), this.buttonInsideForm && this.renderButtons(), h$1("div", { class: 'registration__wrapper--flex' }, h$1("p", { class: 'registration__error-message', innerHTML: this.errorMessage })));
1025
- });
1026
- }
1027
- ;
1028
- renderConsents() {
1029
- return (h$1("div", { class: "consentsContainer" }, h$1("player-consents", { endpoint: this.endpoint })));
1030
- }
1031
- renderButtons() {
1032
- return (h$1("div", null, this.isLoadingPOST
1033
- && h$1("slot", { name: 'spinner' })
1034
- && h$1("svg", { class: "spinner", viewBox: "0 0 50 50" }, h$1("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "5" })), !this.isLoadingPOST && h$1("div", { class: `registration__buttons-wrapper ${this.autofilled ? 'registration__buttons-wrapper--autofilled' : ''}` }, h$1("button", { class: `registration__button registration__button--next ${this.isFormValid ? '' : 'registration__button--disabled'}`, type: 'submit', form: `RegistrationForm${this.registrationStep}`, onClick: (e) => this.nextHandler(e), disabled: !this.isFormValid }, this.lastStep === this.registrationStep ? translate('doneButton', this.language) : translate('nextButton', this.language)), h$1("button", { class: `registration__button registration__button--back ${this.registrationStep == 'Step1' ? 'registration__button--first-step' : ''}`, onClick: (e) => this.backHandler(e) }, translate('backButton', this.language)))));
1035
- }
1036
- render() {
1037
- if (this.isLoading && !this.registerErrors) {
1038
- return h$1("p", { class: `registration registration__loading-message` }, translate('loadingMessage', this.language));
1039
- }
1040
- else if (!this.isLoading && this.registerErrors) {
1041
- return this.renderErrorMessage(this.errorMessage);
1042
- }
1043
- return (h$1("div", { class: `registration registration__${this.registrationStep}` }, this.renderForm(), !this.buttonInsideForm && this.renderButtons()));
1044
- }
1045
- get host() { return getElement(this); }
1046
- static get watchers() { return {
1047
- "registrationStep": ["sendStep"],
1048
- "clientStyling": ["handleStylingChange"],
1049
- "clientStylingUrl": ["handleStylingUrlChange"],
1050
- "forms": ["setFormValidity"],
1051
- "btag": ["addBtag"]
1052
- }; }
1053
- };
1054
- GeneralRegistrationHsl.style = GeneralRegistrationHslStyle0;
1055
-
1056
- export { GeneralRegistrationHsl as G };