@everymatrix/pam-login 1.86.12 → 1.86.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +1,53 @@
1
- import{r as t,h as e}from"./index-a126c540.js";function i(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function s(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}const o={en:{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",Unauthorized:"The player account number, e-mail address or password is incorrect",CountryRestricted:"Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha verification failed. Please try again.","gm.pms.captcha_missing":"Please complete the captcha.","gm.pms.configuration_exception":"System configuration error. Please contact support.","gm.pms.contact_not_found":"Contact information not found.","gm.pms.model_validation_failed":"Invalid request data. Please check and try again.","gm.pms.otp_disabled":"OTP is disabled for this account.","gm.pms.otp_not_found":"OTP not found.","gm.pms.otp_not_verified_unauthorized":"OTP verification failed. Please try again.","gm.pms.password_already_exists":"A password has already been set for this account.","gm.pms.password_not_found":"Password not found.","gm.pms.password_not_verified_unauthorized":"Incorrect password. Please try again.","gm.pms.password_not_verified_unauthorized_account_blocked":"Your account has been blocked due to multiple failed login attempts.","gm.pms.password_policy_failed":"Password does not meet the security requirements.","gm.pms.player_not_found":"Player account not found.","gm.pms.player_personal_information_not_found":"Personal information not found.","gm.pms.second_factor_not_verified_unauthorized":"Two-factor authentication failed. Please try again.","gm.pms.session_not_found":"Session not found.","gm.pms.token_not_found":"Authentication token not found.","gm.pms.unexpected_db_exception_on_update":"A database error occurred. Please try again later.","gm.pms.unexpected_exception":"An unexpected error occurred. Please try again later.","gm.pms.SessionHasNoPermissions":"You do not have permission to perform this action.","gm.pms.incorrect_migration_player_data":"Invalid player data provided for migration.","gm.pms.migration_config_tenant_id_missed":"Migration file is missing the TenantId column.","gm.pms.migration_player_fetch_data_failed":"Unable to fetch player data during migration.","gm.pms.migration_player_incorrect_data":"Required player data is missing for migration.","gm.pms.missing_hashing_data":"Missing hashing configuration (salt/pepper).","gm.pms.session_is_missing":"Session is missing. Please log in again.","gm.pms.session_invalid_or_expired":"Your session is invalid or has expired. Please log in again.","gm.pms.database_provider_not_configured":"Database connection is not configured. Please contact support."},tr:{invalidField:"Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",forgotPassword:"Şifremi Unuttum",userEmail:"Kullanıcı Adı veya E-posta",userPhone:"Telefon numarası",userPrefix:"Telefon kodu",password:"Şifre",login:"Giriş Yap",genericError:"Beklenmeyen bir hata oluştu",successMessage:"Giriş başarılı",Forbidden_UserAccount_Blocked:"Oyuncu hesabı engellendi",GmErr_USER_ACCOUNT_BLOCKED:"Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",setUpPassowrd:"Şifrenizi sıfırlamanız gerekiyor",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya şifre hatalı",CountryRestricted:"Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin.",configError:"Yapılandırma alınırken beklenmeyen bir hata oluştu",userEmailError:"E-posta veya kullanıcı adı geçersiz bir formata sahip.",userPhoneError:"Ön ek veya telefon numarası geçersiz bir formata sahip.",userPasswordError:"Şifre geçersiz bir formata sahip.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha doğrulaması başarısız oldu. Lütfen tekrar deneyin.","gm.pms.captcha_missing":"Lütfen captcha'yı tamamlayın.","gm.pms.configuration_exception":"Sistem yapılandırma hatası. Lütfen destek ile iletişime geçin.","gm.pms.contact_not_found":"İletişim bilgisi bulunamadı.","gm.pms.model_validation_failed":"Geçersiz istek verisi. Lütfen kontrol edip tekrar deneyin.","gm.pms.otp_disabled":"Bu hesap için OTP devre dışı bırakılmış.","gm.pms.otp_not_found":"OTP bulunamadı.","gm.pms.otp_not_verified_unauthorized":"OTP doğrulaması başarısız oldu. Lütfen tekrar deneyin.","gm.pms.password_already_exists":"Bu hesap için zaten bir parola ayarlanmış.","gm.pms.password_not_found":"Parola bulunamadı.","gm.pms.password_not_verified_unauthorized":"Hatalı parola. Lütfen tekrar deneyin.","gm.pms.password_not_verified_unauthorized_account_blocked":"Hesabınız çok sayıda hatalı giriş nedeniyle engellendi.","gm.pms.password_policy_failed":"Parola güvenlik gereksinimlerini karşılamıyor.","gm.pms.player_not_found":"Oyuncu hesabı bulunamadı.","gm.pms.player_personal_information_not_found":"Kişisel bilgi bulunamadı.","gm.pms.second_factor_not_verified_unauthorized":"İki faktörlü kimlik doğrulama başarısız oldu. Lütfen tekrar deneyin.","gm.pms.session_not_found":"Oturum bulunamadı.","gm.pms.token_not_found":"Kimlik doğrulama jetonu bulunamadı.","gm.pms.unexpected_db_exception_on_update":"Bir veritabanı hatası oluştu. Lütfen daha sonra tekrar deneyin.","gm.pms.unexpected_exception":"Beklenmeyen bir hata oluştu. Lütfen daha sonra tekrar deneyin.","gm.pms.SessionHasNoPermissions":"Bu işlemi gerçekleştirmek için izniniz yok.","gm.pms.incorrect_migration_player_data":"Geçersiz oyuncu verisi sağlandı (taşıma işlemi için).","gm.pms.migration_config_tenant_id_missed":"Taşıma dosyasında TenantId sütunu eksik.","gm.pms.migration_player_fetch_data_failed":"Taşıma sırasında oyuncu verileri alınamadı.","gm.pms.migration_player_incorrect_data":"Taşıma için gerekli oyuncu verileri eksik.","gm.pms.missing_hashing_data":"Eksik şifreleme yapılandırması (salt/pepper).","gm.pms.session_is_missing":"Oturum eksik. Lütfen tekrar giriş yapın.","gm.pms.session_invalid_or_expired":"Oturumunuz geçersiz veya süresi dolmuş. Lütfen tekrar giriş yapın.","gm.pms.database_provider_not_configured":"Veritabanı bağlantısı yapılandırılmamış. Lütfen destek ile iletişime geçin."},"en-us":{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",Unauthorized:"The player account number, e-mail address or password is incorrect",CountryRestricted:"Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha verification failed. Please try again.","gm.pms.captcha_missing":"Please complete the captcha.","gm.pms.configuration_exception":"System configuration error. Please contact support.","gm.pms.contact_not_found":"Contact information not found.","gm.pms.model_validation_failed":"Invalid request data. Please check and try again.","gm.pms.otp_disabled":"OTP is disabled for this account.","gm.pms.otp_not_found":"OTP not found.","gm.pms.otp_not_verified_unauthorized":"OTP verification failed. Please try again.","gm.pms.password_already_exists":"A password has already been set for this account.","gm.pms.password_not_found":"Password not found.","gm.pms.password_not_verified_unauthorized":"Incorrect password. Please try again.","gm.pms.password_not_verified_unauthorized_account_blocked":"Your account has been blocked due to multiple failed login attempts.","gm.pms.password_policy_failed":"Password does not meet the security requirements.","gm.pms.player_not_found":"Player account not found.","gm.pms.player_personal_information_not_found":"Personal information not found.","gm.pms.second_factor_not_verified_unauthorized":"Two-factor authentication failed. Please try again.","gm.pms.session_not_found":"Session not found.","gm.pms.token_not_found":"Authentication token not found.","gm.pms.unexpected_db_exception_on_update":"A database error occurred. Please try again later.","gm.pms.unexpected_exception":"An unexpected error occurred. Please try again later.","gm.pms.SessionHasNoPermissions":"You do not have permission to perform this action.","gm.pms.incorrect_migration_player_data":"Invalid player data provided for migration.","gm.pms.migration_config_tenant_id_missed":"Migration file is missing the TenantId column.","gm.pms.migration_player_fetch_data_failed":"Unable to fetch player data during migration.","gm.pms.migration_player_incorrect_data":"Required player data is missing for migration.","gm.pms.missing_hashing_data":"Missing hashing configuration (salt/pepper).","gm.pms.session_is_missing":"Session is missing. Please log in again.","gm.pms.session_invalid_or_expired":"Your session is invalid or has expired. Please log in again.","gm.pms.database_provider_not_configured":"Database connection is not configured. Please contact support."},ro:{invalidField:"Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",forgotPassword:"Ați uitat parola",userEmail:"Nume utilizator sau email",userPhone:"Număr de telefon",userPrefix:"Prefix telefon",password:"Parolă",login:"Autentificare",genericError:"A apărut o eroare neașteptată",successMessage:"Autentificare reușită",Forbidden_UserAccount_Blocked:"Contul de jucător este blocat",GmErr_USER_ACCOUNT_BLOCKED:"În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",setUpPassowrd:"Trebuie să vă resetați parola",Unauthorized:"Numărul contului de jucător, adresa de e-mail sau parola sunt incorecte",CountryRestricted:"Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența.",configError:"A apărut o eroare neașteptată la preluarea configurației",userEmailError:"Emailul sau numele de utilizator au un format invalid.",userPhoneError:"Prefixul sau numărul de telefon au un format invalid.",userPasswordError:"Parola are un format invalid.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Verificarea captcha a eșuat. Vă rugăm să încercați din nou.","gm.pms.captcha_missing":"Vă rugăm să completați captcha.","gm.pms.configuration_exception":"Eroare de configurare a sistemului. Contactați suportul.","gm.pms.contact_not_found":"Informațiile de contact nu au fost găsite.","gm.pms.model_validation_failed":"Datele trimise sunt invalide. Verificați și încercați din nou.","gm.pms.otp_disabled":"OTP este dezactivat pentru acest cont.","gm.pms.otp_not_found":"OTP nu a fost găsit.","gm.pms.otp_not_verified_unauthorized":"Verificarea OTP a eșuat. Vă rugăm să încercați din nou.","gm.pms.password_already_exists":"O parolă a fost deja setată pentru acest cont.","gm.pms.password_not_found":"Parola nu a fost găsită.","gm.pms.password_not_verified_unauthorized":"Parola este incorectă. Vă rugăm să încercați din nou.","gm.pms.password_not_verified_unauthorized_account_blocked":"Contul dvs. a fost blocat din cauza prea multor încercări eșuate de autentificare.","gm.pms.password_policy_failed":"Parola nu respectă cerințele de securitate.","gm.pms.player_not_found":"Contul de jucător nu a fost găsit.","gm.pms.player_personal_information_not_found":"Informațiile personale nu au fost găsite.","gm.pms.second_factor_not_verified_unauthorized":"Autentificarea în doi pași a eșuat. Vă rugăm să încercați din nou.","gm.pms.session_not_found":"Sesiunea nu a fost găsită.","gm.pms.token_not_found":"Token-ul de autentificare nu a fost găsit.","gm.pms.unexpected_db_exception_on_update":"A apărut o eroare a bazei de date. Vă rugăm să încercați din nou mai târziu.","gm.pms.unexpected_exception":"A apărut o eroare neașteptată. Vă rugăm să încercați din nou mai târziu.","gm.pms.SessionHasNoPermissions":"Nu aveți permisiunea de a efectua această acțiune.","gm.pms.incorrect_migration_player_data":"Datele jucătorului furnizate pentru migrare sunt invalide.","gm.pms.migration_config_tenant_id_missed":"Fișierul de migrare nu conține coloana TenantId.","gm.pms.migration_player_fetch_data_failed":"Nu s-au putut obține datele jucătorului în timpul migrării.","gm.pms.migration_player_incorrect_data":"Datele necesare pentru migrarea jucătorului lipsesc.","gm.pms.missing_hashing_data":"Configurația de hashing (salt/pepper) lipsește.","gm.pms.session_is_missing":"Sesiunea lipsește. Vă rugăm să vă autentificați din nou.","gm.pms.session_invalid_or_expired":"Sesiunea dvs. este invalidă sau a expirat. Vă rugăm să vă autentificați din nou.","gm.pms.database_provider_not_configured":"Conexiunea la baza de date nu este configurată. Contactați suportul."},hr:{invalidField:"Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",userPhone:"Broj telefona",userPrefix:"Telefonski prefix",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",setUpPassowrd:"Morate resetirati svoju lozinku",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",GmErr_USER_ACCOUNT_BLOCKED:"Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",Unauthorized:"Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni",CountryRestricted:"Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",configError:"Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",userEmailError:"E-mail ili korisničko ime imaju nevažeći format.",userPhoneError:"Prefiks ili telefonski broj imaju nevažeći format.",userPasswordError:"Lozinka ima nevažeći format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Provjera captche nije uspjela. Pokušajte ponovno.","gm.pms.captcha_missing":"Molimo dovršite captchu.","gm.pms.configuration_exception":"Pogreška u konfiguraciji sustava. Obratite se podršci.","gm.pms.contact_not_found":"Kontakt informacije nisu pronađene.","gm.pms.model_validation_failed":"Nevažeći podaci zahtjeva. Provjerite i pokušajte ponovno.","gm.pms.otp_disabled":"OTP je onemogućen za ovaj račun.","gm.pms.otp_not_found":"OTP nije pronađen.","gm.pms.otp_not_verified_unauthorized":"Provjera OTP-a nije uspjela. Pokušajte ponovno.","gm.pms.password_already_exists":"Za ovaj račun je već postavljena lozinka.","gm.pms.password_not_found":"Lozinka nije pronađena.","gm.pms.password_not_verified_unauthorized":"Netočna lozinka. Pokušajte ponovno.","gm.pms.password_not_verified_unauthorized_account_blocked":"Vaš račun je blokiran zbog previše neuspjelih pokušaja prijave.","gm.pms.password_policy_failed":"Lozinka ne ispunjava sigurnosne zahtjeve.","gm.pms.player_not_found":"Korisnički račun nije pronađen.","gm.pms.player_personal_information_not_found":"Osobni podaci nisu pronađeni.","gm.pms.second_factor_not_verified_unauthorized":"Dvofaktorska autentifikacija nije uspjela. Pokušajte ponovno.","gm.pms.session_not_found":"Sesija nije pronađena.","gm.pms.token_not_found":"Autentifikacijski token nije pronađen.","gm.pms.unexpected_db_exception_on_update":"Došlo je do pogreške baze podataka. Pokušajte ponovno kasnije.","gm.pms.unexpected_exception":"Došlo je do neočekivane pogreške. Pokušajte ponovno kasnije.","gm.pms.SessionHasNoPermissions":"Nemate dopuštenje za ovu radnju.","gm.pms.incorrect_migration_player_data":"Nevažeći korisnički podaci za migraciju.","gm.pms.migration_config_tenant_id_missed":"Migracijska datoteka ne sadrži stupac TenantId.","gm.pms.migration_player_fetch_data_failed":"Nije moguće dohvatiti podatke korisnika tijekom migracije.","gm.pms.migration_player_incorrect_data":"Nedostaju potrebni podaci za migraciju korisnika.","gm.pms.missing_hashing_data":"Nedostaje konfiguracija za hashing (salt/pepper).","gm.pms.session_is_missing":"Sesija nedostaje. Molimo prijavite se ponovno.","gm.pms.session_invalid_or_expired":"Vaša sesija je nevažeća ili je istekla. Molimo prijavite se ponovno.","gm.pms.database_provider_not_configured":"Veza s bazom podataka nije konfigurirana. Obratite se podršci."},fr:{invalidField:"Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",forgotPassword:"Mot de passe oublié",userEmail:"Nom d'utilisateur ou email",userPhone:"Numéro de téléphone",userPrefix:"Préfixe téléphonique",password:"Mot de passe",login:"Connexion",genericError:"Une erreur inattendue est survenue",successMessage:"Connexion réussie",Forbidden_UserAccount_Blocked:"Compte joueur bloqué",GmErr_USER_ACCOUNT_BLOCKED:"Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",setUpPassowrd:"Vous devez réinitialiser votre mot de passe",Unauthorized:"Le numéro de compte joueur, l'adresse e-mail ou le mot de passe est incorrect",CountryRestricted:"L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",configError:"Une erreur inattendue s'est produite lors de la récupération de la configuration",userEmailError:"L'email ou le nom d'utilisateur ont un format invalide.",userPhoneError:"Le préfixe ou le numéro de téléphone ont un format invalide.",userPasswordError:"Le mot de passe a un format invalide.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"La vérification du captcha a échoué. Veuillez réessayer.","gm.pms.captcha_missing":"Veuillez compléter le captcha.","gm.pms.configuration_exception":"Erreur de configuration du système. Veuillez contacter le support.","gm.pms.contact_not_found":"Informations de contact introuvables.","gm.pms.model_validation_failed":"Données de requête invalides. Veuillez vérifier et réessayer.","gm.pms.otp_disabled":"L’OTP est désactivé pour ce compte.","gm.pms.otp_not_found":"OTP introuvable.","gm.pms.otp_not_verified_unauthorized":"La vérification de l’OTP a échoué. Veuillez réessayer.","gm.pms.password_already_exists":"Un mot de passe a déjà été défini pour ce compte.","gm.pms.password_not_found":"Mot de passe introuvable.","gm.pms.password_not_verified_unauthorized":"Mot de passe incorrect. Veuillez réessayer.","gm.pms.password_not_verified_unauthorized_account_blocked":"Votre compte a été bloqué après plusieurs tentatives de connexion échouées.","gm.pms.password_policy_failed":"Le mot de passe ne respecte pas les exigences de sécurité.","gm.pms.player_not_found":"Compte joueur introuvable.","gm.pms.player_personal_information_not_found":"Informations personnelles introuvables.","gm.pms.second_factor_not_verified_unauthorized":"L’authentification à deux facteurs a échoué. Veuillez réessayer.","gm.pms.session_not_found":"Session introuvable.","gm.pms.token_not_found":"Jeton d’authentification introuvable.","gm.pms.unexpected_db_exception_on_update":"Une erreur de base de données est survenue. Veuillez réessayer plus tard.","gm.pms.unexpected_exception":"Une erreur inattendue est survenue. Veuillez réessayer plus tard.","gm.pms.SessionHasNoPermissions":"Vous n’avez pas la permission d’effectuer cette action.","gm.pms.incorrect_migration_player_data":"Données joueur invalides fournies pour la migration.","gm.pms.migration_config_tenant_id_missed":"Le fichier de migration ne contient pas la colonne TenantId.","gm.pms.migration_player_fetch_data_failed":"Impossible de récupérer les données du joueur pendant la migration.","gm.pms.migration_player_incorrect_data":"Les données nécessaires à la migration du joueur sont manquantes.","gm.pms.missing_hashing_data":"Configuration de hachage manquante (sel/poivre).","gm.pms.session_is_missing":"Session manquante. Veuillez vous reconnecter.","gm.pms.session_invalid_or_expired":"Votre session est invalide ou a expiré. Veuillez vous reconnecter.","gm.pms.database_provider_not_configured":"La connexion à la base de données n’est pas configurée. Veuillez contacter le support."},cs:{invalidField:"Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",userPhone:"Telefonní číslo",userPrefix:"Telefonní předvolba",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",setUpPassowrd:"Musíte resetovat své heslo",Unauthorized:"Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné",CountryRestricted:"Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",configError:"Při načítání konfigurace došlo k neočekávané chybě",userEmailError:"E-mail nebo uživatelské jméno mají neplatný formát.",userPhoneError:"Předvolba nebo telefonní číslo mají neplatný formát.",userPasswordError:"Heslo má neplatný formát.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Ověření captcha se nezdařilo. Zkuste to prosím znovu.","gm.pms.captcha_missing":"Vyplňte prosím captcha.","gm.pms.configuration_exception":"Chyba konfigurace systému. Kontaktujte prosím podporu.","gm.pms.contact_not_found":"Kontaktní údaje nebyly nalezeny.","gm.pms.model_validation_failed":"Neplatná data požadavku. Zkontrolujte je a zkuste to znovu.","gm.pms.otp_disabled":"OTP je pro tento účet vypnuto.","gm.pms.otp_not_found":"OTP nebyl nalezen.","gm.pms.otp_not_verified_unauthorized":"Ověření OTP se nezdařilo. Zkuste to prosím znovu.","gm.pms.password_already_exists":"Pro tento účet již bylo nastaveno heslo.","gm.pms.password_not_found":"Heslo nebylo nalezeno.","gm.pms.password_not_verified_unauthorized":"Nesprávné heslo. Zkuste to prosím znovu.","gm.pms.password_not_verified_unauthorized_account_blocked":"Váš účet byl zablokován kvůli příliš mnoha neúspěšným pokusům o přihlášení.","gm.pms.password_policy_failed":"Heslo nesplňuje bezpečnostní požadavky.","gm.pms.player_not_found":"Uživatelský účet nebyl nalezen.","gm.pms.player_personal_information_not_found":"Osobní údaje nebyly nalezeny.","gm.pms.second_factor_not_verified_unauthorized":"Dvoufaktorové ověření se nezdařilo. Zkuste to prosím znovu.","gm.pms.session_not_found":"Relace nebyla nalezena.","gm.pms.token_not_found":"Autentizační token nebyl nalezen.","gm.pms.unexpected_db_exception_on_update":"Došlo k chybě databáze. Zkuste to prosím později.","gm.pms.unexpected_exception":"Došlo k neočekávané chybě. Zkuste to prosím později.","gm.pms.SessionHasNoPermissions":"Nemáte oprávnění k provedení této akce.","gm.pms.incorrect_migration_player_data":"Byla poskytnuta neplatná uživatelská data pro migraci.","gm.pms.migration_config_tenant_id_missed":"Migrační soubor neobsahuje sloupec TenantId.","gm.pms.migration_player_fetch_data_failed":"Během migrace se nepodařilo načíst data uživatele.","gm.pms.migration_player_incorrect_data":"Pro migraci uživatele chybí potřebná data.","gm.pms.missing_hashing_data":"Chybí konfigurace hashování (salt/pepper).","gm.pms.session_is_missing":"Relace chybí. Přihlaste se prosím znovu.","gm.pms.session_invalid_or_expired":"Vaše relace je neplatná nebo vypršela. Přihlaste se prosím znovu.","gm.pms.database_provider_not_configured":"Připojení k databázi není nakonfigurováno. Kontaktujte prosím podporu."},de:{invalidField:"Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",forgotPassword:"Passwort vergessen",userEmail:"Benutzername oder E-Mail",userPhone:"Telefonnummer",userPrefix:"Telefonvorwahl",password:"Passwort",login:"Anmelden",genericError:"Ein unerwarteter Fehler ist aufgetreten",successMessage:"Erfolgreich angemeldet",Forbidden_UserAccount_Blocked:"Spielerkonto gesperrt",GmErr_USER_ACCOUNT_BLOCKED:"Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",setUpPassowrd:"Sie müssen Ihr Passwort zurücksetzen",Unauthorized:"Die Spieler-Kontonummer, E-Mail-Adresse oder das Passwort ist falsch",CountryRestricted:"Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",configError:"Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",userEmailError:"Die E-Mail oder der Benutzername haben ein ungültiges Format.",userPhoneError:"Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",userPasswordError:"Das Passwort hat ein ungültiges Format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha-Überprüfung fehlgeschlagen. Bitte versuchen Sie es erneut.","gm.pms.captcha_missing":"Bitte füllen Sie das Captcha aus.","gm.pms.configuration_exception":"Systemkonfigurationsfehler. Bitte wenden Sie sich an den Support.","gm.pms.contact_not_found":"Kontaktdaten nicht gefunden.","gm.pms.model_validation_failed":"Ungültige Anfragedaten. Bitte überprüfen und erneut versuchen.","gm.pms.otp_disabled":"OTP ist für dieses Konto deaktiviert.","gm.pms.otp_not_found":"OTP nicht gefunden.","gm.pms.otp_not_verified_unauthorized":"OTP-Überprüfung fehlgeschlagen. Bitte versuchen Sie es erneut.","gm.pms.password_already_exists":"Für dieses Konto wurde bereits ein Passwort festgelegt.","gm.pms.password_not_found":"Passwort nicht gefunden.","gm.pms.password_not_verified_unauthorized":"Falsches Passwort. Bitte versuchen Sie es erneut.","gm.pms.password_not_verified_unauthorized_account_blocked":"Ihr Konto wurde aufgrund zu vieler fehlgeschlagener Anmeldeversuche gesperrt.","gm.pms.password_policy_failed":"Das Passwort erfüllt nicht die Sicherheitsanforderungen.","gm.pms.player_not_found":"Spielerkonto nicht gefunden.","gm.pms.player_personal_information_not_found":"Persönliche Daten nicht gefunden.","gm.pms.second_factor_not_verified_unauthorized":"Zwei-Faktor-Authentifizierung fehlgeschlagen. Bitte versuchen Sie es erneut.","gm.pms.session_not_found":"Sitzung nicht gefunden.","gm.pms.token_not_found":"Authentifizierungstoken nicht gefunden.","gm.pms.unexpected_db_exception_on_update":"Es ist ein Datenbankfehler aufgetreten. Bitte versuchen Sie es später erneut.","gm.pms.unexpected_exception":"Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es später erneut.","gm.pms.SessionHasNoPermissions":"Sie haben keine Berechtigung, diese Aktion auszuführen.","gm.pms.incorrect_migration_player_data":"Ungültige Spieldaten für die Migration bereitgestellt.","gm.pms.migration_config_tenant_id_missed":"Die Migrationsdatei enthält keine TenantId-Spalte.","gm.pms.migration_player_fetch_data_failed":"Spielerdaten konnten während der Migration nicht abgerufen werden.","gm.pms.migration_player_incorrect_data":"Für die Migration des Spielers fehlen erforderliche Daten.","gm.pms.missing_hashing_data":"Fehlende Hashing-Konfiguration (Salt/Pepper).","gm.pms.session_is_missing":"Sitzung fehlt. Bitte melden Sie sich erneut an.","gm.pms.session_invalid_or_expired":"Ihre Sitzung ist ungültig oder abgelaufen. Bitte melden Sie sich erneut an.","gm.pms.database_provider_not_configured":"Datenbankverbindung ist nicht konfiguriert. Bitte wenden Sie sich an den Support."},"pt-br":{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou e-mail",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Login",genericError:"Ocorreu um erro inesperado",successMessage:"Login bem-sucedido",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir sua senha",Unauthorized:"O número da conta de jogador, o endereço de e-mail ou a senha estão incorretos",CountryRestricted:"O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao buscar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"A verificação do captcha falhou. Por favor, tente novamente.","gm.pms.captcha_missing":"Por favor, complete o captcha.","gm.pms.configuration_exception":"Erro de configuração do sistema. Entre em contato com o suporte.","gm.pms.contact_not_found":"Informações de contato não encontradas.","gm.pms.model_validation_failed":"Dados inválidos na solicitação. Verifique e tente novamente.","gm.pms.otp_disabled":"O OTP está desativado para esta conta.","gm.pms.otp_not_found":"OTP não encontrado.","gm.pms.otp_not_verified_unauthorized":"A verificação do OTP falhou. Por favor, tente novamente.","gm.pms.password_already_exists":"Já existe uma senha definida para esta conta.","gm.pms.password_not_found":"Senha não encontrada.","gm.pms.password_not_verified_unauthorized":"Senha incorreta. Por favor, tente novamente.","gm.pms.password_not_verified_unauthorized_account_blocked":"Sua conta foi bloqueada devido a várias tentativas de login sem sucesso.","gm.pms.password_policy_failed":"A senha não atende aos requisitos de segurança.","gm.pms.player_not_found":"Conta de jogador não encontrada.","gm.pms.player_personal_information_not_found":"Informações pessoais não encontradas.","gm.pms.second_factor_not_verified_unauthorized":"A autenticação de dois fatores falhou. Por favor, tente novamente.","gm.pms.session_not_found":"Sessão não encontrada.","gm.pms.token_not_found":"Token de autenticação não encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocorreu um erro no banco de dados. Por favor, tente novamente mais tarde.","gm.pms.unexpected_exception":"Ocorreu um erro inesperado. Por favor, tente novamente mais tarde.","gm.pms.SessionHasNoPermissions":"Você não tem permissão para realizar esta ação.","gm.pms.incorrect_migration_player_data":"Dados de jogador inválidos fornecidos para a migração.","gm.pms.migration_config_tenant_id_missed":"O arquivo de migração não contém a coluna TenantId.","gm.pms.migration_player_fetch_data_failed":"Não foi possível buscar os dados do jogador durante a migração.","gm.pms.migration_player_incorrect_data":"Faltam dados obrigatórios para a migração do jogador.","gm.pms.missing_hashing_data":"Configuração de hashing ausente (salt/pepper).","gm.pms.session_is_missing":"Sessão ausente. Faça login novamente.","gm.pms.session_invalid_or_expired":"Sua sessão é inválida ou expirou. Faça login novamente.","gm.pms.database_provider_not_configured":"A conexão com o banco de dados não está configurada. Entre em contato com o suporte."},"es-mx":{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé la contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo telefónico",password:"Contraseña",login:"Iniciar sesión",genericError:"Ocurrió un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",Unauthorized:"El número de cuenta de jugador, la dirección de correo electrónico o la contraseña son incorrectos",CountryRestricted:"El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"La verificación del captcha falló. Por favor, inténtalo de nuevo.","gm.pms.captcha_missing":"Por favor, completa el captcha.","gm.pms.configuration_exception":"Error de configuración del sistema. Contacta al soporte.","gm.pms.contact_not_found":"Información de contacto no encontrada.","gm.pms.model_validation_failed":"Datos de la solicitud no válidos. Verifica e inténtalo de nuevo.","gm.pms.otp_disabled":"El OTP está deshabilitado para esta cuenta.","gm.pms.otp_not_found":"OTP no encontrado.","gm.pms.otp_not_verified_unauthorized":"La verificación del OTP falló. Por favor, inténtalo de nuevo.","gm.pms.password_already_exists":"Ya se ha establecido una contraseña para esta cuenta.","gm.pms.password_not_found":"Contraseña no encontrada.","gm.pms.password_not_verified_unauthorized":"Contraseña incorrecta. Por favor, inténtalo de nuevo.","gm.pms.password_not_verified_unauthorized_account_blocked":"Tu cuenta ha sido bloqueada por múltiples intentos fallidos de inicio de sesión.","gm.pms.password_policy_failed":"La contraseña no cumple con los requisitos de seguridad.","gm.pms.player_not_found":"Cuenta de jugador no encontrada.","gm.pms.player_personal_information_not_found":"Información personal no encontrada.","gm.pms.second_factor_not_verified_unauthorized":"La autenticación de dos factores falló. Por favor, inténtalo de nuevo.","gm.pms.session_not_found":"Sesión no encontrada.","gm.pms.token_not_found":"Token de autenticación no encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocurrió un error en la base de datos. Por favor, inténtalo más tarde.","gm.pms.unexpected_exception":"Ocurrió un error inesperado. Por favor, inténtalo más tarde.","gm.pms.SessionHasNoPermissions":"No tienes permiso para realizar esta acción.","gm.pms.incorrect_migration_player_data":"Datos de jugador inválidos proporcionados para la migración.","gm.pms.migration_config_tenant_id_missed":"El archivo de migración no contiene la columna TenantId.","gm.pms.migration_player_fetch_data_failed":"No se pudieron obtener los datos del jugador durante la migración.","gm.pms.migration_player_incorrect_data":"Faltan datos requeridos para la migración del jugador.","gm.pms.missing_hashing_data":"Falta configuración de hashing (salt/pepper).","gm.pms.session_is_missing":"Sesión faltante. Por favor, inicia sesión de nuevo.","gm.pms.session_invalid_or_expired":"Tu sesión no es válida o ha expirado. Por favor, inicia sesión de nuevo.","gm.pms.database_provider_not_configured":"La conexión a la base de datos no está configurada. Contacta al soporte."},es:{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé mi contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo de teléfono",password:"Contraseña",login:"Iniciar sesión",genericError:"Se ha producido un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",Unauthorized:"El número de cuenta, correo electrónico o contraseña es incorrecto",CountryRestricted:"No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"La verificación del captcha falló. Por favor, inténtalo de nuevo.","gm.pms.captcha_missing":"Por favor, completa el captcha.","gm.pms.configuration_exception":"Error de configuración del sistema. Contacta con el soporte.","gm.pms.contact_not_found":"Información de contacto no encontrada.","gm.pms.model_validation_failed":"Datos de la solicitud inválidos. Verifica e inténtalo de nuevo.","gm.pms.otp_disabled":"El OTP está deshabilitado para esta cuenta.","gm.pms.otp_not_found":"OTP no encontrado.","gm.pms.otp_not_verified_unauthorized":"La verificación del OTP falló. Por favor, inténtalo de nuevo.","gm.pms.password_already_exists":"Ya se ha establecido una contraseña para esta cuenta.","gm.pms.password_not_found":"Contraseña no encontrada.","gm.pms.password_not_verified_unauthorized":"Contraseña incorrecta. Por favor, inténtalo de nuevo.","gm.pms.password_not_verified_unauthorized_account_blocked":"Tu cuenta ha sido bloqueada por múltiples intentos fallidos de inicio de sesión.","gm.pms.password_policy_failed":"La contraseña no cumple con los requisitos de seguridad.","gm.pms.player_not_found":"Cuenta de jugador no encontrada.","gm.pms.player_personal_information_not_found":"Información personal no encontrada.","gm.pms.second_factor_not_verified_unauthorized":"La autenticación en dos pasos falló. Por favor, inténtalo de nuevo.","gm.pms.session_not_found":"Sesión no encontrada.","gm.pms.token_not_found":"Token de autenticación no encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocurrió un error en la base de datos. Por favor, inténtalo más tarde.","gm.pms.unexpected_exception":"Ocurrió un error inesperado. Por favor, inténtalo más tarde.","gm.pms.SessionHasNoPermissions":"No tienes permiso para realizar esta acción.","gm.pms.incorrect_migration_player_data":"Datos de jugador inválidos proporcionados para la migración.","gm.pms.migration_config_tenant_id_missed":"El archivo de migración no contiene la columna TenantId.","gm.pms.migration_player_fetch_data_failed":"No se pudieron obtener los datos del jugador durante la migración.","gm.pms.migration_player_incorrect_data":"Faltan datos requeridos para la migración del jugador.","gm.pms.missing_hashing_data":"Falta configuración de hashing (salt/pepper).","gm.pms.session_is_missing":"Sesión faltante. Por favor, inicia sesión de nuevo.","gm.pms.session_invalid_or_expired":"Tu sesión no es válida o ha expirado. Por favor, inicia sesión de nuevo.","gm.pms.database_provider_not_configured":"La conexión con la base de datos no está configurada. Contacta con el soporte."},pt:{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou email",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Entrar",genericError:"Ocorreu um erro inesperado",successMessage:"Login realizado com sucesso",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir a sua senha",Unauthorized:"O número da conta, e-mail ou senha está incorreto",CountryRestricted:"Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao procurar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"A verificação do captcha falhou. Por favor, tente novamente.","gm.pms.captcha_missing":"Por favor, complete o captcha.","gm.pms.configuration_exception":"Erro de configuração do sistema. Contacte o suporte.","gm.pms.contact_not_found":"Informações de contacto não encontradas.","gm.pms.model_validation_failed":"Dados do pedido inválidos. Verifique e tente novamente.","gm.pms.otp_disabled":"O OTP está desativado para esta conta.","gm.pms.otp_not_found":"OTP não encontrado.","gm.pms.otp_not_verified_unauthorized":"A verificação do OTP falhou. Por favor, tente novamente.","gm.pms.password_already_exists":"Já foi definida uma palavra-passe para esta conta.","gm.pms.password_not_found":"Palavra-passe não encontrada.","gm.pms.password_not_verified_unauthorized":"Palavra-passe incorreta. Por favor, tente novamente.","gm.pms.password_not_verified_unauthorized_account_blocked":"A sua conta foi bloqueada devido a várias tentativas de início de sessão falhadas.","gm.pms.password_policy_failed":"A palavra-passe não cumpre os requisitos de segurança.","gm.pms.player_not_found":"Conta de jogador não encontrada.","gm.pms.player_personal_information_not_found":"Informações pessoais não encontradas.","gm.pms.second_factor_not_verified_unauthorized":"A autenticação de dois fatores falhou. Por favor, tente novamente.","gm.pms.session_not_found":"Sessão não encontrada.","gm.pms.token_not_found":"Token de autenticação não encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocorreu um erro na base de dados. Por favor, tente mais tarde.","gm.pms.unexpected_exception":"Ocorreu um erro inesperado. Por favor, tente mais tarde.","gm.pms.SessionHasNoPermissions":"Não tem permissão para executar esta ação.","gm.pms.incorrect_migration_player_data":"Dados de jogador inválidos fornecidos para a migração.","gm.pms.migration_config_tenant_id_missed":"O ficheiro de migração não contém a coluna TenantId.","gm.pms.migration_player_fetch_data_failed":"Não foi possível obter os dados do jogador durante a migração.","gm.pms.migration_player_incorrect_data":"Faltam dados necessários para a migração do jogador.","gm.pms.missing_hashing_data":"Configuração de hashing em falta (salt/pepper).","gm.pms.session_is_missing":"Sessão em falta. Por favor, inicie sessão novamente.","gm.pms.session_invalid_or_expired":"A sua sessão é inválida ou expirou. Por favor, inicie sessão novamente.","gm.pms.database_provider_not_configured":"A ligação à base de dados não está configurada. Contacte o suporte."}},r=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{o[e]||(o[e]={});for(let i in t[e])o[e][i]=t[e][i]})),e(!0)}))})),n=(t,e,i)=>{let s=o[void 0!==e&&e in o?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s};
1
+ import{r as t,h as e}from"./index-a126c540.js";function i(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function s(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}const o={en:{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",Unauthorized:"The player account number, e-mail address or password is incorrect",CountryRestricted:"Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha verification failed. Please try again.","gm.pms.captcha_missing":"Please complete the captcha.","gm.pms.configuration_exception":"System configuration error. Please contact support.","gm.pms.contact_not_found":"Contact information not found.","gm.pms.model_validation_failed":"Invalid request data. Please check and try again.","gm.pms.otp_disabled":"OTP is disabled for this account.","gm.pms.otp_not_found":"OTP not found.","gm.pms.otp_not_verified_unauthorized":"OTP verification failed. Please try again.","gm.pms.password_already_exists":"A password has already been set for this account.","gm.pms.password_not_found":"Password not found.","gm.pms.password_not_verified_unauthorized":"Incorrect password. Please try again.","gm.pms.password_not_verified_unauthorized_account_blocked":"Your account has been blocked due to multiple failed login attempts.","gm.pms.password_policy_failed":"Password does not meet the security requirements.","gm.pms.player_not_found":"Player account not found.","gm.pms.player_personal_information_not_found":"Personal information not found.","gm.pms.second_factor_not_verified_unauthorized":"Two-factor authentication failed. Please try again.","gm.pms.session_not_found":"Session not found.","gm.pms.token_not_found":"Authentication token not found.","gm.pms.unexpected_db_exception_on_update":"A database error occurred. Please try again later.","gm.pms.unexpected_exception":"An unexpected error occurred. Please try again later.","gm.pms.SessionHasNoPermissions":"You do not have permission to perform this action.","gm.pms.incorrect_migration_player_data":"Invalid player data provided for migration.","gm.pms.migration_config_tenant_id_missed":"Migration file is missing the TenantId column.","gm.pms.migration_player_fetch_data_failed":"Unable to fetch player data during migration.","gm.pms.migration_player_incorrect_data":"Required player data is missing for migration.","gm.pms.missing_hashing_data":"Missing hashing configuration (salt/pepper).","gm.pms.session_is_missing":"Session is missing. Please log in again.","gm.pms.session_invalid_or_expired":"Your session is invalid or has expired. Please log in again.","gm.pms.database_provider_not_configured":"Database connection is not configured. Please contact support."},tr:{invalidField:"Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",forgotPassword:"Şifremi Unuttum",userEmail:"Kullanıcı Adı veya E-posta",userPhone:"Telefon numarası",userPrefix:"Telefon kodu",password:"Şifre",login:"Giriş Yap",genericError:"Beklenmeyen bir hata oluştu",successMessage:"Giriş başarılı",Forbidden_UserAccount_Blocked:"Oyuncu hesabı engellendi",GmErr_USER_ACCOUNT_BLOCKED:"Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",setUpPassowrd:"Şifrenizi sıfırlamanız gerekiyor",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya şifre hatalı",CountryRestricted:"Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin.",configError:"Yapılandırma alınırken beklenmeyen bir hata oluştu",userEmailError:"E-posta veya kullanıcı adı geçersiz bir formata sahip.",userPhoneError:"Ön ek veya telefon numarası geçersiz bir formata sahip.",userPasswordError:"Şifre geçersiz bir formata sahip.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha doğrulaması başarısız oldu. Lütfen tekrar deneyin.","gm.pms.captcha_missing":"Lütfen captcha'yı tamamlayın.","gm.pms.configuration_exception":"Sistem yapılandırma hatası. Lütfen destek ile iletişime geçin.","gm.pms.contact_not_found":"İletişim bilgisi bulunamadı.","gm.pms.model_validation_failed":"Geçersiz istek verisi. Lütfen kontrol edip tekrar deneyin.","gm.pms.otp_disabled":"Bu hesap için OTP devre dışı bırakılmış.","gm.pms.otp_not_found":"OTP bulunamadı.","gm.pms.otp_not_verified_unauthorized":"OTP doğrulaması başarısız oldu. Lütfen tekrar deneyin.","gm.pms.password_already_exists":"Bu hesap için zaten bir parola ayarlanmış.","gm.pms.password_not_found":"Parola bulunamadı.","gm.pms.password_not_verified_unauthorized":"Hatalı parola. Lütfen tekrar deneyin.","gm.pms.password_not_verified_unauthorized_account_blocked":"Hesabınız çok sayıda hatalı giriş nedeniyle engellendi.","gm.pms.password_policy_failed":"Parola güvenlik gereksinimlerini karşılamıyor.","gm.pms.player_not_found":"Oyuncu hesabı bulunamadı.","gm.pms.player_personal_information_not_found":"Kişisel bilgi bulunamadı.","gm.pms.second_factor_not_verified_unauthorized":"İki faktörlü kimlik doğrulama başarısız oldu. Lütfen tekrar deneyin.","gm.pms.session_not_found":"Oturum bulunamadı.","gm.pms.token_not_found":"Kimlik doğrulama jetonu bulunamadı.","gm.pms.unexpected_db_exception_on_update":"Bir veritabanı hatası oluştu. Lütfen daha sonra tekrar deneyin.","gm.pms.unexpected_exception":"Beklenmeyen bir hata oluştu. Lütfen daha sonra tekrar deneyin.","gm.pms.SessionHasNoPermissions":"Bu işlemi gerçekleştirmek için izniniz yok.","gm.pms.incorrect_migration_player_data":"Geçersiz oyuncu verisi sağlandı (taşıma işlemi için).","gm.pms.migration_config_tenant_id_missed":"Taşıma dosyasında TenantId sütunu eksik.","gm.pms.migration_player_fetch_data_failed":"Taşıma sırasında oyuncu verileri alınamadı.","gm.pms.migration_player_incorrect_data":"Taşıma için gerekli oyuncu verileri eksik.","gm.pms.missing_hashing_data":"Eksik şifreleme yapılandırması (salt/pepper).","gm.pms.session_is_missing":"Oturum eksik. Lütfen tekrar giriş yapın.","gm.pms.session_invalid_or_expired":"Oturumunuz geçersiz veya süresi dolmuş. Lütfen tekrar giriş yapın.","gm.pms.database_provider_not_configured":"Veritabanı bağlantısı yapılandırılmamış. Lütfen destek ile iletişime geçin."},"en-us":{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",Unauthorized:"The player account number, e-mail address or password is incorrect",CountryRestricted:"Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha verification failed. Please try again.","gm.pms.captcha_missing":"Please complete the captcha.","gm.pms.configuration_exception":"System configuration error. Please contact support.","gm.pms.contact_not_found":"Contact information not found.","gm.pms.model_validation_failed":"Invalid request data. Please check and try again.","gm.pms.otp_disabled":"OTP is disabled for this account.","gm.pms.otp_not_found":"OTP not found.","gm.pms.otp_not_verified_unauthorized":"OTP verification failed. Please try again.","gm.pms.password_already_exists":"A password has already been set for this account.","gm.pms.password_not_found":"Password not found.","gm.pms.password_not_verified_unauthorized":"Incorrect password. Please try again.","gm.pms.password_not_verified_unauthorized_account_blocked":"Your account has been blocked due to multiple failed login attempts.","gm.pms.password_policy_failed":"Password does not meet the security requirements.","gm.pms.player_not_found":"Player account not found.","gm.pms.player_personal_information_not_found":"Personal information not found.","gm.pms.second_factor_not_verified_unauthorized":"Two-factor authentication failed. Please try again.","gm.pms.session_not_found":"Session not found.","gm.pms.token_not_found":"Authentication token not found.","gm.pms.unexpected_db_exception_on_update":"A database error occurred. Please try again later.","gm.pms.unexpected_exception":"An unexpected error occurred. Please try again later.","gm.pms.SessionHasNoPermissions":"You do not have permission to perform this action.","gm.pms.incorrect_migration_player_data":"Invalid player data provided for migration.","gm.pms.migration_config_tenant_id_missed":"Migration file is missing the TenantId column.","gm.pms.migration_player_fetch_data_failed":"Unable to fetch player data during migration.","gm.pms.migration_player_incorrect_data":"Required player data is missing for migration.","gm.pms.missing_hashing_data":"Missing hashing configuration (salt/pepper).","gm.pms.session_is_missing":"Session is missing. Please log in again.","gm.pms.session_invalid_or_expired":"Your session is invalid or has expired. Please log in again.","gm.pms.database_provider_not_configured":"Database connection is not configured. Please contact support."},ro:{invalidField:"Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",forgotPassword:"Ați uitat parola",userEmail:"Nume utilizator sau email",userPhone:"Număr de telefon",userPrefix:"Prefix telefon",password:"Parolă",login:"Autentificare",genericError:"A apărut o eroare neașteptată",successMessage:"Autentificare reușită",Forbidden_UserAccount_Blocked:"Contul de jucător este blocat",GmErr_USER_ACCOUNT_BLOCKED:"În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",setUpPassowrd:"Trebuie să vă resetați parola",Unauthorized:"Numărul contului de jucător, adresa de e-mail sau parola sunt incorecte",CountryRestricted:"Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența.",configError:"A apărut o eroare neașteptată la preluarea configurației",userEmailError:"Emailul sau numele de utilizator au un format invalid.",userPhoneError:"Prefixul sau numărul de telefon au un format invalid.",userPasswordError:"Parola are un format invalid.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Verificarea captcha a eșuat. Vă rugăm să încercați din nou.","gm.pms.captcha_missing":"Vă rugăm să completați captcha.","gm.pms.configuration_exception":"Eroare de configurare a sistemului. Contactați suportul.","gm.pms.contact_not_found":"Informațiile de contact nu au fost găsite.","gm.pms.model_validation_failed":"Datele trimise sunt invalide. Verificați și încercați din nou.","gm.pms.otp_disabled":"OTP este dezactivat pentru acest cont.","gm.pms.otp_not_found":"OTP nu a fost găsit.","gm.pms.otp_not_verified_unauthorized":"Verificarea OTP a eșuat. Vă rugăm să încercați din nou.","gm.pms.password_already_exists":"O parolă a fost deja setată pentru acest cont.","gm.pms.password_not_found":"Parola nu a fost găsită.","gm.pms.password_not_verified_unauthorized":"Parola este incorectă. Vă rugăm să încercați din nou.","gm.pms.password_not_verified_unauthorized_account_blocked":"Contul dvs. a fost blocat din cauza prea multor încercări eșuate de autentificare.","gm.pms.password_policy_failed":"Parola nu respectă cerințele de securitate.","gm.pms.player_not_found":"Contul de jucător nu a fost găsit.","gm.pms.player_personal_information_not_found":"Informațiile personale nu au fost găsite.","gm.pms.second_factor_not_verified_unauthorized":"Autentificarea în doi pași a eșuat. Vă rugăm să încercați din nou.","gm.pms.session_not_found":"Sesiunea nu a fost găsită.","gm.pms.token_not_found":"Token-ul de autentificare nu a fost găsit.","gm.pms.unexpected_db_exception_on_update":"A apărut o eroare a bazei de date. Vă rugăm să încercați din nou mai târziu.","gm.pms.unexpected_exception":"A apărut o eroare neașteptată. Vă rugăm să încercați din nou mai târziu.","gm.pms.SessionHasNoPermissions":"Nu aveți permisiunea de a efectua această acțiune.","gm.pms.incorrect_migration_player_data":"Datele jucătorului furnizate pentru migrare sunt invalide.","gm.pms.migration_config_tenant_id_missed":"Fișierul de migrare nu conține coloana TenantId.","gm.pms.migration_player_fetch_data_failed":"Nu s-au putut obține datele jucătorului în timpul migrării.","gm.pms.migration_player_incorrect_data":"Datele necesare pentru migrarea jucătorului lipsesc.","gm.pms.missing_hashing_data":"Configurația de hashing (salt/pepper) lipsește.","gm.pms.session_is_missing":"Sesiunea lipsește. Vă rugăm să vă autentificați din nou.","gm.pms.session_invalid_or_expired":"Sesiunea dvs. este invalidă sau a expirat. Vă rugăm să vă autentificați din nou.","gm.pms.database_provider_not_configured":"Conexiunea la baza de date nu este configurată. Contactați suportul."},hr:{invalidField:"Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",userPhone:"Broj telefona",userPrefix:"Telefonski prefix",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",setUpPassowrd:"Morate resetirati svoju lozinku",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",GmErr_USER_ACCOUNT_BLOCKED:"Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",Unauthorized:"Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni",CountryRestricted:"Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",configError:"Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",userEmailError:"E-mail ili korisničko ime imaju nevažeći format.",userPhoneError:"Prefiks ili telefonski broj imaju nevažeći format.",userPasswordError:"Lozinka ima nevažeći format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Provjera captche nije uspjela. Pokušajte ponovno.","gm.pms.captcha_missing":"Molimo dovršite captchu.","gm.pms.configuration_exception":"Pogreška u konfiguraciji sustava. Obratite se podršci.","gm.pms.contact_not_found":"Kontakt informacije nisu pronađene.","gm.pms.model_validation_failed":"Nevažeći podaci zahtjeva. Provjerite i pokušajte ponovno.","gm.pms.otp_disabled":"OTP je onemogućen za ovaj račun.","gm.pms.otp_not_found":"OTP nije pronađen.","gm.pms.otp_not_verified_unauthorized":"Provjera OTP-a nije uspjela. Pokušajte ponovno.","gm.pms.password_already_exists":"Za ovaj račun je već postavljena lozinka.","gm.pms.password_not_found":"Lozinka nije pronađena.","gm.pms.password_not_verified_unauthorized":"Netočna lozinka. Pokušajte ponovno.","gm.pms.password_not_verified_unauthorized_account_blocked":"Vaš račun je blokiran zbog previše neuspjelih pokušaja prijave.","gm.pms.password_policy_failed":"Lozinka ne ispunjava sigurnosne zahtjeve.","gm.pms.player_not_found":"Korisnički račun nije pronađen.","gm.pms.player_personal_information_not_found":"Osobni podaci nisu pronađeni.","gm.pms.second_factor_not_verified_unauthorized":"Dvofaktorska autentifikacija nije uspjela. Pokušajte ponovno.","gm.pms.session_not_found":"Sesija nije pronađena.","gm.pms.token_not_found":"Autentifikacijski token nije pronađen.","gm.pms.unexpected_db_exception_on_update":"Došlo je do pogreške baze podataka. Pokušajte ponovno kasnije.","gm.pms.unexpected_exception":"Došlo je do neočekivane pogreške. Pokušajte ponovno kasnije.","gm.pms.SessionHasNoPermissions":"Nemate dopuštenje za ovu radnju.","gm.pms.incorrect_migration_player_data":"Nevažeći korisnički podaci za migraciju.","gm.pms.migration_config_tenant_id_missed":"Migracijska datoteka ne sadrži stupac TenantId.","gm.pms.migration_player_fetch_data_failed":"Nije moguće dohvatiti podatke korisnika tijekom migracije.","gm.pms.migration_player_incorrect_data":"Nedostaju potrebni podaci za migraciju korisnika.","gm.pms.missing_hashing_data":"Nedostaje konfiguracija za hashing (salt/pepper).","gm.pms.session_is_missing":"Sesija nedostaje. Molimo prijavite se ponovno.","gm.pms.session_invalid_or_expired":"Vaša sesija je nevažeća ili je istekla. Molimo prijavite se ponovno.","gm.pms.database_provider_not_configured":"Veza s bazom podataka nije konfigurirana. Obratite se podršci."},fr:{invalidField:"Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",forgotPassword:"Mot de passe oublié",userEmail:"Nom d'utilisateur ou email",userPhone:"Numéro de téléphone",userPrefix:"Préfixe téléphonique",password:"Mot de passe",login:"Connexion",genericError:"Une erreur inattendue est survenue",successMessage:"Connexion réussie",Forbidden_UserAccount_Blocked:"Compte joueur bloqué",GmErr_USER_ACCOUNT_BLOCKED:"Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",setUpPassowrd:"Vous devez réinitialiser votre mot de passe",Unauthorized:"Le numéro de compte joueur, l'adresse e-mail ou le mot de passe est incorrect",CountryRestricted:"L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",configError:"Une erreur inattendue s'est produite lors de la récupération de la configuration",userEmailError:"L'email ou le nom d'utilisateur ont un format invalide.",userPhoneError:"Le préfixe ou le numéro de téléphone ont un format invalide.",userPasswordError:"Le mot de passe a un format invalide.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"La vérification du captcha a échoué. Veuillez réessayer.","gm.pms.captcha_missing":"Veuillez compléter le captcha.","gm.pms.configuration_exception":"Erreur de configuration du système. Veuillez contacter le support.","gm.pms.contact_not_found":"Informations de contact introuvables.","gm.pms.model_validation_failed":"Données de requête invalides. Veuillez vérifier et réessayer.","gm.pms.otp_disabled":"L’OTP est désactivé pour ce compte.","gm.pms.otp_not_found":"OTP introuvable.","gm.pms.otp_not_verified_unauthorized":"La vérification de l’OTP a échoué. Veuillez réessayer.","gm.pms.password_already_exists":"Un mot de passe a déjà été défini pour ce compte.","gm.pms.password_not_found":"Mot de passe introuvable.","gm.pms.password_not_verified_unauthorized":"Mot de passe incorrect. Veuillez réessayer.","gm.pms.password_not_verified_unauthorized_account_blocked":"Votre compte a été bloqué après plusieurs tentatives de connexion échouées.","gm.pms.password_policy_failed":"Le mot de passe ne respecte pas les exigences de sécurité.","gm.pms.player_not_found":"Compte joueur introuvable.","gm.pms.player_personal_information_not_found":"Informations personnelles introuvables.","gm.pms.second_factor_not_verified_unauthorized":"L’authentification à deux facteurs a échoué. Veuillez réessayer.","gm.pms.session_not_found":"Session introuvable.","gm.pms.token_not_found":"Jeton d’authentification introuvable.","gm.pms.unexpected_db_exception_on_update":"Une erreur de base de données est survenue. Veuillez réessayer plus tard.","gm.pms.unexpected_exception":"Une erreur inattendue est survenue. Veuillez réessayer plus tard.","gm.pms.SessionHasNoPermissions":"Vous n’avez pas la permission d’effectuer cette action.","gm.pms.incorrect_migration_player_data":"Données joueur invalides fournies pour la migration.","gm.pms.migration_config_tenant_id_missed":"Le fichier de migration ne contient pas la colonne TenantId.","gm.pms.migration_player_fetch_data_failed":"Impossible de récupérer les données du joueur pendant la migration.","gm.pms.migration_player_incorrect_data":"Les données nécessaires à la migration du joueur sont manquantes.","gm.pms.missing_hashing_data":"Configuration de hachage manquante (sel/poivre).","gm.pms.session_is_missing":"Session manquante. Veuillez vous reconnecter.","gm.pms.session_invalid_or_expired":"Votre session est invalide ou a expiré. Veuillez vous reconnecter.","gm.pms.database_provider_not_configured":"La connexion à la base de données n’est pas configurée. Veuillez contacter le support."},cs:{invalidField:"Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",userPhone:"Telefonní číslo",userPrefix:"Telefonní předvolba",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",setUpPassowrd:"Musíte resetovat své heslo",Unauthorized:"Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné",CountryRestricted:"Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",configError:"Při načítání konfigurace došlo k neočekávané chybě",userEmailError:"E-mail nebo uživatelské jméno mají neplatný formát.",userPhoneError:"Předvolba nebo telefonní číslo mají neplatný formát.",userPasswordError:"Heslo má neplatný formát.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Ověření captcha se nezdařilo. Zkuste to prosím znovu.","gm.pms.captcha_missing":"Vyplňte prosím captcha.","gm.pms.configuration_exception":"Chyba konfigurace systému. Kontaktujte prosím podporu.","gm.pms.contact_not_found":"Kontaktní údaje nebyly nalezeny.","gm.pms.model_validation_failed":"Neplatná data požadavku. Zkontrolujte je a zkuste to znovu.","gm.pms.otp_disabled":"OTP je pro tento účet vypnuto.","gm.pms.otp_not_found":"OTP nebyl nalezen.","gm.pms.otp_not_verified_unauthorized":"Ověření OTP se nezdařilo. Zkuste to prosím znovu.","gm.pms.password_already_exists":"Pro tento účet již bylo nastaveno heslo.","gm.pms.password_not_found":"Heslo nebylo nalezeno.","gm.pms.password_not_verified_unauthorized":"Nesprávné heslo. Zkuste to prosím znovu.","gm.pms.password_not_verified_unauthorized_account_blocked":"Váš účet byl zablokován kvůli příliš mnoha neúspěšným pokusům o přihlášení.","gm.pms.password_policy_failed":"Heslo nesplňuje bezpečnostní požadavky.","gm.pms.player_not_found":"Uživatelský účet nebyl nalezen.","gm.pms.player_personal_information_not_found":"Osobní údaje nebyly nalezeny.","gm.pms.second_factor_not_verified_unauthorized":"Dvoufaktorové ověření se nezdařilo. Zkuste to prosím znovu.","gm.pms.session_not_found":"Relace nebyla nalezena.","gm.pms.token_not_found":"Autentizační token nebyl nalezen.","gm.pms.unexpected_db_exception_on_update":"Došlo k chybě databáze. Zkuste to prosím později.","gm.pms.unexpected_exception":"Došlo k neočekávané chybě. Zkuste to prosím později.","gm.pms.SessionHasNoPermissions":"Nemáte oprávnění k provedení této akce.","gm.pms.incorrect_migration_player_data":"Byla poskytnuta neplatná uživatelská data pro migraci.","gm.pms.migration_config_tenant_id_missed":"Migrační soubor neobsahuje sloupec TenantId.","gm.pms.migration_player_fetch_data_failed":"Během migrace se nepodařilo načíst data uživatele.","gm.pms.migration_player_incorrect_data":"Pro migraci uživatele chybí potřebná data.","gm.pms.missing_hashing_data":"Chybí konfigurace hashování (salt/pepper).","gm.pms.session_is_missing":"Relace chybí. Přihlaste se prosím znovu.","gm.pms.session_invalid_or_expired":"Vaše relace je neplatná nebo vypršela. Přihlaste se prosím znovu.","gm.pms.database_provider_not_configured":"Připojení k databázi není nakonfigurováno. Kontaktujte prosím podporu."},de:{invalidField:"Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",forgotPassword:"Passwort vergessen",userEmail:"Benutzername oder E-Mail",userPhone:"Telefonnummer",userPrefix:"Telefonvorwahl",password:"Passwort",login:"Anmelden",genericError:"Ein unerwarteter Fehler ist aufgetreten",successMessage:"Erfolgreich angemeldet",Forbidden_UserAccount_Blocked:"Spielerkonto gesperrt",GmErr_USER_ACCOUNT_BLOCKED:"Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",setUpPassowrd:"Sie müssen Ihr Passwort zurücksetzen",Unauthorized:"Die Spieler-Kontonummer, E-Mail-Adresse oder das Passwort ist falsch",CountryRestricted:"Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",configError:"Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",userEmailError:"Die E-Mail oder der Benutzername haben ein ungültiges Format.",userPhoneError:"Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",userPasswordError:"Das Passwort hat ein ungültiges Format.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"Captcha-Überprüfung fehlgeschlagen. Bitte versuchen Sie es erneut.","gm.pms.captcha_missing":"Bitte füllen Sie das Captcha aus.","gm.pms.configuration_exception":"Systemkonfigurationsfehler. Bitte wenden Sie sich an den Support.","gm.pms.contact_not_found":"Kontaktdaten nicht gefunden.","gm.pms.model_validation_failed":"Ungültige Anfragedaten. Bitte überprüfen und erneut versuchen.","gm.pms.otp_disabled":"OTP ist für dieses Konto deaktiviert.","gm.pms.otp_not_found":"OTP nicht gefunden.","gm.pms.otp_not_verified_unauthorized":"OTP-Überprüfung fehlgeschlagen. Bitte versuchen Sie es erneut.","gm.pms.password_already_exists":"Für dieses Konto wurde bereits ein Passwort festgelegt.","gm.pms.password_not_found":"Passwort nicht gefunden.","gm.pms.password_not_verified_unauthorized":"Falsches Passwort. Bitte versuchen Sie es erneut.","gm.pms.password_not_verified_unauthorized_account_blocked":"Ihr Konto wurde aufgrund zu vieler fehlgeschlagener Anmeldeversuche gesperrt.","gm.pms.password_policy_failed":"Das Passwort erfüllt nicht die Sicherheitsanforderungen.","gm.pms.player_not_found":"Spielerkonto nicht gefunden.","gm.pms.player_personal_information_not_found":"Persönliche Daten nicht gefunden.","gm.pms.second_factor_not_verified_unauthorized":"Zwei-Faktor-Authentifizierung fehlgeschlagen. Bitte versuchen Sie es erneut.","gm.pms.session_not_found":"Sitzung nicht gefunden.","gm.pms.token_not_found":"Authentifizierungstoken nicht gefunden.","gm.pms.unexpected_db_exception_on_update":"Es ist ein Datenbankfehler aufgetreten. Bitte versuchen Sie es später erneut.","gm.pms.unexpected_exception":"Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es später erneut.","gm.pms.SessionHasNoPermissions":"Sie haben keine Berechtigung, diese Aktion auszuführen.","gm.pms.incorrect_migration_player_data":"Ungültige Spieldaten für die Migration bereitgestellt.","gm.pms.migration_config_tenant_id_missed":"Die Migrationsdatei enthält keine TenantId-Spalte.","gm.pms.migration_player_fetch_data_failed":"Spielerdaten konnten während der Migration nicht abgerufen werden.","gm.pms.migration_player_incorrect_data":"Für die Migration des Spielers fehlen erforderliche Daten.","gm.pms.missing_hashing_data":"Fehlende Hashing-Konfiguration (Salt/Pepper).","gm.pms.session_is_missing":"Sitzung fehlt. Bitte melden Sie sich erneut an.","gm.pms.session_invalid_or_expired":"Ihre Sitzung ist ungültig oder abgelaufen. Bitte melden Sie sich erneut an.","gm.pms.database_provider_not_configured":"Datenbankverbindung ist nicht konfiguriert. Bitte wenden Sie sich an den Support."},"pt-br":{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou e-mail",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Login",genericError:"Ocorreu um erro inesperado",successMessage:"Login bem-sucedido",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir sua senha",Unauthorized:"O número da conta de jogador, o endereço de e-mail ou a senha estão incorretos",CountryRestricted:"O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao buscar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"A verificação do captcha falhou. Por favor, tente novamente.","gm.pms.captcha_missing":"Por favor, complete o captcha.","gm.pms.configuration_exception":"Erro de configuração do sistema. Entre em contato com o suporte.","gm.pms.contact_not_found":"Informações de contato não encontradas.","gm.pms.model_validation_failed":"Dados inválidos na solicitação. Verifique e tente novamente.","gm.pms.otp_disabled":"O OTP está desativado para esta conta.","gm.pms.otp_not_found":"OTP não encontrado.","gm.pms.otp_not_verified_unauthorized":"A verificação do OTP falhou. Por favor, tente novamente.","gm.pms.password_already_exists":"Já existe uma senha definida para esta conta.","gm.pms.password_not_found":"Senha não encontrada.","gm.pms.password_not_verified_unauthorized":"Senha incorreta. Por favor, tente novamente.","gm.pms.password_not_verified_unauthorized_account_blocked":"Sua conta foi bloqueada devido a várias tentativas de login sem sucesso.","gm.pms.password_policy_failed":"A senha não atende aos requisitos de segurança.","gm.pms.player_not_found":"Conta de jogador não encontrada.","gm.pms.player_personal_information_not_found":"Informações pessoais não encontradas.","gm.pms.second_factor_not_verified_unauthorized":"A autenticação de dois fatores falhou. Por favor, tente novamente.","gm.pms.session_not_found":"Sessão não encontrada.","gm.pms.token_not_found":"Token de autenticação não encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocorreu um erro no banco de dados. Por favor, tente novamente mais tarde.","gm.pms.unexpected_exception":"Ocorreu um erro inesperado. Por favor, tente novamente mais tarde.","gm.pms.SessionHasNoPermissions":"Você não tem permissão para realizar esta ação.","gm.pms.incorrect_migration_player_data":"Dados de jogador inválidos fornecidos para a migração.","gm.pms.migration_config_tenant_id_missed":"O arquivo de migração não contém a coluna TenantId.","gm.pms.migration_player_fetch_data_failed":"Não foi possível buscar os dados do jogador durante a migração.","gm.pms.migration_player_incorrect_data":"Faltam dados obrigatórios para a migração do jogador.","gm.pms.missing_hashing_data":"Configuração de hashing ausente (salt/pepper).","gm.pms.session_is_missing":"Sessão ausente. Faça login novamente.","gm.pms.session_invalid_or_expired":"Sua sessão é inválida ou expirou. Faça login novamente.","gm.pms.database_provider_not_configured":"A conexão com o banco de dados não está configurada. Entre em contato com o suporte."},"es-mx":{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé la contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo telefónico",password:"Contraseña",login:"Iniciar sesión",genericError:"Ocurrió un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",Unauthorized:"El número de cuenta de jugador, la dirección de correo electrónico o la contraseña son incorrectos",CountryRestricted:"El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"La verificación del captcha falló. Por favor, inténtalo de nuevo.","gm.pms.captcha_missing":"Por favor, completa el captcha.","gm.pms.configuration_exception":"Error de configuración del sistema. Contacta al soporte.","gm.pms.contact_not_found":"Información de contacto no encontrada.","gm.pms.model_validation_failed":"Datos de la solicitud no válidos. Verifica e inténtalo de nuevo.","gm.pms.otp_disabled":"El OTP está deshabilitado para esta cuenta.","gm.pms.otp_not_found":"OTP no encontrado.","gm.pms.otp_not_verified_unauthorized":"La verificación del OTP falló. Por favor, inténtalo de nuevo.","gm.pms.password_already_exists":"Ya se ha establecido una contraseña para esta cuenta.","gm.pms.password_not_found":"Contraseña no encontrada.","gm.pms.password_not_verified_unauthorized":"Contraseña incorrecta. Por favor, inténtalo de nuevo.","gm.pms.password_not_verified_unauthorized_account_blocked":"Tu cuenta ha sido bloqueada por múltiples intentos fallidos de inicio de sesión.","gm.pms.password_policy_failed":"La contraseña no cumple con los requisitos de seguridad.","gm.pms.player_not_found":"Cuenta de jugador no encontrada.","gm.pms.player_personal_information_not_found":"Información personal no encontrada.","gm.pms.second_factor_not_verified_unauthorized":"La autenticación de dos factores falló. Por favor, inténtalo de nuevo.","gm.pms.session_not_found":"Sesión no encontrada.","gm.pms.token_not_found":"Token de autenticación no encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocurrió un error en la base de datos. Por favor, inténtalo más tarde.","gm.pms.unexpected_exception":"Ocurrió un error inesperado. Por favor, inténtalo más tarde.","gm.pms.SessionHasNoPermissions":"No tienes permiso para realizar esta acción.","gm.pms.incorrect_migration_player_data":"Datos de jugador inválidos proporcionados para la migración.","gm.pms.migration_config_tenant_id_missed":"El archivo de migración no contiene la columna TenantId.","gm.pms.migration_player_fetch_data_failed":"No se pudieron obtener los datos del jugador durante la migración.","gm.pms.migration_player_incorrect_data":"Faltan datos requeridos para la migración del jugador.","gm.pms.missing_hashing_data":"Falta configuración de hashing (salt/pepper).","gm.pms.session_is_missing":"Sesión faltante. Por favor, inicia sesión de nuevo.","gm.pms.session_invalid_or_expired":"Tu sesión no es válida o ha expirado. Por favor, inicia sesión de nuevo.","gm.pms.database_provider_not_configured":"La conexión a la base de datos no está configurada. Contacta al soporte."},es:{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé mi contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo de teléfono",password:"Contraseña",login:"Iniciar sesión",genericError:"Se ha producido un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",Unauthorized:"El número de cuenta, correo electrónico o contraseña es incorrecto",CountryRestricted:"No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"La verificación del captcha falló. Por favor, inténtalo de nuevo.","gm.pms.captcha_missing":"Por favor, completa el captcha.","gm.pms.configuration_exception":"Error de configuración del sistema. Contacta con el soporte.","gm.pms.contact_not_found":"Información de contacto no encontrada.","gm.pms.model_validation_failed":"Datos de la solicitud inválidos. Verifica e inténtalo de nuevo.","gm.pms.otp_disabled":"El OTP está deshabilitado para esta cuenta.","gm.pms.otp_not_found":"OTP no encontrado.","gm.pms.otp_not_verified_unauthorized":"La verificación del OTP falló. Por favor, inténtalo de nuevo.","gm.pms.password_already_exists":"Ya se ha establecido una contraseña para esta cuenta.","gm.pms.password_not_found":"Contraseña no encontrada.","gm.pms.password_not_verified_unauthorized":"Contraseña incorrecta. Por favor, inténtalo de nuevo.","gm.pms.password_not_verified_unauthorized_account_blocked":"Tu cuenta ha sido bloqueada por múltiples intentos fallidos de inicio de sesión.","gm.pms.password_policy_failed":"La contraseña no cumple con los requisitos de seguridad.","gm.pms.player_not_found":"Cuenta de jugador no encontrada.","gm.pms.player_personal_information_not_found":"Información personal no encontrada.","gm.pms.second_factor_not_verified_unauthorized":"La autenticación en dos pasos falló. Por favor, inténtalo de nuevo.","gm.pms.session_not_found":"Sesión no encontrada.","gm.pms.token_not_found":"Token de autenticación no encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocurrió un error en la base de datos. Por favor, inténtalo más tarde.","gm.pms.unexpected_exception":"Ocurrió un error inesperado. Por favor, inténtalo más tarde.","gm.pms.SessionHasNoPermissions":"No tienes permiso para realizar esta acción.","gm.pms.incorrect_migration_player_data":"Datos de jugador inválidos proporcionados para la migración.","gm.pms.migration_config_tenant_id_missed":"El archivo de migración no contiene la columna TenantId.","gm.pms.migration_player_fetch_data_failed":"No se pudieron obtener los datos del jugador durante la migración.","gm.pms.migration_player_incorrect_data":"Faltan datos requeridos para la migración del jugador.","gm.pms.missing_hashing_data":"Falta configuración de hashing (salt/pepper).","gm.pms.session_is_missing":"Sesión faltante. Por favor, inicia sesión de nuevo.","gm.pms.session_invalid_or_expired":"Tu sesión no es válida o ha expirado. Por favor, inicia sesión de nuevo.","gm.pms.database_provider_not_configured":"La conexión con la base de datos no está configurada. Contacta con el soporte."},pt:{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou email",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Entrar",genericError:"Ocorreu um erro inesperado",successMessage:"Login realizado com sucesso",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir a sua senha",Unauthorized:"O número da conta, e-mail ou senha está incorreto",CountryRestricted:"Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao procurar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_LOGIN_DENIED:"Login denied for current user",GmErr_NotFound:"Sorry, that username/email address and/or password has not been recognized.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.","gm.pms.captcha_bad_request":"A verificação do captcha falhou. Por favor, tente novamente.","gm.pms.captcha_missing":"Por favor, complete o captcha.","gm.pms.configuration_exception":"Erro de configuração do sistema. Contacte o suporte.","gm.pms.contact_not_found":"Informações de contacto não encontradas.","gm.pms.model_validation_failed":"Dados do pedido inválidos. Verifique e tente novamente.","gm.pms.otp_disabled":"O OTP está desativado para esta conta.","gm.pms.otp_not_found":"OTP não encontrado.","gm.pms.otp_not_verified_unauthorized":"A verificação do OTP falhou. Por favor, tente novamente.","gm.pms.password_already_exists":"Já foi definida uma palavra-passe para esta conta.","gm.pms.password_not_found":"Palavra-passe não encontrada.","gm.pms.password_not_verified_unauthorized":"Palavra-passe incorreta. Por favor, tente novamente.","gm.pms.password_not_verified_unauthorized_account_blocked":"A sua conta foi bloqueada devido a várias tentativas de início de sessão falhadas.","gm.pms.password_policy_failed":"A palavra-passe não cumpre os requisitos de segurança.","gm.pms.player_not_found":"Conta de jogador não encontrada.","gm.pms.player_personal_information_not_found":"Informações pessoais não encontradas.","gm.pms.second_factor_not_verified_unauthorized":"A autenticação de dois fatores falhou. Por favor, tente novamente.","gm.pms.session_not_found":"Sessão não encontrada.","gm.pms.token_not_found":"Token de autenticação não encontrado.","gm.pms.unexpected_db_exception_on_update":"Ocorreu um erro na base de dados. Por favor, tente mais tarde.","gm.pms.unexpected_exception":"Ocorreu um erro inesperado. Por favor, tente mais tarde.","gm.pms.SessionHasNoPermissions":"Não tem permissão para executar esta ação.","gm.pms.incorrect_migration_player_data":"Dados de jogador inválidos fornecidos para a migração.","gm.pms.migration_config_tenant_id_missed":"O ficheiro de migração não contém a coluna TenantId.","gm.pms.migration_player_fetch_data_failed":"Não foi possível obter os dados do jogador durante a migração.","gm.pms.migration_player_incorrect_data":"Faltam dados necessários para a migração do jogador.","gm.pms.missing_hashing_data":"Configuração de hashing em falta (salt/pepper).","gm.pms.session_is_missing":"Sessão em falta. Por favor, inicie sessão novamente.","gm.pms.session_invalid_or_expired":"A sua sessão é inválida ou expirou. Por favor, inicie sessão novamente.","gm.pms.database_provider_not_configured":"A ligação à base de dados não está configurada. Contacte o suporte."}},r=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{o[e]||(o[e]={});for(let i in t[e])o[e][i]=t[e][i]})),e(!0)}))})),n=(t,e,i)=>{let s=o[void 0!==e&&e in o?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},a=()=>{var t,e,i,s,o,r,n,a,l,h;const d=navigator.userAgent,c="ontouchstart"in window||navigator.maxTouchPoints>0,u=window.matchMedia("(max-width: 768px)").matches,m=c?u?"mobile":"tablet":"desktop",p=/Windows NT/.test(d)?"Windows":/Mac OS X/.test(d)?"macOS":/Android/.test(d)?"Android":/iPhone|iPad|iPod/.test(d)?"iOS":/Linux/.test(d)?"Linux":"",f=(null===(t=d.match(/Windows NT ([\d.]+)/))||void 0===t?void 0:t[1])||(null===(i=null===(e=d.match(/Mac OS X ([\d_]+)/))||void 0===e?void 0:e[1])||void 0===i?void 0:i.replace(/_/g,"."))||(null===(s=d.match(/Android ([\d.]+)/))||void 0===s?void 0:s[1])||(null===(r=null===(o=d.match(/OS ([\d_]+)/))||void 0===o?void 0:o[1])||void 0===r?void 0:r.replace(/_/g,"."))||"",[g,v]=/Edg\//.test(d)?["Edge",(null===(n=d.match(/Edg\/([\d.]+)/))||void 0===n?void 0:n[1])||""]:/Chrome\//.test(d)?["Chrome",(null===(a=d.match(/Chrome\/([\d.]+)/))||void 0===a?void 0:a[1])||""]:/Firefox\//.test(d)?["Firefox",(null===(l=d.match(/Firefox\/([\d.]+)/))||void 0===l?void 0:l[1])||""]:/Safari\//.test(d)?["Safari",(null===(h=d.match(/Version\/([\d.]+)/))||void 0===h?void 0:h[1])||""]:["",""];return{deviceType:m,os:p,osVersion:f,browser:g,browserVersion:v}};
2
2
  /**
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/
6
6
  */
7
- function a(t,e="24.5.10"){Object.defineProperty(t,"version",{get:()=>e});const i=customElements.get(t.is);if(i){const e=i.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}
7
+ function l(t,e="24.5.10"){Object.defineProperty(t,"version",{get:()=>e});const i=customElements.get(t.is);if(i){const e=i.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}
8
8
  /**
9
9
  * @license
10
10
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11
11
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12
- */class l extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}a(l);
12
+ */class h extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}l(h);
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2019 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- const h=globalThis,d=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),u=new WeakMap;class m{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const p=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new m(i,t,c)},f=(t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),s=h.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=i.cssText,t.appendChild(e)}},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new m("string"==typeof t?t:t+"",void 0,c))(e)})(t):t
18
+ const d=globalThis,c=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),m=new WeakMap;class p{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&m.set(e,t))}return t}toString(){return this.cssText}}const f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new p(i,t,u)},g=(t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),s=d.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=i.cssText,t.appendChild(e)}},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,u))(e)})(t):t
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */,{is:v,defineProperty:_,getOwnPropertyDescriptor:b,getOwnPropertyNames:y,getOwnPropertySymbols:w,getPrototypeOf:x}=Object,k=globalThis,P=k.trustedTypes,C=P?P.emptyScript:"",A=k.reactiveElementPolyfillSupport,z={toAttribute(t,e){switch(e){case Boolean:t=t?C:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},E=(t,e)=>!v(t,e),S={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class I extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&_(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=b(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const r=s?.call(this);o?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=x(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...y(t),...w(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:z).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:z;this._$Em=s;const r=o.fromAttribute(e,t.type);this[s]=r??this._$Ej?.get(s)??r,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const s=this.constructor,o=this[t];if(i??=s.getPropertyOptions(t),!((i.hasChanged??E)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}I.elementStyles=[],I.shadowRootOptions={mode:"open"},I.elementProperties=new Map,I.finalized=new Map,A?.({ReactiveElement:I}),(k.reactiveElementVersions??=[]).push("2.1.1");
23
+ */,{is:_,defineProperty:b,getOwnPropertyDescriptor:y,getOwnPropertyNames:w,getOwnPropertySymbols:x,getPrototypeOf:k}=Object,P=globalThis,C=P.trustedTypes,A=C?C.emptyScript:"",z=P.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?A:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>!_(t,e),I={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),P.litPropertyMetadata??=new WeakMap;class T extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=I){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&b(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=y(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const r=s?.call(this);o?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??I}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=k(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...w(t),...x(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return g(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=s;const r=o.fromAttribute(e,t.type);this[s]=r??this._$Ej?.get(s)??r,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const s=this.constructor,o=this[t];if(i??=s.getPropertyOptions(t),!((i.hasChanged??S)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T.elementProperties=new Map,T.finalized=new Map,z?.({ReactiveElement:T}),(P.reactiveElementVersions??=[]).push("2.1.1");
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
28
  */
29
- const T=globalThis,O=T.trustedTypes,N=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${Math.random().toFixed(9).slice(2)}$`,B="?"+F,M=`<${B}>`,L=document,D=()=>L.createComment(""),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,R="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,H=/>/g,W=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$=/'/g,Y=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Q=new WeakMap,X=L.createTreeWalker(L,129);function tt(t,e){if(!V(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==N?N.createHTML(e):e}const et=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=q;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===q?"!--"===l[1]?n=G:void 0!==l[1]?n=H:void 0!==l[2]?(K.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=W):void 0!==l[3]&&(n=W):n===W?">"===l[0]?(n=o??q,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?W:'"'===l[3]?Y:$):n===Y||n===$?n=W:n===G||n===H?n=q:(n=W,o=void 0);const c=n===W&&t[e+1].startsWith("/>")?" ":"";r+=n===q?i+M:h>=0?(s.push(a),i.slice(0,h)+j+i.slice(h)+F+c):i+F+(-2===h?e:c)}return[tt(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class it{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=et(t,e);if(this.el=it.createElement(l,i),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=X.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(j)){const e=h[r++],i=s.getAttribute(t).split(F),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?at:"?"===n[1]?lt:"@"===n[1]?ht:nt}),s.removeAttribute(t)}else t.startsWith(F)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(K.test(s.tagName)){const t=s.textContent.split(F),e=t.length-1;if(e>0){s.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],D()),X.nextNode(),a.push({type:2,index:++o});s.append(t[e],D())}}}else if(8===s.nodeType)if(s.data===B)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(F,t+1));)a.push({type:7,index:o}),t+=F.length-1}o++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function st(t,e,i=t,s){if(e===Z)return e;let o=void 0!==s?i._$Co?.[s]:i._$Cl;const r=U(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=o:i._$Cl=o),void 0!==o&&(e=st(t,o._$AS(t,e.values),o,s)),e}class ot{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??L).importNode(e,!0);X.currentNode=s;let o=X.nextNode(),r=0,n=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new rt(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new dt(o,this,t)),this._$AV.push(e),a=i[++n]}r!==a?.index&&(o=X.nextNode(),r++)}return X.currentNode=L,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class rt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=st(this,t,e),U(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==Z&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>V(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==J&&U(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=it.createElement(tt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new ot(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}k(t){V(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new rt(this.O(D()),this.O(D()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class nt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=st(this,t,e,0),r=!U(t)||t!==this._$AH&&t!==Z,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=st(this,s[i+n],e,n),a===Z&&(a=this._$AH[n]),r||=!U(a)||a!==this._$AH[n],a===J?t=J:t!==J&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class at extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}class lt extends nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}}class ht extends nt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=st(this,t,e,0)??J)===Z)return;const i=this._$AH,s=t===J&&i!==J||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==J&&(i===J||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class dt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){st(this,t)}}const ct=T.litHtmlPolyfillSupport;ct?.(it,rt),(T.litHtmlVersions??=[]).push("3.3.1");const ut=globalThis;
29
+ const O=globalThis,N=O.trustedTypes,j=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,M="?"+B,L=`<${M}>`,D=document,U=()=>D.createComment(""),V=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,q="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,W=/>/g,$=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,J=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),X=new WeakMap,tt=D.createTreeWalker(D,129);function et(t,e){if(!R(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(e):e}const it=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=G;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===G?"!--"===l[1]?n=H:void 0!==l[1]?n=W:void 0!==l[2]?(Z.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=$):void 0!==l[3]&&(n=$):n===$?">"===l[0]?(n=o??G,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?$:'"'===l[3]?K:Y):n===K||n===Y?n=$:n===H||n===W?n=G:(n=$,o=void 0);const c=n===$&&t[e+1].startsWith("/>")?" ":"";r+=n===G?i+L:h>=0?(s.push(a),i.slice(0,h)+F+i.slice(h)+B+c):i+B+(-2===h?e:c)}return[et(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class st{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=it(t,e);if(this.el=st.createElement(l,i),tt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=tt.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(F)){const e=h[r++],i=s.getAttribute(t).split(B),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?lt:"?"===n[1]?ht:"@"===n[1]?dt:at}),s.removeAttribute(t)}else t.startsWith(B)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(Z.test(s.tagName)){const t=s.textContent.split(B),e=t.length-1;if(e>0){s.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],U()),tt.nextNode(),a.push({type:2,index:++o});s.append(t[e],U())}}}else if(8===s.nodeType)if(s.data===M)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(B,t+1));)a.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,s){if(e===J)return e;let o=void 0!==s?i._$Co?.[s]:i._$Cl;const r=V(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=o:i._$Cl=o),void 0!==o&&(e=ot(t,o._$AS(t,e.values),o,s)),e}class rt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??D).importNode(e,!0);tt.currentNode=s;let o=tt.nextNode(),r=0,n=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new nt(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new ct(o,this,t)),this._$AV.push(e),a=i[++n]}r!==a?.index&&(o=tt.nextNode(),r++)}return tt.currentNode=D,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),V(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>R(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Q&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=st.createElement(et(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new rt(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new st(t)),e}k(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new nt(this.O(U()),this.O(U()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class at{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=ot(this,t,e,0),r=!V(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ot(this,s[i+n],e,n),a===J&&(a=this._$AH[n]),r||=!V(a)||a!==this._$AH[n],a===Q?t=Q:t!==Q&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}}class ht extends at{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}}class dt extends at{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=ot(this,t,e,0)??Q)===J)return;const i=this._$AH,s=t===Q&&i!==Q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==Q&&(i===Q||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const ut=O.litHtmlPolyfillSupport;ut?.(st,nt),(O.litHtmlVersions??=[]).push("3.3.1");const mt=globalThis;
30
30
  /**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */class mt extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const s=i?.renderBefore??e;let o=s._$litPart$;if(void 0===o){const t=i?.renderBefore??null;s._$litPart$=o=new rt(e.insertBefore(D(),t),t,void 0,i??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}}mt._$litElement$=!0,mt.finalized=!0,ut.litElementHydrateSupport?.({LitElement:mt});const pt=ut.litElementPolyfillSupport;pt?.({LitElement:mt}),(ut.litElementVersions??=[]).push("4.2.1");
34
+ */class pt extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const s=i?.renderBefore??e;let o=s._$litPart$;if(void 0===o){const t=i?.renderBefore??null;s._$litPart$=o=new nt(e.insertBefore(U(),t),t,void 0,i??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}}pt._$litElement$=!0,pt.finalized=!0,mt.litElementHydrateSupport?.({LitElement:pt});const ft=mt.litElementPolyfillSupport;ft?.({LitElement:pt}),(mt.litElementVersions??=[]).push("4.2.1");
35
35
  /**
36
36
  * @license
37
37
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
38
38
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
39
39
  */
40
- const ft=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"theme"===t&&this._set_theme(i)}}
40
+ const gt=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"theme"===t&&this._set_theme(i)}}
41
41
  /**
42
42
  * @license
43
43
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
44
44
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
45
- */,gt=[],vt=new Set,_t=new Set;function bt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function yt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function wt(t){return t.map((t=>t.cssText)).join("\n")}const xt="vaadin-themable-mixin-style";function kt(t){t.prototype instanceof mt?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(xt).textContent=wt(t.getStylesForThis()),_t.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&kt(i)}))}function Pt(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof m||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):gt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&_t.forEach((i=>{if(yt(t,i)&&function(t){return bt(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),kt(t),function(t){vt.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof mt?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),f(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(xt).textContent=e.prototype._template.content.getElementById(xt).textContent}(i):i||vt.delete(e)}))}(t)}}))}function Ct(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():gt}function At(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function zt(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Ct().find((e=>e.moduleId===t));i?e.push(...zt(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function Et(t){const e=`${t}-default-theme`,i=Ct().filter((i=>i.moduleId!==e&&yt(i.themeFor,t))).map((t=>({...t,styles:[...zt(t),...t.styles],includePriority:At(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Ct().filter((t=>t.moduleId===e))}const St=t=>class extends(ft(t)){constructor(){super(),vt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&_t.add(this.is),this.elementStyles)return;const t=this.prototype._template;t&&!bt(this)&&function(t,e){const i=document.createElement("style");i.id=xt,i.textContent=wt(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...Et(this.is)];const s=this.__themes.flatMap((t=>t.styles));return s.filter(((t,e)=>e===s.lastIndexOf(t)))}}
45
+ */,vt=[],_t=new Set,bt=new Set;function yt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function wt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function xt(t){return t.map((t=>t.cssText)).join("\n")}const kt="vaadin-themable-mixin-style";function Pt(t){t.prototype instanceof pt?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(kt).textContent=xt(t.getStylesForThis()),bt.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&Pt(i)}))}function Ct(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof p||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):vt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&bt.forEach((i=>{if(wt(t,i)&&function(t){return yt(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),Pt(t),function(t){_t.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof pt?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),g(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(kt).textContent=e.prototype._template.content.getElementById(kt).textContent}(i):i||_t.delete(e)}))}(t)}}))}function At(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():vt}function zt(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Et(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=At().find((e=>e.moduleId===t));i?e.push(...Et(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function St(t){const e=`${t}-default-theme`,i=At().filter((i=>i.moduleId!==e&&wt(i.themeFor,t))).map((t=>({...t,styles:[...Et(t),...t.styles],includePriority:zt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:At().filter((t=>t.moduleId===e))}const It=t=>class extends(gt(t)){constructor(){super(),_t.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&bt.add(this.is),this.elementStyles)return;const t=this.prototype._template;t&&!yt(this)&&function(t,e){const i=document.createElement("style");i.id=kt,i.textContent=xt(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...St(this.is)];const s=this.__themes.flatMap((t=>t.styles));return s.filter(((t,e)=>e===s.lastIndexOf(t)))}}
46
46
  /**
47
47
  * @license
48
48
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
49
49
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
50
- */,It=(t,...e)=>{((t,...e)=>{const i=document.createElement("style");i.id=t,i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`lumo-${t}`,e)};It("color-props",p`
50
+ */,Tt=(t,...e)=>{((t,...e)=>{const i=document.createElement("style");i.id=t,i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`lumo-${t}`,e)};Tt("color-props",f`
51
51
  :host {
52
52
  /* Base (background) */
53
53
  --lumo-base-color: #fff;
@@ -132,7 +132,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
132
132
  --lumo-disabled-text-color: GrayText;
133
133
  }
134
134
  }
135
- `),Pt("",p`
135
+ `),Ct("",f`
136
136
  [theme~='dark'] {
137
137
  /* Base (background) */
138
138
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -250,7 +250,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
250
250
  pre code {
251
251
  background: transparent;
252
252
  }
253
- `,{moduleId:"lumo-color"}),It("spacing-props",p`
253
+ `,{moduleId:"lumo-color"}),Tt("spacing-props",f`
254
254
  :host {
255
255
  /* Square */
256
256
  --lumo-space-xs: 0.25rem;
@@ -273,7 +273,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
273
273
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
274
274
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
275
275
  }
276
- `),p`
276
+ `),f`
277
277
  html {
278
278
  /* Button */
279
279
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -356,7 +356,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
356
356
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
357
357
  --vaadin-input-field-value-font-weight: 500;
358
358
  }
359
- `,It("style-props",p`
359
+ `,Tt("style-props",f`
360
360
  :host {
361
361
  /* Border radius */
362
362
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -373,7 +373,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
373
373
  /* Clickable element cursor */
374
374
  --lumo-clickable-cursor: default;
375
375
  }
376
- `),It("font-icons",p`
376
+ `),Tt("font-icons",f`
377
377
  @font-face {
378
378
  font-family: 'lumo-icons';
379
379
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -426,7 +426,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
426
426
  --lumo-icons-upload: '\\ea29';
427
427
  --lumo-icons-user: '\\ea2a';
428
428
  }
429
- `),It("sizing-props",p`
429
+ `),Tt("sizing-props",f`
430
430
  :host {
431
431
  --lumo-size-xs: 1.625rem;
432
432
  --lumo-size-s: 1.875rem;
@@ -447,7 +447,7 @@ const ft=t=>class extends t{static get properties(){return{_theme:{type:String,r
447
447
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
448
448
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
449
449
  */
450
- const Tt=p`
450
+ const Ot=f`
451
451
  :host {
452
452
  /* prettier-ignore */
453
453
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -467,7 +467,7 @@ const Tt=p`
467
467
  --lumo-line-height-s: 1.375;
468
468
  --lumo-line-height-m: 1.625;
469
469
  }
470
- `;Pt("",p`
470
+ `;Ct("",f`
471
471
  body,
472
472
  :host {
473
473
  font-family: var(--lumo-font-family);
@@ -559,7 +559,7 @@ const Tt=p`
559
559
  border-left: none;
560
560
  border-right: 2px solid var(--lumo-contrast-30pct);
561
561
  }
562
- `,{moduleId:"lumo-typography"}),It("typography-props",Tt);const Ot=p`
562
+ `,{moduleId:"lumo-typography"}),Tt("typography-props",Ot);const Nt=f`
563
563
  :host {
564
564
  display: flex;
565
565
  align-items: center;
@@ -643,7 +643,7 @@ const Tt=p`
643
643
  width: var(--lumo-icon-size-m);
644
644
  height: var(--lumo-icon-size-m);
645
645
  }
646
- `;Pt("vaadin-item",Ot,{moduleId:"lumo-item"}),Pt("vaadin-combo-box-item",[Ot,p`
646
+ `;Ct("vaadin-item",Nt,{moduleId:"lumo-item"}),Ct("vaadin-combo-box-item",[Nt,f`
647
647
  :host {
648
648
  transition: background-color 100ms;
649
649
  overflow: hidden;
@@ -661,7 +661,7 @@ const Tt=p`
661
661
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
662
662
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
663
663
  */
664
- const Nt=p`
664
+ const jt=f`
665
665
  [part~='loader'] {
666
666
  box-sizing: border-box;
667
667
  width: var(--lumo-icon-size-s);
@@ -708,7 +708,7 @@ const Nt=p`
708
708
  * @license
709
709
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
710
710
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
711
- */,jt=p`
711
+ */,Ft=f`
712
712
  :host {
713
713
  top: var(--lumo-space-m);
714
714
  right: var(--lumo-space-m);
@@ -773,13 +773,13 @@ const Nt=p`
773
773
  opacity: 1;
774
774
  }
775
775
  }
776
- `;Pt("",jt,{moduleId:"lumo-overlay"});
776
+ `;Ct("",Ft,{moduleId:"lumo-overlay"});
777
777
  /**
778
778
  * @license
779
779
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
780
780
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
781
781
  */
782
- const Ft=p`
782
+ const Bt=f`
783
783
  :host([opening]),
784
784
  :host([closing]) {
785
785
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -809,7 +809,7 @@ const Ft=p`
809
809
  opacity: 0;
810
810
  }
811
811
  }
812
- `;Pt("",Ft,{moduleId:"lumo-menu-overlay-core"}),Pt("",[jt,Ft,p`
812
+ `;Ct("",Bt,{moduleId:"lumo-menu-overlay-core"}),Ct("",[Ft,Bt,f`
813
813
  /* Small viewport (bottom sheet) styles */
814
814
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
815
815
  @media (max-width: 450px), (max-height: 450px) {
@@ -871,7 +871,7 @@ const Ft=p`
871
871
  transform: translateY(150%);
872
872
  }
873
873
  }
874
- `],{moduleId:"lumo-menu-overlay"}),Pt("vaadin-combo-box-overlay",[jt,Ft,p`
874
+ `],{moduleId:"lumo-menu-overlay"}),Ct("vaadin-combo-box-overlay",[Ft,Bt,f`
875
875
  [part='content'] {
876
876
  padding: 0;
877
877
  }
@@ -892,7 +892,7 @@ const Ft=p`
892
892
  :host([bottom-aligned]) [part~='overlay'] {
893
893
  margin-bottom: var(--lumo-space-xs);
894
894
  }
895
- `,Nt,p`
895
+ `,jt,f`
896
896
  [part~='loader'] {
897
897
  position: absolute;
898
898
  z-index: 1;
@@ -900,12 +900,12 @@ const Ft=p`
900
900
  top: var(--lumo-space-s);
901
901
  margin-inline: auto 0;
902
902
  }
903
- `,p`
903
+ `,f`
904
904
  :host {
905
905
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
906
906
  --_vaadin-combo-box-items-container-border-style: solid;
907
907
  }
908
- `],{moduleId:"lumo-combo-box-overlay"}),Pt("vaadin-input-container",p`
908
+ `],{moduleId:"lumo-combo-box-overlay"}),Ct("vaadin-input-container",f`
909
909
  :host {
910
910
  background: var(--_background);
911
911
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -1089,7 +1089,7 @@ const Ft=p`
1089
1089
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1090
1090
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1091
1091
  */
1092
- const Bt=p`
1092
+ const Mt=f`
1093
1093
  [part$='button'] {
1094
1094
  flex: none;
1095
1095
  width: 1em;
@@ -1116,13 +1116,13 @@ const Bt=p`
1116
1116
  font-family: 'lumo-icons';
1117
1117
  display: block;
1118
1118
  }
1119
- `;Pt("",Bt,{moduleId:"lumo-field-button"});
1119
+ `;Ct("",Mt,{moduleId:"lumo-field-button"});
1120
1120
  /**
1121
1121
  * @license
1122
1122
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1123
1123
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1124
1124
  */
1125
- const Mt=p`
1125
+ const Lt=f`
1126
1126
  :host {
1127
1127
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1128
1128
  }
@@ -1183,7 +1183,7 @@ const Mt=p`
1183
1183
  * @license
1184
1184
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1185
1185
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1186
- */,Lt=p`
1186
+ */,Dt=f`
1187
1187
  [part='label'] {
1188
1188
  align-self: flex-start;
1189
1189
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1295,13 +1295,13 @@ const Mt=p`
1295
1295
  margin-left: 0;
1296
1296
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1297
1297
  }
1298
- `;Pt("",Lt,{moduleId:"lumo-required-field"});
1298
+ `;Ct("",Dt,{moduleId:"lumo-required-field"});
1299
1299
  /**
1300
1300
  * @license
1301
1301
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1302
1302
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1303
1303
  */
1304
- const Dt=[Lt,Bt,Mt,p`
1304
+ const Ut=[Dt,Mt,Lt,f`
1305
1305
  :host {
1306
1306
  --lumo-text-field-size: var(--lumo-size-m);
1307
1307
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1432,7 +1432,7 @@ const Dt=[Lt,Bt,Mt,p`
1432
1432
  [part='clear-button']::before {
1433
1433
  content: var(--lumo-icons-cross);
1434
1434
  }
1435
- `];Pt("",Dt,{moduleId:"lumo-input-field-shared-styles"}),Pt("vaadin-combo-box",[Dt,p`
1435
+ `];Ct("",Ut,{moduleId:"lumo-input-field-shared-styles"}),Ct("vaadin-combo-box",[Ut,f`
1436
1436
  [part='toggle-button']::before {
1437
1437
  content: var(--lumo-icons-dropdown);
1438
1438
  }
@@ -1456,7 +1456,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
1456
1456
  Code distributed by Google as part of the polymer project is also
1457
1457
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1458
1458
  */
1459
- let Ut,Vt,Rt=/(url\()([^)]*)(\))/g,qt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Gt(t,e){if(t&&qt.test(t))return t;if("//"===t)return t;if(void 0===Ut){Ut=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ut="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ut)try{return new URL(t,e).href}catch(e){return t}return Vt||(Vt=document.implementation.createHTMLDocument("temp"),Vt.base=Vt.createElement("base"),Vt.head.appendChild(Vt.base),Vt.anchor=Vt.createElement("a"),Vt.body.appendChild(Vt.anchor)),Vt.base.href=e,Vt.anchor.href=t,Vt.anchor.href||t}function Ht(t,e){return t.replace(Rt,(function(t,i,s,o){return i+"'"+Gt(s.replace(/["']/g,""),e)+"'"+o}))}function Wt(t){return t.substring(0,t.lastIndexOf("/")+1)}
1459
+ let Vt,Rt,qt=/(url\()([^)]*)(\))/g,Gt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Ht(t,e){if(t&&Gt.test(t))return t;if("//"===t)return t;if(void 0===Vt){Vt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Vt="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),Vt)try{return new URL(t,e).href}catch(e){return t}return Rt||(Rt=document.implementation.createHTMLDocument("temp"),Rt.base=Rt.createElement("base"),Rt.head.appendChild(Rt.base),Rt.anchor=Rt.createElement("a"),Rt.body.appendChild(Rt.anchor)),Rt.base.href=e,Rt.anchor.href=t,Rt.anchor.href||t}function Wt(t,e){return t.replace(qt,(function(t,i,s,o){return i+"'"+Ht(s.replace(/["']/g,""),e)+"'"+o}))}function $t(t){return t.substring(0,t.lastIndexOf("/")+1)}
1460
1460
  /**
1461
1461
  @license
1462
1462
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1465,7 +1465,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1465
1465
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1466
1466
  Code distributed by Google as part of the polymer project is also
1467
1467
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1468
- */const $t=(!window.ShadyDOM||!window.ShadyDOM.inUse)&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Yt=window.Polymer&&window.Polymer.rootPath||Wt(document.baseURI||window.location.href),Kt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Zt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Jt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Qt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xt=window.Polymer&&window.Polymer.legacyWarnings||!1,te=window.Polymer&&window.Polymer.syncInitialRender||!1,ee=window.Polymer&&window.Polymer.legacyUndefined||!1,ie=window.Polymer&&window.Polymer.orderedComputed||!1,se=window.Polymer&&window.Polymer.removeNestedTemplates||!1,oe=window.Polymer&&window.Polymer.fastDomIf||!1,re=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,ne=0;const ae=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=ne++;return function(s){let o=s.__mixinSet;if(o&&o[i])return s;let r=e,n=r.get(s);if(!n){n=t(s),r.set(s,n);let e=Object.create(n.__mixinSet||o||null);e[i]=!0,n.__mixinSet=e}return n}};
1468
+ */const Yt=(!window.ShadyDOM||!window.ShadyDOM.inUse)&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Kt=window.Polymer&&window.Polymer.rootPath||$t(document.baseURI||window.location.href),Zt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Jt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Qt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xt=window.Polymer&&window.Polymer.legacyOptimizations||!1,te=window.Polymer&&window.Polymer.legacyWarnings||!1,ee=window.Polymer&&window.Polymer.syncInitialRender||!1,ie=window.Polymer&&window.Polymer.legacyUndefined||!1,se=window.Polymer&&window.Polymer.orderedComputed||!1,oe=window.Polymer&&window.Polymer.removeNestedTemplates||!1,re=window.Polymer&&window.Polymer.fastDomIf||!1,ne=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,ae=0;const le=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=ae++;return function(s){let o=s.__mixinSet;if(o&&o[i])return s;let r=e,n=r.get(s);if(!n){n=t(s),r.set(s,n);let e=Object.create(n.__mixinSet||o||null);e[i]=!0,n.__mixinSet=e}return n}};
1469
1469
  /**
1470
1470
  @license
1471
1471
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1474,7 +1474,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1474
1474
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1475
1475
  Code distributed by Google as part of the polymer project is also
1476
1476
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1477
- */let le={},he={};function de(t,e){le[t]=he[t.toLowerCase()]=e}function ce(t){return le[t]||he[t.toLowerCase()]}class ue extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ce(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Gt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Wt(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Zt&&void 0!==ce(t))throw de(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,de(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}ue.prototype.modules=le,customElements.define("dom-module",ue);
1477
+ */let he={},de={};function ce(t,e){he[t]=de[t.toLowerCase()]=e}function ue(t){return he[t]||de[t.toLowerCase()]}class me extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ue(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ht(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=$t(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Jt&&void 0!==ue(t))throw ce(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,ce(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}me.prototype.modules=he,customElements.define("dom-module",me);
1478
1478
  /**
1479
1479
  @license
1480
1480
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1484,7 +1484,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
1484
1484
  Code distributed by Google as part of the polymer project is also
1485
1485
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1486
1486
  */
1487
- const me="link[rel=import][type~=css]",pe="include",fe="shady-unscoped";function ge(t){return ue.import(t)}function ve(t){const e=Ht((t.body?t.body:t).textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function _e(t){const e=t.trim().split(/\s+/),i=[];for(let t=0;t<e.length;t++)i.push(...be(e[t]));return i}function be(t){const e=ge(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...we(e));const i=e.querySelector("template");i&&t.push(...ye(i,e.assetpath)),e._styles=t}return e._styles}function ye(t,e){if(!t._styles){const i=[],s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let o=s[t],r=o.getAttribute(pe);r&&i.push(..._e(r).filter((function(t,e,i){return i.indexOf(t)===e}))),e&&(o.textContent=Ht(o.textContent,e)),i.push(o)}t._styles=i}return t._styles}function we(t){const e=[],i=t.querySelectorAll(me);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import,i=s.hasAttribute(fe);if(i&&!t._unscopedStyle){const e=ve(t);e.setAttribute(fe,""),t._unscopedStyle=e}else t._style||(t._style=ve(t));e.push(i?t._unscopedStyle:t._style)}}return e}
1487
+ const pe="link[rel=import][type~=css]",fe="include",ge="shady-unscoped";function ve(t){return me.import(t)}function _e(t){const e=Wt((t.body?t.body:t).textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function be(t){const e=t.trim().split(/\s+/),i=[];for(let t=0;t<e.length;t++)i.push(...ye(e[t]));return i}function ye(t){const e=ve(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...xe(e));const i=e.querySelector("template");i&&t.push(...we(i,e.assetpath)),e._styles=t}return e._styles}function we(t,e){if(!t._styles){const i=[],s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let o=s[t],r=o.getAttribute(fe);r&&i.push(...be(r).filter((function(t,e,i){return i.indexOf(t)===e}))),e&&(o.textContent=Wt(o.textContent,e)),i.push(o)}t._styles=i}return t._styles}function xe(t){const e=[],i=t.querySelectorAll(pe);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import,i=s.hasAttribute(ge);if(i&&!t._unscopedStyle){const e=_e(t);e.setAttribute(ge,""),t._unscopedStyle=e}else t._style||(t._style=_e(t));e.push(i?t._unscopedStyle:t._style)}}return e}
1488
1488
  /**
1489
1489
  @license
1490
1490
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1493,7 +1493,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1493
1493
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1494
1494
  Code distributed by Google as part of the polymer project is also
1495
1495
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1496
- */const xe=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
1496
+ */const ke=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
1497
1497
  /**
1498
1498
  @license
1499
1499
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1502,7 +1502,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1502
1502
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1503
1503
  Code distributed by Google as part of the polymer project is also
1504
1504
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1505
- */function ke(t){return t.indexOf(".")>=0}function Pe(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Ce(t,e){return 0===e.indexOf(t+".")}function Ae(t,e,i){return e+i.slice(t.length)}function ze(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function Ee(t){return Array.isArray(t)?ze(t).split("."):t.toString().split(".")}function Se(t,e,i){let s=t,o=Ee(e);for(let t=0;t<o.length;t++){if(!s)return;s=s[o[t]]}return i&&(i.path=o.join(".")),s}function Ie(t,e,i){let s=t,o=Ee(e),r=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++)if(s=s[o[t]],!s)return;s[r]=i}else s[e]=i;return o.join(".")}
1505
+ */function Pe(t){return t.indexOf(".")>=0}function Ce(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Ae(t,e){return 0===e.indexOf(t+".")}function ze(t,e,i){return e+i.slice(t.length)}function Ee(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function Se(t){return Array.isArray(t)?Ee(t).split("."):t.toString().split(".")}function Ie(t,e,i){let s=t,o=Se(e);for(let t=0;t<o.length;t++){if(!s)return;s=s[o[t]]}return i&&(i.path=o.join(".")),s}function Te(t,e,i){let s=t,o=Se(e),r=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++)if(s=s[o[t]],!s)return;s[r]=i}else s[e]=i;return o.join(".")}
1506
1506
  /**
1507
1507
  @license
1508
1508
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1511,7 +1511,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1511
1511
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1512
1512
  Code distributed by Google as part of the polymer project is also
1513
1513
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1514
- */const Te={},Oe=/-[a-z]/g,Ne=/([A-Z])/g;function je(t){return Te[t]||(Te[t]=t.indexOf("-")<0?t:t.replace(Oe,(t=>t[1].toUpperCase())))}function Fe(t){return Te[t]||(Te[t]=t.replace(Ne,"-$1").toLowerCase())}
1514
+ */const Oe={},Ne=/-[a-z]/g,je=/([A-Z])/g;function Fe(t){return Oe[t]||(Oe[t]=t.indexOf("-")<0?t:t.replace(Ne,(t=>t[1].toUpperCase())))}function Be(t){return Oe[t]||(Oe[t]=t.replace(je,"-$1").toLowerCase())}
1515
1515
  /**
1516
1516
  @license
1517
1517
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1520,7 +1520,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1520
1520
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1521
1521
  Code distributed by Google as part of the polymer project is also
1522
1522
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1523
- */let Be=0,Me=0,Le=[],De=0,Ue=!1,Ve=document.createTextNode("");new window.MutationObserver((function(){Ue=!1;const t=Le.length;for(let e=0;e<t;e++){let t=Le[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Le.splice(0,t),Me+=t})).observe(Ve,{characterData:!0});const Re={run:t=>(Ue||(Ue=!0,Ve.textContent=De++),Le.push(t),Be++),cancel(t){const e=t-Me;if(e>=0){if(!Le[e])throw new Error("invalid async handle: "+t);Le[e]=null}}},qe=ae((t=>class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t],o=this._shouldPropertyChange(t,e,s);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=s),this.__data[t]=e,this.__dataPending[t]=e),o}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Re.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i)),this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,s){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,s)}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes,o=s&&s[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=!0,this._valueToNodeAttribute(this,i=arguments.length<3?this[t]:i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);"class"!==i&&"name"!==i&&"slot"!==i||(t=xe(t)),void 0===s?t.removeAttribute(i):t.setAttribute(i,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),Ge={};
1523
+ */let Me=0,Le=0,De=[],Ue=0,Ve=!1,Re=document.createTextNode("");new window.MutationObserver((function(){Ve=!1;const t=De.length;for(let e=0;e<t;e++){let t=De[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}De.splice(0,t),Le+=t})).observe(Re,{characterData:!0});const qe={run:t=>(Ve||(Ve=!0,Re.textContent=Ue++),De.push(t),Me++),cancel(t){const e=t-Le;if(e>=0){if(!De[e])throw new Error("invalid async handle: "+t);De[e]=null}}},Ge=le((t=>class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t],o=this._shouldPropertyChange(t,e,s);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=s),this.__data[t]=e,this.__dataPending[t]=e),o}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,qe.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i)),this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,s){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,s)}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes,o=s&&s[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=!0,this._valueToNodeAttribute(this,i=arguments.length<3?this[t]:i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);"class"!==i&&"name"!==i&&"slot"!==i||(t=ke(t)),void 0===s?t.removeAttribute(i):t.setAttribute(i,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),He={};
1524
1524
  /**
1525
1525
  @license
1526
1526
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1529,7 +1529,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1529
1529
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1530
1530
  Code distributed by Google as part of the polymer project is also
1531
1531
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1532
- */let He=HTMLElement.prototype;for(;He;){let t=Object.getOwnPropertyNames(He);for(let e=0;e<t.length;e++)Ge[t[e]]=!0;He=Object.getPrototypeOf(He)}const We=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,$e=ae((t=>{const e=qe(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(je(t[e]))}static attributeNameForProperty(t){return Fe(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(We(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){!function(t,e){if(!Ge[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Ye={"dom-if":!0,"dom-repeat":!0};let Ke=!1,Ze=!1;const Je=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const o=i.getAttribute(s);t&&s.startsWith("on-")?e.setAttribute(s,t.createScript(o,s)):e.setAttribute(s,o)}})();function Qe(t){let e=t.getAttribute("is");if(e&&Ye[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];Je(t,i,e),i.removeAttribute(e)}}return t}function Xe(t,e){let i=e.parentInfo&&Xe(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,s=0;t;t=t.nextSibling)if(e.parentIndex===s++)return t}function ti(t,e,i,s){s.id&&(e[s.id]=i)}function ei(t,e,i){if(i.events&&i.events.length)for(let s,o=0,r=i.events;o<r.length&&(s=r[o]);o++)t._addMethodEventListenerToNode(e,s.name,s.value,t)}function ii(t,e,i,s){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=s)}const si=ae((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(e),i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=!1,o=t;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(e.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(o,e,i)||s,function(t){(function(){if(!Ke){Ke=!0;const t=document.createElement("textarea");t.placeholder="a",Ze=t.placeholder===t.textContent}return Ze})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(o),o.firstChild&&this._parseTemplateChildNodes(o,e,i),o.hasAttributes&&o.hasAttributes()&&(s=this._parseTemplateNodeAttributes(o,e,i)||s),s||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let s,o=t.firstChild,r=0;o;o=s){if("template"==o.localName&&(o=Qe(o)),s=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=s;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,s=i.nextSibling,t.removeChild(i),i=s;if(e.stripWhiteSpace&&!o.textContent.trim()){t.removeChild(o);continue}}let n={parentIndex:r,parentInfo:i};this._parseTemplateNode(o,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),o.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,i){let s=t,o=this._parseTemplate(s,e);return(o.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(t,e,i){let s=!1,o=Array.from(t.attributes);for(let r,n=o.length-1;r=o[n];n--)s=this._parseTemplateNodeAttribute(t,e,i,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(t,e,i,s,o){return"on-"===s.slice(0,3)?(t.removeAttribute(s),i.events=i.events||[],i.events.push({name:s.slice(3),value:o}),!0):"id"===s&&(i.id=o,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,s=document.importNode(e.content||t.content,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let o=s.nodeList=new Array(i.length);s.$={};for(let t,r=0,n=i.length;r<n&&(t=i[r]);r++){let i=o[r]=Xe(s,t);ti(0,s.$,i,t),ii(0,i,t,e),ei(this,i,t)}return s}_addMethodEventListenerToNode(t,e,i,s){let o=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(s=s||t,0,i);return this._addEventListenerToNode(t,e,o),o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
1532
+ */let We=HTMLElement.prototype;for(;We;){let t=Object.getOwnPropertyNames(We);for(let e=0;e<t.length;e++)He[t[e]]=!0;We=Object.getPrototypeOf(We)}const $e=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,Ye=le((t=>{const e=Ge(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Fe(t[e]))}static attributeNameForProperty(t){return Be(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if($e(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){!function(t,e){if(!He[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Ke={"dom-if":!0,"dom-repeat":!0};let Ze=!1,Je=!1;const Qe=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const o=i.getAttribute(s);t&&s.startsWith("on-")?e.setAttribute(s,t.createScript(o,s)):e.setAttribute(s,o)}})();function Xe(t){let e=t.getAttribute("is");if(e&&Ke[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];Qe(t,i,e),i.removeAttribute(e)}}return t}function ti(t,e){let i=e.parentInfo&&ti(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,s=0;t;t=t.nextSibling)if(e.parentIndex===s++)return t}function ei(t,e,i,s){s.id&&(e[s.id]=i)}function ii(t,e,i){if(i.events&&i.events.length)for(let s,o=0,r=i.events;o<r.length&&(s=r[o]);o++)t._addMethodEventListenerToNode(e,s.name,s.value,t)}function si(t,e,i,s){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=s)}const oi=le((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(e),i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=!1,o=t;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(e.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(o,e,i)||s,function(t){(function(){if(!Ze){Ze=!0;const t=document.createElement("textarea");t.placeholder="a",Je=t.placeholder===t.textContent}return Je})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(o),o.firstChild&&this._parseTemplateChildNodes(o,e,i),o.hasAttributes&&o.hasAttributes()&&(s=this._parseTemplateNodeAttributes(o,e,i)||s),s||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let s,o=t.firstChild,r=0;o;o=s){if("template"==o.localName&&(o=Xe(o)),s=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=s;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,s=i.nextSibling,t.removeChild(i),i=s;if(e.stripWhiteSpace&&!o.textContent.trim()){t.removeChild(o);continue}}let n={parentIndex:r,parentInfo:i};this._parseTemplateNode(o,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),o.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,i){let s=t,o=this._parseTemplate(s,e);return(o.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(t,e,i){let s=!1,o=Array.from(t.attributes);for(let r,n=o.length-1;r=o[n];n--)s=this._parseTemplateNodeAttribute(t,e,i,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(t,e,i,s,o){return"on-"===s.slice(0,3)?(t.removeAttribute(s),i.events=i.events||[],i.events.push({name:s.slice(3),value:o}),!0):"id"===s&&(i.id=o,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,s=document.importNode(e.content||t.content,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let o=s.nodeList=new Array(i.length);s.$={};for(let t,r=0,n=i.length;r<n&&(t=i[r]);r++){let i=o[r]=ti(s,t);ei(0,s.$,i,t),si(0,i,t,e),ii(this,i,t)}return s}_addMethodEventListenerToNode(t,e,i,s){let o=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(s=s||t,0,i);return this._addEventListenerToNode(t,e,o),o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
1533
1533
  /**
1534
1534
  * @fileoverview
1535
1535
  * @suppress {checkPrototypalTypes}
@@ -1540,7 +1540,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1540
1540
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1541
1541
  * Google as part of the polymer project is also subject to an additional IP
1542
1542
  * rights grant found at http://polymer.github.io/PATENTS.txt
1543
- */let oi=0;const ri=[],ni={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ai="__computeInfo",li=/[A-Z]/;function hi(t,e,i){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),i))for(let t in s){let e=s[t],i=s[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else s=t[e]={};return s}function di(t,e,i,s,o,r){if(e){let n=!1;const a=oi++;for(let l in i){let h=e[o?Pe(l):l];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)e.info&&e.info.lastRun===a||o&&!ui(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,i,s,e.info,o,r),n=!0)}return n}return!1}function ci(t,e,i,s,o,r,n,a){let l=!1,h=e[n?Pe(s):s];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)e.info&&e.info.lastRun===i||n&&!ui(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(t,s,o,r,e.info,n,a),l=!0);return l}function ui(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!function(t,e){return 0===t.indexOf(e+".")}(i,t))||!(!e.wildcard||!Ce(i,t))}return!0}function mi(t,e,i,s,o){let r="string"==typeof o.method?t[o.method]:o.method,n=o.property;r?r.call(t,t.__data[n],s[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function pi(t,e,i){let s=Pe(e);return s!==e&&(fi(t,Fe(s)+"-changed",i[e],e),!0)}function fi(t,e,i,s){let o={value:i,queueProperty:!0};s&&(o.path=s),xe(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function gi(t,e,i,s,o,r){let n=(r?Pe(e):e)!=e?e:null,a=n?Se(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),fi(t,o.eventName,a,n)}function vi(t,e,i,s,o){let r=t.__data[e];Kt&&(r=Kt(r,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,r)}const _i=(t,e,i)=>{let s=0,o=e.length-1,r=-1;for(;s<=o;){const n=s+o>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)s=n+1;else{if(!(a>0)){r=n;break}o=n-1}}r<0&&(r=o+1),e.splice(r,0,t)},bi=(t,e,i,s,o)=>{const r=e[o?Pe(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun===oi||o&&!ui(t,n.trigger)||(n.info.lastRun=oi,_i(n.info,i,s))}};function yi(t,e,i,s,o){let r=zi(t,e,i,0,o);if(r===ri)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function wi(t,e,i,s,o,r,n){i.bindings=i.bindings||[];let a={kind:s,target:o,parts:r,literal:n,isCompound:1!==r.length};if(i.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Fe(o)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i,xi(t,e,a,s,l)}}function xi(t,e,i,s,o){if(!s.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:o,binding:i,part:s,evaluator:t};for(let i=0;i<r.length;i++){let s=r[i];"string"==typeof s&&(s=ji(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:ki,info:n,trigger:s})}}}function ki(t,e,i,s,o,r,n){let a=n[o.index],l=o.binding,h=o.part;if(r&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Ae(h.source,l.target,e),a._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(a)}else{let n=o.evaluator._evaluateBinding(t,h,e,i,s,r);n!==ri&&function(t,e,i,s,o){if(o=function(t,e,i,s){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[s.compoundIndex]=e,e=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,o,i,s),Kt&&(o=Kt(o,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,o,i.target);else{let s=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?e[ni.READ_ONLY]&&e[ni.READ_ONLY][s]||e._setPendingProperty(s,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,o)}}(t,a,l,h,n)}}function Pi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,o=new Array(s.length);for(let t=0;t<s.length;t++)o[t]=s[t].literal;let r=e.target;i[r]=o,e.literal&&"property"==e.kind&&("className"===r&&(t=xe(t)),t[r]=e.literal)}}function Ci(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,s,o){let r,n=t.detail,a=n&&n.path;a?(s=Ae(i,s,a),r=n&&n.value):r=t.currentTarget[i],r=o?!r:r,e[ni.READ_ONLY]&&e[ni.READ_ONLY][s]||!e._setPendingPropertyOrPath(s,r,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,i.target,s.source,s.negate)}))}}function Ai(t,e,i,s,o,r){let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let o,r=0;r<e.args.length&&(o=e.args[r]);r++)o.literal||t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o});return r&&t._addPropertyEffect(e.methodName,i,{fn:s,info:n}),n}function zi(t,e,i,s,o){let r=t._methodHost||t,n=r[o.methodName];if(n){let s=t._marshalArgs(o.args,e,i);return s===ri?ri:n.apply(r,s)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Ei=[],Si="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ii="(?:("+Si+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ti=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Si+"\\s*(?:\\(\\s*(?:(?:"+Ii+"(?:,\\s*"+Ii+")*)?)\\)\\s*)?)(?:]]|}})","g");function Oi(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Ni(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ei};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=ji(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function ji(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Pe(e),i.structured=ke(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Fi(t,e,i){let s=Se(t,i);return void 0===s&&(s=e[i]),s}function Bi(t,e,i,s){const o={indexSplices:s};ee&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),ee&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function Mi(t,e,i,s,o,r){Bi(t,e,i,[{index:s,addedCount:o,removed:r,object:e,type:"splice"}])}const Li=ae((t=>{const e=si($e(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return ni}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Di.length){let t=Di[Di.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[ni.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==ni.READ_ONLY);let s=hi(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(i)}_removePropertyEffect(t,e,i){let s=hi(this,e,!0)[t],o=s.indexOf(i);o>=0&&s.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,ni.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,ni.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,ni.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,ni.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Pe(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Se(this,t);if(!(t=Ie(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let s=t.__dataLinkedPaths;if(s){let o;for(let r in s){let n=s[r];Ce(r,e)?(o=Ae(r,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):Ce(n,e)&&(o=Ae(n,r,e),t._setPendingPropertyOrPath(o,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&"object"!=typeof i||("className"===e&&(t=xe(t)),t[e]=i)}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&ke(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[ni.NOTIFY]&&this[ni.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)!e&&this[ni.READ_ONLY]&&this[ni.READ_ONLY][i]||this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let s,o=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,s){let o=t[ni.COMPUTE];if(o)if(ie){oi++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[ni.COMPUTE];let s,{counts:o,ready:r,total:n}=function(t){const e=t[ai],i={},s=t[ni.COMPUTE],o=[];let r=0;for(let t in e){const s=e[t];r+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||o.push(t);return{counts:i,ready:o,total:r}}(t);for(;s=r.shift();){e.set(s,e.size);const t=i[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--o[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)bi(t,o,n,r,s);let a;for(;a=n.shift();)yi(t,"",e,0,a)&&bi(a.methodInfo,o,n,r,s);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;di(t,o,r,i,s);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,i,o),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,o),this._flushClients(),di(this,this[ni.REFLECT],e,i,o),di(this,this[ni.OBSERVE],e,i,o),s&&function(t,e,i,s,o){let r,n,a=t[ni.NOTIFY],l=oi++;for(let n in e)e[n]&&(a&&ci(t,a,l,n,i,s,o)||o&&pi(t,n,i))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[ni.PROPAGATE]&&di(this,this[ni.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,s){const o=(e,s)=>{di(this,t.propertyEffects,e,i,s,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,e,i,s)};t.runEffects?t.runEffects(o,e,s):o(e,s)}linkPaths(t,e){t=ze(t),e=ze(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=ze(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Bi(this,Se(this,t,i),i.path,e)}get(t,e){return Se(e||this,t)}set(t,e,i){i?Ie(i,t,e):this[ni.READ_ONLY]&&this[ni.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},s=Se(this,t,i),o=s.length,r=s.push(...e);return e.length&&Mi(this,s,i.path,o,e.length,[]),r}pop(t){let e={path:""},i=Se(this,t,e),s=Boolean(i.length),o=i.pop();return s&&Mi(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...s){let o,r={path:""},n=Se(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),o=2===arguments.length?n.splice(e):n.splice(e,i,...s),(s.length||o.length)&&Mi(this,n,r.path,e,s.length,o),o}shift(t){let e={path:""},i=Se(this,t,e),s=Boolean(i.length),o=i.shift();return s&&Mi(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},s=Se(this,t,i),o=s.unshift(...e);return e.length&&Mi(this,s,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let s={path:""};e=Se(this,t,s),i=s.path}else i=Array.isArray(t)?ze(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var i;this._addPropertyEffect(t,ni.READ_ONLY),e&&(this["_set"+(i=t,i[0].toUpperCase()+i.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,ni.OBSERVE,{fn:mi,info:s,trigger:{name:t}}),i&&this._addPropertyEffect(e,ni.OBSERVE,{fn:mi,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let i=Ni(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");Ai(this,i,ni.OBSERVE,zi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,ni.NOTIFY,{fn:gi,info:{eventName:Fe(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,ni.REFLECT,{fn:vi,info:{attrName:e}})}_createComputedProperty(t,e,i){let s=Ni(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const o=Ai(this,s,ni.COMPUTE,yi,t,i);hi(this,ai)[t]=o}_marshalArgs(t,e,i){const s=this.__data,o=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:d}=t[r];if(!d)if(l){const t=Ce(n,e),o=Fi(s,i,t?e:n);h={path:t?e:n,value:o,base:t?Se(s,n):o}}else h=a?Fi(s,i,n):s[n];if(ee&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return ri;o[r]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==i;if(!s)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Di.push(this);let i=super._stampTemplate(t,e);if(Di.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let o=i[e],r=s[e].bindings;if(r)for(let e=0;e<r.length;e++){let i=r[e];Pi(o,i),Ci(o,t,i)}o.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:s,parent:o}=e;i?i.nextSibling=s:o&&(o.firstChild=s),s?s.previousSibling=i:o&&(o.lastChild=i),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];xe(xe(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let o=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=Oi(e)||" ",wi(this,i,s,"text","textContent",e),o=!0)}return o}static _parseTemplateNodeAttribute(t,i,s,o,r){let n=this._parseBindings(r,i);if(n){let e=o,r="property";li.test(o)?r="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),r="attribute");let a=Oi(n);return a&&"attribute"==r&&("class"==o&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(o)),t.setAttribute(o,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(o,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(o=je(o)),wi(this,i,s,r,o,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,s,o,r)}static _parseTemplateNestedTemplate(t,i,s){let o=e._parseTemplateNestedTemplate.call(this,t,i,s);const r=t.parentNode,n=s.templateInfo,a="dom-if"===r.localName;se&&(a||"dom-repeat"===r.localName)&&(r.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,o=!1);let l=n.hostProps;if(oe&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),se||(s.parentInfo.noted=!0));else{let t="{";for(let e in l)wi(this,i,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return o}static _parseBindings(t,e){let i,s=[],o=0;for(;null!==(i=Ti.exec(t));){i.index>o&&s.push({literal:t.slice(o,i.index)});let r=i[1][0],n=Boolean(i[2]),a=i[3].trim(),l=!1,h="",d=-1;"{"==r&&(d=a.indexOf("::"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=Ni(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let s=e.dynamicFns;(s&&s[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);s.push({source:a,mode:r,negate:n,customEvent:l,signature:c,dependencies:u,event:h}),o=Ti.lastIndex}if(o&&o<t.length){let e=t.substring(o);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,i,s,o,r){let n;return n=e.signature?zi(t,i,s,0,e.signature):i!=e.source?Se(t,e.source):r&&ke(i)?Se(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Di=[],Ui=ae((t=>{const e=qe(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
1543
+ */let ri=0;const ni=[],ai={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},li="__computeInfo",hi=/[A-Z]/;function di(t,e,i){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),i))for(let t in s){let e=s[t],i=s[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else s=t[e]={};return s}function ci(t,e,i,s,o,r){if(e){let n=!1;const a=ri++;for(let l in i){let h=e[o?Ce(l):l];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)e.info&&e.info.lastRun===a||o&&!mi(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,i,s,e.info,o,r),n=!0)}return n}return!1}function ui(t,e,i,s,o,r,n,a){let l=!1,h=e[n?Ce(s):s];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)e.info&&e.info.lastRun===i||n&&!mi(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(t,s,o,r,e.info,n,a),l=!0);return l}function mi(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!function(t,e){return 0===t.indexOf(e+".")}(i,t))||!(!e.wildcard||!Ae(i,t))}return!0}function pi(t,e,i,s,o){let r="string"==typeof o.method?t[o.method]:o.method,n=o.property;r?r.call(t,t.__data[n],s[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function fi(t,e,i){let s=Ce(e);return s!==e&&(gi(t,Be(s)+"-changed",i[e],e),!0)}function gi(t,e,i,s){let o={value:i,queueProperty:!0};s&&(o.path=s),ke(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function vi(t,e,i,s,o,r){let n=(r?Ce(e):e)!=e?e:null,a=n?Ie(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),gi(t,o.eventName,a,n)}function _i(t,e,i,s,o){let r=t.__data[e];Zt&&(r=Zt(r,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,r)}const bi=(t,e,i)=>{let s=0,o=e.length-1,r=-1;for(;s<=o;){const n=s+o>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)s=n+1;else{if(!(a>0)){r=n;break}o=n-1}}r<0&&(r=o+1),e.splice(r,0,t)},yi=(t,e,i,s,o)=>{const r=e[o?Ce(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun===ri||o&&!mi(t,n.trigger)||(n.info.lastRun=ri,bi(n.info,i,s))}};function wi(t,e,i,s,o){let r=Ei(t,e,i,0,o);if(r===ni)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function xi(t,e,i,s,o,r,n){i.bindings=i.bindings||[];let a={kind:s,target:o,parts:r,literal:n,isCompound:1!==r.length};if(i.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Be(o)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i,ki(t,e,a,s,l)}}function ki(t,e,i,s,o){if(!s.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:o,binding:i,part:s,evaluator:t};for(let i=0;i<r.length;i++){let s=r[i];"string"==typeof s&&(s=Fi(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Pi,info:n,trigger:s})}}}function Pi(t,e,i,s,o,r,n){let a=n[o.index],l=o.binding,h=o.part;if(r&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=ze(h.source,l.target,e),a._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(a)}else{let n=o.evaluator._evaluateBinding(t,h,e,i,s,r);n!==ni&&function(t,e,i,s,o){if(o=function(t,e,i,s){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[s.compoundIndex]=e,e=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,o,i,s),Zt&&(o=Zt(o,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,o,i.target);else{let s=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?e[ai.READ_ONLY]&&e[ai.READ_ONLY][s]||e._setPendingProperty(s,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,o)}}(t,a,l,h,n)}}function Ci(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,o=new Array(s.length);for(let t=0;t<s.length;t++)o[t]=s[t].literal;let r=e.target;i[r]=o,e.literal&&"property"==e.kind&&("className"===r&&(t=ke(t)),t[r]=e.literal)}}function Ai(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,s,o){let r,n=t.detail,a=n&&n.path;a?(s=ze(i,s,a),r=n&&n.value):r=t.currentTarget[i],r=o?!r:r,e[ai.READ_ONLY]&&e[ai.READ_ONLY][s]||!e._setPendingPropertyOrPath(s,r,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,i.target,s.source,s.negate)}))}}function zi(t,e,i,s,o,r){let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let o,r=0;r<e.args.length&&(o=e.args[r]);r++)o.literal||t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o});return r&&t._addPropertyEffect(e.methodName,i,{fn:s,info:n}),n}function Ei(t,e,i,s,o){let r=t._methodHost||t,n=r[o.methodName];if(n){let s=t._marshalArgs(o.args,e,i);return s===ni?ni:n.apply(r,s)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Si=[],Ii="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ti="(?:("+Ii+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Oi=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ii+"\\s*(?:\\(\\s*(?:(?:"+Ti+"(?:,\\s*"+Ti+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ni(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function ji(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Si};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Fi(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function Fi(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Ce(e),i.structured=Pe(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Bi(t,e,i){let s=Ie(t,i);return void 0===s&&(s=e[i]),s}function Mi(t,e,i,s){const o={indexSplices:s};ie&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),ie&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function Li(t,e,i,s,o,r){Mi(t,e,i,[{index:s,addedCount:o,removed:r,object:e,type:"splice"}])}const Di=le((t=>{const e=oi(Ye(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return ai}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ui.length){let t=Ui[Ui.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[ai.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==ai.READ_ONLY);let s=di(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(i)}_removePropertyEffect(t,e,i){let s=di(this,e,!0)[t],o=s.indexOf(i);o>=0&&s.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,ai.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,ai.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,ai.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,ai.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Ce(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Ie(this,t);if(!(t=Te(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let s=t.__dataLinkedPaths;if(s){let o;for(let r in s){let n=s[r];Ae(r,e)?(o=ze(r,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):Ae(n,e)&&(o=ze(n,r,e),t._setPendingPropertyOrPath(o,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&"object"!=typeof i||("className"===e&&(t=ke(t)),t[e]=i)}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Pe(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[ai.NOTIFY]&&this[ai.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)!e&&this[ai.READ_ONLY]&&this[ai.READ_ONLY][i]||this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let s,o=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,s){let o=t[ai.COMPUTE];if(o)if(se){ri++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[ai.COMPUTE];let s,{counts:o,ready:r,total:n}=function(t){const e=t[li],i={},s=t[ai.COMPUTE],o=[];let r=0;for(let t in e){const s=e[t];r+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||o.push(t);return{counts:i,ready:o,total:r}}(t);for(;s=r.shift();){e.set(s,e.size);const t=i[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--o[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)yi(t,o,n,r,s);let a;for(;a=n.shift();)wi(t,"",e,0,a)&&yi(a.methodInfo,o,n,r,s);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;ci(t,o,r,i,s);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,i,o),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,o),this._flushClients(),ci(this,this[ai.REFLECT],e,i,o),ci(this,this[ai.OBSERVE],e,i,o),s&&function(t,e,i,s,o){let r,n,a=t[ai.NOTIFY],l=ri++;for(let n in e)e[n]&&(a&&ui(t,a,l,n,i,s,o)||o&&fi(t,n,i))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[ai.PROPAGATE]&&ci(this,this[ai.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,s){const o=(e,s)=>{ci(this,t.propertyEffects,e,i,s,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,e,i,s)};t.runEffects?t.runEffects(o,e,s):o(e,s)}linkPaths(t,e){t=Ee(t),e=Ee(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ee(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Mi(this,Ie(this,t,i),i.path,e)}get(t,e){return Ie(e||this,t)}set(t,e,i){i?Te(i,t,e):this[ai.READ_ONLY]&&this[ai.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},s=Ie(this,t,i),o=s.length,r=s.push(...e);return e.length&&Li(this,s,i.path,o,e.length,[]),r}pop(t){let e={path:""},i=Ie(this,t,e),s=Boolean(i.length),o=i.pop();return s&&Li(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...s){let o,r={path:""},n=Ie(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),o=2===arguments.length?n.splice(e):n.splice(e,i,...s),(s.length||o.length)&&Li(this,n,r.path,e,s.length,o),o}shift(t){let e={path:""},i=Ie(this,t,e),s=Boolean(i.length),o=i.shift();return s&&Li(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},s=Ie(this,t,i),o=s.unshift(...e);return e.length&&Li(this,s,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let s={path:""};e=Ie(this,t,s),i=s.path}else i=Array.isArray(t)?Ee(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var i;this._addPropertyEffect(t,ai.READ_ONLY),e&&(this["_set"+(i=t,i[0].toUpperCase()+i.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,ai.OBSERVE,{fn:pi,info:s,trigger:{name:t}}),i&&this._addPropertyEffect(e,ai.OBSERVE,{fn:pi,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let i=ji(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");zi(this,i,ai.OBSERVE,Ei,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,ai.NOTIFY,{fn:vi,info:{eventName:Be(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,ai.REFLECT,{fn:_i,info:{attrName:e}})}_createComputedProperty(t,e,i){let s=ji(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const o=zi(this,s,ai.COMPUTE,wi,t,i);di(this,li)[t]=o}_marshalArgs(t,e,i){const s=this.__data,o=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:d}=t[r];if(!d)if(l){const t=Ae(n,e),o=Bi(s,i,t?e:n);h={path:t?e:n,value:o,base:t?Ie(s,n):o}}else h=a?Bi(s,i,n):s[n];if(ie&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return ni;o[r]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==i;if(!s)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ui.push(this);let i=super._stampTemplate(t,e);if(Ui.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let o=i[e],r=s[e].bindings;if(r)for(let e=0;e<r.length;e++){let i=r[e];Ci(o,i),Ai(o,t,i)}o.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:s,parent:o}=e;i?i.nextSibling=s:o&&(o.firstChild=s),s?s.previousSibling=i:o&&(o.lastChild=i),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];ke(ke(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let o=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=Ni(e)||" ",xi(this,i,s,"text","textContent",e),o=!0)}return o}static _parseTemplateNodeAttribute(t,i,s,o,r){let n=this._parseBindings(r,i);if(n){let e=o,r="property";hi.test(o)?r="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),r="attribute");let a=Ni(n);return a&&"attribute"==r&&("class"==o&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(o)),t.setAttribute(o,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(o,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(o=Fe(o)),xi(this,i,s,r,o,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,s,o,r)}static _parseTemplateNestedTemplate(t,i,s){let o=e._parseTemplateNestedTemplate.call(this,t,i,s);const r=t.parentNode,n=s.templateInfo,a="dom-if"===r.localName;oe&&(a||"dom-repeat"===r.localName)&&(r.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,o=!1);let l=n.hostProps;if(re&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),oe||(s.parentInfo.noted=!0));else{let t="{";for(let e in l)xi(this,i,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return o}static _parseBindings(t,e){let i,s=[],o=0;for(;null!==(i=Oi.exec(t));){i.index>o&&s.push({literal:t.slice(o,i.index)});let r=i[1][0],n=Boolean(i[2]),a=i[3].trim(),l=!1,h="",d=-1;"{"==r&&(d=a.indexOf("::"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=ji(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let s=e.dynamicFns;(s&&s[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);s.push({source:a,mode:r,negate:n,customEvent:l,signature:c,dependencies:u,event:h}),o=Oi.lastIndex}if(o&&o<t.length){let e=t.substring(o);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,i,s,o,r){let n;return n=e.signature?Ei(t,i,s,0,e.signature):i!=e.source?Ie(t,e.source):r&&Pe(i)?Ie(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Ui=[],Vi=le((t=>{const e=Ge(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
1544
1544
  /**
1545
1545
  @license
1546
1546
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1550,12 +1550,12 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
1550
1550
  Code distributed by Google as part of the polymer project is also
1551
1551
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1552
1552
  */
1553
- function(t){const e={};for(let i in t){const s=t[i];e[i]="function"==typeof s?{type:s}:s}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=s(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o})),Vi=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ri=ae((t=>{const e=Ui(Li(t));function i(t,e,i,s){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,s)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,s[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Qt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++)i._createMethodObserver(t[s],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Zt||Jt)&&(e=ue.import(t,"template"),Zt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=Wt(t.url);else{const t=ue.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Yt,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];"value"in s&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=s)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Ht(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,s){if(!Vi){const o=e.content.querySelectorAll("style"),r=ye(e),n=function(t){let e=ge(t);return e?we(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,s),e.content.insertBefore(o,a)}let l=0;for(let e=0;e<r.length;e++){let i=r[e],n=o[l];n!==i?(i=i.cloneNode(!0),n.parentNode.insertBefore(i,n)):l++,i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),re&&Vi&&$t){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Gt(i):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=xe(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),te&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Gt(this.importPath)),Gt(t,e)}static _parseTemplateContent(t,i,s){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){return!Xt||i in this._properties||s.info.part.signature&&s.info.part.signature.static||s.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,s)}}})),qi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Gi{constructor(t,e){$i(t,e);const i=e.reduce(((e,i,s)=>e+Hi(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Hi(t){if(t instanceof Gi)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const Wi=function(t,...e){$i(t,e);const i=document.createElement("template");let s=e.reduce(((e,i,s)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Gi)return Hi(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[s+1]),t[0]);return qi&&(s=qi.createHTML(s)),i.innerHTML=s,i},$i=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},Yi=Ri(HTMLElement),Ki=[];function Zi(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function Ji(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=Ji();Ki.forEach((e=>{Zi(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Qi=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Zi(this,Ji(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;const s=Ji(),o=i===s&&-1===Ki.indexOf(this),r=!i&&e&&-1===Ki.indexOf(this),n=i!==s&&e===s;o||r?(this.__subscribe(),Zi(this,s,i)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ki.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){("dir"!==i||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){Ki.includes(this)||Ki.push(this)}__unsubscribe(){Ki.includes(this)&&Ki.splice(Ki.indexOf(this),1)}}
1553
+ function(t){const e={};for(let i in t){const s=t[i];e[i]="function"==typeof s?{type:s}:s}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=s(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o})),Ri=window.ShadyCSS&&window.ShadyCSS.cssBuild,qi=le((t=>{const e=Vi(Di(t));function i(t,e,i,s){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,s)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,s[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Xt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++)i._createMethodObserver(t[s],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Jt||Qt)&&(e=me.import(t,"template"),Jt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=$t(t.url);else{const t=me.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Kt,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];"value"in s&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=s)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Wt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,s){if(!Ri){const o=e.content.querySelectorAll("style"),r=we(e),n=function(t){let e=ve(t);return e?xe(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,s),e.content.insertBefore(o,a)}let l=0;for(let e=0;e<r.length;e++){let i=r[e],n=o[l];n!==i?(i=i.cloneNode(!0),n.parentNode.insertBefore(i,n)):l++,i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),ne&&Ri&&Yt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Ht(i):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=ke(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ee&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Ht(this.importPath)),Ht(t,e)}static _parseTemplateContent(t,i,s){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){return!te||i in this._properties||s.info.part.signature&&s.info.part.signature.static||s.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,s)}}})),Gi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Hi{constructor(t,e){Yi(t,e);const i=e.reduce(((e,i,s)=>e+Wi(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Wi(t){if(t instanceof Hi)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const $i=function(t,...e){Yi(t,e);const i=document.createElement("template");let s=e.reduce(((e,i,s)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Hi)return Wi(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[s+1]),t[0]);return Gi&&(s=Gi.createHTML(s)),i.innerHTML=s,i},Yi=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},Ki=qi(HTMLElement),Zi=[];function Ji(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function Qi(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=Qi();Zi.forEach((e=>{Ji(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Xi=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Ji(this,Qi(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;const s=Qi(),o=i===s&&-1===Zi.indexOf(this),r=!i&&e&&-1===Zi.indexOf(this),n=i!==s&&e===s;o||r?(this.__subscribe(),Ji(this,s,i)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Zi.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){("dir"!==i||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){Zi.includes(this)||Zi.push(this)}__unsubscribe(){Zi.includes(this)&&Zi.splice(Zi.indexOf(this),1)}}
1554
1554
  /**
1555
1555
  * @license
1556
1556
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1557
1557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1558
- */,Xi=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}
1558
+ */,ts=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}
1559
1559
  /**
1560
1560
  * @license
1561
1561
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1566,7 +1566,7 @@ function(t){const e={};for(let i in t){const s=t[i];e[i]="function"==typeof s?{t
1566
1566
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1567
1567
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1568
1568
  */
1569
- Pt("vaadin-input-container",p`
1569
+ Ct("vaadin-input-container",f`
1570
1570
  :host {
1571
1571
  display: flex;
1572
1572
  align-items: center;
@@ -1631,22 +1631,22 @@ Pt("vaadin-input-container",p`
1631
1631
  /* Override default opacity in Firefox */
1632
1632
  opacity: 1;
1633
1633
  }
1634
- `,{moduleId:"vaadin-input-container-styles"});class ts extends(Xi(St(Qi(Yi)))){static get is(){return"vaadin-input-container"}static get template(){return Wi`
1634
+ `,{moduleId:"vaadin-input-container-styles"});class es extends(ts(It(Xi(Ki)))){static get is(){return"vaadin-input-container"}static get template(){return $i`
1635
1635
  <slot name="prefix"></slot>
1636
1636
  <slot></slot>
1637
1637
  <slot name="suffix"></slot>
1638
- `}}a(ts);
1638
+ `}}l(es);
1639
1639
  /**
1640
1640
  * @license
1641
1641
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1642
1642
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1643
1643
  */
1644
- const es=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){this.renderer&&!this.hidden&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(t,e,i){void 0!==i&&void 0!==e&&(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}}
1644
+ const is=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){this.renderer&&!this.hidden&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(t,e,i){void 0!==i&&void 0!==e&&(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}}
1645
1645
  /**
1646
1646
  * @license
1647
1647
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1648
1648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1649
- */;class is extends(es(St(Qi(Yi)))){static get template(){return Wi`
1649
+ */;class ss extends(is(It(Xi(Ki)))){static get template(){return $i`
1650
1650
  <style>
1651
1651
  :host {
1652
1652
  display: block;
@@ -1660,7 +1660,7 @@ const es=t=>class extends t{static get properties(){return{index:{type:Number},i
1660
1660
  <div part="content">
1661
1661
  <slot></slot>
1662
1662
  </div>
1663
- `}static get is(){return"vaadin-combo-box-item"}}a(is);
1663
+ `}static get is(){return"vaadin-combo-box-item"}}l(ss);
1664
1664
  /**
1665
1665
  @license
1666
1666
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1670,61 +1670,61 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
1670
1670
  Code distributed by Google as part of the polymer project is also
1671
1671
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1672
1672
  */
1673
- let ss=!1,os=[],rs=[];function ns(t){const e=t[0],i=t[1],s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}
1673
+ let os=!1,rs=[],ns=[];function as(t){const e=t[0],i=t[1],s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}
1674
1674
  /**
1675
1675
  * @license
1676
1676
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1677
1677
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1678
1678
  */
1679
- const as=t=>t.test(navigator.userAgent),ls=t=>t.test(navigator.platform);as(/Android/u),as(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),as(/Firefox/u);const hs=ls(/^iPad/u)||ls(/^Mac/u)&&navigator.maxTouchPoints>1,ds=ls(/^iPhone/u)||hs,cs=as(/^((?!chrome|android).)*safari/iu),us=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
1679
+ const ls=t=>t.test(navigator.userAgent),hs=t=>t.test(navigator.platform);ls(/Android/u),ls(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),ls(/Firefox/u);const ds=hs(/^iPad/u)||hs(/^Mac/u)&&navigator.maxTouchPoints>1,cs=hs(/^iPhone/u)||ds,us=ls(/^((?!chrome|android).)*safari/iu),ms=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
1680
1680
  /**
1681
1681
  * @license
1682
1682
  * Copyright (c) 2017 Anton Korzunov
1683
1683
  * SPDX-License-Identifier: MIT
1684
1684
  */
1685
- let ms=new WeakMap,ps=new WeakMap,fs={},gs=0;const vs=t=>t&&t.nodeType===Node.ELEMENT_NODE,_s=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};
1685
+ let ps=new WeakMap,fs=new WeakMap,gs={},vs=0;const _s=t=>t&&t.nodeType===Node.ELEMENT_NODE,bs=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};
1686
1686
  /**
1687
1687
  * @license
1688
1688
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1689
1689
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1690
1690
  */
1691
- class bs{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=((t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);return e&&s.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,i,s)=>{const o=((t,e)=>vs(t)?e.map((e=>{if(!vs(e))return _s(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return _s(e,"is not contained inside",t),null})).filter((t=>Boolean(t))):(_s(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);fs[i]||(fs[i]=new WeakMap);const r=fs[i],n=[],a=new Set,l=new Set(o),h=t=>{if(!t||a.has(t))return;a.add(t);const e=t.assignedSlot;e&&h(e),h(t.parentNode||t.host)};o.forEach(h);const d=t=>{if(!t||l.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(a.has(t))d(t);else{const e=t.getAttribute(s),o=null!==e&&"false"!==e,a=(ms.get(t)||0)+1,l=(r.get(t)||0)+1;ms.set(t,a),r.set(t,l),n.push(t),1===a&&o&&ps.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(s,"true")}}))};return d(e),a.clear(),gs+=1,()=>{n.forEach((t=>{const e=ms.get(t)-1,o=r.get(t)-1;ms.set(t,e),r.set(t,o),e||(ps.has(t)?ps.delete(t):t.removeAttribute(s)),o||t.removeAttribute(i)})),gs-=1,gs||(ms=new WeakMap,ms=new WeakMap,ps=new WeakMap,fs={})}})(s,e,i,"aria-hidden")})(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
1691
+ class ys{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=((t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);return e&&s.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,i,s)=>{const o=((t,e)=>_s(t)?e.map((e=>{if(!_s(e))return bs(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return bs(e,"is not contained inside",t),null})).filter((t=>Boolean(t))):(bs(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);gs[i]||(gs[i]=new WeakMap);const r=gs[i],n=[],a=new Set,l=new Set(o),h=t=>{if(!t||a.has(t))return;a.add(t);const e=t.assignedSlot;e&&h(e),h(t.parentNode||t.host)};o.forEach(h);const d=t=>{if(!t||l.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(a.has(t))d(t);else{const e=t.getAttribute(s),o=null!==e&&"false"!==e,a=(ps.get(t)||0)+1,l=(r.get(t)||0)+1;ps.set(t,a),r.set(t,l),n.push(t),1===a&&o&&fs.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(s,"true")}}))};return d(e),a.clear(),vs+=1,()=>{n.forEach((t=>{const e=ps.get(t)-1,o=r.get(t)-1;ps.set(t,e),r.set(t,o),e||(fs.has(t)?fs.delete(t):t.removeAttribute(s)),o||t.removeAttribute(i)})),vs-=1,vs||(ps=new WeakMap,ps=new WeakMap,fs=new WeakMap,gs={})}})(s,e,i,"aria-hidden")})(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
1692
1692
  /**
1693
1693
  * @license
1694
1694
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1695
1695
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1696
- */let ys=!1;function ws(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function xs(){return ys}function ks(t,e){const i=Math.max(t.tabIndex,0),s=Math.max(e.tabIndex,0);return 0===i||0===s?s>i:i>s}function Ps(t){const e=t.length;if(e<2)return t;const i=Math.ceil(e/2);return function(t,e){const i=[];for(;t.length>0&&e.length>0;)ks(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}(Ps(t.slice(0,i)),Ps(t.slice(i)))}function Cs(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function As(t){return t.getRootNode().activeElement===t}function zs(t,e){if(t.nodeType!==Node.ELEMENT_NODE||function(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}(t))return!1;const i=t,s=function(t){if(!Cs(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(i);let o=s>0;s>=0&&e.push(i);let r=[];return r="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...r].forEach((t=>{o=zs(t,e)||o})),o}window.addEventListener("keydown",(()=>{ys=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{ys=!1}),{capture:!0});
1696
+ */let ws=!1;function xs(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ks(){return ws}function Ps(t,e){const i=Math.max(t.tabIndex,0),s=Math.max(e.tabIndex,0);return 0===i||0===s?s>i:i>s}function Cs(t){const e=t.length;if(e<2)return t;const i=Math.ceil(e/2);return function(t,e){const i=[];for(;t.length>0&&e.length>0;)Ps(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}(Cs(t.slice(0,i)),Cs(t.slice(i)))}function As(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function zs(t){return t.getRootNode().activeElement===t}function Es(t,e){if(t.nodeType!==Node.ELEMENT_NODE||function(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}(t))return!1;const i=t,s=function(t){if(!As(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(i);let o=s>0;s>=0&&e.push(i);let r=[];return r="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...r].forEach((t=>{o=Es(t,e)||o})),o}window.addEventListener("keydown",(()=>{ws=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{ws=!1}),{capture:!0});
1697
1697
  /**
1698
1698
  * @license
1699
1699
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1700
1700
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1701
1701
  */
1702
- class Es{saveFocus(t){this.focusNode=t||ws()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;ws()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
1702
+ class Ss{saveFocus(t){this.focusNode=t||xs()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;xs()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
1703
1703
  /**
1704
1704
  * @license
1705
1705
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1706
1706
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1707
- */const Ss=[];class Is{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return zs(t,e)?Ps(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(As).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ss.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ss.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Ss).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
1707
+ */const Is=[];class Ts{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Es(t,e)?Cs(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(zs).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Is.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Is.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Is).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
1708
1708
  /**
1709
1709
  * @license
1710
1710
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1711
1711
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1712
- */const Ts=ae((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),Os=t=>class extends(Ts(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new bs(this),this.__focusTrapController=new Is(this),this.__focusRestorationController=new Es}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!xs();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=ws();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
1712
+ */const Os=le((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),Ns=t=>class extends(Os(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ys(this),this.__focusTrapController=new Ts(this),this.__focusRestorationController=new Ss}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!ks();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=xs();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
1713
1713
  /**
1714
1714
  * @license
1715
1715
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1716
1716
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1717
- */,Ns=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),js=()=>Ns().filter((t=>t.$.overlay)),Fs=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===js().pop())()}bringToFront(){let t="";const e=Ns().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),js().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=js();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
1717
+ */,js=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Fs=()=>js().filter((t=>t.$.overlay)),Bs=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Fs().pop())()}bringToFront(){let t="";const e=js().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Fs().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Fs();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
1718
1718
  /**
1719
1719
  * @license
1720
1720
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1721
1721
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1722
- */,Bs=t=>class extends(Os(Fs(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),ds&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,s){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const r=this._oldRenderer!==t,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==s;this._oldOpened=s,r&&n&&(this.innerHTML="",delete this._$litPart$),s&&t&&(r||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){var i;t?(this._saveFocus(),this._animatedOpening(),i=()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)},ss||(ss=!0,requestAnimationFrame((function(){ss=!1,function(t){for(;t.length;)ns(t.shift())}(os),setTimeout((function(){!function(t){for(let e=0,i=t.length;e<i;e++)ns(t.shift())}(rs)}))}))),rs.push([this,i,undefined]),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,s=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
1722
+ */,Ms=t=>class extends(Ns(Bs(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),cs&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,s){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const r=this._oldRenderer!==t,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==s;this._oldOpened=s,r&&n&&(this.innerHTML="",delete this._$litPart$),s&&t&&(r||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){var i;t?(this._saveFocus(),this._animatedOpening(),i=()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)},os||(os=!0,requestAnimationFrame((function(){os=!1,function(t){for(;t.length;)as(t.shift())}(rs),setTimeout((function(){!function(t){for(let e=0,i=t.length;e<i;e++)as(t.shift())}(ns)}))}))),ns.push([this,i,undefined]),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,s=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
1723
1723
  /**
1724
1724
  * @license
1725
1725
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1726
1726
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1727
- */,Ms=p`
1727
+ */,Ls=f`
1728
1728
  :host {
1729
1729
  z-index: 200;
1730
1730
  position: fixed;
@@ -1793,29 +1793,29 @@ class Es{saveFocus(t){this.focusNode=t||ws()}restoreFocus(t){const e=this.focusN
1793
1793
  * @license
1794
1794
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1795
1795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1796
- */function Ls(t){return t?new Set(t.split(" ")):new Set}function Ds(t){return t?[...t].join(" "):""}function Us(t,e,i){const s=Ls(t.getAttribute(e));s.add(i),t.setAttribute(e,Ds(s))}
1796
+ */function Ds(t){return t?new Set(t.split(" ")):new Set}function Us(t){return t?[...t].join(" "):""}function Vs(t,e,i){const s=Ds(t.getAttribute(e));s.add(i),t.setAttribute(e,Us(s))}
1797
1797
  /**
1798
1798
  * @license
1799
1799
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1800
1800
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1801
1801
  */
1802
- const Vs={start:"top",end:"bottom"},Rs={start:"left",end:"right"},qs=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Gs=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=
1802
+ const Rs={start:"top",end:"bottom"},qs={start:"left",end:"right"},Gs=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Hs=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=
1803
1803
  /**
1804
1804
  * @license
1805
1805
  * Copyright (c) 2024 Vaadin Ltd.
1806
1806
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1807
1807
  */
1808
- function(t,e){let i=null;const s=document.documentElement;function o(){i&&i.disconnect(),i=null}return function r(n=!1,a=1){o();const{left:l,top:h,width:d,height:c}=t.getBoundingClientRect();if(n||e(),!d||!c)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(s.clientWidth-(l+d))}px ${-Math.floor(s.clientHeight-(h+c))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let m=!0;i=new IntersectionObserver((function(t){let e=t[0].intersectionRatio;if(e!==a){if(!m)return r();0===e&&(e=1e-7),r(!1,e)}m=!1}),u),i.observe(t)}(!0),o}(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,qs.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,qs.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,i),o=!i&&s||i&&!s;this.style.alignItems=o?"flex-start":"flex-end";const r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Vs,this,e),a=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,Rs,this,s);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,s,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Rs)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Vs)}__shouldAlignStart(t,e,i,s,o,r,n){const a=i-t[r?n.end:n.start]-s[n.end],l=t[r?n.start:n.end]-s[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Vs.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(s=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===Rs.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(s=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,o,r){const n=r?s.start:s.end,a=r?s.end:s.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,s,l),d=h?`${h}px`:`${l+(e[r?s.start:s.end]-t[i===r?s.end:s.start])*(r?-1:1)}px`;return{[n]:d,[a]:""}}}
1808
+ function(t,e){let i=null;const s=document.documentElement;function o(){i&&i.disconnect(),i=null}return function r(n=!1,a=1){o();const{left:l,top:h,width:d,height:c}=t.getBoundingClientRect();if(n||e(),!d||!c)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(s.clientWidth-(l+d))}px ${-Math.floor(s.clientHeight-(h+c))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let m=!0;i=new IntersectionObserver((function(t){let e=t[0].intersectionRatio;if(e!==a){if(!m)return r();0===e&&(e=1e-7),r(!1,e)}m=!1}),u),i.observe(t)}(!0),o}(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Gs.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Gs.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,i),o=!i&&s||i&&!s;this.style.alignItems=o?"flex-start":"flex-end";const r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Rs,this,e),a=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,qs,this,s);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,s,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,qs)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Rs)}__shouldAlignStart(t,e,i,s,o,r,n){const a=i-t[r?n.end:n.start]-s[n.end],l=t[r?n.start:n.end]-s[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Rs.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(s=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===qs.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(s=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,o,r){const n=r?s.start:s.end,a=r?s.end:s.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,s,l),d=h?`${h}px`:`${l+(e[r?s.start:s.end]-t[i===r?s.end:s.start])*(r?-1:1)}px`;return{[n]:d,[a]:""}}}
1809
1809
  /**
1810
1810
  * @license
1811
1811
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1812
1812
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1813
- */,Hs=t=>class extends(Gs(t)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,e=t&&t.getAttribute("dir");e&&this.setAttribute("dir",e)}_shouldCloseOnOutsideClick(t){const e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!Cs(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const e=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);""===e?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,e)}_setOverlayWidth(t,e){t&&e&&(this._updateOverlayWidth(),this._updatePosition())}}
1813
+ */,Ws=t=>class extends(Hs(t)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,e=t&&t.getAttribute("dir");e&&this.setAttribute("dir",e)}_shouldCloseOnOutsideClick(t){const e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!As(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const e=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);""===e?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,e)}_setOverlayWidth(t,e){t&&e&&(this._updateOverlayWidth(),this._updatePosition())}}
1814
1814
  /**
1815
1815
  * @license
1816
1816
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1817
1817
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1818
- */;Pt("vaadin-combo-box-overlay",[Ms,p`
1818
+ */;Ct("vaadin-combo-box-overlay",[Ls,f`
1819
1819
  #overlay {
1820
1820
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
1821
1821
  }
@@ -1825,7 +1825,7 @@ function(t,e){let i=null;const s=document.documentElement;function o(){i&&i.disc
1825
1825
  flex-direction: column;
1826
1826
  height: 100%;
1827
1827
  }
1828
- `],{moduleId:"vaadin-combo-box-overlay-styles"});class Ws extends(Hs(Bs(Qi(St(Yi))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Wi`
1828
+ `],{moduleId:"vaadin-combo-box-overlay-styles"});class $s extends(Ws(Ms(Xi(It(Ki))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return $i`
1829
1829
  <div id="backdrop" part="backdrop" hidden></div>
1830
1830
  <div part="overlay" id="overlay">
1831
1831
  <div part="loader"></div>
@@ -1837,12 +1837,12 @@ function(t,e){let i=null;const s=document.documentElement;function o(){i&&i.disc
1837
1837
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1838
1838
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1839
1839
  */
1840
- function $s(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
1840
+ function Ys(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
1841
1841
  /**
1842
1842
  * @license
1843
1843
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1844
1844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1845
- */a(Ws);let Ys=0;function Ks(){return Ys++}
1845
+ */l($s);let Ks=0;function Zs(){return Ks++}
1846
1846
  /**
1847
1847
  * @license
1848
1848
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1851,7 +1851,7 @@ function $s(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
1851
1851
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1852
1852
  * Code distributed by Google as part of the polymer project is also
1853
1853
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1854
- */let Zs=0,Js=0;const Qs=[];let Xs=!1;const to={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},eo={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},io={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},so={run(t){Xs||(Xs=!0,queueMicrotask((()=>function(){Xs=!1;const t=Qs.length;for(let e=0;e<t;e++){const t=Qs[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Qs.splice(0,t),Js+=t}()))),Qs.push(t);const e=Zs;return Zs+=1,e},cancel(t){const e=t-Js;if(e>=0){if(!Qs[e])throw new Error(`invalid async handle: ${t}`);Qs[e]=null}}},oo=new Set;class ro{static debounce(t,e,i){return t instanceof ro?t._cancelAsync():t=new ro,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,oo.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),oo.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function no(t){oo.add(t)}function ao(){const t=Boolean(oo.size);return oo.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t}const lo=()=>{let t;do{t=ao()}while(t)},ho=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),co=ho&&ho[1]>=8,uo={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){(t%=this._physicalCount)<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems(((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems(((i,s)=>{e<this._scrollBottom&&(t=s),e+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const t=Math.round(e/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),so)}},_getReusables(t){let e,i,s;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._scrollPosition,c=this._scrollBottom;for(t?(e=this._physicalStart,i=d-h):(e=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-c);s=this._getPhysicalSizeIncrement(e),i-=s,!(o.length>=l||i<=r);)if(t){if(a+o.length+1>=this._virtualCount)break;if(h+s>=d-this._scrollOffset)break;o.push(e),h+=s,e=(e+1)%l}else{if(n-o.length<=0)break;if(h+this._physicalSize-s<=c)break;o.push(e),h-=s,e=0===e?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&0===t.length||0===this._physicalCount)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){const t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),io):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),so))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,eo))},_iterateItems(t,e){let i,s,o,r;if(2===arguments.length&&e){for(r=0;r<e.length;r++)if(i=e[r],s=this._computeVidx(i),null!=(o=t.call(this,i,s)))return o}else{for(i=this._physicalStart,s=this._virtualStart;i<this._physicalCount;i++,s++)if(null!=(o=t.call(this,i,s)))return o;for(i=0;i<this._physicalStart;i++,s++)if(null!=(o=t.call(this,i,s)))return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems((e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]}))},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;const e=this._scrollPosition;!co&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1)return;if(lo(),0===this._physicalCount)return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,s=0;const o=this._hiddenContentSize;for(;i<t&&s<=o;)s+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+s),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),eo)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){this._debouncers||(this._debouncers={}),this._debouncers[t]=ro.debounce(this._debouncers[t],i,e.bind(this)),no(this._debouncers[t])}},mo=1e3;
1854
+ */let Js=0,Qs=0;const Xs=[];let to=!1;const eo={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},io={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},so={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},oo={run(t){to||(to=!0,queueMicrotask((()=>function(){to=!1;const t=Xs.length;for(let e=0;e<t;e++){const t=Xs[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Xs.splice(0,t),Qs+=t}()))),Xs.push(t);const e=Js;return Js+=1,e},cancel(t){const e=t-Qs;if(e>=0){if(!Xs[e])throw new Error(`invalid async handle: ${t}`);Xs[e]=null}}},ro=new Set;class no{static debounce(t,e,i){return t instanceof no?t._cancelAsync():t=new no,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,ro.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),ro.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function ao(t){ro.add(t)}function lo(){const t=Boolean(ro.size);return ro.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t}const ho=()=>{let t;do{t=lo()}while(t)},co=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),uo=co&&co[1]>=8,mo={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){(t%=this._physicalCount)<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems(((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems(((i,s)=>{e<this._scrollBottom&&(t=s),e+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const t=Math.round(e/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),oo)}},_getReusables(t){let e,i,s;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._scrollPosition,c=this._scrollBottom;for(t?(e=this._physicalStart,i=d-h):(e=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-c);s=this._getPhysicalSizeIncrement(e),i-=s,!(o.length>=l||i<=r);)if(t){if(a+o.length+1>=this._virtualCount)break;if(h+s>=d-this._scrollOffset)break;o.push(e),h+=s,e=(e+1)%l}else{if(n-o.length<=0)break;if(h+this._physicalSize-s<=c)break;o.push(e),h-=s,e=0===e?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&0===t.length||0===this._physicalCount)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){const t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),so):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),oo))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,io))},_iterateItems(t,e){let i,s,o,r;if(2===arguments.length&&e){for(r=0;r<e.length;r++)if(i=e[r],s=this._computeVidx(i),null!=(o=t.call(this,i,s)))return o}else{for(i=this._physicalStart,s=this._virtualStart;i<this._physicalCount;i++,s++)if(null!=(o=t.call(this,i,s)))return o;for(i=0;i<this._physicalStart;i++,s++)if(null!=(o=t.call(this,i,s)))return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems((e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]}))},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;const e=this._scrollPosition;!uo&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1)return;if(ho(),0===this._physicalCount)return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,s=0;const o=this._hiddenContentSize;for(;i<t&&s<=o;)s+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+s),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),io)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){this._debouncers||(this._debouncers={}),this._debouncers[t]=no.debounce(this._debouncers[t],i,e.bind(this)),ao(this._debouncers[t])}},po=1e3;
1855
1855
  /**
1856
1856
  * @license
1857
1857
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -1860,12 +1860,12 @@ function $s(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
1860
1860
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1861
1861
  * Code distributed by Google as part of the polymer project is also
1862
1862
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1863
- */class po{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:r}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=r,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),new ResizeObserver((([{contentRect:t}])=>{const e=0===t.width&&0===t.height;!e&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=e})).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(t=>this.__onWheel(t))),this.scrollTarget.addEventListener("virtualizer-element-focused",(t=>this.__onElementFocused(t))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((t=>t.__virtualizerPlaceholder))}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<mo?(i=t,this._vidxOffset=0):(i=mo,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),lo(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach((s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))})),this.__afterElementsUpdated(i)}_updateMetrics(t){lo();let e=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((t=>{i+=this._physicalSizes[t],this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),e+=this._physicalSizes[t],this._physicalAverageCount+=this._physicalSizes[t]?1:0}),t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),this.__preventElementUpdates||t.__lastUpdatedIndex===e&&!i||(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach((t=>{const e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ro.debounce(this.__placeholderClearDebouncer,eo,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const t=this.__elementHeightQueue.filter((t=>void 0!==t));this.__placeholderHeight=Math.round(t.reduce(((t,e)=>t+e),0)/t.length)}})),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find((e=>e.__virtualIndex===t));return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;let e,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),lo(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);void 0!==i&&void 0!==s&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),lo(),this._debounce("_update",this._update,so)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=Boolean("rtl"===t.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach((t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t)})),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems(((t,i)=>{const s=this._physicalItems[t];s.hidden=i>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),e.push(s))}),t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(t,e,i,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find((t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return 0===e.indexOf(t)&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=ro.debounce(this.__fixInvalidItemPositioningDebouncer,to.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=ro.debounce(this.__scrollReorderDebouncer,to.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||t&&this.adjustedLastVisibleIndex!==this.size-1){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=e,void t.preventDefault();e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ro.debounce(this.__debouncerWheelAnimationFrame,eo,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ro.debounce(this._debouncerIgnoreNewWheel,to.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){return t!==this.scrollTarget&&t!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(t,e,i)||-1===["auto","scroll"].indexOf(getComputedStyle(t).overflow))||(t!==this&&t.parentElement?this._hasScrolledAncestor(t.parentElement,e,i):void 0))}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage);super._increasePoolIfNeeded(Math.max(t,Math.min(100,e-this._physicalCount)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((t=>!t.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const s=i.__virtualIndex-t,o=e.indexOf(i)-s;if(o>0)for(let t=0;t<o;t++)this.elementsContainer.appendChild(e[t]);else if(o<0)for(let t=e.length+o;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(cs){const{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=t}))}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4)this._vidxOffset=Math.round(this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight)*e);else{const t=this._vidxOffset,i=mo,s=100;0===this._scrollTop?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(po.prototype,uo);class fo{constructor(t){this.__adapter=new po(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}
1863
+ */class fo{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:r}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=r,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),new ResizeObserver((([{contentRect:t}])=>{const e=0===t.width&&0===t.height;!e&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=e})).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(t=>this.__onWheel(t))),this.scrollTarget.addEventListener("virtualizer-element-focused",(t=>this.__onElementFocused(t))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((t=>t.__virtualizerPlaceholder))}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<po?(i=t,this._vidxOffset=0):(i=po,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),ho(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach((s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))})),this.__afterElementsUpdated(i)}_updateMetrics(t){ho();let e=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((t=>{i+=this._physicalSizes[t],this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),e+=this._physicalSizes[t],this._physicalAverageCount+=this._physicalSizes[t]?1:0}),t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),this.__preventElementUpdates||t.__lastUpdatedIndex===e&&!i||(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach((t=>{const e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=no.debounce(this.__placeholderClearDebouncer,io,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const t=this.__elementHeightQueue.filter((t=>void 0!==t));this.__placeholderHeight=Math.round(t.reduce(((t,e)=>t+e),0)/t.length)}})),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find((e=>e.__virtualIndex===t));return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;let e,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),ho(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);void 0!==i&&void 0!==s&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),ho(),this._debounce("_update",this._update,oo)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=Boolean("rtl"===t.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach((t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t)})),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems(((t,i)=>{const s=this._physicalItems[t];s.hidden=i>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),e.push(s))}),t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(t,e,i,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find((t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return 0===e.indexOf(t)&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=no.debounce(this.__fixInvalidItemPositioningDebouncer,eo.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=no.debounce(this.__scrollReorderDebouncer,eo.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||t&&this.adjustedLastVisibleIndex!==this.size-1){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=e,void t.preventDefault();e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=no.debounce(this.__debouncerWheelAnimationFrame,io,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=no.debounce(this._debouncerIgnoreNewWheel,eo.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){return t!==this.scrollTarget&&t!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(t,e,i)||-1===["auto","scroll"].indexOf(getComputedStyle(t).overflow))||(t!==this&&t.parentElement?this._hasScrolledAncestor(t.parentElement,e,i):void 0))}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage);super._increasePoolIfNeeded(Math.max(t,Math.min(100,e-this._physicalCount)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((t=>!t.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const s=i.__virtualIndex-t,o=e.indexOf(i)-s;if(o>0)for(let t=0;t<o;t++)this.elementsContainer.appendChild(e[t]);else if(o<0)for(let t=e.length+o;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(us){const{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=t}))}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4)this._vidxOffset=Math.round(this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight)*e);else{const t=this._vidxOffset,i=po,s=100;0===this._scrollTop?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(fo.prototype,mo);class go{constructor(t){this.__adapter=new fo(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}
1864
1864
  /**
1865
1865
  * @license
1866
1866
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1867
1867
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1868
- */const go=class{toString(){return""}},vo=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Ks()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const s=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!s||t!==s.index)return;const o=s.getBoundingClientRect(),r=this.getBoundingClientRect(),n=o.bottom-r.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof go)&&(i&&void 0!==t&&void 0!==e?$s(i,t)===$s(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new fo({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],s=this.focusedIndex,o=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:o,renderer:this.renderer,focused:!this.loading&&s===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",o.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof go&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
1868
+ */const vo=class{toString(){return""}},_o=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Zs()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const s=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!s||t!==s.index)return;const o=s.getBoundingClientRect(),r=this.getBoundingClientRect(),n=o.bottom-r.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof vo)&&(i&&void 0!==t&&void 0!==e?Ys(i,t)===Ys(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new go({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],s=this.focusedIndex,o=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:o,renderer:this.renderer,focused:!this.loading&&s===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",o.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof vo&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
1869
1869
  /**
1870
1870
  * @license
1871
1871
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
@@ -1875,7 +1875,7 @@ function $s(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
1875
1875
  * @license
1876
1876
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1877
1877
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1878
- */class _o extends(vo(Yi)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Wi`
1878
+ */class bo extends(_o(Ki)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return $i`
1879
1879
  <style>
1880
1880
  :host {
1881
1881
  display: block;
@@ -1902,7 +1902,7 @@ function $s(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
1902
1902
  <div id="selector">
1903
1903
  <slot></slot>
1904
1904
  </div>
1905
- `}}a(_o);const bo=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,yo=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function wo(t,e){if("function"!=typeof t)return;const i=bo.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function xo(){
1905
+ `}}l(bo);const yo=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,wo=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function xo(t,e){if("function"!=typeof t)return;const i=yo.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function ko(){
1906
1906
  /*! vaadin-dev-mode:start
1907
1907
  (function () {
1908
1908
  'use strict';
@@ -2381,90 +2381,90 @@ try {
2381
2381
 
2382
2382
  }());
2383
2383
 
2384
- vaadin-dev-mode:end **/}let ko;void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(yo?!(yo&&Object.keys(yo).map((t=>yo[t])).filter((t=>t.productionMode)).length>0):!wo((function(){return!0})))}catch(t){return!1}}()),
2384
+ vaadin-dev-mode:end **/}let Po;void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(wo?!(wo&&Object.keys(wo).map((t=>wo[t])).filter((t=>t.productionMode)).length>0):!xo((function(){return!0})))}catch(t){return!1}}()),
2385
2385
  /**
2386
2386
  * @license
2387
2387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2388
2388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2389
2389
  */
2390
- window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)wo(t,e)}(xo)};const Po=new Set,Co=t=>class extends(Qi(t)){static finalize(){super.finalize();const{is:t}=this;t&&!Po.has(t)&&(window.Vaadin.registrations.push(this),Po.add(t),window.Vaadin.developmentModeCallback&&(ko=ro.debounce(ko,io,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),no(ko)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
2390
+ window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)xo(t,e)}(ko)};const Co=new Set,Ao=t=>class extends(Xi(t)){static finalize(){super.finalize();const{is:t}=this;t&&!Co.has(t)&&(window.Vaadin.registrations.push(this),Co.add(t),window.Vaadin.developmentModeCallback&&(Po=no.debounce(Po,so,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),ao(Po)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
2391
2391
  /**
2392
2392
  * @license
2393
2393
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2394
2394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2395
- */;class Ao{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);-1===r?i.push(e):r!==o&&s.push(e)})),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}
2395
+ */;class zo{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);-1===r?i.push(e):r!==o&&s.push(e)})),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}
2396
2396
  /**
2397
2397
  * @license
2398
2398
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2399
2399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2400
- */class zo extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Ks()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a,uniqueIdPrefix:l}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof r&&r,this.slotInitializer=o,r&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(""!==e&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new Ao(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],s=t.filter((t=>!function(t){return t.nodeType===Node.TEXT_NODE&&""===t.textContent.trim()}(t)&&!i.includes(t)));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...s].filter((t=>t!==this.defaultNode)),s.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))}))}}
2400
+ */class Eo extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Zs()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a,uniqueIdPrefix:l}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof r&&r,this.slotInitializer=o,r&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(""!==e&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new zo(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],s=t.filter((t=>!function(t){return t.nodeType===Node.TEXT_NODE&&""===t.textContent.trim()}(t)&&!i.includes(t)));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...s].filter((t=>t!==this.defaultNode)),s.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))}))}}
2401
2401
  /**
2402
2402
  * @license
2403
2403
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2404
2404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2405
- */class Eo extends zo{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
2405
+ */class So extends Eo{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
2406
2406
  /**
2407
2407
  * @license
2408
2408
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2409
2409
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2410
- */const So=ae((t=>class extends t{get _keyboardActive(){return xs()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),Io=ae((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),To=t=>class extends(Io(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
2410
+ */const Io=le((t=>class extends t{get _keyboardActive(){return ks()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),To=le((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Oo=t=>class extends(To(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
2411
2411
  /**
2412
2412
  * @license
2413
2413
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2414
2414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2415
- */,Oo=ae((t=>class extends(So(To(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),No=ae((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),jo=new WeakMap,Fo=ae((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return jo.has(t)||jo.set(t,new Set),jo.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),Bo=ae((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Mo=t=>class extends(Bo(No(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),us||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
2415
+ */,No=le((t=>class extends(Io(Oo(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),jo=le((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),Fo=new WeakMap,Bo=le((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return Fo.has(t)||Fo.set(t,new Set),Fo.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),Mo=le((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Lo=t=>class extends(Mo(jo(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),ms||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
2416
2416
  /**
2417
2417
  * @license
2418
2418
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2419
2419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2420
- */,Lo=new Map;
2420
+ */,Do=new Map;
2421
2421
  /**
2422
2422
  * @license
2423
2423
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2424
2424
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2425
- */function Do(t){return Lo.has(t)||Lo.set(t,new WeakMap),Lo.get(t)}function Uo(t,e){t&&t.removeAttribute(e)}function Vo(t,e){if(!t||!e)return;const i=Do(e);if(i.has(t))return;const s=Ls(t.getAttribute(e));i.set(t,new Set(s))}function Ro(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:o,fromUser:r}=i,n=Do(e),a=n.get(t);if(!r&&a)return o&&a.delete(o),void(s&&a.add(s));r&&(a?s||n.delete(t):Vo(t,e),Uo(t,e)),function(t,e,i){const s=Ls(t.getAttribute(e));s.delete(i),0!==s.size?t.setAttribute(e,Ds(s)):t.removeAttribute(e)}(t,e,o);const l=s||Ds(a);l&&Us(t,e,l)}
2425
+ */function Uo(t){return Do.has(t)||Do.set(t,new WeakMap),Do.get(t)}function Vo(t,e){t&&t.removeAttribute(e)}function Ro(t,e){if(!t||!e)return;const i=Uo(e);if(i.has(t))return;const s=Ds(t.getAttribute(e));i.set(t,new Set(s))}function qo(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:o,fromUser:r}=i,n=Uo(e),a=n.get(t);if(!r&&a)return o&&a.delete(o),void(s&&a.add(s));r&&(a?s||n.delete(t):Ro(t,e),Vo(t,e)),function(t,e,i){const s=Ds(t.getAttribute(e));s.delete(i),0!==s.size?t.setAttribute(e,Us(s)):t.removeAttribute(e)}(t,e,o);const l=s||Us(a);l&&Vs(t,e,l)}
2426
2426
  /**
2427
2427
  * @license
2428
2428
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2429
2429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2430
2430
  */
2431
- class qo{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){var e;this.__target&&(t?(Vo(e=this.__target,"aria-labelledby"),Uo(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Do(e),s=i.get(t);s&&0!==s.size?Us(t,e,Ds(s)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Ro(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Ro(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ro(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
2431
+ class Go{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){var e;this.__target&&(t?(Ro(e=this.__target,"aria-labelledby"),Vo(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Uo(e),s=i.get(t);s&&0!==s.size?Vs(t,e,Us(s)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){qo(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){qo(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){qo(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
2432
2432
  /**
2433
2433
  * @license
2434
2434
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2435
2435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2436
- */const Go=document.createElement("div");let Ho;Go.style.position="fixed",Go.style.clip="rect(0px, 0px, 0px, 0px)",Go.setAttribute("aria-live","polite"),document.body.appendChild(Go);
2436
+ */const Ho=document.createElement("div");let Wo;Ho.style.position="fixed",Ho.style.clip="rect(0px, 0px, 0px, 0px)",Ho.setAttribute("aria-live","polite"),document.body.appendChild(Ho);
2437
2437
  /**
2438
2438
  * @license
2439
2439
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2440
2440
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2441
2441
  */
2442
- class Wo extends zo{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return!!t&&(t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&""!==t.textContent.trim())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType!==Node.ELEMENT_NODE||this.multiple&&this.nodes&&t!==this.nodes[0]||t.id||(t.id=this.defaultId)}}
2442
+ class $o extends Eo{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return!!t&&(t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&""!==t.textContent.trim())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType!==Node.ELEMENT_NODE||this.multiple&&this.nodes&&t!==this.nodes[0]||t.id||(t.id=this.defaultId)}}
2443
2443
  /**
2444
2444
  * @license
2445
2445
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2446
2446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2447
- */class $o extends Wo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,s=Boolean(i&&e&&""!==e.trim());t&&(t.textContent=s?e:"",t.hidden=!s,s&&function(t,e={}){const i=e.mode||"polite",s=void 0===e.timeout?150:e.timeout;"alert"===i?(Go.removeAttribute("aria-live"),Go.removeAttribute("role"),Ho=ro.debounce(Ho,eo,(()=>{Go.setAttribute("role","alert")}))):(Ho&&Ho.cancel(),Go.removeAttribute("role"),Go.setAttribute("aria-live",i)),Go.textContent="",setTimeout((()=>{Go.textContent=t}),s)}(e,{mode:"assertive"})),super.updateDefaultNode(t)}}
2447
+ */class Yo extends $o{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,s=Boolean(i&&e&&""!==e.trim());t&&(t.textContent=s?e:"",t.hidden=!s,s&&function(t,e={}){const i=e.mode||"polite",s=void 0===e.timeout?150:e.timeout;"alert"===i?(Ho.removeAttribute("aria-live"),Ho.removeAttribute("role"),Wo=no.debounce(Wo,io,(()=>{Ho.setAttribute("role","alert")}))):(Wo&&Wo.cancel(),Ho.removeAttribute("role"),Ho.setAttribute("aria-live",i)),Ho.textContent="",setTimeout((()=>{Ho.textContent=t}),s)}(e,{mode:"assertive"})),super.updateDefaultNode(t)}}
2448
2448
  /**
2449
2449
  * @license
2450
2450
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2451
2451
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2452
- */class Yo extends Wo{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&""!==t.trim()){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
2452
+ */class Ko extends $o{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&""!==t.trim()){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
2453
2453
  /**
2454
2454
  * @license
2455
2455
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2456
2456
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2457
- */class Ko extends Wo{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&""!==t.trim()){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
2457
+ */class Zo extends $o{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&""!==t.trim()){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
2458
2458
  /**
2459
2459
  * @license
2460
2460
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2461
2461
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2462
- */const Zo=ae((t=>class extends(Ts(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ko(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),Jo=ae((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Qo=t=>class extends(Jo(Zo(Ts(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new qo(this),this._helperController=new Yo(this),this._errorController=new $o(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
2462
+ */const Jo=le((t=>class extends(Os(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Zo(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),Qo=le((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Xo=t=>class extends(Qo(Jo(Os(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Go(this),this._helperController=new Ko(this),this._errorController=new Yo(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
2463
2463
  /**
2464
2464
  * @license
2465
2465
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2466
2466
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2467
- */,Xo=ae((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),tr=ae((t=>class extends(Xo(Jo(Bo(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),er=t=>class extends(Fo(Oo(tr(Qo(Mo(No(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ro.debounce(this._preventInputDebouncer,to.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
2467
+ */,tr=le((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),er=le((t=>class extends(tr(Qo(Mo(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),ir=t=>class extends(Bo(No(er(Xo(Lo(jo(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=no.debounce(this._preventInputDebouncer,eo.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
2468
2468
  /**
2469
2469
  * @license
2470
2470
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -2474,22 +2474,22 @@ class Wo extends zo{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}i
2474
2474
  * @license
2475
2475
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2476
2476
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2477
- */class ir extends zo{constructor(t,e,i={}){const{uniqueIdPrefix:s}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:s})}}
2477
+ */class sr extends Eo{constructor(t,e,i={}){const{uniqueIdPrefix:s}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:s})}}
2478
2478
  /**
2479
2479
  * @license
2480
2480
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2481
2481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2482
- */class sr{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)})),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2482
+ */class or{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)})),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2483
2483
  /**
2484
2484
  * @license
2485
2485
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2486
2486
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2487
- */const or=t=>class extends(tr(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
2487
+ */const rr=t=>class extends(er(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
2488
2488
  /**
2489
2489
  * @license
2490
2490
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2491
2491
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2492
- */,rr=[p`
2492
+ */,nr=[f`
2493
2493
  :host {
2494
2494
  display: inline-flex;
2495
2495
  outline: none;
@@ -2528,7 +2528,7 @@ class Wo extends zo{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}i
2528
2528
  * @license
2529
2529
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2530
2530
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2531
- */,p`
2531
+ */,f`
2532
2532
  [class$='container'] {
2533
2533
  display: flex;
2534
2534
  flex-direction: column;
@@ -2541,7 +2541,7 @@ class Wo extends zo{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}i
2541
2541
  * @license
2542
2542
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2543
2543
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2544
- */,p`
2544
+ */,f`
2545
2545
  [part='clear-button'] {
2546
2546
  display: none;
2547
2547
  cursor: default;
@@ -2565,27 +2565,27 @@ class Wo extends zo{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}i
2565
2565
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2566
2566
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2567
2567
  */
2568
- function nr(t,e,i=0){let s=e;for(const e of t.subCaches){const t=e.parentCacheIndex;if(s<=t)break;if(s<=t+e.flatSize)return nr(e,s-t-1,i+1);s-=e.flatSize}return{cache:t,item:t.items[s],index:s,page:Math.floor(s/t.pageSize),level:i}}function ar({getItemId:t},e,i,s=0,o=0){for(let r=0;r<e.items.length;r++){const n=e.items[r];if(n&&t(n)===t(i))return{cache:e,level:s,item:n,index:r,page:Math.floor(r/e.pageSize),subCache:e.getSubCache(r),flatIndex:o+e.getFlatIndex(r)}}for(const r of e.subCaches){const n=ar({getItemId:t},r,i,s+1,o+e.getFlatIndex(r.parentCacheIndex)+1);if(n)return n}}function lr(t,[e,...i],s=0){e===1/0&&(e=t.size-1);const o=t.getFlatIndex(e),r=t.getSubCache(e);return r&&r.flatSize>0&&i.length?lr(r,i,s+o+1):s+o}
2568
+ function ar(t,e,i=0){let s=e;for(const e of t.subCaches){const t=e.parentCacheIndex;if(s<=t)break;if(s<=t+e.flatSize)return ar(e,s-t-1,i+1);s-=e.flatSize}return{cache:t,item:t.items[s],index:s,page:Math.floor(s/t.pageSize),level:i}}function lr({getItemId:t},e,i,s=0,o=0){for(let r=0;r<e.items.length;r++){const n=e.items[r];if(n&&t(n)===t(i))return{cache:e,level:s,item:n,index:r,page:Math.floor(r/e.pageSize),subCache:e.getSubCache(r),flatIndex:o+e.getFlatIndex(r)}}for(const r of e.subCaches){const n=lr({getItemId:t},r,i,s+1,o+e.getFlatIndex(r.parentCacheIndex)+1);if(n)return n}}function hr(t,[e,...i],s=0){e===1/0&&(e=t.size-1);const o=t.getFlatIndex(e),r=t.getSubCache(e);return r&&r.flatSize>0&&i.length?hr(r,i,s+o+1):s+o}
2569
2569
  /**
2570
2570
  * @license
2571
2571
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2572
2572
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2573
- */class hr{context;pageSize;items=[];pendingRequests={};__subCacheByIndex={};__size=0;__flatSize=0;constructor(t,e,i,s,o){this.context=t,this.pageSize=e,this.size=i,this.parentCache=s,this.parentCacheIndex=o,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((t=>t.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){if(this.__size!==t){if(this.__size=t,void 0!==this.context.placeholder){this.items.length=t||0;for(let e=0;e<t;e++)this.items[e]||=this.context.placeholder}Object.keys(this.pendingRequests).forEach((t=>{parseInt(t)*this.pageSize>=this.size&&delete this.pendingRequests[t]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((t,e)=>(e.recalculateFlatSize(),t+e.flatSize)),0):0}setPage(t,e){const i=t*this.pageSize;e.forEach(((t,e)=>{const s=i+e;(void 0===this.size||s<this.size)&&(this.items[s]=t)}))}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(t){const e=new hr(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce(((t,i)=>e>i.parentCacheIndex?t+i.flatSize:t),e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=nr(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=nr(this,t);return{cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}
2573
+ */class dr{context;pageSize;items=[];pendingRequests={};__subCacheByIndex={};__size=0;__flatSize=0;constructor(t,e,i,s,o){this.context=t,this.pageSize=e,this.size=i,this.parentCache=s,this.parentCacheIndex=o,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((t=>t.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){if(this.__size!==t){if(this.__size=t,void 0!==this.context.placeholder){this.items.length=t||0;for(let e=0;e<t;e++)this.items[e]||=this.context.placeholder}Object.keys(this.pendingRequests).forEach((t=>{parseInt(t)*this.pageSize>=this.size&&delete this.pendingRequests[t]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((t,e)=>(e.recalculateFlatSize(),t+e.flatSize)),0):0}setPage(t,e){const i=t*this.pageSize;e.forEach(((t,e)=>{const s=i+e;(void 0===this.size||s<this.size)&&(this.items[s]=t)}))}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(t){const e=new dr(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce(((t,i)=>e>i.parentCacheIndex?t+i.flatSize:t),e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=ar(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=ar(this,t);return{cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}
2574
2574
  /**
2575
2575
  * @license
2576
2576
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2577
2577
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2578
- */class dr extends EventTarget{host;dataProvider;dataProviderParams;pageSize;isExpanded;getItemId;rootCache;placeholder;isPlaceholder;constructor(t,{size:e,pageSize:i,isExpanded:s,getItemId:o,isPlaceholder:r,placeholder:n,dataProvider:a,dataProviderParams:l}){super(),this.host=t,this.pageSize=i,this.getItemId=o,this.isExpanded=s,this.placeholder=n,this.isPlaceholder=r,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(e)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return nr(this.rootCache,t)}getItemContext(t){return ar({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return lr(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:e,page:i,item:s}=this.getFlatIndexContext(t);this.__isItemLoaded(s)||this.__loadCachePage(e,i)}ensureFlatIndexHierarchy(t){const{cache:e,item:i,index:s}=this.getFlatIndexContext(t);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!e.getSubCache(s)){const t=e.createSubCache(s);this.__loadCachePage(t,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new hr(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,e){if(!this.dataProvider||t.pendingRequests[e])return;let i={page:e,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(i={...i,...this.dataProviderParams()});const s=(o,r)=>{t.pendingRequests[e]===s&&(void 0!==r?t.size=r:i.parentItem&&(t.size=o.length),t.setPage(e,o),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[e],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[e]=s,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,s)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}
2578
+ */class cr extends EventTarget{host;dataProvider;dataProviderParams;pageSize;isExpanded;getItemId;rootCache;placeholder;isPlaceholder;constructor(t,{size:e,pageSize:i,isExpanded:s,getItemId:o,isPlaceholder:r,placeholder:n,dataProvider:a,dataProviderParams:l}){super(),this.host=t,this.pageSize=i,this.getItemId=o,this.isExpanded=s,this.placeholder=n,this.isPlaceholder=r,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(e)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return ar(this.rootCache,t)}getItemContext(t){return lr({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return hr(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:e,page:i,item:s}=this.getFlatIndexContext(t);this.__isItemLoaded(s)||this.__loadCachePage(e,i)}ensureFlatIndexHierarchy(t){const{cache:e,item:i,index:s}=this.getFlatIndexContext(t);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!e.getSubCache(s)){const t=e.createSubCache(s);this.__loadCachePage(t,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new dr(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,e){if(!this.dataProvider||t.pendingRequests[e])return;let i={page:e,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(i={...i,...this.dataProviderParams()});const s=(o,r)=>{t.pendingRequests[e]===s&&(void 0!==r?t.size=r:i.parentItem&&(t.size=o.length),t.setPage(e,o),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[e],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[e]=s,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,s)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}
2579
2579
  /**
2580
2580
  * @license
2581
2581
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2582
2582
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2583
- */const cr=t=>class extends t{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new dr(this,{placeholder:new go,isPlaceholder:t=>t instanceof go,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(t=>{if(!this._shouldFetchData())return;const e=t.detail.index;void 0!==e&&this.__dataProviderController.ensureFlatIndexLoaded(e)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){void 0!==this.__previousDataProviderFilter||""!==t?this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=t}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(t){this._shouldFetchData()&&t&&(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.items],this.__synchronizeControllerState(),this.opened||this._isInputFocused()||this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(t){const{rootCache:e}=this.__dataProviderController;e.size!==t&&(e.size=t,e.items=[...e.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:e}=this.__dataProviderController;e.items!==t&&(e.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,e){if(Math.floor(t)!==t||t<1)throw this.pageSize=e,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.dataProvider=e})),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(void 0!==this.items&&void 0!==this.dataProvider)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,e){if(t&&""!==e&&null==this.selectedItem){const t=this.__getItemIndexByValue(this.filteredItems,e);(t<0||!this._getItemLabel(this.filteredItems[t]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}}
2583
+ */const ur=t=>class extends t{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new cr(this,{placeholder:new vo,isPlaceholder:t=>t instanceof vo,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(t=>{if(!this._shouldFetchData())return;const e=t.detail.index;void 0!==e&&this.__dataProviderController.ensureFlatIndexLoaded(e)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){void 0!==this.__previousDataProviderFilter||""!==t?this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=t}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(t){this._shouldFetchData()&&t&&(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.items],this.__synchronizeControllerState(),this.opened||this._isInputFocused()||this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(t){const{rootCache:e}=this.__dataProviderController;e.size!==t&&(e.size=t,e.items=[...e.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:e}=this.__dataProviderController;e.items!==t&&(e.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,e){if(Math.floor(t)!==t||t<1)throw this.pageSize=e,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.dataProvider=e})),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(void 0!==this.items&&void 0!==this.dataProvider)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,e){if(t&&""!==e&&null==this.selectedItem){const t=this.__getItemIndexByValue(this.filteredItems,e);(t<0||!this._getItemLabel(this.filteredItems[t]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}}
2584
2584
  /**
2585
2585
  * @license
2586
2586
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2587
2587
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2588
- */,ur=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const s="string"==typeof t?t.split(" ").filter(Boolean):[];s.length>0&&i.add(...s),this.__previousClasses=s}}
2588
+ */,mr=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const s="string"==typeof t?t.split(" ").filter(Boolean):[];s.length>0&&i.add(...s),this.__previousClasses=s}}
2589
2589
  /**
2590
2590
  * @license
2591
2591
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -2596,17 +2596,17 @@ function nr(t,e,i=0){let s=e;for(const e of t.subCaches){const t=e.parentCacheIn
2596
2596
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2597
2597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2598
2598
  */
2599
- class mr{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
2599
+ class pr{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
2600
2600
  /**
2601
2601
  * @license
2602
2602
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2603
2603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2604
- */function pr(t){return null!=t}function fr(t,e){return t.findIndex((t=>!(t instanceof go)&&e(t)))}const gr=t=>class extends(ur(Ts(Jo(So(No(Bo(Io(t)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};var e;this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),e=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`),this.addController(new mr(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((t=>{t.requestContentUpdate()})))}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i),void 0!==e.filter&&this._filterChanged(e.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("opened-changed",(t=>{this._overlayOpened=t.detail.value})),this._overlayElement=t}_initScroller(t){const e=document.createElement(`${this._tagNamePrefix}-scroller`);e.owner=t||this,e.getItemLabel=this._getItemLabel.bind(this),e.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=t=>{t.innerHTML||t.appendChild(e)},i.requestContentUpdate(),this._scroller=e}_updateScroller(t,e,i,s,o,r,n,a,l,h){if(t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?e:[],opened:i,loading:s,selectedItem:o,itemIdPath:r,focusedIndex:n,renderer:a,theme:l,itemClassNameGenerator:h}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(t){}}_openedOrItemsChanged(t,e,i,s){this._overlayOpened=t&&(s||i||!(!e||!e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&As(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const i=this._getItemElements().find((e=>e.index===t));i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?this._isInputFocused()||us||this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?$s(this.itemLabelPath,t):void 0;return null==e&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?$s(this.itemValuePath,t):void 0;return void 0===e&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(t){if(!this._hasValidInputValue())return t.preventDefault(),void t.stopPropagation();this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("click",(()=>{us&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){this.loading&&!this.allowCustomValue||this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const t=this._inputElementValue;this._lastCustomValue=t;const e=new CustomEvent("custom-value-set",{detail:t,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(e),e.defaultPrevented||(this.value=t)}else this.allowCustomValue||this.opened||!e?this._revertInputValueToValue():this.value=this._getItemValue(e)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const e=this._inputElementValue,i={};this.filter===e?this._filterChanged(this.filter):i.filter=e,this.opened||this._isClearButton(t)||this.autoOpenDisabled||(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){"string"!=typeof t&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(null==t)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){""===t&&void 0===e||(pr(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.items=e})),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,e){if(!t)return t;const i=t.filter((t=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(t).toString().toLowerCase().indexOf(e)>-1)));return i}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;this.selectedItem=e>=0?this.filteredItems[e]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const e=this._dropdownItems;this._dropdownItems=t;const i=e?e[this._focusedIndex]:null,s=this.__getItemIndexByValue(t,this.value);null==this.selectedItem&&s>=0&&(this.selectedItem=t[s]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));this._focusedIndex=o>-1?o:this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return t&&pr(e)?fr(t,(t=>this._getItemValue(t)===e)):-1}__getItemIndexByLabel(t,e){return t&&e?fr(t,(t=>this._getItemLabel(t).toString().toLowerCase()===e.toString().toLowerCase())):-1}_overlaySelectedItemChanged(t){t.stopPropagation(),t.detail.item instanceof go||this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if(xs())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return!(t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`||t.relatedTarget===this._overlayElement&&(t.composedPath()[0].focus(),1))}_onTouchend(t){this.clearElement&&t.composedPath()[0]===this.clearElement&&(t.preventDefault(),this._onClearAction())}}
2604
+ */function fr(t){return null!=t}function gr(t,e){return t.findIndex((t=>!(t instanceof vo)&&e(t)))}const vr=t=>class extends(mr(Os(Qo(Io(jo(Mo(To(t)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};var e;this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),e=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`),this.addController(new pr(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((t=>{t.requestContentUpdate()})))}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i),void 0!==e.filter&&this._filterChanged(e.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("opened-changed",(t=>{this._overlayOpened=t.detail.value})),this._overlayElement=t}_initScroller(t){const e=document.createElement(`${this._tagNamePrefix}-scroller`);e.owner=t||this,e.getItemLabel=this._getItemLabel.bind(this),e.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=t=>{t.innerHTML||t.appendChild(e)},i.requestContentUpdate(),this._scroller=e}_updateScroller(t,e,i,s,o,r,n,a,l,h){if(t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?e:[],opened:i,loading:s,selectedItem:o,itemIdPath:r,focusedIndex:n,renderer:a,theme:l,itemClassNameGenerator:h}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(t){}}_openedOrItemsChanged(t,e,i,s){this._overlayOpened=t&&(s||i||!(!e||!e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&zs(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const i=this._getItemElements().find((e=>e.index===t));i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?this._isInputFocused()||ms||this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?Ys(this.itemLabelPath,t):void 0;return null==e&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?Ys(this.itemValuePath,t):void 0;return void 0===e&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(t){if(!this._hasValidInputValue())return t.preventDefault(),void t.stopPropagation();this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("click",(()=>{ms&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){this.loading&&!this.allowCustomValue||this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const t=this._inputElementValue;this._lastCustomValue=t;const e=new CustomEvent("custom-value-set",{detail:t,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(e),e.defaultPrevented||(this.value=t)}else this.allowCustomValue||this.opened||!e?this._revertInputValueToValue():this.value=this._getItemValue(e)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const e=this._inputElementValue,i={};this.filter===e?this._filterChanged(this.filter):i.filter=e,this.opened||this._isClearButton(t)||this.autoOpenDisabled||(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){"string"!=typeof t&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(null==t)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){""===t&&void 0===e||(fr(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.items=e})),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,e){if(!t)return t;const i=t.filter((t=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(t).toString().toLowerCase().indexOf(e)>-1)));return i}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;this.selectedItem=e>=0?this.filteredItems[e]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const e=this._dropdownItems;this._dropdownItems=t;const i=e?e[this._focusedIndex]:null,s=this.__getItemIndexByValue(t,this.value);null==this.selectedItem&&s>=0&&(this.selectedItem=t[s]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));this._focusedIndex=o>-1?o:this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return t&&fr(e)?gr(t,(t=>this._getItemValue(t)===e)):-1}__getItemIndexByLabel(t,e){return t&&e?gr(t,(t=>this._getItemLabel(t).toString().toLowerCase()===e.toString().toLowerCase())):-1}_overlaySelectedItemChanged(t){t.stopPropagation(),t.detail.item instanceof vo||this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if(ks())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return!(t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`||t.relatedTarget===this._overlayElement&&(t.composedPath()[0].focus(),1))}_onTouchend(t){this.clearElement&&t.composedPath()[0]===this.clearElement&&(t.preventDefault(),this._onClearAction())}}
2605
2605
  /**
2606
2606
  * @license
2607
2607
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2608
2608
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2609
- */;Pt("vaadin-combo-box",rr,{moduleId:"vaadin-combo-box-styles"});class vr extends(cr(gr(or(er(St(Co(Yi))))))){static get is(){return"vaadin-combo-box"}static get template(){return Wi`
2609
+ */;Ct("vaadin-combo-box",nr,{moduleId:"vaadin-combo-box-styles"});class _r extends(ur(vr(rr(ir(It(Ao(Ki))))))){static get is(){return"vaadin-combo-box"}static get template(){return $i`
2610
2610
  <style>
2611
2611
  :host([opened]) {
2612
2612
  pointer-events: auto;
@@ -2651,4 +2651,4 @@ class mr{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
2651
2651
  ></vaadin-combo-box-overlay>
2652
2652
 
2653
2653
  <slot name="tooltip"></slot>
2654
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ir(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new sr(this.inputElement,this._labelController)),this._tooltipController=new Eo(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}a(vr);const _r=class{constructor(e){t(this,e),this.getPhoneCodes=()=>{const t=new URL("v1/player/operatorSupportedPhoneCodes",this.endpoint);return fetch(t.href).then((t=>t.json())).then((t=>{this.phoneCodes=t.phoneCodes.map((t=>({label:t,value:t})))})).catch((t=>console.log("Failed to fetch phone codes:",t)))},this.handleAutofillCredentials=t=>{this.contactValue=t.detail.userNameEmail,this.passwordValue=t.detail.userPassword,this.handleLogin()},this.getLoginToken=()=>{const t=new URL("api/v1/players/password-management/auth/password/verify",this.endpoint),e={"Content-Type":"application/json"};this.captchaData.isEnabled&&(e["X-Captcha-Response"]=this.captchaData.token);const i={method:"POST",headers:e,body:JSON.stringify({contact:this.contactValue,password:this.passwordValue})};return new Promise(((e,s)=>{fetch(t.href,i).then((t=>t.json())).then((t=>{var i,o;if(t.token)return this.apiErrorMessage="",e(t.token);{const e=null===(i=null==t?void 0:t.thirdPartyResponse)||void 0===i?void 0:i.errorCode;if("GmErr_USER_AUTH_FAILED"===e&&"true"===this.loginByPhoneNumber)this.apiErrorMessage=n("AuthFailedPhoneNumber",this.lang);else{const i=null==t?void 0:t.message;this.apiErrorMessage=n(`${e}`,this.lang)||n(`${i}`,this.lang)||(null===(o=null==t?void 0:t.thirdPartyResponse)||void 0===o?void 0:o.message)||n("genericError",this.lang)}return s(this.apiErrorMessage)}}))}))},this.loginPlayer=t=>{const e=new URL("api/v2/gm/legislation/login",this.endpoint),i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t,method:"login"})};return new Promise(((t,s)=>{fetch(e.href,i).then((t=>t.json()),(t=>s(t))).then((e=>{var i,o;if(e.error){const t=null===(i=null==e?void 0:e.thirdPartyResponse)||void 0===i?void 0:i.errorCode;if("GmErr_USER_AUTH_FAILED"===t&&"true"===this.loginByPhoneNumber)this.apiErrorMessage=n("AuthFailedPhoneNumber",this.lang);else{const i=null==e?void 0:e.message;this.apiErrorMessage=n(`${t}`,this.lang)||n(`${i}`,this.lang)||(null===(o=null==e?void 0:e.thirdPartyResponse)||void 0===o?void 0:o.message)||n("genericError",this.lang)}return s(this.apiErrorMessage)}return e.sessionId&&e.playerId?t(e):s(e)}))}))},this.handleLogin=()=>{this.isLoading=!0,this.getLoginToken().then((t=>{this.loginPlayer(t).then((t=>{var e;(null===(e=t.sessionBlockers)||void 0===e?void 0:e.includes("has-to-set-consents"))&&window.postMessage({type:"PlayerActions"},window.location.href),window.postMessage({type:"UserSessionID",session:t.sessionId,userid:t.playerId},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage",this.lang)}},window.location.href),this.apiErrorMessage=""})).catch((t=>{console.error(`Legislation login failed: ${t.message}`,t.errors),this.apiErrorMessage=this.apiErrorMessage||n("genericError",this.lang),this.sendErrorNotification(this.apiErrorMessage)})).finally((()=>this.isLoading=!1))})).catch((t=>{console.error(t),this.sendErrorNotification(this.apiErrorMessage),this.isLoading=!1})),this.dispatchUpdateLoginCredentialsEvent()},this.handleInputChange=(t,e)=>{const i=t.target.value;switch(e){case"user":this.contactValue=i,this.isContactValid=this.validate("user",this.contactValue);break;case"phone":this.contactValue=i,this.isContactValid=this.validate("phone",this.contactValue);break;case"prefix":this.phoneCodeValue=i,this.isContactValid=this.validate("phone",this.contactValue);break;case"password":this.passwordValue=i,this.isPasswordValid=this.validate("password",i)}},this.handleInputChangePartial=t=>e=>this.handleInputChange(e,t),this.validate=(t,e)=>{let i;switch(t){case"user":return i=new RegExp(this.userEmailRegex,this.userEmailRegexOptions),e.length<=3||i.test(e);case"phone":return i=new RegExp(this.userPhoneRegex,this.userPhoneRegexOptions),e.length<=3||i.test(e)&&Boolean(this.phoneCodeValue);case"password":return i=new RegExp(this.passwordRegex,this.passwordRegexOptions),e.length<=3||i.test(e)}},this.isSubmitDisabled=()=>!this.isContactValid||!this.contactValue||"true"===this.loginByPhoneNumber&&!this.phoneCodeValue||!this.passwordValue||!this.isPasswordValid||this.isLoading||this.captchaData.isEnabled&&!this.captchaData.token,this.handleSubmit=t=>{"Enter"!==t.key||this.isSubmitDisabled()||this.handleLogin()},this.togglePassword=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.resetPassword=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)},this.endpoint="",this.lang="en",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.passwordReset="false",this.userEmailRegex=void 0,this.userEmailRegexOptions="i",this.userPhoneRegex=void 0,this.userPhoneRegexOptions="",this.passwordRegex=void 0,this.passwordRegexOptions="",this.loginByPhoneNumber="false",this.isLoading=!1,this.contactValue="",this.passwordValue="",this.phoneCodeValue="",this.phoneCodes=void 0,this.isContactValid=!0,this.isPasswordValid=!0,this.isPasswordVisible=!1,this.apiErrorMessage="",this.captchaData={isEnabled:!0,token:"",provider:"",siteKey:""}}handleNewTranslations(){r(this.translationUrl)}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){"true"===this.loginByPhoneNumber&&await this.getPhoneCodes(),this.translationUrl.length>2&&await r(this.translationUrl),this.getLoginConfig().then((()=>this.appendCaptchaScript()),(t=>{console.error(t),this.apiErrorMessage=n("configError",this.lang),this.sendErrorNotification(this.apiErrorMessage)}))}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("LoginCredentials",this.handleAutofillCredentials),window.postMessage({type:"UserLoginDidLoad"})}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("LoginCredentials",this.handleAutofillCredentials)}getLoginConfig(){const t=new URL("/api/v1/players/password-management/auth/password/config",this.endpoint);return new Promise(((e,i)=>{fetch(t.href).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{const{captcha:i}=t;i&&"string"==typeof i.provider&&(i.provider=i.provider.toLowerCase()),this.captchaData=Object.assign({},i),e()})).catch((t=>{console.error("Error fetching login configuration:",t),i(t)}))}))}handleCaptcha(){const{isEnabled:t,provider:e,siteKey:i}=this.captchaData;if(t&&["cloudflare","google"].includes(e))switch(e){case"cloudflare":return void window.turnstile.render("#turnstileContainer",{sitekey:i,theme:"light",callback:this.captchaCallback.bind(this)});case"google":return void window.grecaptcha.ready((()=>{window.grecaptcha.render("googleContainer",{sitekey:i,callback:this.captchaCallback.bind(this),theme:"light"})}))}}captchaCallback(t){this.captchaData.token=t,this.captchaData=Object.assign({},this.captchaData)}appendCaptchaScript(){const{isEnabled:t,provider:e}=this.captchaData;if(!t)return;const i=document.createElement("script");switch(e){case"cloudflare":i.src="https://challenges.cloudflare.com/turnstile/v0/api.js";break;case"google":i.src="https://www.google.com/recaptcha/api.js"}i.onload=this.handleCaptcha.bind(this),document.head.appendChild(i)}sendErrorNotification(t){window.postMessage({type:"HasError",error:t},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)}dispatchUpdateLoginCredentialsEvent(){this.apiErrorMessage||(this.updateLoginCredentialsEvent=new CustomEvent("UpdateLoginCredentials",{bubbles:!0,detail:{userNameEmail:this.contactValue,userPassword:this.passwordValue}}),window.dispatchEvent(this.updateLoginCredentialsEvent))}render(){const t=e("span",{key:"24cb82c372a6ceb1d76652d67e032d0b02389d3c",class:"InputIcon"},this.isPasswordVisible?e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.844",height:"12.887",viewBox:"0 0 18.844 12.887"},e("g",{transform:"translate(-110.856 -23.242)"},e("circle",{class:"PasswordVisibilityIcon",cx:"0.05",cy:"0.05",r:"0.05",transform:"translate(121.017 31.148)"}),e("g",{transform:"translate(117.499 27.37)"},e("path",{class:"PasswordVisibilityIcon",d:"M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z",transform:"translate(-142.164 -39.123)"}),e("path",{class:"PasswordVisibilityIcon",d:"M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z",transform:"translate(-136.413 -42.068)"})),e("g",{transform:"translate(110.856 24.899)"},e("path",{class:"PasswordVisibilityIcon",d:"M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z",transform:"translate(-110.856 -33.157)"}),e("path",{class:"PasswordVisibilityIcon",d:"M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z",transform:"translate(-130.743 -29.617)"})),e("rect",{class:"PasswordVisibilityIcon",width:"0.972",height:"15.861",rx:"0.486",transform:"translate(114.827 23.858) rotate(-39.315)"}))):e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility PasswordVisible",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.843",height:"10.5",viewBox:"0 0 18.843 10.5"},e("g",{transform:"translate(-14.185 -27.832)"},e("path",{class:"PasswordVisibilityIcon",d:"M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z",transform:"translate(0)"}),e("circle",{class:"PasswordVisibilityIcon",cx:"2.779",cy:"2.779",r:"2.779",transform:"translate(20.827 30.303)"})))),i=e("div",{key:"b8a013ae94d14bdaba795b7822515692b73bb748",class:"FormBox"},e("div",{key:"194a4d62a48d25c295ca1ac542f5aebe9c6161ac",class:"FormValue",onKeyDown:this.handleSubmit},"true"===this.loginByPhoneNumber?e("div",{class:this.isContactValid&&!this.apiErrorMessage?"InputBox":"InputBox InputInvalidBox"},e("div",{class:"PhoneInputBox"},e("div",{class:"PrefixBox"},e("vaadin-combo-box",{items:this.phoneCodes,value:this.phoneCodeValue,onChange:this.handleInputChangePartial("prefix")}),e("label",{class:(this.phoneCodeValue?"FieldFilledIn":"")+" "+(this.isContactValid?"":"FieldInvalid")},n("userPrefix",this.lang))),e("div",{class:"PhoneBox"},e("input",{type:"text",placeholder:"",value:this.contactValue,onFocus:this.handleInputChangePartial("phone"),onInput:this.handleInputChangePartial("phone"),autocapitalize:"none",required:!0}),e("label",{class:(this.contactValue?"FieldFilledIn":"")+" "+(this.isContactValid?"":"FieldInvalid")},n("userPhone",this.lang)))),!this.isContactValid&&e("p",{class:"CredentialsError"},n("userPhoneError",this.lang))):e("div",{class:this.isContactValid?"InputBox":"InputBox InputInvalidBox"},e("input",{type:"text",placeholder:"",value:this.contactValue,onInput:this.handleInputChangePartial("user"),autocapitalize:"none",required:!0}),e("label",{class:(this.contactValue?"FieldFilledIn":"")+" "+(this.isContactValid?"":"FieldInvalid")},n("userEmail",this.lang)),!this.isContactValid&&e("p",{class:"CredentialsError"},n("userEmailError",this.lang))),e("div",{key:"100548b538ba8524b57cbb1b6ca6424398c328cf",class:this.isPasswordValid?"InputBox":"InputBox InputInvalidBox"},t,e("input",{key:"264d6721749c23a7f2b6431b4608731e57302544",type:this.isPasswordVisible?"text":"password",placeholder:"",value:this.passwordValue,onInput:this.handleInputChangePartial("password"),autocapitalize:"none",required:!0}),e("label",{key:"60b1ad9fd924cff2bc21c21eab670eee044f4af4",class:(this.passwordValue?"FieldFilledIn":"")+" "+(this.isPasswordValid?"":"FieldInvalid")},n("password",this.lang)),this.isPasswordValid||e("p",{key:"4cb9a493124403f4177c950c821692b388b6cf04",class:"CredentialsError"},n("userPasswordError",this.lang))),"true"==this.passwordReset&&e("div",{key:"602038a2609458f69cbb0589d3b00f32092a865f",class:"ForgotPassword"},e("button",{key:"3462d939c84586d9175fe2cc83b66601a3743bd6",onClick:this.resetPassword},n("forgotPassword",this.lang))),this.captchaData.isEnabled&&"cloudflare"===this.captchaData.provider&&e("slot",{key:"e5ceda76363941844adc5968a9e662e32a98ec79",name:"turnstile"}),this.captchaData.isEnabled&&"google"===this.captchaData.provider&&e("slot",{key:"9ce955f4316d2c3f051bdd8a378703a698af96af",name:"google"}),e("button",{key:"0862f621e099f7144b842ccc83f57c0c93892832",disabled:this.isSubmitDisabled(),class:"SubmitCredentials",onClick:this.handleLogin},n("login",this.lang)),this.apiErrorMessage&&e("p",{key:"15dbcab0684e95035a9b7365d39e5a1c2ce88586",class:"CredentialsError"},this.apiErrorMessage))),s=e("div",{key:"c478390ca347af702fbff76438a0ad81831ab01e",class:"LoadingSkeleton"},e("form",{key:"401827bb79817b7b885369f8b52452ece69f4efd",class:"Form"},e("section",{key:"996d42c71521b5ee814a5c8e9833680cc01c41e6",class:"FieldsSection"},e("div",{key:"6d4c9ab780f45f87bc84d0a1b0f332abed93ddd6",class:"FieldContainer"},e("div",{key:"688bfd8803e6ae633073df37b91d953c5d88d787",class:"FieldTitle"},e("ui-skeleton",{key:"5bb5cb4fab3f5423fd5b5230d95097dfe45a2839",structure:"title",width:"auto",height:"20px"})),e("ui-skeleton",{key:"b830c20699f3a8ca7f2227f39c2be72a8aac6ec6",structure:"rectangle",width:"auto",height:"35px"})),e("div",{key:"bf5cdf15c01b92c0339534d8af63222972f9fa72",class:"FieldContainer"},e("div",{key:"710f2ac787ca00d4adf2f023d8b8fcc041886b69",class:"FieldTitle"},e("ui-skeleton",{key:"fe2dcb513079ddf988b7244a7aa367a4e330d00e",structure:"title",width:"auto",height:"20px"})),e("ui-skeleton",{key:"a3e9f3ef4df8eeca549c6d860bb8d0b6d3f8dd78",structure:"rectangle",width:"auto",height:"35px"}))),e("section",{key:"970a83a9133ae4ab757d70d3e04ee433dd35d8d5",class:"ButtonsSection"},e("div",{key:"70a0a206a424ed0ae652b3c5463b78afb54cabd5",class:"Button"},e("ui-skeleton",{key:"65e7b9769d95dc5c6715a9b49c292d0e4a36bbd1",structure:"rectangle",width:"auto",height:"50px"})))));return e("section",{key:"5a3a40493e559335647849acbf2407f1638a11d3",ref:t=>this.stylingContainer=t},this.isLoading?s:i)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};_r.style=':host{display:block;font-family:"Roboto", sans-serif}section{height:100%;width:100%;background-position:center;background-size:cover}.FormValue{width:100%}.FormBox{height:100%;display:flex;position:relative;background:none;border:none;justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:100%;border-bottom:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .PhoneInputBox{display:flex;flex-direction:row}.InputBox .PhoneInputBox .PhoneBox{position:relative;width:100%}.InputBox .PhoneInputBox .PrefixBox{position:relative;width:fit-content}.InputBox.InputInvalidBox .PasswordVisibilityIcon{fill:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox::after{content:"";height:2px;width:100%;transition:width 0.6s linear;background:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox::after{content:"";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-medium, 16px);pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:var(--emw--font-size-medium, 16px);padding:0 35px 0 5px;color:var(--emw--registration-typography, var(--emw--color-typography, #000000));box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-3px;font-size:var(--emw--font-size-x-small, 16px)}vaadin-combo-box:focus-within~label,label.FieldFilledIn{top:-3px;font-size:var(--emw--font-size-x-small, 16px)}.ForgotPassword button{margin:-10px 0 17px;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.SubmitCredentials{display:block;margin:0 auto;outline:none;cursor:pointer;background:var(--emw--color-primary, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SubmitCredentials:disabled{background:var(--emw--color-primary, #0E5924);opacity:0.4;cursor:default}.InvalidField{position:absolute;color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px)}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px);padding:0 0 20px 0;margin:0}.CredentialsError input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}.LoadingSkeleton{width:100%;height:100%}.LoadingSkeleton .Form{display:flex;flex-direction:column;gap:50px;width:100%;height:100%}.LoadingSkeleton .Form .ButtonReturn{width:150px;height:30px;margin-top:15px;display:block}.LoadingSkeleton .Form .FieldsSection{display:block}.LoadingSkeleton .Form .FieldsSection .FieldContainer .FieldTitle{width:150px;margin-top:30px;margin-bottom:15px}.LoadingSkeleton .Form .ButtonsSection .Button{border-radius:50px;background:transparent;border:none;overflow:hidden}';export{_r as P}
2654
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new sr(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new or(this.inputElement,this._labelController)),this._tooltipController=new So(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}l(_r);const br=class{constructor(e){t(this,e),this.getPhoneCodes=()=>{const t=new URL("v1/player/operatorSupportedPhoneCodes",this.endpoint);return fetch(t.href).then((t=>t.json())).then((t=>{this.phoneCodes=t.phoneCodes.map((t=>({label:t,value:t})))})).catch((t=>console.log("Failed to fetch phone codes:",t)))},this.handleAutofillCredentials=t=>{this.contactValue=t.detail.userNameEmail,this.passwordValue=t.detail.userPassword,this.handleLogin()},this.getLoginToken=()=>{const t=new URL("/api/pam/v2/players/auth/password/verify",this.endpoint),e={"Content-Type":"application/json"};this.captchaData.isEnabled&&(e["X-Captcha-Response"]=this.captchaData.token);const i={contact:this.contactValue,password:this.passwordValue,deviceInformation:a()},s={method:"POST",headers:e,body:JSON.stringify(i)};return new Promise(((e,i)=>{fetch(t.href,s).then((t=>t.json())).then((t=>{var s,o;if(t.token)return this.apiErrorMessage="",e(t.token);{const e=null===(s=null==t?void 0:t.thirdPartyResponse)||void 0===s?void 0:s.errorCode;if("GmErr_USER_AUTH_FAILED"===e&&"true"===this.loginByPhoneNumber)this.apiErrorMessage=n("AuthFailedPhoneNumber",this.lang);else{const i=null==t?void 0:t.message;this.apiErrorMessage=n(`${e}`,this.lang)||n(`${i}`,this.lang)||(null===(o=null==t?void 0:t.thirdPartyResponse)||void 0===o?void 0:o.message)||n("genericError",this.lang)}return i(this.apiErrorMessage)}}))}))},this.loginPlayer=t=>{const e=new URL("api/v2/gm/legislation/login",this.endpoint),i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t,method:"login"})};return new Promise(((t,s)=>{fetch(e.href,i).then((t=>t.json()),(t=>s(t))).then((e=>{var i,o;if(e.error){const t=null===(i=null==e?void 0:e.thirdPartyResponse)||void 0===i?void 0:i.errorCode;if("GmErr_USER_AUTH_FAILED"===t&&"true"===this.loginByPhoneNumber)this.apiErrorMessage=n("AuthFailedPhoneNumber",this.lang);else{const i=null==e?void 0:e.message;this.apiErrorMessage=n(`${t}`,this.lang)||n(`${i}`,this.lang)||(null===(o=null==e?void 0:e.thirdPartyResponse)||void 0===o?void 0:o.message)||n("genericError",this.lang)}return s(this.apiErrorMessage)}return e.sessionId&&e.playerId?t(e):s(e)}))}))},this.handleLogin=()=>{this.isLoading=!0,this.getLoginToken().then((t=>{this.loginPlayer(t).then((t=>{var e;(null===(e=t.sessionBlockers)||void 0===e?void 0:e.includes("has-to-set-consents"))&&window.postMessage({type:"PlayerActions"},window.location.href),window.postMessage({type:"UserSessionID",session:t.sessionId,userid:t.playerId},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage",this.lang)}},window.location.href),this.apiErrorMessage=""})).catch((t=>{console.error(`Legislation login failed: ${t.message}`,t.errors),this.apiErrorMessage=this.apiErrorMessage||n("genericError",this.lang),this.sendErrorNotification(this.apiErrorMessage)})).finally((()=>this.isLoading=!1))})).catch((t=>{console.error(t),this.sendErrorNotification(this.apiErrorMessage),this.isLoading=!1})),this.dispatchUpdateLoginCredentialsEvent()},this.handleInputChange=(t,e)=>{const i=t.target.value;switch(e){case"user":this.contactValue=i,this.isContactValid=this.validate("user",this.contactValue);break;case"phone":this.contactValue=i,this.isContactValid=this.validate("phone",this.contactValue);break;case"prefix":this.phoneCodeValue=i,this.isContactValid=this.validate("phone",this.contactValue);break;case"password":this.passwordValue=i,this.isPasswordValid=this.validate("password",i)}},this.handleInputChangePartial=t=>e=>this.handleInputChange(e,t),this.validate=(t,e)=>{let i;switch(t){case"user":return i=new RegExp(this.userEmailRegex,this.userEmailRegexOptions),e.length<=3||i.test(e);case"phone":return i=new RegExp(this.userPhoneRegex,this.userPhoneRegexOptions),e.length<=3||i.test(e)&&Boolean(this.phoneCodeValue);case"password":return i=new RegExp(this.passwordRegex,this.passwordRegexOptions),e.length<=3||i.test(e)}},this.isSubmitDisabled=()=>!this.isContactValid||!this.contactValue||"true"===this.loginByPhoneNumber&&!this.phoneCodeValue||!this.passwordValue||!this.isPasswordValid||this.isLoading||this.captchaData.isEnabled&&!this.captchaData.token,this.handleSubmit=t=>{"Enter"!==t.key||this.isSubmitDisabled()||this.handleLogin()},this.togglePassword=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.resetPassword=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)},this.endpoint="",this.lang="en",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.passwordReset="false",this.userEmailRegex=void 0,this.userEmailRegexOptions="i",this.userPhoneRegex=void 0,this.userPhoneRegexOptions="",this.passwordRegex=void 0,this.passwordRegexOptions="",this.loginByPhoneNumber="false",this.isLoading=!1,this.contactValue="",this.passwordValue="",this.phoneCodeValue="",this.phoneCodes=void 0,this.isContactValid=!0,this.isPasswordValid=!0,this.isPasswordVisible=!1,this.apiErrorMessage="",this.captchaData={isEnabled:!0,token:"",provider:"",siteKey:""}}handleNewTranslations(){r(this.translationUrl)}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){"true"===this.loginByPhoneNumber&&await this.getPhoneCodes(),this.translationUrl.length>2&&await r(this.translationUrl),this.getLoginConfig().then((()=>this.appendCaptchaScript()),(t=>{console.error(t),this.apiErrorMessage=n("configError",this.lang),this.sendErrorNotification(this.apiErrorMessage)}))}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("LoginCredentials",this.handleAutofillCredentials),window.postMessage({type:"UserLoginDidLoad"})}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("LoginCredentials",this.handleAutofillCredentials)}getLoginConfig(){const t=new URL("/api/pam/v2/players/auth/password/config",this.endpoint);return new Promise(((e,i)=>{fetch(t.href).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{const{captcha:i}=t;i&&"string"==typeof i.provider&&(i.provider=i.provider.toLowerCase()),this.captchaData=Object.assign({},i),e()})).catch((t=>{console.error("Error fetching login configuration:",t),i(t)}))}))}handleCaptcha(){const{isEnabled:t,provider:e,siteKey:i}=this.captchaData;if(t&&["cloudflare","google"].includes(e))switch(e){case"cloudflare":return void window.turnstile.render("#turnstileContainer",{sitekey:i,theme:"light",callback:this.captchaCallback.bind(this)});case"google":return void window.grecaptcha.ready((()=>{window.grecaptcha.render("googleContainer",{sitekey:i,callback:this.captchaCallback.bind(this),theme:"light"})}))}}captchaCallback(t){this.captchaData.token=t,this.captchaData=Object.assign({},this.captchaData)}appendCaptchaScript(){const{isEnabled:t,provider:e}=this.captchaData;if(!t)return;const i=document.createElement("script");switch(e){case"cloudflare":i.src="https://challenges.cloudflare.com/turnstile/v0/api.js";break;case"google":i.src="https://www.google.com/recaptcha/api.js"}i.onload=this.handleCaptcha.bind(this),document.head.appendChild(i)}sendErrorNotification(t){window.postMessage({type:"HasError",error:t},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)}dispatchUpdateLoginCredentialsEvent(){this.apiErrorMessage||(this.updateLoginCredentialsEvent=new CustomEvent("UpdateLoginCredentials",{bubbles:!0,detail:{userNameEmail:this.contactValue,userPassword:this.passwordValue}}),window.dispatchEvent(this.updateLoginCredentialsEvent))}render(){const t=e("span",{key:"bc4f37b766f01cbb1a2850b5365fc3f9deccbff5",class:"InputIcon"},this.isPasswordVisible?e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.844",height:"12.887",viewBox:"0 0 18.844 12.887"},e("g",{transform:"translate(-110.856 -23.242)"},e("circle",{class:"PasswordVisibilityIcon",cx:"0.05",cy:"0.05",r:"0.05",transform:"translate(121.017 31.148)"}),e("g",{transform:"translate(117.499 27.37)"},e("path",{class:"PasswordVisibilityIcon",d:"M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z",transform:"translate(-142.164 -39.123)"}),e("path",{class:"PasswordVisibilityIcon",d:"M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z",transform:"translate(-136.413 -42.068)"})),e("g",{transform:"translate(110.856 24.899)"},e("path",{class:"PasswordVisibilityIcon",d:"M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z",transform:"translate(-110.856 -33.157)"}),e("path",{class:"PasswordVisibilityIcon",d:"M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z",transform:"translate(-130.743 -29.617)"})),e("rect",{class:"PasswordVisibilityIcon",width:"0.972",height:"15.861",rx:"0.486",transform:"translate(114.827 23.858) rotate(-39.315)"}))):e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility PasswordVisible",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.843",height:"10.5",viewBox:"0 0 18.843 10.5"},e("g",{transform:"translate(-14.185 -27.832)"},e("path",{class:"PasswordVisibilityIcon",d:"M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z",transform:"translate(0)"}),e("circle",{class:"PasswordVisibilityIcon",cx:"2.779",cy:"2.779",r:"2.779",transform:"translate(20.827 30.303)"})))),i=e("div",{key:"499004fc20af9725080c7718b3c29736f7febf30",class:"FormBox"},e("div",{key:"14eed0c08e13e4b25ccccab51d8fa45634e67210",class:"FormValue",onKeyDown:this.handleSubmit},"true"===this.loginByPhoneNumber?e("div",{class:this.isContactValid&&!this.apiErrorMessage?"InputBox":"InputBox InputInvalidBox"},e("div",{class:"PhoneInputBox"},e("div",{class:"PrefixBox"},e("vaadin-combo-box",{items:this.phoneCodes,value:this.phoneCodeValue,onChange:this.handleInputChangePartial("prefix")}),e("label",{class:(this.phoneCodeValue?"FieldFilledIn":"")+" "+(this.isContactValid?"":"FieldInvalid")},n("userPrefix",this.lang))),e("div",{class:"PhoneBox"},e("input",{type:"text",placeholder:"",value:this.contactValue,onFocus:this.handleInputChangePartial("phone"),onInput:this.handleInputChangePartial("phone"),autocapitalize:"none",required:!0}),e("label",{class:(this.contactValue?"FieldFilledIn":"")+" "+(this.isContactValid?"":"FieldInvalid")},n("userPhone",this.lang)))),!this.isContactValid&&e("p",{class:"CredentialsError"},n("userPhoneError",this.lang))):e("div",{class:this.isContactValid?"InputBox":"InputBox InputInvalidBox"},e("input",{type:"text",placeholder:"",value:this.contactValue,onInput:this.handleInputChangePartial("user"),autocapitalize:"none",required:!0}),e("label",{class:(this.contactValue?"FieldFilledIn":"")+" "+(this.isContactValid?"":"FieldInvalid")},n("userEmail",this.lang)),!this.isContactValid&&e("p",{class:"CredentialsError"},n("userEmailError",this.lang))),e("div",{key:"ce16fe11a12292317a68a967fe7539fea6ebc5c6",class:this.isPasswordValid?"InputBox":"InputBox InputInvalidBox"},t,e("input",{key:"663823ebab5711a5441ccde0f2337cc43f105b82",type:this.isPasswordVisible?"text":"password",placeholder:"",value:this.passwordValue,onInput:this.handleInputChangePartial("password"),autocapitalize:"none",required:!0}),e("label",{key:"6d2f2ca82162161149f5c8f31a95da9248995e86",class:(this.passwordValue?"FieldFilledIn":"")+" "+(this.isPasswordValid?"":"FieldInvalid")},n("password",this.lang)),this.isPasswordValid||e("p",{key:"cd4ae3c08eb821c15f7b8f2d905eb3efbe01f126",class:"CredentialsError"},n("userPasswordError",this.lang))),"true"==this.passwordReset&&e("div",{key:"f533de8ea216ff532aed3467456057e402f48135",class:"ForgotPassword"},e("button",{key:"01d9245dffd5b77531dad7edc6e23c7ebe81a33f",onClick:this.resetPassword},n("forgotPassword",this.lang))),this.captchaData.isEnabled&&"cloudflare"===this.captchaData.provider&&e("slot",{key:"adfaf4df5f8fecb28a447297cb458a7160c3683e",name:"turnstile"}),this.captchaData.isEnabled&&"google"===this.captchaData.provider&&e("slot",{key:"88ade9e7b049a1c79ddc174bf8030d42af02de61",name:"google"}),e("button",{key:"e252177c7ee29890de9d3786d88e277642b6c53b",disabled:this.isSubmitDisabled(),class:"SubmitCredentials",onClick:this.handleLogin},n("login",this.lang)),this.apiErrorMessage&&e("p",{key:"41211b8531f0981183920fea4a929a019e2e9a5c",class:"CredentialsError"},this.apiErrorMessage))),s=e("div",{key:"b196e18e7f3bd9c1a2ad5c7e656950cbad6169e2",class:"LoadingSkeleton"},e("form",{key:"4b20b07b5d5f75a27edba1a2a58f428d14c224b4",class:"Form"},e("section",{key:"e9693d077413bbaba63bf0099ade2bdad45220e9",class:"FieldsSection"},e("div",{key:"c1f43ada02950ee0e77aad32998e9965499ea6ca",class:"FieldContainer"},e("div",{key:"0a12202e333abd9a329a4f3240472079067e617d",class:"FieldTitle"},e("ui-skeleton",{key:"d7ace8e2a823d2aa825e8d51fc0292faf471bc2d",structure:"title",width:"auto",height:"20px"})),e("ui-skeleton",{key:"75949006b49514482a05a907aea7b1b1032a9694",structure:"rectangle",width:"auto",height:"35px"})),e("div",{key:"4d4d1e332b3184a44f3a7edca8a1d67a549cf903",class:"FieldContainer"},e("div",{key:"7c94821464d7fb01ce4fa0a5fcf937d0f5bad5d6",class:"FieldTitle"},e("ui-skeleton",{key:"c3e44caf47b84e830f9baa39ed455198a0ecefae",structure:"title",width:"auto",height:"20px"})),e("ui-skeleton",{key:"08e063c237b9fc8613ce993edd8206b887725ffc",structure:"rectangle",width:"auto",height:"35px"}))),e("section",{key:"522b7f10d8acc1ffc15632b13b405a5954c5f8b6",class:"ButtonsSection"},e("div",{key:"21c219a0e03d6383cada154b7b509d68bc8b3b45",class:"Button"},e("ui-skeleton",{key:"cf6b5a9b39aabf387603a2d996ca62a57ab4775e",structure:"rectangle",width:"auto",height:"50px"})))));return e("section",{key:"cdf856b9dac4ffe1b0549e540aa0acdff32829d9",ref:t=>this.stylingContainer=t},this.isLoading?s:i)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};br.style=':host{display:block;font-family:"Roboto", sans-serif}section{height:100%;width:100%;background-position:center;background-size:cover}.FormValue{width:100%}.FormBox{height:100%;display:flex;position:relative;background:none;border:none;justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:100%;border-bottom:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .PhoneInputBox{display:flex;flex-direction:row}.InputBox .PhoneInputBox .PhoneBox{position:relative;width:100%}.InputBox .PhoneInputBox .PrefixBox{position:relative;width:fit-content}.InputBox.InputInvalidBox .PasswordVisibilityIcon{fill:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox.InputInvalidBox::after{content:"";height:2px;width:100%;transition:width 0.6s linear;background:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}.InputBox::after{content:"";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-medium, 16px);pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:var(--emw--font-size-medium, 16px);padding:0 35px 0 5px;color:var(--emw--registration-typography, var(--emw--color-typography, #000000));box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-3px;font-size:var(--emw--font-size-x-small, 16px)}vaadin-combo-box:focus-within~label,label.FieldFilledIn{top:-3px;font-size:var(--emw--font-size-x-small, 16px)}.ForgotPassword button{margin:-10px 0 17px;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.SubmitCredentials{display:block;margin:0 auto;outline:none;cursor:pointer;background:var(--emw--color-primary, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SubmitCredentials:disabled{background:var(--emw--color-primary, #0E5924);opacity:0.4;cursor:default}.InvalidField{position:absolute;color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px)}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839));font-size:var(--emw--font-size-x-small, 12px);padding:0 0 20px 0;margin:0}.CredentialsError input{color:var(--emfw-w-color-error, var(--emw--color-red, #FD2839))}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}.LoadingSkeleton{width:100%;height:100%}.LoadingSkeleton .Form{display:flex;flex-direction:column;gap:50px;width:100%;height:100%}.LoadingSkeleton .Form .ButtonReturn{width:150px;height:30px;margin-top:15px;display:block}.LoadingSkeleton .Form .FieldsSection{display:block}.LoadingSkeleton .Form .FieldsSection .FieldContainer .FieldTitle{width:150px;margin-top:30px;margin-bottom:15px}.LoadingSkeleton .Form .ButtonsSection .Button{border-radius:50px;background:transparent;border:none;overflow:hidden}';export{br as P}