@everymatrix/player-account-controller 1.72.1 → 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/components/{GeneralLogout-CgxHUYZx.js → GeneralLogout-BHj50gej.js} +8 -8
  2. package/components/{GeneralLogout-CYE3twI-.js → GeneralLogout-INWUDrak.js} +8 -8
  3. package/components/PlayerAccountBettingHistory-6bdMRw7b.js +311 -0
  4. package/components/PlayerAccountBettingHistory-BG5_gjSl.cjs +1 -0
  5. package/components/PlayerAccountBettingHistory-DVj3QpKW.js +310 -0
  6. package/components/{PlayerAccountBiometrics-CCk_4MyI.js → PlayerAccountBiometrics-C5pUACUE.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-DrmVF6dX.js → PlayerAccountBiometrics-DkxwtpuF.js} +1 -1
  8. package/components/{PlayerAccountClosure-B_xwOPds.js → PlayerAccountClosure-D2ApiUXV.js} +1 -1
  9. package/components/{PlayerAccountClosure-UwL_V2IO.js → PlayerAccountClosure-vPc-BArB.js} +1 -1
  10. package/components/{PlayerAccountController-CqAFUuWU.js → PlayerAccountController-2uMVXSSQ.js} +25 -25
  11. package/components/{PlayerAccountController-DOrj81a0.js → PlayerAccountController-COFCcEvV.js} +25 -25
  12. package/components/{PlayerAccountController-BoNq7g_6.cjs → PlayerAccountController-SUrzo8aT.cjs} +1 -1
  13. package/components/{PlayerAccountGamingLimits-B0QALjVi.js → PlayerAccountGamingLimits-BfrumTwY.js} +2 -2
  14. package/components/{PlayerAccountGamingLimits-C11On8aq.js → PlayerAccountGamingLimits-DlA29Y4p.js} +2 -2
  15. package/components/{PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js → PlayerAccountGamingLimitsConfirmationModal-Cg5ndunr.js} +1 -1
  16. package/components/{PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js → PlayerAccountGamingLimitsConfirmationModal-D5LstV9w.js} +1 -1
  17. package/components/{PlayerAccountGamingLimitsGroupEdit-CoayAtf0.js → PlayerAccountGamingLimitsGroupEdit-DN-VG2ye.js} +4 -4
  18. package/components/{PlayerAccountGamingLimitsGroupEdit-C40tSY9Z.js → PlayerAccountGamingLimitsGroupEdit-vuv0-MMp.js} +4 -4
  19. package/components/{PlayerAccountGamingLimitsHistory2-Br4h7_eS.js → PlayerAccountGamingLimitsHistory2-B8TPjC1F.js} +1 -1
  20. package/components/{PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js → PlayerAccountGamingLimitsHistory2-GRu_2NJ0.js} +1 -1
  21. package/components/{PlayerAccountGamingLimitsInfoCard-blI001Nx.js → PlayerAccountGamingLimitsInfoCard-8Ea7IE2K.js} +3 -3
  22. package/components/{PlayerAccountGamingLimitsInfoCard-D5Vpi7Gd.js → PlayerAccountGamingLimitsInfoCard-BfD6DDSB.js} +3 -3
  23. package/components/{PlayerAccountGamingLimitsPage2Gm16-BAQqtUjc.js → PlayerAccountGamingLimitsPage2Gm16-B02A1fGD.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsPage2Gm16-Cov3S01u.js → PlayerAccountGamingLimitsPage2Gm16-CnUGDYRk.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsPopup-DTb6cpuT.js → PlayerAccountGamingLimitsPopup-BlVtbm__.js} +1 -1
  26. package/components/{PlayerAccountGamingLimitsPopup-Dz9ROowj.js → PlayerAccountGamingLimitsPopup-DPu9x2H3.js} +1 -1
  27. package/components/{PlayerAccountGamingLimitsWrapper2-LAdy0FnH.js → PlayerAccountGamingLimitsWrapper2-CqXn9yDd.js} +3 -3
  28. package/components/{PlayerAccountGamingLimitsWrapper2-CeTGUdpp.js → PlayerAccountGamingLimitsWrapper2-cJf0myiC.js} +3 -3
  29. package/components/{PlayerAccountGeneralConfirmationModal-DbBEBukz.js → PlayerAccountGeneralConfirmationModal-BksqLS7V.js} +1 -1
  30. package/components/{PlayerAccountGeneralConfirmationModal-DzZ3ym_J.js → PlayerAccountGeneralConfirmationModal-eHfDDGZk.js} +1 -1
  31. package/components/{PlayerAccountMenu-_Qnpkznr.js → PlayerAccountMenu-CE6Ej_rV.js} +2 -2
  32. package/components/{PlayerAccountMenu-T7u8nYfI.js → PlayerAccountMenu-Cp7Edaq0.js} +2 -2
  33. package/components/{PlayerAccountModal-Cbpkb5P6.js → PlayerAccountModal-CrjAmgmN.js} +31 -31
  34. package/components/{PlayerAccountModal-Co5a_OZZ.js → PlayerAccountModal-DYSDyLvm.js} +31 -31
  35. package/components/PlayerAccountNotifications-Cyle3r2h.cjs +1 -0
  36. package/components/{PlayerAccountNotifications-BeabE333.js → PlayerAccountNotifications-OyZ1fIUi.js} +21 -21
  37. package/components/PlayerAccountNotifications-qIJQNyMm.js +363 -0
  38. package/components/{PlayerAccountProductRestriction-Vl7EIMfJ.js → PlayerAccountProductRestriction-BZ2Y4yzU.js} +3 -3
  39. package/components/{PlayerAccountProductRestriction-DvqI77xo.js → PlayerAccountProductRestriction-L-vR790T.js} +3 -3
  40. package/components/{PlayerAccountSelfExclusion-Dq7G7DeK.js → PlayerAccountSelfExclusion-7psd7i6U.js} +229 -230
  41. package/components/{PlayerAccountSelfExclusion-BUoFSg8L.js → PlayerAccountSelfExclusion-Bd8SgB7m.js} +256 -256
  42. package/components/{PlayerAccountSelfExclusion-CC2VhBEv.cjs → PlayerAccountSelfExclusion-Dq1gDgcx.cjs} +8 -8
  43. package/components/{PlayerAccountTimeout-BuNhODT0.cjs → PlayerAccountTimeout-CMLyedNs.cjs} +1 -1
  44. package/components/{PlayerAccountTimeout-o11NOFXb.js → PlayerAccountTimeout-Dby2FPrP.js} +3 -3
  45. package/components/{PlayerAccountTimeout-Brl7HCpJ.js → PlayerAccountTimeout-uyeQ1--8.js} +3 -3
  46. package/components/{PlayerAccountTransactionsHistory-Dm5dcrFj.js → PlayerAccountTransactionsHistory-B5-KRVvB.js} +3 -3
  47. package/components/{PlayerAccountTransactionsHistory-DMr6unVm.js → PlayerAccountTransactionsHistory-BWsoBgd6.js} +3 -3
  48. package/components/{PlayerAccountTransactionsHistory-BBn9XxCH.cjs → PlayerAccountTransactionsHistory-Bn5gyj5f.cjs} +1 -1
  49. package/components/{PlayerActiveBonuses-CaQNGq0m.js → PlayerActiveBonuses-C9i5xuOt.js} +2 -2
  50. package/components/{PlayerActiveBonuses-DX872Zcz.js → PlayerActiveBonuses-Cz3aqMcu.js} +2 -2
  51. package/components/{PlayerBonusCard-ZY8S04oT.js → PlayerBonusCard-DatoS2En.js} +2 -2
  52. package/components/{PlayerBonusCard-Cu5bJlh_.js → PlayerBonusCard-lMeM3LSx.js} +2 -2
  53. package/components/{PlayerBonusHistory-CNQrPTXb.js → PlayerBonusHistory-BUUBhu5n.js} +4 -4
  54. package/components/{PlayerBonusHistory-IbQagu8m.js → PlayerBonusHistory-BVbwQ0Zf.js} +4 -4
  55. package/components/{PlayerChangePassword-C2ZoKuCq.js → PlayerChangePassword-BUYrlClk.js} +1 -1
  56. package/components/{PlayerChangePassword-ChwKfBC6.js → PlayerChangePassword-CGqqlwlb.js} +1 -1
  57. package/components/{PlayerDeposit-BPZ5wCAZ.js → PlayerDeposit-CTxatYEW.js} +1 -1
  58. package/components/{PlayerDeposit-VLcz0tQH.js → PlayerDeposit-DQObc_n_.js} +1 -1
  59. package/components/{PlayerGamingHistory-DI45HNlI.js → PlayerGamingHistory-BAeIZw2u.js} +4 -4
  60. package/components/{PlayerGamingHistory-BBZLzVSS.js → PlayerGamingHistory-xZ8szCQB.js} +4 -4
  61. package/components/{PlayerPendingWithdrawals-go7okUzL.js → PlayerPendingWithdrawals-CuGt7dq1.js} +1 -1
  62. package/components/{PlayerPendingWithdrawals-DeNKdUgJ.js → PlayerPendingWithdrawals-Dek0JuV2.js} +1 -1
  63. package/components/{PlayerProfileInfo-C8q-cLYa.js → PlayerProfileInfo-BI4jNmXN.js} +1 -1
  64. package/components/{PlayerProfileInfo-bwbHpI6M.js → PlayerProfileInfo-C4dNo9s-.js} +1 -1
  65. package/components/{PlayerRealityCheck-C2w5S2fe.js → PlayerRealityCheck-8KkrG0sn.js} +1 -1
  66. package/components/{PlayerRealityCheck-BGNjgzIq.js → PlayerRealityCheck-CS9oAjTQ.js} +1 -1
  67. package/components/{PlayerTransactionHistory-A-aVfyoc.js → PlayerTransactionHistory-Cw0GAF5l.js} +1 -1
  68. package/components/{PlayerTransactionHistory-BFV_XJw9.js → PlayerTransactionHistory-D7aVTCre.js} +1 -1
  69. package/components/{PlayerWithdrawal-B_wQZI_t.js → PlayerWithdrawal-BPfYoISW.js} +1 -1
  70. package/components/{PlayerWithdrawal-CTttZqLr.js → PlayerWithdrawal-C7mFHGlW.js} +1 -1
  71. package/es2015/player-account-controller.cjs +1 -1
  72. package/es2015/player-account-controller.js +1 -1
  73. package/esnext/player-account-controller.js +1 -1
  74. package/package.json +1 -1
  75. package/stencil/{checkbox-group-input_15-OwR3eXhS.js → checkbox-group-input_15-BXx2eI5U.js} +453 -453
  76. package/stencil/{checkbox-group-input_15-Vwz1wSzH.js → checkbox-group-input_15-C6LpSObs.js} +452 -452
  77. package/stencil/{checkbox-group-input_15-rrNwAy0j.cjs → checkbox-group-input_15-DadoyfRo.cjs} +4 -4
  78. package/stencil/{index-13661b98-CmRNR-rV.js → index-13661b98-6KjWiAei.js} +1 -1
  79. package/stencil/{index-13661b98-DhWvmFjk.js → index-13661b98-DMsw1Rqj.js} +1 -1
  80. package/stencil/{index-13661b98-D5aIg_pY.cjs → index-13661b98-e0g0ZJ4Q.cjs} +1 -1
  81. package/stencil/{index-1ef3a64c-uiTzpR-U.cjs → index-1ef3a64c-B7_EyQDJ.cjs} +1 -1
  82. package/stencil/{index-1ef3a64c-B5I86vac.js → index-1ef3a64c-BMK3b66v.js} +1 -1
  83. package/stencil/{index-1ef3a64c-DqUPq8OL.js → index-1ef3a64c-Cs1oM3tK.js} +1 -1
  84. package/stencil/{index-9c0f6c58-DmOKHEVq.cjs → index-9c0f6c58-CtHWkW4O.cjs} +1 -1
  85. package/stencil/{index-9c0f6c58-bxjYqwOi.js → index-9c0f6c58-DxzXe6Kn.js} +1 -1
  86. package/stencil/{index-9c0f6c58-BB5opCt9.js → index-9c0f6c58-Hy2JqCeP.js} +1 -1
  87. package/stencil/{pam-change-password-dEbTDKG0.js → pam-change-password-CIhfcFNO.js} +1 -1
  88. package/stencil/{pam-change-password-CV0uMtXO.cjs → pam-change-password-CQIieVFW.cjs} +1 -1
  89. package/stencil/{pam-change-password-B4zuIndQ.js → pam-change-password-L1xQARTQ.js} +1 -1
  90. package/stencil/{pam-change-password-f4a1e7e7-DAXvLl_6.cjs → pam-change-password-f4a1e7e7-B5NzEtGA.cjs} +1 -1
  91. package/stencil/{pam-change-password-f4a1e7e7-CNFdEoO5.js → pam-change-password-f4a1e7e7-Br0FC_GU.js} +1 -1
  92. package/stencil/{pam-change-password-f4a1e7e7-BdbrsvWx.js → pam-change-password-f4a1e7e7-bArCapa-.js} +1 -1
  93. package/stencil/{player-kyc-verification-DYcPWwfi.cjs → player-kyc-verification-BVPPMf62.cjs} +3 -2
  94. package/stencil/{player-kyc-verification-CMAkNiAB.js → player-kyc-verification-BX-zXzBh.js} +2 -1
  95. package/stencil/{player-kyc-verification-p2WFnKBp.js → player-kyc-verification-CvOTQFbs.js} +2 -1
  96. package/stencil/user-deposit-withdrawal-B5PikBDs.cjs +72 -0
  97. package/stencil/{user-deposit-withdrawal-BjmaGgRK.js → user-deposit-withdrawal-BftWiELv.js} +14 -8
  98. package/stencil/{user-deposit-withdrawal-D6SDVw3h.js → user-deposit-withdrawal-mAQqyXGF.js} +14 -8
  99. package/components/PlayerAccountBettingHistory-B0IsJ01N.js +0 -328
  100. package/components/PlayerAccountBettingHistory-BXBMy618.js +0 -329
  101. package/components/PlayerAccountBettingHistory-BtDZukYI.cjs +0 -1
  102. package/components/PlayerAccountNotifications-B0Nsdovh.js +0 -363
  103. package/components/PlayerAccountNotifications-aQgcZXcD.cjs +0 -1
  104. package/stencil/user-deposit-withdrawal-Du59X_-y.cjs +0 -68
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-13661b98-D5aIg_pY.cjs"),yd=require("./pam-change-password-f4a1e7e7-DAXvLl_6.cjs"),wd="en",Ns={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar"}},y=(i,e,t)=>{const r=e;let o=Ns[r!==void 0?r:wd][i];if(t!==void 0)for(const[a,s]of Object.entries(t.values)){const n=new RegExp(`{${a}}`,"g");o=o.replace(n,s)}return o},xd=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let o in t[r])Ns[r][o]=t[r][o]}),e(!0)})}),le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Cd='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;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}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',kd=Cd,Ls=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return u.h("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},u.h("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&u.h("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&u.h("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>u.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Ls.style=kd;const Id='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{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}.checkbox__tooltip.visible{opacity:1}',Ed=Id,Fs=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"8c80c955bb052558165a4c5b1020d0582ed0af36",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("input",{key:"89401d543cb30b72ec614b0cd4e95b2e82b2522d",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.inputReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),u.h("small",{key:"d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb",class:"checkbox__error-message"},this.errorMessage),u.h("div",{key:"c511c07684173359663d4907371efb82289f0433",class:"checkbox__wrapper--relative"},this.tooltip&&u.h("img",{key:"dd263ce86efd89f34078f3cc24729f43f40e89a6",class:"checkbox__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fs.style=Ed;function ye(i){"@babel/helpers - typeof";return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(i)}function B(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ad(i){return B(1,arguments),i instanceof Date||ye(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function Y(i){B(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||ye(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Rs(i){if(B(1,arguments),!Ad(i)&&typeof i!="number")return!1;var e=Y(i);return!isNaN(Number(e))}function Z(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Sd(i,e){B(2,arguments);var t=Y(i).getTime(),r=Z(e);return new Date(t+r)}function Bs(i,e){B(2,arguments);var t=Z(e);return Sd(i,-t)}var Td=864e5;function Pd(i){B(1,arguments);var e=Y(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/Td)+1}function Ze(i){B(1,arguments);var e=1,t=Y(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Hs(i){B(1,arguments);var e=Y(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=Ze(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var s=Ze(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function Dd(i){B(1,arguments);var e=Hs(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Ze(t);return r}var Od=6048e5;function $s(i){B(1,arguments);var e=Y(i),t=Ze(e).getTime()-Dd(e).getTime();return Math.round(t/Od)+1}var Vd={};function at(){return Vd}function Fe(i,e){var t,r,o,a,s,n,l,d;B(1,arguments);var h=at(),c=Z((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(n=s.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Y(i),m=p.getUTCDay(),g=(m<c?7:0)+m-c;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function so(i,e){var t,r,o,a,s,n,l,d;B(1,arguments);var h=Y(i),c=h.getUTCFullYear(),p=at(),m=Z((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(n=s.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(c+1,0,m),g.setUTCHours(0,0,0,0);var E=Fe(g,e),w=new Date(0);w.setUTCFullYear(c,0,m),w.setUTCHours(0,0,0,0);var x=Fe(w,e);return h.getTime()>=E.getTime()?c+1:h.getTime()>=x.getTime()?c:c-1}function zd(i,e){var t,r,o,a,s,n,l,d;B(1,arguments);var h=at(),c=Z((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(n=s.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=so(i,e),m=new Date(0);m.setUTCFullYear(p,0,c),m.setUTCHours(0,0,0,0);var g=Fe(m,e);return g}var Md=6048e5;function qs(i,e){B(1,arguments);var t=Y(i),r=Fe(t,e).getTime()-zd(t,e).getTime();return Math.round(r/Md)+1}function M(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Nd={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return M(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return M(a,t.length)}};const ke=Nd;var Ue={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ld={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return ke.y(e,t)},Y:function(e,t,r,o){var a=so(e,o),s=a>0?a:1-a;if(t==="YY"){var n=s%100;return M(n,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):M(s,t.length)},R:function(e,t){var r=Hs(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return M(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return M(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return ke.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return M(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=qs(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var o=$s(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):M(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ke.d(e,t)},D:function(e,t,r){var o=Pd(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):M(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return M(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return M(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=Ue.noon:o===0?a=Ue.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=Ue.evening:o>=12?a=Ue.afternoon:o>=4?a=Ue.morning:a=Ue.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ke.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ke.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ke.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ke.s(e,t)},S:function(e,t){return ke.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return ya(s);case"XXXX":case"XX":return ze(s);case"XXXXX":case"XXX":default:return ze(s,":")}},x:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(t){case"x":return ya(s);case"xxxx":case"xx":return ze(s);case"xxxxx":case"xxx":default:return ze(s,":")}},O:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ba(s,":");case"OOOO":default:return"GMT"+ze(s,":")}},z:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ba(s,":");case"zzzz":default:return"GMT"+ze(s,":")}},t:function(e,t,r,o){var a=o._originalDate||e,s=Math.floor(a.getTime()/1e3);return M(s,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,s=a.getTime();return M(s,t.length)}};function ba(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var s=e;return t+String(o)+s+M(a,2)}function ya(i,e){if(i%60===0){var t=i>0?"-":"+";return t+M(Math.abs(i)/60,2)}return ze(i,e)}function ze(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=M(Math.floor(o/60),2),s=M(o%60,2);return r+a+t+s}const Fd=Ld;var wa=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Us=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Rd=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return wa(e,t);var s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",wa(o,t)).replace("{{time}}",Us(a,t))},Bd={p:Us,P:Rd};const wr=Bd;function Ws(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var Hd=["D","DD"],$d=["YY","YYYY"];function js(i){return Hd.indexOf(i)!==-1}function Ys(i){return $d.indexOf(i)!==-1}function di(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var qd={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ud=function(e,t,r){var o,a=qd[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Wd=Ud;function Ki(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var jd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kd={date:Ki({formats:jd,defaultWidth:"full"}),time:Ki({formats:Yd,defaultWidth:"full"}),dateTime:Ki({formats:Gd,defaultWidth:"full"})};const Xd=Kd;var Qd={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jd=function(e,t,r,o){return Qd[e]};const Zd=Jd;function _t(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,s=t!=null&&t.width?String(t.width):a;o=i.formattingValues[s]||i.formattingValues[a]}else{var n=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[n]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var eh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},th={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ih={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},oh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ah={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sh=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},nh={ordinalNumber:sh,era:_t({values:eh,defaultWidth:"wide"}),quarter:_t({values:th,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:_t({values:ih,defaultWidth:"wide"}),day:_t({values:rh,defaultWidth:"wide"}),dayPeriod:_t({values:oh,defaultWidth:"wide",formattingValues:ah,defaultFormattingWidth:"wide"})};const lh=nh;function ft(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var s=a[0],n=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(n)?hh(n,function(c){return c.test(s)}):dh(n,function(c){return c.test(s)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var h=e.slice(s.length);return{value:d,rest:h}}}function dh(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function hh(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function ch(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var s=i.valueCallback?i.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;var n=e.slice(o.length);return{value:s,rest:n}}}var uh=/^(\d+)(th|st|nd|rd)?/i,ph=/\d+/i,mh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_h={any:[/^b/i,/^(a|c)/i]},fh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vh={any:[/1/i,/2/i,/3/i,/4/i]},gh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wh={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xh={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ch={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kh={ordinalNumber:ch({matchPattern:uh,parsePattern:ph,valueCallback:function(e){return parseInt(e,10)}}),era:ft({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:_h,defaultParseWidth:"any"}),quarter:ft({matchPatterns:fh,defaultMatchWidth:"wide",parsePatterns:vh,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ft({matchPatterns:gh,defaultMatchWidth:"wide",parsePatterns:bh,defaultParseWidth:"any"}),day:ft({matchPatterns:yh,defaultMatchWidth:"wide",parsePatterns:wh,defaultParseWidth:"any"}),dayPeriod:ft({matchPatterns:xh,defaultMatchWidth:"any",parsePatterns:Ch,defaultParseWidth:"any"})};const Ih=kh;var Eh={code:"en-US",formatDistance:Wd,formatLong:Xd,formatRelative:Zd,localize:lh,match:Ih,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Gs=Eh;var Ah=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Th=/^'([^]*?)'?$/,Ph=/''/g,Dh=/[a-zA-Z]/;function xa(i,e,t){var r,o,a,s,n,l,d,h,c,p,m,g,E,w;B(2,arguments);var x=String(e),I=at(),q=(r=(o=void 0)!==null&&o!==void 0?o:I.locale)!==null&&r!==void 0?r:Gs,F=Z((a=(s=(n=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&n!==void 0?n:I.firstWeekContainsDate)!==null&&s!==void 0?s:(d=I.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ae=Z((c=(p=(m=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&m!==void 0?m:I.weekStartsOn)!==null&&p!==void 0?p:(E=I.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(ae>=0&&ae<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var Ce=Y(i);if(!Rs(Ce))throw new RangeError("Invalid time value");var ct=Ws(Ce),ut=Bs(Ce,ct),pt={firstWeekContainsDate:F,weekStartsOn:ae,locale:q,_originalDate:Ce},ji=x.match(Sh).map(function(X){var ee=X[0];if(ee==="p"||ee==="P"){var Oe=wr[ee];return Oe(X,q.formatLong)}return X}).join("").match(Ah).map(function(X){if(X==="''")return"'";var ee=X[0];if(ee==="'")return Oh(X);var Oe=Fd[ee];if(Oe)return Ys(X)&&di(X,e,String(i)),js(X)&&di(X,e,String(i)),Oe(ut,X,q.localize,pt);if(ee.match(Dh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return X}).join("");return ji}function Oh(i){var e=i.match(Th);return e?e[1].replace(Ph,"'"):i}function Ca(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Vh(i,e){if(i){if(typeof i=="string")return Ca(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ca(i,e):void 0}}function ka(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Vh(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,n=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return s=d.done,d},e:function(d){n=!0,a=d},f:function(){try{s||t.return==null||t.return()}finally{if(n)throw a}}}}function zh(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function xr(i,e){return xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},xr(i,e)}function A(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&xr(i,e)}function hi(i){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(i)}function Ks(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ks=function(){return!!i})()}function Mh(i,e){if(e&&(ye(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function S(i){var e=Ks();return function(){var t,r=hi(i);if(e){var o=hi(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Mh(this,t)}}function C(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Nh(i,e){if(ye(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(ye(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Xs(i){var e=Nh(i,"string");return ye(e)=="symbol"?e:e+""}function Lh(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Xs(r.key),r)}}function k(i,e,t){return e&&Lh(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=Xs(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Fh=10,Qs=function(){function i(){C(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return k(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),Rh=function(i){A(t,i);var e=S(t);function t(r,o,a,s,n){var l;return C(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=s,n&&(l.subPriority=n),l}return k(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,s){return this.setValue(o,a,this.value,s)}}]),t}(Qs),Bh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",Fh),f(v(r),"subPriority",-1),r}return k(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),t}(Qs),O=function(){function i(){C(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return k(i,[{key:"run",value:function(t,r,o,a){var s=this.parse(t,r,o,a);return s?{setter:new Rh(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Hh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",140),f(v(r),"incompatibleTokens",["R","u","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,s){return a.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),$h=6e4,qh=36e5,Uh=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},he={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function W(i,e){return i&&{value:e(i.value),rest:i.rest}}function R(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(o*qh+a*$h+s*Uh),rest:e.slice(t[0].length)}}function Js(i){return R(U.anyDigitsSigned,i)}function H(i,e){switch(i){case 1:return R(U.singleDigit,e);case 2:return R(U.twoDigits,e);case 3:return R(U.threeDigits,e);case 4:return R(U.fourDigits,e);default:return R(new RegExp("^\\d{1,"+i+"}"),e)}}function ci(i,e){switch(i){case 1:return R(U.singleDigitSigned,e);case 2:return R(U.twoDigitsSigned,e);case 3:return R(U.threeDigitsSigned,e);case 4:return R(U.fourDigitsSigned,e);default:return R(new RegExp("^-?\\d{1,"+i+"}"),e)}}function no(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Zs(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,s=Math.floor(a/100)*100,n=i>=a%100;o=i+s-(n?100:0)}return t?o:1-o}function en(i){return i%400===0||i%4===0&&i%100!==0}var Wh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return W(H(4,o),n);case"yo":return W(s.ordinalNumber(o,{unit:"year"}),n);default:return W(H(a.length,o),n)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,s){var n=o.getUTCFullYear();if(s.isTwoDigitYear){var l=Zs(s.year,n);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?s.year:1-s.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),jh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return W(H(4,o),n);case"Yo":return W(s.ordinalNumber(o,{unit:"year"}),n);default:return W(H(a.length,o),n)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,s,n){var l=so(o,n);if(s.isTwoDigitYear){var d=Zs(s.year,l);return o.setUTCFullYear(d,0,n.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fe(o,n)}var h=!("era"in a)||a.era===1?s.year:1-s.year;return o.setUTCFullYear(h,0,n.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fe(o,n)}}]),t}(O),Yh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a){return ci(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,s){var n=new Date(0);return n.setUTCFullYear(s,0,4),n.setUTCHours(0,0,0,0),Ze(n)}}]),t}(O),Gh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a){return ci(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Kh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"Q":case"QQ":return H(a.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Xh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"q":case"qq":return H(a.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Qh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(v(r),"priority",110),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return d-1};switch(a){case"M":return W(R(U.month,o),n);case"MM":return W(H(2,o),n);case"Mo":return W(s.ordinalNumber(o,{unit:"month"}),n);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Jh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",110),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return d-1};switch(a){case"L":return W(R(U.month,o),n);case"LL":return W(H(2,o),n);case"Lo":return W(s.ordinalNumber(o,{unit:"month"}),n);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),t}(O);function Zh(i,e,t){B(2,arguments);var r=Y(i),o=Z(e),a=qs(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var ec=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"w":return R(U.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,s,n){return Fe(Zh(o,s,n),n)}}]),t}(O);function tc(i,e){B(2,arguments);var t=Y(i),r=Z(e),o=$s(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var ic=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"I":return R(U.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,s){return Ze(tc(o,s))}}]),t}(O),rc=[31,28,31,30,31,30,31,31,30,31,30,31],oc=[31,29,31,30,31,30,31,31,30,31,30,31],ac=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subPriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"d":return R(U.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){var s=o.getUTCFullYear(),n=en(s),l=o.getUTCMonth();return n?a>=1&&a<=oc[l]:a>=1&&a<=rc[l]}},{key:"set",value:function(o,a,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),t}(O),sc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subpriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"D":case"DD":return R(U.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){var s=o.getUTCFullYear(),n=en(s);return n?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),t}(O);function lo(i,e,t){var r,o,a,s,n,l,d,h;B(2,arguments);var c=at(),p=Z((r=(o=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(n=t.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&o!==void 0?o:(d=c.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Y(i),g=Z(e),E=m.getUTCDay(),w=g%7,x=(w+7)%7,I=(x<p?7:0)+g-E;return m.setUTCDate(m.getUTCDate()+I),m}var nc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,n){return o=lo(o,s,n),o.setUTCHours(0,0,0,0),o}}]),t}(O),lc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s,n){var l=function(h){var c=Math.floor((h-1)/7)*7;return(h+n.weekStartsOn+6)%7+c};switch(a){case"e":case"ee":return W(H(a.length,o),l);case"eo":return W(s.ordinalNumber(o,{unit:"day"}),l);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,n){return o=lo(o,s,n),o.setUTCHours(0,0,0,0),o}}]),t}(O),dc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s,n){var l=function(h){var c=Math.floor((h-1)/7)*7;return(h+n.weekStartsOn+6)%7+c};switch(a){case"c":case"cc":return W(H(a.length,o),l);case"co":return W(s.ordinalNumber(o,{unit:"day"}),l);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,n){return o=lo(o,s,n),o.setUTCHours(0,0,0,0),o}}]),t}(O);function hc(i,e){B(2,arguments);var t=Z(e);t%7===0&&(t=t-7);var r=1,o=Y(i),a=o.getUTCDay(),s=t%7,n=(s+7)%7,l=(n<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var cc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return d===0?7:d};switch(a){case"i":case"ii":return H(a.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return W(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),n);case"iiiii":return W(s.day(o,{width:"narrow",context:"formatting"}),n);case"iiiiii":return W(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),n);case"iiii":default:return W(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,s){return o=hc(o,s),o.setUTCHours(0,0,0,0),o}}]),t}(O),uc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(no(s),0,0,0),o}}]),t}(O),pc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(no(s),0,0,0),o}}]),t}(O),mc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","b","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(no(s),0,0,0),o}}]),t}(O),_c=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"h":return R(U.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,s){var n=o.getUTCHours()>=12;return n&&s<12?o.setUTCHours(s+12,0,0,0):!n&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),t}(O),fc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"H":return R(U.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,s){return o.setUTCHours(s,0,0,0),o}}]),t}(O),vc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"K":return R(U.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){var n=o.getUTCHours()>=12;return n&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),t}(O),gc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"k":return R(U.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,s){var n=s<=24?s%24:s;return o.setUTCHours(n,0,0,0),o}}]),t}(O),bc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",60),f(v(r),"incompatibleTokens",["t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"m":return R(U.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,s){return o.setUTCMinutes(s,0,0),o}}]),t}(O),yc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",50),f(v(r),"incompatibleTokens",["t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"s":return R(U.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,s){return o.setUTCSeconds(s,0),o}}]),t}(O),wc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",30),f(v(r),"incompatibleTokens",["t","T"]),r}return k(t,[{key:"parse",value:function(o,a){var s=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return W(H(a.length,o),s)}},{key:"set",value:function(o,a,s){return o.setUTCMilliseconds(s),o}}]),t}(O),xc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","x"]),r}return k(t,[{key:"parse",value:function(o,a){switch(a){case"X":return ce(he.basicOptionalMinutes,o);case"XX":return ce(he.basic,o);case"XXXX":return ce(he.basicOptionalSeconds,o);case"XXXXX":return ce(he.extendedOptionalSeconds,o);case"XXX":default:return ce(he.extended,o)}}},{key:"set",value:function(o,a,s){return a.timestampIsSet?o:new Date(o.getTime()-s)}}]),t}(O),Cc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","X"]),r}return k(t,[{key:"parse",value:function(o,a){switch(a){case"x":return ce(he.basicOptionalMinutes,o);case"xx":return ce(he.basic,o);case"xxxx":return ce(he.basicOptionalSeconds,o);case"xxxxx":return ce(he.extendedOptionalSeconds,o);case"xxx":default:return ce(he.extended,o)}}},{key:"set",value:function(o,a,s){return a.timestampIsSet?o:new Date(o.getTime()-s)}}]),t}(O),kc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",40),f(v(r),"incompatibleTokens","*"),r}return k(t,[{key:"parse",value:function(o){return Js(o)}},{key:"set",value:function(o,a,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),t}(O),Ic=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",20),f(v(r),"incompatibleTokens","*"),r}return k(t,[{key:"parse",value:function(o){return Js(o)}},{key:"set",value:function(o,a,s){return[new Date(s),{timestampIsSet:!0}]}}]),t}(O),Ec={G:new Hh,y:new Wh,Y:new jh,R:new Yh,u:new Gh,Q:new Kh,q:new Xh,M:new Qh,L:new Jh,w:new ec,I:new ic,d:new ac,D:new sc,E:new nc,e:new lc,c:new dc,i:new cc,a:new uc,b:new pc,B:new mc,h:new _c,H:new fc,K:new vc,k:new gc,m:new bc,s:new yc,S:new wc,X:new xc,x:new Cc,t:new kc,T:new Ic},Ac=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tc=/^'([^]*?)'?$/,Pc=/''/g,Dc=/\S/,Oc=/[a-zA-Z]/;function Ye(i,e,t,r){var o,a,s,n,l,d,h,c,p,m,g,E,w,x;B(3,arguments);var I=String(i),q=String(e),F=at(),ae=(o=(a=void 0)!==null&&a!==void 0?a:F.locale)!==null&&o!==void 0?o:Gs;if(!ae.match)throw new RangeError("locale must contain match property");var Ce=Z((s=(n=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:F.firstWeekContainsDate)!==null&&n!==void 0?n:(h=F.locale)===null||h===void 0||(c=h.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(Ce>=1&&Ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ct=Z((p=(m=(g=(E=void 0)!==null&&E!==void 0?E:void 0)!==null&&g!==void 0?g:F.weekStartsOn)!==null&&m!==void 0?m:(w=F.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(ct>=0&&ct<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return I===""?Y(t):new Date(NaN);var ut={firstWeekContainsDate:Ce,weekStartsOn:ct,locale:ae},pt=[new Bh],ji=q.match(Sc).map(function(G){var L=G[0];if(L in wr){var re=wr[L];return re(G,ae.formatLong)}return G}).join("").match(Ac),X=[],ee=ka(ji),Oe;try{var gd=function(){var L=Oe.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ys(L)&&di(L,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&js(L)&&di(L,q,i);var re=L[0],jt=Ec[re];if(jt){var fa=jt.incompatibleTokens;if(Array.isArray(fa)){var va=X.find(function(ga){return fa.includes(ga.token)||ga.token===re});if(va)throw new RangeError("The format string mustn't contain `".concat(va.fullToken,"` and `").concat(L,"` at the same time"))}else if(jt.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));X.push({token:re,fullToken:L});var Gi=jt.run(I,L,ae.match,ut);if(!Gi)return{v:new Date(NaN)};pt.push(Gi.setter),I=Gi.rest}else{if(re.match(Oc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");if(L==="''"?L="'":re==="'"&&(L=Vc(L)),I.indexOf(L)===0)I=I.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(Oe=ee.n()).done;){var ua=gd();if(ye(ua)==="object")return ua.v}}catch(G){ee.e(G)}finally{ee.f()}if(I.length>0&&Dc.test(I))return new Date(NaN);var bd=pt.map(function(G){return G.priority}).sort(function(G,L){return L-G}).filter(function(G,L,re){return re.indexOf(G)===L}).map(function(G){return pt.filter(function(L){return L.priority===G}).sort(function(L,re){return re.subPriority-L.subPriority})}).map(function(G){return G[0]}),Yi=Y(t);if(isNaN(Yi.getTime()))return new Date(NaN);var mt=Bs(Yi,Ws(Yi)),pa={},Ut=ka(bd),ma;try{for(Ut.s();!(ma=Ut.n()).done;){var _a=ma.value;if(!_a.validate(mt,ut))return new Date(NaN);var Wt=_a.set(mt,pa,ut);Array.isArray(Wt)?(mt=Wt[0],zh(pa,Wt[1])):mt=Wt}}catch(G){Ut.e(G)}finally{Ut.f()}return mt}function Vc(i){return i.match(Tc)[1].replace(Pc,"'")}function Ia(i,e){B(2,arguments);var t=Y(i),r=Y(e);return t.getTime()>r.getTime()}function Ea(i,e){B(2,arguments);var t=Y(i),r=Y(e);return t.getTime()<r.getTime()}function Aa(i,e,t){return B(2,arguments),Rs(Ye(i,e,new Date,t))}const zc='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;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));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;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}.date__tooltip.visible{opacity:1}',Mc=zc,tn=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:o}=e,a=new Date(t,r,o);return xa(a,this.dateFormat||"yyyy-MM-dd")},this.parseDate=e=>{const t=Ye(e,this.dateFormat||"yyyy-MM-dd",new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Ye(this.value,"yyyy-MM-dd",new Date);return xa(i,this.dateFormat||"yyyy-MM-dd")}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=Ye(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Ye(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const i=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');i&&i.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",e=>{e.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=Ye(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return Ea(this.valueAsDate,this.minDate)||Ia(this.valueAsDate,this.maxDate)||!Aa(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(Ea(this.valueAsDate,this.minDate)||Ia(this.valueAsDate,this.maxDate))return y("dateError2",this.language);if(!Aa(this.formattedValue,this.dateFormat))return y("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"18b85f7647c376d5a99468df4978d178cd19d77b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("label",{key:"e351963c25eecb2e5758dec54c9c2fb883b85912",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),u.h("vaadin-date-picker",{key:"471bb1c440213f764fe334309b262d44ac2ead7d",id:`${this.name}__input`,type:"date",class:`date__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e)}),u.h("small",{key:"14e5c4d34a3236907cd701d72a91c06d28b37c7e",class:"date__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"c3424b6076ec5a399054bf37eca774e4bd3e3644",class:"date__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};tn.style=Mc;const Nc='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left: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}.email__tooltip.visible{opacity:1}',Lc=Nc,rn=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,a=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${o}`,this.language)?y(`${o}`,this.language):a}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,a=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${o}`,this.language)?y(`${o}`,this.language):a}}renderTooltip(){return this.showTooltip?u.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"8cc90cea4b25fcd2fe05c9b6c609dc37a84d28a1",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"43d0be5a1fecc1fa937323746362c2daa55863a8",class:"email__wrapper--flex"},u.h("label",{key:"082b86cae6d59f2b2b025801373ae2f9efe7ef7a",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"57a25e865a0bb7376d675195940046be19066caa",class:"email__wrapper--relative"},this.tooltip&&u.h("img",{key:"8e720b021706191a33a39cc62e29b8acb747e740",class:"email__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"93cbeb1fcc0d5b992b9fb171b4d47b700087f284",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"0eab5e5e8cd4a525f2160637af1be9c2e4d313c1",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};rn.style=Lc;var Fc=Object.defineProperty,Rc=Object.defineProperties,Bc=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable,Cr=(i,e,t)=>e in i?Fc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Te=(i,e)=>{for(var t in e||(e={}))Hc.call(e,t)&&Cr(i,t,e[t]);if(Sa)for(var t of Sa(e))$c.call(e,t)&&Cr(i,t,e[t]);return i},Ei=(i,e)=>Rc(i,Bc(e)),P=(i,e,t)=>(Cr(i,typeof e!="symbol"?e+"":e,t),t),ui=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{n(t.next(l))}catch(d){o(d)}},s=l=>{try{n(t.throw(l))}catch(d){o(d)}},n=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,s);n((t=t.apply(i,e)).next())});/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-13661b98-e0g0ZJ4Q.cjs"),yd=require("./pam-change-password-f4a1e7e7-B5NzEtGA.cjs"),wd="en",Ns={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar"}},y=(i,e,t)=>{const r=e;let o=Ns[r!==void 0?r:wd][i];if(t!==void 0)for(const[a,s]of Object.entries(t.values)){const n=new RegExp(`{${a}}`,"g");o=o.replace(n,s)}return o},xd=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let o in t[r])Ns[r][o]=t[r][o]}),e(!0)})}),le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Cd='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;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}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',kd=Cd,Ls=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return u.h("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},u.h("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&u.h("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&u.h("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>u.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Ls.style=kd;const Id='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{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}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{content:"*"}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Ed=Id,Fs=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"e9dfb4e2a6b99d740eaa7d94d1ff3aea9587bcc9",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("vaadin-checkbox",{key:"cc2a8d1c131bd04febf221538f01d7334169d92a",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&u.h("img",{key:"a94be7eefe15593f0cfa90d89bed1f536bd51103",class:"checkboxgroup__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fs.style=Ed;function ye(i){"@babel/helpers - typeof";return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(i)}function B(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ad(i){return B(1,arguments),i instanceof Date||ye(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function Y(i){B(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||ye(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Rs(i){if(B(1,arguments),!Ad(i)&&typeof i!="number")return!1;var e=Y(i);return!isNaN(Number(e))}function Z(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Sd(i,e){B(2,arguments);var t=Y(i).getTime(),r=Z(e);return new Date(t+r)}function Bs(i,e){B(2,arguments);var t=Z(e);return Sd(i,-t)}var Td=864e5;function Pd(i){B(1,arguments);var e=Y(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/Td)+1}function Ze(i){B(1,arguments);var e=1,t=Y(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Hs(i){B(1,arguments);var e=Y(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=Ze(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var s=Ze(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function Dd(i){B(1,arguments);var e=Hs(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Ze(t);return r}var Od=6048e5;function $s(i){B(1,arguments);var e=Y(i),t=Ze(e).getTime()-Dd(e).getTime();return Math.round(t/Od)+1}var Vd={};function at(){return Vd}function Fe(i,e){var t,r,o,a,s,n,l,d;B(1,arguments);var h=at(),c=Z((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(n=s.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Y(i),m=p.getUTCDay(),g=(m<c?7:0)+m-c;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function so(i,e){var t,r,o,a,s,n,l,d;B(1,arguments);var h=Y(i),c=h.getUTCFullYear(),p=at(),m=Z((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(n=s.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(c+1,0,m),g.setUTCHours(0,0,0,0);var E=Fe(g,e),w=new Date(0);w.setUTCFullYear(c,0,m),w.setUTCHours(0,0,0,0);var x=Fe(w,e);return h.getTime()>=E.getTime()?c+1:h.getTime()>=x.getTime()?c:c-1}function zd(i,e){var t,r,o,a,s,n,l,d;B(1,arguments);var h=at(),c=Z((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(n=s.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=so(i,e),m=new Date(0);m.setUTCFullYear(p,0,c),m.setUTCHours(0,0,0,0);var g=Fe(m,e);return g}var Md=6048e5;function qs(i,e){B(1,arguments);var t=Y(i),r=Fe(t,e).getTime()-zd(t,e).getTime();return Math.round(r/Md)+1}function M(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Nd={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return M(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return M(a,t.length)}};const ke=Nd;var Ue={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ld={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return ke.y(e,t)},Y:function(e,t,r,o){var a=so(e,o),s=a>0?a:1-a;if(t==="YY"){var n=s%100;return M(n,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):M(s,t.length)},R:function(e,t){var r=Hs(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return M(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return M(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return ke.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return M(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=qs(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var o=$s(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):M(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ke.d(e,t)},D:function(e,t,r){var o=Pd(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):M(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return M(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return M(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=Ue.noon:o===0?a=Ue.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=Ue.evening:o>=12?a=Ue.afternoon:o>=4?a=Ue.morning:a=Ue.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ke.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ke.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ke.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ke.s(e,t)},S:function(e,t){return ke.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return ya(s);case"XXXX":case"XX":return ze(s);case"XXXXX":case"XXX":default:return ze(s,":")}},x:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(t){case"x":return ya(s);case"xxxx":case"xx":return ze(s);case"xxxxx":case"xxx":default:return ze(s,":")}},O:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ba(s,":");case"OOOO":default:return"GMT"+ze(s,":")}},z:function(e,t,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ba(s,":");case"zzzz":default:return"GMT"+ze(s,":")}},t:function(e,t,r,o){var a=o._originalDate||e,s=Math.floor(a.getTime()/1e3);return M(s,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,s=a.getTime();return M(s,t.length)}};function ba(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var s=e;return t+String(o)+s+M(a,2)}function ya(i,e){if(i%60===0){var t=i>0?"-":"+";return t+M(Math.abs(i)/60,2)}return ze(i,e)}function ze(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=M(Math.floor(o/60),2),s=M(o%60,2);return r+a+t+s}const Fd=Ld;var wa=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Us=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Rd=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return wa(e,t);var s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",wa(o,t)).replace("{{time}}",Us(a,t))},Bd={p:Us,P:Rd};const wr=Bd;function Ws(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var Hd=["D","DD"],$d=["YY","YYYY"];function js(i){return Hd.indexOf(i)!==-1}function Ys(i){return $d.indexOf(i)!==-1}function di(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var qd={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ud=function(e,t,r){var o,a=qd[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Wd=Ud;function Ki(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var jd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kd={date:Ki({formats:jd,defaultWidth:"full"}),time:Ki({formats:Yd,defaultWidth:"full"}),dateTime:Ki({formats:Gd,defaultWidth:"full"})};const Xd=Kd;var Qd={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jd=function(e,t,r,o){return Qd[e]};const Zd=Jd;function _t(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,s=t!=null&&t.width?String(t.width):a;o=i.formattingValues[s]||i.formattingValues[a]}else{var n=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[n]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var eh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},th={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ih={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},oh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ah={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sh=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},nh={ordinalNumber:sh,era:_t({values:eh,defaultWidth:"wide"}),quarter:_t({values:th,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:_t({values:ih,defaultWidth:"wide"}),day:_t({values:rh,defaultWidth:"wide"}),dayPeriod:_t({values:oh,defaultWidth:"wide",formattingValues:ah,defaultFormattingWidth:"wide"})};const lh=nh;function ft(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var s=a[0],n=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(n)?hh(n,function(c){return c.test(s)}):dh(n,function(c){return c.test(s)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var h=e.slice(s.length);return{value:d,rest:h}}}function dh(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function hh(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function ch(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var s=i.valueCallback?i.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;var n=e.slice(o.length);return{value:s,rest:n}}}var uh=/^(\d+)(th|st|nd|rd)?/i,ph=/\d+/i,mh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_h={any:[/^b/i,/^(a|c)/i]},fh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vh={any:[/1/i,/2/i,/3/i,/4/i]},gh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wh={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xh={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ch={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kh={ordinalNumber:ch({matchPattern:uh,parsePattern:ph,valueCallback:function(e){return parseInt(e,10)}}),era:ft({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:_h,defaultParseWidth:"any"}),quarter:ft({matchPatterns:fh,defaultMatchWidth:"wide",parsePatterns:vh,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ft({matchPatterns:gh,defaultMatchWidth:"wide",parsePatterns:bh,defaultParseWidth:"any"}),day:ft({matchPatterns:yh,defaultMatchWidth:"wide",parsePatterns:wh,defaultParseWidth:"any"}),dayPeriod:ft({matchPatterns:xh,defaultMatchWidth:"any",parsePatterns:Ch,defaultParseWidth:"any"})};const Ih=kh;var Eh={code:"en-US",formatDistance:Wd,formatLong:Xd,formatRelative:Zd,localize:lh,match:Ih,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Gs=Eh;var Ah=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Th=/^'([^]*?)'?$/,Ph=/''/g,Dh=/[a-zA-Z]/;function xa(i,e,t){var r,o,a,s,n,l,d,h,c,p,m,g,E,w;B(2,arguments);var x=String(e),I=at(),q=(r=(o=void 0)!==null&&o!==void 0?o:I.locale)!==null&&r!==void 0?r:Gs,F=Z((a=(s=(n=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&n!==void 0?n:I.firstWeekContainsDate)!==null&&s!==void 0?s:(d=I.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ae=Z((c=(p=(m=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&m!==void 0?m:I.weekStartsOn)!==null&&p!==void 0?p:(E=I.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(ae>=0&&ae<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var Ce=Y(i);if(!Rs(Ce))throw new RangeError("Invalid time value");var ct=Ws(Ce),ut=Bs(Ce,ct),pt={firstWeekContainsDate:F,weekStartsOn:ae,locale:q,_originalDate:Ce},ji=x.match(Sh).map(function(X){var ee=X[0];if(ee==="p"||ee==="P"){var Oe=wr[ee];return Oe(X,q.formatLong)}return X}).join("").match(Ah).map(function(X){if(X==="''")return"'";var ee=X[0];if(ee==="'")return Oh(X);var Oe=Fd[ee];if(Oe)return Ys(X)&&di(X,e,String(i)),js(X)&&di(X,e,String(i)),Oe(ut,X,q.localize,pt);if(ee.match(Dh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return X}).join("");return ji}function Oh(i){var e=i.match(Th);return e?e[1].replace(Ph,"'"):i}function Ca(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Vh(i,e){if(i){if(typeof i=="string")return Ca(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ca(i,e):void 0}}function ka(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Vh(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,n=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return s=d.done,d},e:function(d){n=!0,a=d},f:function(){try{s||t.return==null||t.return()}finally{if(n)throw a}}}}function zh(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function xr(i,e){return xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},xr(i,e)}function A(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&xr(i,e)}function hi(i){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(i)}function Ks(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ks=function(){return!!i})()}function Mh(i,e){if(e&&(ye(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function S(i){var e=Ks();return function(){var t,r=hi(i);if(e){var o=hi(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Mh(this,t)}}function C(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Nh(i,e){if(ye(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(ye(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Xs(i){var e=Nh(i,"string");return ye(e)=="symbol"?e:e+""}function Lh(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Xs(r.key),r)}}function k(i,e,t){return e&&Lh(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=Xs(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Fh=10,Qs=function(){function i(){C(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return k(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),Rh=function(i){A(t,i);var e=S(t);function t(r,o,a,s,n){var l;return C(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=s,n&&(l.subPriority=n),l}return k(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,s){return this.setValue(o,a,this.value,s)}}]),t}(Qs),Bh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",Fh),f(v(r),"subPriority",-1),r}return k(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),t}(Qs),O=function(){function i(){C(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return k(i,[{key:"run",value:function(t,r,o,a){var s=this.parse(t,r,o,a);return s?{setter:new Rh(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Hh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",140),f(v(r),"incompatibleTokens",["R","u","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,s){return a.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),$h=6e4,qh=36e5,Uh=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},he={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function W(i,e){return i&&{value:e(i.value),rest:i.rest}}function R(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(o*qh+a*$h+s*Uh),rest:e.slice(t[0].length)}}function Js(i){return R(U.anyDigitsSigned,i)}function H(i,e){switch(i){case 1:return R(U.singleDigit,e);case 2:return R(U.twoDigits,e);case 3:return R(U.threeDigits,e);case 4:return R(U.fourDigits,e);default:return R(new RegExp("^\\d{1,"+i+"}"),e)}}function ci(i,e){switch(i){case 1:return R(U.singleDigitSigned,e);case 2:return R(U.twoDigitsSigned,e);case 3:return R(U.threeDigitsSigned,e);case 4:return R(U.fourDigitsSigned,e);default:return R(new RegExp("^-?\\d{1,"+i+"}"),e)}}function no(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Zs(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,s=Math.floor(a/100)*100,n=i>=a%100;o=i+s-(n?100:0)}return t?o:1-o}function en(i){return i%400===0||i%4===0&&i%100!==0}var Wh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return W(H(4,o),n);case"yo":return W(s.ordinalNumber(o,{unit:"year"}),n);default:return W(H(a.length,o),n)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,s){var n=o.getUTCFullYear();if(s.isTwoDigitYear){var l=Zs(s.year,n);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?s.year:1-s.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),jh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return W(H(4,o),n);case"Yo":return W(s.ordinalNumber(o,{unit:"year"}),n);default:return W(H(a.length,o),n)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,s,n){var l=so(o,n);if(s.isTwoDigitYear){var d=Zs(s.year,l);return o.setUTCFullYear(d,0,n.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fe(o,n)}var h=!("era"in a)||a.era===1?s.year:1-s.year;return o.setUTCFullYear(h,0,n.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fe(o,n)}}]),t}(O),Yh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a){return ci(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,s){var n=new Date(0);return n.setUTCFullYear(s,0,4),n.setUTCHours(0,0,0,0),Ze(n)}}]),t}(O),Gh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a){return ci(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Kh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"Q":case"QQ":return H(a.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Xh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"q":case"qq":return H(a.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Qh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(v(r),"priority",110),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return d-1};switch(a){case"M":return W(R(U.month,o),n);case"MM":return W(H(2,o),n);case"Mo":return W(s.ordinalNumber(o,{unit:"month"}),n);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),t}(O),Jh=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",110),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return d-1};switch(a){case"L":return W(R(U.month,o),n);case"LL":return W(H(2,o),n);case"Lo":return W(s.ordinalNumber(o,{unit:"month"}),n);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),t}(O);function Zh(i,e,t){B(2,arguments);var r=Y(i),o=Z(e),a=qs(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var ec=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"w":return R(U.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,s,n){return Fe(Zh(o,s,n),n)}}]),t}(O);function tc(i,e){B(2,arguments);var t=Y(i),r=Z(e),o=$s(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var ic=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"I":return R(U.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,s){return Ze(tc(o,s))}}]),t}(O),rc=[31,28,31,30,31,30,31,31,30,31,30,31],oc=[31,29,31,30,31,30,31,31,30,31,30,31],ac=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subPriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"d":return R(U.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){var s=o.getUTCFullYear(),n=en(s),l=o.getUTCMonth();return n?a>=1&&a<=oc[l]:a>=1&&a<=rc[l]}},{key:"set",value:function(o,a,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),t}(O),sc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subpriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"D":case"DD":return R(U.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){var s=o.getUTCFullYear(),n=en(s);return n?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),t}(O);function lo(i,e,t){var r,o,a,s,n,l,d,h;B(2,arguments);var c=at(),p=Z((r=(o=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(n=t.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&o!==void 0?o:(d=c.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Y(i),g=Z(e),E=m.getUTCDay(),w=g%7,x=(w+7)%7,I=(x<p?7:0)+g-E;return m.setUTCDate(m.getUTCDate()+I),m}var nc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,n){return o=lo(o,s,n),o.setUTCHours(0,0,0,0),o}}]),t}(O),lc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s,n){var l=function(h){var c=Math.floor((h-1)/7)*7;return(h+n.weekStartsOn+6)%7+c};switch(a){case"e":case"ee":return W(H(a.length,o),l);case"eo":return W(s.ordinalNumber(o,{unit:"day"}),l);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,n){return o=lo(o,s,n),o.setUTCHours(0,0,0,0),o}}]),t}(O),dc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s,n){var l=function(h){var c=Math.floor((h-1)/7)*7;return(h+n.weekStartsOn+6)%7+c};switch(a){case"c":case"cc":return W(H(a.length,o),l);case"co":return W(s.ordinalNumber(o,{unit:"day"}),l);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,n){return o=lo(o,s,n),o.setUTCHours(0,0,0,0),o}}]),t}(O);function hc(i,e){B(2,arguments);var t=Z(e);t%7===0&&(t=t-7);var r=1,o=Y(i),a=o.getUTCDay(),s=t%7,n=(s+7)%7,l=(n<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var cc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){var n=function(d){return d===0?7:d};switch(a){case"i":case"ii":return H(a.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return W(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),n);case"iiiii":return W(s.day(o,{width:"narrow",context:"formatting"}),n);case"iiiiii":return W(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),n);case"iiii":default:return W(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,s){return o=hc(o,s),o.setUTCHours(0,0,0,0),o}}]),t}(O),uc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(no(s),0,0,0),o}}]),t}(O),pc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(no(s),0,0,0),o}}]),t}(O),mc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","b","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(no(s),0,0,0),o}}]),t}(O),_c=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"h":return R(U.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,s){var n=o.getUTCHours()>=12;return n&&s<12?o.setUTCHours(s+12,0,0,0):!n&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),t}(O),fc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"H":return R(U.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,s){return o.setUTCHours(s,0,0,0),o}}]),t}(O),vc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"K":return R(U.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){var n=o.getUTCHours()>=12;return n&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),t}(O),gc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"k":return R(U.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,s){var n=s<=24?s%24:s;return o.setUTCHours(n,0,0,0),o}}]),t}(O),bc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",60),f(v(r),"incompatibleTokens",["t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"m":return R(U.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,s){return o.setUTCMinutes(s,0,0),o}}]),t}(O),yc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",50),f(v(r),"incompatibleTokens",["t","T"]),r}return k(t,[{key:"parse",value:function(o,a,s){switch(a){case"s":return R(U.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return H(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,s){return o.setUTCSeconds(s,0),o}}]),t}(O),wc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",30),f(v(r),"incompatibleTokens",["t","T"]),r}return k(t,[{key:"parse",value:function(o,a){var s=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return W(H(a.length,o),s)}},{key:"set",value:function(o,a,s){return o.setUTCMilliseconds(s),o}}]),t}(O),xc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","x"]),r}return k(t,[{key:"parse",value:function(o,a){switch(a){case"X":return ce(he.basicOptionalMinutes,o);case"XX":return ce(he.basic,o);case"XXXX":return ce(he.basicOptionalSeconds,o);case"XXXXX":return ce(he.extendedOptionalSeconds,o);case"XXX":default:return ce(he.extended,o)}}},{key:"set",value:function(o,a,s){return a.timestampIsSet?o:new Date(o.getTime()-s)}}]),t}(O),Cc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","X"]),r}return k(t,[{key:"parse",value:function(o,a){switch(a){case"x":return ce(he.basicOptionalMinutes,o);case"xx":return ce(he.basic,o);case"xxxx":return ce(he.basicOptionalSeconds,o);case"xxxxx":return ce(he.extendedOptionalSeconds,o);case"xxx":default:return ce(he.extended,o)}}},{key:"set",value:function(o,a,s){return a.timestampIsSet?o:new Date(o.getTime()-s)}}]),t}(O),kc=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",40),f(v(r),"incompatibleTokens","*"),r}return k(t,[{key:"parse",value:function(o){return Js(o)}},{key:"set",value:function(o,a,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),t}(O),Ic=function(i){A(t,i);var e=S(t);function t(){var r;C(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",20),f(v(r),"incompatibleTokens","*"),r}return k(t,[{key:"parse",value:function(o){return Js(o)}},{key:"set",value:function(o,a,s){return[new Date(s),{timestampIsSet:!0}]}}]),t}(O),Ec={G:new Hh,y:new Wh,Y:new jh,R:new Yh,u:new Gh,Q:new Kh,q:new Xh,M:new Qh,L:new Jh,w:new ec,I:new ic,d:new ac,D:new sc,E:new nc,e:new lc,c:new dc,i:new cc,a:new uc,b:new pc,B:new mc,h:new _c,H:new fc,K:new vc,k:new gc,m:new bc,s:new yc,S:new wc,X:new xc,x:new Cc,t:new kc,T:new Ic},Ac=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tc=/^'([^]*?)'?$/,Pc=/''/g,Dc=/\S/,Oc=/[a-zA-Z]/;function Ye(i,e,t,r){var o,a,s,n,l,d,h,c,p,m,g,E,w,x;B(3,arguments);var I=String(i),q=String(e),F=at(),ae=(o=(a=void 0)!==null&&a!==void 0?a:F.locale)!==null&&o!==void 0?o:Gs;if(!ae.match)throw new RangeError("locale must contain match property");var Ce=Z((s=(n=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:F.firstWeekContainsDate)!==null&&n!==void 0?n:(h=F.locale)===null||h===void 0||(c=h.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(Ce>=1&&Ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ct=Z((p=(m=(g=(E=void 0)!==null&&E!==void 0?E:void 0)!==null&&g!==void 0?g:F.weekStartsOn)!==null&&m!==void 0?m:(w=F.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(ct>=0&&ct<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return I===""?Y(t):new Date(NaN);var ut={firstWeekContainsDate:Ce,weekStartsOn:ct,locale:ae},pt=[new Bh],ji=q.match(Sc).map(function(G){var L=G[0];if(L in wr){var re=wr[L];return re(G,ae.formatLong)}return G}).join("").match(Ac),X=[],ee=ka(ji),Oe;try{var gd=function(){var L=Oe.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ys(L)&&di(L,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&js(L)&&di(L,q,i);var re=L[0],jt=Ec[re];if(jt){var fa=jt.incompatibleTokens;if(Array.isArray(fa)){var va=X.find(function(ga){return fa.includes(ga.token)||ga.token===re});if(va)throw new RangeError("The format string mustn't contain `".concat(va.fullToken,"` and `").concat(L,"` at the same time"))}else if(jt.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));X.push({token:re,fullToken:L});var Gi=jt.run(I,L,ae.match,ut);if(!Gi)return{v:new Date(NaN)};pt.push(Gi.setter),I=Gi.rest}else{if(re.match(Oc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");if(L==="''"?L="'":re==="'"&&(L=Vc(L)),I.indexOf(L)===0)I=I.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(Oe=ee.n()).done;){var ua=gd();if(ye(ua)==="object")return ua.v}}catch(G){ee.e(G)}finally{ee.f()}if(I.length>0&&Dc.test(I))return new Date(NaN);var bd=pt.map(function(G){return G.priority}).sort(function(G,L){return L-G}).filter(function(G,L,re){return re.indexOf(G)===L}).map(function(G){return pt.filter(function(L){return L.priority===G}).sort(function(L,re){return re.subPriority-L.subPriority})}).map(function(G){return G[0]}),Yi=Y(t);if(isNaN(Yi.getTime()))return new Date(NaN);var mt=Bs(Yi,Ws(Yi)),pa={},Ut=ka(bd),ma;try{for(Ut.s();!(ma=Ut.n()).done;){var _a=ma.value;if(!_a.validate(mt,ut))return new Date(NaN);var Wt=_a.set(mt,pa,ut);Array.isArray(Wt)?(mt=Wt[0],zh(pa,Wt[1])):mt=Wt}}catch(G){Ut.e(G)}finally{Ut.f()}return mt}function Vc(i){return i.match(Tc)[1].replace(Pc,"'")}function Ia(i,e){B(2,arguments);var t=Y(i),r=Y(e);return t.getTime()>r.getTime()}function Ea(i,e){B(2,arguments);var t=Y(i),r=Y(e);return t.getTime()<r.getTime()}function Aa(i,e,t){return B(2,arguments),Rs(Ye(i,e,new Date,t))}const zc='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;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));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;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}.date__tooltip.visible{opacity:1}',Mc=zc,tn=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:o}=e,a=new Date(t,r,o);return xa(a,this.dateFormat||"yyyy-MM-dd")},this.parseDate=e=>{const t=Ye(e,this.dateFormat||"yyyy-MM-dd",new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat=void 0,this.emitOnClick=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Ye(this.value,"yyyy-MM-dd",new Date);return xa(i,this.dateFormat||"yyyy-MM-dd")}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=Ye(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Ye(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const i=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');i&&i.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",e=>{e.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=Ye(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return Ea(this.valueAsDate,this.minDate)||Ia(this.valueAsDate,this.maxDate)||!Aa(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(Ea(this.valueAsDate,this.minDate)||Ia(this.valueAsDate,this.maxDate))return y("dateError2",this.language);if(!Aa(this.formattedValue,this.dateFormat))return y("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"2598dc4b54afe7b871bbff237dacc02a04f109a1",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("label",{key:"e8e08599b7d713df237041a5c2a95ae78d7a955d",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),u.h("vaadin-date-picker",{key:"42ae32529da3f7d2bb63b9d92167a0062464f0f5",id:`${this.name}__input`,type:"date",class:`date__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e)}),u.h("small",{key:"6b6a7b2f369fc06001b22a4cff9835e0741ce33d",class:"date__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"930e536f3fd7dae8959c3caea374706bc2dcd805",class:"date__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};tn.style=Mc;const Nc='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left: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}.email__tooltip.visible{opacity:1}',Lc=Nc,rn=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,a=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${o}`,this.language)?y(`${o}`,this.language):a}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,a=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${o}`,this.language)?y(`${o}`,this.language):a}}renderTooltip(){return this.showTooltip?u.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"532d12855e6014b6c5a81cd11f4c7d83596361c3",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"80f2e930c6360e1e4e27f29b1de3d3c49a3bb47f",class:"email__wrapper--flex"},u.h("label",{key:"68189c133403e6dada30c376bd84b60b35ca56e4",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"b62dd9a877825d51f6735e9b3ca6b3bb3fc21c28",class:"email__wrapper--relative"},this.tooltip&&u.h("img",{key:"ff76c31db244e06af60db2855b907c90ecde2fe2",class:"email__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"137af683d11c63b2bd881fa3110dd1522ead8774",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"573a357c4e8464f20d9e60a5fd3a2d0c4ae69e3c",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};rn.style=Lc;var Fc=Object.defineProperty,Rc=Object.defineProperties,Bc=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable,Cr=(i,e,t)=>e in i?Fc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Te=(i,e)=>{for(var t in e||(e={}))Hc.call(e,t)&&Cr(i,t,e[t]);if(Sa)for(var t of Sa(e))$c.call(e,t)&&Cr(i,t,e[t]);return i},Ei=(i,e)=>Rc(i,Bc(e)),P=(i,e,t)=>(Cr(i,typeof e!="symbol"?e+"":e,t),t),ui=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{n(t.next(l))}catch(d){o(d)}},s=l=>{try{n(t.throw(l))}catch(d){o(d)}},n=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,s);n((t=t.apply(i,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7547,7 +7547,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7547
7547
  <div class="sr-only">
7548
7548
  <slot name="sr-label"></slot>
7549
7549
  </div>
7550
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Zo(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}N(Zg);const eb=":host{display:block;height:100%}",tb=eb,ld=class{constructor(i){u.registerInstance(this,i),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60}connectedCallback(){this.translationUrl&&xd(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return u.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return u.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return u.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return u.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return u.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return u.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return u.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return u.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return u.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return u.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return u.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"twofa":return u.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds});default:return u.h("p",null,"The ",this.type," input type is not valid")}}render(){return u.h(u.Host,{key:"575526a74f8739d530e0094238357e2a744cc463",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};ld.style=tb;const ib='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left: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}.number__tooltip.visible{opacity:1}',rb=ib,dd=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?u.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"414aaa50eb36153d2879bc9c6d1024dd1def2712",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"b607615d56849a46aa0a33c47795a43c0b4f0d3f",class:"number__wrapper--flex"},u.h("label",{key:"109e742b76a4bdc539fb0299d9249ee7eddb088d",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"951f79012890dc185e9eb27e30f107a77df7fa09",class:"number__wrapper--relative"},this.tooltip&&u.h("img",{key:"7f9721c37bfb782bfd43ce948f94c113333a0e4d",class:"number__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"58f9b28983789f1a7525b3a9c30ab4c1fbaa9ab1",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"800f10c617221358f2d349b39e7831116f931f08",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};dd.style=rb;const ob=`*,
7550
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Zo(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}N(Zg);const eb=":host{display:block;height:100%}",tb=eb,ld=class{constructor(i){u.registerInstance(this,i),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60}connectedCallback(){this.translationUrl&&xd(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return u.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return u.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return u.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return u.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return u.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return u.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return u.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return u.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return u.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return u.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return u.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"twofa":return u.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds});default:return u.h("p",null,"The ",this.type," input type is not valid")}}render(){return u.h(u.Host,{key:"575526a74f8739d530e0094238357e2a744cc463",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};ld.style=tb;const ib='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left: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}.number__tooltip.visible{opacity:1}',rb=ib,dd=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?u.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"a6e6a37c0b82e75bc66e26b104f343178deb8b81",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"41d8e03f598ccab9d175dacc27ede808ec017717",class:"number__wrapper--flex"},u.h("label",{key:"e2eb89c31bdc2c7e7e80546ea5844bb13d34c759",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"91de685f2da7b9ba3ddaf48a978f5e95a40594be",class:"number__wrapper--relative"},this.tooltip&&u.h("img",{key:"737d9ad4e1c74a03b140d48988e688a1898f9e57",class:"number__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"58d140746eaaf09aca69c5c4d698983c853e5b5f",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"74bda2b23c57d2ca88613c00e4d6ed63ea86daad",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};dd.style=rb;const ob=`*,
7551
7551
  *::before,
7552
7552
  *::after {
7553
7553
  padding: 0;
@@ -7739,7 +7739,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7739
7739
  }
7740
7740
  .password__tooltip.visible {
7741
7741
  opacity: 1;
7742
- }`,ab=ob,hd=class{constructor(i){u.registerInstance(this,i),this.sendOriginalValidityState=u.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const r=new RegExp(e.pattern).test(i);return{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,o;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return y("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,s=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):s}if(!(!((o=this.passwordComplexity)===null||o===void 0)&&o.every(a=>a.passed))&&!this.showPopup)return y("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(o=>o.passed).length/i,r=this.passwordComplexity.every(o=>o.passed);return u.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},u.h("div",{class:"password__complexity--strength"},u.h("p",{class:"password__complexity--text"},y("passwordStrength",this.language)," ",u.h("span",{class:"password__complexity--text-bold"},y(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),u.h("meter",{value:t,min:"0",max:"1"})),u.h("div",null,this.passwordComplexity.map((o,a)=>u.h("div",{key:a},u.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:o.passed,disabled:!0}),u.h("span",null,y(`${o.ruleKey}`,this.language)?y(`${o.ruleKey}`,this.language):o.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"766952d14b7d51c8d7a498f1f42a2ef4bf82a91b",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"c2dbef6f7c3d0e46577fc5ac0faf27abec2b142b",class:"password__wrapper--flex"},u.h("label",{key:"8b8ec603082044efe5740f0d21d246a9fb840e60",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"239c16b0dc29241bd1c5fbe27346564171900d5d",class:"password__wrapper--relative"},this.tooltip&&u.h("img",{key:"0e4d62a2d4b3a1284b83d5bae49c258498e8f6c6",class:"password__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("vaadin-password-field",{key:"11fb5b618a2cf87e54e7cae6c5e1b8846ed45455",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),u.h("small",{key:"af31d4e3623d1f57161190cb939fd7b368f63b59",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};hd.style=ab;const sb="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;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}.radio__tooltip.visible{opacity:1}",nb=sb,cd=class{constructor(i){u.registerInstance(this,i),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("fieldset",{key:"29ff8fcc910622397750532629ac0c202c9726ba",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("legend",{key:"cdab5b331863f3d31aab50c1d95b5a8845d53329",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>u.h("div",{class:"radio__wrapper"},u.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),u.h("label",{htmlFor:`${i.label}__input`},i.label))),u.h("small",{key:"bd6cd89510e7ace1348b391f3ce9ba334a03e695",class:"radio__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"27036c51c89612dbb87e5248355d3a5466c49705",class:"radio__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};cd.style=nb;const lb='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left: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}.select__tooltip.visible{opacity:1}',db=lb,ud=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(o=>o.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(o=>({label:o.Name,value:o.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue){const i=this.displayedOptions.find(e=>e.value.toUpperCase()===this.defaultValue.toUpperCase());this.value=i.value,this.valueHandler({name:this.name,value:this.value}),this.inputReference.value=this.value}this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(o=>o.json()).then(o=>{t(o)}).catch(o=>{console.error(o),r(o)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"3afb8c4c104469a78ca982d3815aa4241364674a",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},u.h("div",{key:"447c4ad85d8a1b47e0485c0f1fecaea998790008",class:"select__wrapper--flex"},u.h("label",{key:"f2e7923d0f0d260608ae61bd6d4a56929c57fdad",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),u.h("div",{key:"22b8e5868a411944ecd49397d17aa2f99aa5c660",class:"select__wrapper--relative"},this.tooltip&&u.h("img",{key:"dd1a0150c672ed991266dcce2808f8b6b6c0e954",class:"select__tooltip-icon",src:le,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?u.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):u.h("vaadin-select",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange}),u.h("small",{key:"77ed680bd30fdc9193b502136387e828fd88e162",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ud.style=db;const hb='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left: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}.tel__tooltip.visible{opacity:1}',cb=hb,pd=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.phoneValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(o=>o.json()).then(o=>{t(o)}).catch(o=>{console.error(o),r(o)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"a38531b8b0fa40e745a3a2b8ac39a56d0001c09f",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"70c35c825dafc0aee70835e87aeadab141dc22d3",class:"tel__wrapper--flex-label"},u.h("label",{key:"5ff2f5df35dcec4ea76f3b9496b193183c03188d",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"dc1625d8c724596b05ca2b0069f492ef9172bc10",class:"tel__wrapper--relative"},this.tooltip&&u.h("img",{key:"a6e94e7598b6734b4c83d95e13a113d6f835d755",class:"tel__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("div",{key:"d3865c4a88ea5b6de6791883b3b6955b6b3a0c15",class:`tel__wrapper--flex ${i}`},u.h("vaadin-combo-box",{key:"6d845d492057a29590bffb86c509d3f8cfbf6260",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:e=>this.handlePrefixInput(e)}),u.h("input",{key:"0cb8fe81d26828c0997379352ee25e5a416b5675",type:"tel",ref:e=>this.inputReference=e,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),u.h("small",{key:"1de6d39f83643e86d76659946d2996cc6e82c495",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};pd.style=cb;const ub='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left: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}.text__tooltip.visible{opacity:1}',pb=ub,md=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){if(this.isDuplicateInput&&this.duplicateInputValue!==this.value||!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,a=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${o}`,this.language)||a}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,a=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${o}`,this.language)?y(`${o}`,this.language):a}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"65f086c89daa3c3ebc40e6f0c58fbd24ff6e9050",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},u.h("div",{key:"970d4aa2de6419ab7904e1315c669aadc7f462b3",class:"text__wrapper--flex"},u.h("label",{key:"6e3d033ebcf3ecd4a8c3f3a3a35f1e2e4bc8261a",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"7247b4e12c1caf287534541d0cf019ddeaa78182",class:"text__wrapper--relative"},this.tooltip&&u.h("img",{key:"3b96da6c25789e12cbbc3408246650d6d1c72712",class:"text__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"8fc695313a9e2e19898380dfff97ee76b6e509df",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"90f0552125dbf888c915aa1b2e20446df6a48b9c",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};md.style=pb;const mb='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;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}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',_b=mb,_d=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return y("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return u.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},u.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"1f359a8390bb4296e94573131009eeff1bd2293c",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"76033e62f8d111e3071b1a09a6d8f9b909a05244",class:"togglecheckbox__wrapper--flex"},u.h("input",{key:"6d944818346ce6e62117856ff5dfd2278c1ccad4",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),u.h("small",{key:"7e2b7612f6dc179035027b551a6ac9801a1ba3c5",class:"togglecheckbox__error-message"},this.errorMessage),u.h("div",{key:"3a77da5b3544107d49137e6024888f8e774be170",class:"togglecheckbox__wrapper--relative"},this.tooltip&&u.h("img",{key:"7edd9a8cce9d66e7f6fb2d61a4513754df62d5df",class:"togglecheckbox__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("div",{key:"49de8d42d4b9f4c5668de6379f015c92098578a6",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>u.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};_d.style=_b;const fb="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",vb=fb,fd=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.resendCode=u.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value;if(o.length>1?r.value=o.charAt(1):r.value=o.charAt(0),!o)return;this.code[t]=r.value;const a=this.inputRefs[t+1];a&&a.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity()}handleKeyDown(i,e){if(i.key==="Backspace"){this.code[e]="",this.inputRefs[e]&&(this.inputRefs[e].value="");const t=this.inputRefs[e-1];t&&(t==null||t.focus())}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e;i.preventDefault();const t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text").trim();if(!t)return;const r=t.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],r.forEach((a,s)=>{this.inputRefs[s].value=a});const o=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];o&&o.focus(),this.setValidity(),this.setErrorMessage()}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=y(t,this.language))}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"cc140f18806c0cc8e4ff614a1a3448dbca667fa7",class:"twofa"},u.h("div",{key:"fc3b603e1d1a7187417301dfebe80dabfd8cda67",class:"twofa__error-message"},u.h("p",{key:"60e2cff194ec862de20aa443864861d784b8dc01"},this.errorMessage)),u.h("div",{key:"244505408204938069dca1f60dbe051716f66f85",class:"twofa__description",innerHTML:y("twofaDescription",this.language,{values:{destination:this.destination}})}),u.h("div",{key:"acb6b8e1676a884d1c7ceced800f6ba3a2e80bc7",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>u.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:i,onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),u.h("div",{key:"446eba5a8fe3fb0ede66869642d395bac9c6b8d6",class:"twofa__button-wrapper"},u.h("p",{key:"9f205fd87920d866d49eb98b2a8ab6f3764fd274",class:"twofa__resend-message"},y("twofaResendMessage",this.language)),u.h("button",{key:"efd2294b1d85a78c0d65262cc2004b5e63a898ab",class:"twofa__resend-button",onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable},this.isResendButtonAvailable?y("twofaResendButton",this.language):this.formatTime())))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};fd.style=vb;const gb=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",bb=gb,vd=class{constructor(i){u.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return u.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return u.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>u.h("div",{key:e,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
7742
+ }`,ab=ob,hd=class{constructor(i){u.registerInstance(this,i),this.sendOriginalValidityState=u.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const r=new RegExp(e.pattern).test(i);return{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,o;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return y("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,s=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):s}if(!(!((o=this.passwordComplexity)===null||o===void 0)&&o.every(a=>a.passed))&&!this.showPopup)return y("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(o=>o.passed).length/i,r=this.passwordComplexity.every(o=>o.passed);return u.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},u.h("div",{class:"password__complexity--strength"},u.h("p",{class:"password__complexity--text"},y("passwordStrength",this.language)," ",u.h("span",{class:"password__complexity--text-bold"},y(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),u.h("meter",{value:t,min:"0",max:"1"})),u.h("div",null,this.passwordComplexity.map((o,a)=>u.h("div",{key:a},u.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:o.passed,disabled:!0}),u.h("span",null,y(`${o.ruleKey}`,this.language)?y(`${o.ruleKey}`,this.language):o.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"c6a672c226569d500598f34c6155279e75fdc79c",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"44b8bee769b7b6ce86797f0f62b6af033bf2d0cd",class:"password__wrapper--flex"},u.h("label",{key:"b6d573c6a70f26471cea2e576c8286719f58b47f",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"76698abedf907fa52940bc8e278fff4aeda1912f",class:"password__wrapper--relative"},this.tooltip&&u.h("img",{key:"7116b9ed6eb06b6b03c336b6d216d40571b54f55",class:"password__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("vaadin-password-field",{key:"b85d0ba5396b3ab6fcf21d1053dba22fdb94c7f9",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),u.h("small",{key:"c30bbcb8e49fcdb1dd8cb41bafd56d64b609be86",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};hd.style=ab;const sb="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;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}.radio__tooltip.visible{opacity:1}",nb=sb,cd=class{constructor(i){u.registerInstance(this,i),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("fieldset",{key:"7dd3f10103c696ef18202154d5ede9cc10b32d0c",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("legend",{key:"304af4ecd36e8831c1fc76abfaae1767a1005ae5",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>u.h("div",{class:"radio__wrapper"},u.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),u.h("label",{htmlFor:`${i.label}__input`},i.label))),u.h("small",{key:"55bb2cc7060fda4774d337c8a570c78d90912da7",class:"radio__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"b3b7093e2c4b5d6f727f5346562ed3fe274bd431",class:"radio__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};cd.style=nb;const lb='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left: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}.select__tooltip.visible{opacity:1}',db=lb,ud=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(o=>o.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(o=>({label:o.Name,value:o.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue){const i=this.displayedOptions.find(e=>e.value.toUpperCase()===this.defaultValue.toUpperCase());this.value=i.value,this.valueHandler({name:this.name,value:this.value}),this.inputReference.value=this.value}this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(o=>o.json()).then(o=>{t(o)}).catch(o=>{console.error(o),r(o)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"7e90e23b53a72cda885485ccf4110631cede2b8f",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},u.h("div",{key:"9a841ccebeb828fc75ed1f708a4a43d4fc7a193f",class:"select__wrapper--flex"},u.h("label",{key:"92c70fa56518d6d015d756b693306dab80ab0f57",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),u.h("div",{key:"cfbeb4b4969adc1f9944eb60291d8f586dcc29db",class:"select__wrapper--relative"},this.tooltip&&u.h("img",{key:"13a340313095bc653a1741115bae128d538dcf30",class:"select__tooltip-icon",src:le,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?u.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):u.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),u.h("small",{key:"6ffb5459f648208106c6bfc8a78f5cf379f7f11b",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ud.style=db;const hb='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left: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}.tel__tooltip.visible{opacity:1}',cb=hb,pd=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.phoneValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(o=>o.json()).then(o=>{t(o)}).catch(o=>{console.error(o),r(o)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"07279e9146394ad96ca0ce1b3e059f09fce2937a",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"c4eedb1dba6a3fabd4dcc95e767813f95b83346a",class:"tel__wrapper--flex-label"},u.h("label",{key:"093a445bc6a9144673386abf92263faa2f33a62a",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"76abd68488a0f78e3fbd46328fa338d8c05b9601",class:"tel__wrapper--relative"},this.tooltip&&u.h("img",{key:"8238860af5dbc417c2cd853b55fd79f67f51649d",class:"tel__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("div",{key:"235b2146fc4c70107d5c077071e1fa52ac1c56d3",class:`tel__wrapper--flex ${i}`},u.h("vaadin-combo-box",{key:"73e51576aad82c2bc6895a62b0c19351a1eb917b",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:e=>this.handlePrefixInput(e)}),u.h("input",{key:"d714d757cd08e3d700cec86f9d6ce4ff680dd2e9",type:"tel",ref:e=>this.inputReference=e,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),u.h("small",{key:"f6ced1b252990cd3ecc18c9c5ad3546654006dcc",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};pd.style=cb;const ub='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left: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}.text__tooltip.visible{opacity:1}',pb=ub,md=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){if(this.isDuplicateInput&&this.duplicateInputValue!==this.value||!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,a=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${o}`,this.language)||a}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,a=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${o}`,this.language)?y(`${o}`,this.language):a}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"37c7509b46ab92149c3c11365cf5061bb1bbb01a",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},u.h("div",{key:"737873a059749dc050a8efa6ffb09a1b2ee9f95c",class:"text__wrapper--flex"},u.h("label",{key:"1d921faece6c293c7e3c95d34bedd0d399c7be9e",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"e1e59c85912cf7c3dbd1e61bba829ae2b0192a18",class:"text__wrapper--relative"},this.tooltip&&u.h("img",{key:"73513026eebcc809edef481d5cd7b885e5f20f03",class:"text__tooltip-icon",src:le,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"a73e2c2430e6fbc778e1fd6b5fcfb298cf01b5c5",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"11cb376081cb05651c60c3e1ac8a41f9751ca16c",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};md.style=pb;const mb='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;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}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',_b=mb,_d=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return y("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return u.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},u.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"6315588766319c4ac7a88646b01bc577858ad718",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"20d6999aaf0499b8b840a28dab89242953b4610d",class:"togglecheckbox__wrapper--flex"},u.h("input",{key:"73b699abf4904e4f2133e30d8dea250c9fe13ac3",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),u.h("small",{key:"4d10247f1dae300d0f5133accdd544a90fa4d5a7",class:"togglecheckbox__error-message"},this.errorMessage),u.h("div",{key:"9c95cef35e58875b96710d3b64b9af1be27204c5",class:"togglecheckbox__wrapper--relative"},this.tooltip&&u.h("img",{key:"9774edae6bad4715fd20798a7be25eb71c3c4cf0",class:"togglecheckbox__tooltip-icon",src:le,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("div",{key:"70ad3ec894a32439e2dcea617e2a5b773c5456b1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>u.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};_d.style=_b;const fb="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",vb=fb,fd=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.resendCode=u.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value;if(o.length>1?r.value=o.charAt(1):r.value=o.charAt(0),!o)return;this.code[t]=r.value;const a=this.inputRefs[t+1];a&&a.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity()}handleKeyDown(i,e){if(i.key==="Backspace"){this.code[e]="",this.inputRefs[e]&&(this.inputRefs[e].value="");const t=this.inputRefs[e-1];t&&(t==null||t.focus())}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e;i.preventDefault();const t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text").trim();if(!t)return;const r=t.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],r.forEach((a,s)=>{this.inputRefs[s].value=a});const o=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];o&&o.focus(),this.setValidity(),this.setErrorMessage()}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=y(t,this.language))}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"97c1955fececc6f3998375f4c8176ceaed66856a",class:"twofa"},u.h("div",{key:"ee2243931d8e5c6a5aadf1e78d1851449806d2b2",class:"twofa__error-message"},u.h("p",{key:"20a8ccad2e6501c73e3672f6ae325f8539e2d21a"},this.errorMessage)),u.h("div",{key:"bb33610a8be04b86378026c02099620749b81a4b",class:"twofa__description",innerHTML:y("twofaDescription",this.language,{values:{destination:this.destination}})}),u.h("div",{key:"af3ea38ed6468eb2de66aed810ba50a850bf21a9",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>u.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:i,onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),u.h("div",{key:"f385bd6dc93896d918a5cc1365b59bedd47d5bb0",class:"twofa__button-wrapper"},u.h("p",{key:"3623f0391e0e5923cd6b3bfd74d203905486209f",class:"twofa__resend-message"},y("twofaResendMessage",this.language)),u.h("button",{key:"497660604f87dbf4ce1ce51ecd041e82ab5dd33a",class:"twofa__resend-button",onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable},this.isResendButtonAvailable?y("twofaResendButton",this.language):this.formatTime())))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};fd.style=vb;const gb=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",bb=gb,vd=class{constructor(i){u.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return u.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return u.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>u.h("div",{key:e,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
7743
7743
  :host {
7744
7744
  --emw-skeleton-logo-width: ${this.stylingValue.width};
7745
7745
  --emw-skeleton-logo-height: ${this.stylingValue.height};