@everymatrix/player-account-controller-nd 1.99.64 → 1.99.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/components/{GeneralLogout-B_Tr6McQ.cjs → GeneralLogout-BXQ8hZ9x.cjs} +1 -1
  2. package/components/{GeneralLogout-8wMTGRDy.js → GeneralLogout-Bq_bu6J-.js} +1 -1
  3. package/components/{GeneralLogout-Df2tEV_j.js → GeneralLogout-D9MCiXj_.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-C1DpLVso.js → PlayerAccountBettingHistory-CdiHdmhn.js} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CWBfZhuO.js → PlayerAccountBettingHistory-ChmQv2j2.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-CEHzLPmX.cjs → PlayerAccountBettingHistory-pIQYfWyM.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-BrF2QlJ9.js → PlayerAccountBiometrics-D8-HMoPO.js} +2 -2
  8. package/components/{PlayerAccountBiometrics-Qkot14Nw.cjs → PlayerAccountBiometrics-DXvo6Xkb.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-CatuEsZS.js → PlayerAccountBiometrics-ytKq7F4G.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-PXIbQUKQ.js → PlayerAccountBiometricsAction-B7GhCkdp.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-yS5_Epi1.js → PlayerAccountBiometricsAction-C76zXweJ.js} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-CpV0a4zN.cjs → PlayerAccountBiometricsAction-XWRAqFVb.cjs} +1 -1
  13. package/components/{PlayerAccountClosureNd-CBS8QECX.js → PlayerAccountClosureNd-BxduP93-.js} +1 -1
  14. package/components/{PlayerAccountClosureNd--GHgFzVF.cjs → PlayerAccountClosureNd-CMEzT9lA.cjs} +1 -1
  15. package/components/{PlayerAccountClosureNd-BXRvTzVO.js → PlayerAccountClosureNd-DY-pTTMn.js} +1 -1
  16. package/components/{PlayerAccountControllerNd-DV54Hl05.cjs → PlayerAccountControllerNd-BF4IYonf.cjs} +1 -1
  17. package/components/{PlayerAccountControllerNd-CoEaKJEO.js → PlayerAccountControllerNd-Nm90bFaw.js} +22 -22
  18. package/components/{PlayerAccountControllerNd-BpyLuXtA.js → PlayerAccountControllerNd-g3vm-cz_.js} +22 -22
  19. package/components/{PlayerAccountGamingLimits-CHNQrQ6Z.cjs → PlayerAccountGamingLimits-DgUr4DtC.cjs} +1 -1
  20. package/components/{PlayerAccountGamingLimits-B6CJyCXE.js → PlayerAccountGamingLimits-NHj8wKty.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-BVyoTWZr.js → PlayerAccountGamingLimits-tr4eHMfr.js} +2 -2
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-CwK5s6-X.js → PlayerAccountGamingLimitsConfirmationModal-B8GiGdXa.js} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-Dqp0L0N-.js → PlayerAccountGamingLimitsConfirmationModal-CZeeF0ox.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-B-Pbd0f9.cjs → PlayerAccountGamingLimitsConfirmationModal-Diyy8CbD.cjs} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-CFaQW5Xw.js → PlayerAccountGamingLimitsGroupEdit-6nafVJ9j.js} +5 -5
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-P7eVJD4o.cjs → PlayerAccountGamingLimitsGroupEdit-BUMPsAmx.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-8vRP46ti.js → PlayerAccountGamingLimitsGroupEdit-COGrR5nO.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2Nd-BZZbRy1H.cjs → PlayerAccountGamingLimitsHistory2Nd-BrlUWRlI.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2Nd-AwepMJyS.js → PlayerAccountGamingLimitsHistory2Nd-CFNmYY25.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2Nd-BfDvaj4E.js → PlayerAccountGamingLimitsHistory2Nd-GlPwt2j8.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-Cq1G2koe.js → PlayerAccountGamingLimitsInfoCard-32M6-cwa.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-ES6K2FOK.cjs → PlayerAccountGamingLimitsInfoCard-BCsI2fe7.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-IVhOyKZj.js → PlayerAccountGamingLimitsInfoCard-CDJivoyb.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CYxIxOg9.js → PlayerAccountGamingLimitsPage2Gm16Nd-CTFI5MPm.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-u5EAdak4.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-CoKtHrIC.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DuDWXcpD.js → PlayerAccountGamingLimitsPage2Gm16Nd-DnC2InSl.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-Bx181x-m.js → PlayerAccountGamingLimitsPopup-BID_VGFw.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-DiHAugt4.cjs → PlayerAccountGamingLimitsPopup-DM2wnO27.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-h3EBnoNt.js → PlayerAccountGamingLimitsPopup-HuVhcZjy.js} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DWMV7anS.js → PlayerAccountGamingLimitsWrapper2Nd-D0n11R0X.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2Nd-ByYbfRQi.js → PlayerAccountGamingLimitsWrapper2Nd-D14gMSsm.js} +3 -3
  42. package/components/{PlayerAccountGamingLimitsWrapper2Nd-ChustIby.cjs → PlayerAccountGamingLimitsWrapper2Nd-y8MGDMj8.cjs} +1 -1
  43. package/components/{PlayerAccountGeneralConfirmationModal-CjzyuNjK.js → PlayerAccountGeneralConfirmationModal-BVBnuCFF.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-Dm3aP6fQ.js → PlayerAccountGeneralConfirmationModal-BcKk1LpN.js} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-Ccfy5jx9.cjs → PlayerAccountGeneralConfirmationModal-eVQr9e6B.cjs} +1 -1
  46. package/components/{PlayerAccountMenuNd-BFf_Ixaf.cjs → PlayerAccountMenuNd-BHdPgw5I.cjs} +1 -1
  47. package/components/{PlayerAccountMenuNd-DL1FWOfl.js → PlayerAccountMenuNd-DCp6r4GE.js} +2 -2
  48. package/components/{PlayerAccountMenuNd-KNvWHKmn.js → PlayerAccountMenuNd-K7glBCG_.js} +2 -2
  49. package/components/{PlayerAccountModal--QiSnBtU.cjs → PlayerAccountModal-C0MMDHai.cjs} +1 -1
  50. package/components/{PlayerAccountModal-D3qATKj_.js → PlayerAccountModal-CgBxr7Yi.js} +1 -1
  51. package/components/{PlayerAccountModal-he9-3Ol-.js → PlayerAccountModal-xUIx6MtH.js} +1 -1
  52. package/components/{PlayerAccountNotifications-BcQ8FD-W.js → PlayerAccountNotifications-CR8vQHYL.js} +1 -1
  53. package/components/{PlayerAccountNotifications-DukGyUEV.js → PlayerAccountNotifications-D-jwODSX.js} +1 -1
  54. package/components/{PlayerAccountNotifications-DgJedpa5.cjs → PlayerAccountNotifications-gw57S4p3.cjs} +1 -1
  55. package/components/{PlayerAccountProductRestriction-DJ63eG4V.js → PlayerAccountProductRestriction-C-OzvZpW.js} +5 -5
  56. package/components/{PlayerAccountProductRestriction-DLCUKXpq.cjs → PlayerAccountProductRestriction-CPRbnQFY.cjs} +1 -1
  57. package/components/{PlayerAccountProductRestriction-B6O6nkZO.js → PlayerAccountProductRestriction-DyIE5aox.js} +5 -5
  58. package/components/{PlayerAccountReviewFrequency-B18AfnLo.js → PlayerAccountReviewFrequency-CPXMvfbL.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-CrVq3J9v.js → PlayerAccountReviewFrequency-CYrCo1dv.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-pumQi-YF.cjs → PlayerAccountReviewFrequency-Dr2-rAS4.cjs} +1 -1
  61. package/components/{PlayerAccountSelfExclusionNd-B2nwt48V.cjs → PlayerAccountSelfExclusionNd-7WZh8fKX.cjs} +1 -1
  62. package/components/{PlayerAccountSelfExclusionNd-CNgCn8AR.js → PlayerAccountSelfExclusionNd-Dt9aAcyH.js} +4 -4
  63. package/components/{PlayerAccountSelfExclusionNd-Dm4TeIxj.js → PlayerAccountSelfExclusionNd-jmfIJ6Va.js} +4 -4
  64. package/components/{PlayerAccountTimeout-CehfycL4.js → PlayerAccountTimeout-D3os4wXm.js} +3 -3
  65. package/components/{PlayerAccountTimeout-BPaAKgDV.cjs → PlayerAccountTimeout-M7Q8DfIz.cjs} +1 -1
  66. package/components/{PlayerAccountTimeout-BfQ_DNvm.js → PlayerAccountTimeout-fD1_273g.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-BOPm3c-l.js → PlayerAccountTransactionsHistory-Bj946fxs.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-CjIjNZDr.js → PlayerAccountTransactionsHistory-Cw-1ATfy.js} +4 -4
  69. package/components/{PlayerAccountTransactionsHistory-Vz1GbV6a.cjs → PlayerAccountTransactionsHistory-Dn0dbrXO.cjs} +1 -1
  70. package/components/{PlayerActiveBonuses-DjZI3Tsj.js → PlayerActiveBonuses-BwBrXBI3.js} +2 -2
  71. package/components/{PlayerActiveBonuses-BmLW2U7z.cjs → PlayerActiveBonuses-Dm8WwcGV.cjs} +1 -1
  72. package/components/{PlayerActiveBonuses-DQEG7VVC.js → PlayerActiveBonuses-tRFYMDsB.js} +2 -2
  73. package/components/{PlayerBonusCard-B_y306PB.cjs → PlayerBonusCard-3ee24J7D.cjs} +1 -1
  74. package/components/{PlayerBonusCard-q_atpoy1.js → PlayerBonusCard-DQBZRPf2.js} +2 -2
  75. package/components/{PlayerBonusCard-BkeNJuRG.js → PlayerBonusCard-nQty_ykW.js} +2 -2
  76. package/components/{PlayerBonusHistory-B8UyMG2i.js → PlayerBonusHistory-BvUmvyic.js} +2611 -2560
  77. package/components/{PlayerBonusHistory-Dfiz7Ufs.js → PlayerBonusHistory-D2C0n3o5.js} +2612 -2561
  78. package/components/{PlayerBonusHistory-Dy8GRg7K.cjs → PlayerBonusHistory-DOYPcOsR.cjs} +283 -283
  79. package/components/{PlayerChangePasswordNd-Q0-0LzFd.js → PlayerChangePasswordNd-B3rDb5O5.js} +1 -1
  80. package/components/{PlayerChangePasswordNd-kfBqQcFU.cjs → PlayerChangePasswordNd-BzMs85KK.cjs} +1 -1
  81. package/components/{PlayerChangePasswordNd-B-ckQb5j.js → PlayerChangePasswordNd-CAT2EQjB.js} +1 -1
  82. package/components/{PlayerDeposit-CUNykiS2.cjs → PlayerDeposit-B1f1UFsF.cjs} +1 -1
  83. package/components/{PlayerDeposit-D9pnDQ72.js → PlayerDeposit-BfH6wTH9.js} +1 -1
  84. package/components/{PlayerDeposit-IWUtmkdA.js → PlayerDeposit-D8LW-i6r.js} +1 -1
  85. package/components/{PlayerGamingHistory-CAWcXMDM.cjs → PlayerGamingHistory-BxBhGzaL.cjs} +1 -1
  86. package/components/{PlayerGamingHistory-D2ygyFQj.js → PlayerGamingHistory-DHA7GY26.js} +3 -3
  87. package/components/{PlayerGamingHistory-BwA7bue0.js → PlayerGamingHistory-DjrkGYuc.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-CmaTv3Xo.cjs → PlayerPendingWithdrawals-CLsypnOq.cjs} +1 -1
  89. package/components/{PlayerPendingWithdrawals-B1DtNkWj.js → PlayerPendingWithdrawals-DiroNzs8.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-NruoAjs2.js → PlayerPendingWithdrawals-He6Q0L7q.js} +1 -1
  91. package/components/{PlayerProfileInfo-C6mpr0NI.js → PlayerProfileInfo-B8jemVIg.js} +3 -3
  92. package/components/{PlayerProfileInfo-BlAtv9JQ.js → PlayerProfileInfo-CfJcWIGM.js} +3 -3
  93. package/components/{PlayerProfileInfo-BN_nmL2_.cjs → PlayerProfileInfo-eUJ9QsB4.cjs} +1 -1
  94. package/components/{PlayerRealityCheck-BMEE0YuO.js → PlayerRealityCheck-CDtMCqH8.js} +1 -1
  95. package/components/{PlayerRealityCheck-C07ALoZc.cjs → PlayerRealityCheck-D6OyPgR3.cjs} +1 -1
  96. package/components/{PlayerRealityCheck-e4OXfVRc.js → PlayerRealityCheck-Dd1WFGTy.js} +1 -1
  97. package/components/{PlayerTransactionHistory-BGMhKZ1A.cjs → PlayerTransactionHistory-0729vdkV.cjs} +1 -1
  98. package/components/{PlayerTransactionHistory-Du0SUmkH.js → PlayerTransactionHistory-BAaclaZG.js} +1 -1
  99. package/components/{PlayerTransactionHistory-CpG8GGZl.js → PlayerTransactionHistory-tjfPS42W.js} +1 -1
  100. package/components/{PlayerWithdrawal-DC7xcl_E.cjs → PlayerWithdrawal-SAmUwMFa.cjs} +1 -1
  101. package/components/{PlayerWithdrawal-C5VtcCek.js → PlayerWithdrawal-_0zvnpJq.js} +1 -1
  102. package/components/{PlayerWithdrawal-DZrMEmpo.js → PlayerWithdrawal-yt9TOeuz.js} +1 -1
  103. package/components/{QrSessionGenerator-BWEmjjNF.js → QrSessionGenerator-CZlvxqis.js} +1 -1
  104. package/components/{QrSessionGenerator-GLH14lh4.cjs → QrSessionGenerator-DC3siWEA.cjs} +1 -1
  105. package/components/{QrSessionGenerator-Vv6Go1KV.js → QrSessionGenerator-DYhgBoQb.js} +1 -1
  106. package/es2015/player-account-controller-nd.cjs +1 -1
  107. package/es2015/player-account-controller-nd.js +1 -1
  108. package/esnext/player-account-controller-nd.js +1 -1
  109. package/lazy/{general-logout-BRa7oFTH.js → general-logout-BnqdVoxR.js} +1 -1
  110. package/lazy/{general-logout-YWvdiNnI.cjs → general-logout-D15QF6zf.cjs} +1 -1
  111. package/lazy/{general-logout-CLYmbIxd.js → general-logout-UjPBBt6k.js} +1 -1
  112. package/lazy/{player-account-betting-history-DarYTbFb.js → player-account-betting-history-DQoH2tde.js} +1 -1
  113. package/lazy/{player-account-betting-history-BU7En8At.cjs → player-account-betting-history-QzDdZshj.cjs} +1 -1
  114. package/lazy/{player-account-betting-history-kZZmwxEQ.js → player-account-betting-history-y0kakFnE.js} +1 -1
  115. package/lazy/{player-account-biometrics-C6UudRfc.cjs → player-account-biometrics-B7y669aF.cjs} +1 -1
  116. package/lazy/{player-account-biometrics-BHuyyrb4.js → player-account-biometrics-CM99XxZ9.js} +1 -1
  117. package/lazy/{player-account-biometrics-9Jp_DBRA.js → player-account-biometrics-GhH08TPf.js} +1 -1
  118. package/lazy/{player-account-biometrics-action-9_34yNMa.js → player-account-biometrics-action-C9m98kmY.js} +1 -1
  119. package/lazy/{player-account-biometrics-action-CHMqzmo6.js → player-account-biometrics-action-DaI4pnDu.js} +1 -1
  120. package/lazy/{player-account-biometrics-action-D5uhErfh.cjs → player-account-biometrics-action-n6pxGIzi.cjs} +1 -1
  121. package/lazy/{player-account-closure-nd-RKYEJxSX.js → player-account-closure-nd-B1mFnR03.js} +1 -1
  122. package/lazy/{player-account-closure-nd-C4ZcOm71.cjs → player-account-closure-nd-B7GndfRu.cjs} +1 -1
  123. package/lazy/{player-account-closure-nd-Bk3IGPQs.js → player-account-closure-nd-lSzmCAmN.js} +1 -1
  124. package/lazy/{player-account-gaming-limits-X-DXA1to.js → player-account-gaming-limits-2Mqy35B-.js} +1 -1
  125. package/lazy/{player-account-gaming-limits-LSQdj5rC.js → player-account-gaming-limits-V1tGK_-H.js} +1 -1
  126. package/lazy/{player-account-gaming-limits-confirmation-modal-CQboPROf.js → player-account-gaming-limits-confirmation-modal-BG6TKPfR.js} +1 -1
  127. package/lazy/{player-account-gaming-limits-confirmation-modal-D-MdzvHG.cjs → player-account-gaming-limits-confirmation-modal-BG9KAa5y.cjs} +1 -1
  128. package/lazy/{player-account-gaming-limits-confirmation-modal-C81iaJi7.js → player-account-gaming-limits-confirmation-modal-C9om498i.js} +1 -1
  129. package/lazy/{player-account-gaming-limits-group-edit-QPhaZZ4g.js → player-account-gaming-limits-group-edit-CX0HgjEk.js} +1 -1
  130. package/lazy/{player-account-gaming-limits-group-edit-XTdrALvy.js → player-account-gaming-limits-group-edit-DsJb0EbV.js} +1 -1
  131. package/lazy/{player-account-gaming-limits-group-edit-C2KG_WD3.cjs → player-account-gaming-limits-group-edit-JGoC1ee_.cjs} +1 -1
  132. package/lazy/{player-account-gaming-limits-history-2-nd-C8VqM5qX.cjs → player-account-gaming-limits-history-2-nd-DXDsK44G.cjs} +1 -1
  133. package/lazy/{player-account-gaming-limits-history-2-nd-D55d3WUh.js → player-account-gaming-limits-history-2-nd-DZ4zxuOx.js} +1 -1
  134. package/lazy/{player-account-gaming-limits-history-2-nd-BwwKHGUP.js → player-account-gaming-limits-history-2-nd-gSQNL5w4.js} +1 -1
  135. package/lazy/{player-account-gaming-limits-info-card-BYvB6TfO.js → player-account-gaming-limits-info-card-HQdiRDhy.js} +1 -1
  136. package/lazy/{player-account-gaming-limits-info-card-EIbtUiFM.cjs → player-account-gaming-limits-info-card-M-fUu7yf.cjs} +1 -1
  137. package/lazy/{player-account-gaming-limits-info-card-DvizEm9E.js → player-account-gaming-limits-info-card-dqzFGjkc.js} +1 -1
  138. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DCs5ekLS.js → player-account-gaming-limits-page-2-gm16-nd-ByZHp7Ct.js} +1 -1
  139. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-Bdc9AF2V.cjs → player-account-gaming-limits-page-2-gm16-nd-CaYW_JOn.cjs} +1 -1
  140. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-jL3g5EM3.js → player-account-gaming-limits-page-2-gm16-nd-DLNWtwKK.js} +1 -1
  141. package/lazy/{player-account-gaming-limits-popup-C-FxPjHK.js → player-account-gaming-limits-popup-CFXZQjq0.js} +1 -1
  142. package/lazy/{player-account-gaming-limits-popup-q2ChaCJV.cjs → player-account-gaming-limits-popup-Dczf93To.cjs} +1 -1
  143. package/lazy/{player-account-gaming-limits-popup-NmLrg23B.js → player-account-gaming-limits-popup-Th19iXmE.js} +1 -1
  144. package/lazy/{player-account-gaming-limits-CvvZ8lBz.cjs → player-account-gaming-limits-wH_XlMem.cjs} +1 -1
  145. package/lazy/{player-account-gaming-limits-wrapper-2-nd-N9xKrQL4.js → player-account-gaming-limits-wrapper-2-nd-B0LgaMSW.js} +1 -1
  146. package/lazy/{player-account-gaming-limits-wrapper-2-nd-Ct4Ot1zY.cjs → player-account-gaming-limits-wrapper-2-nd-CBebGCQu.cjs} +1 -1
  147. package/lazy/{player-account-gaming-limits-wrapper-2-nd-B1CLqxg8.js → player-account-gaming-limits-wrapper-2-nd-Cz8NFT2W.js} +1 -1
  148. package/lazy/{player-account-general-confirmation-modal-C_falRjk.js → player-account-general-confirmation-modal-BigF1N1g.js} +1 -1
  149. package/lazy/{player-account-general-confirmation-modal-PTOjbtqO.cjs → player-account-general-confirmation-modal-CgBoQoNk.cjs} +1 -1
  150. package/lazy/{player-account-general-confirmation-modal-tWM1iF7D.js → player-account-general-confirmation-modal-DWhzWgD7.js} +1 -1
  151. package/lazy/{player-account-menu-nd-ByiaAuBh.js → player-account-menu-nd-BnGLadIu.js} +1 -1
  152. package/lazy/{player-account-menu-nd-D57UZIdB.cjs → player-account-menu-nd-CRX7aI8q.cjs} +1 -1
  153. package/lazy/{player-account-menu-nd-BUXebTFM.js → player-account-menu-nd-D6T-pcw5.js} +1 -1
  154. package/lazy/{player-account-modal-C_OUrtid.js → player-account-modal-BSWe8pnp.js} +1 -1
  155. package/lazy/{player-account-modal-DmNBMFMU.js → player-account-modal-Bsbwry-2.js} +1 -1
  156. package/lazy/{player-account-modal-Dhnkrozt.cjs → player-account-modal-DKtGi_Qb.cjs} +1 -1
  157. package/lazy/{player-account-notifications-BUT2JjWt.js → player-account-notifications-BqR3po1p.js} +1 -1
  158. package/lazy/{player-account-notifications-PdMNdxWj.cjs → player-account-notifications-C3Bm3Qke.cjs} +1 -1
  159. package/lazy/{player-account-notifications-fxN7fdL1.js → player-account-notifications-DYqXtTyd.js} +1 -1
  160. package/lazy/{player-account-product-restriction-DJQ6_-Qa.js → player-account-product-restriction-CcgX5KSW.js} +1 -1
  161. package/lazy/{player-account-product-restriction-RKQRrg0d.cjs → player-account-product-restriction-CkGs2nsU.cjs} +1 -1
  162. package/lazy/{player-account-product-restriction-Dl4xRpdd.js → player-account-product-restriction-DaM2ZgYZ.js} +1 -1
  163. package/lazy/{player-account-review-frequency-C8e3Ofe6.js → player-account-review-frequency-Be6GcHx8.js} +1 -1
  164. package/lazy/{player-account-review-frequency-CaFEVUiS.cjs → player-account-review-frequency-CAhYSCZt.cjs} +1 -1
  165. package/lazy/{player-account-review-frequency-Dbt7jaw2.js → player-account-review-frequency-DnGS4Xvi.js} +1 -1
  166. package/lazy/{player-account-self-exclusion-nd-C3m55rUx.cjs → player-account-self-exclusion-nd-4u0mcP5f.cjs} +1 -1
  167. package/lazy/{player-account-self-exclusion-nd-CMzyeF2O.js → player-account-self-exclusion-nd-QOp5UFK8.js} +1 -1
  168. package/lazy/{player-account-self-exclusion-nd-igOQinVk.js → player-account-self-exclusion-nd-eONY2_sQ.js} +1 -1
  169. package/lazy/{player-account-timeout-B036_0d9.js → player-account-timeout-CPq7LVoE.js} +1 -1
  170. package/lazy/{player-account-timeout-BEUUFWEp.js → player-account-timeout-Czu9W4tx.js} +1 -1
  171. package/lazy/{player-account-timeout-BMpiKef8.cjs → player-account-timeout-DV3uO3zf.cjs} +1 -1
  172. package/lazy/{player-account-transactions-history-TfnyUsxn.cjs → player-account-transactions-history-B2W6-Bxp.cjs} +1 -1
  173. package/lazy/{player-account-transactions-history-CyT_-CGQ.js → player-account-transactions-history-BgoIQWc9.js} +1 -1
  174. package/lazy/{player-account-transactions-history-BnoNxzuA.js → player-account-transactions-history-Dot4yD4-.js} +1 -1
  175. package/lazy/{player-active-bonuses-CsFNdeVv.cjs → player-active-bonuses-B2VxDdfo.cjs} +1 -1
  176. package/lazy/{player-active-bonuses-DqiT3imY.js → player-active-bonuses-BzWS7C4r.js} +1 -1
  177. package/lazy/{player-active-bonuses-C6aV91wc.js → player-active-bonuses-CYEfaR0Z.js} +1 -1
  178. package/lazy/{player-bonus-card-BkThed60.js → player-bonus-card-AQQlMVSx.js} +1 -1
  179. package/lazy/{player-bonus-card-DDxqinXp.cjs → player-bonus-card-DGODZ6ma.cjs} +1 -1
  180. package/lazy/{player-bonus-card-CmK7JuVs.js → player-bonus-card-aZwRuhVD.js} +1 -1
  181. package/lazy/{player-bonus-history-B90I1d8P.cjs → player-bonus-history-CwQpiWdv.cjs} +1 -1
  182. package/lazy/{player-bonus-history-BTmzGOZd.js → player-bonus-history-DMW36igS.js} +1 -1
  183. package/lazy/{player-bonus-history-BjewgN6o.js → player-bonus-history-Drumi6vs.js} +1 -1
  184. package/lazy/{player-change-password-nd--Eu7RVPL.js → player-change-password-nd-Bn-tles7.js} +1 -1
  185. package/lazy/{player-change-password-nd-CYgC2SpI.js → player-change-password-nd-DKm51_CV.js} +1 -1
  186. package/lazy/{player-change-password-nd-CcOG3Nyt.cjs → player-change-password-nd-DfXxOYUg.cjs} +1 -1
  187. package/lazy/{player-deposit-CqMXvpaZ.cjs → player-deposit-Be0LCFhK.cjs} +1 -1
  188. package/lazy/{player-deposit-CCOOcgA1.js → player-deposit-DYQ9sKli.js} +1 -1
  189. package/lazy/{player-deposit-zE7TJYA1.js → player-deposit-DdhHYdrh.js} +1 -1
  190. package/lazy/{player-gaming-history-CXi3vfwK.js → player-gaming-history-C2VyELi9.js} +1 -1
  191. package/lazy/{player-gaming-history-W5sKfQCt.js → player-gaming-history-CsZXEtI1.js} +1 -1
  192. package/lazy/{player-gaming-history-CC0GsrpC.cjs → player-gaming-history-DILRYPIO.cjs} +1 -1
  193. package/lazy/{player-pending-withdrawals-C9x40s9Q.js → player-pending-withdrawals-B795cfI3.js} +1 -1
  194. package/lazy/{player-pending-withdrawals-CrKrRCCj.cjs → player-pending-withdrawals-Bc6jp_p3.cjs} +1 -1
  195. package/lazy/{player-pending-withdrawals-BEyih5KL.js → player-pending-withdrawals-Dnaqal3P.js} +1 -1
  196. package/lazy/{player-profile-info-CQYbmwAF.cjs → player-profile-info-B-bs3JzM.cjs} +1 -1
  197. package/lazy/{player-profile-info-DJFe5Jxb.js → player-profile-info-BLE17mMU.js} +1 -1
  198. package/lazy/{player-profile-info-Ch4sM284.js → player-profile-info-BuvGXYTc.js} +1 -1
  199. package/lazy/{player-reality-check-BTj6SqVv.js → player-reality-check-Bnmf1cke.js} +1 -1
  200. package/lazy/{player-reality-check-CBG_fMO9.js → player-reality-check-Cu6AvW1l.js} +1 -1
  201. package/lazy/{player-reality-check-Cwcwss6e.cjs → player-reality-check-PboIChHW.cjs} +1 -1
  202. package/lazy/{player-transaction-history-D1OE0Quq.js → player-transaction-history-D7mn1ohl.js} +1 -1
  203. package/lazy/{player-transaction-history-h8r2RnJt.js → player-transaction-history-E40MeOgT.js} +1 -1
  204. package/lazy/{player-transaction-history-BIvw4k1U.cjs → player-transaction-history-Mjr0X7RG.cjs} +1 -1
  205. package/lazy/{player-withdrawal-Bqkfqbul.js → player-withdrawal-B1v716rq.js} +1 -1
  206. package/lazy/{player-withdrawal-DO_9su_q.js → player-withdrawal-CgBTk81V.js} +1 -1
  207. package/lazy/{player-withdrawal-CXGIJvjX.cjs → player-withdrawal-D40Wd7En.cjs} +1 -1
  208. package/lazy/{qr-session-generator-BER1sOvn.js → qr-session-generator-BDPPDX0Z.js} +1 -1
  209. package/lazy/{qr-session-generator-C3ny9pzb.cjs → qr-session-generator-Bbd_6AtA.cjs} +1 -1
  210. package/lazy/{qr-session-generator-WfzXLYdK.js → qr-session-generator-KeKQOMN0.js} +1 -1
  211. package/package.json +1 -1
@@ -1,49 +1,49 @@
1
- "use strict";var vl=Object.defineProperty,gl=Object.defineProperties;var bl=Object.getOwnPropertyDescriptors;var Vo=Object.getOwnPropertySymbols;var yl=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable;var Ho=(r,e,t)=>e in r?vl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,st=(r,e)=>{for(var t in e||(e={}))yl.call(e,t)&&Ho(r,t,e[t]);if(Vo)for(var t of Vo(e))wl.call(e,t)&&Ho(r,t,e[t]);return r},mr=(r,e)=>gl(r,bl(e));var _r=(r,e,t)=>new Promise((i,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(r,e)).next())});const c=require("./PlayerAccountControllerNd-DV54Hl05.cjs");require("../lazy/player-bonus-card-DDxqinXp.cjs");function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(r)}function ce(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function q(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function oe(r){q(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||ze(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function xl(r,e){q(2,arguments);var t=oe(r),i=ce(e);if(isNaN(i))return new Date(NaN);if(!i)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+i+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function Cl(r,e){q(2,arguments);var t=oe(r).getTime(),i=ce(e);return new Date(t+i)}var kl={};function wt(){return kl}function tn(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function El(r){q(1,arguments);var e=oe(r);return e.setHours(0,0,0,0),e}var Pl=6e4,Al=36e5,Tl=1e3;function Il(r){return q(1,arguments),r instanceof Date||ze(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Sl(r){if(q(1,arguments),!Il(r)&&typeof r!="number")return!1;var e=oe(r);return!isNaN(Number(e))}function Dl(r){q(1,arguments);var e=oe(r);return e.setHours(23,59,59,999),e}function rn(r,e){q(2,arguments);var t=ce(e);return Cl(r,-t)}var Ol=864e5;function Ml(r){q(1,arguments);var e=oe(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime(),o=t-i;return Math.floor(o/Ol)+1}function ft(r){q(1,arguments);var e=1,t=oe(r),i=t.getUTCDay(),o=(i<e?7:0)+i-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function on(r){q(1,arguments);var e=oe(r),t=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(t+1,0,4),i.setUTCHours(0,0,0,0);var o=ft(i),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=ft(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Nl(r){q(1,arguments);var e=on(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var i=ft(t);return i}var zl=6048e5;function an(r){q(1,arguments);var e=oe(r),t=ft(e).getTime()-Nl(e).getTime();return Math.round(t/zl)+1}function Je(r,e){var t,i,o,a,n,s,l,d;q(1,arguments);var u=wt(),h=ce((t=(i=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=oe(r),m=p.getUTCDay(),_=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-_),p.setUTCHours(0,0,0,0),p}function Yi(r,e){var t,i,o,a,n,s,l,d;q(1,arguments);var u=oe(r),h=u.getUTCFullYear(),p=wt(),m=ce((t=(i=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&i!==void 0?i:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(h+1,0,m),_.setUTCHours(0,0,0,0);var f=Je(_,e),x=new Date(0);x.setUTCFullYear(h,0,m),x.setUTCHours(0,0,0,0);var E=Je(x,e);return u.getTime()>=f.getTime()?h+1:u.getTime()>=E.getTime()?h:h-1}function Bl(r,e){var t,i,o,a,n,s,l,d;q(1,arguments);var u=wt(),h=ce((t=(i=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=Yi(r,e),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var _=Je(m,e);return _}var Ll=6048e5;function nn(r,e){q(1,arguments);var t=oe(r),i=Je(t,e).getTime()-Bl(t,e).getTime();return Math.round(i/Ll)+1}function U(r,e){for(var t=r<0?"-":"",i=Math.abs(r).toString();i.length<e;)i="0"+i;return t+i}var Fe={y:function(e,t){var i=e.getUTCFullYear(),o=i>0?i:1-i;return U(t==="yy"?o%100:o,t.length)},M:function(e,t){var i=e.getUTCMonth();return t==="M"?String(i+1):U(i+1,2)},d:function(e,t){return U(e.getUTCDate(),t.length)},a:function(e,t){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(e,t){return U(e.getUTCHours()%12||12,t.length)},H:function(e,t){return U(e.getUTCHours(),t.length)},m:function(e,t){return U(e.getUTCMinutes(),t.length)},s:function(e,t){return U(e.getUTCSeconds(),t.length)},S:function(e,t){var i=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,i-3));return U(a,t.length)}},lt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fl={G:function(e,t,i){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})}},y:function(e,t,i){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return i.ordinalNumber(a,{unit:"year"})}return Fe.y(e,t)},Y:function(e,t,i,o){var a=Yi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return U(s,2)}return t==="Yo"?i.ordinalNumber(n,{unit:"year"}):U(n,t.length)},R:function(e,t){var i=on(e);return U(i,t.length)},u:function(e,t){var i=e.getUTCFullYear();return U(i,t.length)},Q:function(e,t,i){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return U(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,i){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return U(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,i){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Fe.M(e,t);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,i){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return U(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,i,o){var a=nn(e,o);return t==="wo"?i.ordinalNumber(a,{unit:"week"}):U(a,t.length)},I:function(e,t,i){var o=an(e);return t==="Io"?i.ordinalNumber(o,{unit:"week"}):U(o,t.length)},d:function(e,t,i){return t==="do"?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):Fe.d(e,t)},D:function(e,t,i){var o=Ml(e);return t==="Do"?i.ordinalNumber(o,{unit:"dayOfYear"}):U(o,t.length)},E:function(e,t,i){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,i,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return U(n,2);case"eo":return i.ordinalNumber(n,{unit:"day"});case"eee":return i.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(a,{width:"short",context:"formatting"});case"eeee":default:return i.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,i,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return U(n,t.length);case"co":return i.ordinalNumber(n,{unit:"day"});case"ccc":return i.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(a,{width:"narrow",context:"standalone"});case"cccccc":return i.day(a,{width:"short",context:"standalone"});case"cccc":default:return i.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,i){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return U(a,t.length);case"io":return i.ordinalNumber(a,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});case"iiii":default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,i){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,i){var o=e.getUTCHours(),a;switch(o===12?a=lt.noon:o===0?a=lt.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,i){var o=e.getUTCHours(),a;switch(o>=17?a=lt.evening:o>=12?a=lt.afternoon:o>=4?a=lt.morning:a=lt.night,t){case"B":case"BB":case"BBB":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,i){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return Fe.h(e,t)},H:function(e,t,i){return t==="Ho"?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Fe.H(e,t)},K:function(e,t,i){var o=e.getUTCHours()%12;return t==="Ko"?i.ordinalNumber(o,{unit:"hour"}):U(o,t.length)},k:function(e,t,i){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?i.ordinalNumber(o,{unit:"hour"}):U(o,t.length)},m:function(e,t,i){return t==="mo"?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Fe.m(e,t)},s:function(e,t,i){return t==="so"?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Fe.s(e,t)},S:function(e,t){return Fe.S(e,t)},X:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return $o(n);case"XXXX":case"XX":return Ge(n);case"XXXXX":case"XXX":default:return Ge(n,":")}},x:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return $o(n);case"xxxx":case"xx":return Ge(n);case"xxxxx":case"xxx":default:return Ge(n,":")}},O:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Uo(n,":");case"OOOO":default:return"GMT"+Ge(n,":")}},z:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Uo(n,":");case"zzzz":default:return"GMT"+Ge(n,":")}},t:function(e,t,i,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return U(n,t.length)},T:function(e,t,i,o){var a=o._originalDate||e,n=a.getTime();return U(n,t.length)}};function Uo(r,e){var t=r>0?"-":"+",i=Math.abs(r),o=Math.floor(i/60),a=i%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+U(a,2)}function $o(r,e){if(r%60===0){var t=r>0?"-":"+";return t+U(Math.abs(r)/60,2)}return Ge(r,e)}function Ge(r,e){var t=e||"",i=r>0?"-":"+",o=Math.abs(r),a=U(Math.floor(o/60),2),n=U(o%60,2);return i+a+t+n}var Wo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},sn=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Rl=function(e,t){var i=e.match(/(P+)(p+)?/)||[],o=i[1],a=i[2];if(!a)return Wo(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",Wo(o,t)).replace("{{time}}",sn(a,t))},gi={p:sn,P:Rl},Vl=["D","DD"],Hl=["YY","YYYY"];function ln(r){return Vl.indexOf(r)!==-1}function dn(r){return Hl.indexOf(r)!==-1}function Ar(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ul={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$l=function(e,t,i){var o,a=Ul[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o};function ri(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,i=r.formats[t]||r.formats[r.defaultWidth];return i}}var Wl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ql={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jl={date:ri({formats:Wl,defaultWidth:"full"}),time:ri({formats:ql,defaultWidth:"full"}),dateTime:ri({formats:Yl,defaultWidth:"full"})},Gl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kl=function(e,t,i,o){return Gl[e]};function Ot(r){return function(e,t){var i=t!=null&&t.context?String(t.context):"standalone",o;if(i==="formatting"&&r.formattingValues){var a=r.defaultFormattingWidth||r.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=r.formattingValues[n]||r.formattingValues[a]}else{var s=r.defaultWidth,l=t!=null&&t.width?String(t.width):r.defaultWidth;o=r.values[l]||r.values[s]}var d=r.argumentCallback?r.argumentCallback(e):e;return o[d]}}var Xl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ql={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Zl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ed={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},td={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rd=function(e,t){var i=Number(e),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},id={ordinalNumber:rd,era:Ot({values:Xl,defaultWidth:"wide"}),quarter:Ot({values:Ql,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ot({values:Jl,defaultWidth:"wide"}),day:Ot({values:Zl,defaultWidth:"wide"}),dayPeriod:Ot({values:ed,defaultWidth:"wide",formattingValues:td,defaultFormattingWidth:"wide"})};function Mt(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.width,o=i&&r.matchPatterns[i]||r.matchPatterns[r.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=i&&r.parsePatterns[i]||r.parsePatterns[r.defaultParseWidth],l=Array.isArray(s)?ad(s,function(h){return h.test(n)}):od(s,function(h){return h.test(n)}),d;d=r.valueCallback?r.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var u=e.slice(n.length);return{value:d,rest:u}}}function od(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function ad(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function nd(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.match(r.matchPattern);if(!i)return null;var o=i[0],a=e.match(r.parsePattern);if(!a)return null;var n=r.valueCallback?r.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var sd=/^(\d+)(th|st|nd|rd)?/i,ld=/\d+/i,dd={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cd={any:[/^b/i,/^(a|c)/i]},ud={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hd={any:[/1/i,/2/i,/3/i,/4/i]},pd={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},md={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},fd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vd={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bd={ordinalNumber:nd({matchPattern:sd,parsePattern:ld,valueCallback:function(e){return parseInt(e,10)}}),era:Mt({matchPatterns:dd,defaultMatchWidth:"wide",parsePatterns:cd,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:ud,defaultMatchWidth:"wide",parsePatterns:hd,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Mt({matchPatterns:pd,defaultMatchWidth:"wide",parsePatterns:md,defaultParseWidth:"any"}),day:Mt({matchPatterns:_d,defaultMatchWidth:"wide",parsePatterns:fd,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:vd,defaultMatchWidth:"any",parsePatterns:gd,defaultParseWidth:"any"})},cn={code:"en-US",formatDistance:$l,formatLong:jl,formatRelative:Kl,localize:id,match:bd,options:{weekStartsOn:0,firstWeekContainsDate:1}},yd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xd=/^'([^]*?)'?$/,Cd=/''/g,kd=/[a-zA-Z]/;function Se(r,e,t){var i,o,a,n,s,l,d,u,h,p,m,_,f,x;q(2,arguments);var E=String(e),C=wt(),F=(i=(o=void 0)!==null&&o!==void 0?o:C.locale)!==null&&i!==void 0?i:cn,A=ce((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&n!==void 0?n:(d=C.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var J=ce((h=(p=(m=(_=void 0)!==null&&_!==void 0?_:void 0)!==null&&m!==void 0?m:C.weekStartsOn)!==null&&p!==void 0?p:(f=C.locale)===null||f===void 0||(x=f.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(J>=0&&J<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var W=oe(r);if(!Sl(W))throw new RangeError("Invalid time value");var me=tn(W),Y=rn(W,me),S={firstWeekContainsDate:A,weekStartsOn:J,locale:F,_originalDate:W},k=E.match(wd).map(function(T){var I=T[0];if(I==="p"||I==="P"){var re=gi[I];return re(T,F.formatLong)}return T}).join("").match(yd).map(function(T){if(T==="''")return"'";var I=T[0];if(I==="'")return Ed(T);var re=Fl[I];if(re)return dn(T)&&Ar(T,e,String(r)),ln(T)&&Ar(T,e,String(r)),re(Y,T,F.localize,S);if(I.match(kd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return T}).join("");return k}function Ed(r){var e=r.match(xd);return e?e[1].replace(Cd,"'"):r}function Pd(r,e){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}function Ad(r){return q(1,arguments),oe(r).getFullYear()}function qo(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=Array(e);t<e;t++)i[t]=r[t];return i}function Td(r,e){if(r){if(typeof r=="string")return qo(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qo(r,e):void 0}}function Yo(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Td(r))||e){t&&(r=t);var i=0,o=function(){};return{s:o,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function y(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function bi(r,e){return bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},bi(r,e)}function B(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&bi(r,e)}function Tr(r){return Tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tr(r)}function un(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(un=function(){return!!r})()}function Id(r,e){if(e&&(ze(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(r)}function L(r){var e=un();return function(){var t,i=Tr(r);if(e){var o=Tr(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return Id(this,t)}}function O(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Sd(r,e){if(ze(r)!="object"||!r)return r;var t;if(typeof Symbol!="undefined"&&(t=r[Symbol.toPrimitive])!==void 0){var i=t.call(r,e);if(ze(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function hn(r){var e=Sd(r,"string");return ze(e)=="symbol"?e:e+""}function Dd(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,hn(i.key),i)}}function M(r,e,t){return e&&Dd(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function b(r,e,t){return(e=hn(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Od=10,pn=function(){function r(){O(this,r),b(this,"priority",void 0),b(this,"subPriority",0)}return M(r,[{key:"validate",value:function(t,i){return!0}}]),r}(),Md=function(r){B(t,r);var e=L(t);function t(i,o,a,n,s){var l;return O(this,t),l=e.call(this),l.value=i,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return M(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(pn),Nd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",Od),b(y(i),"subPriority",-1),i}return M(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(pn),V=function(){function r(){O(this,r),b(this,"incompatibleTokens",void 0),b(this,"priority",void 0),b(this,"subPriority",void 0)}return M(r,[{key:"run",value:function(t,i,o,a){var n=this.parse(t,i,o,a);return n?{setter:new Md(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,i,o){return!0}}]),r}(),zd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",140),b(y(i),"incompatibleTokens",["R","u","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Z={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Pe={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ee(r,e){return r&&{value:e(r.value),rest:r.rest}}function X(r,e){var t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ae(r,e){var t=e.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var i=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:i*(o*Al+a*Pl+n*Tl),rest:e.slice(t[0].length)}}function mn(r){return X(Z.anyDigitsSigned,r)}function Q(r,e){switch(r){case 1:return X(Z.singleDigit,e);case 2:return X(Z.twoDigits,e);case 3:return X(Z.threeDigits,e);case 4:return X(Z.fourDigits,e);default:return X(new RegExp("^\\d{1,"+r+"}"),e)}}function Ir(r,e){switch(r){case 1:return X(Z.singleDigitSigned,e);case 2:return X(Z.twoDigitsSigned,e);case 3:return X(Z.threeDigitsSigned,e);case 4:return X(Z.fourDigitsSigned,e);default:return X(new RegExp("^-?\\d{1,"+r+"}"),e)}}function ji(r){switch(r){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _n(r,e){var t=e>0,i=t?e:1-e,o;if(i<=50)o=r||100;else{var a=i+50,n=Math.floor(a/100)*100,s=r>=a%100;o=r+n-(s?100:0)}return t?o:1-o}function fn(r){return r%400===0||r%4===0&&r%100!==0}var Bd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return ee(Q(4,o),s);case"yo":return ee(n.ordinalNumber(o,{unit:"year"}),s);default:return ee(Q(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=_n(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Ld=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return ee(Q(4,o),s);case"Yo":return ee(n.ordinalNumber(o,{unit:"year"}),s);default:return ee(Q(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=Yi(o,s);if(n.isTwoDigitYear){var d=_n(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Je(o,s)}var u=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Je(o,s)}}]),t}(V),Fd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a){return Ir(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),ft(s)}}]),t}(V),Rd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a){return Ir(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Vd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",120),b(y(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return Q(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Hd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",120),b(y(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return Q(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Ud=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),b(y(i),"priority",110),i}return M(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return ee(X(Z.month,o),s);case"MM":return ee(Q(2,o),s);case"Mo":return ee(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),$d=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",110),b(y(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return ee(X(Z.month,o),s);case"LL":return ee(Q(2,o),s);case"Lo":return ee(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Wd(r,e,t){q(2,arguments);var i=oe(r),o=ce(e),a=nn(i,t)-o;return i.setUTCDate(i.getUTCDate()-a*7),i}var qd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",100),b(y(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return X(Z.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return Je(Wd(o,n,s),s)}}]),t}(V);function Yd(r,e){q(2,arguments);var t=oe(r),i=ce(e),o=an(t)-i;return t.setUTCDate(t.getUTCDate()-o*7),t}var jd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",100),b(y(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return X(Z.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return ft(Yd(o,n))}}]),t}(V),Gd=[31,28,31,30,31,30,31,31,30,31,30,31],Kd=[31,29,31,30,31,30,31,31,30,31,30,31],Xd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"subPriority",1),b(y(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return X(Z.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=fn(n),l=o.getUTCMonth();return s?a>=1&&a<=Kd[l]:a>=1&&a<=Gd[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(V),Qd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"subpriority",1),b(y(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return X(Z.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=fn(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Gi(r,e,t){var i,o,a,n,s,l,d,u;q(2,arguments);var h=wt(),p=ce((i=(o=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=oe(r),_=ce(e),f=m.getUTCDay(),x=_%7,E=(x+7)%7,C=(E<p?7:0)+_-f;return m.setUTCDate(m.getUTCDate()+C),m}var Jd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Gi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),Zd=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return ee(Q(a.length,o),l);case"eo":return ee(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Gi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),ec=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return ee(Q(a.length,o),l);case"co":return ee(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Gi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V);function tc(r,e){q(2,arguments);var t=ce(e);t%7===0&&(t=t-7);var i=1,o=oe(r),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<i?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var rc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return Q(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return ee(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return ee(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ee(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ee(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=tc(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(V),ic=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",80),b(y(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(ji(n),0,0,0),o}}]),t}(V),oc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",80),b(y(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(ji(n),0,0,0),o}}]),t}(V),ac=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",80),b(y(i),"incompatibleTokens",["a","b","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(ji(n),0,0,0),o}}]),t}(V),nc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["H","K","k","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return X(Z.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),sc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return X(Z.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(V),lc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["h","H","k","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return X(Z.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),dc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return X(Z.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(V),cc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",60),b(y(i),"incompatibleTokens",["t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return X(Z.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(V),uc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",50),b(y(i),"incompatibleTokens",["t","T"]),i}return M(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return X(Z.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(V),hc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",30),b(y(i),"incompatibleTokens",["t","T"]),i}return M(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return ee(Q(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(V),pc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",10),b(y(i),"incompatibleTokens",["t","T","x"]),i}return M(t,[{key:"parse",value:function(o,a){switch(a){case"X":return Ae(Pe.basicOptionalMinutes,o);case"XX":return Ae(Pe.basic,o);case"XXXX":return Ae(Pe.basicOptionalSeconds,o);case"XXXXX":return Ae(Pe.extendedOptionalSeconds,o);case"XXX":default:return Ae(Pe.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),mc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",10),b(y(i),"incompatibleTokens",["t","T","X"]),i}return M(t,[{key:"parse",value:function(o,a){switch(a){case"x":return Ae(Pe.basicOptionalMinutes,o);case"xx":return Ae(Pe.basic,o);case"xxxx":return Ae(Pe.basicOptionalSeconds,o);case"xxxxx":return Ae(Pe.extendedOptionalSeconds,o);case"xxx":default:return Ae(Pe.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),_c=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",40),b(y(i),"incompatibleTokens","*"),i}return M(t,[{key:"parse",value:function(o){return mn(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),fc=function(r){B(t,r);var e=L(t);function t(){var i;O(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",20),b(y(i),"incompatibleTokens","*"),i}return M(t,[{key:"parse",value:function(o){return mn(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),vc={G:new zd,y:new Bd,Y:new Ld,R:new Fd,u:new Rd,Q:new Vd,q:new Hd,M:new Ud,L:new $d,w:new qd,I:new jd,d:new Xd,D:new Qd,E:new Jd,e:new Zd,c:new ec,i:new rc,a:new ic,b:new oc,B:new ac,h:new nc,H:new sc,K:new lc,k:new dc,m:new cc,s:new uc,S:new hc,X:new pc,x:new mc,t:new _c,T:new fc},gc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yc=/^'([^]*?)'?$/,wc=/''/g,xc=/\S/,Cc=/[a-zA-Z]/;function yi(r,e,t,i){var o,a,n,s,l,d,u,h,p,m,_,f,x,E;q(3,arguments);var C=String(r),F=String(e),A=wt(),J=(o=(a=void 0)!==null&&a!==void 0?a:A.locale)!==null&&o!==void 0?o:cn;if(!J.match)throw new RangeError("locale must contain match property");var W=ce((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:A.firstWeekContainsDate)!==null&&s!==void 0?s:(u=A.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var me=ce((p=(m=(_=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&_!==void 0?_:A.weekStartsOn)!==null&&m!==void 0?m:(x=A.locale)===null||x===void 0||(E=x.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&p!==void 0?p:0);if(!(me>=0&&me<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(F==="")return C===""?oe(t):new Date(NaN);var Y={firstWeekContainsDate:W,weekStartsOn:me,locale:J},S=[new Nd],k=F.match(bc).map(function(G){var D=G[0];if(D in gi){var ne=gi[D];return ne(G,J.formatLong)}return G}).join("").match(gc),T=[],I=Yo(k),re;try{var Ce=function(){var D=re.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&dn(D)&&Ar(D,F,r),!(i!=null&&i.useAdditionalDayOfYearTokens)&&ln(D)&&Ar(D,F,r);var ne=D[0],qe=vc[ne];if(qe){var Pt=qe.incompatibleTokens;if(Array.isArray(Pt)){var ur=T.find(function(Tt){return Pt.includes(Tt.token)||Tt.token===ne});if(ur)throw new RangeError("The format string mustn't contain `".concat(ur.fullToken,"` and `").concat(D,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&T.length>0)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));T.push({token:ne,fullToken:D});var At=qe.run(C,D,J.match,Y);if(!At)return{v:new Date(NaN)};S.push(At.setter),C=At.rest}else{if(ne.match(Cc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(D==="''"?D="'":ne==="'"&&(D=kc(D)),C.indexOf(D)===0)C=C.slice(D.length);else return{v:new Date(NaN)}}};for(I.s();!(re=I.n()).done;){var he=Ce();if(ze(he)==="object")return he.v}}catch(G){I.e(G)}finally{I.f()}if(C.length>0&&xc.test(C))return new Date(NaN);var Le=S.map(function(G){return G.priority}).sort(function(G,D){return D-G}).filter(function(G,D,ne){return ne.indexOf(G)===D}).map(function(G){return S.filter(function(D){return D.priority===G}).sort(function(D,ne){return ne.subPriority-D.subPriority})}).map(function(G){return G[0]}),ye=oe(t);if(isNaN(ye.getTime()))return new Date(NaN);var ie=rn(ye,tn(ye)),H={},j=Yo(Le),Et;try{for(j.s();!(Et=j.n()).done;){var cr=Et.value;if(!cr.validate(ie,Y))return new Date(NaN);var We=cr.set(ie,H,Y);Array.isArray(We)?(ie=We[0],Pd(H,We[1])):ie=We}}catch(G){j.e(G)}finally{j.f()}return ie}function kc(r){return r.match(yc)[1].replace(wc,"'")}function vn(r,e){q(2,arguments);var t=ce(e);return xl(r,-t)}function jo(r,e){c.addMessages(r,e)}function Ec(r){c.$locale.set(r)}const Go={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."},"en-us":{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."}},Pc={GRANTED:"/v1/bonus/granted"},Ko={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function Ac(t){return _r(this,arguments,function*(r,e={}){const i=typeof r=="string"?r:r.toString(),o=yield fetch(i,e);let a=null;try{a=yield o.json()}catch(l){a=null}if(o.ok&&a)return a;const n=a&&typeof a=="object"?a:{},s={success:!1,errorMessage:typeof n.errorMessage=="string"&&n.errorMessage||o.statusText||String(o.status),errorCode:typeof n.errorCode=="number"?n.errorCode:void 0};return st(st({},n),s)})}function Tc(r,e,t){return _r(this,null,function*(){const i=new URL(`${r}${Pc.GRANTED}`);Object.entries(t).forEach(([a,n])=>{n!=null&&i.searchParams.append(a,String(n))});const o={};return e&&(o["x-SessionId"]=e),Ac(i,{headers:o})})}var Ic=Object.defineProperty,Sc=Object.defineProperties,Dc=Object.getOwnPropertyDescriptors,Xo=Object.getOwnPropertySymbols,Oc=Object.prototype.hasOwnProperty,Mc=Object.prototype.propertyIsEnumerable,wi=(r,e,t)=>e in r?Ic(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Sr=(r,e)=>{for(var t in e||(e={}))Oc.call(e,t)&&wi(r,t,e[t]);if(Xo)for(var t of Xo(e))Mc.call(e,t)&&wi(r,t,e[t]);return r},gn=(r,e)=>Sc(r,Dc(e)),de=(r,e,t)=>wi(r,typeof e!="symbol"?e+"":e,t),Dr=(r,e,t)=>new Promise((i,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(r,e)).next())});/**
1
+ "use strict";var bl=Object.defineProperty,yl=Object.defineProperties;var wl=Object.getOwnPropertyDescriptors;var Ho=Object.getOwnPropertySymbols;var xl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable;var Uo=(r,e,t)=>e in r?bl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ht=(r,e)=>{for(var t in e||(e={}))xl.call(e,t)&&Uo(r,t,e[t]);if(Ho)for(var t of Ho(e))Cl.call(e,t)&&Uo(r,t,e[t]);return r},_r=(r,e)=>yl(r,wl(e));var fr=(r,e,t)=>new Promise((i,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(r,e)).next())});const c=require("./PlayerAccountControllerNd-BF4IYonf.cjs");require("../lazy/player-bonus-card-DGODZ6ma.cjs");function Re(r){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(r)}function ue(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function G(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function ie(r){G(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||Re(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function kl(r,e){G(2,arguments);var t=ie(r),i=ue(e);if(isNaN(i))return new Date(NaN);if(!i)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+i+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function El(r,e){G(2,arguments);var t=ie(r).getTime(),i=ue(e);return new Date(t+i)}var Pl={};function Pt(){return Pl}function rn(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function Al(r){G(1,arguments);var e=ie(r);return e.setHours(0,0,0,0),e}var Tl=6e4,Il=36e5,Sl=1e3;function Dl(r){return G(1,arguments),r instanceof Date||Re(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Ol(r){if(G(1,arguments),!Dl(r)&&typeof r!="number")return!1;var e=ie(r);return!isNaN(Number(e))}function Ml(r){G(1,arguments);var e=ie(r);return e.setHours(23,59,59,999),e}function on(r,e){G(2,arguments);var t=ue(e);return El(r,-t)}var Nl=864e5;function zl(r){G(1,arguments);var e=ie(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime(),o=t-i;return Math.floor(o/Nl)+1}function wt(r){G(1,arguments);var e=1,t=ie(r),i=t.getUTCDay(),o=(i<e?7:0)+i-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function an(r){G(1,arguments);var e=ie(r),t=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(t+1,0,4),i.setUTCHours(0,0,0,0);var o=wt(i),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=wt(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Bl(r){G(1,arguments);var e=an(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var i=wt(t);return i}var Ll=6048e5;function nn(r){G(1,arguments);var e=ie(r),t=wt(e).getTime()-Bl(e).getTime();return Math.round(t/Ll)+1}function rt(r,e){var t,i,o,a,n,s,l,d;G(1,arguments);var u=Pt(),h=ue((t=(i=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ie(r),m=p.getUTCDay(),_=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-_),p.setUTCHours(0,0,0,0),p}function ji(r,e){var t,i,o,a,n,s,l,d;G(1,arguments);var u=ie(r),h=u.getUTCFullYear(),p=Pt(),m=ue((t=(i=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&i!==void 0?i:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(h+1,0,m),_.setUTCHours(0,0,0,0);var f=rt(_,e),k=new Date(0);k.setUTCFullYear(h,0,m),k.setUTCHours(0,0,0,0);var x=rt(k,e);return u.getTime()>=f.getTime()?h+1:u.getTime()>=x.getTime()?h:h-1}function Fl(r,e){var t,i,o,a,n,s,l,d;G(1,arguments);var u=Pt(),h=ue((t=(i=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=ji(r,e),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var _=rt(m,e);return _}var Rl=6048e5;function sn(r,e){G(1,arguments);var t=ie(r),i=rt(t,e).getTime()-Fl(t,e).getTime();return Math.round(i/Rl)+1}function W(r,e){for(var t=r<0?"-":"",i=Math.abs(r).toString();i.length<e;)i="0"+i;return t+i}var Ue={y:function(e,t){var i=e.getUTCFullYear(),o=i>0?i:1-i;return W(t==="yy"?o%100:o,t.length)},M:function(e,t){var i=e.getUTCMonth();return t==="M"?String(i+1):W(i+1,2)},d:function(e,t){return W(e.getUTCDate(),t.length)},a:function(e,t){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(e,t){return W(e.getUTCHours()%12||12,t.length)},H:function(e,t){return W(e.getUTCHours(),t.length)},m:function(e,t){return W(e.getUTCMinutes(),t.length)},s:function(e,t){return W(e.getUTCSeconds(),t.length)},S:function(e,t){var i=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,i-3));return W(a,t.length)}},pt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vl={G:function(e,t,i){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})}},y:function(e,t,i){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return i.ordinalNumber(a,{unit:"year"})}return Ue.y(e,t)},Y:function(e,t,i,o){var a=ji(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return W(s,2)}return t==="Yo"?i.ordinalNumber(n,{unit:"year"}):W(n,t.length)},R:function(e,t){var i=an(e);return W(i,t.length)},u:function(e,t){var i=e.getUTCFullYear();return W(i,t.length)},Q:function(e,t,i){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return W(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,i){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return W(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,i){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Ue.M(e,t);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,i){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return W(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,i,o){var a=sn(e,o);return t==="wo"?i.ordinalNumber(a,{unit:"week"}):W(a,t.length)},I:function(e,t,i){var o=nn(e);return t==="Io"?i.ordinalNumber(o,{unit:"week"}):W(o,t.length)},d:function(e,t,i){return t==="do"?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ue.d(e,t)},D:function(e,t,i){var o=zl(e);return t==="Do"?i.ordinalNumber(o,{unit:"dayOfYear"}):W(o,t.length)},E:function(e,t,i){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,i,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return W(n,2);case"eo":return i.ordinalNumber(n,{unit:"day"});case"eee":return i.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(a,{width:"short",context:"formatting"});case"eeee":default:return i.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,i,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return W(n,t.length);case"co":return i.ordinalNumber(n,{unit:"day"});case"ccc":return i.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(a,{width:"narrow",context:"standalone"});case"cccccc":return i.day(a,{width:"short",context:"standalone"});case"cccc":default:return i.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,i){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return W(a,t.length);case"io":return i.ordinalNumber(a,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});case"iiii":default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,i){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,i){var o=e.getUTCHours(),a;switch(o===12?a=pt.noon:o===0?a=pt.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,i){var o=e.getUTCHours(),a;switch(o>=17?a=pt.evening:o>=12?a=pt.afternoon:o>=4?a=pt.morning:a=pt.night,t){case"B":case"BB":case"BBB":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,i){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return Ue.h(e,t)},H:function(e,t,i){return t==="Ho"?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ue.H(e,t)},K:function(e,t,i){var o=e.getUTCHours()%12;return t==="Ko"?i.ordinalNumber(o,{unit:"hour"}):W(o,t.length)},k:function(e,t,i){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?i.ordinalNumber(o,{unit:"hour"}):W(o,t.length)},m:function(e,t,i){return t==="mo"?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ue.m(e,t)},s:function(e,t,i){return t==="so"?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ue.s(e,t)},S:function(e,t){return Ue.S(e,t)},X:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return $o(n);case"XXXX":case"XX":return Je(n);case"XXXXX":case"XXX":default:return Je(n,":")}},x:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return $o(n);case"xxxx":case"xx":return Je(n);case"xxxxx":case"xxx":default:return Je(n,":")}},O:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wo(n,":");case"OOOO":default:return"GMT"+Je(n,":")}},z:function(e,t,i,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wo(n,":");case"zzzz":default:return"GMT"+Je(n,":")}},t:function(e,t,i,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return W(n,t.length)},T:function(e,t,i,o){var a=o._originalDate||e,n=a.getTime();return W(n,t.length)}};function Wo(r,e){var t=r>0?"-":"+",i=Math.abs(r),o=Math.floor(i/60),a=i%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+W(a,2)}function $o(r,e){if(r%60===0){var t=r>0?"-":"+";return t+W(Math.abs(r)/60,2)}return Je(r,e)}function Je(r,e){var t=e||"",i=r>0?"-":"+",o=Math.abs(r),a=W(Math.floor(o/60),2),n=W(o%60,2);return i+a+t+n}var qo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ln=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hl=function(e,t){var i=e.match(/(P+)(p+)?/)||[],o=i[1],a=i[2];if(!a)return qo(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",qo(o,t)).replace("{{time}}",ln(a,t))},bi={p:ln,P:Hl},Ul=["D","DD"],Wl=["YY","YYYY"];function dn(r){return Ul.indexOf(r)!==-1}function cn(r){return Wl.indexOf(r)!==-1}function Tr(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $l={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ql=function(e,t,i){var o,a=$l[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o};function ii(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,i=r.formats[t]||r.formats[r.defaultWidth];return i}}var Yl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kl={date:ii({formats:Yl,defaultWidth:"full"}),time:ii({formats:jl,defaultWidth:"full"}),dateTime:ii({formats:Gl,defaultWidth:"full"})},Xl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ql=function(e,t,i,o){return Xl[e]};function Mt(r){return function(e,t){var i=t!=null&&t.context?String(t.context):"standalone",o;if(i==="formatting"&&r.formattingValues){var a=r.defaultFormattingWidth||r.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=r.formattingValues[n]||r.formattingValues[a]}else{var s=r.defaultWidth,l=t!=null&&t.width?String(t.width):r.defaultWidth;o=r.values[l]||r.values[s]}var d=r.argumentCallback?r.argumentCallback(e):e;return o[d]}}var Jl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ed={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},td={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},id={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},od=function(e,t){var i=Number(e),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},ad={ordinalNumber:od,era:Mt({values:Jl,defaultWidth:"wide"}),quarter:Mt({values:Zl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Mt({values:ed,defaultWidth:"wide"}),day:Mt({values:td,defaultWidth:"wide"}),dayPeriod:Mt({values:rd,defaultWidth:"wide",formattingValues:id,defaultFormattingWidth:"wide"})};function Nt(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.width,o=i&&r.matchPatterns[i]||r.matchPatterns[r.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=i&&r.parsePatterns[i]||r.parsePatterns[r.defaultParseWidth],l=Array.isArray(s)?sd(s,function(h){return h.test(n)}):nd(s,function(h){return h.test(n)}),d;d=r.valueCallback?r.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var u=e.slice(n.length);return{value:d,rest:u}}}function nd(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function sd(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function ld(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.match(r.matchPattern);if(!i)return null;var o=i[0],a=e.match(r.parsePattern);if(!a)return null;var n=r.valueCallback?r.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var dd=/^(\d+)(th|st|nd|rd)?/i,cd=/\d+/i,ud={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},hd={any:[/^b/i,/^(a|c)/i]},pd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},md={any:[/1/i,/2/i,/3/i,/4/i]},_d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fd={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bd={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},wd={ordinalNumber:ld({matchPattern:dd,parsePattern:cd,valueCallback:function(e){return parseInt(e,10)}}),era:Nt({matchPatterns:ud,defaultMatchWidth:"wide",parsePatterns:hd,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:pd,defaultMatchWidth:"wide",parsePatterns:md,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Nt({matchPatterns:_d,defaultMatchWidth:"wide",parsePatterns:fd,defaultParseWidth:"any"}),day:Nt({matchPatterns:vd,defaultMatchWidth:"wide",parsePatterns:gd,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:bd,defaultMatchWidth:"any",parsePatterns:yd,defaultParseWidth:"any"})},un={code:"en-US",formatDistance:ql,formatLong:Kl,formatRelative:Ql,localize:ad,match:wd,options:{weekStartsOn:0,firstWeekContainsDate:1}},xd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kd=/^'([^]*?)'?$/,Ed=/''/g,Pd=/[a-zA-Z]/;function Ne(r,e,t){var i,o,a,n,s,l,d,u,h,p,m,_,f,k;G(2,arguments);var x=String(e),C=Pt(),F=(i=(o=void 0)!==null&&o!==void 0?o:C.locale)!==null&&i!==void 0?i:un,z=ue((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&n!==void 0?n:(d=C.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=ue((h=(p=(m=(_=void 0)!==null&&_!==void 0?_:void 0)!==null&&m!==void 0?m:C.weekStartsOn)!==null&&p!==void 0?p:(f=C.locale)===null||f===void 0||(k=f.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&h!==void 0?h:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var q=ie(r);if(!Ol(q))throw new RangeError("Invalid time value");var he=rn(q),X=on(q,he),R={firstWeekContainsDate:z,weekStartsOn:V,locale:F,_originalDate:q},E=x.match(Cd).map(function(P){var T=P[0];if(T==="p"||T==="P"){var ae=bi[T];return ae(P,F.formatLong)}return P}).join("").match(xd).map(function(P){if(P==="''")return"'";var T=P[0];if(T==="'")return Ad(P);var ae=Vl[T];if(ae)return cn(P)&&Tr(P,e,String(r)),dn(P)&&Tr(P,e,String(r)),ae(X,P,F.localize,R);if(T.match(Pd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return P}).join("");return E}function Ad(r){var e=r.match(kd);return e?e[1].replace(Ed,"'"):r}function Td(r,e){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}function Id(r){return G(1,arguments),ie(r).getFullYear()}function Yo(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=Array(e);t<e;t++)i[t]=r[t];return i}function Sd(r,e){if(r){if(typeof r=="string")return Yo(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Yo(r,e):void 0}}function jo(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Sd(r))||e){t&&(r=t);var i=0,o=function(){};return{s:o,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function y(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function yi(r,e){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},yi(r,e)}function M(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&yi(r,e)}function Ir(r){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(r)}function hn(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hn=function(){return!!r})()}function Dd(r,e){if(e&&(Re(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(r)}function N(r){var e=hn();return function(){var t,i=Ir(r);if(e){var o=Ir(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return Dd(this,t)}}function I(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(r,e){if(Re(r)!="object"||!r)return r;var t;if(typeof Symbol!="undefined"&&(t=r[Symbol.toPrimitive])!==void 0){var i=t.call(r,e);if(Re(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function pn(r){var e=Od(r,"string");return Re(e)=="symbol"?e:e+""}function Md(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,pn(i.key),i)}}function S(r,e,t){return e&&Md(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function b(r,e,t){return(e=pn(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Nd=10,mn=function(){function r(){I(this,r),b(this,"priority",void 0),b(this,"subPriority",0)}return S(r,[{key:"validate",value:function(t,i){return!0}}]),r}(),zd=function(r){M(t,r);var e=N(t);function t(i,o,a,n,s){var l;return I(this,t),l=e.call(this),l.value=i,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return S(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(mn),Bd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",Nd),b(y(i),"subPriority",-1),i}return S(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(mn),L=function(){function r(){I(this,r),b(this,"incompatibleTokens",void 0),b(this,"priority",void 0),b(this,"subPriority",void 0)}return S(r,[{key:"run",value:function(t,i,o,a){var n=this.parse(t,i,o,a);return n?{setter:new zd(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,i,o){return!0}}]),r}(),Ld=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",140),b(y(i),"incompatibleTokens",["R","u","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(L),J={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Se={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Z(r,e){return r&&{value:e(r.value),rest:r.rest}}function K(r,e){var t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function De(r,e){var t=e.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var i=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:i*(o*Il+a*Tl+n*Sl),rest:e.slice(t[0].length)}}function _n(r){return K(J.anyDigitsSigned,r)}function Q(r,e){switch(r){case 1:return K(J.singleDigit,e);case 2:return K(J.twoDigits,e);case 3:return K(J.threeDigits,e);case 4:return K(J.fourDigits,e);default:return K(new RegExp("^\\d{1,"+r+"}"),e)}}function Sr(r,e){switch(r){case 1:return K(J.singleDigitSigned,e);case 2:return K(J.twoDigitsSigned,e);case 3:return K(J.threeDigitsSigned,e);case 4:return K(J.fourDigitsSigned,e);default:return K(new RegExp("^-?\\d{1,"+r+"}"),e)}}function Gi(r){switch(r){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function fn(r,e){var t=e>0,i=t?e:1-e,o;if(i<=50)o=r||100;else{var a=i+50,n=Math.floor(a/100)*100,s=r>=a%100;o=r+n-(s?100:0)}return t?o:1-o}function vn(r){return r%400===0||r%4===0&&r%100!==0}var Fd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Z(Q(4,o),s);case"yo":return Z(n.ordinalNumber(o,{unit:"year"}),s);default:return Z(Q(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=fn(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(L),Rd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Z(Q(4,o),s);case"Yo":return Z(n.ordinalNumber(o,{unit:"year"}),s);default:return Z(Q(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=ji(o,s);if(n.isTwoDigitYear){var d=fn(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),rt(o,s)}var u=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),rt(o,s)}}]),t}(L),Vd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a){return Sr(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),wt(s)}}]),t}(L),Hd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",130),b(y(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a){return Sr(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(L),Ud=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",120),b(y(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return Q(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(L),Wd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",120),b(y(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return Q(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(L),$d=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),b(y(i),"priority",110),i}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return Z(K(J.month,o),s);case"MM":return Z(Q(2,o),s);case"Mo":return Z(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(L),qd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",110),b(y(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return Z(K(J.month,o),s);case"LL":return Z(Q(2,o),s);case"Lo":return Z(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(L);function Yd(r,e,t){G(2,arguments);var i=ie(r),o=ue(e),a=sn(i,t)-o;return i.setUTCDate(i.getUTCDate()-a*7),i}var jd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",100),b(y(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return K(J.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return rt(Yd(o,n,s),s)}}]),t}(L);function Gd(r,e){G(2,arguments);var t=ie(r),i=ue(e),o=nn(t)-i;return t.setUTCDate(t.getUTCDate()-o*7),t}var Kd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",100),b(y(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return K(J.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return wt(Gd(o,n))}}]),t}(L),Xd=[31,28,31,30,31,30,31,31,30,31,30,31],Qd=[31,29,31,30,31,30,31,31,30,31,30,31],Jd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"subPriority",1),b(y(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return K(J.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=vn(n),l=o.getUTCMonth();return s?a>=1&&a<=Qd[l]:a>=1&&a<=Xd[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(L),Zd=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"subpriority",1),b(y(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return K(J.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=vn(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(L);function Ki(r,e,t){var i,o,a,n,s,l,d,u;G(2,arguments);var h=Pt(),p=ue((i=(o=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=ie(r),_=ue(e),f=m.getUTCDay(),k=_%7,x=(k+7)%7,C=(x<p?7:0)+_-f;return m.setUTCDate(m.getUTCDate()+C),m}var ec=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Ki(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(L),tc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return Z(Q(a.length,o),l);case"eo":return Z(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Ki(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(L),rc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return Z(Q(a.length,o),l);case"co":return Z(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Ki(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(L);function ic(r,e){G(2,arguments);var t=ue(e);t%7===0&&(t=t-7);var i=1,o=ie(r),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<i?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var oc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",90),b(y(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return Q(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return Z(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Z(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Z(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Z(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=ic(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(L),ac=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",80),b(y(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Gi(n),0,0,0),o}}]),t}(L),nc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",80),b(y(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Gi(n),0,0,0),o}}]),t}(L),sc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",80),b(y(i),"incompatibleTokens",["a","b","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Gi(n),0,0,0),o}}]),t}(L),lc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["H","K","k","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return K(J.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(L),dc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return K(J.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(L),cc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["h","H","k","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return K(J.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(L),uc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",70),b(y(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return K(J.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(L),hc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",60),b(y(i),"incompatibleTokens",["t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return K(J.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(L),pc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",50),b(y(i),"incompatibleTokens",["t","T"]),i}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return K(J.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return Q(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(L),mc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",30),b(y(i),"incompatibleTokens",["t","T"]),i}return S(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return Z(Q(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(L),_c=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",10),b(y(i),"incompatibleTokens",["t","T","x"]),i}return S(t,[{key:"parse",value:function(o,a){switch(a){case"X":return De(Se.basicOptionalMinutes,o);case"XX":return De(Se.basic,o);case"XXXX":return De(Se.basicOptionalSeconds,o);case"XXXXX":return De(Se.extendedOptionalSeconds,o);case"XXX":default:return De(Se.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(L),fc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",10),b(y(i),"incompatibleTokens",["t","T","X"]),i}return S(t,[{key:"parse",value:function(o,a){switch(a){case"x":return De(Se.basicOptionalMinutes,o);case"xx":return De(Se.basic,o);case"xxxx":return De(Se.basicOptionalSeconds,o);case"xxxxx":return De(Se.extendedOptionalSeconds,o);case"xxx":default:return De(Se.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(L),vc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",40),b(y(i),"incompatibleTokens","*"),i}return S(t,[{key:"parse",value:function(o){return _n(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(L),gc=function(r){M(t,r);var e=N(t);function t(){var i;I(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return i=e.call.apply(e,[this].concat(a)),b(y(i),"priority",20),b(y(i),"incompatibleTokens","*"),i}return S(t,[{key:"parse",value:function(o){return _n(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(L),bc={G:new Ld,y:new Fd,Y:new Rd,R:new Vd,u:new Hd,Q:new Ud,q:new Wd,M:new $d,L:new qd,w:new jd,I:new Kd,d:new Jd,D:new Zd,E:new ec,e:new tc,c:new rc,i:new oc,a:new ac,b:new nc,B:new sc,h:new lc,H:new dc,K:new cc,k:new uc,m:new hc,s:new pc,S:new mc,X:new _c,x:new fc,t:new vc,T:new gc},yc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xc=/^'([^]*?)'?$/,Cc=/''/g,kc=/\S/,Ec=/[a-zA-Z]/;function wi(r,e,t,i){var o,a,n,s,l,d,u,h,p,m,_,f,k,x;G(3,arguments);var C=String(r),F=String(e),z=Pt(),V=(o=(a=void 0)!==null&&a!==void 0?a:z.locale)!==null&&o!==void 0?o:un;if(!V.match)throw new RangeError("locale must contain match property");var q=ue((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:z.firstWeekContainsDate)!==null&&s!==void 0?s:(u=z.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(q>=1&&q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var he=ue((p=(m=(_=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&_!==void 0?_:z.weekStartsOn)!==null&&m!==void 0?m:(k=z.locale)===null||k===void 0||(x=k.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(he>=0&&he<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(F==="")return C===""?ie(t):new Date(NaN);var X={firstWeekContainsDate:q,weekStartsOn:he,locale:V},R=[new Bd],E=F.match(wc).map(function(re){var U=re[0];if(U in bi){var ne=bi[U];return ne(re,V.formatLong)}return re}).join("").match(yc),P=[],T=jo(E),ae;try{var Pe=function(){var U=ae.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&cn(U)&&Tr(U,F,r),!(i!=null&&i.useAdditionalDayOfYearTokens)&&dn(U)&&Tr(U,F,r);var ne=U[0],fe=bc[ne];if(fe){var Ke=fe.incompatibleTokens;if(Array.isArray(Ke)){var St=P.find(function(hr){return Ke.includes(hr.token)||hr.token===ne});if(St)throw new RangeError("The format string mustn't contain `".concat(St.fullToken,"` and `").concat(U,"` at the same time"))}else if(fe.incompatibleTokens==="*"&&P.length>0)throw new RangeError("The format string mustn't contain `".concat(U,"` and any other token at the same time"));P.push({token:ne,fullToken:U});var dt=fe.run(C,U,V.match,X);if(!dt)return{v:new Date(NaN)};R.push(dt.setter),C=dt.rest}else{if(ne.match(Ec))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(U==="''"?U="'":ne==="'"&&(U=Pc(U)),C.indexOf(U)===0)C=C.slice(U.length);else return{v:new Date(NaN)}}};for(T.s();!(ae=T.n()).done;){var le=Pe();if(Re(le)==="object")return le.v}}catch(re){T.e(re)}finally{T.f()}if(C.length>0&&kc.test(C))return new Date(NaN);var He=R.map(function(re){return re.priority}).sort(function(re,U){return U-re}).filter(function(re,U,ne){return ne.indexOf(re)===U}).map(function(re){return R.filter(function(U){return U.priority===re}).sort(function(U,ne){return ne.subPriority-U.subPriority})}).map(function(re){return re[0]}),we=ie(t);if(isNaN(we.getTime()))return new Date(NaN);var te=on(we,rn(we)),H={},j=jo(He),lt;try{for(j.s();!(lt=j.n()).done;){var ur=lt.value;if(!ur.validate(te,X))return new Date(NaN);var Ge=ur.set(te,H,X);Array.isArray(Ge)?(te=Ge[0],Td(H,Ge[1])):te=Ge}}catch(re){j.e(re)}finally{j.f()}return te}function Pc(r){return r.match(xc)[1].replace(Cc,"'")}function gn(r,e){G(2,arguments);var t=ue(e);return kl(r,-t)}function Go(r,e){c.addMessages(r,e)}function Ac(r){c.$locale.set(r)}const Ko={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."},"en-us":{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."}},Tc={GRANTED:"/v1/bonus/granted"},Xo={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function Ic(t){return fr(this,arguments,function*(r,e={}){const i=typeof r=="string"?r:r.toString(),o=yield fetch(i,e);let a=null;try{a=yield o.json()}catch(l){a=null}if(o.ok&&a)return a;const n=a&&typeof a=="object"?a:{},s={success:!1,errorMessage:typeof n.errorMessage=="string"&&n.errorMessage||o.statusText||String(o.status),errorCode:typeof n.errorCode=="number"?n.errorCode:void 0};return ht(ht({},n),s)})}function Sc(r,e,t){return fr(this,null,function*(){const i=new URL(`${r}${Tc.GRANTED}`);Object.entries(t).forEach(([a,n])=>{n!=null&&i.searchParams.append(a,String(n))});const o={};return e&&(o["x-SessionId"]=e),Ic(i,{headers:o})})}var Dc=Object.defineProperty,Oc=Object.defineProperties,Mc=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,zc=Object.prototype.propertyIsEnumerable,xi=(r,e,t)=>e in r?Dc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Dr=(r,e)=>{for(var t in e||(e={}))Nc.call(e,t)&&xi(r,t,e[t]);if(Qo)for(var t of Qo(e))zc.call(e,t)&&xi(r,t,e[t]);return r},bn=(r,e)=>Oc(r,Mc(e)),ce=(r,e,t)=>xi(r,typeof e!="symbol"?e+"":e,t),Or=(r,e,t)=>new Promise((i,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(r,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */function P(r,e="24.5.10"){Object.defineProperty(r,"version",{get(){return e}});const t=customElements.get(r.is);if(!t)customElements.define(r.is,r);else{const i=t.version;i&&r.version&&i===r.version?console.warn(`The component ${r.is} has been loaded twice`):console.error(`Tried to define ${r.is} version ${r.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
6
+ */function A(r,e="24.5.10"){Object.defineProperty(r,"version",{get(){return e}});const t=customElements.get(r.is);if(!t)customElements.define(r.is,r);else{const i=t.version;i&&r.version&&i===r.version?console.warn(`The component ${r.is} has been loaded twice`):console.error(`Tried to define ${r.is} version ${r.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
7
7
  * @license
8
8
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9
9
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10
- */class Nc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}P(Nc);/**
10
+ */class Bc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}A(Bc);/**
11
11
  * @license
12
12
  * Copyright 2019 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const kr=globalThis,Ki=kr.ShadowRoot&&(kr.ShadyCSS===void 0||kr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xi=Symbol(),Qo=new WeakMap;let Qi=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Xi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(Ki&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=Qo.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&Qo.set(e,r))}return r}toString(){return this.cssText}};const zc=r=>new Qi(typeof r=="string"?r:r+"",void 0,Xi),g=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,o,a)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[a+1],r[0]);return new Qi(t,r,Xi)},bn=(r,e)=>{if(Ki)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=kr.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,r.appendChild(i)}},Jo=Ki?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return zc(t)})(r):r;/**
14
+ */const Er=globalThis,Xi=Er.ShadowRoot&&(Er.ShadyCSS===void 0||Er.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qi=Symbol(),Jo=new WeakMap;let Ji=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Qi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(Xi&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=Jo.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&Jo.set(e,r))}return r}toString(){return this.cssText}};const Lc=r=>new Ji(typeof r=="string"?r:r+"",void 0,Qi),g=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,o,a)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[a+1],r[0]);return new Ji(t,r,Qi)},yn=(r,e)=>{if(Xi)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=Er.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,r.appendChild(i)}},Zo=Xi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Lc(t)})(r):r;/**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const{is:Bc,defineProperty:Lc,getOwnPropertyDescriptor:Fc,getOwnPropertyNames:Rc,getOwnPropertySymbols:Vc,getPrototypeOf:Hc}=Object,vt=globalThis,Zo=vt.trustedTypes,Uc=Zo?Zo.emptyScript:"",ea=vt.reactiveElementPolyfillSupport,Ut=(r,e)=>r,xi={toAttribute(r,e){switch(e){case Boolean:r=r?Uc:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},yn=(r,e)=>!Bc(r,e),ta={attribute:!0,type:String,converter:xi,reflect:!1,useDefault:!1,hasChanged:yn};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),vt.litPropertyMetadata!=null||(vt.litPropertyMetadata=new WeakMap);let ct=class extends HTMLElement{static addInitializer(r){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,e=ta){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(r,e),!e.noAccessor){const t=Symbol(),i=this.getPropertyDescriptor(r,t,e);i!==void 0&&Lc(this.prototype,r,i)}}static getPropertyDescriptor(r,e,t){var i;const{get:o,set:a}=(i=Fc(this.prototype,r))!=null?i:{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const s=o==null?void 0:o.call(this);a==null||a.call(this,n),this.requestUpdate(r,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){var e;return(e=this.elementProperties.get(r))!=null?e:ta}static _$Ei(){if(this.hasOwnProperty(Ut("elementProperties")))return;const r=Hc(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ut("properties"))){const e=this.properties,t=[...Rc(e),...Vc(e)];for(const i of t)this.createProperty(i,e[i])}const r=this[Symbol.metadata];if(r!==null){const e=litPropertyMetadata.get(r);if(e!==void 0)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const e=[];if(Array.isArray(r)){const t=new Set(r.flat(1/0).reverse());for(const i of t)e.unshift(Jo(i))}else r!==void 0&&e.push(Jo(r));return e}static _$Eu(r,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(e=>e(this))}addController(r){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&((t=r.hostConnected)==null||t.call(r))}removeController(r){var e;(e=this._$EO)==null||e.delete(r)}_$E_(){const r=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(r.set(t,this[t]),delete this[t]);r.size>0&&(this._$Ep=r)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return bn(e,this.constructor.elementStyles),e}connectedCallback(){var r;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(r,e,t){this._$AK(r,t)}_$ET(r,e){var t;const i=this.constructor.elementProperties.get(r),o=this.constructor._$Eu(r,i);if(o!==void 0&&i.reflect===!0){const a=(((t=i.converter)==null?void 0:t.toAttribute)!==void 0?i.converter:xi).toAttribute(e,i.type);this._$Em=r,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(r,e){var t,i,o;const a=this.constructor,n=a._$Eh.get(r);if(n!==void 0&&this._$Em!==n){const s=a.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:xi;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(o=d!=null?d:(i=this._$Ej)==null?void 0:i.get(n))!=null?o:d,this._$Em=null}}requestUpdate(r,e,t,i=!1,o){var a,n;if(r!==void 0){const s=this.constructor;if(i===!1&&(o=this[r]),t!=null||(t=s.getPropertyOptions(r)),!(((a=t.hasChanged)!=null?a:yn)(o,e)||t.useDefault&&t.reflect&&o===((n=this._$Ej)==null?void 0:n.get(r))&&!this.hasAttribute(s._$Eu(r,t))))return;this.C(r,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,e,{useDefault:t,reflect:i,wrapped:o},a){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(r)&&(this._$Ej.set(r,(s=a!=null?a:e)!=null?s:this[r]),o!==!0||a!==void 0)||(this._$AL.has(r)||(this.hasUpdated||t||(e=void 0),this._$AL.set(r,e)),i===!0&&this._$Em!==r&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(r))}_$EP(){return Dr(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const r=this.scheduleUpdate();return r!=null&&(yield r),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,a]of i){const{wrapped:n}=a,s=this[o];n!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,a,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(r){}_$AE(r){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostUpdated)==null?void 0:i.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(r){}firstUpdated(r){}};var ra;ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[Ut("elementProperties")]=new Map,ct[Ut("finalized")]=new Map,ea==null||ea({ReactiveElement:ct}),((ra=vt.reactiveElementVersions)!=null?ra:vt.reactiveElementVersions=[]).push("2.1.2");/**
18
+ */const{is:Fc,defineProperty:Rc,getOwnPropertyDescriptor:Vc,getOwnPropertyNames:Hc,getOwnPropertySymbols:Uc,getPrototypeOf:Wc}=Object,xt=globalThis,ea=xt.trustedTypes,$c=ea?ea.emptyScript:"",ta=xt.reactiveElementPolyfillSupport,Wt=(r,e)=>r,Ci={toAttribute(r,e){switch(e){case Boolean:r=r?$c:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},wn=(r,e)=>!Fc(r,e),ra={attribute:!0,type:String,converter:Ci,reflect:!1,useDefault:!1,hasChanged:wn};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),xt.litPropertyMetadata!=null||(xt.litPropertyMetadata=new WeakMap);let _t=class extends HTMLElement{static addInitializer(r){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,e=ra){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(r,e),!e.noAccessor){const t=Symbol(),i=this.getPropertyDescriptor(r,t,e);i!==void 0&&Rc(this.prototype,r,i)}}static getPropertyDescriptor(r,e,t){var i;const{get:o,set:a}=(i=Vc(this.prototype,r))!=null?i:{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const s=o==null?void 0:o.call(this);a==null||a.call(this,n),this.requestUpdate(r,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){var e;return(e=this.elementProperties.get(r))!=null?e:ra}static _$Ei(){if(this.hasOwnProperty(Wt("elementProperties")))return;const r=Wc(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wt("properties"))){const e=this.properties,t=[...Hc(e),...Uc(e)];for(const i of t)this.createProperty(i,e[i])}const r=this[Symbol.metadata];if(r!==null){const e=litPropertyMetadata.get(r);if(e!==void 0)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const e=[];if(Array.isArray(r)){const t=new Set(r.flat(1/0).reverse());for(const i of t)e.unshift(Zo(i))}else r!==void 0&&e.push(Zo(r));return e}static _$Eu(r,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(e=>e(this))}addController(r){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&((t=r.hostConnected)==null||t.call(r))}removeController(r){var e;(e=this._$EO)==null||e.delete(r)}_$E_(){const r=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(r.set(t,this[t]),delete this[t]);r.size>0&&(this._$Ep=r)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return yn(e,this.constructor.elementStyles),e}connectedCallback(){var r;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(r,e,t){this._$AK(r,t)}_$ET(r,e){var t;const i=this.constructor.elementProperties.get(r),o=this.constructor._$Eu(r,i);if(o!==void 0&&i.reflect===!0){const a=(((t=i.converter)==null?void 0:t.toAttribute)!==void 0?i.converter:Ci).toAttribute(e,i.type);this._$Em=r,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(r,e){var t,i,o;const a=this.constructor,n=a._$Eh.get(r);if(n!==void 0&&this._$Em!==n){const s=a.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:Ci;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(o=d!=null?d:(i=this._$Ej)==null?void 0:i.get(n))!=null?o:d,this._$Em=null}}requestUpdate(r,e,t,i=!1,o){var a,n;if(r!==void 0){const s=this.constructor;if(i===!1&&(o=this[r]),t!=null||(t=s.getPropertyOptions(r)),!(((a=t.hasChanged)!=null?a:wn)(o,e)||t.useDefault&&t.reflect&&o===((n=this._$Ej)==null?void 0:n.get(r))&&!this.hasAttribute(s._$Eu(r,t))))return;this.C(r,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,e,{useDefault:t,reflect:i,wrapped:o},a){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(r)&&(this._$Ej.set(r,(s=a!=null?a:e)!=null?s:this[r]),o!==!0||a!==void 0)||(this._$AL.has(r)||(this.hasUpdated||t||(e=void 0),this._$AL.set(r,e)),i===!0&&this._$Em!==r&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(r))}_$EP(){return Or(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const r=this.scheduleUpdate();return r!=null&&(yield r),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,a]of i){const{wrapped:n}=a,s=this[o];n!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,a,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(r){}_$AE(r){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostUpdated)==null?void 0:i.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(r){}firstUpdated(r){}};var ia;_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[Wt("elementProperties")]=new Map,_t[Wt("finalized")]=new Map,ta==null||ta({ReactiveElement:_t}),((ia=xt.reactiveElementVersions)!=null?ia:xt.reactiveElementVersions=[]).push("2.1.2");/**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const Or=globalThis,ia=r=>r,Mr=Or.trustedTypes,oa=Mr?Mr.createPolicy("lit-html",{createHTML:r=>r}):void 0,wn="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,xn="?"+Re,$c=`<${xn}>`,Ze=document,Wt=()=>Ze.createComment(""),qt=r=>r===null||typeof r!="object"&&typeof r!="function",Ji=Array.isArray,Wc=r=>Ji(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",ii=`[
23
- \f\r]`,Nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aa=/-->/g,na=/>/g,je=RegExp(`>|${ii}(?:([^\\s"'>=/]+)(${ii}*=${ii}*(?:[^
24
- \f\r"'\`<>=]|("|')|))|$)`,"g"),sa=/'/g,la=/"/g,Cn=/^(?:script|style|textarea|title)$/i,gt=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),da=new WeakMap,Ke=Ze.createTreeWalker(Ze,129);function kn(r,e){if(!Ji(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return oa!==void 0?oa.createHTML(e):e}const qc=(r,e)=>{const t=r.length-1,i=[];let o,a=e===2?"<svg>":e===3?"<math>":"",n=Nt;for(let s=0;s<t;s++){const l=r[s];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Nt?u[1]==="!--"?n=aa:u[1]!==void 0?n=na:u[2]!==void 0?(Cn.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=je):u[3]!==void 0&&(n=je):n===je?u[0]===">"?(n=o!=null?o:Nt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?je:u[3]==='"'?la:sa):n===la||n===sa?n=je:n===aa||n===na?n=Nt:(n=je,o=void 0);const m=n===je&&r[s+1].startsWith("/>")?" ":"";a+=n===Nt?l+$c:h>=0?(i.push(d),l.slice(0,h)+wn+l.slice(h)+Re+m):l+Re+(h===-2?s:m)}return[kn(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Yt{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,u]=qc(e,t);if(this.el=Yt.createElement(d,i),Ke.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Ke.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(wn)){const p=u[n++],m=o.getAttribute(h).split(Re),_=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:_[2],strings:m,ctor:_[1]==="."?jc:_[1]==="?"?Gc:_[1]==="@"?Kc:$r}),o.removeAttribute(h)}else h.startsWith(Re)&&(l.push({type:6,index:a}),o.removeAttribute(h));if(Cn.test(o.tagName)){const h=o.textContent.split(Re),p=h.length-1;if(p>0){o.textContent=Mr?Mr.emptyScript:"";for(let m=0;m<p;m++)o.append(h[m],Wt()),Ke.nextNode(),l.push({type:2,index:++a});o.append(h[p],Wt())}}}else if(o.nodeType===8)if(o.data===xn)l.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(Re,h+1))!==-1;)l.push({type:7,index:a}),h+=Re.length-1}a++}}static createElement(e,t){const i=Ze.createElement("template");return i.innerHTML=e,i}}function bt(r,e,t=r,i){var o,a,n;if(e===gt)return e;let s=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=qt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),l===void 0?s=void 0:(s=new l(r),s._$AT(r,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=s:t._$Cl=s),s!==void 0&&(e=bt(r,s._$AS(r,e.values),s,i)),e}class Yc{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:Ze).importNode(i,!0);Ke.currentNode=a;let n=Ke.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new rr(n,n.nextSibling,this,e):d.type===1?u=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(u=new Xc(n,this,e)),this._$AV.push(u),d=o[++l]}s!==(d==null?void 0:d.index)&&(n=Ke.nextNode(),s++)}return Ke.currentNode=Ze,a}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class rr{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var a;this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=bt(this,e,t),qt(e)?e===ae||e==null||e===""?(this._$AH!==ae&&this._$AR(),this._$AH=ae):e!==this._$AH&&e!==gt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ae&&qt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ze.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,a=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Yt.createElement(kn(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(i);else{const n=new Yc(a,this),s=n.u(this.options);n.p(i),this.T(s),this._$AH=n}}_$AC(e){let t=da.get(e.strings);return t===void 0&&da.set(e.strings,t=new Yt(e)),t}k(e){Ji(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const a of e)o===t.length?t.push(i=new rr(this.O(Wt()),this.O(Wt()),this,this.options)):i=t[o],i._$AI(a),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const o=ia(e).nextSibling;ia(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class $r{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,a){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ae}_$AI(e,t=this,i,o){const a=this.strings;let n=!1;if(a===void 0)e=bt(this,e,t,0),n=!qt(e)||e!==this._$AH&&e!==gt,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=bt(this,s[i+l],t,l),d===gt&&(d=this._$AH[l]),n||(n=!qt(d)||d!==this._$AH[l]),d===ae?e=ae:e!==ae&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class jc extends $r{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ae?void 0:e}}class Gc extends $r{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ae)}}class Kc extends $r{constructor(e,t,i,o,a){super(e,t,i,o,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=bt(this,e,t,0))!=null?i:ae)===gt)return;const o=this._$AH,a=e===ae&&o!==ae||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==ae&&(o===ae||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Xc{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){bt(this,e)}}const ca=Or.litHtmlPolyfillSupport;var ua;ca==null||ca(Yt,rr),((ua=Or.litHtmlVersions)!=null?ua:Or.litHtmlVersions=[]).push("3.3.3");const En=(r,e,t)=>{var i,o;const a=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=a._$litPart$;if(n===void 0){const s=(o=t==null?void 0:t.renderBefore)!=null?o:null;a._$litPart$=n=new rr(e.insertBefore(Wt(),s),s,void 0,t!=null?t:{})}return n._$AI(r),n};/**
22
+ */const Mr=globalThis,oa=r=>r,Nr=Mr.trustedTypes,aa=Nr?Nr.createPolicy("lit-html",{createHTML:r=>r}):void 0,xn="$lit$",We=`lit$${Math.random().toFixed(9).slice(2)}$`,Cn="?"+We,qc=`<${Cn}>`,it=document,qt=()=>it.createComment(""),Yt=r=>r===null||typeof r!="object"&&typeof r!="function",Zi=Array.isArray,Yc=r=>Zi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",oi=`[
23
+ \f\r]`,zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,na=/-->/g,sa=/>/g,Qe=RegExp(`>|${oi}(?:([^\\s"'>=/]+)(${oi}*=${oi}*(?:[^
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),la=/'/g,da=/"/g,kn=/^(?:script|style|textarea|title)$/i,Ct=Symbol.for("lit-noChange"),oe=Symbol.for("lit-nothing"),ca=new WeakMap,Ze=it.createTreeWalker(it,129);function En(r,e){if(!Zi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return aa!==void 0?aa.createHTML(e):e}const jc=(r,e)=>{const t=r.length-1,i=[];let o,a=e===2?"<svg>":e===3?"<math>":"",n=zt;for(let s=0;s<t;s++){const l=r[s];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===zt?u[1]==="!--"?n=na:u[1]!==void 0?n=sa:u[2]!==void 0?(kn.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=Qe):u[3]!==void 0&&(n=Qe):n===Qe?u[0]===">"?(n=o!=null?o:zt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Qe:u[3]==='"'?da:la):n===da||n===la?n=Qe:n===na||n===sa?n=zt:(n=Qe,o=void 0);const m=n===Qe&&r[s+1].startsWith("/>")?" ":"";a+=n===zt?l+qc:h>=0?(i.push(d),l.slice(0,h)+xn+l.slice(h)+We+m):l+We+(h===-2?s:m)}return[En(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class jt{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,u]=jc(e,t);if(this.el=jt.createElement(d,i),Ze.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Ze.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(xn)){const p=u[n++],m=o.getAttribute(h).split(We),_=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:_[2],strings:m,ctor:_[1]==="."?Kc:_[1]==="?"?Xc:_[1]==="@"?Qc:$r}),o.removeAttribute(h)}else h.startsWith(We)&&(l.push({type:6,index:a}),o.removeAttribute(h));if(kn.test(o.tagName)){const h=o.textContent.split(We),p=h.length-1;if(p>0){o.textContent=Nr?Nr.emptyScript:"";for(let m=0;m<p;m++)o.append(h[m],qt()),Ze.nextNode(),l.push({type:2,index:++a});o.append(h[p],qt())}}}else if(o.nodeType===8)if(o.data===Cn)l.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(We,h+1))!==-1;)l.push({type:7,index:a}),h+=We.length-1}a++}}static createElement(e,t){const i=it.createElement("template");return i.innerHTML=e,i}}function kt(r,e,t=r,i){var o,a,n;if(e===Ct)return e;let s=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Yt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),l===void 0?s=void 0:(s=new l(r),s._$AT(r,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=s:t._$Cl=s),s!==void 0&&(e=kt(r,s._$AS(r,e.values),s,i)),e}class Gc{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:it).importNode(i,!0);Ze.currentNode=a;let n=Ze.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new ir(n,n.nextSibling,this,e):d.type===1?u=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(u=new Jc(n,this,e)),this._$AV.push(u),d=o[++l]}s!==(d==null?void 0:d.index)&&(n=Ze.nextNode(),s++)}return Ze.currentNode=it,a}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ir{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var a;this.type=2,this._$AH=oe,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=kt(this,e,t),Yt(e)?e===oe||e==null||e===""?(this._$AH!==oe&&this._$AR(),this._$AH=oe):e!==this._$AH&&e!==Ct&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Yc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==oe&&Yt(this._$AH)?this._$AA.nextSibling.data=e:this.T(it.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,a=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=jt.createElement(En(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(i);else{const n=new Gc(a,this),s=n.u(this.options);n.p(i),this.T(s),this._$AH=n}}_$AC(e){let t=ca.get(e.strings);return t===void 0&&ca.set(e.strings,t=new jt(e)),t}k(e){Zi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const a of e)o===t.length?t.push(i=new ir(this.O(qt()),this.O(qt()),this,this.options)):i=t[o],i._$AI(a),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const o=oa(e).nextSibling;oa(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class $r{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,a){this.type=1,this._$AH=oe,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=oe}_$AI(e,t=this,i,o){const a=this.strings;let n=!1;if(a===void 0)e=kt(this,e,t,0),n=!Yt(e)||e!==this._$AH&&e!==Ct,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=kt(this,s[i+l],t,l),d===Ct&&(d=this._$AH[l]),n||(n=!Yt(d)||d!==this._$AH[l]),d===oe?e=oe:e!==oe&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===oe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Kc extends $r{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===oe?void 0:e}}class Xc extends $r{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==oe)}}class Qc extends $r{constructor(e,t,i,o,a){super(e,t,i,o,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=kt(this,e,t,0))!=null?i:oe)===Ct)return;const o=this._$AH,a=e===oe&&o!==oe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==oe&&(o===oe||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Jc{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){kt(this,e)}}const ua=Mr.litHtmlPolyfillSupport;var ha;ua==null||ua(jt,ir),((ha=Mr.litHtmlVersions)!=null?ha:Mr.litHtmlVersions=[]).push("3.3.3");const Pn=(r,e,t)=>{var i,o;const a=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=a._$litPart$;if(n===void 0){const s=(o=t==null?void 0:t.renderBefore)!=null?o:null;a._$litPart$=n=new ir(e.insertBefore(qt(),s),s,void 0,t!=null?t:{})}return n._$AI(r),n};/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */const jt=globalThis;class ut extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=En(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return gt}}var ha;ut._$litElement$=!0,ut.finalized=!0,(ha=jt.litElementHydrateSupport)==null||ha.call(jt,{LitElement:ut});const pa=jt.litElementPolyfillSupport;pa==null||pa({LitElement:ut});var ma;((ma=jt.litElementVersions)!=null?ma:jt.litElementVersions=[]).push("4.2.2");/**
28
+ */const Gt=globalThis;class ft extends _t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pn(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Ct}}var pa;ft._$litElement$=!0,ft.finalized=!0,(pa=Gt.litElementHydrateSupport)==null||pa.call(Gt,{LitElement:ft});const ma=Gt.litElementPolyfillSupport;ma==null||ma({LitElement:ft});var _a;((_a=Gt.litElementVersions)!=null?_a:Gt.litElementVersions=[]).push("4.2.2");/**
29
29
  * @license
30
30
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
31
31
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
32
- */const Wr=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
32
+ */const qr=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
33
33
  * @license
34
34
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */const Pn=[],Ci=new Set,Zi=new Set;function An(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function Qc(r){return An(customElements.get(r))}function Jc(r=[]){return[r].flat(1/0).filter(e=>e instanceof Qi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Tn(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function In(r){return r.map(e=>e.cssText).join(`
37
- `)}const Nr="vaadin-themable-mixin-style";function Zc(r,e){const t=document.createElement("style");t.id=Nr,t.textContent=In(r),e.content.appendChild(t)}function eu(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof ut)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),bn(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Nr),i=e.prototype._template;t.textContent=i.content.getElementById(Nr).textContent}}function tu(r){Ci.forEach(e=>{const t=e.deref();t instanceof r?eu(t):t||Ci.delete(e)})}function Sn(r){if(r.prototype instanceof ut)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Nr).textContent=In(r.getStylesForThis())}Zi.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&Sn(t)})}function ru(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(a=>a.cssText===o.cssText)))}function w(r,e,t={}){e=Jc(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):Pn.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&Zi.forEach(i=>{if(Tn(r,i)&&Qc(i)){const o=customElements.get(i);ru(o,e)?console.warn(`Registering styles that already exist for ${i}`):(!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".`),Sn(o),tu(o)}})}function ki(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Pn}function iu(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function Dn(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=ki().find(o=>o.moduleId===t);i?e.push(...Dn(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function ou(r){const e=`${r}-default-theme`,t=ki().filter(i=>i.moduleId!==e&&Tn(i.themeFor,r)).map(i=>gn(Sr({},i),{styles:[...Dn(i),...i.styles],includePriority:iu(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:ki().filter(i=>i.moduleId===e)}const $=r=>class extends Wr(r){constructor(){super(),Ci.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Zi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||An(this)||Zc(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=r.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...ou(this.is)];const o=this.__themes.flatMap(a=>a.styles);return o.filter((a,n)=>n===o.lastIndexOf(a))}};/**
36
+ */const An=[],ki=new Set,eo=new Set;function Tn(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function Zc(r){return Tn(customElements.get(r))}function eu(r=[]){return[r].flat(1/0).filter(e=>e instanceof Ji?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function In(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Sn(r){return r.map(e=>e.cssText).join(`
37
+ `)}const zr="vaadin-themable-mixin-style";function tu(r,e){const t=document.createElement("style");t.id=zr,t.textContent=Sn(r),e.content.appendChild(t)}function ru(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof ft)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),yn(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(zr),i=e.prototype._template;t.textContent=i.content.getElementById(zr).textContent}}function iu(r){ki.forEach(e=>{const t=e.deref();t instanceof r?ru(t):t||ki.delete(e)})}function Dn(r){if(r.prototype instanceof ft)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(zr).textContent=Sn(r.getStylesForThis())}eo.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&Dn(t)})}function ou(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(a=>a.cssText===o.cssText)))}function w(r,e,t={}){e=eu(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):An.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&eo.forEach(i=>{if(In(r,i)&&Zc(i)){const o=customElements.get(i);ou(o,e)?console.warn(`Registering styles that already exist for ${i}`):(!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".`),Dn(o),iu(o)}})}function Ei(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():An}function au(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function On(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=Ei().find(o=>o.moduleId===t);i?e.push(...On(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function nu(r){const e=`${r}-default-theme`,t=Ei().filter(i=>i.moduleId!==e&&In(i.themeFor,r)).map(i=>bn(Dr({},i),{styles:[...On(i),...i.styles],includePriority:au(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:Ei().filter(i=>i.moduleId===e)}const $=r=>class extends qr(r){constructor(){super(),ki.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&eo.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Tn(this)||tu(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=r.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...nu(this.is)];const o=this.__themes.flatMap(a=>a.styles);return o.filter((a,n)=>n===o.lastIndexOf(a))}};/**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
41
- */const au=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
42
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},xt=(r,...e)=>{au(`lumo-${r}`,e)};/**
41
+ */const su=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
42
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},At=(r,...e)=>{su(`lumo-${r}`,e)};/**
43
43
  * @license
44
44
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
45
45
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */const nu=g`
46
+ */const lu=g`
47
47
  :host {
48
48
  /* Base (background) */
49
49
  --lumo-base-color: #fff;
@@ -128,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
128
128
  --lumo-disabled-text-color: GrayText;
129
129
  }
130
130
  }
131
- `;xt("color-props",nu);const su=g`
131
+ `;At("color-props",lu);const du=g`
132
132
  [theme~='dark'] {
133
133
  /* Base (background) */
134
134
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -246,11 +246,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
246
246
  pre code {
247
247
  background: transparent;
248
248
  }
249
- `;w("",su,{moduleId:"lumo-color"});/**
249
+ `;w("",du,{moduleId:"lumo-color"});/**
250
250
  * @license
251
251
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
252
252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
253
- */const lu=g`
253
+ */const cu=g`
254
254
  @font-face {
255
255
  font-family: 'lumo-icons';
256
256
  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==)
@@ -303,11 +303,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
303
303
  --lumo-icons-upload: '\\ea29';
304
304
  --lumo-icons-user: '\\ea2a';
305
305
  }
306
- `;xt("font-icons",lu);/**
306
+ `;At("font-icons",cu);/**
307
307
  * @license
308
308
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
309
309
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
310
- */const du=g`
310
+ */const uu=g`
311
311
  :host {
312
312
  --lumo-size-xs: 1.625rem;
313
313
  --lumo-size-s: 1.875rem;
@@ -322,11 +322,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
322
322
  /* For backwards compatibility */
323
323
  --lumo-icon-size: var(--lumo-icon-size-m);
324
324
  }
325
- `;xt("sizing-props",du);/**
325
+ `;At("sizing-props",uu);/**
326
326
  * @license
327
327
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
328
328
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
329
- */const cu=g`
329
+ */const hu=g`
330
330
  :host {
331
331
  /* Square */
332
332
  --lumo-space-xs: 0.25rem;
@@ -349,11 +349,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
349
349
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
350
350
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
351
351
  }
352
- `;xt("spacing-props",cu);/**
352
+ `;At("spacing-props",hu);/**
353
353
  * @license
354
354
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
355
355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
356
- */const uu=g`
356
+ */const pu=g`
357
357
  :host {
358
358
  /* Border radius */
359
359
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -453,11 +453,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
453
453
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
454
454
  --vaadin-input-field-value-font-weight: 500;
455
455
  }
456
- `;xt("style-props",uu);/**
456
+ `;At("style-props",pu);/**
457
457
  * @license
458
458
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
459
459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
460
- */const hu=g`
460
+ */const mu=g`
461
461
  :host {
462
462
  /* prettier-ignore */
463
463
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -477,7 +477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
477
477
  --lumo-line-height-s: 1.375;
478
478
  --lumo-line-height-m: 1.625;
479
479
  }
480
- `,pu=g`
480
+ `,_u=g`
481
481
  body,
482
482
  :host {
483
483
  font-family: var(--lumo-font-family);
@@ -569,7 +569,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
569
569
  border-left: none;
570
570
  border-right: 2px solid var(--lumo-contrast-30pct);
571
571
  }
572
- `;w("",pu,{moduleId:"lumo-typography"});xt("typography-props",hu);w("vaadin-checkbox",g`
572
+ `;w("",_u,{moduleId:"lumo-typography"});At("typography-props",mu);w("vaadin-checkbox",g`
573
573
  :host {
574
574
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
575
575
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -889,7 +889,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
889
889
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
890
890
  Code distributed by Google as part of the polymer project is also
891
891
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
892
- */let mu=/(url\()([^)]*)(\))/g,_u=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,fr,fe;function $t(r,e){if(r&&_u.test(r)||r==="//")return r;if(fr===void 0){fr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",fr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),fr)try{return new URL(r,e).href}catch(t){return r}return fe||(fe=document.implementation.createHTMLDocument("temp"),fe.base=fe.createElement("base"),fe.head.appendChild(fe.base),fe.anchor=fe.createElement("a"),fe.body.appendChild(fe.anchor)),fe.base.href=e,fe.anchor.href=r,fe.anchor.href||r}function eo(r,e){return r.replace(mu,function(t,i,o,a){return i+"'"+$t(o.replace(/["']/g,""),e)+"'"+a})}function to(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
892
+ */let fu=/(url\()([^)]*)(\))/g,vu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,vr,ve;function $t(r,e){if(r&&vu.test(r)||r==="//")return r;if(vr===void 0){vr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",vr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),vr)try{return new URL(r,e).href}catch(t){return r}return ve||(ve=document.implementation.createHTMLDocument("temp"),ve.base=ve.createElement("base"),ve.head.appendChild(ve.base),ve.anchor=ve.createElement("a"),ve.body.appendChild(ve.anchor)),ve.base.href=e,ve.anchor.href=r,ve.anchor.href||r}function to(r,e){return r.replace(fu,function(t,i,o,a){return i+"'"+$t(o.replace(/["']/g,""),e)+"'"+a})}function ro(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
893
893
  @license
894
894
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
895
895
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -897,7 +897,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
897
897
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
898
898
  Code distributed by Google as part of the polymer project is also
899
899
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
900
- */const On=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const fu=On&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let vu=window.Polymer&&window.Polymer.rootPath||to(document.baseURI||window.location.href),zr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Br=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,gu=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Mn=window.Polymer&&window.Polymer.legacyOptimizations||!1,Nn=window.Polymer&&window.Polymer.legacyWarnings||!1,bu=window.Polymer&&window.Polymer.syncInitialRender||!1,Ei=window.Polymer&&window.Polymer.legacyUndefined||!1,yu=window.Polymer&&window.Polymer.orderedComputed||!1,_a=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wu=window.Polymer&&window.Polymer.fastDomIf||!1,fa=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let xu=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
900
+ */const Mn=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const gu=Mn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let bu=window.Polymer&&window.Polymer.rootPath||ro(document.baseURI||window.location.href),Br=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Lr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,yu=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Nn=window.Polymer&&window.Polymer.legacyOptimizations||!1,zn=window.Polymer&&window.Polymer.legacyWarnings||!1,wu=window.Polymer&&window.Polymer.syncInitialRender||!1,Pi=window.Polymer&&window.Polymer.legacyUndefined||!1,xu=window.Polymer&&window.Polymer.orderedComputed||!1,fa=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Cu=window.Polymer&&window.Polymer.fastDomIf||!1,va=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let ku=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
901
901
  @license
902
902
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
903
903
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
905
905
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
906
906
  Code distributed by Google as part of the polymer project is also
907
907
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
908
- */let Cu=0;const te=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=Cu++;function i(o){let a=o.__mixinSet;if(a&&a[t])return o;let n=e,s=n.get(o);if(!s){s=r(o),n.set(o,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return i};/**
908
+ */let Eu=0;const ee=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=Eu++;function i(o){let a=o.__mixinSet;if(a&&a[t])return o;let n=e,s=n.get(o);if(!s){s=r(o),n.set(o,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return i};/**
909
909
  @license
910
910
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
911
911
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
913
913
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
914
914
  Code distributed by Google as part of the polymer project is also
915
915
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
916
- */let ro={},zn={};function va(r,e){ro[r]=zn[r.toLowerCase()]=e}function ga(r){return ro[r]||zn[r.toLowerCase()]}function ku(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Gt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ga(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=$t(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=to(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Br&&ga(e)!==void 0)throw va(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,va(e,this),ku(this)}}}Gt.prototype.modules=ro;customElements.define("dom-module",Gt);/**
916
+ */let io={},Bn={};function ga(r,e){io[r]=Bn[r.toLowerCase()]=e}function ba(r){return io[r]||Bn[r.toLowerCase()]}function Pu(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Kt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ba(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=$t(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=ro(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Lr&&ba(e)!==void 0)throw ga(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ga(e,this),Pu(this)}}}Kt.prototype.modules=io;customElements.define("dom-module",Kt);/**
917
917
  @license
918
918
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
919
919
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -921,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
921
921
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
922
922
  Code distributed by Google as part of the polymer project is also
923
923
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
924
- */const Eu="link[rel=import][type~=css]",Pu="include",ba="shady-unscoped";function Bn(r){return Gt.import(r)}function ya(r){let e=r.body?r.body:r;const t=eo(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function Au(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...Tu(e[i]));return t}function Tu(r){const e=Bn(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...Fn(e));const i=e.querySelector("template");i&&t.push(...Ln(i,e.assetpath)),e._styles=t}return e._styles}function Ln(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let a=i[o],n=a.getAttribute(Pu);n&&t.push(...Au(n).filter(function(s,l,d){return d.indexOf(s)===l})),e&&(a.textContent=eo(a.textContent,e)),t.push(a)}r._styles=t}return r._styles}function Iu(r){let e=Bn(r);return e?Fn(e):[]}function Fn(r){const e=[],t=r.querySelectorAll(Eu);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const a=o.import,n=o.hasAttribute(ba);if(n&&!a._unscopedStyle){const s=ya(a);s.setAttribute(ba,""),a._unscopedStyle=s}else a._style||(a._style=ya(a));e.push(n?a._unscopedStyle:a._style)}}return e}/**
924
+ */const Au="link[rel=import][type~=css]",Tu="include",ya="shady-unscoped";function Ln(r){return Kt.import(r)}function wa(r){let e=r.body?r.body:r;const t=to(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function Iu(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...Su(e[i]));return t}function Su(r){const e=Ln(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...Rn(e));const i=e.querySelector("template");i&&t.push(...Fn(i,e.assetpath)),e._styles=t}return e._styles}function Fn(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let a=i[o],n=a.getAttribute(Tu);n&&t.push(...Iu(n).filter(function(s,l,d){return d.indexOf(s)===l})),e&&(a.textContent=to(a.textContent,e)),t.push(a)}r._styles=t}return r._styles}function Du(r){let e=Ln(r);return e?Rn(e):[]}function Rn(r){const e=[],t=r.querySelectorAll(Au);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const a=o.import,n=o.hasAttribute(ya);if(n&&!a._unscopedStyle){const s=wa(a);s.setAttribute(ya,""),a._unscopedStyle=s}else a._style||(a._style=wa(a));e.push(n?a._unscopedStyle:a._style)}}return e}/**
925
925
  @license
926
926
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
927
927
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */function Pi(r){return r.indexOf(".")>=0}function et(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function Rn(r,e){return r.indexOf(e+".")===0}function Kt(r,e){return e.indexOf(r+".")===0}function Xt(r,e,t){return e+t.slice(r.length)}function Su(r,e){return r===e||Rn(r,e)||Kt(r,e)}function Rt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function Vn(r){return Array.isArray(r)?Rt(r).split("."):r.toString().split(".")}function pe(r,e,t){let i=r,o=Vn(e);for(let a=0;a<o.length;a++){if(!i)return;let n=o[a];i=i[n]}return t&&(t.path=o.join(".")),i}function wa(r,e,t){let i=r,o=Vn(e),a=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let s=o[n];if(i=i[s],!i)return}i[a]=t}else i[e]=t;return o.join(".")}/**
940
+ */function Ai(r){return r.indexOf(".")>=0}function ot(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function Vn(r,e){return r.indexOf(e+".")===0}function Xt(r,e){return e.indexOf(r+".")===0}function Qt(r,e,t){return e+t.slice(r.length)}function Ou(r,e){return r===e||Vn(r,e)||Xt(r,e)}function Vt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function Hn(r){return Array.isArray(r)?Vt(r).split("."):r.toString().split(".")}function _e(r,e,t){let i=r,o=Hn(e);for(let a=0;a<o.length;a++){if(!i)return;let n=o[a];i=i[n]}return t&&(t.path=o.join(".")),i}function xa(r,e,t){let i=r,o=Hn(e),a=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let s=o[n];if(i=i[s],!i)return}i[a]=t}else i[e]=t;return o.join(".")}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -945,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
945
945
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
946
946
  Code distributed by Google as part of the polymer project is also
947
947
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
948
- */const Lr={},Du=/-[a-z]/g,Ou=/([A-Z])/g;function Hn(r){return Lr[r]||(Lr[r]=r.indexOf("-")<0?r:r.replace(Du,e=>e[1].toUpperCase()))}function qr(r){return Lr[r]||(Lr[r]=r.replace(Ou,"-$1").toLowerCase())}/**
948
+ */const Fr={},Mu=/-[a-z]/g,Nu=/([A-Z])/g;function Un(r){return Fr[r]||(Fr[r]=r.indexOf("-")<0?r:r.replace(Mu,e=>e[1].toUpperCase()))}function Yr(r){return Fr[r]||(Fr[r]=r.replace(Nu,"-$1").toLowerCase())}/**
949
949
  @license
950
950
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
951
951
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -953,7 +953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
953
953
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
954
954
  Code distributed by Google as part of the polymer project is also
955
955
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
956
- */let Mu=0,Un=0,ht=[],Nu=0,Ai=!1,$n=document.createTextNode("");new window.MutationObserver(zu).observe($n,{characterData:!0});function zu(){Ai=!1;const r=ht.length;for(let e=0;e<r;e++){let t=ht[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}ht.splice(0,r),Un+=r}const Bu={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},Wn={run(r){return Ai||(Ai=!0,$n.textContent=Nu++),ht.push(r),Mu++},cancel(r){const e=r-Un;if(e>=0){if(!ht[e])throw new Error("invalid async handle: "+r);ht[e]=null}}};/**
956
+ */let zu=0,Wn=0,vt=[],Bu=0,Ti=!1,$n=document.createTextNode("");new window.MutationObserver(Lu).observe($n,{characterData:!0});function Lu(){Ti=!1;const r=vt.length;for(let e=0;e<r;e++){let t=vt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}vt.splice(0,r),Wn+=r}const Fu={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},qn={run(r){return Ti||(Ti=!0,$n.textContent=Bu++),vt.push(r),zu++},cancel(r){const e=r-Wn;if(e>=0){if(!vt[e])throw new Error("invalid async handle: "+r);vt[e]=null}}};/**
957
957
  @license
958
958
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
959
959
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -961,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
961
961
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
962
962
  Code distributed by Google as part of the polymer project is also
963
963
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
964
- */const Lu=Wn,qn=te(r=>{class e extends r{static createProperties(i){const o=this.prototype;for(let a in i)a in o||o._createPropertyAccessor(a)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(a){this._setPendingProperty(i,a,!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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,a){let n=this.__data[i],s=this._shouldPropertyChange(i,o,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),s}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Lu.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 i=this.__data,o=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(i,o,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,a)),this.__dataCounter--}_shouldPropertiesChange(i,o,a){return!!o}_propertiesChanged(i,o,a){}_shouldPropertyChange(i,o,a){return a!==o&&(a===a||o===o)}attributeChangedCallback(i,o,a,n){o!==a&&this._attributeToProperty(i,a),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,a,n)}_attributeToProperty(i,o,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[i]||i;this[s]=this._deserializeValue(o,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(i,o,a){this.__serializing=!0,a=arguments.length<3?this[i]:a,this._valueToNodeAttribute(this,a,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,a){const n=this._serializeValue(o);(a==="class"||a==="name"||a==="slot")&&(i=se(i)),n===void 0?i.removeAttribute(a):i.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
964
+ */const Ru=qn,Yn=ee(r=>{class e extends r{static createProperties(i){const o=this.prototype;for(let a in i)a in o||o._createPropertyAccessor(a)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(a){this._setPendingProperty(i,a,!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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,a){let n=this.__data[i],s=this._shouldPropertyChange(i,o,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),s}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ru.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 i=this.__data,o=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(i,o,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,a)),this.__dataCounter--}_shouldPropertiesChange(i,o,a){return!!o}_propertiesChanged(i,o,a){}_shouldPropertyChange(i,o,a){return a!==o&&(a===a||o===o)}attributeChangedCallback(i,o,a,n){o!==a&&this._attributeToProperty(i,a),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,a,n)}_attributeToProperty(i,o,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[i]||i;this[s]=this._deserializeValue(o,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(i,o,a){this.__serializing=!0,a=arguments.length<3?this[i]:a,this._valueToNodeAttribute(this,a,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,a){const n=this._serializeValue(o);(a==="class"||a==="name"||a==="slot")&&(i=se(i)),n===void 0?i.removeAttribute(a):i.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
965
965
  @license
966
966
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
967
967
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
969
969
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
970
970
  Code distributed by Google as part of the polymer project is also
971
971
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
972
- */const Yn={};let vr=HTMLElement.prototype;for(;vr;){let r=Object.getOwnPropertyNames(vr);for(let e=0;e<r.length;e++)Yn[r[e]]=!0;vr=Object.getPrototypeOf(vr)}const Fu=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function Ru(r,e){if(!Yn[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Vu=te(r=>{const e=qn(r);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(Hn(o[a]))}static attributeNameForProperty(o){return qr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Fu(o))return o;try{return JSON.stringify(o)}catch(a){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let n;switch(a){case Object:try{n=JSON.parse(o)}catch(s){n=o}break;case Array:try{n=JSON.parse(o)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,a);break}return n}_definePropertyAccessor(o,a){Ru(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
972
+ */const jn={};let gr=HTMLElement.prototype;for(;gr;){let r=Object.getOwnPropertyNames(gr);for(let e=0;e<r.length;e++)jn[r[e]]=!0;gr=Object.getPrototypeOf(gr)}const Vu=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function Hu(r,e){if(!jn[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Uu=ee(r=>{const e=Yn(r);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(Un(o[a]))}static attributeNameForProperty(o){return Yr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Vu(o))return o;try{return JSON.stringify(o)}catch(a){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let n;switch(a){case Object:try{n=JSON.parse(o)}catch(s){n=o}break;case Array:try{n=JSON.parse(o)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,a);break}return n}_definePropertyAccessor(o,a){Hu(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
973
973
  @license
974
974
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
975
975
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
977
977
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
978
978
  Code distributed by Google as part of the polymer project is also
979
979
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
980
- */const Hu={"dom-if":!0,"dom-repeat":!0};let xa=!1,Ca=!1;function Uu(){if(!xa){xa=!0;const r=document.createElement("textarea");r.placeholder="a",Ca=r.placeholder===r.textContent}return Ca}function $u(r){Uu()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Wu=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(o,i));return}e.setAttribute(i,o)}})();function qu(r){let e=r.getAttribute("is");if(e&&Hu[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Wu(r,t,i),t.removeAttribute(i)}}return r}function jn(r,e){let t=e.parentInfo&&jn(r,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return r}function Yu(r,e,t,i){i.id&&(e[i.id]=t)}function ju(r,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,a;i<o.length&&(a=o[i]);i++)r._addMethodEventListenerToNode(e,a.name,a.value,r)}function Gu(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function Ku(r,e,t){return r=r._methodHost||r,function(i){r[t]?r[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Xu=te(r=>{class e extends r{static _parseTemplate(i,o){if(!i._templateInfo){let a=i._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!o,a.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,a,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,a){return this._parseTemplateNode(i.content,o,a)}static _parseTemplateNode(i,o,a){let n=!1,s=i;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,o,a)||n:s.localName==="slot"&&(o.hasInsertionPoint=!0),$u(s),s.firstChild&&this._parseTemplateChildNodes(s,o,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,o,a)||n),n||a.noted}static _parseTemplateChildNodes(i,o,a){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=qu(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(i,o,a){let n=i,s=this._parseTemplate(n,o);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(i,o,a){let n=!1,s=Array.from(i.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(i,o,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,a,n,s){return n.slice(0,3)==="on-"?(i.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let a=o.nodeInfoList,n=o.content||i.content,s=document.importNode(n,!0);s.__noInsertionPoint=!o.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,u=a.length,h;d<u&&(h=a[d]);d++){let p=l[d]=jn(s,h);Yu(this,s.$,p,h),Gu(this,p,h,o),ju(this,p,h)}return s=s,s}_addMethodEventListenerToNode(i,o,a,n){n=n||i;let s=Ku(n,o,a);return this._addEventListenerToNode(i,o,s),s}_addEventListenerToNode(i,o,a){i.addEventListener(o,a)}_removeEventListenerFromNode(i,o,a){i.removeEventListener(o,a)}}return e});/**
980
+ */const Wu={"dom-if":!0,"dom-repeat":!0};let Ca=!1,ka=!1;function $u(){if(!Ca){Ca=!0;const r=document.createElement("textarea");r.placeholder="a",ka=r.placeholder===r.textContent}return ka}function qu(r){$u()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Yu=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(o,i));return}e.setAttribute(i,o)}})();function ju(r){let e=r.getAttribute("is");if(e&&Wu[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Yu(r,t,i),t.removeAttribute(i)}}return r}function Gn(r,e){let t=e.parentInfo&&Gn(r,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return r}function Gu(r,e,t,i){i.id&&(e[i.id]=t)}function Ku(r,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,a;i<o.length&&(a=o[i]);i++)r._addMethodEventListenerToNode(e,a.name,a.value,r)}function Xu(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function Qu(r,e,t){return r=r._methodHost||r,function(i){r[t]?r[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Ju=ee(r=>{class e extends r{static _parseTemplate(i,o){if(!i._templateInfo){let a=i._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!o,a.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,a,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,a){return this._parseTemplateNode(i.content,o,a)}static _parseTemplateNode(i,o,a){let n=!1,s=i;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,o,a)||n:s.localName==="slot"&&(o.hasInsertionPoint=!0),qu(s),s.firstChild&&this._parseTemplateChildNodes(s,o,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,o,a)||n),n||a.noted}static _parseTemplateChildNodes(i,o,a){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=ju(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(i,o,a){let n=i,s=this._parseTemplate(n,o);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(i,o,a){let n=!1,s=Array.from(i.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(i,o,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,a,n,s){return n.slice(0,3)==="on-"?(i.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let a=o.nodeInfoList,n=o.content||i.content,s=document.importNode(n,!0);s.__noInsertionPoint=!o.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,u=a.length,h;d<u&&(h=a[d]);d++){let p=l[d]=Gn(s,h);Gu(this,s.$,p,h),Xu(this,p,h,o),Ku(this,p,h)}return s=s,s}_addMethodEventListenerToNode(i,o,a,n){n=n||i;let s=Qu(n,o,a);return this._addEventListenerToNode(i,o,s),s}_addEventListenerToNode(i,o,a){i.addEventListener(o,a)}_removeEventListenerFromNode(i,o,a){i.removeEventListener(o,a)}}return e});/**
981
981
  * @fileoverview
982
982
  * @suppress {checkPrototypalTypes}
983
983
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -987,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
987
987
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
988
988
  * Google as part of the polymer project is also subject to an additional IP
989
989
  * rights grant found at http://polymer.github.io/PATENTS.txt
990
- */let Qt=0;const Jt=[],R={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Gn="__computeInfo",Qu=/[A-Z]/;function oi(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let a=i[o],n=i[o]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return i}function Vt(r,e,t,i,o,a){if(e){let n=!1;const s=Qt++;for(let l in t){let d=o?et(l):l,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==s)&&(!o||io(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(r,l,t,i,m.info,o,a),n=!0)}return n}return!1}function Ju(r,e,t,i,o,a,n,s){let l=!1,d=n?et(i):i,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||io(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,o,a,m.info,n,s),l=!0);return l}function io(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&Rn(t,r))||!!(e.wildcard&&Kt(t,r))}else return!0}function ka(r,e,t,i,o){let a=typeof o.method=="string"?r[o.method]:o.method,n=o.property;a?a.call(r,r.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Zu(r,e,t,i,o){let a=r[R.NOTIFY],n,s=Qt++;for(let d in e)e[d]&&(a&&Ju(r,a,s,d,t,i,o)||o&&eh(r,d,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function eh(r,e,t){let i=et(e);if(i!==e){let o=qr(i)+"-changed";return Kn(r,o,t[e],e),!0}return!1}function Kn(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),se(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function th(r,e,t,i,o,a){let n=(a?et(e):e)!=e?e:null,s=n?pe(r,n):r.__data[e];n&&s===void 0&&(s=t[e]),Kn(r,o.eventName,s,n)}function rh(r,e,t,i,o){let a,n=r.detail,s=n&&n.path;s?(i=Xt(t,i,s),a=n&&n.value):a=r.currentTarget[t],a=o?!a:a,(!e[R.READ_ONLY]||!e[R.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function ih(r,e,t,i,o){let a=r.__data[e];zr&&(a=zr(a,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,a)}function oh(r,e,t,i){let o=r[R.COMPUTE];if(o)if(yu){Qt++;const a=nh(r),n=[];for(let l in e)Ea(l,o,n,a,i);let s;for(;s=n.shift();)Xn(r,"",e,t,s)&&Ea(s.methodInfo,o,n,a,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let a=e;for(;Vt(r,o,a,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),a=r.__dataPending,r.__dataPending=null}}const ah=(r,e,t)=>{let i=0,o=e.length-1,a=-1;for(;i<=o;){const n=i+o>>1,s=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(s<0)i=n+1;else if(s>0)o=n-1;else{a=n;break}}a<0&&(a=o+1),e.splice(a,0,r)},Ea=(r,e,t,i,o)=>{const a=o?et(r):r,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Qt&&(!o||io(r,l.trigger))&&(l.info.lastRun=Qt,ah(l.info,t,i))}};function nh(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[R.COMPUTE];let{counts:i,ready:o,total:a}=sh(r),n;for(;n=o.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--i[d]===0&&o.push(d)})}a!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function sh(r){const e=r[Gn],t={},i=r[R.COMPUTE],o=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in i)e[n]||o.push(n);return{counts:t,ready:o,total:a}}function Xn(r,e,t,i,o){let a=Ti(r,e,t,i,o);if(a===Jt)return!1;let n=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,a,!0):(r[n]=a,!1)}function lh(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let a in i){let n=i[a];Kt(a,e)?(o=Xt(a,n,e),r._setPendingPropertyOrPath(o,t,!0,!0)):Kt(n,e)&&(o=Xt(n,a,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function ai(r,e,t,i,o,a,n){t.bindings=t.bindings||[];let s={kind:i,target:o,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),ph(s)){let{event:d,negate:u}=s.parts[0];s.listenerEvent=d||qr(o)+"-changed",s.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let u=s.parts[d];u.compoundIndex=d,dh(r,e,s,u,l)}}function dh(r,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=i.dependencies,n={index:o,binding:t,part:i,evaluator:r};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=Jn(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:ch,info:n,trigger:l})}}}function ch(r,e,t,i,o,a,n){let s=n[o.index],l=o.binding,d=o.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let u=t[e];e=Xt(d.source,l.target,e),s._setPendingPropertyOrPath(e,u,!1,!0)&&r._enqueueClient(s)}else{let u=o.evaluator._evaluateBinding(r,d,e,t,i,a);u!==Jt&&uh(r,s,l,d,u)}}function uh(r,e,t,i,o){if(o=hh(e,o,t,i),zr&&(o=zr(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[R.READ_ONLY]||!e[R.READ_ONLY][a])&&e._setPendingProperty(a,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,a,o)}}function hh(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function ph(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function mh(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let a=i[o],n=t[o],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];_h(n,d),fh(n,r,d)}n.__dataHost=r}}function _h(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let a=e.target;t[a]=o,e.literal&&e.kind=="property"&&(a==="className"&&(r=se(r)),r[a]=e.literal)}}function fh(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){rh(o,e,t.target,i.source,i.negate)})}}function Pa(r,e,t,i,o,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:a};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return a&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Ti(r,e,t,i,o){let a=r._methodHost||r,n=a[o.methodName];if(n){let s=r._marshalArgs(o.args,e,t);return s===Jt?Jt:n.apply(a,s)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const vh=[],Qn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",gh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",bh="(?:'(?:[^'\\\\]|\\\\.)*')",yh='(?:"(?:[^"\\\\]|\\\\.)*")',wh="(?:"+bh+"|"+yh+")",Aa="(?:("+Qn+"|"+gh+"|"+wh+")\\s*)",xh="(?:"+Aa+"(?:,\\s*"+Aa+")*)",Ch="(?:\\(\\s*(?:"+xh+"?)\\)\\s*)",kh="("+Qn+"\\s*"+Ch+"?)",Eh="(\\[\\[|{{)\\s*",Ph="(?:]]|}})",Ah="(?:(!)\\s*)?",Th=Eh+Ah+kh+Ph,Ta=new RegExp(Th,"g");function Ia(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function ni(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:vh};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return Ih(i,t)}else return t}return null}function Ih(r,e){return e.args=r.map(function(t){let i=Jn(t);return i.literal||(e.static=!1),i},this),e}function Jn(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=et(e),t.structured=Pi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Sa(r,e,t){let i=pe(r,t);return i===void 0&&(i=e[t]),i}function Zn(r,e,t,i){const o={indexSplices:i};Ei&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),Ei&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function zt(r,e,t,i,o,a){Zn(r,e,t,[{index:i,addedCount:o,removed:a,object:e,type:"splice"}])}function Sh(r){return r[0].toUpperCase()+r.substring(1)}const oo=te(r=>{const e=Xu(Vu(r));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return R}_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(Bt.length){let o=Bt[Bt.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[R.READ_ONLY];for(let n in o)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,a,n){this._createPropertyAccessor(o,a==R.READ_ONLY);let s=oi(this,a,!0)[o];s||(s=this[a][o]=[]),s.push(n)}_removePropertyEffect(o,a,n){let s=oi(this,a,!0)[o],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(o,a){let n=this[a];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,R.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,R.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,R.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,R.COMPUTE)}_setPendingPropertyOrPath(o,a,n,s){if(s||et(Array.isArray(o)?o[0]:o)!==o){if(!s){let l=pe(this,o);if(o=wa(this,o,a),!o||!super._shouldPropertyChange(o,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,n))return lh(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,n);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,n){(n!==o[a]||typeof n=="object")&&(a==="className"&&(o=se(o)),o[a]=n)}_setPendingProperty(o,a,n){let s=this.__dataHasPaths&&Pi(o),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),s?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(s||this[R.NOTIFY]&&this[R.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let n=o[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let n in o)(a||!this[R.READ_ONLY]||!this[R.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;oh(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),Vt(this,this[R.REFLECT],a,n,s),Vt(this,this[R.OBSERVE],a,n,s),l&&Zu(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,n){this[R.PROPAGATE]&&Vt(this,this[R.PROPAGATE],o,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,n)}_runEffectsForTemplate(o,a,n,s){const l=(d,u)=>{Vt(this,o.propertyEffects,d,n,u,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};o.runEffects?o.runEffects(l,a,s):l(a,s)}linkPaths(o,a){o=Rt(o),a=Rt(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=Rt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let n={path:""},s=pe(this,o,n);Zn(this,s,n.path,a)}get(o,a){return pe(a||this,o)}set(o,a,n){n?wa(n,o,a):(!this[R.READ_ONLY]||!this[R.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let n={path:""},s=pe(this,o,n),l=s.length,d=s.push(...a);return a.length&&zt(this,s,n.path,l,a.length,[]),d}pop(o){let a={path:""},n=pe(this,o,a),s=!!n.length,l=n.pop();return s&&zt(this,n,a.path,n.length,0,[l]),l}splice(o,a,n,...s){let l={path:""},d=pe(this,o,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let u;return arguments.length===2?u=d.splice(a):u=d.splice(a,n,...s),(s.length||u.length)&&zt(this,d,l.path,a,s.length,u),u}shift(o){let a={path:""},n=pe(this,o,a),s=!!n.length,l=n.shift();return s&&zt(this,n,a.path,0,0,[l]),l}unshift(o,...a){let n={path:""},s=pe(this,o,n),l=s.unshift(...a);return a.length&&zt(this,s,n.path,0,a.length,[]),l}notifyPath(o,a){let n;if(arguments.length==1){let s={path:""};a=pe(this,o,s),n=s.path}else Array.isArray(o)?n=Rt(o):n=o;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,R.READ_ONLY),a&&(this["_set"+Sh(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,a,n){let s={property:o,method:a,dynamicFn:!!n};this._addPropertyEffect(o,R.OBSERVE,{fn:ka,info:s,trigger:{name:o}}),n&&this._addPropertyEffect(a,R.OBSERVE,{fn:ka,info:s,trigger:{name:a}})}_createMethodObserver(o,a){let n=ni(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Pa(this,n,R.OBSERVE,Ti,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,R.NOTIFY,{fn:th,info:{eventName:qr(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,R.REFLECT,{fn:ih,info:{attrName:a}})}_createComputedProperty(o,a,n){let s=ni(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=Pa(this,s,R.COMPUTE,Xn,o,n);oi(this,Gn)[o]=l}_marshalArgs(o,a,n){const s=this.__data,l=[];for(let d=0,u=o.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:_,literal:f}=o[d];if(!f)if(m){const x=Kt(h,a),E=Sa(s,n,x?a:h);_={path:x?a:h,value:E,base:x?pe(s,h):E}}else _=p?Sa(s,n,h):s[h];if(Ei&&!this._overrideLegacyUndefined&&_===void 0&&o.length>1)return Jt;l[d]=_}return l}static addPropertyEffect(o,a,n){this.prototype._addPropertyEffect(o,a,n)}static createPropertyObserver(o,a,n){this.prototype._createPropertyObserver(o,a,n)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,n){this.prototype._createComputedProperty(o,a,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let n=this.constructor._parseTemplate(o),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,a,n){let s=o.hostProps=o.hostProps||{};s[a]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),Bt.push(this);let n=super._stampTemplate(o,a);if(Bt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,mh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let u=0;u<d.length;u++){let h=d[u];se(se(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,a,n){let s=e._parseTemplateNode.call(this,o,a,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,a);l&&(o.textContent=Ia(l)||" ",ai(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(o,a,n,s,l){let d=this._parseBindings(l,a);if(d){let u=s,h="property";Qu.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let p=Ia(d);return p&&h=="attribute"&&(s=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(s)),o.setAttribute(s,p)),h=="attribute"&&u=="disable-upgrade$"&&o.setAttribute(s,""),o.localName==="input"&&u==="value"&&o.setAttribute(u,""),o.removeAttribute(u),h==="property"&&(s=Hn(s)),ai(this,a,n,h,s,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,a,n,s,l)}static _parseTemplateNestedTemplate(o,a,n){let s=e._parseTemplateNestedTemplate.call(this,o,a,n);const l=o.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";_a&&(u||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(wu&&u)p&&(a.hostProps=Object.assign(a.hostProps||{},p),_a||(n.parentInfo.noted=!0));else{let m="{";for(let _ in p){let f=[{mode:m,source:_,dependencies:[_],hostProp:!0}];ai(this,a,n,"property","_host_"+_,f)}}return s}static _parseBindings(o,a){let n=[],s=0,l;for(;(l=Ta.exec(o))!==null;){l.index>s&&n.push({literal:o.slice(s,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(m=h.substring(_+2),h=h.substring(0,_),p=!0);let f=ni(h),x=[];if(f){let{args:E,methodName:C}=f;for(let A=0;A<E.length;A++){let J=E[A];J.literal||x.push(J)}let F=a.dynamicFns;(F&&F[C]||f.static)&&(x.push(C),f.dynamicFn=!0)}else x.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:f,dependencies:x,event:m}),s=Ta.lastIndex}if(s&&s<o.length){let d=o.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,a,n,s,l,d){let u;return a.signature?u=Ti(o,n,s,l,a.signature):n!=a.source?u=pe(o,a.source):d&&Pi(n)?u=pe(o,n):u=o.__data[n],a.negate&&(u=!u),u}}return t}),Bt=[];/**
990
+ */let Jt=0;const Zt=[],B={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Kn="__computeInfo",Zu=/[A-Z]/;function ai(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let a=i[o],n=i[o]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return i}function Ht(r,e,t,i,o,a){if(e){let n=!1;const s=Jt++;for(let l in t){let d=o?ot(l):l,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==s)&&(!o||oo(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(r,l,t,i,m.info,o,a),n=!0)}return n}return!1}function eh(r,e,t,i,o,a,n,s){let l=!1,d=n?ot(i):i,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||oo(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,o,a,m.info,n,s),l=!0);return l}function oo(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&Vn(t,r))||!!(e.wildcard&&Xt(t,r))}else return!0}function Ea(r,e,t,i,o){let a=typeof o.method=="string"?r[o.method]:o.method,n=o.property;a?a.call(r,r.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function th(r,e,t,i,o){let a=r[B.NOTIFY],n,s=Jt++;for(let d in e)e[d]&&(a&&eh(r,a,s,d,t,i,o)||o&&rh(r,d,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function rh(r,e,t){let i=ot(e);if(i!==e){let o=Yr(i)+"-changed";return Xn(r,o,t[e],e),!0}return!1}function Xn(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),se(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function ih(r,e,t,i,o,a){let n=(a?ot(e):e)!=e?e:null,s=n?_e(r,n):r.__data[e];n&&s===void 0&&(s=t[e]),Xn(r,o.eventName,s,n)}function oh(r,e,t,i,o){let a,n=r.detail,s=n&&n.path;s?(i=Qt(t,i,s),a=n&&n.value):a=r.currentTarget[t],a=o?!a:a,(!e[B.READ_ONLY]||!e[B.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function ah(r,e,t,i,o){let a=r.__data[e];Br&&(a=Br(a,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,a)}function nh(r,e,t,i){let o=r[B.COMPUTE];if(o)if(xu){Jt++;const a=lh(r),n=[];for(let l in e)Pa(l,o,n,a,i);let s;for(;s=n.shift();)Qn(r,"",e,t,s)&&Pa(s.methodInfo,o,n,a,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let a=e;for(;Ht(r,o,a,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),a=r.__dataPending,r.__dataPending=null}}const sh=(r,e,t)=>{let i=0,o=e.length-1,a=-1;for(;i<=o;){const n=i+o>>1,s=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(s<0)i=n+1;else if(s>0)o=n-1;else{a=n;break}}a<0&&(a=o+1),e.splice(a,0,r)},Pa=(r,e,t,i,o)=>{const a=o?ot(r):r,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Jt&&(!o||oo(r,l.trigger))&&(l.info.lastRun=Jt,sh(l.info,t,i))}};function lh(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[B.COMPUTE];let{counts:i,ready:o,total:a}=dh(r),n;for(;n=o.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--i[d]===0&&o.push(d)})}a!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function dh(r){const e=r[Kn],t={},i=r[B.COMPUTE],o=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in i)e[n]||o.push(n);return{counts:t,ready:o,total:a}}function Qn(r,e,t,i,o){let a=Ii(r,e,t,i,o);if(a===Zt)return!1;let n=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,a,!0):(r[n]=a,!1)}function ch(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let a in i){let n=i[a];Xt(a,e)?(o=Qt(a,n,e),r._setPendingPropertyOrPath(o,t,!0,!0)):Xt(n,e)&&(o=Qt(n,a,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function ni(r,e,t,i,o,a,n){t.bindings=t.bindings||[];let s={kind:i,target:o,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),_h(s)){let{event:d,negate:u}=s.parts[0];s.listenerEvent=d||Yr(o)+"-changed",s.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let u=s.parts[d];u.compoundIndex=d,uh(r,e,s,u,l)}}function uh(r,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=i.dependencies,n={index:o,binding:t,part:i,evaluator:r};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=Zn(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:hh,info:n,trigger:l})}}}function hh(r,e,t,i,o,a,n){let s=n[o.index],l=o.binding,d=o.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let u=t[e];e=Qt(d.source,l.target,e),s._setPendingPropertyOrPath(e,u,!1,!0)&&r._enqueueClient(s)}else{let u=o.evaluator._evaluateBinding(r,d,e,t,i,a);u!==Zt&&ph(r,s,l,d,u)}}function ph(r,e,t,i,o){if(o=mh(e,o,t,i),Br&&(o=Br(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[B.READ_ONLY]||!e[B.READ_ONLY][a])&&e._setPendingProperty(a,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,a,o)}}function mh(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function _h(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function fh(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let a=i[o],n=t[o],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];vh(n,d),gh(n,r,d)}n.__dataHost=r}}function vh(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let a=e.target;t[a]=o,e.literal&&e.kind=="property"&&(a==="className"&&(r=se(r)),r[a]=e.literal)}}function gh(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){oh(o,e,t.target,i.source,i.negate)})}}function Aa(r,e,t,i,o,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:a};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return a&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Ii(r,e,t,i,o){let a=r._methodHost||r,n=a[o.methodName];if(n){let s=r._marshalArgs(o.args,e,t);return s===Zt?Zt:n.apply(a,s)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const bh=[],Jn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",yh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",wh="(?:'(?:[^'\\\\]|\\\\.)*')",xh='(?:"(?:[^"\\\\]|\\\\.)*")',Ch="(?:"+wh+"|"+xh+")",Ta="(?:("+Jn+"|"+yh+"|"+Ch+")\\s*)",kh="(?:"+Ta+"(?:,\\s*"+Ta+")*)",Eh="(?:\\(\\s*(?:"+kh+"?)\\)\\s*)",Ph="("+Jn+"\\s*"+Eh+"?)",Ah="(\\[\\[|{{)\\s*",Th="(?:]]|}})",Ih="(?:(!)\\s*)?",Sh=Ah+Ih+Ph+Th,Ia=new RegExp(Sh,"g");function Sa(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function si(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:bh};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return Dh(i,t)}else return t}return null}function Dh(r,e){return e.args=r.map(function(t){let i=Zn(t);return i.literal||(e.static=!1),i},this),e}function Zn(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=ot(e),t.structured=Ai(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Da(r,e,t){let i=_e(r,t);return i===void 0&&(i=e[t]),i}function es(r,e,t,i){const o={indexSplices:i};Pi&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),Pi&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function Bt(r,e,t,i,o,a){es(r,e,t,[{index:i,addedCount:o,removed:a,object:e,type:"splice"}])}function Oh(r){return r[0].toUpperCase()+r.substring(1)}const ao=ee(r=>{const e=Ju(Uu(r));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return B}_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(Lt.length){let o=Lt[Lt.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[B.READ_ONLY];for(let n in o)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,a,n){this._createPropertyAccessor(o,a==B.READ_ONLY);let s=ai(this,a,!0)[o];s||(s=this[a][o]=[]),s.push(n)}_removePropertyEffect(o,a,n){let s=ai(this,a,!0)[o],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(o,a){let n=this[a];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,B.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,B.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,B.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,B.COMPUTE)}_setPendingPropertyOrPath(o,a,n,s){if(s||ot(Array.isArray(o)?o[0]:o)!==o){if(!s){let l=_e(this,o);if(o=xa(this,o,a),!o||!super._shouldPropertyChange(o,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,n))return ch(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,n);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,n){(n!==o[a]||typeof n=="object")&&(a==="className"&&(o=se(o)),o[a]=n)}_setPendingProperty(o,a,n){let s=this.__dataHasPaths&&Ai(o),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),s?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(s||this[B.NOTIFY]&&this[B.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let n=o[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let n in o)(a||!this[B.READ_ONLY]||!this[B.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;nh(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),Ht(this,this[B.REFLECT],a,n,s),Ht(this,this[B.OBSERVE],a,n,s),l&&th(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,n){this[B.PROPAGATE]&&Ht(this,this[B.PROPAGATE],o,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,n)}_runEffectsForTemplate(o,a,n,s){const l=(d,u)=>{Ht(this,o.propertyEffects,d,n,u,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};o.runEffects?o.runEffects(l,a,s):l(a,s)}linkPaths(o,a){o=Vt(o),a=Vt(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=Vt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let n={path:""},s=_e(this,o,n);es(this,s,n.path,a)}get(o,a){return _e(a||this,o)}set(o,a,n){n?xa(n,o,a):(!this[B.READ_ONLY]||!this[B.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let n={path:""},s=_e(this,o,n),l=s.length,d=s.push(...a);return a.length&&Bt(this,s,n.path,l,a.length,[]),d}pop(o){let a={path:""},n=_e(this,o,a),s=!!n.length,l=n.pop();return s&&Bt(this,n,a.path,n.length,0,[l]),l}splice(o,a,n,...s){let l={path:""},d=_e(this,o,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let u;return arguments.length===2?u=d.splice(a):u=d.splice(a,n,...s),(s.length||u.length)&&Bt(this,d,l.path,a,s.length,u),u}shift(o){let a={path:""},n=_e(this,o,a),s=!!n.length,l=n.shift();return s&&Bt(this,n,a.path,0,0,[l]),l}unshift(o,...a){let n={path:""},s=_e(this,o,n),l=s.unshift(...a);return a.length&&Bt(this,s,n.path,0,a.length,[]),l}notifyPath(o,a){let n;if(arguments.length==1){let s={path:""};a=_e(this,o,s),n=s.path}else Array.isArray(o)?n=Vt(o):n=o;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,B.READ_ONLY),a&&(this["_set"+Oh(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,a,n){let s={property:o,method:a,dynamicFn:!!n};this._addPropertyEffect(o,B.OBSERVE,{fn:Ea,info:s,trigger:{name:o}}),n&&this._addPropertyEffect(a,B.OBSERVE,{fn:Ea,info:s,trigger:{name:a}})}_createMethodObserver(o,a){let n=si(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Aa(this,n,B.OBSERVE,Ii,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,B.NOTIFY,{fn:ih,info:{eventName:Yr(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,B.REFLECT,{fn:ah,info:{attrName:a}})}_createComputedProperty(o,a,n){let s=si(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=Aa(this,s,B.COMPUTE,Qn,o,n);ai(this,Kn)[o]=l}_marshalArgs(o,a,n){const s=this.__data,l=[];for(let d=0,u=o.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:_,literal:f}=o[d];if(!f)if(m){const k=Xt(h,a),x=Da(s,n,k?a:h);_={path:k?a:h,value:x,base:k?_e(s,h):x}}else _=p?Da(s,n,h):s[h];if(Pi&&!this._overrideLegacyUndefined&&_===void 0&&o.length>1)return Zt;l[d]=_}return l}static addPropertyEffect(o,a,n){this.prototype._addPropertyEffect(o,a,n)}static createPropertyObserver(o,a,n){this.prototype._createPropertyObserver(o,a,n)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,n){this.prototype._createComputedProperty(o,a,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let n=this.constructor._parseTemplate(o),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,a,n){let s=o.hostProps=o.hostProps||{};s[a]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),Lt.push(this);let n=super._stampTemplate(o,a);if(Lt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,fh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let u=0;u<d.length;u++){let h=d[u];se(se(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,a,n){let s=e._parseTemplateNode.call(this,o,a,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,a);l&&(o.textContent=Sa(l)||" ",ni(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(o,a,n,s,l){let d=this._parseBindings(l,a);if(d){let u=s,h="property";Zu.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let p=Sa(d);return p&&h=="attribute"&&(s=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(s)),o.setAttribute(s,p)),h=="attribute"&&u=="disable-upgrade$"&&o.setAttribute(s,""),o.localName==="input"&&u==="value"&&o.setAttribute(u,""),o.removeAttribute(u),h==="property"&&(s=Un(s)),ni(this,a,n,h,s,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,a,n,s,l)}static _parseTemplateNestedTemplate(o,a,n){let s=e._parseTemplateNestedTemplate.call(this,o,a,n);const l=o.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";fa&&(u||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(Cu&&u)p&&(a.hostProps=Object.assign(a.hostProps||{},p),fa||(n.parentInfo.noted=!0));else{let m="{";for(let _ in p){let f=[{mode:m,source:_,dependencies:[_],hostProp:!0}];ni(this,a,n,"property","_host_"+_,f)}}return s}static _parseBindings(o,a){let n=[],s=0,l;for(;(l=Ia.exec(o))!==null;){l.index>s&&n.push({literal:o.slice(s,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(m=h.substring(_+2),h=h.substring(0,_),p=!0);let f=si(h),k=[];if(f){let{args:x,methodName:C}=f;for(let z=0;z<x.length;z++){let V=x[z];V.literal||k.push(V)}let F=a.dynamicFns;(F&&F[C]||f.static)&&(k.push(C),f.dynamicFn=!0)}else k.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:f,dependencies:k,event:m}),s=Ia.lastIndex}if(s&&s<o.length){let d=o.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,a,n,s,l,d){let u;return a.signature?u=Ii(o,n,s,l,a.signature):n!=a.source?u=_e(o,a.source):d&&Ai(n)?u=_e(o,n):u=o.__data[n],a.negate&&(u=!u),u}}return t}),Lt=[];/**
991
991
  @license
992
992
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
993
993
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1003,7 +1003,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1003
1003
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1004
1004
  Code distributed by Google as part of the polymer project is also
1005
1005
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1006
- */function Dh(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Oh=te(r=>{const e=qn(r);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof o?n:null}function i(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=Dh(s))}a.__ownProperties=n}return a.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1006
+ */function Mh(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Nh=ee(r=>{const e=Yn(r);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof o?n:null}function i(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=Mh(s))}a.__ownProperties=n}return a.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1007
1007
  * @fileoverview
1008
1008
  * @suppress {checkPrototypalTypes}
1009
1009
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1013
1013
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1014
1014
  * Google as part of the polymer project is also subject to an additional IP
1015
1015
  * rights grant found at http://polymer.github.io/PATENTS.txt
1016
- */const Mh="3.5.2",Da=window.ShadyCSS&&window.ShadyCSS.cssBuild,Nh=te(r=>{const e=Oh(oo(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,u,h){if(!Da){const p=d.content.querySelectorAll("style"),m=Ln(d),_=Iu(u),f=d.content.firstElementChild;for(let E=0;E<_.length;E++){let C=_[E];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,f)}let x=0;for(let E=0;E<m.length;E++){let C=m[E],F=p[x];F!==C?(C=C.cloneNode(!0),F.parentNode.insertBefore(C,F)):x++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),xu&&Da&&fu){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Br||gu)&&(d=Gt.import(l,"template"),Br&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return Mh}static _finalizeClass(){e._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Mn||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)o(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=to(d.url);else{const u=Gt.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=vu,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return eo(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?$t(h):"";a(this,u,d,p),this.prototype._bindTemplate(u)}}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(d){const u=se(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),bu&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.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(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=$t(this.importPath)),$t(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return Nn&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,u,h)}}return s});/**
1016
+ */const zh="3.5.2",Oa=window.ShadyCSS&&window.ShadyCSS.cssBuild,Bh=ee(r=>{const e=Nh(ao(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,u,h){if(!Oa){const p=d.content.querySelectorAll("style"),m=Fn(d),_=Du(u),f=d.content.firstElementChild;for(let x=0;x<_.length;x++){let C=_[x];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,f)}let k=0;for(let x=0;x<m.length;x++){let C=m[x],F=p[k];F!==C?(C=C.cloneNode(!0),F.parentNode.insertBefore(C,F)):k++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),ku&&Oa&&gu){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Lr||yu)&&(d=Kt.import(l,"template"),Lr&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return zh}static _finalizeClass(){e._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Nn||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)o(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=ro(d.url);else{const u=Kt.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=bu,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return to(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?$t(h):"";a(this,u,d,p),this.prototype._bindTemplate(u)}}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(d){const u=se(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),wu&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.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(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=$t(this.importPath)),$t(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return zn&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,u,h)}}return s});/**
1017
1017
  @license
1018
1018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1019
1019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1021,7 +1021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1021
1021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1022
1022
  Code distributed by Google as part of the polymer project is also
1023
1023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1024
- */const Oa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class es{constructor(e,t){rs(e,t);const i=t.reduce((o,a,n)=>o+ts(a)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function ts(r){if(r instanceof es)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function zh(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof es)return ts(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const N=function(r,...e){rs(r,e);const t=document.createElement("template");let i=e.reduce((o,a,n)=>o+zh(a)+r[n+1],r[0]);return Oa&&(i=Oa.createHTML(i)),t.innerHTML=i,t},rs=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1024
+ */const Ma=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class ts{constructor(e,t){is(e,t);const i=t.reduce((o,a,n)=>o+rs(a)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function rs(r){if(r instanceof ts)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function Lh(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof ts)return rs(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const D=function(r,...e){is(r,e);const t=document.createElement("template");let i=e.reduce((o,a,n)=>o+Lh(a)+r[n+1],r[0]);return Ma&&(i=Ma.createHTML(i)),t.innerHTML=i,t},is=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1025
1025
  @license
1026
1026
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1027
1027
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1029,7 +1029,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1029
1029
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1030
1030
  Code distributed by Google as part of the polymer project is also
1031
1031
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1032
- */const z=Nh(HTMLElement),Bh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Er=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Lh(){function r(){return!0}return is(r)}function Fh(){try{return Rh()?!0:Vh()?Er?!Hh():!Lh():!1}catch(r){return!1}}function Rh(){return localStorage.getItem("vaadin.developmentmode.force")}function Vh(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Hh(){return!!(Er&&Object.keys(Er).map(r=>Er[r]).filter(r=>r.productionMode).length>0)}function is(r,e){if(typeof r!="function")return;const t=Bh.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const Ma=function(r,e){if(window.Vaadin.developmentMode)return is(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Fh());function Uh(){/*! vaadin-dev-mode:start
1032
+ */const O=Bh(HTMLElement),Fh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Pr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Rh(){function r(){return!0}return os(r)}function Vh(){try{return Hh()?!0:Uh()?Pr?!Wh():!Rh():!1}catch(r){return!1}}function Hh(){return localStorage.getItem("vaadin.developmentmode.force")}function Uh(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Wh(){return!!(Pr&&Object.keys(Pr).map(r=>Pr[r]).filter(r=>r.productionMode).length>0)}function os(r,e){if(typeof r!="function")return;const t=Fh.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const Na=function(r,e){if(window.Vaadin.developmentMode)return os(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Vh());function $h(){/*! vaadin-dev-mode:start
1033
1033
  (function () {
1034
1034
  'use strict';
1035
1035
 
@@ -1507,7 +1507,7 @@ try {
1507
1507
 
1508
1508
  }());
1509
1509
 
1510
- vaadin-dev-mode:end **/}const $h=function(){if(typeof Ma=="function")return Ma(Uh)};/**
1510
+ vaadin-dev-mode:end **/}const qh=function(){if(typeof Na=="function")return Na($h)};/**
1511
1511
  * @license
1512
1512
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1513
1513
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1515,7 +1515,7 @@ try {
1515
1515
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1516
1516
  * Code distributed by Google as part of the polymer project is also
1517
1517
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1518
- */let Na=0,os=0;const pt=[];let Ii=!1;function Wh(){Ii=!1;const r=pt.length;for(let e=0;e<r;e++){const t=pt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}pt.splice(0,r),os+=r}const Ve={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},Zt={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},as={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Fr={run(r){Ii||(Ii=!0,queueMicrotask(()=>Wh())),pt.push(r);const e=Na;return Na+=1,e},cancel(r){const e=r-os;if(e>=0){if(!pt[e])throw new Error(`invalid async handle: ${r}`);pt[e]=null}}};/**
1518
+ */let za=0,as=0;const gt=[];let Si=!1;function Yh(){Si=!1;const r=gt.length;for(let e=0;e<r;e++){const t=gt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}gt.splice(0,r),as+=r}const $e={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},er={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},ns={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Rr={run(r){Si||(Si=!0,queueMicrotask(()=>Yh())),gt.push(r);const e=za;return za+=1,e},cancel(r){const e=r-as;if(e>=0){if(!gt[e])throw new Error(`invalid async handle: ${r}`);gt[e]=null}}};/**
1519
1519
  @license
1520
1520
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1521
1521
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1523,35 +1523,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1523
1523
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1524
1524
  Code distributed by Google as part of the polymer project is also
1525
1525
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1526
- */const er=new Set;let ve=class Si{static debounce(e,t,i){return e instanceof Si?e._cancelAsync():e=new Si,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,er.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),er.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function ns(r){er.add(r)}function qh(){const r=!!er.size;return er.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Ht=()=>{let r;do r=qh();while(r)};/**
1526
+ */const tr=new Set;let ge=class Di{static debounce(e,t,i){return e instanceof Di?e._cancelAsync():e=new Di,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,tr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),tr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function ss(r){tr.add(r)}function jh(){const r=!!tr.size;return tr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Ut=()=>{let r;do r=jh();while(r)};/**
1527
1527
  * @license
1528
1528
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1529
1529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1530
- */const De=[];function Di(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function Oi(){return document.documentElement.getAttribute("dir")}function Yh(){const r=Oi();De.forEach(e=>{Di(e,r)})}const jh=new MutationObserver(Yh);jh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ge=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Di(this,Oi(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=Oi(),a=i===o&&De.indexOf(this)===-1,n=!i&&t&&De.indexOf(this)===-1;a||n?(this.__subscribe(),Di(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=De.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){De.includes(this)||De.push(this)}__unsubscribe(){De.includes(this)&&De.splice(De.indexOf(this),1)}};/**
1530
+ */const ze=[];function Oi(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function Mi(){return document.documentElement.getAttribute("dir")}function Gh(){const r=Mi();ze.forEach(e=>{Oi(e,r)})}const Kh=new MutationObserver(Gh);Kh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const be=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Oi(this,Mi(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=Mi(),a=i===o&&ze.indexOf(this)===-1,n=!i&&t&&ze.indexOf(this)===-1;a||n?(this.__subscribe(),Oi(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ze.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){ze.includes(this)||ze.push(this)}__unsubscribe(){ze.includes(this)&&ze.splice(ze.indexOf(this),1)}};/**
1531
1531
  * @license
1532
1532
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1533
1533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1534
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){$h()};let si;const za=new Set,be=r=>class extends ge(r){static finalize(){super.finalize();const{is:e}=this;e&&!za.has(e)&&(window.Vaadin.registrations.push(this),za.add(e),window.Vaadin.developmentModeCallback&&(si=ve.debounce(si,as,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ns(si)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1534
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){qh()};let li;const Ba=new Set,ye=r=>class extends be(r){static finalize(){super.finalize();const{is:e}=this;e&&!Ba.has(e)&&(window.Vaadin.registrations.push(this),Ba.add(e),window.Vaadin.developmentModeCallback&&(li=ge.debounce(li,ns,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ss(li)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1535
1535
  * @license
1536
1536
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1537
1537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1538
- */function Gh(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function ss(r){const e=[];let t;return r.localName==="slot"?t=r.assignedElements():(e.push(r),t=[...r.children]),t.forEach(i=>e.push(...ss(i))),e}function ao(r){return r?new Set(r.split(" ")):new Set}function Yr(r){return r?[...r].join(" "):""}function ls(r,e,t){const i=ao(r.getAttribute(e));i.add(t),r.setAttribute(e,Yr(i))}function Kh(r,e,t){const i=ao(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,Yr(i))}function Xh(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1538
+ */function Xh(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function ls(r){const e=[];let t;return r.localName==="slot"?t=r.assignedElements():(e.push(r),t=[...r.children]),t.forEach(i=>e.push(...ls(i))),e}function no(r){return r?new Set(r.split(" ")):new Set}function jr(r){return r?[...r].join(" "):""}function ds(r,e,t){const i=no(r.getAttribute(e));i.add(t),r.setAttribute(e,jr(i))}function Qh(r,e,t){const i=no(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,jr(i))}function Jh(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1539
1539
  * @license
1540
1540
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1541
1541
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1542
- */class no{constructor(e,t){this.slot=e,this.callback=t,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 e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],o=[];e.length&&(t=e.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const s=e.indexOf(a);s===-1?i.push(a):s!==n&&o.push(a)}),(t.length||i.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:i}),this._storedNodes=e}}/**
1542
+ */class so{constructor(e,t){this.slot=e,this.callback=t,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 e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],o=[];e.length&&(t=e.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const s=e.indexOf(a);s===-1?i.push(a):s!==n&&o.push(a)}),(t.length||i.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:i}),this._storedNodes=e}}/**
1543
1543
  * @license
1544
1544
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1545
1545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1546
- */let Qh=0;function ir(){return Qh++}/**
1546
+ */let Zh=0;function or(){return Zh++}/**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */class ue extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${ir()}`}constructor(e,t,i,o={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new no(i,({addedNodes:o,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=o.filter(l=>!Xh(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1550
+ */class me extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${or()}`}constructor(e,t,i,o={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new so(i,({addedNodes:o,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=o.filter(l=>!Jh(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1554
- */class Be extends ue{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1554
+ */class Ve extends me{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1555
1555
  @license
1556
1556
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1557
1557
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1559,107 +1559,107 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1559
1559
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1560
1560
  Code distributed by Google as part of the polymer project is also
1561
1561
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1562
- */const Jh=r=>r,ds=typeof document.head.style.touchAction=="string",Mi="__polymerGestures",li="__polymerGesturesHandled",Ni="__polymerGesturesTouchAction",Ba=25,La=5,Zh=2,ep=["mousedown","mousemove","mouseup","click"],tp=[0,1,4,2],rp=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function cs(r){return ep.indexOf(r)>-1}let ip=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){ip=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const op=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ap={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Qe(r){const e=r.type;if(!cs(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!rp&&(t=tp[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function np(r){if(r.type==="click"){if(r.detail===0)return!0;const e=He(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Oe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function sp(r){let e="auto";const t=hs(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[Ni]){e=o[Ni];break}return e}function us(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function mt(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const hs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],so={},Xe=[];function lp(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function He(r){const e=hs(r);return e.length>0?e[0]:r.target}function dp(r){const e=r.type,t=r.currentTarget[Mi];if(!t)return;const i=t[e];if(!i)return;if(!r[li]&&(r[li]={},e.startsWith("touch"))){const a=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(Oe.touch.id=a.identifier),Oe.touch.id!==a.identifier)return;ds||(e==="touchstart"||e==="touchmove")&&cp(r)}const o=r[li];if(!o.skip){for(let a=0,n;a<Xe.length;a++)n=Xe[a],i[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(r.type)>-1&&n.reset&&n.reset();for(let a=0,n;a<Xe.length;a++)n=Xe[a],i[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](r))}}function cp(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")Oe.touch.x=e.clientX,Oe.touch.y=e.clientY,Oe.touch.scrollDecided=!1;else if(t==="touchmove"){if(Oe.touch.scrollDecided)return;Oe.touch.scrollDecided=!0;const i=sp(r);let o=!1;const a=Math.abs(Oe.touch.x-e.clientX),n=Math.abs(Oe.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>a:i==="pan-y"&&(o=a>n)),o?r.preventDefault():Rr("track")}}function Ee(r,e,t){return so[e]?(up(r,e,t),!0):!1}function up(r,e,t){const i=so[e],o=i.deps,a=i.name;let n=r[Mi];n||(r[Mi]=n={});for(let s=0,l,d;s<o.length;s++)l=o[s],!(op&&cs(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&r.addEventListener(l,dp,void 0),d[a]=(d[a]||0)+1,d._count=(d._count||0)+1);r.addEventListener(e,t),i.touchAction&&ps(r,i.touchAction)}function lo(r){Xe.push(r),r.emits.forEach(e=>{so[e]=r})}function hp(r){for(let e=0,t;e<Xe.length;e++){t=Xe[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function ps(r,e){ds&&r instanceof HTMLElement&&Fr.run(()=>{r.style.touchAction=e}),r[Ni]=e}function co(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Jh(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Rr(r){const e=hp(r);e.info&&(e.info.prevent=!0)}lo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){mt(this.info)},mousedown(r){if(!Qe(r))return;const e=He(r),t=this,i=a=>{Qe(a)||(Lt("up",e,a),mt(t.info))},o=a=>{Qe(a)&&Lt("up",e,a),mt(t.info)};us(this.info,i,o),Lt("down",e,r)},touchstart(r){Lt("down",He(r),r.changedTouches[0],r)},touchend(r){Lt("up",He(r),r.changedTouches[0],r)}});function Lt(r,e,t,i){e&&co(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return Rr(o)}})}lo({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(r){this.moves.length>Zh&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,mt(this.info)},mousedown(r){if(!Qe(r))return;const e=He(r),t=this,i=a=>{const n=a.clientX,s=a.clientY;Fa(t.info,n,s)&&(t.info.state=t.info.started?a.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Rr("tap"),t.info.addMove({x:n,y:s}),Qe(a)||(t.info.state="end",mt(t.info)),e&&di(t.info,e,a),t.info.started=!0)},o=a=>{t.info.started&&i(a),mt(t.info)};us(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=He(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;Fa(this.info,i,o)&&(this.info.state==="start"&&Rr("tap"),this.info.addMove({x:i,y:o}),di(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=He(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),di(this.info,e,t))}});function Fa(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=La||o>=La}function di(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],a=o.x-r.x,n=o.y-r.y;let s,l=0;i&&(s=o.x-i.x,l=o.y-i.y),co(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:a,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return lp(t.clientX,t.clientY)}})}lo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(r){Qe(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){Qe(r)&&Ra(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Ra(this.info,r.changedTouches[0],r)}});function Ra(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),a=He(t||e);!a||ap[a.localName]&&a.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=Ba&&o<=Ba||np(e))&&(r.prevent||co(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
+ */const ep=r=>r,cs=typeof document.head.style.touchAction=="string",Ni="__polymerGestures",di="__polymerGesturesHandled",zi="__polymerGesturesTouchAction",La=25,Fa=5,tp=2,rp=["mousedown","mousemove","mouseup","click"],ip=[0,1,4,2],op=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function us(r){return rp.indexOf(r)>-1}let ap=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){ap=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const np=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),sp={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function tt(r){const e=r.type;if(!us(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!op&&(t=ip[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function lp(r){if(r.type==="click"){if(r.detail===0)return!0;const e=qe(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Be={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function dp(r){let e="auto";const t=ps(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[zi]){e=o[zi];break}return e}function hs(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function bt(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const ps=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],lo={},et=[];function cp(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function qe(r){const e=ps(r);return e.length>0?e[0]:r.target}function up(r){const e=r.type,t=r.currentTarget[Ni];if(!t)return;const i=t[e];if(!i)return;if(!r[di]&&(r[di]={},e.startsWith("touch"))){const a=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(Be.touch.id=a.identifier),Be.touch.id!==a.identifier)return;cs||(e==="touchstart"||e==="touchmove")&&hp(r)}const o=r[di];if(!o.skip){for(let a=0,n;a<et.length;a++)n=et[a],i[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(r.type)>-1&&n.reset&&n.reset();for(let a=0,n;a<et.length;a++)n=et[a],i[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](r))}}function hp(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")Be.touch.x=e.clientX,Be.touch.y=e.clientY,Be.touch.scrollDecided=!1;else if(t==="touchmove"){if(Be.touch.scrollDecided)return;Be.touch.scrollDecided=!0;const i=dp(r);let o=!1;const a=Math.abs(Be.touch.x-e.clientX),n=Math.abs(Be.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>a:i==="pan-y"&&(o=a>n)),o?r.preventDefault():Vr("track")}}function Ie(r,e,t){return lo[e]?(pp(r,e,t),!0):!1}function pp(r,e,t){const i=lo[e],o=i.deps,a=i.name;let n=r[Ni];n||(r[Ni]=n={});for(let s=0,l,d;s<o.length;s++)l=o[s],!(np&&us(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&r.addEventListener(l,up,void 0),d[a]=(d[a]||0)+1,d._count=(d._count||0)+1);r.addEventListener(e,t),i.touchAction&&ms(r,i.touchAction)}function co(r){et.push(r),r.emits.forEach(e=>{lo[e]=r})}function mp(r){for(let e=0,t;e<et.length;e++){t=et[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function ms(r,e){cs&&r instanceof HTMLElement&&Rr.run(()=>{r.style.touchAction=e}),r[zi]=e}function uo(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,ep(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Vr(r){const e=mp(r);e.info&&(e.info.prevent=!0)}co({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){bt(this.info)},mousedown(r){if(!tt(r))return;const e=qe(r),t=this,i=a=>{tt(a)||(Ft("up",e,a),bt(t.info))},o=a=>{tt(a)&&Ft("up",e,a),bt(t.info)};hs(this.info,i,o),Ft("down",e,r)},touchstart(r){Ft("down",qe(r),r.changedTouches[0],r)},touchend(r){Ft("up",qe(r),r.changedTouches[0],r)}});function Ft(r,e,t,i){e&&uo(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return Vr(o)}})}co({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(r){this.moves.length>tp&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,bt(this.info)},mousedown(r){if(!tt(r))return;const e=qe(r),t=this,i=a=>{const n=a.clientX,s=a.clientY;Ra(t.info,n,s)&&(t.info.state=t.info.started?a.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Vr("tap"),t.info.addMove({x:n,y:s}),tt(a)||(t.info.state="end",bt(t.info)),e&&ci(t.info,e,a),t.info.started=!0)},o=a=>{t.info.started&&i(a),bt(t.info)};hs(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=qe(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;Ra(this.info,i,o)&&(this.info.state==="start"&&Vr("tap"),this.info.addMove({x:i,y:o}),ci(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=qe(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),ci(this.info,e,t))}});function Ra(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=Fa||o>=Fa}function ci(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],a=o.x-r.x,n=o.y-r.y;let s,l=0;i&&(s=o.x-i.x,l=o.y-i.y),uo(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:a,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return cp(t.clientX,t.clientY)}})}co({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(r){tt(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){tt(r)&&Va(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Va(this.info,r.changedTouches[0],r)}});function Va(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),a=qe(t||e);!a||sp[a.localName]&&a.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=La&&o<=La||lp(e))&&(r.prevent||uo(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */const Ct=te(r=>class extends r{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1566
+ */const Tt=ee(r=>class extends r{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1567
1567
  * @license
1568
1568
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1569
1569
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1570
- */const tt=te(r=>class extends r{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1570
+ */const at=ee(r=>class extends r{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1571
1571
  * @license
1572
1572
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1573
1573
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1574
- */const uo=r=>class extends Ct(tt(r)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ee(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1574
+ */const ho=r=>class extends Tt(at(r)){get _activeKeys(){return[" "]}ready(){super.ready(),Ie(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ie(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1575
1575
  * @license
1576
1576
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1577
1577
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1578
- */let ho=!1;window.addEventListener("keydown",()=>{ho=!0},{capture:!0});window.addEventListener("mousedown",()=>{ho=!1},{capture:!0});function zi(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function jr(){return ho}function ms(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function pp(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function mp(r,e){const t=[];for(;r.length>0&&e.length>0;)pp(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function Bi(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=Bi(r.slice(0,t)),o=Bi(r.slice(t));return mp(i,o)}function Li(r){return r.offsetParent===null&&r.clientWidth===0&&r.clientHeight===0?!0:ms(r)}function po(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function mo(r){return r.getRootNode().activeElement===r}function _p(r){if(!po(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function _s(r,e){if(r.nodeType!==Node.ELEMENT_NODE||ms(r))return!1;const t=r,i=_p(t);let o=i>0;i>=0&&e.push(t);let a=[];return t.localName==="slot"?a=t.assignedNodes({flatten:!0}):a=(t.shadowRoot||t).children,[...a].forEach(n=>{o=_s(n,e)||o}),o}function fp(r){const e=[];return _s(r,e)?Bi(e):e}/**
1578
+ */let po=!1;window.addEventListener("keydown",()=>{po=!0},{capture:!0});window.addEventListener("mousedown",()=>{po=!1},{capture:!0});function Bi(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function Gr(){return po}function _s(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function _p(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function fp(r,e){const t=[];for(;r.length>0&&e.length>0;)_p(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function Li(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=Li(r.slice(0,t)),o=Li(r.slice(t));return fp(i,o)}function Fi(r){return r.offsetParent===null&&r.clientWidth===0&&r.clientHeight===0?!0:_s(r)}function mo(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function _o(r){return r.getRootNode().activeElement===r}function vp(r){if(!mo(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function fs(r,e){if(r.nodeType!==Node.ELEMENT_NODE||_s(r))return!1;const t=r,i=vp(t);let o=i>0;i>=0&&e.push(t);let a=[];return t.localName==="slot"?a=t.assignedNodes({flatten:!0}):a=(t.shadowRoot||t).children,[...a].forEach(n=>{o=fs(n,e)||o}),o}function gp(r){const e=[];return fs(r,e)?Li(e):e}/**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1582
- */const rt=te(r=>class extends r{get _keyboardActive(){return jr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1582
+ */const nt=ee(r=>class extends r{get _keyboardActive(){return Gr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1583
1583
  * @license
1584
1584
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1585
1585
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1586
- */const fs=r=>class extends Ct(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1586
+ */const vs=r=>class extends Tt(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1587
1587
  * @license
1588
1588
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1589
1589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1590
- */const Gr=te(r=>class extends rt(fs(r)){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(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1590
+ */const Kr=ee(r=>class extends nt(vs(r)){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(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1591
1591
  * @license
1592
1592
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1594
- */const _o=te(r=>class extends r{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(e){e&&(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(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1594
+ */const fo=ee(r=>class extends r{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(e){e&&(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(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1595
1595
  * @license
1596
1596
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1597
1597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1598
- */const or=te(r=>class extends r{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 this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1598
+ */const ar=ee(r=>class extends r{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 this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1599
1599
  * @license
1600
1600
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1601
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */const vp=te(r=>class extends _o(Ct(or(r))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1602
+ */const bp=ee(r=>class extends fo(Tt(ar(r))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1603
1603
  * @license
1604
1604
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1605
1605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const ci=new Map;function fo(r){return ci.has(r)||ci.set(r,new WeakMap),ci.get(r)}function vs(r,e){r&&r.removeAttribute(e)}function gs(r,e){if(!r||!e)return;const t=fo(e);if(t.has(r))return;const i=ao(r.getAttribute(e));t.set(r,new Set(i))}function gp(r,e){if(!r||!e)return;const t=fo(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):ls(r,e,Yr(i)),t.delete(r)}function _t(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:o,fromUser:a}=t,n=fo(e),s=n.get(r);if(!a&&s){o&&s.delete(o),i&&s.add(i);return}a&&(s?i||n.delete(r):gs(r,e),vs(r,e)),Kh(r,e,o);const l=i||Yr(s);l&&ls(r,e,l)}function bp(r,e){gs(r,e),vs(r,e)}/**
1606
+ */const ui=new Map;function vo(r){return ui.has(r)||ui.set(r,new WeakMap),ui.get(r)}function gs(r,e){r&&r.removeAttribute(e)}function bs(r,e){if(!r||!e)return;const t=vo(e);if(t.has(r))return;const i=no(r.getAttribute(e));t.set(r,new Set(i))}function yp(r,e){if(!r||!e)return;const t=vo(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):ds(r,e,jr(i)),t.delete(r)}function yt(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:o,fromUser:a}=t,n=vo(e),s=n.get(r);if(!a&&s){o&&s.delete(o),i&&s.add(i);return}a&&(s?i||n.delete(r):bs(r,e),gs(r,e)),Qh(r,e,o);const l=i||jr(s);l&&ds(r,e,l)}function wp(r,e){bs(r,e),gs(r,e)}/**
1607
1607
  * @license
1608
1608
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1609
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1610
- */class yp{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(bp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(gp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){_t(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){_t(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){_t(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1610
+ */class xp{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(wp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(yp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){yt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){yt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){yt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1611
1611
  * @license
1612
1612
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1613
1613
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1614
- */const Te=te(r=>typeof r.prototype.addController=="function"?r:class extends r{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1614
+ */const Oe=ee(r=>typeof r.prototype.addController=="function"?r:class extends r{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1615
1615
  * @license
1616
1616
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1617
1617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1618
- */const xe=document.createElement("div");xe.style.position="fixed";xe.style.clip="rect(0px, 0px, 0px, 0px)";xe.setAttribute("aria-live","polite");document.body.appendChild(xe);let gr;function Pr(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(xe.removeAttribute("aria-live"),xe.removeAttribute("role"),gr=ve.debounce(gr,Zt,()=>{xe.setAttribute("role","alert")})):(gr&&gr.cancel(),xe.removeAttribute("role"),xe.setAttribute("aria-live",t)),xe.textContent="",setTimeout(()=>{xe.textContent=r},i)}/**
1618
+ */const Ee=document.createElement("div");Ee.style.position="fixed";Ee.style.clip="rect(0px, 0px, 0px, 0px)";Ee.setAttribute("aria-live","polite");document.body.appendChild(Ee);let br;function Ar(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(Ee.removeAttribute("aria-live"),Ee.removeAttribute("role"),br=ge.debounce(br,er,()=>{Ee.setAttribute("role","alert")})):(br&&br.cancel(),Ee.removeAttribute("role"),Ee.setAttribute("aria-live",t)),Ee.textContent="",setTimeout(()=>{Ee.textContent=r},i)}/**
1619
1619
  * @license
1620
1620
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1621
1621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1622
- */class vo extends ue{constructor(e,t,i,o={}){super(e,t,i,gn(Sr({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,a=o===this.node;i.type==="attributes"?a&&this.__updateNodeId(o):(a||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1622
+ */class go extends me{constructor(e,t,i,o={}){super(e,t,i,bn(Dr({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,a=o===this.node;i.type==="attributes"?a&&this.__updateNodeId(o):(a||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1623
1623
  * @license
1624
1624
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1625
1625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1626
- */class wp extends vo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&Pr(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1626
+ */class Cp extends go{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&Ar(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1627
1627
  * @license
1628
1628
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1629
1629
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1630
- */class xp extends vo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1630
+ */class kp extends go{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1631
1631
  * @license
1632
1632
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1633
1633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1634
- */class bs extends vo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1634
+ */class ys extends go{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1635
1635
  * @license
1636
1636
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1637
1637
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1638
- */const Cp=te(r=>class extends Te(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new bs(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1638
+ */const Ep=ee(r=>class extends Oe(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ys(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1639
1639
  * @license
1640
1640
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
- */const go=te(r=>class extends r{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1642
+ */const bo=ee(r=>class extends r{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1643
1643
  * @license
1644
1644
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1645
1645
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1646
- */const Kr=r=>class extends go(Cp(Te(r))){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 yp(this),this._helperController=new xp(this),this._errorController=new wp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,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(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1646
+ */const Xr=r=>class extends bo(Ep(Oe(r))){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 xp(this),this._helperController=new kp(this),this._errorController=new Cp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,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(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class ar extends ue{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1650
+ */class nr extends me{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1654
- */class nr{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1654
+ */class sr{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1655
1655
  * @license
1656
1656
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1657
1657
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1658
- */const kp=r=>class extends Kr(vp(Gr(uo(r)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new ar(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new nr(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1658
+ */const Pp=r=>class extends Xr(bp(Kr(ho(r)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new nr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new sr(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1659
1659
  * @license
1660
1660
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1661
1661
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1662
- */const Ep=g`
1662
+ */const Ap=g`
1663
1663
  :host {
1664
1664
  display: inline-block;
1665
1665
  }
@@ -1751,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1751
1751
  * @license
1752
1752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1753
1753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1754
- */w("vaadin-checkbox",Ep,{moduleId:"vaadin-checkbox-styles"});class Pp extends kp(be($(z))){static get is(){return"vaadin-checkbox"}static get template(){return N`
1754
+ */w("vaadin-checkbox",Ap,{moduleId:"vaadin-checkbox-styles"});class Tp extends Pp(ye($(O))){static get is(){return"vaadin-checkbox"}static get template(){return D`
1755
1755
  <div class="vaadin-checkbox-container">
1756
1756
  <div part="checkbox" aria-hidden="true"></div>
1757
1757
  <slot name="input"></slot>
@@ -1767,11 +1767,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1767
1767
  </div>
1768
1768
  </div>
1769
1769
  <slot name="tooltip"></slot>
1770
- `}ready(){super.ready(),this._tooltipController=new Be(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}P(Pp);/**
1770
+ `}ready(){super.ready(),this._tooltipController=new Ve(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}A(Tp);/**
1771
1771
  * @license
1772
1772
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1773
1773
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1774
- */const ys=g`
1774
+ */const ws=g`
1775
1775
  :host {
1776
1776
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1777
1777
  }
@@ -1831,7 +1831,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1831
1831
  * @license
1832
1832
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1833
1833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1834
- */const bo=g`
1834
+ */const yo=g`
1835
1835
  [part='label'] {
1836
1836
  align-self: flex-start;
1837
1837
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1943,7 +1943,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1943
1943
  margin-left: 0;
1944
1944
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1945
1945
  }
1946
- `;w("",bo,{moduleId:"lumo-required-field"});const Ap=g`
1946
+ `;w("",yo,{moduleId:"lumo-required-field"});const Ip=g`
1947
1947
  :host {
1948
1948
  color: var(--lumo-body-text-color);
1949
1949
  font-size: var(--lumo-font-size-m);
@@ -1986,15 +1986,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1986
1986
  color: var(--lumo-secondary-text-color);
1987
1987
  }
1988
1988
  }
1989
- `;w("vaadin-checkbox-group",[bo,ys,Ap],{moduleId:"lumo-checkbox-group"});/**
1989
+ `;w("vaadin-checkbox-group",[yo,ws,Ip],{moduleId:"lumo-checkbox-group"});/**
1990
1990
  * @license
1991
1991
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1992
1992
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1993
- */const Tp=r=>class extends Kr(rt(Ct(r))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Be(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new no(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),a=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),a.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1993
+ */const Sp=r=>class extends Xr(nt(Tt(r))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Ve(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new so(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),a=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),a.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1994
1994
  * @license
1995
1995
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1996
1996
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1997
- */const Ip=g`
1997
+ */const Dp=g`
1998
1998
  :host {
1999
1999
  display: inline-flex;
2000
2000
  }
@@ -2027,7 +2027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2027
2027
  * @license
2028
2028
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2029
2029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2030
- */w("vaadin-checkbox-group",Ip,{moduleId:"vaadin-checkbox-group-styles"});class Sp extends Tp(be($(z))){static get is(){return"vaadin-checkbox-group"}static get template(){return N`
2030
+ */w("vaadin-checkbox-group",Dp,{moduleId:"vaadin-checkbox-group-styles"});class Op extends Sp(ye($(O))){static get is(){return"vaadin-checkbox-group"}static get template(){return D`
2031
2031
  <div class="vaadin-group-field-container">
2032
2032
  <div part="label">
2033
2033
  <slot name="label"></slot>
@@ -2048,11 +2048,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  </div>
2049
2049
 
2050
2050
  <slot name="tooltip"></slot>
2051
- `}}P(Sp);/**
2051
+ `}}A(Op);/**
2052
2052
  * @license
2053
2053
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2054
2054
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2055
- */const kt=g`
2055
+ */const It=g`
2056
2056
  :host {
2057
2057
  top: var(--lumo-space-m);
2058
2058
  right: var(--lumo-space-m);
@@ -2117,11 +2117,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2117
2117
  opacity: 1;
2118
2118
  }
2119
2119
  }
2120
- `;w("",kt,{moduleId:"lumo-overlay"});/**
2120
+ `;w("",It,{moduleId:"lumo-overlay"});/**
2121
2121
  * @license
2122
2122
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2123
2123
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2124
- */const Xr=g`
2124
+ */const Qr=g`
2125
2125
  :host([opening]),
2126
2126
  :host([closing]) {
2127
2127
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2151,7 +2151,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2151
2151
  opacity: 0;
2152
2152
  }
2153
2153
  }
2154
- `;w("",Xr,{moduleId:"lumo-menu-overlay-core"});const Dp=g`
2154
+ `;w("",Qr,{moduleId:"lumo-menu-overlay-core"});const Mp=g`
2155
2155
  /* Small viewport (bottom sheet) styles */
2156
2156
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2157
2157
  @media (max-width: 450px), (max-height: 450px) {
@@ -2213,7 +2213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2213
2213
  transform: translateY(150%);
2214
2214
  }
2215
2215
  }
2216
- `,yo=[kt,Xr,Dp];w("",yo,{moduleId:"lumo-menu-overlay"});const Op=g`
2216
+ `,wo=[It,Qr,Mp];w("",wo,{moduleId:"lumo-menu-overlay"});const Np=g`
2217
2217
  [part='overlay'] {
2218
2218
  /*
2219
2219
  Width:
@@ -2258,7 +2258,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2258
2258
  max-height: 70vh;
2259
2259
  }
2260
2260
  }
2261
- `;w("vaadin-date-picker-overlay",[yo,Op],{moduleId:"lumo-date-picker-overlay"});const ws=g`
2261
+ `;w("vaadin-date-picker-overlay",[wo,Np],{moduleId:"lumo-date-picker-overlay"});const xs=g`
2262
2262
  :host {
2263
2263
  /* Sizing */
2264
2264
  --lumo-button-size: var(--lumo-size-m);
@@ -2534,7 +2534,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2534
2534
  margin-left: 0;
2535
2535
  margin-right: 0;
2536
2536
  }
2537
- `;w("vaadin-button",ws,{moduleId:"lumo-button"});w("vaadin-date-picker-year",g`
2537
+ `;w("vaadin-button",xs,{moduleId:"lumo-button"});w("vaadin-date-picker-year",g`
2538
2538
  :host([current]) [part='year-number'] {
2539
2539
  color: var(--lumo-primary-text-color);
2540
2540
  }
@@ -3037,7 +3037,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3037
3037
  * @license
3038
3038
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3039
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3040
- */const wo=g`
3040
+ */const xo=g`
3041
3041
  [part$='button'] {
3042
3042
  flex: none;
3043
3043
  width: 1em;
@@ -3064,11 +3064,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3064
3064
  font-family: 'lumo-icons';
3065
3065
  display: block;
3066
3066
  }
3067
- `;w("",wo,{moduleId:"lumo-field-button"});/**
3067
+ `;w("",xo,{moduleId:"lumo-field-button"});/**
3068
3068
  * @license
3069
3069
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3070
3070
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3071
- */const Mp=g`
3071
+ */const zp=g`
3072
3072
  :host {
3073
3073
  --lumo-text-field-size: var(--lumo-size-m);
3074
3074
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3199,7 +3199,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3199
3199
  [part='clear-button']::before {
3200
3200
  content: var(--lumo-icons-cross);
3201
3201
  }
3202
- `,it=[bo,wo,ys,Mp];w("",it,{moduleId:"lumo-input-field-shared-styles"});const Np=g`
3202
+ `,st=[yo,xo,ws,zp];w("",st,{moduleId:"lumo-input-field-shared-styles"});const Bp=g`
3203
3203
  [part='toggle-button']::before {
3204
3204
  content: var(--lumo-icons-calendar);
3205
3205
  }
@@ -3221,15 +3221,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3221
3221
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3222
3222
  --_lumo-text-field-overflow-mask-image: none;
3223
3223
  }
3224
- `;w("vaadin-date-picker",[it,Np],{moduleId:"lumo-date-picker"});/**
3224
+ `;w("vaadin-date-picker",[st,Bp],{moduleId:"lumo-date-picker"});/**
3225
3225
  * @license
3226
3226
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3227
3227
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3228
- */const zp=r=>class extends r{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",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3228
+ */const Lp=r=>class extends r{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",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3229
3229
  * @license
3230
3230
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3231
3231
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3232
- */const Bp=g`
3232
+ */const Fp=g`
3233
3233
  :host {
3234
3234
  display: flex;
3235
3235
  align-items: center;
@@ -3298,15 +3298,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3298
3298
  * @license
3299
3299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3300
3300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3301
- */w("vaadin-input-container",Bp,{moduleId:"vaadin-input-container-styles"});class xs extends zp($(ge(z))){static get is(){return"vaadin-input-container"}static get template(){return N`
3301
+ */w("vaadin-input-container",Fp,{moduleId:"vaadin-input-container-styles"});class Cs extends Lp($(be(O))){static get is(){return"vaadin-input-container"}static get template(){return D`
3302
3302
  <slot name="prefix"></slot>
3303
3303
  <slot></slot>
3304
3304
  <slot name="suffix"></slot>
3305
- `}}P(xs);/**
3305
+ `}}A(Cs);/**
3306
3306
  * @license
3307
3307
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3308
3308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3309
- */const sr=g`
3309
+ */const lr=g`
3310
3310
  :host {
3311
3311
  z-index: 200;
3312
3312
  position: fixed;
@@ -3373,55 +3373,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3373
3373
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3374
3374
  Code distributed by Google as part of the polymer project is also
3375
3375
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3376
- */let Fi=!1,Lp=[],Cs=[];function Fp(){Fi=!0,requestAnimationFrame(function(){Fi=!1,Rp(Lp),setTimeout(function(){Vp(Cs)})})}function Rp(r){for(;r.length;)ks(r.shift())}function Vp(r){for(let e=0,t=r.length;e<t;e++)ks(r.shift())}function ks(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function xo(r,e,t){Fi||Fp(),Cs.push([r,e,t])}/**
3376
+ */let Ri=!1,Rp=[],ks=[];function Vp(){Ri=!0,requestAnimationFrame(function(){Ri=!1,Hp(Rp),setTimeout(function(){Up(ks)})})}function Hp(r){for(;r.length;)Es(r.shift())}function Up(r){for(let e=0,t=r.length;e<t;e++)Es(r.shift())}function Es(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function Co(r,e,t){Ri||Vp(),ks.push([r,e,t])}/**
3377
3377
  * @license
3378
3378
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3379
3379
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3380
- */const Qr=r=>r.test(navigator.userAgent),Ri=r=>r.test(navigator.platform),Hp=r=>r.test(navigator.vendor);Qr(/Android/u);Qr(/Chrome/u)&&Hp(/Google Inc/u);Qr(/Firefox/u);const Up=Ri(/^iPad/u)||Ri(/^Mac/u)&&navigator.maxTouchPoints>1,$p=Ri(/^iPhone/u),Co=$p||Up,Wp=Qr(/^((?!chrome|android).)*safari/iu),Vi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
3380
+ */const Jr=r=>r.test(navigator.userAgent),Vi=r=>r.test(navigator.platform),Wp=r=>r.test(navigator.vendor);Jr(/Android/u);Jr(/Chrome/u)&&Wp(/Google Inc/u);Jr(/Firefox/u);const $p=Vi(/^iPad/u)||Vi(/^Mac/u)&&navigator.maxTouchPoints>1,qp=Vi(/^iPhone/u),ko=qp||$p,Yp=Jr(/^((?!chrome|android).)*safari/iu),Hi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
3381
3381
  * @license
3382
3382
  * Copyright (c) 2017 Anton Korzunov
3383
3383
  * SPDX-License-Identifier: MIT
3384
- */let dt=new WeakMap,br=new WeakMap,yr={},ui=0;const Va=r=>r&&r.nodeType===Node.ELEMENT_NODE,hi=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},qp=(r,e)=>Va(r)?e.map(t=>{if(!Va(t))return hi(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return hi(t,"is not contained inside",r),null}).filter(t=>!!t):(hi(r,"is not a valid element"),[]),Yp=(r,e,t,i)=>{const o=qp(e,Array.isArray(r)?r:[r]);yr[t]||(yr[t]=new WeakMap);const a=yr[t],n=[],s=new Set,l=new Set(o),d=h=>{if(!h||s.has(h))return;s.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};o.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))u(m);else{const _=m.getAttribute(i),f=_!==null&&_!=="false",x=(dt.get(m)||0)+1,E=(a.get(m)||0)+1;dt.set(m,x),a.set(m,E),n.push(m),x===1&&f&&br.set(m,!0),E===1&&m.setAttribute(t,"true"),f||m.setAttribute(i,"true")}})};return u(e),s.clear(),ui+=1,()=>{n.forEach(h=>{const p=dt.get(h)-1,m=a.get(h)-1;dt.set(h,p),a.set(h,m),p||(br.has(h)?br.delete(h):h.removeAttribute(i)),m||h.removeAttribute(t)}),ui-=1,ui||(dt=new WeakMap,dt=new WeakMap,br=new WeakMap,yr={})}},Es=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Yp(i,e,t,"aria-hidden")};/**
3384
+ */let mt=new WeakMap,yr=new WeakMap,wr={},hi=0;const Ha=r=>r&&r.nodeType===Node.ELEMENT_NODE,pi=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},jp=(r,e)=>Ha(r)?e.map(t=>{if(!Ha(t))return pi(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return pi(t,"is not contained inside",r),null}).filter(t=>!!t):(pi(r,"is not a valid element"),[]),Gp=(r,e,t,i)=>{const o=jp(e,Array.isArray(r)?r:[r]);wr[t]||(wr[t]=new WeakMap);const a=wr[t],n=[],s=new Set,l=new Set(o),d=h=>{if(!h||s.has(h))return;s.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};o.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))u(m);else{const _=m.getAttribute(i),f=_!==null&&_!=="false",k=(mt.get(m)||0)+1,x=(a.get(m)||0)+1;mt.set(m,k),a.set(m,x),n.push(m),k===1&&f&&yr.set(m,!0),x===1&&m.setAttribute(t,"true"),f||m.setAttribute(i,"true")}})};return u(e),s.clear(),hi+=1,()=>{n.forEach(h=>{const p=mt.get(h)-1,m=a.get(h)-1;mt.set(h,p),a.set(h,m),p||(yr.has(h)?yr.delete(h):h.removeAttribute(i)),m||h.removeAttribute(t)}),hi-=1,hi||(mt=new WeakMap,mt=new WeakMap,yr=new WeakMap,wr={})}},Ps=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Gp(i,e,t,"aria-hidden")};/**
3385
3385
  * @license
3386
3386
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3388
- */class jp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Es(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3388
+ */class Kp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Ps(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3389
3389
  * @license
3390
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */class Gp{saveFocus(e){this.focusNode=e||zi()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;zi()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3392
+ */class Xp{saveFocus(e){this.focusNode=e||Bi()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;Bi()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3393
3393
  * @license
3394
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3396
- */const pi=[];class Kp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return fp(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(mo).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");pi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,pi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(pi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,a=(t.length+o+i)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
3396
+ */const mi=[];class Qp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return gp(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(_o).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");mi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,mi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(mi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,a=(t.length+o+i)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
3397
3397
  * @license
3398
3398
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3399
3399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3400
- */const Xp=r=>class extends Te(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new jp(this),this.__focusTrapController=new Kp(this),this.__focusRestorationController=new Gp}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 e=!jr();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=zi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3400
+ */const Jp=r=>class extends Oe(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Kp(this),this.__focusTrapController=new Qp(this),this.__focusRestorationController=new Xp}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 e=!Gr();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Bi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3401
3401
  * @license
3402
3402
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3403
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3404
- */const Ps=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),Hi=()=>Ps().filter(r=>r.$.overlay),Qp=r=>r===Hi().pop(),As=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Qp(this)}bringToFront(){let e="";const t=Ps().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Hi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=Hi();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3404
+ */const As=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),Ui=()=>As().filter(r=>r.$.overlay),Zp=r=>r===Ui().pop(),Ts=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Zp(this)}bringToFront(){let e="";const t=As().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ui().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=Ui();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3405
3405
  * @license
3406
3406
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3407
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3408
- */const lr=r=>class extends Xp(As(r)){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),Co&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&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(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","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(e,t,i,o){const a=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const n=this._oldRenderer!==e,s=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,n&&s&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||l||a)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),xo(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=a=>{a&&a.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3408
+ */const dr=r=>class extends Jp(Ts(r)){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),ko&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&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(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","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(e,t,i,o){const a=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const n=this._oldRenderer!==e,s=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,n&&s&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||l||a)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Co(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=a=>{a&&a.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */function Jp(r,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function a(n=!1,s=1){o();const{left:l,top:d,width:u,height:h}=r.getBoundingClientRect();if(n||e(),!u||!h)return;const p=Math.floor(d),m=Math.floor(i.clientWidth-(l+u)),_=Math.floor(i.clientHeight-(d+h)),f=Math.floor(l),x={rootMargin:`${-p}px ${-m}px ${-_}px ${-f}px`,threshold:Math.max(0,Math.min(1,s))||1};let E=!0;function C(F){let A=F[0].intersectionRatio;if(A!==s){if(!E)return a();A===0&&(A=1e-7),a(!1,A)}E=!1}t=new IntersectionObserver(C,x),t.observe(r)}return a(!0),o}/**
3412
+ */function em(r,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function a(n=!1,s=1){o();const{left:l,top:d,width:u,height:h}=r.getBoundingClientRect();if(n||e(),!u||!h)return;const p=Math.floor(d),m=Math.floor(i.clientWidth-(l+u)),_=Math.floor(i.clientHeight-(d+h)),f=Math.floor(l),k={rootMargin:`${-p}px ${-m}px ${-_}px ${-f}px`,threshold:Math.max(0,Math.min(1,s))||1};let x=!0;function C(F){let z=F[0].intersectionRatio;if(z!==s){if(!x)return a();z===0&&(z=1e-7),a(!1,z)}x=!1}t=new IntersectionObserver(C,k),t.observe(r)}return a(!0),o}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const mi={start:"top",end:"bottom"},_i={start:"left",end:"right"},Ha=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),ko=r=>class extends r{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=Gh(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Jp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Ha.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Ha.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),a=!i&&o||i&&!o;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,mi,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,_i,this,o);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,a,this.noHorizontalOverlap,_i)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,mi)}__shouldAlignStart(e,t,i,o,a,n,s){const l=i-e[n?s.end:s.start]-o[s.end],d=e[n?s.start:s.end]-o[s.start],u=a?l:d,h=u>(a?d:l)||u>t;return a===h}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===mi.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;o=i-n}this.__oldViewportHeight=a}if(t.end===_i.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;o=i-n}this.__oldViewportWidth=a}}return o}__calculatePositionInOneDimension(e,t,i,o,a,n){const s=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),u=this.__adjustBottomProperty(s,o,d),h=t[n?o.start:o.end]-e[i===n?o.end:o.start],p=u?`${u}px`:`${d+h*(n?-1:1)}px`;return{[s]:p,[l]:""}}};/**
3416
+ */const _i={start:"top",end:"bottom"},fi={start:"left",end:"right"},Ua=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Eo=r=>class extends r{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=Xh(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=em(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Ua.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Ua.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),a=!i&&o||i&&!o;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,_i,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,fi,this,o);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,a,this.noHorizontalOverlap,fi)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,_i)}__shouldAlignStart(e,t,i,o,a,n,s){const l=i-e[n?s.end:s.start]-o[s.end],d=e[n?s.start:s.end]-o[s.start],u=a?l:d,h=u>(a?d:l)||u>t;return a===h}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===_i.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;o=i-n}this.__oldViewportHeight=a}if(t.end===fi.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;o=i-n}this.__oldViewportWidth=a}}return o}__calculatePositionInOneDimension(e,t,i,o,a,n){const s=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),u=this.__adjustBottomProperty(s,o,d),h=t[n?o.start:o.end]-e[i===n?o.end:o.start],p=u?`${u}px`:`${d+h*(n?-1:1)}px`;return{[s]:p,[l]:""}}};/**
3417
3417
  * @license
3418
3418
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3419
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3420
- */const Zp=r=>class extends ko(lr(r)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!po(e.composedPath()[0])&&e.preventDefault()}};/**
3420
+ */const tm=r=>class extends Eo(dr(r)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!mo(e.composedPath()[0])&&e.preventDefault()}};/**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3424
- */const em=g`
3424
+ */const rm=g`
3425
3425
  [part='overlay'] {
3426
3426
  display: flex;
3427
3427
  flex: auto;
@@ -3440,18 +3440,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * @license
3441
3441
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3442
3442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3443
- */w("vaadin-date-picker-overlay",[sr,em],{moduleId:"vaadin-date-picker-overlay-styles"});class tm extends Zp(ge($(z))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return N`
3443
+ */w("vaadin-date-picker-overlay",[lr,rm],{moduleId:"vaadin-date-picker-overlay-styles"});class im extends tm(be($(O))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return D`
3444
3444
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3445
3445
  <div part="overlay" id="overlay">
3446
3446
  <div part="content" id="content">
3447
3447
  <slot></slot>
3448
3448
  </div>
3449
3449
  </div>
3450
- `}}P(tm);/**
3450
+ `}}A(im);/**
3451
3451
  * @license
3452
3452
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3453
3453
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3454
- */const Ts=g`
3454
+ */const Is=g`
3455
3455
  :host {
3456
3456
  display: inline-block;
3457
3457
  position: relative;
@@ -3511,7 +3511,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3511
3511
  outline-color: GrayText;
3512
3512
  }
3513
3513
  }
3514
- `,rm=r=>r`
3514
+ `,om=r=>r`
3515
3515
  <div class="vaadin-button-container">
3516
3516
  <span part="prefix" aria-hidden="true">
3517
3517
  <slot name="prefix"></slot>
@@ -3528,15 +3528,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3528
3528
  * @license
3529
3529
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3530
3530
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3531
- */const Eo=r=>class extends uo(fs(rt(r))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3531
+ */const Po=r=>class extends ho(vs(nt(r))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3532
3532
  * @license
3533
3533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3534
3534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3535
- */w("vaadin-button",Ts,{moduleId:"vaadin-button-styles"});class im extends Eo(be($(Te(z)))){static get is(){return"vaadin-button"}static get template(){return rm(N)}ready(){super.ready(),this._tooltipController=new Be(this),this.addController(this._tooltipController)}}P(im);/**
3535
+ */w("vaadin-button",Is,{moduleId:"vaadin-button-styles"});class am extends Po(ye($(Oe(O)))){static get is(){return"vaadin-button"}static get template(){return om(D)}ready(){super.ready(),this._tooltipController=new Ve(this),this.addController(this._tooltipController)}}A(am);/**
3536
3536
  * @license
3537
3537
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3538
3538
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3539
- */function om(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const a=i.getTime()-o.getTime(),n=Math.round(a/(24*3600*1e3));return Math.floor(n/7+1)}function Ui(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function Ne(r,e,t=Ui){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function Po(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function yt(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const a=Po(r);o=i(a)}return(!e||r>=e)&&(!t||r<=t)&&!o}function Is(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),a=Math.abs(t.getTime()-r.getTime());return o<a?i:t})}function Ss(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function am(r,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function Ft(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function nm(r){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const a=t+e(o,i),n=e(r.month+1),s=e(r.day);return[a,n,s].join("-")}function sm(r){return r instanceof Date?nm({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3539
+ */function nm(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const a=i.getTime()-o.getTime(),n=Math.round(a/(24*3600*1e3));return Math.floor(n/7+1)}function Wi(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function Fe(r,e,t=Wi){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function Ao(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function Et(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const a=Ao(r);o=i(a)}return(!e||r>=e)&&(!t||r<=t)&&!o}function Ss(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),a=Math.abs(t.getTime()-r.getTime());return o<a?i:t})}function Ds(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function sm(r,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function Rt(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function lm(r){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const a=t+e(o,i),n=e(r.month+1),s=e(r.day);return[a,n,s].join("-")}function dm(r){return r instanceof Date?lm({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3540
3540
  @license
3541
3541
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3542
3542
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3544,7 +3544,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3544
3544
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3545
3545
  Code distributed by Google as part of the polymer project is also
3546
3546
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3547
- */class Vr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,tr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),tr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof Vr?e._cancelAsync():e=new Vr,e.setConfig(t,i),e}}let tr=new Set;const lm=function(r){tr.add(r)},dm=function(){const r=!!tr.size;return tr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3547
+ */class Hr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,rr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof Hr?e._cancelAsync():e=new Hr,e.setConfig(t,i),e}}let rr=new Set;const cm=function(r){rr.add(r)},um=function(){const r=!!rr.size;return rr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3548
3548
  @license
3549
3549
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3550
3550
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3552,11 +3552,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3552
3552
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3553
3553
  Code distributed by Google as part of the polymer project is also
3554
3554
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3555
- */const Ao=function(){let r,e;do r=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=dm();while(r||e)};/**
3555
+ */const To=function(){let r,e;do r=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=um();while(r||e)};/**
3556
3556
  * @license
3557
3557
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3558
3558
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3559
- */const Ds=document.createElement("template");Ds.innerHTML=`
3559
+ */const Os=document.createElement("template");Os.innerHTML=`
3560
3560
  <style>
3561
3561
  :host {
3562
3562
  display: block;
@@ -3606,11 +3606,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3606
3606
  <div class="buffer"></div>
3607
3607
  <div id="fullHeight"></div>
3608
3608
  </div>
3609
- `;class Os extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Ds.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Ao()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ve.debounce(this._debouncerScrollFinish,Ve.after(200),()=>{const a=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],a)&&!this._isVisible(this._buffers[1],a)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ve.debounce(this._debouncerUpdateClones,Ve.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const a=`vaadin-infinite-scroller-item-content-${ir()}`,n=document.createElement("slot");n.setAttribute("name",a),n._itemWrapper=o,t.appendChild(n),o.setAttribute("slot",a),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const a=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,s)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,a+s)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3609
+ `;class Ms extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Os.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),To()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ge.debounce(this._debouncerScrollFinish,$e.after(200),()=>{const a=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],a)&&!this._isVisible(this._buffers[1],a)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ge.debounce(this._debouncerUpdateClones,$e.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const a=`vaadin-infinite-scroller-item-content-${or()}`,n=document.createElement("slot");n.setAttribute("name",a),n._itemWrapper=o,t.appendChild(n),o.setAttribute("slot",a),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const a=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,s)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,a+s)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3610
3610
  * @license
3611
3611
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3612
3612
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3613
- */const Ms=document.createElement("template");Ms.innerHTML=`
3613
+ */const Ns=document.createElement("template");Ns.innerHTML=`
3614
3614
  <style>
3615
3615
  :host {
3616
3616
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3622,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3622
3622
  height: 100%;
3623
3623
  }
3624
3624
  </style>
3625
- `;class cm extends Os{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ms.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Ss(t)}}P(cm);/**
3625
+ `;class hm extends Ms{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ns.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Ds(t)}}A(hm);/**
3626
3626
  * @license
3627
3627
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3628
3628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3629
- */const Ns=document.createElement("template");Ns.innerHTML=`
3629
+ */const zs=document.createElement("template");zs.innerHTML=`
3630
3630
  <style>
3631
3631
  :host {
3632
3632
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3660,15 +3660,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3660
3660
  border-left-color: #000;
3661
3661
  }
3662
3662
  </style>
3663
- `;class um extends Os{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ns.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}P(um);/**
3663
+ `;class pm extends Ms{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(zs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}A(pm);/**
3664
3664
  * @license
3665
3665
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3666
3666
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3667
- */const hm=r=>class extends r{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3667
+ */const mm=r=>class extends r{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3668
3668
  * @license
3669
3669
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3670
3670
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3671
- */class pm extends $(hm(z)){static get is(){return"vaadin-date-picker-year"}static get template(){return N`
3671
+ */class _m extends $(mm(O)){static get is(){return"vaadin-date-picker-year"}static get template(){return D`
3672
3672
  <style>
3673
3673
  :host {
3674
3674
  display: block;
@@ -3677,7 +3677,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3677
3677
  </style>
3678
3678
  <div part="year-number">[[year]]</div>
3679
3679
  <div part="year-separator" aria-hidden="true"></div>
3680
- `}}P(pm);/**
3680
+ `}}A(_m);/**
3681
3681
  @license
3682
3682
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3683
3683
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3685,7 +3685,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3685
3685
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3686
3686
  Code distributed by Google as part of the polymer project is also
3687
3687
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3688
- */function To(r,e,t,i,o){let a;o&&(a=typeof t=="object"&&t!==null,a&&(i=r.__dataTemp[e]));let n=i!==t&&(i===i||t===t);return a&&n&&(r.__dataTemp[e]=t),n}const Io=te(r=>{class e extends r{_shouldPropertyChange(i,o,a){return To(this,i,o,a,!0)}}return e}),mm=te(r=>{class e extends r{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,a){return To(this,i,o,a,this.mutableData)}}return e});Io._mutablePropertyChange=To;/**
3688
+ */function Io(r,e,t,i,o){let a;o&&(a=typeof t=="object"&&t!==null,a&&(i=r.__dataTemp[e]));let n=i!==t&&(i===i||t===t);return a&&n&&(r.__dataTemp[e]=t),n}const So=ee(r=>{class e extends r{_shouldPropertyChange(i,o,a){return Io(this,i,o,a,!0)}}return e}),fm=ee(r=>{class e extends r{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,a){return Io(this,i,o,a,this.mutableData)}}return e});So._mutablePropertyChange=Io;/**
3689
3689
  @license
3690
3690
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3691
3691
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3693,7 +3693,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3693
3693
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3694
3694
  Code distributed by Google as part of the polymer project is also
3695
3695
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3696
- */let $i=null;function Wi(){return $i}Wi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Wi,writable:!0}});const zs=oo(Wi),_m=Io(zs);function fm(r,e){$i=r,Object.setPrototypeOf(r,e.prototype),new e,$i=null}const vm=oo(class{});function gm(r,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!r!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)r?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(r)i.__polymerReplaced__=document.createComment("hidden-slot"),se(se(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&se(se(o).parentNode).replaceChild(i,o)}else i.style&&(r?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=r,i._showHideChildren&&i._showHideChildren(r)}}class $e extends vm{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){gm(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}$e.prototype.__dataHost;$e.prototype.__templatizeOptions;$e.prototype._methodHost;$e.prototype.__templatizeOwner;$e.prototype.__hostProps;const bm=Io($e);function Ua(r){let e=r.__dataHost;return e&&e._methodHost||e}function ym(r,e,t){let i=t.mutableData?bm:$e;qi.mixin&&(i=qi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(r),Cm(o,r,e,t),o}function wm(r,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const a=r.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?_m:zs;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=r.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:xm(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Nn&&i&&Pm(e,t,i)}if(r.__dataProto&&Object.assign(r.__data,r.__dataProto),a)fm(r,n),r.__dataTemp={},r.__dataPending=null,r.__dataOld=null,r._enableProperties();else{Object.setPrototypeOf(r,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in r){const d=r[l];delete r[l],r.__data[l]=d}}}}function xm(r,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function Cm(r,e,t,i){let o=t.hostProps||{};for(let a in i.instanceProps){delete o[a];let n=i.notifyInstanceProp;n&&r.prototype._addPropertyEffect(a,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:km(a,n)})}if(i.forwardHostProp&&e.__dataHost)for(let a in o)t.hasHostProps||(t.hasHostProps=!0),r.prototype._addPropertyEffect(a,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Em()})}function km(r,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function Em(){return function(r,e,t){r.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function qi(r,e,t){if(Br&&!Ua(r))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},r.__templatizeOwner)throw new Error("A <template> can only be templatized once");r.__templatizeOwner=e;let i=(e?e.constructor:$e)._parseTemplate(r),o=i.templatizeInstanceClass;o||(o=ym(r,i,t),i.templatizeInstanceClass=o);const a=Ua(r);wm(r,i,t,a);let n=class extends o{};return n.prototype._methodHost=a,n.prototype.__dataHost=r,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=i.hostProps,n=n,n}function Pm(r,e,t){const i=t.constructor._properties,{propertyEffects:o}=r,{instanceProps:a}=e;for(let n in o)if(!i[n]&&!(a&&a[n])){const s=o[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Am(r,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=r)e=t.__dataHost;else return t;else e=se(e).parentNode;return null}/**
3696
+ */let $i=null;function qi(){return $i}qi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:qi,writable:!0}});const Bs=ao(qi),vm=So(Bs);function gm(r,e){$i=r,Object.setPrototypeOf(r,e.prototype),new e,$i=null}const bm=ao(class{});function ym(r,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!r!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)r?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(r)i.__polymerReplaced__=document.createComment("hidden-slot"),se(se(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&se(se(o).parentNode).replaceChild(i,o)}else i.style&&(r?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=r,i._showHideChildren&&i._showHideChildren(r)}}class je extends bm{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){ym(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}je.prototype.__dataHost;je.prototype.__templatizeOptions;je.prototype._methodHost;je.prototype.__templatizeOwner;je.prototype.__hostProps;const wm=So(je);function Wa(r){let e=r.__dataHost;return e&&e._methodHost||e}function xm(r,e,t){let i=t.mutableData?wm:je;Yi.mixin&&(i=Yi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(r),Em(o,r,e,t),o}function Cm(r,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const a=r.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?vm:Bs;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=r.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:km(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);zn&&i&&Tm(e,t,i)}if(r.__dataProto&&Object.assign(r.__data,r.__dataProto),a)gm(r,n),r.__dataTemp={},r.__dataPending=null,r.__dataOld=null,r._enableProperties();else{Object.setPrototypeOf(r,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in r){const d=r[l];delete r[l],r.__data[l]=d}}}}function km(r,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function Em(r,e,t,i){let o=t.hostProps||{};for(let a in i.instanceProps){delete o[a];let n=i.notifyInstanceProp;n&&r.prototype._addPropertyEffect(a,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Pm(a,n)})}if(i.forwardHostProp&&e.__dataHost)for(let a in o)t.hasHostProps||(t.hasHostProps=!0),r.prototype._addPropertyEffect(a,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Am()})}function Pm(r,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function Am(){return function(r,e,t){r.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Yi(r,e,t){if(Lr&&!Wa(r))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},r.__templatizeOwner)throw new Error("A <template> can only be templatized once");r.__templatizeOwner=e;let i=(e?e.constructor:je)._parseTemplate(r),o=i.templatizeInstanceClass;o||(o=xm(r,i,t),i.templatizeInstanceClass=o);const a=Wa(r);Cm(r,i,t,a);let n=class extends o{};return n.prototype._methodHost=a,n.prototype.__dataHost=r,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=i.hostProps,n=n,n}function Tm(r,e,t){const i=t.constructor._properties,{propertyEffects:o}=r,{instanceProps:a}=e;for(let n in o)if(!i[n]&&!(a&&a[n])){const s=o[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Im(r,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=r)e=t.__dataHost;else return t;else e=se(e).parentNode;return null}/**
3697
3697
  @license
3698
3698
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3699
3699
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3701,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3701
3701
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3702
3702
  Code distributed by Google as part of the polymer project is also
3703
3703
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3704
- */let $a=!1;function Tm(){if(Mn&&!On){if(!$a){$a=!0;const r=document.createElement("style");r.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(r)}return!0}return!1}/**
3704
+ */let $a=!1;function Sm(){if(Nn&&!Mn){if(!$a){$a=!0;const r=document.createElement("style");r.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(r)}return!0}return!1}/**
3705
3705
  @license
3706
3706
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3707
3707
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3709,15 +3709,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3709
3709
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3710
3710
  Code distributed by Google as part of the polymer project is also
3711
3711
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3712
- */const Im=mm(z);class Wa extends Im{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!fa,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Tm()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=se(se(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=qi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(o,a)},notifyInstanceProp:function(o,a,n){if(Su(this.as,a)){let s=o[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=Xt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Vr.debounce(this.__renderDebouncer,t>0?Bu.after(t):Wn,e.bind(this)),lm(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ao()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!fa||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,a)=>this.__filterFn(e[i],o,a))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=i[a],l=e[s];o[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const i=se(t.root);for(let o=0;o<t.children.length;o++){let a=t.children[o];i.appendChild(a)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let a=this.__instances[t+1],n=a?a.children[0]:this;return se(se(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),a=o<0?i:i.substring(0,o);if(a==parseInt(a,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Am(this.template,e)}}customElements.define(Wa.is,Wa);/**
3712
+ */const Dm=fm(O);class qa extends Dm{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!va,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Sm()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=se(se(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Yi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(o,a)},notifyInstanceProp:function(o,a,n){if(Ou(this.as,a)){let s=o[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=Qt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Hr.debounce(this.__renderDebouncer,t>0?Fu.after(t):qn,e.bind(this)),cm(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),To()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!va||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,a)=>this.__filterFn(e[i],o,a))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=i[a],l=e[s];o[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const i=se(t.root);for(let o=0;o<t.children.length;o++){let a=t.children[o];i.appendChild(a)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let a=this.__instances[t+1],n=a?a.children[0]:this;return se(se(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),a=o<0?i:i.substring(0,o);if(a==parseInt(a,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Im(this.template,e)}}customElements.define(qa.is,qa);/**
3713
3713
  * @license
3714
3714
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3715
3715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3716
- */const Sm=r=>class extends rt(r){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Ne(e.date,this.focusedDate))}ready(){super.ready(),Ee(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const a=new Date(0,0);return a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()+1),a.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!yt(o,t,i)&&!yt(a,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:a}=e,n=this._applyFirstDayOfWeek(o,a);return this._applyFirstDayOfWeek(i,a).map((s,l)=>({weekDay:s,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>Ne(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return Ne(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],a=i.getMonth(),n=e.getMonth();for(;i.getMonth()===n||i.getMonth()===a;)o.push(i.getMonth()===n?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return om(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3716
+ */const Om=r=>class extends nt(r){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Fe(e.date,this.focusedDate))}ready(){super.ready(),Ie(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const a=new Date(0,0);return a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()+1),a.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!Et(o,t,i)&&!Et(a,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:a}=e,n=this._applyFirstDayOfWeek(o,a);return this._applyFirstDayOfWeek(i,a).map((s,l)=>({weekDay:s,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>Fe(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return Fe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],a=i.getMonth(),n=e.getMonth();for(;i.getMonth()===n||i.getMonth()===a;)o.push(i.getMonth()===n?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return nm(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3717
3717
  * @license
3718
3718
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3719
3719
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3720
- */const Dm=g`
3720
+ */const Mm=g`
3721
3721
  :host {
3722
3722
  display: block;
3723
3723
  }
@@ -3777,7 +3777,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3779
3779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3780
- */w("vaadin-month-calendar",Dm,{moduleId:"vaadin-month-calendar-styles"});class Om extends Sm($(z)){static get template(){return N`
3780
+ */w("vaadin-month-calendar",Mm,{moduleId:"vaadin-month-calendar-styles"});class Nm extends Om($(O)){static get template(){return D`
3781
3781
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3782
3782
  <table
3783
3783
  id="monthGrid"
@@ -3819,19 +3819,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3819
3819
  </template>
3820
3820
  </tbody>
3821
3821
  </table>
3822
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,o,a,n){const s=["date"],l=e>Ui(new Date),d=e<Ui(new Date);return this.__isDayDisabled(e,o,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,i)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Ne(e,t)}__isDaySelected(e,t){return Ne(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!yt(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}P(Om);/**
3822
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,o,a,n){const s=["date"],l=e>Wi(new Date),d=e<Wi(new Date);return this.__isDayDisabled(e,o,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,i)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Fe(e,t)}__isDaySelected(e,t){return Fe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!Et(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}A(Nm);/**
3823
3823
  * @license
3824
3824
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3825
3825
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3826
- */class So{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3826
+ */class Do{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3827
3827
  * @license
3828
3828
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3829
3829
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3830
- */const Mm=r=>class extends r{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ps(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new So(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ue(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ue(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ee(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ue(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ue(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,a))}__updateCalendars(e,t,i,o,a,n,s,l,d,u){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=i,h.maxDate=o,h.isDateDisabled=u,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+s,t);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,t):n&&this._scrollToPosition(i-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=ve.debounce(this._debouncer,Ve.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Po(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,d,u,h)=>(l/=h/2,l<1?u/2*l*l+d:(l-=1,-u/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const u=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=u,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ss(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Ne(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Ne(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Dr(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Dr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{xo(this,()=>{Ao(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Is(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return yt(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3830
+ */const zm=r=>class extends r{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ms(this.$.scrollers,"pan-y"),Ie(this.$.scrollers,"track",this._track.bind(this)),Ie(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ie(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ie(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Do(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new me(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ie(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new me(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ie(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new me(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new me(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ie(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,a))}__updateCalendars(e,t,i,o,a,n,s,l,d,u){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=i,h.maxDate=o,h.isDateDisabled=u,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+s,t);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,t):n&&this._scrollToPosition(i-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=ge.debounce(this._debouncer,$e.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Ao(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,d,u,h)=>(l/=h/2,l<1?u/2*l*l+d:(l-=1,-u/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const u=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=u,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ds(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Fe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Or(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Or(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Co(this,()=>{To(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ss(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return Et(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3831
3831
  * @license
3832
3832
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3833
3833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3834
- */const Nm=g`
3834
+ */const Bm=g`
3835
3835
  :host {
3836
3836
  display: flex;
3837
3837
  flex-direction: column;
@@ -3895,7 +3895,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3895
3895
  * @license
3896
3896
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3897
3897
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3898
- */w("vaadin-date-picker-overlay-content",Nm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class zm extends Mm(Te($(ge(z)))){static get template(){return N`
3898
+ */w("vaadin-date-picker-overlay-content",Bm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Lm extends zm(Oe($(be(O)))){static get template(){return D`
3899
3899
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3900
3900
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3901
3901
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3915,32 +3915,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3915
3915
  <slot name="today-button"></slot>
3916
3916
  <slot name="cancel-button"></slot>
3917
3917
  </div>
3918
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}P(zm);/**
3918
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}A(Lm);/**
3919
3919
  * @license
3920
3920
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3921
3921
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3922
- */const fi=new WeakMap;function Bm(r){return fi.has(r)||fi.set(r,new Set),fi.get(r)}function Lm(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Bs=te(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Bm(e);this.slotStyles.forEach(i=>{t.has(i)||(Lm(i,e),t.add(i))})}});/**
3922
+ */const vi=new WeakMap;function Fm(r){return vi.has(r)||vi.set(r,new Set),vi.get(r)}function Rm(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Ls=ee(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Fm(e);this.slotStyles.forEach(i=>{t.has(i)||(Rm(i,e),t.add(i))})}});/**
3923
3923
  * @license
3924
3924
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3925
3925
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3926
- */const Fm=r=>class extends or(tt(r)){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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Vi||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3926
+ */const Vm=r=>class extends ar(at(r)){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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Hi||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3927
3927
  * @license
3928
3928
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3929
3929
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3930
- */const Do=te(r=>class extends _o(go(or(r))){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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
+ */const Oo=ee(r=>class extends fo(bo(ar(r))){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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3931
3931
  * @license
3932
3932
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3933
3933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3934
- */const Jr=r=>class extends Bs(Gr(Do(Kr(Fm(tt(r)))))){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[`
3934
+ */const Zr=r=>class extends Ls(Kr(Oo(Xr(Vm(at(r)))))){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[`
3935
3935
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3936
3936
  font: inherit;
3937
3937
  color: inherit;
3938
3938
  }
3939
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ve.debounce(this._preventInputDebouncer,Ve.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(t){console.error(t)}}};/**
3939
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ge.debounce(this._preventInputDebouncer,$e.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(t){console.error(t)}}};/**
3940
3940
  * @license
3941
3941
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3942
3942
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3943
- */const Rm=g`
3943
+ */const Hm=g`
3944
3944
  [part='clear-button'] {
3945
3945
  display: none;
3946
3946
  cursor: default;
@@ -3957,7 +3957,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3957
3957
  * @license
3958
3958
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3959
3959
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3960
- */const Ls=g`
3960
+ */const Fs=g`
3961
3961
  :host {
3962
3962
  display: inline-flex;
3963
3963
  outline: none;
@@ -3995,7 +3995,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3995
3995
  * @license
3996
3996
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3997
3997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3998
- */const Fs=g`
3998
+ */const Rs=g`
3999
3999
  [class$='container'] {
4000
4000
  display: flex;
4001
4001
  flex-direction: column;
@@ -4007,23 +4007,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4007
4007
  * @license
4008
4008
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4009
4009
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4010
- */const Zr=[Ls,Fs,Rm];/**
4010
+ */const ei=[Fs,Rs,Hm];/**
4011
4011
  * @license
4012
4012
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4013
4013
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4014
- */const dr=r=>class extends r{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const a=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));a.length>0&&i.remove(...a)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
4014
+ */const cr=r=>class extends r{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const a=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));a.length>0&&i.remove(...a)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
4015
4015
  * @license
4016
4016
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4017
4017
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4018
- */class Rs{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4018
+ */class Vs{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4019
4019
  * @license
4020
4020
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4021
4021
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4022
- */const Vm=r=>class extends dr(Te(Gr(Do(tt(r))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,a=i.getMonth(),n=i.getFullYear();if(t.length===3){if(a=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const s=this.referenceDate?Ft(this.referenceDate):new Date;n=am(s,n,a,o)}}else t.length===2?(a=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:a,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Co},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!jr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new So(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Rs(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=Ft(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Po(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||yt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,a,n){return!e||t&&(!n||a)||i&&a||!o.parseDate}_formatISO(e){return sm(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=Ft(e);if(e&&!i){this.value=t;return}e?Ne(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,a,n,s,l,d){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=a,e.focusedDate=n,e.selectedDate=s,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const a=this._noInput?e:[o,e];this.__showOthers=Es(a)}_getInitialPosition(){const e=Ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||yt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Is(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Ne(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ft(e)}};/**
4022
+ */const Um=r=>class extends cr(Oe(Kr(Oo(at(r))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,a=i.getMonth(),n=i.getFullYear();if(t.length===3){if(a=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const s=this.referenceDate?Rt(this.referenceDate):new Date;n=sm(s,n,a,o)}}else t.length===2?(a=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:a,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ko},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Gr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Do(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Vs(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=Rt(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ao(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Et(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,a,n){return!e||t&&(!n||a)||i&&a||!o.parseDate}_formatISO(e){return dm(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=Rt(e);if(e&&!i){this.value=t;return}e?Fe(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,a,n,s,l,d){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=a,e.focusedDate=n,e.selectedDate=s,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const a=this._noInput?e:[o,e];this.__showOthers=Ps(a)}_getInitialPosition(){const e=Rt(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Et(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Ss(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Rt(e)}};/**
4023
4023
  * @license
4024
4024
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4025
4025
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4026
- */const Hm=g`
4026
+ */const Wm=g`
4027
4027
  :host([opened]) {
4028
4028
  pointer-events: auto;
4029
4029
  }
@@ -4040,7 +4040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4040
4040
  * @license
4041
4041
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4042
4042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4043
- */w("vaadin-date-picker",[Zr,Hm],{moduleId:"vaadin-date-picker-styles"});class Um extends Vm(Jr($(be(z)))){static get is(){return"vaadin-date-picker"}static get template(){return N`
4043
+ */w("vaadin-date-picker",[ei,Wm],{moduleId:"vaadin-date-picker-styles"});class $m extends Um(Zr($(ye(O)))){static get is(){return"vaadin-date-picker"}static get template(){return D`
4044
4044
  <div class="vaadin-date-picker-container">
4045
4045
  <div part="label">
4046
4046
  <slot name="label"></slot>
@@ -4082,23 +4082,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4082
4082
  ></vaadin-date-picker-overlay>
4083
4083
 
4084
4084
  <slot name="tooltip"></slot>
4085
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ar(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new nr(this.inputElement,this._labelController)),this._tooltipController=new Be(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}P(Um);/**
4085
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new nr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new sr(this.inputElement,this._labelController)),this._tooltipController=new Ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}A($m);/**
4086
4086
  * @license
4087
4087
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4088
4088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4089
- */w("vaadin-text-field",it,{moduleId:"lumo-text-field-styles"});/**
4089
+ */w("vaadin-text-field",st,{moduleId:"lumo-text-field-styles"});/**
4090
4090
  * @license
4091
4091
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4092
4092
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4093
- */const $m=r=>class extends Jr(r){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4093
+ */const qm=r=>class extends Zr(r){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4094
4094
  * @license
4095
4095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4096
4096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4097
- */const Wm=r=>class extends $m(r){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ar(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new nr(this.inputElement,this._labelController))}};/**
4097
+ */const Ym=r=>class extends qm(r){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new nr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new sr(this.inputElement,this._labelController))}};/**
4098
4098
  * @license
4099
4099
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4100
4100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4101
- */w("vaadin-text-field",Zr,{moduleId:"vaadin-text-field-styles"});class Vs extends Wm($(be(z))){static get is(){return"vaadin-text-field"}static get template(){return N`
4101
+ */w("vaadin-text-field",ei,{moduleId:"vaadin-text-field-styles"});class Hs extends Ym($(ye(O))){static get is(){return"vaadin-text-field"}static get template(){return D`
4102
4102
  <div class="vaadin-field-container">
4103
4103
  <div part="label">
4104
4104
  <slot name="label"></slot>
@@ -4127,11 +4127,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4127
4127
  </div>
4128
4128
  </div>
4129
4129
  <slot name="tooltip"></slot>
4130
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Be(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}P(Vs);/**
4130
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Ve(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}A(Hs);/**
4131
4131
  * @license
4132
4132
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4133
4133
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4134
- */const qm=g`
4134
+ */const jm=g`
4135
4135
  :host {
4136
4136
  position: absolute;
4137
4137
  right: 0;
@@ -4144,11 +4144,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4144
4144
  background: transparent;
4145
4145
  outline: none;
4146
4146
  }
4147
- `;w("vaadin-password-field-button",[ws,qm],{moduleId:"lumo-password-field-button"});/**
4147
+ `;w("vaadin-password-field-button",[xs,jm],{moduleId:"lumo-password-field-button"});/**
4148
4148
  * @license
4149
4149
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4150
4150
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4151
- */const Ym=g`
4151
+ */const Gm=g`
4152
4152
  [part='reveal-button']::before {
4153
4153
  content: var(--lumo-icons-eye);
4154
4154
  }
@@ -4166,27 +4166,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4166
4166
  [part='reveal-button'][hidden] {
4167
4167
  display: none !important;
4168
4168
  }
4169
- `;w("vaadin-password-field",[it,Ym],{moduleId:"lumo-password-field"});/**
4169
+ `;w("vaadin-password-field",[st,Gm],{moduleId:"lumo-password-field"});/**
4170
4170
  * @license
4171
4171
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4172
4172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4173
- */w("vaadin-password-field-button",Ts,{moduleId:"vaadin-password-field-button-styles"});class jm extends Eo(ge($(z))){static get is(){return"vaadin-password-field-button"}static get template(){return N``}}P(jm);/**
4173
+ */w("vaadin-password-field-button",Is,{moduleId:"vaadin-password-field-button-styles"});class Km extends Po(be($(O))){static get is(){return"vaadin-password-field-button"}static get template(){return D``}}A(Km);/**
4174
4174
  * @license
4175
4175
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4176
4176
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4177
- */const Gm=r=>class extends Bs(Ct(rt(or(r)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4177
+ */const Xm=r=>class extends Ls(Tt(nt(ar(r)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4178
4178
  ${e} [slot="input"]::-ms-reveal {
4179
4179
  display: none;
4180
4180
  }
4181
- `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new ue(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4181
+ `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new me(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4182
4182
  * @license
4183
4183
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4184
4184
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4185
- */const Km=N`
4185
+ */const Qm=D`
4186
4186
  <div part="reveal-button" slot="suffix">
4187
4187
  <slot name="reveal"></slot>
4188
4188
  </div>
4189
- `;let wr;class Xm extends Gm(Vs){static get is(){return"vaadin-password-field"}static get template(){if(!wr){wr=super.template.cloneNode(!0);const e=Km.content.querySelector('[part="reveal-button"]');wr.content.querySelector('[part="input-field"]').appendChild(e)}return wr}}P(Xm);const ei=g`
4189
+ `;let xr;class Jm extends Xm(Hs){static get is(){return"vaadin-password-field"}static get template(){if(!xr){xr=super.template.cloneNode(!0);const e=Qm.content.querySelector('[part="reveal-button"]');xr.content.querySelector('[part="input-field"]').appendChild(e)}return xr}}A(Jm);const ti=g`
4190
4190
  :host {
4191
4191
  display: flex;
4192
4192
  align-items: center;
@@ -4270,7 +4270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4270
4270
  width: var(--lumo-icon-size-m);
4271
4271
  height: var(--lumo-icon-size-m);
4272
4272
  }
4273
- `;w("vaadin-item",ei,{moduleId:"lumo-item"});const Hs=g`
4273
+ `;w("vaadin-item",ti,{moduleId:"lumo-item"});const Us=g`
4274
4274
  :host {
4275
4275
  transition: background-color 100ms;
4276
4276
  overflow: hidden;
@@ -4282,11 +4282,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4282
4282
  :host([focused]:not([disabled])) {
4283
4283
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4284
4284
  }
4285
- `;w("vaadin-combo-box-item",[ei,Hs],{moduleId:"lumo-combo-box-item"});/**
4285
+ `;w("vaadin-combo-box-item",[ti,Us],{moduleId:"lumo-combo-box-item"});/**
4286
4286
  * @license
4287
4287
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4288
4288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4289
- */const Us=g`
4289
+ */const Ws=g`
4290
4290
  [part~='loader'] {
4291
4291
  box-sizing: border-box;
4292
4292
  width: var(--lumo-icon-size-s);
@@ -4349,7 +4349,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4349
4349
  :host([bottom-aligned]) [part~='overlay'] {
4350
4350
  margin-bottom: var(--lumo-space-xs);
4351
4351
  }
4352
- `,Ws=g`
4352
+ `,qs=g`
4353
4353
  [part~='loader'] {
4354
4354
  position: absolute;
4355
4355
  z-index: 1;
@@ -4357,24 +4357,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4357
4357
  top: var(--lumo-space-s);
4358
4358
  margin-inline: auto 0;
4359
4359
  }
4360
- `;w("vaadin-combo-box-overlay",[kt,Xr,$s,Us,Ws,g`
4360
+ `;w("vaadin-combo-box-overlay",[It,Qr,$s,Ws,qs,g`
4361
4361
  :host {
4362
4362
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4363
4363
  --_vaadin-combo-box-items-container-border-style: solid;
4364
4364
  }
4365
- `],{moduleId:"lumo-combo-box-overlay"});const Qm=g`
4365
+ `],{moduleId:"lumo-combo-box-overlay"});const Zm=g`
4366
4366
  [part='toggle-button']::before {
4367
4367
  content: var(--lumo-icons-dropdown);
4368
4368
  }
4369
- `;w("vaadin-combo-box",[it,Qm],{moduleId:"lumo-combo-box"});/**
4369
+ `;w("vaadin-combo-box",[st,Zm],{moduleId:"lumo-combo-box"});/**
4370
4370
  * @license
4371
4371
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4372
4372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4373
- */const qs=r=>class extends r{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(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4373
+ */const Ys=r=>class extends r{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(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4374
4374
  * @license
4375
4375
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4376
4376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4377
- */class Jm extends qs($(ge(z))){static get template(){return N`
4377
+ */class e_ extends Ys($(be(O))){static get template(){return D`
4378
4378
  <style>
4379
4379
  :host {
4380
4380
  display: block;
@@ -4388,15 +4388,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4388
4388
  <div part="content">
4389
4389
  <slot></slot>
4390
4390
  </div>
4391
- `}static get is(){return"vaadin-combo-box-item"}}P(Jm);/**
4391
+ `}static get is(){return"vaadin-combo-box-item"}}A(e_);/**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4394
4394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4395
- */const Ys=r=>class extends ko(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!po(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4395
+ */const js=r=>class extends Eo(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!mo(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4396
4396
  * @license
4397
4397
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4398
4398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4399
- */const Zm=g`
4399
+ */const t_=g`
4400
4400
  #overlay {
4401
4401
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4402
4402
  }
@@ -4406,17 +4406,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4406
4406
  flex-direction: column;
4407
4407
  height: 100%;
4408
4408
  }
4409
- `;w("vaadin-combo-box-overlay",[sr,Zm],{moduleId:"vaadin-combo-box-overlay-styles"});class e_ extends Ys(lr(ge($(z)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return N`
4409
+ `;w("vaadin-combo-box-overlay",[lr,t_],{moduleId:"vaadin-combo-box-overlay-styles"});class r_ extends js(dr(be($(O)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return D`
4410
4410
  <div id="backdrop" part="backdrop" hidden></div>
4411
4411
  <div part="overlay" id="overlay">
4412
4412
  <div part="loader"></div>
4413
4413
  <div part="content" id="content"><slot></slot></div>
4414
4414
  </div>
4415
- `}}P(e_);/**
4415
+ `}}A(r_);/**
4416
4416
  * @license
4417
4417
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4418
4418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4419
- */function Hr(r,e){return r.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4419
+ */function Ur(r,e){return r.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4420
4420
  * @license
4421
4421
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4422
4422
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -4424,23 +4424,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4424
4424
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4425
4425
  * Code distributed by Google as part of the polymer project is also
4426
4426
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4427
- */const qa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),t_=qa&&qa[1]>=8,Ya=3,r_={_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(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Fr)}},_getReusables(r){let e,t,i;const o=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const u=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,p=this._scrollBottom;for(r?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=u-p);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=a);)if(r){if(s+o.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;o.push(e),d+=i,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-i<=p)break;o.push(e),d-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const e=this._clamp(this._physicalCount+r,Ya,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)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()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),as):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Fr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Ya))},_itemsChanged(r){r.path==="items"&&(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,Zt))},_iterateItems(r,e){let t,i,o,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!t_&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Ht(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},Zt)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=ve.debounce(this._debouncers[r],t,e.bind(this)),ns(this._debouncers[r])}};/**
4427
+ */const Ya=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),i_=Ya&&Ya[1]>=8,ja=3,o_={_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(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Rr)}},_getReusables(r){let e,t,i;const o=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const u=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,p=this._scrollBottom;for(r?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=u-p);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=a);)if(r){if(s+o.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;o.push(e),d+=i,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-i<=p)break;o.push(e),d-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const e=this._clamp(this._physicalCount+r,ja,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)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()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),ns):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Rr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ja))},_itemsChanged(r){r.path==="items"&&(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,er))},_iterateItems(r,e){let t,i,o,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!i_&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Ut(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},er)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=ge.debounce(this._debouncers[r],t,e.bind(this)),ss(this._debouncers[r])}};/**
4428
4428
  * @license
4429
4429
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4430
4430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4431
- */const i_=1e5,vi=1e3;class js{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=n,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()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),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(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<vi?(i=e,this._vidxOffset=0):(i=vi,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ht(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Ht();let t=0,i=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return i+o+a+n+s}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ve.debounce(this.__placeholderClearDebouncer,Zt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,n)=>a+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Ht(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ht(),this._debounce("_update",this._update,Fr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,i_)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const a=this._physicalItems[i];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ve.debounce(this.__fixInvalidItemPositioningDebouncer,Ve.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ve.debounce(this.__scrollReorderDebouncer,Ve.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ve.debounce(this.__debouncerWheelAnimationFrame,Zt,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ve.debounce(this._debouncerIgnoreNewWheel,Ve.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,a=t.indexOf(i)-o;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Wp){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=vi,a=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(js.prototype,r_);class o_{constructor(e){this.__adapter=new js(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4431
+ */const a_=1e5,gi=1e3;class Gs{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=n,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()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),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(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<gi?(i=e,this._vidxOffset=0):(i=gi,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ut(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Ut();let t=0,i=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return i+o+a+n+s}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ge.debounce(this.__placeholderClearDebouncer,er,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,n)=>a+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Ut(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ut(),this._debounce("_update",this._update,Rr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,a_)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const a=this._physicalItems[i];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ge.debounce(this.__fixInvalidItemPositioningDebouncer,$e.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ge.debounce(this.__scrollReorderDebouncer,$e.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ge.debounce(this.__debouncerWheelAnimationFrame,er,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ge.debounce(this._debouncerIgnoreNewWheel,$e.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,a=t.indexOf(i)-o;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Yp){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=gi,a=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Gs.prototype,o_);class n_{constructor(e){this.__adapter=new Gs(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4432
4432
  * @license
4433
4433
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4434
4434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4435
- */const Ue=class{toString(){return""}};/**
4435
+ */const Ye=class{toString(){return""}};/**
4436
4436
  * @license
4437
4437
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4438
4438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4439
- */const Gs=r=>class extends r{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(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${ir()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const a=o.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,i){return e instanceof Ue?!1:i&&e!==void 0&&t!==void 0?Hr(i,e)===Hr(i,t):e===t}__initVirtualizer(){this.__virtualizer=new o_({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,a=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:a,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof Ue&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4439
+ */const Ks=r=>class extends r{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(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${or()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const a=o.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,i){return e instanceof Ye?!1:i&&e!==void 0&&t!==void 0?Ur(i,e)===Ur(i,t):e===t}__initVirtualizer(){this.__virtualizer=new n_({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,a=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:a,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof Ye&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4440
4440
  * @license
4441
4441
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4442
4442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4443
- */class a_ extends Gs(z){static get is(){return"vaadin-combo-box-scroller"}static get template(){return N`
4443
+ */class s_ extends Ks(O){static get is(){return"vaadin-combo-box-scroller"}static get template(){return D`
4444
4444
  <style>
4445
4445
  :host {
4446
4446
  display: block;
@@ -4467,39 +4467,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4467
4467
  <div id="selector">
4468
4468
  <slot></slot>
4469
4469
  </div>
4470
- `}}P(a_);/**
4470
+ `}}A(s_);/**
4471
4471
  * @license
4472
4472
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4473
4473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4474
- */const n_=r=>class extends Do(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4474
+ */const l_=r=>class extends Oo(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4475
4475
  * @license
4476
4476
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4477
4477
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4478
- */function Ur(r,e,t=0){let i=e;for(const o of r.subCaches){const a=o.parentCacheIndex;if(i<=a)break;if(i<=a+o.flatSize)return Ur(o,i-a-1,t+1);i-=o.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function Ks({getItemId:r},e,t,i=0,o=0){for(let a=0;a<e.items.length;a++){const n=e.items[a];if(n&&r(n)===r(t))return{cache:e,level:i,item:n,index:a,page:Math.floor(a/e.pageSize),subCache:e.getSubCache(a),flatIndex:o+e.getFlatIndex(a)}}for(const a of e.subCaches){const n=o+e.getFlatIndex(a.parentCacheIndex),s=Ks({getItemId:r},a,t,i+1,n+1);if(s)return s}}function Xs(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const o=r.getFlatIndex(e),a=r.getSubCache(e);return a&&a.flatSize>0&&t.length?Xs(a,t,i+o+1):i+o}/**
4478
+ */function Wr(r,e,t=0){let i=e;for(const o of r.subCaches){const a=o.parentCacheIndex;if(i<=a)break;if(i<=a+o.flatSize)return Wr(o,i-a-1,t+1);i-=o.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function Xs({getItemId:r},e,t,i=0,o=0){for(let a=0;a<e.items.length;a++){const n=e.items[a];if(n&&r(n)===r(t))return{cache:e,level:i,item:n,index:a,page:Math.floor(a/e.pageSize),subCache:e.getSubCache(a),flatIndex:o+e.getFlatIndex(a)}}for(const a of e.subCaches){const n=o+e.getFlatIndex(a.parentCacheIndex),s=Xs({getItemId:r},a,t,i+1,n+1);if(s)return s}}function Qs(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const o=r.getFlatIndex(e),a=r.getSubCache(e);return a&&a.flatSize>0&&t.length?Qs(a,t,i+o+1):i+o}/**
4479
4479
  * @license
4480
4480
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4481
4481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4482
- */class Oo{constructor(e,t,i,o,a){de(this,"context"),de(this,"pageSize"),de(this,"items",[]),de(this,"pendingRequests",{}),de(this,"__subCacheByIndex",{}),de(this,"__size",0),de(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=o,this.parentCacheIndex=a,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?!0:this.subCaches.some(e=>e.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(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((o,a)=>{const n=i+a;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Oo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,o)=>{const a=o.parentCacheIndex;return t>a?i+o.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Ur(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=Ur(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,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}}/**
4482
+ */class Mo{constructor(e,t,i,o,a){ce(this,"context"),ce(this,"pageSize"),ce(this,"items",[]),ce(this,"pendingRequests",{}),ce(this,"__subCacheByIndex",{}),ce(this,"__size",0),ce(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=o,this.parentCacheIndex=a,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?!0:this.subCaches.some(e=>e.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(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((o,a)=>{const n=i+a;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Mo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,o)=>{const a=o.parentCacheIndex;return t>a?i+o.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Wr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=Wr(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,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}}/**
4483
4483
  * @license
4484
4484
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4485
4485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4486
- */class s_ extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),de(this,"host"),de(this,"dataProvider"),de(this,"dataProviderParams"),de(this,"pageSize"),de(this,"isExpanded"),de(this,"getItemId"),de(this,"rootCache"),de(this,"placeholder"),de(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=a,this.isExpanded=o,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Ur(this.rootCache,e)}getItemContext(e){return Ks({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Xs(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const a=t.createSubCache(o);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Oo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=Sr(Sr({},i),this.dataProviderParams()));const o=(a,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:i.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4486
+ */class d_ extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),ce(this,"host"),ce(this,"dataProvider"),ce(this,"dataProviderParams"),ce(this,"pageSize"),ce(this,"isExpanded"),ce(this,"getItemId"),ce(this,"rootCache"),ce(this,"placeholder"),ce(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=a,this.isExpanded=o,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Wr(this.rootCache,e)}getItemContext(e){return Xs({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Qs(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const a=t.createSubCache(o);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Mo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=Dr(Dr({},i),this.dataProviderParams()));const o=(a,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:i.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4487
4487
  * @license
4488
4488
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4489
4489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4490
- */const Qs=r=>class extends r{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 s_(this,{placeholder:new Ue,isPlaceholder:e=>e instanceof Ue,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",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.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(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&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`")}}};/**
4490
+ */const Js=r=>class extends r{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 d_(this,{placeholder:new Ye,isPlaceholder:e=>e instanceof Ye,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",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.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(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&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`")}}};/**
4491
4491
  * @license
4492
4492
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4493
4493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4494
- */function ti(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4494
+ */function ri(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4495
4495
  * @license
4496
4496
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4497
4497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4498
- */function ja(r){return r!=null}function Ga(r,e){return r.findIndex(t=>t instanceof Ue?!1:e(t))}const Js=r=>class extends dr(Te(go(rt(tt(or(Ct(r))))))){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(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.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 e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),ti(this),this.addController(new Rs(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,a,n,s,l,d,u){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&mo(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!Vi&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Hr(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Hr(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.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 e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{Vi&&!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 e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(ja(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),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(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const a=this.__getItemIndexByValue(e,this._getItemValue(i));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!ja(t)?-1:Ga(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ga(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ue)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(jr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
+ */function Ga(r){return r!=null}function Ka(r,e){return r.findIndex(t=>t instanceof Ye?!1:e(t))}const Zs=r=>class extends cr(Oe(bo(nt(at(ar(Tt(r))))))){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(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.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 e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),ri(this),this.addController(new Vs(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,a,n,s,l,d,u){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&_o(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!Hi&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Ur(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Ur(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.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 e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{Hi&&!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 e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Ga(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),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(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const a=this.__getItemIndexByValue(e,this._getItemValue(i));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Ga(t)?-1:Ka(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ka(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ye)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Gr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4499
4499
  * @license
4500
4500
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */w("vaadin-combo-box",Zr,{moduleId:"vaadin-combo-box-styles"});class l_ extends Qs(Js(n_(Jr($(be(z)))))){static get is(){return"vaadin-combo-box"}static get template(){return N`
4502
+ */w("vaadin-combo-box",ei,{moduleId:"vaadin-combo-box-styles"});class c_ extends Js(Zs(l_(Zr($(ye(O)))))){static get is(){return"vaadin-combo-box"}static get template(){return D`
4503
4503
  <style>
4504
4504
  :host([opened]) {
4505
4505
  pointer-events: auto;
@@ -4544,11 +4544,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4544
4544
  ></vaadin-combo-box-overlay>
4545
4545
 
4546
4546
  <slot name="tooltip"></slot>
4547
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ar(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new nr(this.inputElement,this._labelController)),this._tooltipController=new Be(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}P(l_);/**
4547
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new nr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new sr(this.inputElement,this._labelController)),this._tooltipController=new Ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}A(c_);/**
4548
4548
  * @license
4549
4549
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4550
4550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4551
- */const d_=g`
4551
+ */const u_=g`
4552
4552
  :host {
4553
4553
  font-size: var(--lumo-font-size-xxs);
4554
4554
  line-height: 1;
@@ -4637,18 +4637,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4637
4637
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4638
4638
  pointer-events: none;
4639
4639
  }
4640
- `;w("vaadin-multi-select-combo-box-chip",[wo,d_],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4640
+ `;w("vaadin-multi-select-combo-box-chip",[xo,u_],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4641
4641
  * @license
4642
4642
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4643
4643
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4644
- */const c_=g`
4644
+ */const h_=g`
4645
4645
  @media (any-hover: hover) {
4646
4646
  :host(:hover[readonly]) {
4647
4647
  background-color: transparent;
4648
4648
  cursor: default;
4649
4649
  }
4650
4650
  }
4651
- `;w("vaadin-multi-select-combo-box-item",[ei,Hs,c_],{moduleId:"lumo-multi-select-combo-box-item"});w("vaadin-multi-select-combo-box-overlay",[kt,Xr,$s,Us,Ws,g`
4651
+ `;w("vaadin-multi-select-combo-box-item",[ti,Us,h_],{moduleId:"lumo-multi-select-combo-box-item"});w("vaadin-multi-select-combo-box-overlay",[It,Qr,$s,Ws,qs,g`
4652
4652
  :host {
4653
4653
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4654
4654
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4657,7 +4657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4657
4657
  :host([auto-expand-vertically]) {
4658
4658
  padding-block: var(--lumo-space-xs);
4659
4659
  }
4660
- `,{moduleId:"lumo-multi-select-combo-box-container"});const u_=g`
4660
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const p_=g`
4661
4661
  :host([has-value]) {
4662
4662
  padding-inline-start: 0;
4663
4663
  }
@@ -4710,11 +4710,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4710
4710
  color: var(--lumo-contrast-60pct);
4711
4711
  cursor: var(--lumo-clickable-cursor);
4712
4712
  }
4713
- `;w("vaadin-multi-select-combo-box",[it,u_],{moduleId:"lumo-multi-select-combo-box"});/**
4713
+ `;w("vaadin-multi-select-combo-box",[st,p_],{moduleId:"lumo-multi-select-combo-box"});/**
4714
4714
  * @license
4715
4715
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4716
4716
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4717
- */class h_ extends $(z){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return N`
4717
+ */class m_ extends $(O){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return D`
4718
4718
  <style>
4719
4719
  :host {
4720
4720
  display: inline-flex;
@@ -4743,7 +4743,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4743
4743
  </style>
4744
4744
  <div part="label">[[label]]</div>
4745
4745
  <div part="remove-button" on-click="_onRemoveClick"></div>
4746
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}P(h_);/**
4746
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}A(m_);/**
4747
4747
  * @license
4748
4748
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4749
4749
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4757,11 +4757,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4757
4757
  :host([auto-expand-vertically]) #wrapper {
4758
4758
  flex-wrap: wrap;
4759
4759
  }
4760
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let xr;class p_ extends xs{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!xr){xr=super.template.cloneNode(!0);const e=xr.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return xr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}P(p_);/**
4760
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Cr;class __ extends Cs{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Cr){Cr=super.template.cloneNode(!0);const e=Cr.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return Cr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}A(__);/**
4761
4761
  * @license
4762
4762
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4763
4763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4764
- */class m_ extends qs($(ge(z))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return N`
4764
+ */class f_ extends Ys($(be(O))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return D`
4765
4765
  <style>
4766
4766
  :host {
4767
4767
  display: block;
@@ -4775,11 +4775,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4775
4775
  <div part="content">
4776
4776
  <slot></slot>
4777
4777
  </div>
4778
- `}}P(m_);/**
4778
+ `}}A(f_);/**
4779
4779
  * @license
4780
4780
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4781
4781
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4782
- */const __=g`
4782
+ */const v_=g`
4783
4783
  #overlay {
4784
4784
  width: var(
4785
4785
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4792,17 +4792,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4792
4792
  flex-direction: column;
4793
4793
  height: 100%;
4794
4794
  }
4795
- `;w("vaadin-multi-select-combo-box-overlay",[sr,__],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class f_ extends Ys(lr(ge($(z)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return N`
4795
+ `;w("vaadin-multi-select-combo-box-overlay",[lr,v_],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class g_ extends js(dr(be($(O)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return D`
4796
4796
  <div id="backdrop" part="backdrop" hidden></div>
4797
4797
  <div part="overlay" id="overlay">
4798
4798
  <div part="loader"></div>
4799
4799
  <div part="content" id="content"><slot></slot></div>
4800
4800
  </div>
4801
- `}}P(f_);/**
4801
+ `}}A(g_);/**
4802
4802
  * @license
4803
4803
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4804
4804
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4805
- */class v_ extends Gs(z){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return N`
4805
+ */class b_ extends Ks(O){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return D`
4806
4806
  <style>
4807
4807
  :host {
4808
4808
  display: block;
@@ -4829,11 +4829,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4829
4829
  <div id="selector">
4830
4830
  <slot></slot>
4831
4831
  </div>
4832
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof Ue||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}P(v_);/**
4832
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof Ye||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}A(b_);/**
4833
4833
  * @license
4834
4834
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4835
4835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4836
- */class g_ extends Qs(Js($(z))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return N`
4836
+ */class y_ extends Js(Zs($(O))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return D`
4837
4837
  <style>
4838
4838
  :host([opened]) {
4839
4839
  pointer-events: auto;
@@ -4851,15 +4851,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4851
4851
  no-vertical-overlap
4852
4852
  restore-focus-node="[[inputElement]]"
4853
4853
  ></vaadin-multi-select-combo-box-overlay>
4854
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Ue||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}P(g_);/**
4854
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Ye||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}A(y_);/**
4855
4855
  * @license
4856
4856
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4857
4857
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4858
- */const Cr=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Zs=te(r=>class extends r{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Cr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Cr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Cr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Cr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
+ */const kr=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),el=ee(r=>class extends r{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),kr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,kr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),kr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&kr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4859
4859
  * @license
4860
4860
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4861
4861
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4862
- */const b_=g`
4862
+ */const w_=g`
4863
4863
  :host {
4864
4864
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4865
4865
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4897
4897
  :host([auto-expand-horizontally]) [class$='container'] {
4898
4898
  width: auto;
4899
4899
  }
4900
- `;w("vaadin-multi-select-combo-box",[Zr,b_],{moduleId:"vaadin-multi-select-combo-box-styles"});class y_ extends Zs(Jr($(be(z)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return N`
4900
+ `;w("vaadin-multi-select-combo-box",[ei,w_],{moduleId:"vaadin-multi-select-combo-box-styles"});class x_ extends el(Zr($(ye(O)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return D`
4901
4901
  <div class="vaadin-multi-select-combo-box-container">
4902
4902
  <div part="label">
4903
4903
  <slot name="label"></slot>
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4973
4973
  color: transparent !important;
4974
4974
  forced-color-adjust: none;
4975
4975
  }
4976
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new ar(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new nr(this.inputElement,this._labelController)),this._tooltipController=new Be(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ue(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),ti(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Pr(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",a=this.i18n.total.replace("{count}",i||0);Pr(`${e} ${this.i18n[o]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let a=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,u=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,u),u=h,n.unshift(h)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(a,o)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(s===null)l.style.maxWidth=`${Math.max(a,o)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,a)=>{o.toggleAttribute("focused",a===e)}),e>-1){const o=i[e].item,a=this._getItemLabel(o);Pr(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}P(y_);w("vaadin-notification-card",g`
4976
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new nr(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new sr(this.inputElement,this._labelController)),this._tooltipController=new Ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new me(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),ri(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Ar(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",a=this.i18n.total.replace("{count}",i||0);Ar(`${e} ${this.i18n[o]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let a=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,u=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,u),u=h,n.unshift(h)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(a,o)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(s===null)l.style.maxWidth=`${Math.max(a,o)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,a)=>{o.toggleAttribute("focused",a===e)}),e>-1){const o=i[e].item,a=this._getItemLabel(o);Ar(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}A(x_);w("vaadin-notification-card",g`
4977
4977
  :host {
4978
4978
  position: relative;
4979
4979
  margin: var(--lumo-space-s);
@@ -5191,11 +5191,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5191
5191
  * @license
5192
5192
  * Copyright 2020 Google LLC
5193
5193
  * SPDX-License-Identifier: BSD-3-Clause
5194
- */const w_=(r,e)=>(r==null?void 0:r._$litType$)!==void 0;/**
5194
+ */const C_=(r,e)=>(r==null?void 0:r._$litType$)!==void 0;/**
5195
5195
  * @license
5196
5196
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5197
5197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5198
- */class x_ extends As($(be(z))){static get template(){return N`
5198
+ */class k_ extends Ts($(ye(O))){static get template(){return D`
5199
5199
  <style>
5200
5200
  :host {
5201
5201
  position: fixed;
@@ -5262,7 +5262,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5262
5262
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5263
5263
  </div>
5264
5264
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5265
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Co&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class C_ extends $(z){static get template(){return N`
5265
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),ko&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class E_ extends $(O){static get template(){return D`
5266
5266
  <style>
5267
5267
  :host {
5268
5268
  display: block;
@@ -5284,14 +5284,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5284
5284
  <slot></slot>
5285
5285
  </div>
5286
5286
  </div>
5287
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Me extends dr(Wr(be(z))){static get template(){return N`
5287
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Le extends cr(qr(ye(O))){static get template(){return D`
5288
5288
  <style>
5289
5289
  :host {
5290
5290
  display: none !important;
5291
5291
  }
5292
5292
  </style>
5293
5293
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5294
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return w_(e)?Me._createAndShowNotification(i=>{En(e,i)},t):Me._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(Me.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return Me._container||(Me._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Me._container)),Me._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),ti(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}P(x_);P(C_);P(Me);const el=g`
5294
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return C_(e)?Le._createAndShowNotification(i=>{Pn(e,i)},t):Le._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(Le.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return Le._container||(Le._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Le._container)),Le._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),ri(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}A(k_);A(E_);A(Le);const tl=g`
5295
5295
  :host {
5296
5296
  -webkit-tap-highlight-color: transparent;
5297
5297
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5305,11 +5305,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5305
5305
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5306
5306
  background-color: var(--lumo-contrast-10pct);
5307
5307
  }
5308
- `;w("vaadin-list-box",el,{moduleId:"lumo-list-box"});/**
5308
+ `;w("vaadin-list-box",tl,{moduleId:"lumo-list-box"});/**
5309
5309
  * @license
5310
5310
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5311
5311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5312
- */w("vaadin-select-item",ei,{moduleId:"lumo-select-item"});w("vaadin-select-list-box",el,{moduleId:"lumo-select-list-box"});const k_=g`
5312
+ */w("vaadin-select-item",ti,{moduleId:"lumo-select-item"});w("vaadin-select-list-box",tl,{moduleId:"lumo-select-list-box"});const P_=g`
5313
5313
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5314
5314
  text-align: start;
5315
5315
  }
@@ -5352,7 +5352,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5352
5352
  --_lumo-selected-item-height: var(--lumo-size-s);
5353
5353
  --_lumo-selected-item-padding: 0;
5354
5354
  }
5355
- `;w("vaadin-select",[it,k_],{moduleId:"lumo-select"});w("vaadin-select-value-button",g`
5355
+ `;w("vaadin-select",[st,P_],{moduleId:"lumo-select"});w("vaadin-select-value-button",g`
5356
5356
  :host {
5357
5357
  font-family: var(--lumo-font-family);
5358
5358
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5371,7 +5371,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5371
5371
  ::slotted(*:hover) {
5372
5372
  background-color: transparent;
5373
5373
  }
5374
- `,{moduleId:"lumo-select-value-button"});const E_=g`
5374
+ `,{moduleId:"lumo-select-value-button"});const A_=g`
5375
5375
  :host {
5376
5376
  --_lumo-item-selected-icon-display: block;
5377
5377
  }
@@ -5407,15 +5407,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5407
5407
  :host([theme~='align-center']) {
5408
5408
  text-align: center;
5409
5409
  }
5410
- `;w("vaadin-select-overlay",[yo,E_],{moduleId:"lumo-select-overlay"});/**
5410
+ `;w("vaadin-select-overlay",[wo,A_],{moduleId:"lumo-select-overlay"});/**
5411
5411
  * @license
5412
5412
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5413
5413
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5414
- */const tl=r=>class extends uo(rt(r)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5414
+ */const rl=r=>class extends ho(nt(r)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5415
5415
  * @license
5416
5416
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5417
5417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5418
- */class P_ extends tl($(ge(z))){static get is(){return"vaadin-select-item"}static get template(){return N`
5418
+ */class T_ extends rl($(be(O))){static get is(){return"vaadin-select-item"}static get template(){return D`
5419
5419
  <style>
5420
5420
  :host {
5421
5421
  display: inline-block;
@@ -5429,23 +5429,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5429
5429
  <div part="content">
5430
5430
  <slot></slot>
5431
5431
  </div>
5432
- `}ready(){super.ready(),this.setAttribute("role","option")}}P(P_);/**
5432
+ `}ready(){super.ready(),this.setAttribute("role","option")}}A(T_);/**
5433
5433
  * @license
5434
5434
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5435
5435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5436
- */function rl(r,e){const{scrollLeft:t}=r;return e!=="rtl"?t:r.scrollWidth-r.clientWidth+t}function A_(r,e,t){e!=="rtl"?r.scrollLeft=t:r.scrollLeft=r.clientWidth-r.scrollWidth+t}/**
5436
+ */function il(r,e){const{scrollLeft:t}=r;return e!=="rtl"?t:r.scrollWidth-r.clientWidth+t}function I_(r,e,t){e!=="rtl"?r.scrollLeft=t:r.scrollLeft=r.clientWidth-r.scrollWidth+t}/**
5437
5437
  * @license
5438
5438
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5439
5439
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5440
- */const T_=r=>class extends tt(r){get focused(){return(this._getItems()||[]).find(mo)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!Li(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let a,n;const s=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-s,a=o-s):this.__isNextKey(t)?(n=s,a=o+s):t==="Home"?(n=1,a=0):t==="End"&&(n=-1,a=i.length-1),a=this._getAvailableIndex(i,a,n,l=>!Li(l)),a>=0&&(e.preventDefault(),this._focus(a,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const a=e.length;let n=t;for(let s=0;typeof n=="number"&&s<a;s+=1,n+=i||1){n<0?n=a-1:n>=a&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5440
+ */const S_=r=>class extends at(r){get focused(){return(this._getItems()||[]).find(_o)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!Fi(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let a,n;const s=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-s,a=o-s):this.__isNextKey(t)?(n=s,a=o+s):t==="Home"?(n=1,a=0):t==="End"&&(n=-1,a=i.length-1),a=this._getAvailableIndex(i,a,n,l=>!Fi(l)),a>=0&&(e.preventDefault(),this._focus(a,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const a=e.length;let n=t;for(let s=0;typeof n=="number"&&s<a;s+=1,n+=i||1){n<0?n=a-1:n>=a&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5441
5441
  * @license
5442
5442
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5443
5443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5444
- */const il=r=>class extends T_(r){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!Li(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new no(e,()=>{this._setItems(this._filterItems(ss(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const a=e[i];e.forEach(n=>{n.selected=n===a}),a&&!a.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=ve.debounce(this._searchReset,Ve.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),a=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&a[i[1]]>=o[i[1]]||this._isRTL&&a[i[1]]<=o[i[1]]?s=a[i[1]]-o[i[1]]:(!this._isRTL&&n[i[0]]<=o[i[0]]||this._isRTL&&n[i[0]]>=o[i[0]])&&(s=n[i[0]]-o[i[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=rl(this._scrollerElement,t)+e;A_(this._scrollerElement,t,i)}}};/**
5444
+ */const ol=r=>class extends S_(r){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!Fi(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new so(e,()=>{this._setItems(this._filterItems(ls(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const a=e[i];e.forEach(n=>{n.selected=n===a}),a&&!a.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=ge.debounce(this._searchReset,$e.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),a=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&a[i[1]]>=o[i[1]]||this._isRTL&&a[i[1]]<=o[i[1]]?s=a[i[1]]-o[i[1]]:(!this._isRTL&&n[i[0]]<=o[i[0]]||this._isRTL&&n[i[0]]>=o[i[0]])&&(s=n[i[0]]-o[i[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=il(this._scrollerElement,t)+e;I_(this._scrollerElement,t,i)}}};/**
5445
5445
  * @license
5446
5446
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5447
5447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5448
- */class I_ extends il($(ge(Te(z)))){static get is(){return"vaadin-select-list-box"}static get template(){return N`
5448
+ */class D_ extends ol($(be(Oe(O)))){static get is(){return"vaadin-select-list-box"}static get template(){return D`
5449
5449
  <style>
5450
5450
  :host {
5451
5451
  display: flex;
@@ -5465,15 +5465,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5465
5465
  <div part="items">
5466
5466
  <slot></slot>
5467
5467
  </div>
5468
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}P(I_);/**
5468
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}A(D_);/**
5469
5469
  * @license
5470
5470
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5471
5471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5472
- */const S_=r=>class extends ko(lr(ge(r))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5472
+ */const O_=r=>class extends Eo(dr(be(r))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5473
5473
  * @license
5474
5474
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5475
5475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5476
- */const D_=g`
5476
+ */const M_=g`
5477
5477
  :host {
5478
5478
  align-items: flex-start;
5479
5479
  justify-content: flex-start;
@@ -5488,18 +5488,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5488
5488
  outline: 3px solid;
5489
5489
  }
5490
5490
  }
5491
- `;w("vaadin-select-overlay",[sr,D_],{moduleId:"vaadin-select-overlay-styles"});class O_ extends S_($(z)){static get is(){return"vaadin-select-overlay"}static get template(){return N`
5491
+ `;w("vaadin-select-overlay",[lr,M_],{moduleId:"vaadin-select-overlay-styles"});class N_ extends O_($(O)){static get is(){return"vaadin-select-overlay"}static get template(){return D`
5492
5492
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5493
5493
  <div part="overlay" id="overlay" tabindex="0">
5494
5494
  <div part="content" id="content">
5495
5495
  <slot></slot>
5496
5496
  </div>
5497
5497
  </div>
5498
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}P(O_);/**
5498
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}A(N_);/**
5499
5499
  * @license
5500
5500
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5501
5501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5502
- */const M_=g`
5502
+ */const z_=g`
5503
5503
  :host {
5504
5504
  display: inline-block;
5505
5505
  position: relative;
@@ -5545,17 +5545,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5545
5545
  * @license
5546
5546
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5547
5547
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5548
- */w("vaadin-select-value-button",M_,{moduleId:"vaadin-select-value-button-styles"});class N_ extends Eo($(z)){static get is(){return"vaadin-select-value-button"}static get template(){return N`
5548
+ */w("vaadin-select-value-button",z_,{moduleId:"vaadin-select-value-button-styles"});class B_ extends Po($(O)){static get is(){return"vaadin-select-value-button"}static get template(){return D`
5549
5549
  <div class="vaadin-button-container">
5550
5550
  <span part="label">
5551
5551
  <slot></slot>
5552
5552
  </span>
5553
5553
  </div>
5554
- `}}P(N_);/**
5554
+ `}}A(B_);/**
5555
5555
  * @license
5556
5556
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5557
5557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5558
- */const z_=g`
5558
+ */const L_=g`
5559
5559
  .sr-only {
5560
5560
  border: 0 !important;
5561
5561
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5573,15 +5573,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5573
5573
  * @license
5574
5574
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5575
5575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5576
- */class B_ extends ue{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5576
+ */class F_ extends me{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5577
5577
  * @license
5578
5578
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5579
5579
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5580
- */const L_=r=>class extends dr(Gr(_o(tt(Kr(r))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${ir()}`,this._srLabelController=new bs(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new B_(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new So(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Be(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};_t(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,a,n)=>o===void 0&&a.value===i?n:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return Dr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5580
+ */const R_=r=>class extends cr(Kr(fo(at(Xr(r))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${or()}`,this._srLabelController=new ys(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new F_(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Do(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Ve(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};yt(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,a,n)=>o===void 0&&a.value===i?n:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return Or(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5581
5581
  * @license
5582
5582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5583
5583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5584
- */w("vaadin-select",[Ls,Fs,z_],{moduleId:"vaadin-select-styles"});class F_ extends L_(be($(z))){static get is(){return"vaadin-select"}static get template(){return N`
5584
+ */w("vaadin-select",[Fs,Rs,L_],{moduleId:"vaadin-select-styles"});class V_ extends R_(ye($(O))){static get is(){return"vaadin-select"}static get template(){return D`
5585
5585
  <style>
5586
5586
  :host {
5587
5587
  position: relative;
@@ -5634,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5634
5634
  <div class="sr-only">
5635
5635
  <slot name="sr-label"></slot>
5636
5636
  </div>
5637
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),ti(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}P(F_);const ol=g`
5637
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),ri(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}A(V_);const al=g`
5638
5638
  /* Optical centering */
5639
5639
  :host::before,
5640
5640
  :host::after {
@@ -5734,7 +5734,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5734
5734
  transform: scale(1.02);
5735
5735
  }
5736
5736
  }
5737
- `;w("vaadin-dialog-overlay",[kt,ol],{moduleId:"lumo-dialog"});w("vaadin-confirm-dialog-overlay",[kt,ol,g`
5737
+ `;w("vaadin-dialog-overlay",[It,al],{moduleId:"lumo-dialog"});w("vaadin-confirm-dialog-overlay",[It,al,g`
5738
5738
  [part='header'] ::slotted(h3) {
5739
5739
  margin-top: 0 !important;
5740
5740
  margin-bottom: 0 !important;
@@ -5773,11 +5773,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5773
5773
  * @license
5774
5774
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5775
5775
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5776
- */const R_=r=>class extends r{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5776
+ */const H_=r=>class extends r{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5777
5777
  * @license
5778
5778
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5779
5779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5780
- */const V_=g`
5780
+ */const U_=g`
5781
5781
  [part='header'],
5782
5782
  [part='header-content'],
5783
5783
  [part='footer'] {
@@ -5952,11 +5952,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5952
5952
  * @license
5953
5953
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5954
5954
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5955
- */const H_=r=>class extends r{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,i){const o=`--_vaadin-confirm-dialog-content-${t}`;i?e.style.setProperty(o,i):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5955
+ */const W_=r=>class extends r{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,i){const o=`--_vaadin-confirm-dialog-content-${t}`;i?e.style.setProperty(o,i):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5956
5956
  * @license
5957
5957
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5958
5958
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5959
- */const U_=g`
5959
+ */const $_=g`
5960
5960
  :host {
5961
5961
  --_vaadin-confirm-dialog-content-width: auto;
5962
5962
  --_vaadin-confirm-dialog-content-height: auto;
@@ -5979,7 +5979,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5979
5979
  * @license
5980
5980
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5981
5981
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5982
- */w("vaadin-confirm-dialog-overlay",[sr,V_,U_],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class $_ extends lr(ge($(z))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return N`
5982
+ */w("vaadin-confirm-dialog-overlay",[lr,U_,$_],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class q_ extends dr(be($(O))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return D`
5983
5983
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
5984
5984
  <div part="overlay" id="overlay" tabindex="0">
5985
5985
  <section id="resizerContainer" class="resizer-container">
@@ -6000,7 +6000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6000
6000
  </footer>
6001
6001
  </section>
6002
6002
  </div>
6003
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}P($_);class W_ extends H_(R_(dr(Wr(z)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return N`
6003
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}A(q_);class Y_ extends W_(H_(cr(qr(O)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return D`
6004
6004
  <style>
6005
6005
  :host {
6006
6006
  display: none;
@@ -6021,15 +6021,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6021
6021
  restore-focus-on-close
6022
6022
  focus-trap
6023
6023
  ></vaadin-confirm-dialog-overlay>
6024
- `}}P(W_);/**
6024
+ `}}A(Y_);/**
6025
6025
  * @license
6026
6026
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6027
6027
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6028
- */const q_=r=>class extends r{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new ue(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new ue(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const i=`confirm-dialog-message-${ir()}`;t.id=i,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new ue(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new ue(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new ue(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(i=>{e.appendChild(i)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,i){!e||!t||(i!==void 0?_t(e,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{_t(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(e,t){const i=`_${e}Button`,o=`__${e}`;this[i]&&this[i]!==t&&this[i].remove(),t.addEventListener("click",this[o]),this[i]=t}__updateCancelButton(e,t,i,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,i){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const i=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);i&&(i.firstChild.textContent=t)}}__updateRejectButton(e,t,i,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6028
+ */const j_=r=>class extends r{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new me(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new me(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const i=`confirm-dialog-message-${or()}`;t.id=i,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new me(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new me(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new me(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(i=>{e.appendChild(i)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,i){!e||!t||(i!==void 0?yt(e,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{yt(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(e,t){const i=`_${e}Button`,o=`__${e}`;this[i]&&this[i]!==t&&this[i].remove(),t.addEventListener("click",this[o]),this[i]=t}__updateCancelButton(e,t,i,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,i){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const i=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);i&&(i.firstChild.textContent=t)}}__updateRejectButton(e,t,i,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",i)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6029
6029
  * @license
6030
6030
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6031
6031
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6032
- */class Y_ extends q_(be(Wr(Te(z)))){static get template(){return N`
6032
+ */class G_ extends j_(ye(qr(Oe(O)))){static get template(){return D`
6033
6033
  <style>
6034
6034
  :host,
6035
6035
  [hidden] {
@@ -6056,7 +6056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6056
6056
  <slot name="reject-button"></slot>
6057
6057
  <slot name="confirm-button"></slot>
6058
6058
  </div>
6059
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}P(Y_);w("vaadin-tab",g`
6059
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}A(G_);w("vaadin-tab",g`
6060
6060
  :host {
6061
6061
  box-sizing: border-box;
6062
6062
  padding: 0.5rem 0.75rem;
@@ -6293,11 +6293,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6293
6293
  * @license
6294
6294
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6295
6295
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6296
- */const j_=r=>class extends tl(r){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const i=this.querySelector("a");i&&i.click()}}};/**
6296
+ */const K_=r=>class extends rl(r){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const i=this.querySelector("a");i&&i.click()}}};/**
6297
6297
  * @license
6298
6298
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6299
6299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6300
- */const G_=g`
6300
+ */const X_=g`
6301
6301
  :host {
6302
6302
  display: block;
6303
6303
  }
@@ -6320,10 +6320,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6320
6320
  * @license
6321
6321
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6322
6322
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6323
- */w("vaadin-tab",G_,{moduleId:"vaadin-tab-styles"});class K_ extends be($(j_(Te(z)))){static get template(){return N`
6323
+ */w("vaadin-tab",X_,{moduleId:"vaadin-tab-styles"});class Q_ extends ye($(K_(Oe(O)))){static get template(){return D`
6324
6324
  <slot></slot>
6325
6325
  <slot name="tooltip"></slot>
6326
- `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Be(this),this.addController(this._tooltipController)}}P(K_);w("vaadin-tabs",g`
6326
+ `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Ve(this),this.addController(this._tooltipController)}}A(Q_);w("vaadin-tabs",g`
6327
6327
  :host {
6328
6328
  -webkit-tap-highlight-color: transparent;
6329
6329
  }
@@ -6565,11 +6565,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6565
6565
  * @license
6566
6566
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6567
6567
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6568
- */const X_=r=>class extends Zs(il(r)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),xo(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,i)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=i.right-a;n=o.right-s}else{const s=i.left+a;n=o.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-a)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=this.items.find(s=>this._isItemVisible(s,e,t,i)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=i.left+a;n=o.left-s}else{const s=i.right-a;n=o.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-a)),this._scroll(n)}_isItemVisible(e,t,i,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const a=this.__isRTL?i:t,n=this.__isRTL?t:i,s=o.right-a,l=o.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:rl(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(i+=" end"),this.__direction===1&&(i=i.replace(/start|end/giu,o=>o==="start"?"end":"start")),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}};/**
6568
+ */const J_=r=>class extends el(ol(r)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Co(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,i)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=i.right-a;n=o.right-s}else{const s=i.left+a;n=o.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-a)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=this.items.find(s=>this._isItemVisible(s,e,t,i)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=i.left+a;n=o.left-s}else{const s=i.right-a;n=o.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-a)),this._scroll(n)}_isItemVisible(e,t,i,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const a=this.__isRTL?i:t,n=this.__isRTL?t:i,s=o.right-a,l=o.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:il(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(i+=" end"),this.__direction===1&&(i=i.replace(/start|end/giu,o=>o==="start"?"end":"start")),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}};/**
6569
6569
  * @license
6570
6570
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6571
6571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6572
- */const Q_=g`
6572
+ */const Z_=g`
6573
6573
  :host {
6574
6574
  display: flex;
6575
6575
  align-items: center;
@@ -6649,7 +6649,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6649
6649
  * @license
6650
6650
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6651
6651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6652
- */w("vaadin-tabs",Q_,{moduleId:"vaadin-tabs-styles"});class J_ extends X_(be($(z))){static get template(){return N`
6652
+ */w("vaadin-tabs",Z_,{moduleId:"vaadin-tabs-styles"});class ef extends J_(ye($(O))){static get template(){return D`
6653
6653
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6654
6654
 
6655
6655
  <div id="scroll" part="tabs">
@@ -6657,7 +6657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6657
6657
  </div>
6658
6658
 
6659
6659
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6660
- `}static get is(){return"vaadin-tabs"}}P(J_);function Z_(r){c.append_styles(r,"svelte-bp2unp",'.BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast,.BonusesPaginationWrapper .BonusesPage{all:unset;box-sizing:border-box;cursor:pointer}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700);cursor:default}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Ka(r,e,t){const i=r.slice();return i[57]=e[t],i[59]=t,i}function Xa(r,e,t){const i=r.slice();return i[60]=e[t],i}function ef(r){let e,t,i,o,a,n,s,l,d,u,h=r[24]("titleBonusesHistory")+"",p,m,_;return{c(){e=c.element("div"),t=c.svg_element("svg"),i=c.svg_element("defs"),o=c.svg_element("style"),a=c.text(`.aaa {
6660
+ `}static get is(){return"vaadin-tabs"}}A(ef);function tf(r){c.append_styles(r,"svelte-1b65dt8",'.BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center;white-space:nowrap}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile .BonusesFirst,.BonusesPaginationWrapper.BonusesPaginationWrapperMobile .BonusesPrev,.BonusesPaginationWrapper.BonusesPaginationWrapperMobile .BonusesNext,.BonusesPaginationWrapper.BonusesPaginationWrapperMobile .BonusesLast,.BonusesPaginationWrapper.BonusesPaginationWrapperMobile .BonusesPage{padding:5px 6px}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile .BonusesPage{margin:0}.BonusesPaginationWrapper .BonusesEllipsis{color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px)}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast,.BonusesPaginationWrapper .BonusesPage{all:unset;box-sizing:border-box;cursor:pointer}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700);cursor:default}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Xa(r,e,t){const i=r.slice();return i[59]=e[t],i}function Qa(r,e,t){const i=r.slice();return i[62]=e[t],i}function rf(r){let e,t,i,o,a,n,s,l,d,u,h=r[25]("titleBonusesHistory")+"",p,m,_;return{c(){e=c.element("div"),t=c.svg_element("svg"),i=c.svg_element("defs"),o=c.svg_element("style"),a=c.text(`.aaa {
6661
6661
  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
6662
6662
  }
6663
- `),n=c.svg_element("g"),s=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(s,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(t,"xmlns","http://www.w3.org/2000/svg"),c.attr(t,"width","15"),c.attr(t,"height","15"),c.attr(t,"viewBox","0 0 15 15"),c.attr(u,"class","BonusesTitleMobile"),c.attr(e,"class","MenuReturnButton")},m(f,x){c.insert(f,e,x),c.append(e,t),c.append(t,i),c.append(i,o),c.append(o,a),c.append(t,n),c.append(n,s),c.append(s,l),c.append(e,d),c.append(e,u),c.append(u,p),m||(_=c.listen(e,"click",r[35]),m=!0)},p(f,x){x[0]&16777216&&h!==(h=f[24]("titleBonusesHistory")+"")&&c.set_data(p,h)},d(f){f&&c.detach(e),m=!1,_()}}}function tf(r){let e,t,i;function o(l,d){return l[23].length===0?af:of}let a=o(r),n=a(r),s=r[23].length!==0&&Ja(r);return{c(){e=c.element("div"),n.c(),t=c.space(),s&&s.c(),i=c.empty(),c.attr(e,"class","BonusesGrid "+(r[25]?"BonusesGridMobile":""))},m(l,d){c.insert(l,e,d),n.m(e,null),c.insert(l,t,d),s&&s.m(l,d),c.insert(l,i,d)},p(l,d){a===(a=o(l))&&n?n.p(l,d):(n.d(1),n=a(l),n&&(n.c(),n.m(e,null))),l[23].length!==0?s?s.p(l,d):(s=Ja(l),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(l){l&&(c.detach(e),c.detach(t),c.detach(i)),n.d(),s&&s.d(l)}}}function rf(r){let e;return{c(){e=c.element("div"),c.attr(e,"class","ModalLoader")},m(t,i){c.insert(t,e,i)},p:c.noop,d(t){t&&c.detach(e)}}}function of(r){let e,t=c.ensure_array_like(r[23]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Qa(Xa(r,t,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=c.empty()},m(o,a){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(o,a);c.insert(o,e,a)},p(o,a){if(a[0]&8389535){t=c.ensure_array_like(o[23]);let n;for(n=0;n<t.length;n+=1){const s=Xa(o,t,n);i[n]?i[n].p(s,a):(i[n]=Qa(s),i[n].c(),i[n].m(e.parentNode,e))}for(;n<i.length;n+=1)i[n].d(1);i.length=t.length}},d(o){o&&c.detach(e),c.destroy_each(i,o)}}}function af(r){let e,t=r[24]("noBonusHistory")+"",i;return{c(){e=c.element("p"),i=c.text(t)},m(o,a){c.insert(o,e,a),c.append(e,i)},p(o,a){a[0]&16777216&&t!==(t=o[24]("noBonusHistory")+"")&&c.set_data(i,t)},d(o){o&&c.detach(e)}}}function nf(r){let e,t,i,o,a,n,s,l,d,u,h,p,m;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",t=r[60].termsandconditionsdescription),c.set_custom_element_data(e,"termsandconditionsurl",i=r[60].termsandconditionsurl),c.set_custom_element_data(e,"termsandconditionsasset",o=r[60].termsandconditionsasset),c.set_custom_element_data(e,"bonuswalletid",a=r[60].walletId),c.set_custom_element_data(e,"bonusdate",n=r[60].granted),c.set_custom_element_data(e,"bonusstatus",s=r[60].status),c.set_custom_element_data(e,"bonusname",l=r[60].name),c.set_custom_element_data(e,"bonustype",d=r[60].type),c.set_custom_element_data(e,"bonusamount",u=r[60].extension.grantedPlayerCurrencyAmount),c.set_custom_element_data(e,"bonuswageringamount",h=`${r[60].fulfilledWR} / ${r[60].originalWageringRequirement}`),c.set_custom_element_data(e,"bonusremainingamount",p=r[60].currentAmount),c.set_custom_element_data(e,"bonuscurrency",m=r[60].currency),c.set_custom_element_data(e,"lang",r[0]),c.set_custom_element_data(e,"clientstyling",r[1]),c.set_custom_element_data(e,"clientstylingurl",r[2]),c.set_custom_element_data(e,"mbsource",r[3]),c.set_custom_element_data(e,"translationurl",r[4]),c.set_custom_element_data(e,"currencylocale",r[7]),c.set_custom_element_data(e,"dateformat",r[8]),c.set_custom_element_data(e,"filterbonusbalance",r[9])},m(_,f){c.insert(_,e,f)},p(_,f){f[0]&8388608&&t!==(t=_[60].termsandconditionsdescription)&&c.set_custom_element_data(e,"termsandconditionsdescription",t),f[0]&8388608&&i!==(i=_[60].termsandconditionsurl)&&c.set_custom_element_data(e,"termsandconditionsurl",i),f[0]&8388608&&o!==(o=_[60].termsandconditionsasset)&&c.set_custom_element_data(e,"termsandconditionsasset",o),f[0]&8388608&&a!==(a=_[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",a),f[0]&8388608&&n!==(n=_[60].granted)&&c.set_custom_element_data(e,"bonusdate",n),f[0]&8388608&&s!==(s=_[60].status)&&c.set_custom_element_data(e,"bonusstatus",s),f[0]&8388608&&l!==(l=_[60].name)&&c.set_custom_element_data(e,"bonusname",l),f[0]&8388608&&d!==(d=_[60].type)&&c.set_custom_element_data(e,"bonustype",d),f[0]&8388608&&u!==(u=_[60].extension.grantedPlayerCurrencyAmount)&&c.set_custom_element_data(e,"bonusamount",u),f[0]&8388608&&h!==(h=`${_[60].fulfilledWR} / ${_[60].originalWageringRequirement}`)&&c.set_custom_element_data(e,"bonuswageringamount",h),f[0]&8388608&&p!==(p=_[60].currentAmount)&&c.set_custom_element_data(e,"bonusremainingamount",p),f[0]&8388608&&m!==(m=_[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",m),f[0]&1&&c.set_custom_element_data(e,"lang",_[0]),f[0]&2&&c.set_custom_element_data(e,"clientstyling",_[1]),f[0]&4&&c.set_custom_element_data(e,"clientstylingurl",_[2]),f[0]&8&&c.set_custom_element_data(e,"mbsource",_[3]),f[0]&16&&c.set_custom_element_data(e,"translationurl",_[4]),f[0]&128&&c.set_custom_element_data(e,"currencylocale",_[7]),f[0]&256&&c.set_custom_element_data(e,"dateformat",_[8]),f[0]&512&&c.set_custom_element_data(e,"filterbonusbalance",_[9])},d(_){_&&c.detach(e)}}}function sf(r){let e,t,i,o,a,n,s,l,d,u;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",t=r[60].termsandconditionsdescription),c.set_custom_element_data(e,"termsandconditionsurl",i=r[60].termsandconditionsurl),c.set_custom_element_data(e,"termsandconditionsasset",o=r[60].termsandconditionsasset),c.set_custom_element_data(e,"bonuswalletid",a=r[60].walletId),c.set_custom_element_data(e,"bonusdate",n=r[60].granted),c.set_custom_element_data(e,"bonusstatus",s=r[60].status),c.set_custom_element_data(e,"bonusname",l=r[60].name),c.set_custom_element_data(e,"bonustype",d=r[60].type),c.set_custom_element_data(e,"bonuscurrency",u=r[60].currency),c.set_custom_element_data(e,"lang",r[0]),c.set_custom_element_data(e,"clientstyling",r[1]),c.set_custom_element_data(e,"clientstylingurl",r[2]),c.set_custom_element_data(e,"mbsource",r[3]),c.set_custom_element_data(e,"translationurl",r[4]),c.set_custom_element_data(e,"currencylocale",r[7]),c.set_custom_element_data(e,"dateformat",r[8]),c.set_custom_element_data(e,"filterbonusbalance",r[9])},m(h,p){c.insert(h,e,p)},p(h,p){p[0]&8388608&&t!==(t=h[60].termsandconditionsdescription)&&c.set_custom_element_data(e,"termsandconditionsdescription",t),p[0]&8388608&&i!==(i=h[60].termsandconditionsurl)&&c.set_custom_element_data(e,"termsandconditionsurl",i),p[0]&8388608&&o!==(o=h[60].termsandconditionsasset)&&c.set_custom_element_data(e,"termsandconditionsasset",o),p[0]&8388608&&a!==(a=h[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",a),p[0]&8388608&&n!==(n=h[60].granted)&&c.set_custom_element_data(e,"bonusdate",n),p[0]&8388608&&s!==(s=h[60].status)&&c.set_custom_element_data(e,"bonusstatus",s),p[0]&8388608&&l!==(l=h[60].name)&&c.set_custom_element_data(e,"bonusname",l),p[0]&8388608&&d!==(d=h[60].type)&&c.set_custom_element_data(e,"bonustype",d),p[0]&8388608&&u!==(u=h[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",u),p[0]&1&&c.set_custom_element_data(e,"lang",h[0]),p[0]&2&&c.set_custom_element_data(e,"clientstyling",h[1]),p[0]&4&&c.set_custom_element_data(e,"clientstylingurl",h[2]),p[0]&8&&c.set_custom_element_data(e,"mbsource",h[3]),p[0]&16&&c.set_custom_element_data(e,"translationurl",h[4]),p[0]&128&&c.set_custom_element_data(e,"currencylocale",h[7]),p[0]&256&&c.set_custom_element_data(e,"dateformat",h[8]),p[0]&512&&c.set_custom_element_data(e,"filterbonusbalance",h[9])},d(h){h&&c.detach(e)}}}function Qa(r){let e;function t(a,n){return a[60].type==="freeRound"?sf:nf}let i=t(r),o=i(r);return{c(){o.c(),e=c.empty()},m(a,n){o.m(a,n),c.insert(a,e,n)},p(a,n){i===(i=t(a))&&o?o.p(a,n):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e)))},d(a){a&&c.detach(e),o.d(a)}}}function Ja(r){let e,t,i,o,a,n,s,l,d,u,h,p,m,_,f,x,E,C,F,A,J,W,me,Y=c.ensure_array_like(Array(r[21])),S=[];for(let k=0;k<Y.length;k+=1)S[k]=Za(Ka(r,Y,k));return{c(){e=c.element("div"),t=c.element("button"),i=c.text("|<"),n=c.space(),s=c.element("button"),l=c.text("<"),h=c.space();for(let k=0;k<S.length;k+=1)S[k].c();p=c.space(),m=c.element("button"),_=c.text(">"),E=c.space(),C=c.element("button"),F=c.text(">|"),t.disabled=o=r[22]===0,c.attr(t,"class",a="BonusesFirst "+(r[22]===0?"Inactive":"")),s.disabled=d=r[22]===0,c.attr(s,"class",u="BonusesPrev "+(r[22]===0?"Inactive":"")),m.disabled=f=r[22]===r[21]-1,c.attr(m,"class",x="BonusesNext "+(r[22]===r[21]-1?"Inactive":"")),C.disabled=A=r[22]===r[21]-1,c.attr(C,"class",J="BonusesLast "+(r[22]===r[21]-1?"Inactive":"")),c.attr(e,"class","BonusesPaginationWrapper "+(r[25]?"BonusesPaginationWrapperMobile":""))},m(k,T){c.insert(k,e,T),c.append(e,t),c.append(t,i),c.append(e,n),c.append(e,s),c.append(s,l),c.append(e,h);for(let I=0;I<S.length;I+=1)S[I]&&S[I].m(e,null);c.append(e,p),c.append(e,m),c.append(m,_),c.append(e,E),c.append(e,C),c.append(C,F),W||(me=[c.listen(t,"click",r[39]),c.listen(s,"click",r[40]),c.listen(m,"click",r[42]),c.listen(C,"click",r[43])],W=!0)},p(k,T){if(T[0]&4194304&&o!==(o=k[22]===0)&&(t.disabled=o),T[0]&4194304&&a!==(a="BonusesFirst "+(k[22]===0?"Inactive":""))&&c.attr(t,"class",a),T[0]&4194304&&d!==(d=k[22]===0)&&(s.disabled=d),T[0]&4194304&&u!==(u="BonusesPrev "+(k[22]===0?"Inactive":""))&&c.attr(s,"class",u),T[0]&274727008){Y=c.ensure_array_like(Array(k[21]));let I;for(I=0;I<Y.length;I+=1){const re=Ka(k,Y,I);S[I]?S[I].p(re,T):(S[I]=Za(re),S[I].c(),S[I].m(e,p))}for(;I<S.length;I+=1)S[I].d(1);S.length=Y.length}T[0]&6291456&&f!==(f=k[22]===k[21]-1)&&(m.disabled=f),T[0]&6291456&&x!==(x="BonusesNext "+(k[22]===k[21]-1?"Inactive":""))&&c.attr(m,"class",x),T[0]&6291456&&A!==(A=k[22]===k[21]-1)&&(C.disabled=A),T[0]&6291456&&J!==(J="BonusesLast "+(k[22]===k[21]-1?"Inactive":""))&&c.attr(C,"class",J)},d(k){k&&c.detach(e),c.destroy_each(S,k),W=!1,c.run_all(me)}}}function Za(r){let e,t=r[59]+1+"",i,o,a,n,s;function l(){return r[41](r[59])}return{c(){e=c.element("button"),i=c.text(t),e.disabled=o=r[59]===r[22],c.attr(e,"class",a="BonusesPage "+(r[59]===r[22]?"BonusPageActive":""))},m(d,u){c.insert(d,e,u),c.append(e,i),n||(s=c.listen(e,"click",l),n=!0)},p(d,u){r=d,u[0]&4194304&&o!==(o=r[59]===r[22])&&(e.disabled=o),u[0]&4194304&&a!==(a="BonusesPage "+(r[59]===r[22]?"BonusPageActive":""))&&c.attr(e,"class",a)},d(d){d&&c.detach(e),n=!1,s()}}}function lf(r){let e,t,i,o,a=r[24]("titleBonusesHistory")+"",n,s,l,d,u,h,p=r[24]("dateFrom")+"",m,_,f,x,E,C,F=r[24]("dateTo")+"",A,J,W,me,Y,S=r[24]("dateFilter")+"",k,T,I,re,Ce,he=r[25]&&ef(r);function Le(H,j){return H[15]?rf:tf}let ye=Le(r),ie=ye(r);return{c(){e=c.element("div"),t=c.element("div"),he&&he.c(),i=c.space(),o=c.element("h2"),n=c.text(a),s=c.space(),l=c.element("div"),d=c.element("div"),u=c.element("div"),h=c.element("label"),m=c.text(p),_=c.space(),f=c.element("vaadin-date-picker"),x=c.space(),E=c.element("div"),C=c.element("label"),A=c.text(F),J=c.space(),W=c.element("vaadin-date-picker"),me=c.space(),Y=c.element("button"),k=c.text(S),I=c.space(),ie.c(),c.attr(o,"class","BonusesTitle "+(r[25]?"BonusesTitleNone":"")),c.attr(o,"part","BonusesTitle "+(r[25]?"BonusesTitleNone":"")),c.attr(h,"for","BonusCalendarStartDate"),c.set_custom_element_data(f,"max",r[26]),c.set_custom_element_data(f,"value",r[13]),c.set_custom_element_data(f,"placeholder",r[13]),c.set_custom_element_data(f,"class","VaadinDatePicker"),c.attr(u,"class","BonusesCalendarStartDate "+(r[25]?"BonusesCalendarMobile":"")),c.attr(C,"for","BonusesCalendarEndDate"),c.set_custom_element_data(W,"max",r[26]),c.set_custom_element_data(W,"min",r[16]),c.set_custom_element_data(W,"value",r[14]),c.set_custom_element_data(W,"placeholder",r[14]),c.set_custom_element_data(W,"class","VaadinDatePicker"),c.attr(E,"class","BonusesCalendarEndDate "+(r[25]?"BonusesCalendarMobile":"")),c.attr(d,"class","BonusesCalendarContainer "+(r[25]?"BonusesCalendarContainerMobile":"")),c.attr(Y,"class","BonusesCalendarFilter "+(r[25]?"BonusesCalendarFilterMobile":"")),Y.disabled=T=!r[17]||r[15],c.attr(l,"class","BonusCalendarWrapper "+(r[25]?"BonusCalendarWrapperMobile":"")),c.attr(t,"class","BonusesWrapper "+(r[25]?"BonusesWrapperMobile":""))},m(H,j){c.insert(H,e,j),c.append(e,t),he&&he.m(t,null),c.append(t,i),c.append(t,o),c.append(o,n),c.append(t,s),c.append(t,l),c.append(l,d),c.append(d,u),c.append(u,h),c.append(h,m),c.append(u,_),c.append(u,f),r[36](f),c.append(d,x),c.append(d,E),c.append(E,C),c.append(C,A),c.append(E,J),c.append(E,W),r[37](W),c.append(l,me),c.append(l,Y),c.append(Y,k),c.append(t,I),ie.m(t,null),r[44](e),re||(Ce=c.listen(Y,"click",r[38]),re=!0)},p(H,j){H[25]&&he.p(H,j),j[0]&16777216&&a!==(a=H[24]("titleBonusesHistory")+"")&&c.set_data(n,a),j[0]&16777216&&p!==(p=H[24]("dateFrom")+"")&&c.set_data(m,p),j[0]&8192&&c.set_custom_element_data(f,"value",H[13]),j[0]&8192&&c.set_custom_element_data(f,"placeholder",H[13]),j[0]&16777216&&F!==(F=H[24]("dateTo")+"")&&c.set_data(A,F),j[0]&65536&&c.set_custom_element_data(W,"min",H[16]),j[0]&16384&&c.set_custom_element_data(W,"value",H[14]),j[0]&16384&&c.set_custom_element_data(W,"placeholder",H[14]),j[0]&16777216&&S!==(S=H[24]("dateFilter")+"")&&c.set_data(k,S),j[0]&163840&&T!==(T=!H[17]||H[15])&&(Y.disabled=T),ye===(ye=Le(H))&&ie?ie.p(H,j):(ie.d(1),ie=ye(H),ie&&(ie.c(),ie.m(t,null)))},i:c.noop,o:c.noop,d(H){H&&c.detach(e),he&&he.d(),r[36](null),r[37](null),ie.d(),r[44](null),re=!1,Ce()}}}let ke=6;function en(r){var i,o,a,n,s,l,d,u,h,p,m;const e=(i=r.initialWagerRequirementAmount)!=null?i:0,t=(o=r.remainingWagerRequirementAmount)!=null?o:0;return mr(st({},r),{walletId:(a=r.bonusWalletID)!=null?a:void 0,granted:(n=r.grantedDate)!=null?n:void 0,expiryTime:(s=r.expiryDate)!=null?s:void 0,currentAmount:(l=r.remainingAmount)!=null?l:void 0,originalWageringRequirement:(d=r.initialWagerRequirementAmount)!=null?d:void 0,fulfilledWR:e-t,extension:{grantedPlayerCurrencyAmount:(u=r.amount)!=null?u:void 0},termsandconditionsurl:(h=r.url)!=null?h:void 0,termsandconditionsdescription:(p=r.description)!=null?p:void 0,termsandconditionsasset:(m=r.assets)!=null?m:void 0})}function df(r,e,t){let i;c.component_subscribe(r,c.$format,v=>t(24,i=v));let{endpoint:o=""}=e,{session:a=""}=e,{playerid:n=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:d=""}=e,{mbsource:u}=e,{translationurl:h=""}=e,{bonushistorystatus:p=""}=e,{bonushistorytype:m=""}=e,{currencylocale:_=""}=e,{currency:f=""}=e,{dateformat:x="dd-MM-yyyy"}=e,{gmversion:E=""}=e,{filterbonusbalance:C="false"}=e,{filtertags:F=""}=e,A,J,W=!1,me=window.navigator.userAgent,Y=c.getDevice(me)!=="PC",S,k;const T=Se(new Date,"yyyy-MM-dd");let I="",re=Se(vn(new Date,3),`${x||"yyyy-MM-dd"}`),Ce=Se(new Date,`${x||"yyyy-MM-dd"}`),he=!0,Le=0,ye=0,ie=0,H=0,j=0,Et=[];const cr=()=>{fetch(h).then(K=>K.json()).then(K=>{Object.keys(K).forEach(_e=>{jo(_e,K[_e])})}).catch(K=>{console.log(K)})};Object.keys(Go).forEach(v=>{jo(v,Go[v])});const We=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:Y},window.location.href)},G=(v,K)=>{const _e=yi(v,`${x||"yyyy-MM-dd"}`,new Date),ot=K?Dl(_e):El(_e);return Se(ot,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")},D=(v,K,_e)=>_r(this,null,function*(){var Bo,Lo;t(15,W=!0);let ot=G(re,!1),It=G(Ce,!0),No="",zo="";K&&(No=K.split(",").map(le=>`status=${le}`).join(",")),_e&&(zo=_e.split(",").map(le=>`type=${le}`).join(","));try{let Ie=[],at=0;if(E==="gm2"){const le={pagination:`limit=${ke},offset=${v}`,language:s||"en",sortOrder:"desc",status:K!=null?K:Ko.STATUS_COMPLETED,type:_e!=null?_e:Ko.TYPES,startTime:ot,endTime:It,filterTags:F},St=yield Tc(o,a,le),nt=St.items;Array.isArray(nt)?F?Ie=nt.filter(Ye=>{var hr;return((hr=Ye==null?void 0:Ye.tags)==null?void 0:hr.includes("auto_apply"))!==!0}).map(en):Ie=nt.map(en):console.error("Unexpected history bonuses payload",St),at=(Bo=St.total)!=null?Bo:0}else{const le={method:"GET",headers:{"X-SessionId":a}},St=`/v1/player/${n}/bonusWallet`,nt=new URL(`${o}${St}`),Ye=new URLSearchParams;let hr=`granted=[${ot}~${It}],${No},${zo}`;Ye.set("pagination",`offset=${v},limit=${ke}`),Ye.set("filter",hr),nt.search=Ye.toString();const Dt=yield(yield fetch(nt,le)).json();Array.isArray(Dt.items)?(Dt.items.forEach(we=>{var Fo,Ro;const pr=(Ro=(Fo=we==null?void 0:we.extension)==null?void 0:Fo.bonus)==null?void 0:Ro.presentation;pr&&(we.termsandconditionsurl||(we.termsandconditionsurl=pr.url),we.termsandconditionsdescription||(we.termsandconditionsdescription=pr.description),we.termsandconditionsasset||(we.termsandconditionsasset=pr.assets))}),Ie=Dt.items):console.error("Unexpected legacy bonus list payload",Dt),at=(Lo=Dt.total)!=null?Lo:0}t(21,H=Math.ceil(at/ke)),v-ke>=0&&t(18,Le=v-ke),v+ke<at&&t(19,ye=v+ke),t(20,ie=(H-1)*ke),t(22,j=v/ke),_&&Ie.forEach(le=>{le.fulfilledWR=ne(le.fulfilledWR),le.originalWageringRequirement=ne(le.originalWageringRequirement),le.currentAmount=ne(le.currentAmount),le.extension.grantedPlayerCurrencyAmount=ne(le.extension.grantedPlayerCurrencyAmount)}),t(23,Et=Ie),window.postMessage({type:"ScrollToTop"},window.location.href)}catch(Ie){console.error(Ie)}finally{t(15,W=!1)}}),ne=v=>new Intl.NumberFormat(_,{style:"currency",currency:f}).format(v).replace(/\s/g,""),qe=v=>{t(13,re=Se(new Date(v.target.value),`${x||"yyyy-MM-dd"}`)),t(16,I=Se(new Date(v.target.value),"yyyy-MM-dd"))},Pt=v=>{t(14,Ce=Se(new Date(v.target.value),`${x||"yyyy-MM-dd"}`))},ur=()=>{const v=new Date(G(re,!1)),K=new Date(G(Ce,!0));v.getTime()>K.getTime()?t(17,he=!1):t(17,he=!0)},At=()=>{S.addEventListener("change",qe,!1),k.addEventListener("change",Pt,!1)},Tt=v=>{const{year:K,month:_e,day:ot}=v,It=new Date(K,_e,ot);return Se(It,x||"yyyy-MM-dd")},Mo=v=>{const K=yi(v,x||"yyyy-MM-dd",new Date);return{year:K.getFullYear(),month:K.getMonth(),day:K.getDate()}};c.onMount(()=>(t(11,S.i18n=mr(st({},S.i18n),{formatDate:Tt,parseDate:Mo}),S),t(12,k.i18n=mr(st({},k.i18n),{formatDate:Tt,parseDate:Mo}),k),()=>{S.removeEventListener("change",qe),k.removeEventListener("change",Pt)}));const nl=()=>{Ec(s)},sl=()=>We();function ll(v){c.binding_callbacks[v?"unshift":"push"](()=>{S=v,t(11,S)})}function dl(v){c.binding_callbacks[v?"unshift":"push"](()=>{k=v,t(12,k)})}const cl=()=>D(0,p,m),ul=()=>D(0,p,m),hl=()=>D(Le,p,m),pl=v=>D(v*ke,p,m),ml=()=>D(ye,p,m),_l=()=>D(ie,p,m);function fl(v){c.binding_callbacks[v?"unshift":"push"](()=>{A=v,t(10,A)})}return r.$$set=v=>{"endpoint"in v&&t(29,o=v.endpoint),"session"in v&&t(30,a=v.session),"playerid"in v&&t(31,n=v.playerid),"lang"in v&&t(0,s=v.lang),"clientstyling"in v&&t(1,l=v.clientstyling),"clientstylingurl"in v&&t(2,d=v.clientstylingurl),"mbsource"in v&&t(3,u=v.mbsource),"translationurl"in v&&t(4,h=v.translationurl),"bonushistorystatus"in v&&t(5,p=v.bonushistorystatus),"bonushistorytype"in v&&t(6,m=v.bonushistorytype),"currencylocale"in v&&t(7,_=v.currencylocale),"currency"in v&&t(32,f=v.currency),"dateformat"in v&&t(8,x=v.dateformat),"gmversion"in v&&t(33,E=v.gmversion),"filterbonusbalance"in v&&t(9,C=v.filterbonusbalance),"filtertags"in v&&t(34,F=v.filtertags)},r.$$.update=()=>{r.$$.dirty[0]&1&&s&&nl(),r.$$.dirty[0]&6144&&S&&k&&At(),r.$$.dirty[0]&24576&&re&&Ce&&ur(),r.$$.dirty[0]&1610612832|r.$$.dirty[1]&1&&a&&n&&o&&D(0,p,m),r.$$.dirty[0]&1026&&l&&A&&c.setClientStyling(A,l),r.$$.dirty[0]&1028&&d&&A&&c.setClientStylingURL(A,d),r.$$.dirty[0]&1032&&u&&A&&c.setStreamStyling(A,`${u}.Style`,J),r.$$.dirty[0]&16&&h&&cr()},[s,l,d,u,h,p,m,_,x,C,A,S,k,re,Ce,W,I,he,Le,ye,ie,H,j,Et,i,Y,T,We,D,o,a,n,f,E,F,sl,ll,dl,cl,ul,hl,pl,ml,_l,fl]}class al extends c.SvelteComponent{constructor(e){super(),c.init(this,e,df,lf,c.safe_not_equal,{endpoint:29,session:30,playerid:31,lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4,bonushistorystatus:5,bonushistorytype:6,currencylocale:7,currency:32,dateformat:8,gmversion:33,filterbonusbalance:9,filtertags:34},Z_,[-1,-1,-1])}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),c.flush()}get playerid(){return this.$$.ctx[31]}set playerid(e){this.$$set({playerid:e}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get bonushistorystatus(){return this.$$.ctx[5]}set bonushistorystatus(e){this.$$set({bonushistorystatus:e}),c.flush()}get bonushistorytype(){return this.$$.ctx[6]}set bonushistorytype(e){this.$$set({bonushistorytype:e}),c.flush()}get currencylocale(){return this.$$.ctx[7]}set currencylocale(e){this.$$set({currencylocale:e}),c.flush()}get currency(){return this.$$.ctx[32]}set currency(e){this.$$set({currency:e}),c.flush()}get dateformat(){return this.$$.ctx[8]}set dateformat(e){this.$$set({dateformat:e}),c.flush()}get gmversion(){return this.$$.ctx[33]}set gmversion(e){this.$$set({gmversion:e}),c.flush()}get filterbonusbalance(){return this.$$.ctx[9]}set filterbonusbalance(e){this.$$set({filterbonusbalance:e}),c.flush()}get filtertags(){return this.$$.ctx[34]}set filtertags(e){this.$$set({filtertags:e}),c.flush()}}c.create_custom_element(al,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{},currencylocale:{},currency:{},dateformat:{},gmversion:{},filterbonusbalance:{},filtertags:{}},[],[],!0);const cf=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));exports.PlayerBonusHistory_ce=cf;exports.format=Se;exports.getYear=Ad;exports.parse=yi;exports.subMonths=vn;
6663
+ `),n=c.svg_element("g"),s=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(s,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(t,"xmlns","http://www.w3.org/2000/svg"),c.attr(t,"width","15"),c.attr(t,"height","15"),c.attr(t,"viewBox","0 0 15 15"),c.attr(u,"class","BonusesTitleMobile"),c.attr(e,"class","MenuReturnButton")},m(f,k){c.insert(f,e,k),c.append(e,t),c.append(t,i),c.append(i,o),c.append(o,a),c.append(t,n),c.append(n,s),c.append(s,l),c.append(e,d),c.append(e,u),c.append(u,p),m||(_=c.listen(e,"click",r[36]),m=!0)},p(f,k){k[0]&33554432&&h!==(h=f[25]("titleBonusesHistory")+"")&&c.set_data(p,h)},d(f){f&&c.detach(e),m=!1,_()}}}function of(r){let e,t,i;function o(l,d){return l[23].length===0?sf:nf}let a=o(r),n=a(r),s=r[23].length!==0&&Za(r);return{c(){e=c.element("div"),n.c(),t=c.space(),s&&s.c(),i=c.empty(),c.attr(e,"class","BonusesGrid "+(r[26]?"BonusesGridMobile":""))},m(l,d){c.insert(l,e,d),n.m(e,null),c.insert(l,t,d),s&&s.m(l,d),c.insert(l,i,d)},p(l,d){a===(a=o(l))&&n?n.p(l,d):(n.d(1),n=a(l),n&&(n.c(),n.m(e,null))),l[23].length!==0?s?s.p(l,d):(s=Za(l),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(l){l&&(c.detach(e),c.detach(t),c.detach(i)),n.d(),s&&s.d(l)}}}function af(r){let e;return{c(){e=c.element("div"),c.attr(e,"class","ModalLoader")},m(t,i){c.insert(t,e,i)},p:c.noop,d(t){t&&c.detach(e)}}}function nf(r){let e,t=c.ensure_array_like(r[23]),i=[];for(let o=0;o<t.length;o+=1)i[o]=Ja(Qa(r,t,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=c.empty()},m(o,a){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(o,a);c.insert(o,e,a)},p(o,a){if(a[0]&8389535){t=c.ensure_array_like(o[23]);let n;for(n=0;n<t.length;n+=1){const s=Qa(o,t,n);i[n]?i[n].p(s,a):(i[n]=Ja(s),i[n].c(),i[n].m(e.parentNode,e))}for(;n<i.length;n+=1)i[n].d(1);i.length=t.length}},d(o){o&&c.detach(e),c.destroy_each(i,o)}}}function sf(r){let e,t=r[25]("noBonusHistory")+"",i;return{c(){e=c.element("p"),i=c.text(t)},m(o,a){c.insert(o,e,a),c.append(e,i)},p(o,a){a[0]&33554432&&t!==(t=o[25]("noBonusHistory")+"")&&c.set_data(i,t)},d(o){o&&c.detach(e)}}}function lf(r){let e,t,i,o,a,n,s,l,d,u,h,p,m;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",t=r[62].termsandconditionsdescription),c.set_custom_element_data(e,"termsandconditionsurl",i=r[62].termsandconditionsurl),c.set_custom_element_data(e,"termsandconditionsasset",o=r[62].termsandconditionsasset),c.set_custom_element_data(e,"bonuswalletid",a=r[62].walletId),c.set_custom_element_data(e,"bonusdate",n=r[62].granted),c.set_custom_element_data(e,"bonusstatus",s=r[62].status),c.set_custom_element_data(e,"bonusname",l=r[62].name),c.set_custom_element_data(e,"bonustype",d=r[62].type),c.set_custom_element_data(e,"bonusamount",u=r[62].extension.grantedPlayerCurrencyAmount),c.set_custom_element_data(e,"bonuswageringamount",h=`${r[62].fulfilledWR} / ${r[62].originalWageringRequirement}`),c.set_custom_element_data(e,"bonusremainingamount",p=r[62].currentAmount),c.set_custom_element_data(e,"bonuscurrency",m=r[62].currency),c.set_custom_element_data(e,"lang",r[0]),c.set_custom_element_data(e,"clientstyling",r[1]),c.set_custom_element_data(e,"clientstylingurl",r[2]),c.set_custom_element_data(e,"mbsource",r[3]),c.set_custom_element_data(e,"translationurl",r[4]),c.set_custom_element_data(e,"currencylocale",r[7]),c.set_custom_element_data(e,"dateformat",r[8]),c.set_custom_element_data(e,"filterbonusbalance",r[9])},m(_,f){c.insert(_,e,f)},p(_,f){f[0]&8388608&&t!==(t=_[62].termsandconditionsdescription)&&c.set_custom_element_data(e,"termsandconditionsdescription",t),f[0]&8388608&&i!==(i=_[62].termsandconditionsurl)&&c.set_custom_element_data(e,"termsandconditionsurl",i),f[0]&8388608&&o!==(o=_[62].termsandconditionsasset)&&c.set_custom_element_data(e,"termsandconditionsasset",o),f[0]&8388608&&a!==(a=_[62].walletId)&&c.set_custom_element_data(e,"bonuswalletid",a),f[0]&8388608&&n!==(n=_[62].granted)&&c.set_custom_element_data(e,"bonusdate",n),f[0]&8388608&&s!==(s=_[62].status)&&c.set_custom_element_data(e,"bonusstatus",s),f[0]&8388608&&l!==(l=_[62].name)&&c.set_custom_element_data(e,"bonusname",l),f[0]&8388608&&d!==(d=_[62].type)&&c.set_custom_element_data(e,"bonustype",d),f[0]&8388608&&u!==(u=_[62].extension.grantedPlayerCurrencyAmount)&&c.set_custom_element_data(e,"bonusamount",u),f[0]&8388608&&h!==(h=`${_[62].fulfilledWR} / ${_[62].originalWageringRequirement}`)&&c.set_custom_element_data(e,"bonuswageringamount",h),f[0]&8388608&&p!==(p=_[62].currentAmount)&&c.set_custom_element_data(e,"bonusremainingamount",p),f[0]&8388608&&m!==(m=_[62].currency)&&c.set_custom_element_data(e,"bonuscurrency",m),f[0]&1&&c.set_custom_element_data(e,"lang",_[0]),f[0]&2&&c.set_custom_element_data(e,"clientstyling",_[1]),f[0]&4&&c.set_custom_element_data(e,"clientstylingurl",_[2]),f[0]&8&&c.set_custom_element_data(e,"mbsource",_[3]),f[0]&16&&c.set_custom_element_data(e,"translationurl",_[4]),f[0]&128&&c.set_custom_element_data(e,"currencylocale",_[7]),f[0]&256&&c.set_custom_element_data(e,"dateformat",_[8]),f[0]&512&&c.set_custom_element_data(e,"filterbonusbalance",_[9])},d(_){_&&c.detach(e)}}}function df(r){let e,t,i,o,a,n,s,l,d,u;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",t=r[62].termsandconditionsdescription),c.set_custom_element_data(e,"termsandconditionsurl",i=r[62].termsandconditionsurl),c.set_custom_element_data(e,"termsandconditionsasset",o=r[62].termsandconditionsasset),c.set_custom_element_data(e,"bonuswalletid",a=r[62].walletId),c.set_custom_element_data(e,"bonusdate",n=r[62].granted),c.set_custom_element_data(e,"bonusstatus",s=r[62].status),c.set_custom_element_data(e,"bonusname",l=r[62].name),c.set_custom_element_data(e,"bonustype",d=r[62].type),c.set_custom_element_data(e,"bonuscurrency",u=r[62].currency),c.set_custom_element_data(e,"lang",r[0]),c.set_custom_element_data(e,"clientstyling",r[1]),c.set_custom_element_data(e,"clientstylingurl",r[2]),c.set_custom_element_data(e,"mbsource",r[3]),c.set_custom_element_data(e,"translationurl",r[4]),c.set_custom_element_data(e,"currencylocale",r[7]),c.set_custom_element_data(e,"dateformat",r[8]),c.set_custom_element_data(e,"filterbonusbalance",r[9])},m(h,p){c.insert(h,e,p)},p(h,p){p[0]&8388608&&t!==(t=h[62].termsandconditionsdescription)&&c.set_custom_element_data(e,"termsandconditionsdescription",t),p[0]&8388608&&i!==(i=h[62].termsandconditionsurl)&&c.set_custom_element_data(e,"termsandconditionsurl",i),p[0]&8388608&&o!==(o=h[62].termsandconditionsasset)&&c.set_custom_element_data(e,"termsandconditionsasset",o),p[0]&8388608&&a!==(a=h[62].walletId)&&c.set_custom_element_data(e,"bonuswalletid",a),p[0]&8388608&&n!==(n=h[62].granted)&&c.set_custom_element_data(e,"bonusdate",n),p[0]&8388608&&s!==(s=h[62].status)&&c.set_custom_element_data(e,"bonusstatus",s),p[0]&8388608&&l!==(l=h[62].name)&&c.set_custom_element_data(e,"bonusname",l),p[0]&8388608&&d!==(d=h[62].type)&&c.set_custom_element_data(e,"bonustype",d),p[0]&8388608&&u!==(u=h[62].currency)&&c.set_custom_element_data(e,"bonuscurrency",u),p[0]&1&&c.set_custom_element_data(e,"lang",h[0]),p[0]&2&&c.set_custom_element_data(e,"clientstyling",h[1]),p[0]&4&&c.set_custom_element_data(e,"clientstylingurl",h[2]),p[0]&8&&c.set_custom_element_data(e,"mbsource",h[3]),p[0]&16&&c.set_custom_element_data(e,"translationurl",h[4]),p[0]&128&&c.set_custom_element_data(e,"currencylocale",h[7]),p[0]&256&&c.set_custom_element_data(e,"dateformat",h[8]),p[0]&512&&c.set_custom_element_data(e,"filterbonusbalance",h[9])},d(h){h&&c.detach(e)}}}function Ja(r){let e;function t(a,n){return a[62].type==="freeRound"?df:lf}let i=t(r),o=i(r);return{c(){o.c(),e=c.empty()},m(a,n){o.m(a,n),c.insert(a,e,n)},p(a,n){i===(i=t(a))&&o?o.p(a,n):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e)))},d(a){a&&c.detach(e),o.d(a)}}}function Za(r){let e,t,i,o,a,n,s,l,d,u,h,p,m,_,f,k,x,C,F,z,V,q,he,X=c.ensure_array_like(r[24]),R=[];for(let E=0;E<X.length;E+=1)R[E]=en(Xa(r,X,E));return{c(){e=c.element("div"),t=c.element("button"),i=c.text("|<"),n=c.space(),s=c.element("button"),l=c.text("<"),h=c.space();for(let E=0;E<R.length;E+=1)R[E].c();p=c.space(),m=c.element("button"),_=c.text(">"),x=c.space(),C=c.element("button"),F=c.text(">|"),t.disabled=o=r[16]===0,c.attr(t,"class",a="BonusesFirst "+(r[16]===0?"Inactive":"")),s.disabled=d=r[16]===0,c.attr(s,"class",u="BonusesPrev "+(r[16]===0?"Inactive":"")),m.disabled=f=r[16]===r[15]-1,c.attr(m,"class",k="BonusesNext "+(r[16]===r[15]-1?"Inactive":"")),C.disabled=z=r[16]===r[15]-1,c.attr(C,"class",V="BonusesLast "+(r[16]===r[15]-1?"Inactive":"")),c.attr(e,"class","BonusesPaginationWrapper "+(r[26]?"BonusesPaginationWrapperMobile":""))},m(E,P){c.insert(E,e,P),c.append(e,t),c.append(t,i),c.append(e,n),c.append(e,s),c.append(s,l),c.append(e,h);for(let T=0;T<R.length;T+=1)R[T]&&R[T].m(e,null);c.append(e,p),c.append(e,m),c.append(m,_),c.append(e,x),c.append(e,C),c.append(C,F),q||(he=[c.listen(t,"click",r[40]),c.listen(s,"click",r[41]),c.listen(m,"click",r[43]),c.listen(C,"click",r[44])],q=!0)},p(E,P){if(P[0]&65536&&o!==(o=E[16]===0)&&(t.disabled=o),P[0]&65536&&a!==(a="BonusesFirst "+(E[16]===0?"Inactive":""))&&c.attr(t,"class",a),P[0]&65536&&d!==(d=E[16]===0)&&(s.disabled=d),P[0]&65536&&u!==(u="BonusesPrev "+(E[16]===0?"Inactive":""))&&c.attr(s,"class",u),P[0]&553713760){X=c.ensure_array_like(E[24]);let T;for(T=0;T<X.length;T+=1){const ae=Xa(E,X,T);R[T]?R[T].p(ae,P):(R[T]=en(ae),R[T].c(),R[T].m(e,p))}for(;T<R.length;T+=1)R[T].d(1);R.length=X.length}P[0]&98304&&f!==(f=E[16]===E[15]-1)&&(m.disabled=f),P[0]&98304&&k!==(k="BonusesNext "+(E[16]===E[15]-1?"Inactive":""))&&c.attr(m,"class",k),P[0]&98304&&z!==(z=E[16]===E[15]-1)&&(C.disabled=z),P[0]&98304&&V!==(V="BonusesLast "+(E[16]===E[15]-1?"Inactive":""))&&c.attr(C,"class",V)},d(E){E&&c.detach(e),c.destroy_each(R,E),q=!1,c.run_all(he)}}}function cf(r){let e,t=r[59]+1+"",i,o,a,n,s;function l(){return r[42](r[59])}return{c(){e=c.element("button"),i=c.text(t),e.disabled=o=r[59]===r[16],c.attr(e,"class",a="BonusesPage "+(r[59]===r[16]?"BonusPageActive":""))},m(d,u){c.insert(d,e,u),c.append(e,i),n||(s=c.listen(e,"click",l),n=!0)},p(d,u){r=d,u[0]&16777216&&t!==(t=r[59]+1+"")&&c.set_data(i,t),u[0]&16842752&&o!==(o=r[59]===r[16])&&(e.disabled=o),u[0]&16842752&&a!==(a="BonusesPage "+(r[59]===r[16]?"BonusPageActive":""))&&c.attr(e,"class",a)},d(d){d&&c.detach(e),n=!1,s()}}}function uf(r){let e;return{c(){e=c.element("span"),e.textContent="...",c.attr(e,"class","BonusesEllipsis")},m(t,i){c.insert(t,e,i)},p:c.noop,d(t){t&&c.detach(e)}}}function en(r){let e;function t(a,n){return a[59]===null?uf:cf}let i=t(r),o=i(r);return{c(){o.c(),e=c.empty()},m(a,n){o.m(a,n),c.insert(a,e,n)},p(a,n){i===(i=t(a))&&o?o.p(a,n):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e)))},d(a){a&&c.detach(e),o.d(a)}}}function hf(r){let e,t,i,o,a=r[25]("titleBonusesHistory")+"",n,s,l,d,u,h,p=r[25]("dateFrom")+"",m,_,f,k,x,C,F=r[25]("dateTo")+"",z,V,q,he,X,R=r[25]("dateFilter")+"",E,P,T,ae,Pe,le=r[26]&&rf(r);function He(H,j){return H[17]?af:of}let we=He(r),te=we(r);return{c(){e=c.element("div"),t=c.element("div"),le&&le.c(),i=c.space(),o=c.element("h2"),n=c.text(a),s=c.space(),l=c.element("div"),d=c.element("div"),u=c.element("div"),h=c.element("label"),m=c.text(p),_=c.space(),f=c.element("vaadin-date-picker"),k=c.space(),x=c.element("div"),C=c.element("label"),z=c.text(F),V=c.space(),q=c.element("vaadin-date-picker"),he=c.space(),X=c.element("button"),E=c.text(R),T=c.space(),te.c(),c.attr(o,"class","BonusesTitle "+(r[26]?"BonusesTitleNone":"")),c.attr(o,"part","BonusesTitle "+(r[26]?"BonusesTitleNone":"")),c.attr(h,"for","BonusCalendarStartDate"),c.set_custom_element_data(f,"max",r[27]),c.set_custom_element_data(f,"value",r[13]),c.set_custom_element_data(f,"placeholder",r[13]),c.set_custom_element_data(f,"class","VaadinDatePicker"),c.attr(u,"class","BonusesCalendarStartDate "+(r[26]?"BonusesCalendarMobile":"")),c.attr(C,"for","BonusesCalendarEndDate"),c.set_custom_element_data(q,"max",r[27]),c.set_custom_element_data(q,"min",r[18]),c.set_custom_element_data(q,"value",r[14]),c.set_custom_element_data(q,"placeholder",r[14]),c.set_custom_element_data(q,"class","VaadinDatePicker"),c.attr(x,"class","BonusesCalendarEndDate "+(r[26]?"BonusesCalendarMobile":"")),c.attr(d,"class","BonusesCalendarContainer "+(r[26]?"BonusesCalendarContainerMobile":"")),c.attr(X,"class","BonusesCalendarFilter "+(r[26]?"BonusesCalendarFilterMobile":"")),X.disabled=P=!r[19]||r[17],c.attr(l,"class","BonusCalendarWrapper "+(r[26]?"BonusCalendarWrapperMobile":"")),c.attr(t,"class","BonusesWrapper "+(r[26]?"BonusesWrapperMobile":""))},m(H,j){c.insert(H,e,j),c.append(e,t),le&&le.m(t,null),c.append(t,i),c.append(t,o),c.append(o,n),c.append(t,s),c.append(t,l),c.append(l,d),c.append(d,u),c.append(u,h),c.append(h,m),c.append(u,_),c.append(u,f),r[37](f),c.append(d,k),c.append(d,x),c.append(x,C),c.append(C,z),c.append(x,V),c.append(x,q),r[38](q),c.append(l,he),c.append(l,X),c.append(X,E),c.append(t,T),te.m(t,null),r[45](e),ae||(Pe=c.listen(X,"click",r[39]),ae=!0)},p(H,j){H[26]&&le.p(H,j),j[0]&33554432&&a!==(a=H[25]("titleBonusesHistory")+"")&&c.set_data(n,a),j[0]&33554432&&p!==(p=H[25]("dateFrom")+"")&&c.set_data(m,p),j[0]&8192&&c.set_custom_element_data(f,"value",H[13]),j[0]&8192&&c.set_custom_element_data(f,"placeholder",H[13]),j[0]&33554432&&F!==(F=H[25]("dateTo")+"")&&c.set_data(z,F),j[0]&262144&&c.set_custom_element_data(q,"min",H[18]),j[0]&16384&&c.set_custom_element_data(q,"value",H[14]),j[0]&16384&&c.set_custom_element_data(q,"placeholder",H[14]),j[0]&33554432&&R!==(R=H[25]("dateFilter")+"")&&c.set_data(E,R),j[0]&655360&&P!==(P=!H[19]||H[17])&&(X.disabled=P),we===(we=He(H))&&te?te.p(H,j):(te.d(1),te=we(H),te&&(te.c(),te.m(t,null)))},i:c.noop,o:c.noop,d(H){H&&c.detach(e),le&&le.d(),r[37](null),r[38](null),te.d(),r[45](null),ae=!1,Pe()}}}let Te=6;function tn(r){var i,o,a,n,s,l,d,u,h,p,m;const e=(i=r.initialWagerRequirementAmount)!=null?i:0,t=(o=r.remainingWagerRequirementAmount)!=null?o:0;return _r(ht({},r),{walletId:(a=r.bonusWalletID)!=null?a:void 0,granted:(n=r.grantedDate)!=null?n:void 0,expiryTime:(s=r.expiryDate)!=null?s:void 0,currentAmount:(l=r.remainingAmount)!=null?l:void 0,originalWageringRequirement:(d=r.initialWagerRequirementAmount)!=null?d:void 0,fulfilledWR:e-t,extension:{grantedPlayerCurrencyAmount:(u=r.amount)!=null?u:void 0},termsandconditionsurl:(h=r.url)!=null?h:void 0,termsandconditionsdescription:(p=r.description)!=null?p:void 0,termsandconditionsasset:(m=r.assets)!=null?m:void 0})}function pf(r,e,t){let i,o;c.component_subscribe(r,c.$format,v=>t(25,o=v));let{endpoint:a=""}=e,{session:n=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:u=""}=e,{mbsource:h}=e,{translationurl:p=""}=e,{bonushistorystatus:m=""}=e,{bonushistorytype:_=""}=e,{currencylocale:f=""}=e,{currency:k=""}=e,{dateformat:x="dd-MM-yyyy"}=e,{gmversion:C=""}=e,{filterbonusbalance:F="false"}=e,{filtertags:z=""}=e,V,q,he=!1,X=window.navigator.userAgent,R=c.getDevice(X)!=="PC",E,P;const T=Ne(new Date,"yyyy-MM-dd");let ae="",Pe=Ne(gn(new Date,3),`${x||"yyyy-MM-dd"}`),le=Ne(new Date,`${x||"yyyy-MM-dd"}`),He=!0,we=0,te=0,H=0,j=0,lt=0;const ur=(v,Y,pe)=>{const ke=[];let Ae=-1;for(let xe=0;xe<Y;xe++)xe!==0&&xe!==Y-1&&Math.abs(xe-v)>pe||(xe-Ae===2?ke.push(Ae+1):xe-Ae>2&&ke.push(null),ke.push(xe),Ae=xe);return ke};let Ge=[];const re=()=>{fetch(p).then(Y=>Y.json()).then(Y=>{Object.keys(Y).forEach(pe=>{Go(pe,Y[pe])})}).catch(Y=>{console.log(Y)})};Object.keys(Ko).forEach(v=>{Go(v,Ko[v])});const U=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},ne=(v,Y)=>{const pe=wi(v,`${x||"yyyy-MM-dd"}`,new Date),ke=Y?Ml(pe):Al(pe);return Ne(ke,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")},fe=(v,Y,pe)=>fr(this,null,function*(){var Lo,Fo;t(17,he=!0);let ke=ne(Pe,!1),Ae=ne(le,!0),xe="",Bo="";Y&&(xe=Y.split(",").map(de=>`status=${de}`).join(",")),pe&&(Bo=pe.split(",").map(de=>`type=${de}`).join(","));try{let Me=[],ct=0;if(C==="gm2"){const de={pagination:`limit=${Te},offset=${v}`,language:l||"en",sortOrder:"desc",status:Y!=null?Y:Xo.STATUS_COMPLETED,type:pe!=null?pe:Xo.TYPES,startTime:ke,endTime:Ae,filterTags:z},Dt=yield Sc(a,n,de),ut=Dt.items;Array.isArray(ut)?z?Me=ut.filter(Xe=>{var pr;return((pr=Xe==null?void 0:Xe.tags)==null?void 0:pr.includes("auto_apply"))!==!0}).map(tn):Me=ut.map(tn):console.error("Unexpected history bonuses payload",Dt),ct=(Lo=Dt.total)!=null?Lo:0}else{const de={method:"GET",headers:{"X-SessionId":n}},Dt=`/v1/player/${s}/bonusWallet`,ut=new URL(`${a}${Dt}`),Xe=new URLSearchParams;let pr=`granted=[${ke}~${Ae}],${xe},${Bo}`;Xe.set("pagination",`offset=${v},limit=${Te}`),Xe.set("filter",pr),ut.search=Xe.toString();const Ot=yield(yield fetch(ut,de)).json();Array.isArray(Ot.items)?(Ot.items.forEach(Ce=>{var Ro,Vo;const mr=(Vo=(Ro=Ce==null?void 0:Ce.extension)==null?void 0:Ro.bonus)==null?void 0:Vo.presentation;mr&&(Ce.termsandconditionsurl||(Ce.termsandconditionsurl=mr.url),Ce.termsandconditionsdescription||(Ce.termsandconditionsdescription=mr.description),Ce.termsandconditionsasset||(Ce.termsandconditionsasset=mr.assets))}),Me=Ot.items):console.error("Unexpected legacy bonus list payload",Ot),ct=(Fo=Ot.total)!=null?Fo:0}t(15,j=Math.ceil(ct/Te)),v-Te>=0&&t(20,we=v-Te),v+Te<ct&&t(21,te=v+Te),t(22,H=(j-1)*Te),t(16,lt=v/Te),f&&Me.forEach(de=>{de.fulfilledWR=Ke(de.fulfilledWR),de.originalWageringRequirement=Ke(de.originalWageringRequirement),de.currentAmount=Ke(de.currentAmount),de.extension.grantedPlayerCurrencyAmount=Ke(de.extension.grantedPlayerCurrencyAmount)}),t(23,Ge=Me),window.postMessage({type:"ScrollToTop"},window.location.href)}catch(Me){console.error(Me)}finally{t(17,he=!1)}}),Ke=v=>new Intl.NumberFormat(f,{style:"currency",currency:k}).format(v).replace(/\s/g,""),St=v=>{t(13,Pe=Ne(new Date(v.target.value),`${x||"yyyy-MM-dd"}`)),t(18,ae=Ne(new Date(v.target.value),"yyyy-MM-dd"))},dt=v=>{t(14,le=Ne(new Date(v.target.value),`${x||"yyyy-MM-dd"}`))},hr=()=>{const v=new Date(ne(Pe,!1)),Y=new Date(ne(le,!0));v.getTime()>Y.getTime()?t(19,He=!1):t(19,He=!0)},sl=()=>{E.addEventListener("change",St,!1),P.addEventListener("change",dt,!1)},No=v=>{const{year:Y,month:pe,day:ke}=v,Ae=new Date(Y,pe,ke);return Ne(Ae,x||"yyyy-MM-dd")},zo=v=>{const Y=wi(v,x||"yyyy-MM-dd",new Date);return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};c.onMount(()=>(t(11,E.i18n=_r(ht({},E.i18n),{formatDate:No,parseDate:zo}),E),t(12,P.i18n=_r(ht({},P.i18n),{formatDate:No,parseDate:zo}),P),()=>{E.removeEventListener("change",St),P.removeEventListener("change",dt)}));const ll=()=>{Ac(l)},dl=()=>U();function cl(v){c.binding_callbacks[v?"unshift":"push"](()=>{E=v,t(11,E)})}function ul(v){c.binding_callbacks[v?"unshift":"push"](()=>{P=v,t(12,P)})}const hl=()=>fe(0,m,_),pl=()=>fe(0,m,_),ml=()=>fe(we,m,_),_l=v=>fe(v*Te,m,_),fl=()=>fe(te,m,_),vl=()=>fe(H,m,_);function gl(v){c.binding_callbacks[v?"unshift":"push"](()=>{V=v,t(10,V)})}return r.$$set=v=>{"endpoint"in v&&t(30,a=v.endpoint),"session"in v&&t(31,n=v.session),"playerid"in v&&t(32,s=v.playerid),"lang"in v&&t(0,l=v.lang),"clientstyling"in v&&t(1,d=v.clientstyling),"clientstylingurl"in v&&t(2,u=v.clientstylingurl),"mbsource"in v&&t(3,h=v.mbsource),"translationurl"in v&&t(4,p=v.translationurl),"bonushistorystatus"in v&&t(5,m=v.bonushistorystatus),"bonushistorytype"in v&&t(6,_=v.bonushistorytype),"currencylocale"in v&&t(7,f=v.currencylocale),"currency"in v&&t(33,k=v.currency),"dateformat"in v&&t(8,x=v.dateformat),"gmversion"in v&&t(34,C=v.gmversion),"filterbonusbalance"in v&&t(9,F=v.filterbonusbalance),"filtertags"in v&&t(35,z=v.filtertags)},r.$$.update=()=>{r.$$.dirty[0]&98304&&t(24,i=ur(lt,j,R?1:2)),r.$$.dirty[0]&1&&l&&ll(),r.$$.dirty[0]&6144&&E&&P&&sl(),r.$$.dirty[0]&24576&&Pe&&le&&hr(),r.$$.dirty[0]&1073741920|r.$$.dirty[1]&3&&n&&s&&a&&fe(0,m,_),r.$$.dirty[0]&1026&&d&&V&&c.setClientStyling(V,d),r.$$.dirty[0]&1028&&u&&V&&c.setClientStylingURL(V,u),r.$$.dirty[0]&1032&&h&&V&&c.setStreamStyling(V,`${h}.Style`,q),r.$$.dirty[0]&16&&p&&re()},[l,d,u,h,p,m,_,f,x,F,V,E,P,Pe,le,j,lt,he,ae,He,we,te,H,Ge,i,o,R,T,U,fe,a,n,s,k,C,z,dl,cl,ul,hl,pl,ml,_l,fl,vl,gl]}class nl extends c.SvelteComponent{constructor(e){super(),c.init(this,e,pf,hf,c.safe_not_equal,{endpoint:30,session:31,playerid:32,lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4,bonushistorystatus:5,bonushistorytype:6,currencylocale:7,currency:33,dateformat:8,gmversion:34,filterbonusbalance:9,filtertags:35},tf,[-1,-1,-1])}get endpoint(){return this.$$.ctx[30]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),c.flush()}get playerid(){return this.$$.ctx[32]}set playerid(e){this.$$set({playerid:e}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get bonushistorystatus(){return this.$$.ctx[5]}set bonushistorystatus(e){this.$$set({bonushistorystatus:e}),c.flush()}get bonushistorytype(){return this.$$.ctx[6]}set bonushistorytype(e){this.$$set({bonushistorytype:e}),c.flush()}get currencylocale(){return this.$$.ctx[7]}set currencylocale(e){this.$$set({currencylocale:e}),c.flush()}get currency(){return this.$$.ctx[33]}set currency(e){this.$$set({currency:e}),c.flush()}get dateformat(){return this.$$.ctx[8]}set dateformat(e){this.$$set({dateformat:e}),c.flush()}get gmversion(){return this.$$.ctx[34]}set gmversion(e){this.$$set({gmversion:e}),c.flush()}get filterbonusbalance(){return this.$$.ctx[9]}set filterbonusbalance(e){this.$$set({filterbonusbalance:e}),c.flush()}get filtertags(){return this.$$.ctx[35]}set filtertags(e){this.$$set({filtertags:e}),c.flush()}}c.create_custom_element(nl,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{},currencylocale:{},currency:{},dateformat:{},gmversion:{},filterbonusbalance:{},filtertags:{}},[],[],!0);const mf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));exports.PlayerBonusHistory_ce=mf;exports.format=Ne;exports.getYear=Id;exports.parse=wi;exports.subMonths=gn;